GCN libgfortran.
[official-gcc.git] / libgfortran / configure
blob487d8c090e2720c4638e5cbc6f77b1c3b9b755f6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if 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=';'
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU Fortran Runtime Library'
589 PACKAGE_TARNAME='libgfortran'
590 PACKAGE_VERSION='0.3'
591 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_header_list=
632 ac_func_list=
633 ac_c_werror_flag=
634 ac_c_werror_flag=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 get_gcc_base_ver
640 HAVE_AVX128_FALSE
641 HAVE_AVX128_TRUE
642 IEEE_FLAGS
643 IEEE_SUPPORT
644 IEEE_SUPPORT_FALSE
645 IEEE_SUPPORT_TRUE
646 FPU_HOST_HEADER
647 LIBGFOR_BUILD_QUAD_FALSE
648 LIBGFOR_BUILD_QUAD_TRUE
649 LIBQUADINCLUDE
650 LIBQUADLIB_DEP
651 LIBQUADLIB
652 LIBQUADSPEC
653 extra_ldflags_libgfortran
654 ac_ct_FC
655 FCFLAGS
657 enable_static
658 enable_shared
659 lt_host_flags
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 OBJDUMP
666 LN_S
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 RANLIB
674 HAVE_HWCAP_FALSE
675 HAVE_HWCAP_TRUE
676 HWCAP_LDFLAGS
678 FGREP
680 SECTION_FLAGS
681 LIBGFOR_MINIMAL_FALSE
682 LIBGFOR_MINIMAL_TRUE
683 LIBGFOR_USE_SYMVER_SUN_FALSE
684 LIBGFOR_USE_SYMVER_SUN_TRUE
685 LIBGFOR_USE_SYMVER_GNU_FALSE
686 LIBGFOR_USE_SYMVER_GNU_TRUE
687 LIBGFOR_USE_SYMVER_FALSE
688 LIBGFOR_USE_SYMVER_TRUE
689 AM_CFLAGS
690 AM_FCFLAGS
691 toolexeclibdir
692 toolexecdir
693 EGREP
694 GREP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
713 multi_basedir
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_noncanonical
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 onestep
754 onestep_FALSE
755 onestep_TRUE
756 target_subdir
757 host_subdir
758 build_subdir
759 build_libsubdir
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 enable_version_specific_runtime_libs
807 enable_intermodule
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_multilib
811 enable_dependency_tracking
812 enable_cet
813 enable_symvers
814 with_gnu_ld
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 enable_libtool_lock
820 enable_largefile
821 enable_libquadmath_support
822 with_gcc_major_version_only
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
834 FCFLAGS'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 esac
1243 done
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-version-specific-runtime-libs
1455 specify that runtime libraries should be installed
1456 in a compiler-specific directory
1457 --enable-intermodule build the library in one step
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-multilib build many library versions (default)
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-cet enable Intel CET in target libraries [default=no]
1469 --disable-symvers disable symbol versioning for libgfortran
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-largefile omit support for large files
1476 --disable-libquadmath-support
1477 disable libquadmath support for Fortran
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 FC Fortran compiler command
1499 FCFLAGS Fortran compiler flags
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1506 General help using GNU software: <http://www.gnu.org/gethelp/>.
1507 _ACEOF
1508 ac_status=$?
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 GNU Fortran Runtime Library configure 0.3
1570 generated by GNU Autoconf 2.69
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1614 ac_retval=1
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_compile
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_cpp
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1662 # accordingly.
1663 ac_fn_c_check_header_mongrel ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 else
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1686 else
1687 ac_header_compiler=no
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1702 else
1703 ac_header_preproc=no
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711 yes:no: )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 no:yes:* )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 esac
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 eval "$3=\$ac_header_compiler"
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_mongrel
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1785 } # ac_fn_c_try_run
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 } # ac_fn_c_check_header_compile
1818 # ac_fn_c_try_link LINENO
1819 # -----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_link ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest$ac_exeext
1825 if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest$ac_exeext && {
1844 test "$cross_compiling" = yes ||
1845 test -x conftest$ac_exeext
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=1
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_link
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 if test x$gcc_no_link = xyes; then
1876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
1889 #ifdef __STDC__
1890 # include <limits.h>
1891 #else
1892 # include <assert.h>
1893 #endif
1895 #undef $2
1897 /* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1900 #ifdef __cplusplus
1901 extern "C"
1902 #endif
1903 char $2 ();
1904 /* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907 #if defined __stub_$2 || defined __stub___$2
1908 choke me
1909 #endif
1912 main ()
1914 return $2 ();
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_link "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1924 rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_func
1934 # ac_fn_fc_try_compile LINENO
1935 # ---------------------------
1936 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_fc_try_compile ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext
1941 if { { ac_try="$ac_compile"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_compile") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_fc_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest.$ac_objext; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=1
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1970 } # ac_fn_fc_try_compile
1972 # ac_fn_fc_try_link LINENO
1973 # ------------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_fc_try_link ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 rm -f conftest.$ac_objext conftest$ac_exeext
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>conftest.err
1987 ac_status=$?
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && {
1995 test -z "$ac_fc_werror_flag" ||
1996 test ! -s conftest.err
1997 } && test -s conftest$ac_exeext && {
1998 test "$cross_compiling" = yes ||
1999 test -x conftest$ac_exeext
2000 }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=1
2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010 # interfere with the next link command; also delete a directory that is
2011 # left behind by Apple's compiler. We do this before executing the actions.
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
2016 } # ac_fn_fc_try_link
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 if (sizeof ($2))
2038 return 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 if (sizeof (($2)))
2051 return 0;
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2058 else
2059 eval "$3=yes"
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_type
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_lo=0 ac_mid=0
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=$ac_mid; break
2115 else
2116 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2117 if test $ac_lo -le $ac_mid; then
2118 ac_lo= ac_hi=
2119 break
2121 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 main ()
2132 static int test_array [1 - 2 * !(($2) < 0)];
2133 test_array [0] = 0;
2134 return test_array [0];
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0;
2151 return test_array [0];
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=$ac_mid; break
2159 else
2160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2161 if test $ac_mid -le $ac_hi; then
2162 ac_lo= ac_hi=
2163 break
2165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 else
2170 ac_lo= ac_hi=
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 # Binary search between lo and hi bounds.
2176 while test "x$ac_lo" != "x$ac_hi"; do
2177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 main ()
2184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 test_array [0] = 0;
2186 return test_array [0];
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194 else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 done
2199 case $ac_lo in #((
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201 '') ac_retval=1 ;;
2202 esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2209 #include <stdio.h>
2210 #include <stdlib.h>
2212 main ()
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2225 else
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242 else
2243 ac_retval=1
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 rm -f conftest.val
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2253 } # ac_fn_c_compute_int
2255 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2256 # ----------------------------------------------------
2257 # Tries to find if the field MEMBER exists in type AGGR, after including
2258 # INCLUDES, setting cache variable VAR accordingly.
2259 ac_fn_c_check_member ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2263 $as_echo_n "checking for $2.$3... " >&6; }
2264 if eval \${$4+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 static $2 ac_aggr;
2274 if (ac_aggr.$3)
2275 return 0;
2277 return 0;
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 eval "$4=yes"
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2287 main ()
2289 static $2 ac_aggr;
2290 if (sizeof ac_aggr.$3)
2291 return 0;
2293 return 0;
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$4=yes"
2298 else
2299 eval "$4=no"
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 eval ac_res=\$$4
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 } # ac_fn_c_check_member
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2316 generated by GNU Autoconf 2.69. Invocation command line was
2318 $ $0 $@
2320 _ACEOF
2321 exec 5>>config.log
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2345 _ASUNAME
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354 IFS=$as_save_IFS
2356 } >&5
2358 cat >&5 <<_ACEOF
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2365 _ACEOF
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2379 for ac_arg
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2408 as_fn_append ac_configure_args " '$ac_arg'"
2410 esac
2411 done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2424 echo
2426 $as_echo "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2457 esac |
2458 sort
2460 echo
2462 $as_echo "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2465 echo
2466 for ac_var in $ac_subst_vars
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2476 if test -n "$ac_subst_files"; then
2477 $as_echo "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2480 echo
2481 for ac_var in $ac_subst_files
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2492 if test -s confdefs.h; then
2493 $as_echo "## ----------- ##
2494 ## confdefs.h. ##
2495 ## ----------- ##"
2496 echo
2497 cat confdefs.h
2498 echo
2500 test "$ac_signal" != 0 &&
2501 $as_echo "$as_me: caught signal $ac_signal"
2502 $as_echo "$as_me: exit $exit_status"
2503 } >&5
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 exit $exit_status
2508 for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 done
2511 ac_signal=0
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2516 $as_echo "/* confdefs.h */" > confdefs.h
2518 # Predefined preprocessor variables.
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_NAME "$PACKAGE_NAME"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_STRING "$PACKAGE_STRING"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_URL "$PACKAGE_URL"
2542 _ACEOF
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 ac_site_file1=NONE
2548 ac_site_file2=NONE
2549 if test -n "$CONFIG_SITE"; then
2550 # We do not want a PATH search for config.site.
2551 case $CONFIG_SITE in #((
2552 -*) ac_site_file1=./$CONFIG_SITE;;
2553 */*) ac_site_file1=$CONFIG_SITE;;
2554 *) ac_site_file1=./$CONFIG_SITE;;
2555 esac
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2559 else
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2565 test "x$ac_site_file" = xNONE && continue
2566 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2570 . "$ac_site_file" \
2571 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "failed to load site script $ac_site_file
2574 See \`config.log' for more details" "$LINENO" 5; }
2576 done
2578 if test -r "$cache_file"; then
2579 # Some versions of bash will fail to source /dev/null (special files
2580 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2581 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 case $cache_file in
2585 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586 *) . "./$cache_file";;
2587 esac
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 >$cache_file
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/random.h"
2597 as_fn_append ac_header_list " sys/time.h"
2598 as_fn_append ac_header_list " sys/times.h"
2599 as_fn_append ac_header_list " sys/resource.h"
2600 as_fn_append ac_header_list " sys/types.h"
2601 as_fn_append ac_header_list " sys/stat.h"
2602 as_fn_append ac_header_list " sys/uio.h"
2603 as_fn_append ac_header_list " sys/wait.h"
2604 as_fn_append ac_header_list " floatingpoint.h"
2605 as_fn_append ac_header_list " ieeefp.h"
2606 as_fn_append ac_header_list " fenv.h"
2607 as_fn_append ac_header_list " fptrap.h"
2608 as_fn_append ac_header_list " fpxcp.h"
2609 as_fn_append ac_header_list " pwd.h"
2610 as_fn_append ac_header_list " complex.h"
2611 as_fn_append ac_header_list " xlocale.h"
2612 as_fn_append ac_func_list " getrusage"
2613 as_fn_append ac_func_list " times"
2614 as_fn_append ac_func_list " mkstemp"
2615 as_fn_append ac_func_list " strtof"
2616 as_fn_append ac_func_list " strtold"
2617 as_fn_append ac_func_list " snprintf"
2618 as_fn_append ac_func_list " ftruncate"
2619 as_fn_append ac_func_list " chsize"
2620 as_fn_append ac_func_list " chdir"
2621 as_fn_append ac_func_list " getentropy"
2622 as_fn_append ac_func_list " getlogin"
2623 as_fn_append ac_func_list " gethostname"
2624 as_fn_append ac_func_list " kill"
2625 as_fn_append ac_func_list " link"
2626 as_fn_append ac_func_list " symlink"
2627 as_fn_append ac_func_list " sleep"
2628 as_fn_append ac_func_list " ttyname"
2629 as_fn_append ac_func_list " alarm"
2630 as_fn_append ac_func_list " access"
2631 as_fn_append ac_func_list " fork"
2632 as_fn_append ac_func_list " setmode"
2633 as_fn_append ac_func_list " fcntl"
2634 as_fn_append ac_func_list " writev"
2635 as_fn_append ac_func_list " gettimeofday"
2636 as_fn_append ac_func_list " stat"
2637 as_fn_append ac_func_list " fstat"
2638 as_fn_append ac_func_list " lstat"
2639 as_fn_append ac_func_list " getpwuid"
2640 as_fn_append ac_func_list " vsnprintf"
2641 as_fn_append ac_func_list " dup"
2642 as_fn_append ac_func_list " getcwd"
2643 as_fn_append ac_func_list " localtime_r"
2644 as_fn_append ac_func_list " gmtime_r"
2645 as_fn_append ac_func_list " getpwuid_r"
2646 as_fn_append ac_func_list " ttyname_r"
2647 as_fn_append ac_func_list " clock_gettime"
2648 as_fn_append ac_func_list " getgid"
2649 as_fn_append ac_func_list " getpid"
2650 as_fn_append ac_func_list " getuid"
2651 as_fn_append ac_func_list " geteuid"
2652 as_fn_append ac_func_list " umask"
2653 as_fn_append ac_func_list " getegid"
2654 as_fn_append ac_func_list " secure_getenv"
2655 as_fn_append ac_func_list " __secure_getenv"
2656 as_fn_append ac_func_list " mkostemp"
2657 as_fn_append ac_func_list " strnlen"
2658 as_fn_append ac_func_list " strndup"
2659 as_fn_append ac_func_list " newlocale"
2660 as_fn_append ac_func_list " freelocale"
2661 as_fn_append ac_func_list " uselocale"
2662 as_fn_append ac_func_list " strerror_l"
2663 as_fn_append ac_header_list " math.h"
2664 # Check that the precious variables saved in the cache have kept the same
2665 # value.
2666 ac_cache_corrupted=false
2667 for ac_var in $ac_precious_vars; do
2668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669 eval ac_new_set=\$ac_env_${ac_var}_set
2670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671 eval ac_new_val=\$ac_env_${ac_var}_value
2672 case $ac_old_set,$ac_new_set in
2673 set,)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,set)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2681 ,);;
2683 if test "x$ac_old_val" != "x$ac_new_val"; then
2684 # differences in whitespace do not lead to failure.
2685 ac_old_val_w=`echo x $ac_old_val`
2686 ac_new_val_w=`echo x $ac_new_val`
2687 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690 ac_cache_corrupted=:
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694 eval $ac_var=\$ac_old_val
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2697 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2699 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2700 fi;;
2701 esac
2702 # Pass precious variables to config.status.
2703 if test "$ac_new_set" = set; then
2704 case $ac_new_val in
2705 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 *) ac_arg=$ac_var=$ac_new_val ;;
2707 esac
2708 case " $ac_configure_args " in
2709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2710 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711 esac
2713 done
2714 if $ac_cache_corrupted; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2719 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2721 ## -------------------- ##
2722 ## Main body of script. ##
2723 ## -------------------- ##
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 ac_config_headers="$ac_config_headers config.h"
2737 ac_aux_dir=
2738 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2752 done
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 $as_echo_n "checking build system type... " >&6; }
2772 if ${ac_cv_build+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 ac_build_alias=$build_alias
2776 test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778 test "x$ac_build_alias" = x &&
2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785 $as_echo "$ac_cv_build" >&6; }
2786 case $ac_cv_build in
2787 *-*-*) ;;
2788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 esac
2790 build=$ac_cv_build
2791 ac_save_IFS=$IFS; IFS='-'
2792 set x $ac_cv_build
2793 shift
2794 build_cpu=$1
2795 build_vendor=$2
2796 shift; shift
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2799 build_os=$*
2800 IFS=$ac_save_IFS
2801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2804 case ${build_alias} in
2805 "") build_noncanonical=${build} ;;
2806 *) build_noncanonical=${build_alias} ;;
2807 esac
2809 case ${host_alias} in
2810 "") host_noncanonical=${build_noncanonical} ;;
2811 *) host_noncanonical=${host_alias} ;;
2812 esac
2814 case ${target_alias} in
2815 "") target_noncanonical=${host_noncanonical} ;;
2816 *) target_noncanonical=${target_alias} ;;
2817 esac
2820 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2821 # have matching libraries, they should use host libraries: Makefile.tpl
2822 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2823 # However, they still use the build modules, because the corresponding
2824 # host modules (e.g. bison) are only built for the host when bootstrap
2825 # finishes. So:
2826 # - build_subdir is where we find build modules, and never changes.
2827 # - build_libsubdir is where we find build libraries, and can be overridden.
2829 # Prefix 'build-' so this never conflicts with target_subdir.
2830 build_subdir="build-${build_noncanonical}"
2832 # Check whether --with-build-libsubdir was given.
2833 if test "${with_build_libsubdir+set}" = set; then :
2834 withval=$with_build_libsubdir; build_libsubdir="$withval"
2835 else
2836 build_libsubdir="$build_subdir"
2839 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2840 if ( test $srcdir = . && test -d gcc ) \
2841 || test -d $srcdir/../host-${host_noncanonical}; then
2842 host_subdir="host-${host_noncanonical}"
2843 else
2844 host_subdir=.
2846 # No prefix.
2847 target_subdir=${target_noncanonical}
2850 # -------
2851 # Options
2852 # -------
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2855 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2856 # Check whether --enable-version-specific-runtime-libs was given.
2857 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2858 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2859 yes) version_specific_libs=yes ;;
2860 no) version_specific_libs=no ;;
2861 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2862 esac
2863 else
2864 version_specific_libs=no
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2868 $as_echo "$version_specific_libs" >&6; }
2870 # Build with intermodule optimisations
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2872 $as_echo_n "checking for --enable-intermodule... " >&6; }
2873 # Check whether --enable-intermodule was given.
2874 if test "${enable_intermodule+set}" = set; then :
2875 enableval=$enable_intermodule; case "$enable_intermodule" in
2876 yes) onestep="-onestep";;
2877 *) onestep="";;
2878 esac
2879 else
2880 onestep=""
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2884 $as_echo "$enable_intermodule" >&6; }
2885 if test x$onestep = x-onestep; then
2886 onestep_TRUE=
2887 onestep_FALSE='#'
2888 else
2889 onestep_TRUE='#'
2890 onestep_FALSE=
2895 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2897 # You will slowly go insane if you do not grok the following fact: when
2898 # building this library, the top-level /target/ becomes the library's /host/.
2900 # configure then causes --target to default to --host, exactly like any
2901 # other package using autoconf. Therefore, 'target' and 'host' will
2902 # always be the same. This makes sense both for native and cross compilers
2903 # just think about it for a little while. :-)
2905 # Also, if this library is being configured as part of a cross compiler, the
2906 # top-level configure script will pass the "real" host as $with_cross_host.
2908 # Do not delete or change the following two lines. For why, see
2909 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911 $as_echo_n "checking host system type... " >&6; }
2912 if ${ac_cv_host+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test "x$host_alias" = x; then
2916 ac_cv_host=$ac_cv_build
2917 else
2918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924 $as_echo "$ac_cv_host" >&6; }
2925 case $ac_cv_host in
2926 *-*-*) ;;
2927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2928 esac
2929 host=$ac_cv_host
2930 ac_save_IFS=$IFS; IFS='-'
2931 set x $ac_cv_host
2932 shift
2933 host_cpu=$1
2934 host_vendor=$2
2935 shift; shift
2936 # Remember, the first character of IFS is used to create $*,
2937 # except with old shells:
2938 host_os=$*
2939 IFS=$ac_save_IFS
2940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2944 $as_echo_n "checking target system type... " >&6; }
2945 if ${ac_cv_target+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test "x$target_alias" = x; then
2949 ac_cv_target=$ac_cv_host
2950 else
2951 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2957 $as_echo "$ac_cv_target" >&6; }
2958 case $ac_cv_target in
2959 *-*-*) ;;
2960 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2961 esac
2962 target=$ac_cv_target
2963 ac_save_IFS=$IFS; IFS='-'
2964 set x $ac_cv_target
2965 shift
2966 target_cpu=$1
2967 target_vendor=$2
2968 shift; shift
2969 # Remember, the first character of IFS is used to create $*,
2970 # except with old shells:
2971 target_os=$*
2972 IFS=$ac_save_IFS
2973 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2976 # The aliases save the names the user supplied, while $host etc.
2977 # will get canonicalized.
2978 test -n "$target_alias" &&
2979 test "$program_prefix$program_suffix$program_transform_name" = \
2980 NONENONEs,x,x, &&
2981 program_prefix=${target_alias}-
2986 target_alias=${target_alias-$host_alias}
2989 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2990 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2991 # 1.9.6: minimum required version
2992 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2993 # of other PACKAGE_* variables will, however, and there's nothing
2994 # we can do about that; they come from AC_INIT).
2995 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2996 # file in the top srcdir, etc, etc), so stop complaining.
2997 # no-dist: we don't want 'dist' and related rules.
2998 # -Wall: turns on all automake warnings...
2999 # -Wno-portability: ...except this one, since GNU make is required.
3000 am__api_version='1.15'
3002 # Find a good install program. We prefer a C program (faster),
3003 # so one script is as good as another. But avoid the broken or
3004 # incompatible versions:
3005 # SysV /etc/install, /usr/sbin/install
3006 # SunOS /usr/etc/install
3007 # IRIX /sbin/install
3008 # AIX /bin/install
3009 # AmigaOS /C/install, which installs bootblocks on floppy discs
3010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3013 # OS/2's system install, which has a completely different semantic
3014 # ./install, which can be erroneously created by make from ./install.sh.
3015 # Reject install programs that cannot install multiple files.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3017 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3018 if test -z "$INSTALL"; then
3019 if ${ac_cv_path_install+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 # Account for people who put trailing slashes in PATH elements.
3028 case $as_dir/ in #((
3029 ./ | .// | /[cC]/* | \
3030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3031 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3032 /usr/ucb/* ) ;;
3034 # OSF1 and SCO ODT 3.0 have their own names for install.
3035 # Don't use installbsd from OSF since it installs stuff as root
3036 # by default.
3037 for ac_prog in ginstall scoinst install; do
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3040 if test $ac_prog = install &&
3041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042 # AIX install. It has an incompatible calling convention.
3044 elif test $ac_prog = install &&
3045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3046 # program-specific install script used by HP pwplus--don't use.
3048 else
3049 rm -rf conftest.one conftest.two conftest.dir
3050 echo one > conftest.one
3051 echo two > conftest.two
3052 mkdir conftest.dir
3053 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3054 test -s conftest.one && test -s conftest.two &&
3055 test -s conftest.dir/conftest.one &&
3056 test -s conftest.dir/conftest.two
3057 then
3058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3059 break 3
3063 done
3064 done
3066 esac
3068 done
3069 IFS=$as_save_IFS
3071 rm -rf conftest.one conftest.two conftest.dir
3074 if test "${ac_cv_path_install+set}" = set; then
3075 INSTALL=$ac_cv_path_install
3076 else
3077 # As a last resort, use the slow shell script. Don't cache a
3078 # value for INSTALL within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the value is a relative name.
3081 INSTALL=$ac_install_sh
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3085 $as_echo "$INSTALL" >&6; }
3087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3088 # It thinks the first close brace ends the variable substitution.
3089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3096 $as_echo_n "checking whether build environment is sane... " >&6; }
3097 # Reject unsafe characters in $srcdir or the absolute working directory
3098 # name. Accept space and tab only in the latter.
3099 am_lf='
3101 case `pwd` in
3102 *[\\\"\#\$\&\'\`$am_lf]*)
3103 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3104 esac
3105 case $srcdir in
3106 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3107 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3108 esac
3110 # Do 'set' in a subshell so we don't clobber the current shell's
3111 # arguments. Must try -L first in case configure is actually a
3112 # symlink; some systems play weird games with the mod time of symlinks
3113 # (eg FreeBSD returns the mod time of the symlink's containing
3114 # directory).
3115 if (
3116 am_has_slept=no
3117 for am_try in 1 2; do
3118 echo "timestamp, slept: $am_has_slept" > conftest.file
3119 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3120 if test "$*" = "X"; then
3121 # -L didn't work.
3122 set X `ls -t "$srcdir/configure" conftest.file`
3124 if test "$*" != "X $srcdir/configure conftest.file" \
3125 && test "$*" != "X conftest.file $srcdir/configure"; then
3127 # If neither matched, then we have a broken ls. This can happen
3128 # if, for instance, CONFIG_SHELL is bash and it inherits a
3129 # broken ls alias from the environment. This has actually
3130 # happened. Such a system could not be considered "sane".
3131 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3132 alias in your environment" "$LINENO" 5
3134 if test "$2" = conftest.file || test $am_try -eq 2; then
3135 break
3137 # Just in case.
3138 sleep 1
3139 am_has_slept=yes
3140 done
3141 test "$2" = conftest.file
3143 then
3144 # Ok.
3146 else
3147 as_fn_error $? "newly created file is older than distributed files!
3148 Check your system clock" "$LINENO" 5
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3152 # If we didn't sleep, we still need to ensure time stamps of config.status and
3153 # generated files are strictly newer.
3154 am_sleep_pid=
3155 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3156 ( sleep 1 ) &
3157 am_sleep_pid=$!
3160 rm -f conftest.file
3162 test "$program_prefix" != NONE &&
3163 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3164 # Use a double $ so make ignores it.
3165 test "$program_suffix" != NONE &&
3166 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3167 # Double any \ or $.
3168 # By default was `s,x,x', remove it if useless.
3169 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3170 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3172 # Expand $ac_aux_dir to an absolute path.
3173 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3175 if test x"${MISSING+set}" != xset; then
3176 case $am_aux_dir in
3177 *\ * | *\ *)
3178 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3180 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3181 esac
3183 # Use eval to expand $SHELL
3184 if eval "$MISSING --is-lightweight"; then
3185 am_missing_run="$MISSING "
3186 else
3187 am_missing_run=
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3189 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3192 if test x"${install_sh+set}" != xset; then
3193 case $am_aux_dir in
3194 *\ * | *\ *)
3195 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3197 install_sh="\${SHELL} $am_aux_dir/install-sh"
3198 esac
3201 # Installed binaries are usually stripped using 'strip' when the user
3202 # run "make install-strip". However 'strip' might not be the right
3203 # tool to use in cross-compilation environments, therefore Automake
3204 # will honor the 'STRIP' environment variable to overrule this program.
3205 if test "$cross_compiling" != no; then
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}strip; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_STRIP+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$STRIP"; then
3215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3228 done
3229 done
3230 IFS=$as_save_IFS
3234 STRIP=$ac_cv_prog_STRIP
3235 if test -n "$STRIP"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3237 $as_echo "$STRIP" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3245 if test -z "$ac_cv_prog_STRIP"; then
3246 ac_ct_STRIP=$STRIP
3247 # Extract the first word of "strip", so it can be a program name with args.
3248 set dummy strip; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$ac_ct_STRIP"; then
3255 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_ac_ct_STRIP="strip"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3268 done
3269 done
3270 IFS=$as_save_IFS
3274 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3275 if test -n "$ac_ct_STRIP"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3277 $as_echo "$ac_ct_STRIP" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3283 if test "x$ac_ct_STRIP" = x; then
3284 STRIP=":"
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned=yes ;;
3291 esac
3292 STRIP=$ac_ct_STRIP
3294 else
3295 STRIP="$ac_cv_prog_STRIP"
3299 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3302 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3303 if test -z "$MKDIR_P"; then
3304 if ${ac_cv_path_mkdir+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_prog in mkdir gmkdir; do
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3315 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3316 'mkdir (GNU coreutils) '* | \
3317 'mkdir (coreutils) '* | \
3318 'mkdir (fileutils) '4.1*)
3319 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3320 break 3;;
3321 esac
3322 done
3323 done
3324 done
3325 IFS=$as_save_IFS
3329 test -d ./--version && rmdir ./--version
3330 if test "${ac_cv_path_mkdir+set}" = set; then
3331 MKDIR_P="$ac_cv_path_mkdir -p"
3332 else
3333 # As a last resort, use the slow shell script. Don't cache a
3334 # value for MKDIR_P within a source directory, because that will
3335 # break other packages using the cache if that directory is
3336 # removed, or if the value is a relative name.
3337 MKDIR_P="$ac_install_sh -d"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3341 $as_echo "$MKDIR_P" >&6; }
3343 for ac_prog in gawk mawk nawk awk
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_AWK+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$AWK"; then
3353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_AWK="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3366 done
3367 done
3368 IFS=$as_save_IFS
3372 AWK=$ac_cv_prog_AWK
3373 if test -n "$AWK"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3375 $as_echo "$AWK" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$AWK" && break
3383 done
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3386 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3387 set x ${MAKE-make}
3388 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3389 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 cat >conftest.make <<\_ACEOF
3393 SHELL = /bin/sh
3394 all:
3395 @echo '@@@%%%=$(MAKE)=@@@%%%'
3396 _ACEOF
3397 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3399 *@@@%%%=?*=@@@%%%*)
3400 eval ac_cv_prog_make_${ac_make}_set=yes;;
3402 eval ac_cv_prog_make_${ac_make}_set=no;;
3403 esac
3404 rm -f conftest.make
3406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3409 SET_MAKE=
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 SET_MAKE="MAKE=${MAKE-make}"
3416 rm -rf .tst 2>/dev/null
3417 mkdir .tst 2>/dev/null
3418 if test -d .tst; then
3419 am__leading_dot=.
3420 else
3421 am__leading_dot=_
3423 rmdir .tst 2>/dev/null
3425 # Check whether --enable-silent-rules was given.
3426 if test "${enable_silent_rules+set}" = set; then :
3427 enableval=$enable_silent_rules;
3430 case $enable_silent_rules in # (((
3431 yes) AM_DEFAULT_VERBOSITY=0;;
3432 no) AM_DEFAULT_VERBOSITY=1;;
3433 *) AM_DEFAULT_VERBOSITY=1;;
3434 esac
3435 am_make=${MAKE-make}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3438 if ${am_cv_make_support_nested_variables+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if $as_echo 'TRUE=$(BAR$(V))
3442 BAR0=false
3443 BAR1=true
3445 am__doit:
3446 @$(TRUE)
3447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3448 am_cv_make_support_nested_variables=yes
3449 else
3450 am_cv_make_support_nested_variables=no
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3455 if test $am_cv_make_support_nested_variables = yes; then
3456 AM_V='$(V)'
3457 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3458 else
3459 AM_V=$AM_DEFAULT_VERBOSITY
3460 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3462 AM_BACKSLASH='\'
3464 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3465 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3466 # is not polluted with repeated "-I."
3467 am__isrc=' -I$(srcdir)'
3468 # test to see if srcdir already configured
3469 if test -f $srcdir/config.status; then
3470 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3474 # test whether we have cygpath
3475 if test -z "$CYGPATH_W"; then
3476 if (cygpath --version) >/dev/null 2>/dev/null; then
3477 CYGPATH_W='cygpath -w'
3478 else
3479 CYGPATH_W=echo
3484 # Define the identity of the package.
3485 PACKAGE='libgfortran'
3486 VERSION='0.3'
3489 # Some tools Automake needs.
3491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3505 # For better backward compatibility. To be removed once Automake 1.9.x
3506 # dies out for good. For more background, see:
3507 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3508 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3509 mkdir_p='$(MKDIR_P)'
3511 # We need awk for the "check" target (and possibly the TAP driver). The
3512 # system "awk" is bad on some platforms.
3513 # Always define AMTAR for backward compatibility. Yes, it's still used
3514 # in the wild :-( We should find a proper way to deprecate it ...
3515 AMTAR='$${TAR-tar}'
3518 # We'll loop over all known methods to create a tar archive until one works.
3519 _am_tools='gnutar pax cpio none'
3521 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3528 # POSIX will say in a future version that running "rm -f" with no argument
3529 # is OK; and we want to be able to make that assumption in our Makefile
3530 # recipes. So use an aggressive probe to check that the usage we want is
3531 # actually supported "in the wild" to an acceptable degree.
3532 # See automake bug#10828.
3533 # To make any issue more visible, cause the running configure to be aborted
3534 # by default if the 'rm' program in use doesn't match our expectations; the
3535 # user can still override this though.
3536 if rm -f && rm -fr && rm -rf; then : OK; else
3537 cat >&2 <<'END'
3538 Oops!
3540 Your 'rm' program seems unable to run without file operands specified
3541 on the command line, even when the '-f' option is present. This is contrary
3542 to the behaviour of most rm programs out there, and not conforming with
3543 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3545 Please tell bug-automake@gnu.org about your system, including the value
3546 of your $PATH and any error possibly output before this message. This
3547 can help us improve future automake versions.
3550 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3551 echo 'Configuration will proceed anyway, since you have set the' >&2
3552 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3553 echo >&2
3554 else
3555 cat >&2 <<'END'
3556 Aborting the configuration process, to ensure you take notice of the issue.
3558 You can download and install GNU coreutils to get an 'rm' implementation
3559 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3561 If you want to complete the configuration process using your problematic
3562 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3563 to "yes", and re-run configure.
3566 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3574 # Check whether --enable-maintainer-mode was given.
3575 if test "${enable_maintainer_mode+set}" = set; then :
3576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3577 else
3578 USE_MAINTAINER_MODE=no
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3582 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3583 if test $USE_MAINTAINER_MODE = yes; then
3584 MAINTAINER_MODE_TRUE=
3585 MAINTAINER_MODE_FALSE='#'
3586 else
3587 MAINTAINER_MODE_TRUE='#'
3588 MAINTAINER_MODE_FALSE=
3591 MAINT=$MAINTAINER_MODE_TRUE
3594 # Default to --enable-multilib
3595 # Check whether --enable-multilib was given.
3596 if test "${enable_multilib+set}" = set; then :
3597 enableval=$enable_multilib; case "$enableval" in
3598 yes) multilib=yes ;;
3599 no) multilib=no ;;
3600 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3601 esac
3602 else
3603 multilib=yes
3607 # We may get other options which we leave undocumented:
3608 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3609 # See config-ml.in if you want the gory details.
3611 if test "$srcdir" = "."; then
3612 if test "$with_target_subdir" != "."; then
3613 multi_basedir="$srcdir/$with_multisrctop../.."
3614 else
3615 multi_basedir="$srcdir/$with_multisrctop.."
3617 else
3618 multi_basedir="$srcdir/.."
3622 # Even if the default multilib is not a cross compilation,
3623 # it may be that some of the other multilibs are.
3624 if test $cross_compiling = no && test $multilib = yes \
3625 && test "x${with_multisubdir}" != x ; then
3626 cross_compiling=maybe
3629 ac_config_commands="$ac_config_commands default-1"
3632 # Handy for debugging:
3633 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3635 # Are we being configured with some form of cross compiler?
3636 # NB: We don't actually need to know this just now, but when, say, a test
3637 # suite is included, we'll have to know.
3638 if test "$build" != "$host"; then
3639 LIBGFOR_IS_NATIVE=false
3641 else
3642 LIBGFOR_IS_NATIVE=true
3645 DEPDIR="${am__leading_dot}deps"
3647 ac_config_commands="$ac_config_commands depfiles"
3650 am_make=${MAKE-make}
3651 cat > confinc << 'END'
3652 am__doit:
3653 @echo this is the am__doit target
3654 .PHONY: am__doit
3656 # If we don't find an include directive, just comment out the code.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3658 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3659 am__include="#"
3660 am__quote=
3661 _am_result=none
3662 # First try GNU make style include.
3663 echo "include confinc" > confmf
3664 # Ignore all kinds of additional output from 'make'.
3665 case `$am_make -s -f confmf 2> /dev/null` in #(
3666 *the\ am__doit\ target*)
3667 am__include=include
3668 am__quote=
3669 _am_result=GNU
3671 esac
3672 # Now try BSD make style include.
3673 if test "$am__include" = "#"; then
3674 echo '.include "confinc"' > confmf
3675 case `$am_make -s -f confmf 2> /dev/null` in #(
3676 *the\ am__doit\ target*)
3677 am__include=.include
3678 am__quote="\""
3679 _am_result=BSD
3681 esac
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3686 $as_echo "$_am_result" >&6; }
3687 rm -f confinc confmf
3689 # Check whether --enable-dependency-tracking was given.
3690 if test "${enable_dependency_tracking+set}" = set; then :
3691 enableval=$enable_dependency_tracking;
3694 if test "x$enable_dependency_tracking" != xno; then
3695 am_depcomp="$ac_aux_dir/depcomp"
3696 AMDEPBACKSLASH='\'
3697 am__nodep='_no'
3699 if test "x$enable_dependency_tracking" != xno; then
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702 else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 if test -n "$ac_tool_prefix"; then
3714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3715 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_prog_CC+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3735 done
3736 done
3737 IFS=$as_save_IFS
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 $as_echo "$CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3752 if test -z "$ac_cv_prog_CC"; then
3753 ac_ct_CC=$CC
3754 # Extract the first word of "gcc", so it can be a program name with args.
3755 set dummy gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_ac_ct_CC="gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CC=$ac_ct_CC
3801 else
3802 CC="$ac_cv_prog_CC"
3805 if test -z "$CC"; then
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}cc; ac_word=$2
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 $as_echo_n "checking for $ac_word... " >&6; }
3811 if ${ac_cv_prog_CC+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -n "$CC"; then
3815 ac_cv_prog_CC="$CC" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_CC="${ac_tool_prefix}cc"
3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3830 IFS=$as_save_IFS
3834 CC=$ac_cv_prog_CC
3835 if test -n "$CC"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3837 $as_echo "$CC" >&6; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3846 if test -z "$CC"; then
3847 # Extract the first word of "cc", so it can be a program name with args.
3848 set dummy cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_CC+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 ac_prog_rejected=no
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3866 ac_prog_rejected=yes
3867 continue
3869 ac_cv_prog_CC="cc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3873 done
3874 done
3875 IFS=$as_save_IFS
3877 if test $ac_prog_rejected = yes; then
3878 # We found a bogon in the path, so make sure we never use it.
3879 set dummy $ac_cv_prog_CC
3880 shift
3881 if test $# != 0; then
3882 # We chose a different compiler from the bogus one.
3883 # However, it has the same basename, so the bogon will be chosen
3884 # first if we set CC to just the basename; use the full file name.
3885 shift
3886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3891 CC=$ac_cv_prog_CC
3892 if test -n "$CC"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894 $as_echo "$CC" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3902 if test -z "$CC"; then
3903 if test -n "$ac_tool_prefix"; then
3904 for ac_prog in cl.exe
3906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if ${ac_cv_prog_CC+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3927 done
3928 done
3929 IFS=$as_save_IFS
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3943 test -n "$CC" && break
3944 done
3946 if test -z "$CC"; then
3947 ac_ct_CC=$CC
3948 for ac_prog in cl.exe
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951 set dummy $ac_prog; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 if test -n "$ac_ct_CC"; then
3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_CC="$ac_prog"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3971 done
3972 done
3973 IFS=$as_save_IFS
3977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978 if test -n "$ac_ct_CC"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980 $as_echo "$ac_ct_CC" >&6; }
3981 else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3987 test -n "$ac_ct_CC" && break
3988 done
3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994 yes:)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997 ac_tool_warned=yes ;;
3998 esac
3999 CC=$ac_ct_CC
4006 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "no acceptable C compiler found in \$PATH
4009 See \`config.log' for more details" "$LINENO" 5; }
4011 # Provide some information about the compiler.
4012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4013 set X $ac_compile
4014 ac_compiler=$2
4015 for ac_option in --version -v -V -qversion; do
4016 { { ac_try="$ac_compiler $ac_option >&5"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4024 ac_status=$?
4025 if test -s conftest.err; then
4026 sed '10a\
4027 ... rest of stderr output deleted ...
4028 10q' conftest.err >conftest.er1
4029 cat conftest.er1 >&5
4031 rm -f conftest.er1 conftest.err
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 done
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4044 return 0;
4046 _ACEOF
4047 # FIXME: Cleanup?
4048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4049 (eval $ac_link) 2>&5
4050 ac_status=$?
4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }; then :
4053 gcc_no_link=no
4054 else
4055 gcc_no_link=yes
4057 if test x$gcc_no_link = xyes; then
4058 # Setting cross_compile will disable run tests; it will
4059 # also disable AC_CHECK_FILE but that's generally
4060 # correct if we can't link.
4061 cross_compiling=yes
4062 EXEEXT=
4063 else
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 ac_clean_files_save=$ac_clean_files
4076 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4077 # Try to create an executable without -o first, disregard a.out.
4078 # It will help us diagnose broken compilers, and finding out an intuition
4079 # of exeext.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4081 $as_echo_n "checking whether the C compiler works... " >&6; }
4082 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4084 # The possible output files:
4085 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4087 ac_rmfiles=
4088 for ac_file in $ac_files
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4093 esac
4094 done
4095 rm -f $ac_rmfiles
4097 if { { ac_try="$ac_link_default"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_link_default") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4110 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4111 # so that the user can short-circuit this test for compilers unknown to
4112 # Autoconf.
4113 for ac_file in $ac_files ''
4115 test -f "$ac_file" || continue
4116 case $ac_file in
4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4119 [ab].out )
4120 # We found the default executable, but exeext='' is most
4121 # certainly right.
4122 break;;
4123 *.* )
4124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4125 then :; else
4126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4128 # We set ac_cv_exeext here because the later test for it is not
4129 # safe: cross compilers may not add the suffix if given an `-o'
4130 # argument, so we may need to know it at that point already.
4131 # Even if this section looks crufty: it has the advantage of
4132 # actually working.
4133 break;;
4135 break;;
4136 esac
4137 done
4138 test "$ac_cv_exeext" = no && ac_cv_exeext=
4140 else
4141 ac_file=''
4143 if test -z "$ac_file"; then :
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4151 as_fn_error 77 "C compiler cannot create executables
4152 See \`config.log' for more details" "$LINENO" 5; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155 $as_echo "yes" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4158 $as_echo_n "checking for C compiler default output file name... " >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4160 $as_echo "$ac_file" >&6; }
4161 ac_exeext=$ac_cv_exeext
4163 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4164 ac_clean_files=$ac_clean_files_save
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4166 $as_echo_n "checking for suffix of executables... " >&6; }
4167 if { { ac_try="$ac_link"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_link") 2>&5
4175 ac_status=$?
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; then :
4178 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4179 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4180 # work properly (i.e., refer to `conftest.exe'), while it won't with
4181 # `rm'.
4182 for ac_file in conftest.exe conftest conftest.*; do
4183 test -f "$ac_file" || continue
4184 case $ac_file in
4185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4186 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4187 break;;
4188 * ) break;;
4189 esac
4190 done
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4195 See \`config.log' for more details" "$LINENO" 5; }
4197 rm -f conftest conftest$ac_cv_exeext
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4199 $as_echo "$ac_cv_exeext" >&6; }
4201 rm -f conftest.$ac_ext
4202 EXEEXT=$ac_cv_exeext
4203 ac_exeext=$EXEEXT
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdio.h>
4208 main ()
4210 FILE *f = fopen ("conftest.out", "w");
4211 return ferror (f) || fclose (f) != 0;
4214 return 0;
4216 _ACEOF
4217 ac_clean_files="$ac_clean_files conftest.out"
4218 # Check that the compiler produces executables we can run. If not, either
4219 # the compiler is broken, or we cross compile.
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4221 $as_echo_n "checking whether we are cross compiling... " >&6; }
4222 if test "$cross_compiling" != yes; then
4223 { { ac_try="$ac_link"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229 $as_echo "$ac_try_echo"; } >&5
4230 (eval "$ac_link") 2>&5
4231 ac_status=$?
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 if { ac_try='./conftest$ac_cv_exeext'
4235 { { case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }; }; then
4245 cross_compiling=no
4246 else
4247 if test "$cross_compiling" = maybe; then
4248 cross_compiling=yes
4249 else
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252 as_fn_error $? "cannot run C compiled programs.
4253 If you meant to cross compile, use \`--host'.
4254 See \`config.log' for more details" "$LINENO" 5; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4259 $as_echo "$cross_compiling" >&6; }
4261 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4262 ac_clean_files=$ac_clean_files_save
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4265 $as_echo_n "checking for suffix of object files... " >&6; }
4266 if ${ac_cv_objext+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4277 return 0;
4279 _ACEOF
4280 rm -f conftest.o conftest.obj
4281 if { { ac_try="$ac_compile"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_compile") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; then :
4292 for ac_file in conftest.o conftest.obj conftest.*; do
4293 test -f "$ac_file" || continue;
4294 case $ac_file in
4295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4297 break;;
4298 esac
4299 done
4300 else
4301 $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $? "cannot compute suffix of object files: cannot compile
4307 See \`config.log' for more details" "$LINENO" 5; }
4309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4312 $as_echo "$ac_cv_objext" >&6; }
4313 OBJEXT=$ac_cv_objext
4314 ac_objext=$OBJEXT
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4316 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4317 if ${ac_cv_c_compiler_gnu+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 main ()
4326 #ifndef __GNUC__
4327 choke me
4328 #endif
4331 return 0;
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_compiler_gnu=yes
4336 else
4337 ac_compiler_gnu=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4344 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4345 if test $ac_compiler_gnu = yes; then
4346 GCC=yes
4347 else
4348 GCC=
4350 ac_test_CFLAGS=${CFLAGS+set}
4351 ac_save_CFLAGS=$CFLAGS
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4353 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4354 if ${ac_cv_prog_cc_g+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_save_c_werror_flag=$ac_c_werror_flag
4358 ac_c_werror_flag=yes
4359 ac_cv_prog_cc_g=no
4360 CFLAGS="-g"
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4365 main ()
4369 return 0;
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373 ac_cv_prog_cc_g=yes
4374 else
4375 CFLAGS=""
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4380 main ()
4384 return 0;
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"; then :
4389 else
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 CFLAGS="-g"
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4396 main ()
4400 return 0;
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_g=yes
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 ac_c_werror_flag=$ac_save_c_werror_flag
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4414 $as_echo "$ac_cv_prog_cc_g" >&6; }
4415 if test "$ac_test_CFLAGS" = set; then
4416 CFLAGS=$ac_save_CFLAGS
4417 elif test $ac_cv_prog_cc_g = yes; then
4418 if test "$GCC" = yes; then
4419 CFLAGS="-g -O2"
4420 else
4421 CFLAGS="-g"
4423 else
4424 if test "$GCC" = yes; then
4425 CFLAGS="-O2"
4426 else
4427 CFLAGS=
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4431 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4432 if ${ac_cv_prog_cc_c89+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 ac_cv_prog_cc_c89=no
4436 ac_save_CC=$CC
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <stdarg.h>
4440 #include <stdio.h>
4441 struct stat;
4442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4443 struct buf { int x; };
4444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4445 static char *e (p, i)
4446 char **p;
4447 int i;
4449 return p[i];
4451 static char *f (char * (*g) (char **, int), char **p, ...)
4453 char *s;
4454 va_list v;
4455 va_start (v,p);
4456 s = g (p, va_arg (v,int));
4457 va_end (v);
4458 return s;
4461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4462 function prototypes and stuff, but not '\xHH' hex character constants.
4463 These don't provoke an error unfortunately, instead are silently treated
4464 as 'x'. The following induces an error, until -std is added to get
4465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4466 array size at least. It's necessary to write '\x00'==0 to get something
4467 that's true only with -std. */
4468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4471 inside strings and character constants. */
4472 #define FOO(x) 'x'
4473 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4475 int test (int i, double x);
4476 struct s1 {int (*f) (int a);};
4477 struct s2 {int (*f) (double a);};
4478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4479 int argc;
4480 char **argv;
4482 main ()
4484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4486 return 0;
4488 _ACEOF
4489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4490 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4492 CC="$ac_save_CC $ac_arg"
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_prog_cc_c89=$ac_arg
4496 rm -f core conftest.err conftest.$ac_objext
4497 test "x$ac_cv_prog_cc_c89" != "xno" && break
4498 done
4499 rm -f conftest.$ac_ext
4500 CC=$ac_save_CC
4503 # AC_CACHE_VAL
4504 case "x$ac_cv_prog_cc_c89" in
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4507 $as_echo "none needed" >&6; } ;;
4508 xno)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4510 $as_echo "unsupported" >&6; } ;;
4512 CC="$CC $ac_cv_prog_cc_c89"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4514 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4515 esac
4516 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4532 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4533 if ${am_cv_prog_cc_c_o+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4540 main ()
4544 return 0;
4546 _ACEOF
4547 # Make sure it works both with $CC and with simple cc.
4548 # Following AC_PROG_CC_C_O, we do the test twice because some
4549 # compilers refuse to overwrite an existing .o file with -o,
4550 # though they will create one.
4551 am_cv_prog_cc_c_o=yes
4552 for am_i in 1 2; do
4553 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4554 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } \
4558 && test -f conftest2.$ac_objext; then
4559 : OK
4560 else
4561 am_cv_prog_cc_c_o=no
4562 break
4564 done
4565 rm -f core conftest*
4566 unset am_i
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4569 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4570 if test "$am_cv_prog_cc_c_o" != yes; then
4571 # Losing compiler, so override with the script.
4572 # FIXME: It is wrong to rewrite CC.
4573 # But if we don't then we get into trouble of one sort or another.
4574 # A longer-term fix would be to have automake use am__CC in this case,
4575 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4576 CC="$am_aux_dir/compile $CC"
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 depcc="$CC" am_compiler_list=
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4588 $as_echo_n "checking dependency style of $depcc... " >&6; }
4589 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593 # We make a subdir and do the tests there. Otherwise we can end up
4594 # making bogus files that we don't know about and never remove. For
4595 # instance it was reported that on HP-UX the gcc test will end up
4596 # making a dummy file named 'D' -- because '-MD' means "put the output
4597 # in D".
4598 rm -rf conftest.dir
4599 mkdir conftest.dir
4600 # Copy depcomp to subdir because otherwise we won't find it if we're
4601 # using a relative directory.
4602 cp "$am_depcomp" conftest.dir
4603 cd conftest.dir
4604 # We will build objects and dependencies in a subdirectory because
4605 # it helps to detect inapplicable dependency modes. For instance
4606 # both Tru64's cc and ICC support -MD to output dependencies as a
4607 # side effect of compilation, but ICC will put the dependencies in
4608 # the current directory while Tru64 will put them in the object
4609 # directory.
4610 mkdir sub
4612 am_cv_CC_dependencies_compiler_type=none
4613 if test "$am_compiler_list" = ""; then
4614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4616 am__universal=false
4617 case " $depcc " in #(
4618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619 esac
4621 for depmode in $am_compiler_list; do
4622 # Setup a source with many dependencies, because some compilers
4623 # like to wrap large dependency lists on column 80 (with \), and
4624 # we should not choose a depcomp mode which is confused by this.
4626 # We need to recreate these files for each test, as the compiler may
4627 # overwrite some of them when testing with obscure command lines.
4628 # This happens at least with the AIX C compiler.
4629 : > sub/conftest.c
4630 for i in 1 2 3 4 5 6; do
4631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4632 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4633 # Solaris 10 /bin/sh.
4634 echo '/* dummy */' > sub/conftst$i.h
4635 done
4636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4638 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4639 # mode. It turns out that the SunPro C++ compiler does not properly
4640 # handle '-M -o', and we need to detect this. Also, some Intel
4641 # versions had trouble with output in subdirs.
4642 am__obj=sub/conftest.${OBJEXT-o}
4643 am__minus_obj="-o $am__obj"
4644 case $depmode in
4645 gcc)
4646 # This depmode causes a compiler race in universal mode.
4647 test "$am__universal" = false || continue
4649 nosideeffect)
4650 # After this tag, mechanisms are not by side-effect, so they'll
4651 # only be used when explicitly requested.
4652 if test "x$enable_dependency_tracking" = xyes; then
4653 continue
4654 else
4655 break
4658 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4659 # This compiler won't grok '-c -o', but also, the minuso test has
4660 # not run yet. These depmodes are late enough in the game, and
4661 # so weak that their functioning should not be impacted.
4662 am__obj=conftest.${OBJEXT-o}
4663 am__minus_obj=
4665 none) break ;;
4666 esac
4667 if depmode=$depmode \
4668 source=sub/conftest.c object=$am__obj \
4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4671 >/dev/null 2>conftest.err &&
4672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676 # icc doesn't choke on unknown options, it will just issue warnings
4677 # or remarks (even with -Werror). So we grep stderr for any message
4678 # that says an option was ignored or not supported.
4679 # When given -MP, icc 7.0 and 7.1 complain thusly:
4680 # icc: Command line warning: ignoring option '-M'; no argument required
4681 # The diagnosis changed in icc 8.0:
4682 # icc: Command line remark: option '-MP' not supported
4683 if (grep 'ignoring option' conftest.err ||
4684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685 am_cv_CC_dependencies_compiler_type=$depmode
4686 break
4689 done
4691 cd ..
4692 rm -rf conftest.dir
4693 else
4694 am_cv_CC_dependencies_compiler_type=none
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703 test "x$enable_dependency_tracking" != xno \
4704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705 am__fastdepCC_TRUE=
4706 am__fastdepCC_FALSE='#'
4707 else
4708 am__fastdepCC_TRUE='#'
4709 am__fastdepCC_FALSE=
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4720 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4721 # On Suns, sometimes $CPP names a directory.
4722 if test -n "$CPP" && test -d "$CPP"; then
4723 CPP=
4725 if test -z "$CPP"; then
4726 if ${ac_cv_prog_CPP+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 # Double quotes because CPP needs to be expanded
4730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4732 ac_preproc_ok=false
4733 for ac_c_preproc_warn_flag in '' yes
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if ac_fn_c_try_cpp "$LINENO"; then :
4752 else
4753 # Broken: fails on valid input.
4754 continue
4756 rm -f conftest.err conftest.i conftest.$ac_ext
4758 # OK, works on sane cases. Now check whether nonexistent headers
4759 # can be detected and how.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #include <ac_nonexistent.h>
4763 _ACEOF
4764 if ac_fn_c_try_cpp "$LINENO"; then :
4765 # Broken: success on invalid input.
4766 continue
4767 else
4768 # Passes both tests.
4769 ac_preproc_ok=:
4770 break
4772 rm -f conftest.err conftest.i conftest.$ac_ext
4774 done
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.i conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then :
4778 break
4781 done
4782 ac_cv_prog_CPP=$CPP
4785 CPP=$ac_cv_prog_CPP
4786 else
4787 ac_cv_prog_CPP=$CPP
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4790 $as_echo "$CPP" >&6; }
4791 ac_preproc_ok=false
4792 for ac_c_preproc_warn_flag in '' yes
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #ifdef __STDC__
4803 # include <limits.h>
4804 #else
4805 # include <assert.h>
4806 #endif
4807 Syntax error
4808 _ACEOF
4809 if ac_fn_c_try_cpp "$LINENO"; then :
4811 else
4812 # Broken: fails on valid input.
4813 continue
4815 rm -f conftest.err conftest.i conftest.$ac_ext
4817 # OK, works on sane cases. Now check whether nonexistent headers
4818 # can be detected and how.
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #include <ac_nonexistent.h>
4822 _ACEOF
4823 if ac_fn_c_try_cpp "$LINENO"; then :
4824 # Broken: success on invalid input.
4825 continue
4826 else
4827 # Passes both tests.
4828 ac_preproc_ok=:
4829 break
4831 rm -f conftest.err conftest.i conftest.$ac_ext
4833 done
4834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835 rm -f conftest.i conftest.err conftest.$ac_ext
4836 if $ac_preproc_ok; then :
4838 else
4839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4841 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4842 See \`config.log' for more details" "$LINENO" 5; }
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4854 if ${ac_cv_path_GREP+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -z "$GREP"; then
4858 ac_path_GREP_found=false
4859 # Loop through the user's path and test for each of PROGNAME-LIST
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_prog in grep ggrep; do
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4868 as_fn_executable_p "$ac_path_GREP" || continue
4869 # Check for GNU ac_path_GREP and select it if it is found.
4870 # Check for GNU $ac_path_GREP
4871 case `"$ac_path_GREP" --version 2>&1` in
4872 *GNU*)
4873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4875 ac_count=0
4876 $as_echo_n 0123456789 >"conftest.in"
4877 while :
4879 cat "conftest.in" "conftest.in" >"conftest.tmp"
4880 mv "conftest.tmp" "conftest.in"
4881 cp "conftest.in" "conftest.nl"
4882 $as_echo 'GREP' >> "conftest.nl"
4883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885 as_fn_arith $ac_count + 1 && ac_count=$as_val
4886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4887 # Best one so far, save it but keep looking for a better one
4888 ac_cv_path_GREP="$ac_path_GREP"
4889 ac_path_GREP_max=$ac_count
4891 # 10*(2^10) chars as input seems more than enough
4892 test $ac_count -gt 10 && break
4893 done
4894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895 esac
4897 $ac_path_GREP_found && break 3
4898 done
4899 done
4900 done
4901 IFS=$as_save_IFS
4902 if test -z "$ac_cv_path_GREP"; then
4903 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905 else
4906 ac_cv_path_GREP=$GREP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4911 $as_echo "$ac_cv_path_GREP" >&6; }
4912 GREP="$ac_cv_path_GREP"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4916 $as_echo_n "checking for egrep... " >&6; }
4917 if ${ac_cv_path_EGREP+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4921 then ac_cv_path_EGREP="$GREP -E"
4922 else
4923 if test -z "$EGREP"; then
4924 ac_path_EGREP_found=false
4925 # Loop through the user's path and test for each of PROGNAME-LIST
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_prog in egrep; do
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4934 as_fn_executable_p "$ac_path_EGREP" || continue
4935 # Check for GNU ac_path_EGREP and select it if it is found.
4936 # Check for GNU $ac_path_EGREP
4937 case `"$ac_path_EGREP" --version 2>&1` in
4938 *GNU*)
4939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4941 ac_count=0
4942 $as_echo_n 0123456789 >"conftest.in"
4943 while :
4945 cat "conftest.in" "conftest.in" >"conftest.tmp"
4946 mv "conftest.tmp" "conftest.in"
4947 cp "conftest.in" "conftest.nl"
4948 $as_echo 'EGREP' >> "conftest.nl"
4949 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951 as_fn_arith $ac_count + 1 && ac_count=$as_val
4952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4953 # Best one so far, save it but keep looking for a better one
4954 ac_cv_path_EGREP="$ac_path_EGREP"
4955 ac_path_EGREP_max=$ac_count
4957 # 10*(2^10) chars as input seems more than enough
4958 test $ac_count -gt 10 && break
4959 done
4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961 esac
4963 $ac_path_EGREP_found && break 3
4964 done
4965 done
4966 done
4967 IFS=$as_save_IFS
4968 if test -z "$ac_cv_path_EGREP"; then
4969 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4971 else
4972 ac_cv_path_EGREP=$EGREP
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4978 $as_echo "$ac_cv_path_EGREP" >&6; }
4979 EGREP="$ac_cv_path_EGREP"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4983 $as_echo_n "checking for ANSI C header files... " >&6; }
4984 if ${ac_cv_header_stdc+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <stdlib.h>
4990 #include <stdarg.h>
4991 #include <string.h>
4992 #include <float.h>
4995 main ()
4999 return 0;
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_header_stdc=yes
5004 else
5005 ac_cv_header_stdc=no
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 if test $ac_cv_header_stdc = yes; then
5010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <string.h>
5015 _ACEOF
5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "memchr" >/dev/null 2>&1; then :
5019 else
5020 ac_cv_header_stdc=no
5022 rm -f conftest*
5026 if test $ac_cv_header_stdc = yes; then
5027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <stdlib.h>
5032 _ACEOF
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 $EGREP "free" >/dev/null 2>&1; then :
5036 else
5037 ac_cv_header_stdc=no
5039 rm -f conftest*
5043 if test $ac_cv_header_stdc = yes; then
5044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5045 if test "$cross_compiling" = yes; then :
5047 else
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <ctype.h>
5051 #include <stdlib.h>
5052 #if ((' ' & 0x0FF) == 0x020)
5053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5055 #else
5056 # define ISLOWER(c) \
5057 (('a' <= (c) && (c) <= 'i') \
5058 || ('j' <= (c) && (c) <= 'r') \
5059 || ('s' <= (c) && (c) <= 'z'))
5060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5061 #endif
5063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5065 main ()
5067 int i;
5068 for (i = 0; i < 256; i++)
5069 if (XOR (islower (i), ISLOWER (i))
5070 || toupper (i) != TOUPPER (i))
5071 return 2;
5072 return 0;
5074 _ACEOF
5075 if ac_fn_c_try_run "$LINENO"; then :
5077 else
5078 ac_cv_header_stdc=no
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5081 conftest.$ac_objext conftest.beam conftest.$ac_ext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5087 $as_echo "$ac_cv_header_stdc" >&6; }
5088 if test $ac_cv_header_stdc = yes; then
5090 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5097 do :
5098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5102 cat >>confdefs.h <<_ACEOF
5103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104 _ACEOF
5108 done
5112 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5113 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5114 MINIX=yes
5115 else
5116 MINIX=
5120 if test "$MINIX" = yes; then
5122 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5125 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5128 $as_echo "#define _MINIX 1" >>confdefs.h
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5134 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5135 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5141 # define __EXTENSIONS__ 1
5142 $ac_includes_default
5144 main ()
5148 return 0;
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_safe_to_define___extensions__=yes
5153 else
5154 ac_cv_safe_to_define___extensions__=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5159 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5160 test $ac_cv_safe_to_define___extensions__ = yes &&
5161 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5163 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5165 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5167 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5169 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5173 # Calculate toolexeclibdir
5174 # Also toolexecdir, though it's only used in toolexeclibdir
5175 case ${version_specific_libs} in
5176 yes)
5177 # Need the gcc compiler version to know where to install libraries
5178 # and header files if --enable-version-specific-runtime-libs option
5179 # is selected.
5180 toolexecdir='$(libdir)/gcc/$(target_alias)'
5181 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5184 if test -n "$with_cross_host" &&
5185 test x"$with_cross_host" != x"no"; then
5186 # Install a library built with a cross compiler in tooldir, not libdir.
5187 toolexecdir='$(exec_prefix)/$(target_alias)'
5188 toolexeclibdir='$(toolexecdir)/lib'
5189 else
5190 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5191 toolexeclibdir='$(libdir)'
5193 multi_os_directory=`$CC -print-multi-os-directory`
5194 case $multi_os_directory in
5195 .) ;; # Avoid trailing /.
5196 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5197 esac
5199 esac
5203 # Create a spec file, so that compile/link tests don't fail
5204 test -f libgfortran.spec || touch libgfortran.spec
5206 ac_ext=c
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 # Check the compiler.
5213 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5214 # We must force CC to /not/ be precious variables; otherwise
5215 # the wrong, non-multilib-adjusted value will be used in multilibs.
5216 # As a side effect, we have to subst CFLAGS ourselves.
5220 ac_ext=c
5221 ac_cpp='$CPP $CPPFLAGS'
5222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_CC+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$CC"; then
5234 ac_cv_prog_CC="$CC" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 CC=$ac_cv_prog_CC
5254 if test -n "$CC"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5256 $as_echo "$CC" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5264 if test -z "$ac_cv_prog_CC"; then
5265 ac_ct_CC=$CC
5266 # Extract the first word of "gcc", so it can be a program name with args.
5267 set dummy gcc; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$ac_ct_CC"; then
5274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_ac_ct_CC="gcc"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5294 if test -n "$ac_ct_CC"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5296 $as_echo "$ac_ct_CC" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5302 if test "x$ac_ct_CC" = x; then
5303 CC=""
5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306 yes:)
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309 ac_tool_warned=yes ;;
5310 esac
5311 CC=$ac_ct_CC
5313 else
5314 CC="$ac_cv_prog_CC"
5317 if test -z "$CC"; then
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5320 set dummy ${ac_tool_prefix}cc; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_CC+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$CC"; then
5327 ac_cv_prog_CC="$CC" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_CC="${ac_tool_prefix}cc"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5342 IFS=$as_save_IFS
5346 CC=$ac_cv_prog_CC
5347 if test -n "$CC"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5349 $as_echo "$CC" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5358 if test -z "$CC"; then
5359 # Extract the first word of "cc", so it can be a program name with args.
5360 set dummy cc; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_CC+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$CC"; then
5367 ac_cv_prog_CC="$CC" # Let the user override the test.
5368 else
5369 ac_prog_rejected=no
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5378 ac_prog_rejected=yes
5379 continue
5381 ac_cv_prog_CC="cc"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5389 if test $ac_prog_rejected = yes; then
5390 # We found a bogon in the path, so make sure we never use it.
5391 set dummy $ac_cv_prog_CC
5392 shift
5393 if test $# != 0; then
5394 # We chose a different compiler from the bogus one.
5395 # However, it has the same basename, so the bogon will be chosen
5396 # first if we set CC to just the basename; use the full file name.
5397 shift
5398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5403 CC=$ac_cv_prog_CC
5404 if test -n "$CC"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5406 $as_echo "$CC" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$CC"; then
5415 if test -n "$ac_tool_prefix"; then
5416 for ac_prog in cl.exe
5418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_CC+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$CC"; then
5426 ac_cv_prog_CC="$CC" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 CC=$ac_cv_prog_CC
5446 if test -n "$CC"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5448 $as_echo "$CC" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 test -n "$CC" && break
5456 done
5458 if test -z "$CC"; then
5459 ac_ct_CC=$CC
5460 for ac_prog in cl.exe
5462 # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$ac_ct_CC"; then
5470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_ac_ct_CC="$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5483 done
5484 done
5485 IFS=$as_save_IFS
5489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5490 if test -n "$ac_ct_CC"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5492 $as_echo "$ac_ct_CC" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5499 test -n "$ac_ct_CC" && break
5500 done
5502 if test "x$ac_ct_CC" = x; then
5503 CC=""
5504 else
5505 case $cross_compiling:$ac_tool_warned in
5506 yes:)
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509 ac_tool_warned=yes ;;
5510 esac
5511 CC=$ac_ct_CC
5518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 as_fn_error $? "no acceptable C compiler found in \$PATH
5521 See \`config.log' for more details" "$LINENO" 5; }
5523 # Provide some information about the compiler.
5524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5525 set X $ac_compile
5526 ac_compiler=$2
5527 for ac_option in --version -v -V -qversion; do
5528 { { ac_try="$ac_compiler $ac_option >&5"
5529 case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534 $as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5536 ac_status=$?
5537 if test -s conftest.err; then
5538 sed '10a\
5539 ... rest of stderr output deleted ...
5540 10q' conftest.err >conftest.er1
5541 cat conftest.er1 >&5
5543 rm -f conftest.er1 conftest.err
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }
5546 done
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5549 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5550 if ${ac_cv_c_compiler_gnu+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5557 main ()
5559 #ifndef __GNUC__
5560 choke me
5561 #endif
5564 return 0;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 ac_compiler_gnu=yes
5569 else
5570 ac_compiler_gnu=no
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5577 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5578 if test $ac_compiler_gnu = yes; then
5579 GCC=yes
5580 else
5581 GCC=
5583 ac_test_CFLAGS=${CFLAGS+set}
5584 ac_save_CFLAGS=$CFLAGS
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5586 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5587 if ${ac_cv_prog_cc_g+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 ac_save_c_werror_flag=$ac_c_werror_flag
5591 ac_c_werror_flag=yes
5592 ac_cv_prog_cc_g=no
5593 CFLAGS="-g"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5598 main ()
5602 return 0;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 ac_cv_prog_cc_g=yes
5607 else
5608 CFLAGS=""
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5622 else
5623 ac_c_werror_flag=$ac_save_c_werror_flag
5624 CFLAGS="-g"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 main ()
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 ac_cv_prog_cc_g=yes
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 ac_c_werror_flag=$ac_save_c_werror_flag
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5647 $as_echo "$ac_cv_prog_cc_g" >&6; }
5648 if test "$ac_test_CFLAGS" = set; then
5649 CFLAGS=$ac_save_CFLAGS
5650 elif test $ac_cv_prog_cc_g = yes; then
5651 if test "$GCC" = yes; then
5652 CFLAGS="-g -O2"
5653 else
5654 CFLAGS="-g"
5656 else
5657 if test "$GCC" = yes; then
5658 CFLAGS="-O2"
5659 else
5660 CFLAGS=
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5665 if ${ac_cv_prog_cc_c89+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 ac_cv_prog_cc_c89=no
5669 ac_save_CC=$CC
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <stdarg.h>
5673 #include <stdio.h>
5674 struct stat;
5675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5676 struct buf { int x; };
5677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5678 static char *e (p, i)
5679 char **p;
5680 int i;
5682 return p[i];
5684 static char *f (char * (*g) (char **, int), char **p, ...)
5686 char *s;
5687 va_list v;
5688 va_start (v,p);
5689 s = g (p, va_arg (v,int));
5690 va_end (v);
5691 return s;
5694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5695 function prototypes and stuff, but not '\xHH' hex character constants.
5696 These don't provoke an error unfortunately, instead are silently treated
5697 as 'x'. The following induces an error, until -std is added to get
5698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5699 array size at least. It's necessary to write '\x00'==0 to get something
5700 that's true only with -std. */
5701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5704 inside strings and character constants. */
5705 #define FOO(x) 'x'
5706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5708 int test (int i, double x);
5709 struct s1 {int (*f) (int a);};
5710 struct s2 {int (*f) (double a);};
5711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5712 int argc;
5713 char **argv;
5715 main ()
5717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5719 return 0;
5721 _ACEOF
5722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_prog_cc_c89=$ac_arg
5729 rm -f core conftest.err conftest.$ac_objext
5730 test "x$ac_cv_prog_cc_c89" != "xno" && break
5731 done
5732 rm -f conftest.$ac_ext
5733 CC=$ac_save_CC
5736 # AC_CACHE_VAL
5737 case "x$ac_cv_prog_cc_c89" in
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740 $as_echo "none needed" >&6; } ;;
5741 xno)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5743 $as_echo "unsupported" >&6; } ;;
5745 CC="$CC $ac_cv_prog_cc_c89"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5747 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5748 esac
5749 if test "x$ac_cv_prog_cc_c89" != xno; then :
5753 ac_ext=c
5754 ac_cpp='$CPP $CPPFLAGS'
5755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759 ac_ext=c
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5765 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5766 if ${am_cv_prog_cc_c_o+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5773 main ()
5777 return 0;
5779 _ACEOF
5780 # Make sure it works both with $CC and with simple cc.
5781 # Following AC_PROG_CC_C_O, we do the test twice because some
5782 # compilers refuse to overwrite an existing .o file with -o,
5783 # though they will create one.
5784 am_cv_prog_cc_c_o=yes
5785 for am_i in 1 2; do
5786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } \
5791 && test -f conftest2.$ac_objext; then
5792 : OK
5793 else
5794 am_cv_prog_cc_c_o=no
5795 break
5797 done
5798 rm -f core conftest*
5799 unset am_i
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5802 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5803 if test "$am_cv_prog_cc_c_o" != yes; then
5804 # Losing compiler, so override with the script.
5805 # FIXME: It is wrong to rewrite CC.
5806 # But if we don't then we get into trouble of one sort or another.
5807 # A longer-term fix would be to have automake use am__CC in this case,
5808 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5809 CC="$am_aux_dir/compile $CC"
5811 ac_ext=c
5812 ac_cpp='$CPP $CPPFLAGS'
5813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5818 depcc="$CC" am_compiler_list=
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5821 $as_echo_n "checking dependency style of $depcc... " >&6; }
5822 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5826 # We make a subdir and do the tests there. Otherwise we can end up
5827 # making bogus files that we don't know about and never remove. For
5828 # instance it was reported that on HP-UX the gcc test will end up
5829 # making a dummy file named 'D' -- because '-MD' means "put the output
5830 # in D".
5831 rm -rf conftest.dir
5832 mkdir conftest.dir
5833 # Copy depcomp to subdir because otherwise we won't find it if we're
5834 # using a relative directory.
5835 cp "$am_depcomp" conftest.dir
5836 cd conftest.dir
5837 # We will build objects and dependencies in a subdirectory because
5838 # it helps to detect inapplicable dependency modes. For instance
5839 # both Tru64's cc and ICC support -MD to output dependencies as a
5840 # side effect of compilation, but ICC will put the dependencies in
5841 # the current directory while Tru64 will put them in the object
5842 # directory.
5843 mkdir sub
5845 am_cv_CC_dependencies_compiler_type=none
5846 if test "$am_compiler_list" = ""; then
5847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5849 am__universal=false
5850 case " $depcc " in #(
5851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5852 esac
5854 for depmode in $am_compiler_list; do
5855 # Setup a source with many dependencies, because some compilers
5856 # like to wrap large dependency lists on column 80 (with \), and
5857 # we should not choose a depcomp mode which is confused by this.
5859 # We need to recreate these files for each test, as the compiler may
5860 # overwrite some of them when testing with obscure command lines.
5861 # This happens at least with the AIX C compiler.
5862 : > sub/conftest.c
5863 for i in 1 2 3 4 5 6; do
5864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5866 # Solaris 10 /bin/sh.
5867 echo '/* dummy */' > sub/conftst$i.h
5868 done
5869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5872 # mode. It turns out that the SunPro C++ compiler does not properly
5873 # handle '-M -o', and we need to detect this. Also, some Intel
5874 # versions had trouble with output in subdirs.
5875 am__obj=sub/conftest.${OBJEXT-o}
5876 am__minus_obj="-o $am__obj"
5877 case $depmode in
5878 gcc)
5879 # This depmode causes a compiler race in universal mode.
5880 test "$am__universal" = false || continue
5882 nosideeffect)
5883 # After this tag, mechanisms are not by side-effect, so they'll
5884 # only be used when explicitly requested.
5885 if test "x$enable_dependency_tracking" = xyes; then
5886 continue
5887 else
5888 break
5891 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5892 # This compiler won't grok '-c -o', but also, the minuso test has
5893 # not run yet. These depmodes are late enough in the game, and
5894 # so weak that their functioning should not be impacted.
5895 am__obj=conftest.${OBJEXT-o}
5896 am__minus_obj=
5898 none) break ;;
5899 esac
5900 if depmode=$depmode \
5901 source=sub/conftest.c object=$am__obj \
5902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5904 >/dev/null 2>conftest.err &&
5905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5909 # icc doesn't choke on unknown options, it will just issue warnings
5910 # or remarks (even with -Werror). So we grep stderr for any message
5911 # that says an option was ignored or not supported.
5912 # When given -MP, icc 7.0 and 7.1 complain thusly:
5913 # icc: Command line warning: ignoring option '-M'; no argument required
5914 # The diagnosis changed in icc 8.0:
5915 # icc: Command line remark: option '-MP' not supported
5916 if (grep 'ignoring option' conftest.err ||
5917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5918 am_cv_CC_dependencies_compiler_type=$depmode
5919 break
5922 done
5924 cd ..
5925 rm -rf conftest.dir
5926 else
5927 am_cv_CC_dependencies_compiler_type=none
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5933 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5936 test "x$enable_dependency_tracking" != xno \
5937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5938 am__fastdepCC_TRUE=
5939 am__fastdepCC_FALSE='#'
5940 else
5941 am__fastdepCC_TRUE='#'
5942 am__fastdepCC_FALSE=
5952 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5953 if test "x$GCC" = "xyes"; then
5954 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5955 ## We like to use C11 and C99 routines when available. This makes
5956 ## sure that
5957 ## __STDC_VERSION__ is set such that libc includes make them available.
5958 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5959 ## Compile the following tests with the same system header contents
5960 ## that we'll encounter when compiling our own source files.
5961 CFLAGS="-std=gnu11 $CFLAGS"
5964 # Add CET specific flags if CET is enabled
5965 # Check whether --enable-cet was given.
5966 if test "${enable_cet+set}" = set; then :
5967 enableval=$enable_cet;
5968 case "$enableval" in
5969 yes|no|auto) ;;
5970 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5971 esac
5973 else
5974 enable_cet=no
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5979 $as_echo_n "checking for CET support... " >&6; }
5981 case "$host" in
5982 i[34567]86-*-linux* | x86_64-*-linux*)
5983 case "$enable_cet" in
5984 auto)
5985 # Check if target supports multi-byte NOPs
5986 # and if assembler supports CET insn.
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5991 main ()
5994 #if !defined(__SSE2__)
5995 #error target does not support multi-byte NOPs
5996 #else
5997 asm ("setssbsy");
5998 #endif
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 enable_cet=yes
6006 else
6007 enable_cet=no
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 yes)
6012 # Check if assembler supports CET.
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6017 main ()
6019 asm ("setssbsy");
6021 return 0;
6023 _ACEOF
6024 if ac_fn_c_try_compile "$LINENO"; then :
6026 else
6027 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 esac
6034 enable_cet=no
6036 esac
6037 if test x$enable_cet = xyes; then
6038 CET_FLAGS="-fcf-protection -mshstk"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6040 $as_echo "yes" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6046 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6047 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6048 CFLAGS="$CFLAGS $CET_FLAGS"
6054 # Check for symbol versioning (copied from libssp).
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6056 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6057 # Check whether --enable-symvers was given.
6058 if test "${enable_symvers+set}" = set; then :
6059 enableval=$enable_symvers; gfortran_use_symver=$enableval
6060 else
6061 gfortran_use_symver=yes
6064 if test "x$gfortran_use_symver" != xno; then
6065 save_LDFLAGS="$LDFLAGS"
6066 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6067 cat > conftest.map <<EOF
6068 FOO_1.0 {
6069 global: *foo*; bar; local: *;
6072 if test x$gcc_no_link = xyes; then
6073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 int foo;
6079 main ()
6083 return 0;
6085 _ACEOF
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 gfortran_use_symver=gnu
6088 else
6089 gfortran_use_symver=no
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 if test x$gfortran_use_symver = xno; then
6094 case "$target_os" in
6095 solaris2*)
6096 LDFLAGS="$save_LDFLAGS"
6097 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6098 # Sun ld cannot handle wildcards and treats all entries as undefined.
6099 cat > conftest.map <<EOF
6100 FOO_1.0 {
6101 global: foo; local: *;
6104 if test x$gcc_no_link = xyes; then
6105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int foo;
6111 main ()
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_link "$LINENO"; then :
6119 gfortran_use_symver=sun
6120 else
6121 gfortran_use_symver=no
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6126 esac
6128 LDFLAGS="$save_LDFLAGS"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6131 $as_echo "$gfortran_use_symver" >&6; }
6132 if test "x$gfortran_use_symver" != xno; then
6133 LIBGFOR_USE_SYMVER_TRUE=
6134 LIBGFOR_USE_SYMVER_FALSE='#'
6135 else
6136 LIBGFOR_USE_SYMVER_TRUE='#'
6137 LIBGFOR_USE_SYMVER_FALSE=
6140 if test "x$gfortran_use_symver" = xgnu; then
6141 LIBGFOR_USE_SYMVER_GNU_TRUE=
6142 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6143 else
6144 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6145 LIBGFOR_USE_SYMVER_GNU_FALSE=
6148 if test "x$gfortran_use_symver" = xsun; then
6149 LIBGFOR_USE_SYMVER_SUN_TRUE=
6150 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6151 else
6152 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6153 LIBGFOR_USE_SYMVER_SUN_FALSE=
6157 # For GPU offloading, not everything in libfortran can be supported.
6158 # Currently, the only target that has this problem is nvptx. The
6159 # following is a (partial) list of features that are unsupportable on
6160 # this particular target:
6161 # * Constructors
6162 # * alloca
6163 # * C library support for I/O, with printf as the one notable exception
6164 # * C library support for other features such as signal, environment
6165 # variables, time functions
6167 if test "x${target_cpu}" = xnvptx \
6168 || test "x${target_cpu}" = xamdgcn; then
6169 LIBGFOR_MINIMAL_TRUE=
6170 LIBGFOR_MINIMAL_FALSE='#'
6171 else
6172 LIBGFOR_MINIMAL_TRUE='#'
6173 LIBGFOR_MINIMAL_FALSE=
6177 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6178 # similarly to how libstdc++ does it
6179 ac_test_CFLAGS="${CFLAGS+set}"
6180 ac_save_CFLAGS="$CFLAGS"
6182 # Check for -ffunction-sections -fdata-sections
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6184 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6185 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6190 main ()
6192 int foo;
6194 return 0;
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"; then :
6198 ac_fdsections=yes
6199 else
6200 ac_fdsections=no
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 if test "$ac_test_CFLAGS" = set; then
6204 CFLAGS="$ac_save_CFLAGS"
6205 else
6206 # this is the suspicious part
6207 CFLAGS=""
6209 if test x"$ac_fdsections" = x"yes"; then
6210 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6213 $as_echo "$ac_fdsections" >&6; }
6216 # Check linker hardware capability support.
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6218 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6219 if ${ac_cv_path_SED+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6223 for ac_i in 1 2 3 4 5 6 7; do
6224 ac_script="$ac_script$as_nl$ac_script"
6225 done
6226 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6227 { ac_script=; unset ac_script;}
6228 if test -z "$SED"; then
6229 ac_path_SED_found=false
6230 # Loop through the user's path and test for each of PROGNAME-LIST
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_prog in sed gsed; do
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6239 as_fn_executable_p "$ac_path_SED" || continue
6240 # Check for GNU ac_path_SED and select it if it is found.
6241 # Check for GNU $ac_path_SED
6242 case `"$ac_path_SED" --version 2>&1` in
6243 *GNU*)
6244 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6246 ac_count=0
6247 $as_echo_n 0123456789 >"conftest.in"
6248 while :
6250 cat "conftest.in" "conftest.in" >"conftest.tmp"
6251 mv "conftest.tmp" "conftest.in"
6252 cp "conftest.in" "conftest.nl"
6253 $as_echo '' >> "conftest.nl"
6254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256 as_fn_arith $ac_count + 1 && ac_count=$as_val
6257 if test $ac_count -gt ${ac_path_SED_max-0}; then
6258 # Best one so far, save it but keep looking for a better one
6259 ac_cv_path_SED="$ac_path_SED"
6260 ac_path_SED_max=$ac_count
6262 # 10*(2^10) chars as input seems more than enough
6263 test $ac_count -gt 10 && break
6264 done
6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266 esac
6268 $ac_path_SED_found && break 3
6269 done
6270 done
6271 done
6272 IFS=$as_save_IFS
6273 if test -z "$ac_cv_path_SED"; then
6274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6276 else
6277 ac_cv_path_SED=$SED
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6282 $as_echo "$ac_cv_path_SED" >&6; }
6283 SED="$ac_cv_path_SED"
6284 rm -f conftest.sed
6286 test -z "$SED" && SED=sed
6287 Xsed="$SED -e 1s/^X//"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6300 $as_echo_n "checking for fgrep... " >&6; }
6301 if ${ac_cv_path_FGREP+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6305 then ac_cv_path_FGREP="$GREP -F"
6306 else
6307 if test -z "$FGREP"; then
6308 ac_path_FGREP_found=false
6309 # Loop through the user's path and test for each of PROGNAME-LIST
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_prog in fgrep; do
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6318 as_fn_executable_p "$ac_path_FGREP" || continue
6319 # Check for GNU ac_path_FGREP and select it if it is found.
6320 # Check for GNU $ac_path_FGREP
6321 case `"$ac_path_FGREP" --version 2>&1` in
6322 *GNU*)
6323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6325 ac_count=0
6326 $as_echo_n 0123456789 >"conftest.in"
6327 while :
6329 cat "conftest.in" "conftest.in" >"conftest.tmp"
6330 mv "conftest.tmp" "conftest.in"
6331 cp "conftest.in" "conftest.nl"
6332 $as_echo 'FGREP' >> "conftest.nl"
6333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6335 as_fn_arith $ac_count + 1 && ac_count=$as_val
6336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6337 # Best one so far, save it but keep looking for a better one
6338 ac_cv_path_FGREP="$ac_path_FGREP"
6339 ac_path_FGREP_max=$ac_count
6341 # 10*(2^10) chars as input seems more than enough
6342 test $ac_count -gt 10 && break
6343 done
6344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6345 esac
6347 $ac_path_FGREP_found && break 3
6348 done
6349 done
6350 done
6351 IFS=$as_save_IFS
6352 if test -z "$ac_cv_path_FGREP"; then
6353 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6355 else
6356 ac_cv_path_FGREP=$FGREP
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6362 $as_echo "$ac_cv_path_FGREP" >&6; }
6363 FGREP="$ac_cv_path_FGREP"
6366 test -z "$GREP" && GREP=grep
6384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6389 $as_echo_n "checking how to print strings... " >&6; }
6390 # Test print first, because it will be a builtin if present.
6391 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6392 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6393 ECHO='print -r --'
6394 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6395 ECHO='printf %s\n'
6396 else
6397 # Use this function as a fallback that always works.
6398 func_fallback_echo ()
6400 eval 'cat <<_LTECHO_EOF
6402 _LTECHO_EOF'
6404 ECHO='func_fallback_echo'
6407 # func_echo_all arg...
6408 # Invoke $ECHO with all args, space-separated.
6409 func_echo_all ()
6411 $ECHO ""
6414 case "$ECHO" in
6415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6416 $as_echo "printf" >&6; } ;;
6417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6418 $as_echo "print -r" >&6; } ;;
6419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6420 $as_echo "cat" >&6; } ;;
6421 esac
6438 # Check whether --with-gnu-ld was given.
6439 if test "${with_gnu_ld+set}" = set; then :
6440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6441 else
6442 with_gnu_ld=no
6445 ac_prog=ld
6446 if test "$GCC" = yes; then
6447 # Check if gcc -print-prog-name=ld gives a path.
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6449 $as_echo_n "checking for ld used by $CC... " >&6; }
6450 case $host in
6451 *-*-mingw*)
6452 # gcc leaves a trailing carriage return which upsets mingw
6453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6456 esac
6457 case $ac_prog in
6458 # Accept absolute paths.
6459 [\\/]* | ?:[\\/]*)
6460 re_direlt='/[^/][^/]*/\.\./'
6461 # Canonicalize the pathname of ld
6462 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6463 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6464 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6465 done
6466 test -z "$LD" && LD="$ac_prog"
6469 # If it fails, then pretend we aren't using GCC.
6470 ac_prog=ld
6473 # If it is relative, then search for the first ld in PATH.
6474 with_gnu_ld=unknown
6476 esac
6477 elif test "$with_gnu_ld" = yes; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6479 $as_echo_n "checking for GNU ld... " >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6482 $as_echo_n "checking for non-GNU ld... " >&6; }
6484 if ${lt_cv_path_LD+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test -z "$LD"; then
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH; do
6490 IFS="$lt_save_ifs"
6491 test -z "$ac_dir" && ac_dir=.
6492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6493 lt_cv_path_LD="$ac_dir/$ac_prog"
6494 # Check to see if the program is GNU ld. I'd rather use --version,
6495 # but apparently some variants of GNU ld only accept -v.
6496 # Break only if it was the GNU/non-GNU ld that we prefer.
6497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6498 *GNU* | *'with BFD'*)
6499 test "$with_gnu_ld" != no && break
6502 test "$with_gnu_ld" != yes && break
6504 esac
6506 done
6507 IFS="$lt_save_ifs"
6508 else
6509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6513 LD="$lt_cv_path_LD"
6514 if test -n "$LD"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6516 $as_echo "$LD" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6521 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6523 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6524 if ${lt_cv_prog_gnu_ld+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6528 case `$LD -v 2>&1 </dev/null` in
6529 *GNU* | *'with BFD'*)
6530 lt_cv_prog_gnu_ld=yes
6533 lt_cv_prog_gnu_ld=no
6535 esac
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6538 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6539 with_gnu_ld=$lt_cv_prog_gnu_ld
6550 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6553 ac_save_LDFLAGS="$LDFLAGS"
6554 LDFLAGS="$LFLAGS -mclear-hwcap"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6557 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6558 if test x$gcc_no_link = xyes; then
6559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6565 main ()
6567 return 0;
6569 return 0;
6571 _ACEOF
6572 if ac_fn_c_try_link "$LINENO"; then :
6573 ac_hwcap_ldflags=yes
6574 else
6575 ac_hwcap_ldflags=no
6577 rm -f core conftest.err conftest.$ac_objext \
6578 conftest$ac_exeext conftest.$ac_ext
6579 if test "$ac_hwcap_ldflags" = "yes"; then
6580 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6583 $as_echo "$ac_hwcap_ldflags" >&6; }
6585 LDFLAGS="$ac_save_LDFLAGS"
6589 if test $ac_hwcap_ldflags != no; then
6590 HAVE_HWCAP_TRUE=
6591 HAVE_HWCAP_FALSE='#'
6592 else
6593 HAVE_HWCAP_TRUE='#'
6594 HAVE_HWCAP_FALSE=
6599 # Find other programs we need.
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}as; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_AS+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$AS"; then
6609 ac_cv_prog_AS="$AS" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_AS="${ac_tool_prefix}as"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6622 done
6623 done
6624 IFS=$as_save_IFS
6628 AS=$ac_cv_prog_AS
6629 if test -n "$AS"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6631 $as_echo "$AS" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6639 if test -z "$ac_cv_prog_AS"; then
6640 ac_ct_AS=$AS
6641 # Extract the first word of "as", so it can be a program name with args.
6642 set dummy as; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 if test -n "$ac_ct_AS"; then
6649 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_AS="as"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6662 done
6663 done
6664 IFS=$as_save_IFS
6668 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6669 if test -n "$ac_ct_AS"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6671 $as_echo "$ac_ct_AS" >&6; }
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6677 if test "x$ac_ct_AS" = x; then
6678 AS=""
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686 AS=$ac_ct_AS
6688 else
6689 AS="$ac_cv_prog_AS"
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_AR+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$AR"; then
6701 ac_cv_prog_AR="$AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_AR="${ac_tool_prefix}ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6714 done
6715 done
6716 IFS=$as_save_IFS
6720 AR=$ac_cv_prog_AR
6721 if test -n "$AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723 $as_echo "$AR" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_AR"; then
6732 ac_ct_AR=$AR
6733 # Extract the first word of "ar", so it can be a program name with args.
6734 set dummy ar; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$ac_ct_AR"; then
6741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_AR="ar"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6761 if test -n "$ac_ct_AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6763 $as_echo "$ac_ct_AR" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_AR" = x; then
6770 AR=""
6771 else
6772 case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778 AR=$ac_ct_AR
6780 else
6781 AR="$ac_cv_prog_AR"
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_RANLIB+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$RANLIB"; then
6793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6806 done
6807 done
6808 IFS=$as_save_IFS
6812 RANLIB=$ac_cv_prog_RANLIB
6813 if test -n "$RANLIB"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6815 $as_echo "$RANLIB" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6823 if test -z "$ac_cv_prog_RANLIB"; then
6824 ac_ct_RANLIB=$RANLIB
6825 # Extract the first word of "ranlib", so it can be a program name with args.
6826 set dummy ranlib; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$ac_ct_RANLIB"; then
6833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_ac_ct_RANLIB="ranlib"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6846 done
6847 done
6848 IFS=$as_save_IFS
6852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6855 $as_echo "$ac_ct_RANLIB" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6861 if test "x$ac_ct_RANLIB" = x; then
6862 RANLIB="ranlib-not-found-in-path-error"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870 RANLIB=$ac_ct_RANLIB
6872 else
6873 RANLIB="$ac_cv_prog_RANLIB"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6877 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6878 set x ${MAKE-make}
6879 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6880 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 cat >conftest.make <<\_ACEOF
6884 SHELL = /bin/sh
6885 all:
6886 @echo '@@@%%%=$(MAKE)=@@@%%%'
6887 _ACEOF
6888 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6889 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6890 *@@@%%%=?*=@@@%%%*)
6891 eval ac_cv_prog_make_${ac_make}_set=yes;;
6893 eval ac_cv_prog_make_${ac_make}_set=no;;
6894 esac
6895 rm -f conftest.make
6897 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6899 $as_echo "yes" >&6; }
6900 SET_MAKE=
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 SET_MAKE="MAKE=${MAKE-make}"
6909 # Configure libtool
6910 #AC_MSG_NOTICE([====== Starting libtool configuration])
6911 enable_dlopen=yes
6915 case `pwd` in
6916 *\ * | *\ *)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6918 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6919 esac
6923 macro_version='2.2.7a'
6924 macro_revision='1.3134'
6938 ltmain="$ac_aux_dir/ltmain.sh"
6940 # Backslashify metacharacters that are still active within
6941 # double-quoted strings.
6942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6944 # Same as above, but do not quote variable references.
6945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6947 # Sed substitution to delay expansion of an escaped shell variable in a
6948 # double_quote_subst'ed string.
6949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6951 # Sed substitution to delay expansion of an escaped single quote.
6952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6954 # Sed substitution to avoid accidental globbing in evaled expressions
6955 no_glob_subst='s/\*/\\\*/g'
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6958 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6959 if ${lt_cv_path_NM+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$NM"; then
6963 # Let the user override the test.
6964 lt_cv_path_NM="$NM"
6965 else
6966 lt_nm_to_check="${ac_tool_prefix}nm"
6967 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6968 lt_nm_to_check="$lt_nm_to_check nm"
6970 for lt_tmp_nm in $lt_nm_to_check; do
6971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6972 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6973 IFS="$lt_save_ifs"
6974 test -z "$ac_dir" && ac_dir=.
6975 tmp_nm="$ac_dir/$lt_tmp_nm"
6976 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6977 # Check to see if the nm accepts a BSD-compat flag.
6978 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6979 # nm: unknown option "B" ignored
6980 # Tru64's nm complains that /dev/null is an invalid object file
6981 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6982 */dev/null* | *'Invalid file or object type'*)
6983 lt_cv_path_NM="$tmp_nm -B"
6984 break
6987 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6988 */dev/null*)
6989 lt_cv_path_NM="$tmp_nm -p"
6990 break
6993 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6994 continue # so that we can try to find one that supports BSD flags
6996 esac
6998 esac
7000 done
7001 IFS="$lt_save_ifs"
7002 done
7003 : ${lt_cv_path_NM=no}
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7007 $as_echo "$lt_cv_path_NM" >&6; }
7008 if test "$lt_cv_path_NM" != "no"; then
7009 NM="$lt_cv_path_NM"
7010 else
7011 # Didn't find any BSD compatible name lister, look for dumpbin.
7012 if test -n "$DUMPBIN"; then :
7013 # Let the user override the test.
7014 else
7015 if test -n "$ac_tool_prefix"; then
7016 for ac_prog in dumpbin "link -dump"
7018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_DUMPBIN+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$DUMPBIN"; then
7026 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 DUMPBIN=$ac_cv_prog_DUMPBIN
7046 if test -n "$DUMPBIN"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7048 $as_echo "$DUMPBIN" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7055 test -n "$DUMPBIN" && break
7056 done
7058 if test -z "$DUMPBIN"; then
7059 ac_ct_DUMPBIN=$DUMPBIN
7060 for ac_prog in dumpbin "link -dump"
7062 # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_DUMPBIN"; then
7070 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7090 if test -n "$ac_ct_DUMPBIN"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7092 $as_echo "$ac_ct_DUMPBIN" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7099 test -n "$ac_ct_DUMPBIN" && break
7100 done
7102 if test "x$ac_ct_DUMPBIN" = x; then
7103 DUMPBIN=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 DUMPBIN=$ac_ct_DUMPBIN
7115 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7116 *COFF*)
7117 DUMPBIN="$DUMPBIN -symbols"
7120 DUMPBIN=:
7122 esac
7125 if test "$DUMPBIN" != ":"; then
7126 NM="$DUMPBIN"
7129 test -z "$NM" && NM=nm
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7137 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7138 if ${lt_cv_nm_interface+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 lt_cv_nm_interface="BSD nm"
7142 echo "int some_variable = 0;" > conftest.$ac_ext
7143 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7144 (eval "$ac_compile" 2>conftest.err)
7145 cat conftest.err >&5
7146 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7147 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7148 cat conftest.err >&5
7149 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7150 cat conftest.out >&5
7151 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7152 lt_cv_nm_interface="MS dumpbin"
7154 rm -f conftest*
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7157 $as_echo "$lt_cv_nm_interface" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7160 $as_echo_n "checking whether ln -s works... " >&6; }
7161 LN_S=$as_ln_s
7162 if test "$LN_S" = "ln -s"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7167 $as_echo "no, using $LN_S" >&6; }
7170 # find the maximum length of command line arguments
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7172 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7173 if ${lt_cv_sys_max_cmd_len+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7177 teststring="ABCD"
7179 case $build_os in
7180 msdosdjgpp*)
7181 # On DJGPP, this test can blow up pretty badly due to problems in libc
7182 # (any single argument exceeding 2000 bytes causes a buffer overrun
7183 # during glob expansion). Even if it were fixed, the result of this
7184 # check would be larger than it should be.
7185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7188 gnu*)
7189 # Under GNU Hurd, this test is not required because there is
7190 # no limit to the length of command line arguments.
7191 # Libtool will interpret -1 as no limit whatsoever
7192 lt_cv_sys_max_cmd_len=-1;
7195 cygwin* | mingw* | cegcc*)
7196 # On Win9x/ME, this test blows up -- it succeeds, but takes
7197 # about 5 minutes as the teststring grows exponentially.
7198 # Worse, since 9x/ME are not pre-emptively multitasking,
7199 # you end up with a "frozen" computer, even though with patience
7200 # the test eventually succeeds (with a max line length of 256k).
7201 # Instead, let's just punt: use the minimum linelength reported by
7202 # all of the supported platforms: 8192 (on NT/2K/XP).
7203 lt_cv_sys_max_cmd_len=8192;
7206 mint*)
7207 # On MiNT this can take a long time and run out of memory.
7208 lt_cv_sys_max_cmd_len=8192;
7211 amigaos*)
7212 # On AmigaOS with pdksh, this test takes hours, literally.
7213 # So we just punt and use a minimum line length of 8192.
7214 lt_cv_sys_max_cmd_len=8192;
7217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7218 # This has been around since 386BSD, at least. Likely further.
7219 if test -x /sbin/sysctl; then
7220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7221 elif test -x /usr/sbin/sysctl; then
7222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7223 else
7224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7226 # And add a safety zone
7227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7231 interix*)
7232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7233 lt_cv_sys_max_cmd_len=196608
7236 osf*)
7237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7239 # nice to cause kernel panics so lets avoid the loop below.
7240 # First set a reasonable default.
7241 lt_cv_sys_max_cmd_len=16384
7243 if test -x /sbin/sysconfig; then
7244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7246 esac
7249 sco3.2v5*)
7250 lt_cv_sys_max_cmd_len=102400
7252 sysv5* | sco5v6* | sysv4.2uw2*)
7253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7254 if test -n "$kargmax"; then
7255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 else
7257 lt_cv_sys_max_cmd_len=32768
7261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7262 if test -n "$lt_cv_sys_max_cmd_len"; then
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265 else
7266 # Make teststring a little bigger before we do anything with it.
7267 # a 1K string should be a reasonable start.
7268 for i in 1 2 3 4 5 6 7 8 ; do
7269 teststring=$teststring$teststring
7270 done
7271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7272 # If test is not a shell built-in, we'll probably end up computing a
7273 # maximum length that is only half of the actual maximum length, but
7274 # we can't tell.
7275 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7277 test $i != 17 # 1/2 MB should be enough
7279 i=`expr $i + 1`
7280 teststring=$teststring$teststring
7281 done
7282 # Only check the string length outside the loop.
7283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284 teststring=
7285 # Add a significant safety factor because C++ compilers can tack on
7286 # massive amounts of additional arguments before passing them to the
7287 # linker. It appears as though 1/2 is a usable value.
7288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7291 esac
7295 if test -n $lt_cv_sys_max_cmd_len ; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7300 $as_echo "none" >&6; }
7302 max_cmd_len=$lt_cv_sys_max_cmd_len
7309 : ${CP="cp -f"}
7310 : ${MV="mv -f"}
7311 : ${RM="rm -f"}
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7315 # Try some XSI features
7316 xsi_shell=no
7317 ( _lt_dummy="a/b/c"
7318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7319 = c,a/b,, \
7320 && eval 'test $(( 1 + 1 )) -eq 2 \
7321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7322 && xsi_shell=yes
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7324 $as_echo "$xsi_shell" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7329 lt_shell_append=no
7330 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331 >/dev/null 2>&1 \
7332 && lt_shell_append=yes
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7334 $as_echo "$lt_shell_append" >&6; }
7337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7338 lt_unset=unset
7339 else
7340 lt_unset=false
7347 # test EBCDIC or ASCII
7348 case `echo X|tr X '\101'` in
7349 A) # ASCII based system
7350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7351 lt_SP2NL='tr \040 \012'
7352 lt_NL2SP='tr \015\012 \040\040'
7354 *) # EBCDIC based system
7355 lt_SP2NL='tr \100 \n'
7356 lt_NL2SP='tr \r\n \100\100'
7358 esac
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7369 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7370 if ${lt_cv_ld_reload_flag+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 lt_cv_ld_reload_flag='-r'
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7377 reload_flag=$lt_cv_ld_reload_flag
7378 case $reload_flag in
7379 "" | " "*) ;;
7380 *) reload_flag=" $reload_flag" ;;
7381 esac
7382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7383 case $host_os in
7384 darwin*)
7385 if test "$GCC" = yes; then
7386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7387 else
7388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7391 esac
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OBJDUMP+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OBJDUMP"; then
7410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7429 OBJDUMP=$ac_cv_prog_OBJDUMP
7430 if test -n "$OBJDUMP"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7432 $as_echo "$OBJDUMP" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OBJDUMP"; then
7441 ac_ct_OBJDUMP=$OBJDUMP
7442 # Extract the first word of "objdump", so it can be a program name with args.
7443 set dummy objdump; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OBJDUMP"; then
7450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7470 if test -n "$ac_ct_OBJDUMP"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7472 $as_echo "$ac_ct_OBJDUMP" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OBJDUMP" = x; then
7479 OBJDUMP="false"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OBJDUMP=$ac_ct_OBJDUMP
7489 else
7490 OBJDUMP="$ac_cv_prog_OBJDUMP"
7493 test -z "$OBJDUMP" && OBJDUMP=objdump
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7505 if ${lt_cv_deplibs_check_method+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 lt_cv_file_magic_cmd='$MAGIC_CMD'
7509 lt_cv_file_magic_test_file=
7510 lt_cv_deplibs_check_method='unknown'
7511 # Need to set the preceding variable on all platforms that support
7512 # interlibrary dependencies.
7513 # 'none' -- dependencies not supported.
7514 # `unknown' -- same as none, but documents that we really don't know.
7515 # 'pass_all' -- all dependencies passed with no checks.
7516 # 'test_compile' -- check by making test program.
7517 # 'file_magic [[regex]]' -- check by looking for files in library path
7518 # which responds to the $file_magic_cmd with a given extended regex.
7519 # If you have `file' or equivalent on your system and you're not sure
7520 # whether `pass_all' will *always* work, you probably want this one.
7522 case $host_os in
7523 aix[4-9]*)
7524 lt_cv_deplibs_check_method=pass_all
7527 beos*)
7528 lt_cv_deplibs_check_method=pass_all
7531 bsdi[45]*)
7532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7533 lt_cv_file_magic_cmd='/usr/bin/file -L'
7534 lt_cv_file_magic_test_file=/shlib/libc.so
7537 cygwin*)
7538 # func_win32_libid is a shell function defined in ltmain.sh
7539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7540 lt_cv_file_magic_cmd='func_win32_libid'
7543 mingw* | pw32*)
7544 # Base MSYS/MinGW do not provide the 'file' command needed by
7545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7546 # unless we find 'file', for example because we are cross-compiling.
7547 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7548 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7550 lt_cv_file_magic_cmd='func_win32_libid'
7551 else
7552 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7553 lt_cv_file_magic_cmd='$OBJDUMP -f'
7557 cegcc*)
7558 # use the weaker test based on 'objdump'. See mingw*.
7559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7560 lt_cv_file_magic_cmd='$OBJDUMP -f'
7563 darwin* | rhapsody*)
7564 lt_cv_deplibs_check_method=pass_all
7567 freebsd* | dragonfly*)
7568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7569 case $host_cpu in
7570 i*86 )
7571 # Not sure whether the presence of OpenBSD here was a mistake.
7572 # Let's accept both of them until this is cleared up.
7573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7574 lt_cv_file_magic_cmd=/usr/bin/file
7575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7577 esac
7578 else
7579 lt_cv_deplibs_check_method=pass_all
7583 gnu*)
7584 lt_cv_deplibs_check_method=pass_all
7587 haiku*)
7588 lt_cv_deplibs_check_method=pass_all
7591 hpux10.20* | hpux11*)
7592 lt_cv_file_magic_cmd=/usr/bin/file
7593 case $host_cpu in
7594 ia64*)
7595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7598 hppa*64*)
7599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7606 esac
7609 interix[3-9]*)
7610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7614 irix5* | irix6* | nonstopux*)
7615 case $LD in
7616 *-32|*"-32 ") libmagic=32-bit;;
7617 *-n32|*"-n32 ") libmagic=N32;;
7618 *-64|*"-64 ") libmagic=64-bit;;
7619 *) libmagic=never-match;;
7620 esac
7621 lt_cv_deplibs_check_method=pass_all
7624 # This must be Linux ELF.
7625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7626 lt_cv_deplibs_check_method=pass_all
7629 netbsd*)
7630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7632 else
7633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7637 newos6*)
7638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7639 lt_cv_file_magic_cmd=/usr/bin/file
7640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7643 *nto* | *qnx*)
7644 lt_cv_deplibs_check_method=pass_all
7647 openbsd*)
7648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7650 else
7651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7655 osf3* | osf4* | osf5*)
7656 lt_cv_deplibs_check_method=pass_all
7659 rdos*)
7660 lt_cv_deplibs_check_method=pass_all
7663 solaris*)
7664 lt_cv_deplibs_check_method=pass_all
7667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7668 lt_cv_deplibs_check_method=pass_all
7671 sysv4 | sysv4.3*)
7672 case $host_vendor in
7673 motorola)
7674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7677 ncr)
7678 lt_cv_deplibs_check_method=pass_all
7680 sequent)
7681 lt_cv_file_magic_cmd='/bin/file'
7682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7684 sni)
7685 lt_cv_file_magic_cmd='/bin/file'
7686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7687 lt_cv_file_magic_test_file=/lib/libc.so
7689 siemens)
7690 lt_cv_deplibs_check_method=pass_all
7693 lt_cv_deplibs_check_method=pass_all
7695 esac
7698 tpf*)
7699 lt_cv_deplibs_check_method=pass_all
7701 esac
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7705 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7706 file_magic_cmd=$lt_cv_file_magic_cmd
7707 deplibs_check_method=$lt_cv_deplibs_check_method
7708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}ar; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_AR+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 if test -n "$AR"; then
7730 ac_cv_prog_AR="$AR" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_AR="${ac_tool_prefix}ar"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7745 IFS=$as_save_IFS
7749 AR=$ac_cv_prog_AR
7750 if test -n "$AR"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7752 $as_echo "$AR" >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7760 if test -z "$ac_cv_prog_AR"; then
7761 ac_ct_AR=$AR
7762 # Extract the first word of "ar", so it can be a program name with args.
7763 set dummy ar; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$ac_ct_AR"; then
7770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_ac_ct_AR="ar"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7790 if test -n "$ac_ct_AR"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7792 $as_echo "$ac_ct_AR" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7798 if test "x$ac_ct_AR" = x; then
7799 AR="false"
7800 else
7801 case $cross_compiling:$ac_tool_warned in
7802 yes:)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807 AR=$ac_ct_AR
7809 else
7810 AR="$ac_cv_prog_AR"
7813 test -z "$AR" && AR=ar
7814 test -z "$AR_FLAGS" && AR_FLAGS=cru
7826 if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}strip; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_STRIP+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$STRIP"; then
7835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7854 STRIP=$ac_cv_prog_STRIP
7855 if test -n "$STRIP"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7857 $as_echo "$STRIP" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7865 if test -z "$ac_cv_prog_STRIP"; then
7866 ac_ct_STRIP=$STRIP
7867 # Extract the first word of "strip", so it can be a program name with args.
7868 set dummy strip; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$ac_ct_STRIP"; then
7875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_ac_ct_STRIP="strip"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7895 if test -n "$ac_ct_STRIP"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7897 $as_echo "$ac_ct_STRIP" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7903 if test "x$ac_ct_STRIP" = x; then
7904 STRIP=":"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912 STRIP=$ac_ct_STRIP
7914 else
7915 STRIP="$ac_cv_prog_STRIP"
7918 test -z "$STRIP" && STRIP=:
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_RANLIB+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 if test -n "$RANLIB"; then
7934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7947 done
7948 done
7949 IFS=$as_save_IFS
7953 RANLIB=$ac_cv_prog_RANLIB
7954 if test -n "$RANLIB"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7956 $as_echo "$RANLIB" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7964 if test -z "$ac_cv_prog_RANLIB"; then
7965 ac_ct_RANLIB=$RANLIB
7966 # Extract the first word of "ranlib", so it can be a program name with args.
7967 set dummy ranlib; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$ac_ct_RANLIB"; then
7974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_RANLIB="ranlib"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7987 done
7988 done
7989 IFS=$as_save_IFS
7993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7994 if test -n "$ac_ct_RANLIB"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7996 $as_echo "$ac_ct_RANLIB" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8002 if test "x$ac_ct_RANLIB" = x; then
8003 RANLIB=":"
8004 else
8005 case $cross_compiling:$ac_tool_warned in
8006 yes:)
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8010 esac
8011 RANLIB=$ac_ct_RANLIB
8013 else
8014 RANLIB="$ac_cv_prog_RANLIB"
8017 test -z "$RANLIB" && RANLIB=:
8024 # Determine commands to create old-style static archives.
8025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8026 old_postinstall_cmds='chmod 644 $oldlib'
8027 old_postuninstall_cmds=
8029 if test -n "$RANLIB"; then
8030 case $host_os in
8031 openbsd*)
8032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8037 esac
8038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8041 case $host_os in
8042 darwin*)
8043 lock_old_archive_extraction=yes ;;
8045 lock_old_archive_extraction=no ;;
8046 esac
8086 # If no C compiler was specified, use CC.
8087 LTCC=${LTCC-"$CC"}
8089 # If no C compiler flags were specified, use CFLAGS.
8090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8092 # Allow CC to be a program name with arguments.
8093 compiler=$CC
8096 # Check for command to grab the raw symbol name followed by C symbol from nm.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8098 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8099 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8103 # These are sane defaults that work on at least a few old systems.
8104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8106 # Character class describing NM global symbol codes.
8107 symcode='[BCDEGRST]'
8109 # Regexp to match symbols that can be accessed directly from C.
8110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8112 # Define system-specific variables.
8113 case $host_os in
8114 aix*)
8115 symcode='[BCDT]'
8117 cygwin* | mingw* | pw32* | cegcc*)
8118 symcode='[ABCDGISTW]'
8120 hpux*)
8121 if test "$host_cpu" = ia64; then
8122 symcode='[ABCDEGRST]'
8125 irix* | nonstopux*)
8126 symcode='[BCDEGRST]'
8128 osf*)
8129 symcode='[BCDEGQRST]'
8131 solaris*)
8132 symcode='[BDRT]'
8134 sco3.2v5*)
8135 symcode='[DT]'
8137 sysv4.2uw2*)
8138 symcode='[DT]'
8140 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8141 symcode='[ABDT]'
8143 sysv4)
8144 symcode='[DFNSTU]'
8146 esac
8148 # If we're using GNU nm, then use its standard symbol codes.
8149 case `$NM -V 2>&1` in
8150 *GNU* | *'with BFD'*)
8151 symcode='[ABCDGIRSTW]' ;;
8152 esac
8154 # Transform an extracted symbol line into a proper C declaration.
8155 # Some systems (esp. on ia64) link data and code symbols differently,
8156 # so use this general approach.
8157 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8159 # Transform an extracted symbol line into symbol name and symbol address
8160 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8161 lt_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'"
8163 # Handle CRLF in mingw tool chain
8164 opt_cr=
8165 case $build_os in
8166 mingw*)
8167 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8169 esac
8171 # Try without a prefix underscore, then with it.
8172 for ac_symprfx in "" "_"; do
8174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8175 symxfrm="\\1 $ac_symprfx\\2 \\2"
8177 # Write the raw and C identifiers.
8178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8179 # Fake it for dumpbin and say T for any non-static function
8180 # and D for any global variable.
8181 # Also find C++ and __fastcall symbols from MSVC++,
8182 # which start with @ or ?.
8183 lt_cv_sys_global_symbol_pipe="$AWK '"\
8184 " {last_section=section; section=\$ 3};"\
8185 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8186 " \$ 0!~/External *\|/{next};"\
8187 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8188 " {if(hide[section]) next};"\
8189 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8190 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8191 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8192 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8193 " ' prfx=^$ac_symprfx"
8194 else
8195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8198 # Check to see that the pipe works correctly.
8199 pipe_works=no
8201 rm -f conftest*
8202 cat > conftest.$ac_ext <<_LT_EOF
8203 #ifdef __cplusplus
8204 extern "C" {
8205 #endif
8206 char nm_test_var;
8207 void nm_test_func(void);
8208 void nm_test_func(void){}
8209 #ifdef __cplusplus
8211 #endif
8212 int main(){nm_test_var='a';nm_test_func();return(0);}
8213 _LT_EOF
8215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8216 (eval $ac_compile) 2>&5
8217 ac_status=$?
8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }; then
8220 # Now try to grab the symbols.
8221 nlist=conftest.nm
8222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8223 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8224 ac_status=$?
8225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8226 test $ac_status = 0; } && test -s "$nlist"; then
8227 # Try sorting and uniquifying the output.
8228 if sort "$nlist" | uniq > "$nlist"T; then
8229 mv -f "$nlist"T "$nlist"
8230 else
8231 rm -f "$nlist"T
8234 # Make sure that we snagged all the symbols we need.
8235 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8236 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8237 cat <<_LT_EOF > conftest.$ac_ext
8238 #ifdef __cplusplus
8239 extern "C" {
8240 #endif
8242 _LT_EOF
8243 # Now generate the symbol file.
8244 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8246 cat <<_LT_EOF >> conftest.$ac_ext
8248 /* The mapping between symbol names and symbols. */
8249 const struct {
8250 const char *name;
8251 void *address;
8253 lt__PROGRAM__LTX_preloaded_symbols[] =
8255 { "@PROGRAM@", (void *) 0 },
8256 _LT_EOF
8257 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8258 cat <<\_LT_EOF >> conftest.$ac_ext
8259 {0, (void *) 0}
8262 /* This works around a problem in FreeBSD linker */
8263 #ifdef FREEBSD_WORKAROUND
8264 static const void *lt_preloaded_setup() {
8265 return lt__PROGRAM__LTX_preloaded_symbols;
8267 #endif
8269 #ifdef __cplusplus
8271 #endif
8272 _LT_EOF
8273 # Now try linking the two files.
8274 mv conftest.$ac_objext conftstm.$ac_objext
8275 lt_save_LIBS="$LIBS"
8276 lt_save_CFLAGS="$CFLAGS"
8277 LIBS="conftstm.$ac_objext"
8278 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8284 pipe_works=yes
8286 LIBS="$lt_save_LIBS"
8287 CFLAGS="$lt_save_CFLAGS"
8288 else
8289 echo "cannot find nm_test_func in $nlist" >&5
8291 else
8292 echo "cannot find nm_test_var in $nlist" >&5
8294 else
8295 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8297 else
8298 echo "$progname: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 rm -rf conftest* conftst*
8303 # Do not use the global_symbol_pipe unless it works.
8304 if test "$pipe_works" = yes; then
8305 break
8306 else
8307 lt_cv_sys_global_symbol_pipe=
8309 done
8313 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8314 lt_cv_sys_global_symbol_to_cdecl=
8316 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8318 $as_echo "failed" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8321 $as_echo "ok" >&6; }
8345 # Check whether --enable-libtool-lock was given.
8346 if test "${enable_libtool_lock+set}" = set; then :
8347 enableval=$enable_libtool_lock;
8350 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8352 # Some flags need to be propagated to the compiler or linker for good
8353 # libtool support.
8354 case $host in
8355 ia64-*-hpux*)
8356 # Find out which ABI we are using.
8357 echo 'int i;' > conftest.$ac_ext
8358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8359 (eval $ac_compile) 2>&5
8360 ac_status=$?
8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
8363 case `/usr/bin/file conftest.$ac_objext` in
8364 *ELF-32*)
8365 HPUX_IA64_MODE="32"
8367 *ELF-64*)
8368 HPUX_IA64_MODE="64"
8370 esac
8372 rm -rf conftest*
8374 *-*-irix6*)
8375 # Find out which ABI we are using.
8376 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 if test "$lt_cv_prog_gnu_ld" = yes; then
8383 case `/usr/bin/file conftest.$ac_objext` in
8384 *32-bit*)
8385 LD="${LD-ld} -melf32bsmip"
8387 *N32*)
8388 LD="${LD-ld} -melf32bmipn32"
8390 *64-bit*)
8391 LD="${LD-ld} -melf64bmip"
8393 esac
8394 else
8395 case `/usr/bin/file conftest.$ac_objext` in
8396 *32-bit*)
8397 LD="${LD-ld} -32"
8399 *N32*)
8400 LD="${LD-ld} -n32"
8402 *64-bit*)
8403 LD="${LD-ld} -64"
8405 esac
8408 rm -rf conftest*
8411 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8412 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8413 # Find out which ABI we are using.
8414 echo 'int i;' > conftest.$ac_ext
8415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8416 (eval $ac_compile) 2>&5
8417 ac_status=$?
8418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8419 test $ac_status = 0; }; then
8420 case `/usr/bin/file conftest.o` in
8421 *32-bit*)
8422 case $host in
8423 x86_64-*kfreebsd*-gnu)
8424 LD="${LD-ld} -m elf_i386_fbsd"
8426 x86_64-*linux*)
8427 case `/usr/bin/file conftest.o` in
8428 *x86-64*)
8429 LD="${LD-ld} -m elf32_x86_64"
8432 LD="${LD-ld} -m elf_i386"
8434 esac
8436 powerpc64le-*linux*)
8437 LD="${LD-ld} -m elf32lppclinux"
8439 powerpc64-*linux*)
8440 LD="${LD-ld} -m elf32ppclinux"
8442 s390x-*linux*)
8443 LD="${LD-ld} -m elf_s390"
8445 sparc64-*linux*)
8446 LD="${LD-ld} -m elf32_sparc"
8448 esac
8450 *64-bit*)
8451 case $host in
8452 x86_64-*kfreebsd*-gnu)
8453 LD="${LD-ld} -m elf_x86_64_fbsd"
8455 x86_64-*linux*)
8456 LD="${LD-ld} -m elf_x86_64"
8458 powerpcle-*linux*)
8459 LD="${LD-ld} -m elf64lppc"
8461 powerpc-*linux*)
8462 LD="${LD-ld} -m elf64ppc"
8464 s390*-*linux*|s390*-*tpf*)
8465 LD="${LD-ld} -m elf64_s390"
8467 sparc*-*linux*)
8468 LD="${LD-ld} -m elf64_sparc"
8470 esac
8472 esac
8474 rm -rf conftest*
8477 *-*-sco3.2v5*)
8478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8479 SAVE_CFLAGS="$CFLAGS"
8480 CFLAGS="$CFLAGS -belf"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8482 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8483 if ${lt_cv_cc_needs_belf+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492 if test x$gcc_no_link = xyes; then
8493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8499 main ()
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507 lt_cv_cc_needs_belf=yes
8508 else
8509 lt_cv_cc_needs_belf=no
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 ac_ext=c
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8521 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8524 CFLAGS="$SAVE_CFLAGS"
8527 sparc*-*solaris*)
8528 # Find out which ABI we are using.
8529 echo 'int i;' > conftest.$ac_ext
8530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8531 (eval $ac_compile) 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534 test $ac_status = 0; }; then
8535 case `/usr/bin/file conftest.o` in
8536 *64-bit*)
8537 case $lt_cv_prog_gnu_ld in
8538 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8541 LD="${LD-ld} -64"
8544 esac
8546 esac
8548 rm -rf conftest*
8550 esac
8552 need_locks="$enable_libtool_lock"
8555 case $host_os in
8556 rhapsody* | darwin*)
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8559 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$DSYMUTIL"; then
8566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8585 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8586 if test -n "$DSYMUTIL"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8588 $as_echo "$DSYMUTIL" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test -z "$ac_cv_prog_DSYMUTIL"; then
8597 ac_ct_DSYMUTIL=$DSYMUTIL
8598 # Extract the first word of "dsymutil", so it can be a program name with args.
8599 set dummy dsymutil; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 if test -n "$ac_ct_DSYMUTIL"; then
8606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8619 done
8620 done
8621 IFS=$as_save_IFS
8625 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8626 if test -n "$ac_ct_DSYMUTIL"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8628 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8634 if test "x$ac_ct_DSYMUTIL" = x; then
8635 DSYMUTIL=":"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638 yes:)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned=yes ;;
8642 esac
8643 DSYMUTIL=$ac_ct_DSYMUTIL
8645 else
8646 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8649 if test -n "$ac_tool_prefix"; then
8650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8651 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if ${ac_cv_prog_NMEDIT+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -n "$NMEDIT"; then
8658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8659 else
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8677 NMEDIT=$ac_cv_prog_NMEDIT
8678 if test -n "$NMEDIT"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8680 $as_echo "$NMEDIT" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8688 if test -z "$ac_cv_prog_NMEDIT"; then
8689 ac_ct_NMEDIT=$NMEDIT
8690 # Extract the first word of "nmedit", so it can be a program name with args.
8691 set dummy nmedit; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$ac_ct_NMEDIT"; then
8698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8717 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8718 if test -n "$ac_ct_NMEDIT"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8720 $as_echo "$ac_ct_NMEDIT" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8726 if test "x$ac_ct_NMEDIT" = x; then
8727 NMEDIT=":"
8728 else
8729 case $cross_compiling:$ac_tool_warned in
8730 yes:)
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8733 ac_tool_warned=yes ;;
8734 esac
8735 NMEDIT=$ac_ct_NMEDIT
8737 else
8738 NMEDIT="$ac_cv_prog_NMEDIT"
8741 if test -n "$ac_tool_prefix"; then
8742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8743 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_prog_LIPO+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$LIPO"; then
8750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8763 done
8764 done
8765 IFS=$as_save_IFS
8769 LIPO=$ac_cv_prog_LIPO
8770 if test -n "$LIPO"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8772 $as_echo "$LIPO" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8780 if test -z "$ac_cv_prog_LIPO"; then
8781 ac_ct_LIPO=$LIPO
8782 # Extract the first word of "lipo", so it can be a program name with args.
8783 set dummy lipo; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$ac_ct_LIPO"; then
8790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_ac_ct_LIPO="lipo"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8805 IFS=$as_save_IFS
8809 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8810 if test -n "$ac_ct_LIPO"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8812 $as_echo "$ac_ct_LIPO" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8818 if test "x$ac_ct_LIPO" = x; then
8819 LIPO=":"
8820 else
8821 case $cross_compiling:$ac_tool_warned in
8822 yes:)
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8825 ac_tool_warned=yes ;;
8826 esac
8827 LIPO=$ac_ct_LIPO
8829 else
8830 LIPO="$ac_cv_prog_LIPO"
8833 if test -n "$ac_tool_prefix"; then
8834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8835 set dummy ${ac_tool_prefix}otool; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_OTOOL+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$OTOOL"; then
8842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8861 OTOOL=$ac_cv_prog_OTOOL
8862 if test -n "$OTOOL"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8864 $as_echo "$OTOOL" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8872 if test -z "$ac_cv_prog_OTOOL"; then
8873 ac_ct_OTOOL=$OTOOL
8874 # Extract the first word of "otool", so it can be a program name with args.
8875 set dummy otool; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$ac_ct_OTOOL"; then
8882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891 ac_cv_prog_ac_ct_OTOOL="otool"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8902 if test -n "$ac_ct_OTOOL"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8904 $as_echo "$ac_ct_OTOOL" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8910 if test "x$ac_ct_OTOOL" = x; then
8911 OTOOL=":"
8912 else
8913 case $cross_compiling:$ac_tool_warned in
8914 yes:)
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8917 ac_tool_warned=yes ;;
8918 esac
8919 OTOOL=$ac_ct_OTOOL
8921 else
8922 OTOOL="$ac_cv_prog_OTOOL"
8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8927 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if ${ac_cv_prog_OTOOL64+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 if test -n "$OTOOL64"; then
8934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8947 done
8948 done
8949 IFS=$as_save_IFS
8953 OTOOL64=$ac_cv_prog_OTOOL64
8954 if test -n "$OTOOL64"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8956 $as_echo "$OTOOL64" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8964 if test -z "$ac_cv_prog_OTOOL64"; then
8965 ac_ct_OTOOL64=$OTOOL64
8966 # Extract the first word of "otool64", so it can be a program name with args.
8967 set dummy otool64; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$ac_ct_OTOOL64"; then
8974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_prog_ac_ct_OTOOL64="otool64"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8993 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8994 if test -n "$ac_ct_OTOOL64"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8996 $as_echo "$ac_ct_OTOOL64" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9002 if test "x$ac_ct_OTOOL64" = x; then
9003 OTOOL64=":"
9004 else
9005 case $cross_compiling:$ac_tool_warned in
9006 yes:)
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9009 ac_tool_warned=yes ;;
9010 esac
9011 OTOOL64=$ac_ct_OTOOL64
9013 else
9014 OTOOL64="$ac_cv_prog_OTOOL64"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9044 $as_echo_n "checking for -single_module linker flag... " >&6; }
9045 if ${lt_cv_apple_cc_single_mod+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_apple_cc_single_mod=no
9049 if test -z "${LT_MULTI_MODULE}"; then
9050 # By default we will add the -single_module flag. You can override
9051 # by either setting the environment variable LT_MULTI_MODULE
9052 # non-empty at configure time, or by adding -multi_module to the
9053 # link flags.
9054 rm -rf libconftest.dylib*
9055 echo "int foo(void){return 1;}" > conftest.c
9056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9057 -dynamiclib -Wl,-single_module conftest.c" >&5
9058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9060 _lt_result=$?
9061 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9062 lt_cv_apple_cc_single_mod=yes
9063 else
9064 cat conftest.err >&5
9066 rm -rf libconftest.dylib*
9067 rm -f conftest.*
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9071 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9073 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9074 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 lt_cv_ld_exported_symbols_list=no
9078 save_LDFLAGS=$LDFLAGS
9079 echo "_main" > conftest.sym
9080 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9081 if test x$gcc_no_link = xyes; then
9082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9088 main ()
9092 return 0;
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 lt_cv_ld_exported_symbols_list=yes
9097 else
9098 lt_cv_ld_exported_symbols_list=no
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LDFLAGS="$save_LDFLAGS"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9106 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9108 $as_echo_n "checking for -force_load linker flag... " >&6; }
9109 if ${lt_cv_ld_force_load+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 lt_cv_ld_force_load=no
9113 cat > conftest.c << _LT_EOF
9114 int forced_loaded() { return 2;}
9115 _LT_EOF
9116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9118 echo "$AR cru libconftest.a conftest.o" >&5
9119 $AR cru libconftest.a conftest.o 2>&5
9120 cat > conftest.c << _LT_EOF
9121 int main() { return 0;}
9122 _LT_EOF
9123 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9124 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9125 _lt_result=$?
9126 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9127 lt_cv_ld_force_load=yes
9128 else
9129 cat conftest.err >&5
9131 rm -f conftest.err libconftest.a conftest conftest.c
9132 rm -rf conftest.dSYM
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9136 $as_echo "$lt_cv_ld_force_load" >&6; }
9137 case $host_os in
9138 rhapsody* | darwin1.[012])
9139 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9140 darwin1.*)
9141 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9142 darwin*) # darwin 5.x on
9143 # if running on 10.5 or later, the deployment target defaults
9144 # to the OS version, if on x86, and 10.4, the deployment
9145 # target defaults to 10.4. Don't you love it?
9146 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9147 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9149 10.[012][,.]*)
9150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9151 10.*)
9152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9153 esac
9155 esac
9156 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9157 _lt_dar_single_mod='$single_module'
9159 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9160 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9161 else
9162 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9164 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9165 _lt_dsymutil='~$DSYMUTIL $lib || :'
9166 else
9167 _lt_dsymutil=
9170 esac
9172 for ac_header in dlfcn.h
9173 do :
9174 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9176 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_DLFCN_H 1
9179 _ACEOF
9183 done
9189 # Set options
9194 enable_win32_dll=no
9197 # Check whether --enable-shared was given.
9198 if test "${enable_shared+set}" = set; then :
9199 enableval=$enable_shared; p=${PACKAGE-default}
9200 case $enableval in
9201 yes) enable_shared=yes ;;
9202 no) enable_shared=no ;;
9204 enable_shared=no
9205 # Look at the argument we got. We use all the common list separators.
9206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9207 for pkg in $enableval; do
9208 IFS="$lt_save_ifs"
9209 if test "X$pkg" = "X$p"; then
9210 enable_shared=yes
9212 done
9213 IFS="$lt_save_ifs"
9215 esac
9216 else
9217 enable_shared=yes
9228 # Check whether --enable-static was given.
9229 if test "${enable_static+set}" = set; then :
9230 enableval=$enable_static; p=${PACKAGE-default}
9231 case $enableval in
9232 yes) enable_static=yes ;;
9233 no) enable_static=no ;;
9235 enable_static=no
9236 # Look at the argument we got. We use all the common list separators.
9237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9238 for pkg in $enableval; do
9239 IFS="$lt_save_ifs"
9240 if test "X$pkg" = "X$p"; then
9241 enable_static=yes
9243 done
9244 IFS="$lt_save_ifs"
9246 esac
9247 else
9248 enable_static=yes
9260 # Check whether --with-pic was given.
9261 if test "${with_pic+set}" = set; then :
9262 withval=$with_pic; pic_mode="$withval"
9263 else
9264 pic_mode=default
9268 test -z "$pic_mode" && pic_mode=default
9276 # Check whether --enable-fast-install was given.
9277 if test "${enable_fast_install+set}" = set; then :
9278 enableval=$enable_fast_install; p=${PACKAGE-default}
9279 case $enableval in
9280 yes) enable_fast_install=yes ;;
9281 no) enable_fast_install=no ;;
9283 enable_fast_install=no
9284 # Look at the argument we got. We use all the common list separators.
9285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9286 for pkg in $enableval; do
9287 IFS="$lt_save_ifs"
9288 if test "X$pkg" = "X$p"; then
9289 enable_fast_install=yes
9291 done
9292 IFS="$lt_save_ifs"
9294 esac
9295 else
9296 enable_fast_install=yes
9309 # This can be used to rebuild libtool when needed
9310 LIBTOOL_DEPS="$ltmain"
9312 # Always use our own libtool.
9313 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9340 test -z "$LN_S" && LN_S="ln -s"
9355 if test -n "${ZSH_VERSION+set}" ; then
9356 setopt NO_GLOB_SUBST
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9360 $as_echo_n "checking for objdir... " >&6; }
9361 if ${lt_cv_objdir+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 rm -f .libs 2>/dev/null
9365 mkdir .libs 2>/dev/null
9366 if test -d .libs; then
9367 lt_cv_objdir=.libs
9368 else
9369 # MS-DOS does not allow filenames that begin with a dot.
9370 lt_cv_objdir=_libs
9372 rmdir .libs 2>/dev/null
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9375 $as_echo "$lt_cv_objdir" >&6; }
9376 objdir=$lt_cv_objdir
9382 cat >>confdefs.h <<_ACEOF
9383 #define LT_OBJDIR "$lt_cv_objdir/"
9384 _ACEOF
9389 case $host_os in
9390 aix3*)
9391 # AIX sometimes has problems with the GCC collect2 program. For some
9392 # reason, if we set the COLLECT_NAMES environment variable, the problems
9393 # vanish in a puff of smoke.
9394 if test "X${COLLECT_NAMES+set}" != Xset; then
9395 COLLECT_NAMES=
9396 export COLLECT_NAMES
9399 esac
9401 # Global variables:
9402 ofile=libtool
9403 can_build_shared=yes
9405 # All known linkers require a `.a' archive for static linking (except MSVC,
9406 # which needs '.lib').
9407 libext=a
9409 with_gnu_ld="$lt_cv_prog_gnu_ld"
9411 old_CC="$CC"
9412 old_CFLAGS="$CFLAGS"
9414 # Set sane defaults for various variables
9415 test -z "$CC" && CC=cc
9416 test -z "$LTCC" && LTCC=$CC
9417 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9418 test -z "$LD" && LD=ld
9419 test -z "$ac_objext" && ac_objext=o
9421 for cc_temp in $compiler""; do
9422 case $cc_temp in
9423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9425 \-*) ;;
9426 *) break;;
9427 esac
9428 done
9429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9432 # Only perform the check for file, if the check method requires it
9433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9434 case $deplibs_check_method in
9435 file_magic*)
9436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9438 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 case $MAGIC_CMD in
9443 [\\/*] | ?:[\\/]*)
9444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9447 lt_save_MAGIC_CMD="$MAGIC_CMD"
9448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9450 for ac_dir in $ac_dummy; do
9451 IFS="$lt_save_ifs"
9452 test -z "$ac_dir" && ac_dir=.
9453 if test -f $ac_dir/${ac_tool_prefix}file; then
9454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9455 if test -n "$file_magic_test_file"; then
9456 case $deplibs_check_method in
9457 "file_magic "*)
9458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9461 $EGREP "$file_magic_regex" > /dev/null; then
9463 else
9464 cat <<_LT_EOF 1>&2
9466 *** Warning: the command libtool uses to detect shared libraries,
9467 *** $file_magic_cmd, produces output that libtool cannot recognize.
9468 *** The result is that libtool may fail to recognize shared libraries
9469 *** as such. This will affect the creation of libtool libraries that
9470 *** depend on shared libraries, but programs linked with such libtool
9471 *** libraries will work regardless of this problem. Nevertheless, you
9472 *** may want to report the problem to your system manager and/or to
9473 *** bug-libtool@gnu.org
9475 _LT_EOF
9476 fi ;;
9477 esac
9479 break
9481 done
9482 IFS="$lt_save_ifs"
9483 MAGIC_CMD="$lt_save_MAGIC_CMD"
9485 esac
9488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9489 if test -n "$MAGIC_CMD"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9491 $as_echo "$MAGIC_CMD" >&6; }
9492 else
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9501 if test -z "$lt_cv_path_MAGIC_CMD"; then
9502 if test -n "$ac_tool_prefix"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9504 $as_echo_n "checking for file... " >&6; }
9505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 case $MAGIC_CMD in
9509 [\\/*] | ?:[\\/]*)
9510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9513 lt_save_MAGIC_CMD="$MAGIC_CMD"
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9516 for ac_dir in $ac_dummy; do
9517 IFS="$lt_save_ifs"
9518 test -z "$ac_dir" && ac_dir=.
9519 if test -f $ac_dir/file; then
9520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9521 if test -n "$file_magic_test_file"; then
9522 case $deplibs_check_method in
9523 "file_magic "*)
9524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9527 $EGREP "$file_magic_regex" > /dev/null; then
9529 else
9530 cat <<_LT_EOF 1>&2
9532 *** Warning: the command libtool uses to detect shared libraries,
9533 *** $file_magic_cmd, produces output that libtool cannot recognize.
9534 *** The result is that libtool may fail to recognize shared libraries
9535 *** as such. This will affect the creation of libtool libraries that
9536 *** depend on shared libraries, but programs linked with such libtool
9537 *** libraries will work regardless of this problem. Nevertheless, you
9538 *** may want to report the problem to your system manager and/or to
9539 *** bug-libtool@gnu.org
9541 _LT_EOF
9542 fi ;;
9543 esac
9545 break
9547 done
9548 IFS="$lt_save_ifs"
9549 MAGIC_CMD="$lt_save_MAGIC_CMD"
9551 esac
9554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9555 if test -n "$MAGIC_CMD"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9557 $as_echo "$MAGIC_CMD" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9564 else
9565 MAGIC_CMD=:
9571 esac
9573 # Use C for the default configuration in the libtool script
9575 lt_save_CC="$CC"
9576 ac_ext=c
9577 ac_cpp='$CPP $CPPFLAGS'
9578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9583 # Source file extension for C test sources.
9584 ac_ext=c
9586 # Object file extension for compiled C test sources.
9587 objext=o
9588 objext=$objext
9590 # Code to be used in simple compile tests
9591 lt_simple_compile_test_code="int some_variable = 0;"
9593 # Code to be used in simple link tests
9594 lt_simple_link_test_code='int main(){return(0);}'
9602 # If no C compiler was specified, use CC.
9603 LTCC=${LTCC-"$CC"}
9605 # If no C compiler flags were specified, use CFLAGS.
9606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9608 # Allow CC to be a program name with arguments.
9609 compiler=$CC
9611 # Save the default compiler, since it gets overwritten when the other
9612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9613 compiler_DEFAULT=$CC
9615 # save warnings/boilerplate of simple test code
9616 ac_outfile=conftest.$ac_objext
9617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9619 _lt_compiler_boilerplate=`cat conftest.err`
9620 $RM conftest*
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_linker_boilerplate=`cat conftest.err`
9626 $RM -r conftest*
9629 ## CAVEAT EMPTOR:
9630 ## There is no encapsulation within the following macros, do not change
9631 ## the running order or otherwise move them around unless you know exactly
9632 ## what you are doing...
9633 if test -n "$compiler"; then
9635 lt_prog_compiler_no_builtin_flag=
9637 if test "$GCC" = yes; then
9638 case $cc_basename in
9639 nvcc*)
9640 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9643 esac
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9647 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 lt_cv_prog_compiler_rtti_exceptions=no
9651 ac_outfile=conftest.$ac_objext
9652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653 lt_compiler_flag="-fno-rtti -fno-exceptions"
9654 # Insert the option either (1) after the last *FLAGS variable, or
9655 # (2) before a word containing "conftest.", or (3) at the end.
9656 # Note that $ac_compile itself does not contain backslashes and begins
9657 # with a dollar sign (not a hyphen), so the echo should work correctly.
9658 # The option is referenced via a variable to avoid confusing sed.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
9663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9664 (eval "$lt_compile" 2>conftest.err)
9665 ac_status=$?
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 if (exit $ac_status) && test -s "$ac_outfile"; then
9669 # The compiler can only warn and ignore the option if not recognized
9670 # So say no if there are warnings other than the usual output.
9671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler_rtti_exceptions=yes
9677 $RM conftest*
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9681 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9685 else
9696 lt_prog_compiler_wl=
9697 lt_prog_compiler_pic=
9698 lt_prog_compiler_static=
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9701 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9703 if test "$GCC" = yes; then
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_static='-static'
9707 case $host_os in
9708 aix*)
9709 # All AIX code is PIC.
9710 if test "$host_cpu" = ia64; then
9711 # AIX 5 now supports IA64 processor
9712 lt_prog_compiler_static='-Bstatic'
9714 lt_prog_compiler_pic='-fPIC'
9717 amigaos*)
9718 case $host_cpu in
9719 powerpc)
9720 # see comment about AmigaOS4 .so support
9721 lt_prog_compiler_pic='-fPIC'
9723 m68k)
9724 # FIXME: we need at least 68020 code to build shared libraries, but
9725 # adding the `-m68020' flag to GCC prevents building anything better,
9726 # like `-m68040'.
9727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9729 esac
9732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733 # PIC is the default for these OSes.
9736 mingw* | cygwin* | pw32* | os2* | cegcc*)
9737 # This hack is so that the source file can tell whether it is being
9738 # built for inclusion in a dll (and should export symbols for example).
9739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740 # (--disable-auto-import) libraries
9741 lt_prog_compiler_pic='-DDLL_EXPORT'
9744 darwin* | rhapsody*)
9745 # PIC is the default on this platform
9746 # Common symbols not allowed in MH_DYLIB files
9747 lt_prog_compiler_pic='-fno-common'
9750 haiku*)
9751 # PIC is the default for Haiku.
9752 # The "-static" flag exists, but is broken.
9753 lt_prog_compiler_static=
9756 hpux*)
9757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9759 # sets the default TLS model and affects inlining.
9760 case $host_cpu in
9761 hppa*64*)
9762 # +Z the default
9765 lt_prog_compiler_pic='-fPIC'
9767 esac
9770 interix[3-9]*)
9771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9772 # Instead, we relocate shared libraries at runtime.
9775 msdosdjgpp*)
9776 # Just because we use GCC doesn't mean we suddenly get shared libraries
9777 # on systems that don't support them.
9778 lt_prog_compiler_can_build_shared=no
9779 enable_shared=no
9782 *nto* | *qnx*)
9783 # QNX uses GNU C++, but need to define -shared option too, otherwise
9784 # it will coredump.
9785 lt_prog_compiler_pic='-fPIC -shared'
9788 sysv4*MP*)
9789 if test -d /usr/nec; then
9790 lt_prog_compiler_pic=-Kconform_pic
9795 lt_prog_compiler_pic='-fPIC'
9797 esac
9799 case $cc_basename in
9800 nvcc*) # Cuda Compiler Driver 2.2
9801 lt_prog_compiler_wl='-Xlinker '
9802 lt_prog_compiler_pic='-Xcompiler -fPIC'
9804 esac
9805 else
9806 # PORTME Check for flag to pass linker flags through the system compiler.
9807 case $host_os in
9808 aix*)
9809 lt_prog_compiler_wl='-Wl,'
9810 if test "$host_cpu" = ia64; then
9811 # AIX 5 now supports IA64 processor
9812 lt_prog_compiler_static='-Bstatic'
9813 else
9814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 hpux9* | hpux10* | hpux11*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827 # not for PA HP-UX.
9828 case $host_cpu in
9829 hppa*64*|ia64*)
9830 # +Z the default
9833 lt_prog_compiler_pic='+Z'
9835 esac
9836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837 lt_prog_compiler_static='${wl}-a ${wl}archive'
9840 irix5* | irix6* | nonstopux*)
9841 lt_prog_compiler_wl='-Wl,'
9842 # PIC (with -KPIC) is the default.
9843 lt_prog_compiler_static='-non_shared'
9846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9847 case $cc_basename in
9848 # old Intel for x86_64 which still supported -KPIC.
9849 ecc*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-static'
9854 # icc used to be incompatible with GCC.
9855 # ICC 10 doesn't accept -KPIC any more.
9856 icc* | ifort*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-fPIC'
9859 lt_prog_compiler_static='-static'
9861 # Lahey Fortran 8.1.
9862 lf95*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='--shared'
9865 lt_prog_compiler_static='--static'
9867 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9868 # Portland Group compilers (*not* the Pentium gcc compiler,
9869 # which looks to be a dead project)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-fpic'
9872 lt_prog_compiler_static='-Bstatic'
9874 ccc*)
9875 lt_prog_compiler_wl='-Wl,'
9876 # All Alpha code is PIC.
9877 lt_prog_compiler_static='-non_shared'
9879 xl* | bgxl* | bgf* | mpixl*)
9880 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-qpic'
9883 lt_prog_compiler_static='-qstaticlink'
9886 case `$CC -V 2>&1 | sed 5q` in
9887 *Sun\ F* | *Sun*Fortran*)
9888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9889 lt_prog_compiler_pic='-KPIC'
9890 lt_prog_compiler_static='-Bstatic'
9891 lt_prog_compiler_wl=''
9893 *Sun\ C*)
9894 # Sun C 5.9
9895 lt_prog_compiler_pic='-KPIC'
9896 lt_prog_compiler_static='-Bstatic'
9897 lt_prog_compiler_wl='-Wl,'
9899 esac
9901 esac
9904 newsos6)
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9909 *nto* | *qnx*)
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9911 # it will coredump.
9912 lt_prog_compiler_pic='-fPIC -shared'
9915 osf3* | osf4* | osf5*)
9916 lt_prog_compiler_wl='-Wl,'
9917 # All OSF/1 code is PIC.
9918 lt_prog_compiler_static='-non_shared'
9921 rdos*)
9922 lt_prog_compiler_static='-non_shared'
9925 solaris*)
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 case $cc_basename in
9929 f77* | f90* | f95*)
9930 lt_prog_compiler_wl='-Qoption ld ';;
9932 lt_prog_compiler_wl='-Wl,';;
9933 esac
9936 sunos4*)
9937 lt_prog_compiler_wl='-Qoption ld '
9938 lt_prog_compiler_pic='-PIC'
9939 lt_prog_compiler_static='-Bstatic'
9942 sysv4 | sysv4.2uw2* | sysv4.3*)
9943 lt_prog_compiler_wl='-Wl,'
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9948 sysv4*MP*)
9949 if test -d /usr/nec ;then
9950 lt_prog_compiler_pic='-Kconform_pic'
9951 lt_prog_compiler_static='-Bstatic'
9955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9961 unicos*)
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_can_build_shared=no
9966 uts4*)
9967 lt_prog_compiler_pic='-pic'
9968 lt_prog_compiler_static='-Bstatic'
9972 lt_prog_compiler_can_build_shared=no
9974 esac
9977 case $host_os in
9978 # For platforms which do not support PIC, -DPIC is meaningless:
9979 *djgpp*)
9980 lt_prog_compiler_pic=
9983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9985 esac
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9987 $as_echo "$lt_prog_compiler_pic" >&6; }
9995 # Check to make sure the PIC flag actually works.
9997 if test -n "$lt_prog_compiler_pic"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9999 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10000 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 lt_cv_prog_compiler_pic_works=no
10004 ac_outfile=conftest.$ac_objext
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10007 # Insert the option either (1) after the last *FLAGS variable, or
10008 # (2) before a word containing "conftest.", or (3) at the end.
10009 # Note that $ac_compile itself does not contain backslashes and begins
10010 # with a dollar sign (not a hyphen), so the echo should work correctly.
10011 # The option is referenced via a variable to avoid confusing sed.
10012 lt_compile=`echo "$ac_compile" | $SED \
10013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10015 -e 's:$: $lt_compiler_flag:'`
10016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10017 (eval "$lt_compile" 2>conftest.err)
10018 ac_status=$?
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 if (exit $ac_status) && test -s "$ac_outfile"; then
10022 # The compiler can only warn and ignore the option if not recognized
10023 # So say no if there are warnings other than the usual output.
10024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10027 lt_cv_prog_compiler_pic_works=yes
10030 $RM conftest*
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10034 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10036 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10037 case $lt_prog_compiler_pic in
10038 "" | " "*) ;;
10039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10040 esac
10041 else
10042 lt_prog_compiler_pic=
10043 lt_prog_compiler_can_build_shared=no
10054 # Check to make sure the static flag actually works.
10056 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10059 if ${lt_cv_prog_compiler_static_works+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 lt_cv_prog_compiler_static_works=no
10063 save_LDFLAGS="$LDFLAGS"
10064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10067 # The linker can only warn and ignore the option if not recognized
10068 # So say no if there are warnings
10069 if test -s conftest.err; then
10070 # Append any errors to the config.log.
10071 cat conftest.err 1>&5
10072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074 if diff conftest.exp conftest.er2 >/dev/null; then
10075 lt_cv_prog_compiler_static_works=yes
10077 else
10078 lt_cv_prog_compiler_static_works=yes
10081 $RM -r conftest*
10082 LDFLAGS="$save_LDFLAGS"
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10086 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10088 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10090 else
10091 lt_prog_compiler_static=
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10102 if ${lt_cv_prog_compiler_c_o+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 lt_cv_prog_compiler_c_o=no
10106 $RM -r conftest 2>/dev/null
10107 mkdir conftest
10108 cd conftest
10109 mkdir out
10110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10112 lt_compiler_flag="-o out/conftest2.$ac_objext"
10113 # Insert the option either (1) after the last *FLAGS variable, or
10114 # (2) before a word containing "conftest.", or (3) at the end.
10115 # Note that $ac_compile itself does not contain backslashes and begins
10116 # with a dollar sign (not a hyphen), so the echo should work correctly.
10117 lt_compile=`echo "$ac_compile" | $SED \
10118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10120 -e 's:$: $lt_compiler_flag:'`
10121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10122 (eval "$lt_compile" 2>out/conftest.err)
10123 ac_status=$?
10124 cat out/conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10127 then
10128 # The compiler can only warn and ignore the option if not recognized
10129 # So say no if there are warnings
10130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10133 lt_cv_prog_compiler_c_o=yes
10136 chmod u+w . 2>&5
10137 $RM conftest*
10138 # SGI C++ compiler will create directory out/ii_files/ for
10139 # template instantiation
10140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10141 $RM out/* && rmdir out
10142 cd ..
10143 $RM -r conftest
10144 $RM conftest*
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10148 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10156 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10157 if ${lt_cv_prog_compiler_c_o+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 lt_cv_prog_compiler_c_o=no
10161 $RM -r conftest 2>/dev/null
10162 mkdir conftest
10163 cd conftest
10164 mkdir out
10165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10167 lt_compiler_flag="-o out/conftest2.$ac_objext"
10168 # Insert the option either (1) after the last *FLAGS variable, or
10169 # (2) before a word containing "conftest.", or (3) at the end.
10170 # Note that $ac_compile itself does not contain backslashes and begins
10171 # with a dollar sign (not a hyphen), so the echo should work correctly.
10172 lt_compile=`echo "$ac_compile" | $SED \
10173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10175 -e 's:$: $lt_compiler_flag:'`
10176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10177 (eval "$lt_compile" 2>out/conftest.err)
10178 ac_status=$?
10179 cat out/conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10182 then
10183 # The compiler can only warn and ignore the option if not recognized
10184 # So say no if there are warnings
10185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10188 lt_cv_prog_compiler_c_o=yes
10191 chmod u+w . 2>&5
10192 $RM conftest*
10193 # SGI C++ compiler will create directory out/ii_files/ for
10194 # template instantiation
10195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10196 $RM out/* && rmdir out
10197 cd ..
10198 $RM -r conftest
10199 $RM conftest*
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10203 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10208 hard_links="nottested"
10209 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10210 # do not overwrite the value of need_locks provided by the user
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10212 $as_echo_n "checking if we can lock with hard links... " >&6; }
10213 hard_links=yes
10214 $RM conftest*
10215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10216 touch conftest.a
10217 ln conftest.a conftest.b 2>&5 || hard_links=no
10218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10220 $as_echo "$hard_links" >&6; }
10221 if test "$hard_links" = no; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10223 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10224 need_locks=warn
10226 else
10227 need_locks=no
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10238 runpath_var=
10239 allow_undefined_flag=
10240 always_export_symbols=no
10241 archive_cmds=
10242 archive_expsym_cmds=
10243 compiler_needs_object=no
10244 enable_shared_with_static_runtimes=no
10245 export_dynamic_flag_spec=
10246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10247 hardcode_automatic=no
10248 hardcode_direct=no
10249 hardcode_direct_absolute=no
10250 hardcode_libdir_flag_spec=
10251 hardcode_libdir_flag_spec_ld=
10252 hardcode_libdir_separator=
10253 hardcode_minus_L=no
10254 hardcode_shlibpath_var=unsupported
10255 inherit_rpath=no
10256 link_all_deplibs=unknown
10257 module_cmds=
10258 module_expsym_cmds=
10259 old_archive_from_new_cmds=
10260 old_archive_from_expsyms_cmds=
10261 thread_safe_flag_spec=
10262 whole_archive_flag_spec=
10263 # include_expsyms should be a list of space-separated symbols to be *always*
10264 # included in the symbol list
10265 include_expsyms=
10266 # exclude_expsyms can be an extended regexp of symbols to exclude
10267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10269 # as well as any symbol that contains `d'.
10270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10272 # platforms (ab)use it in PIC code, but their linkers get confused if
10273 # the symbol is explicitly referenced. Since portable code cannot
10274 # rely on this symbol name, it's probably fine to never include it in
10275 # preloaded symbol tables.
10276 # Exclude shared library initialization/finalization symbols.
10277 extract_expsyms_cmds=
10279 case $host_os in
10280 cygwin* | mingw* | pw32* | cegcc*)
10281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10282 # When not using gcc, we currently assume that we are using
10283 # Microsoft Visual C++.
10284 if test "$GCC" != yes; then
10285 with_gnu_ld=no
10288 interix*)
10289 # we just hope/assume this is gcc and not c89 (= MSVC++)
10290 with_gnu_ld=yes
10292 openbsd*)
10293 with_gnu_ld=no
10295 esac
10297 ld_shlibs=yes
10299 # On some targets, GNU ld is compatible enough with the native linker
10300 # that we're better off using the native interface for both.
10301 lt_use_gnu_ld_interface=no
10302 if test "$with_gnu_ld" = yes; then
10303 case $host_os in
10304 aix*)
10305 # The AIX port of GNU ld has always aspired to compatibility
10306 # with the native linker. However, as the warning in the GNU ld
10307 # block says, versions before 2.19.5* couldn't really create working
10308 # shared libraries, regardless of the interface used.
10309 case `$LD -v 2>&1` in
10310 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10311 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10312 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10314 lt_use_gnu_ld_interface=yes
10316 esac
10319 lt_use_gnu_ld_interface=yes
10321 esac
10324 if test "$lt_use_gnu_ld_interface" = yes; then
10325 # If archive_cmds runs LD, not CC, wlarc should be empty
10326 wlarc='${wl}'
10328 # Set some defaults for GNU ld with shared library support. These
10329 # are reset later if shared libraries are not supported. Putting them
10330 # here allows them to be overridden if necessary.
10331 runpath_var=LD_RUN_PATH
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 export_dynamic_flag_spec='${wl}--export-dynamic'
10334 # ancient GNU ld didn't support --whole-archive et. al.
10335 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10336 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10337 else
10338 whole_archive_flag_spec=
10340 supports_anon_versioning=no
10341 case `$LD -v 2>&1` in
10342 *GNU\ gold*) supports_anon_versioning=yes ;;
10343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10346 *\ 2.11.*) ;; # other 2.11 versions
10347 *) supports_anon_versioning=yes ;;
10348 esac
10350 # See if GNU ld supports shared libraries.
10351 case $host_os in
10352 aix[3-9]*)
10353 # On AIX/PPC, the GNU linker is very broken
10354 if test "$host_cpu" != ia64; then
10355 ld_shlibs=no
10356 cat <<_LT_EOF 1>&2
10358 *** Warning: the GNU linker, at least up to release 2.19, is reported
10359 *** to be unable to reliably create shared libraries on AIX.
10360 *** Therefore, libtool is disabling shared libraries support. If you
10361 *** really care for shared libraries, you may want to install binutils
10362 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10363 *** You will then need to restart the configuration process.
10365 _LT_EOF
10369 amigaos*)
10370 case $host_cpu in
10371 powerpc)
10372 # see comment about AmigaOS4 .so support
10373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 archive_expsym_cmds=''
10376 m68k)
10377 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10378 hardcode_libdir_flag_spec='-L$libdir'
10379 hardcode_minus_L=yes
10381 esac
10384 beos*)
10385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10386 allow_undefined_flag=unsupported
10387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388 # support --undefined. This deserves some investigation. FIXME
10389 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390 else
10391 ld_shlibs=no
10395 cygwin* | mingw* | pw32* | cegcc*)
10396 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10397 # as there is no search path for DLLs.
10398 hardcode_libdir_flag_spec='-L$libdir'
10399 export_dynamic_flag_spec='${wl}--export-all-symbols'
10400 allow_undefined_flag=unsupported
10401 always_export_symbols=no
10402 enable_shared_with_static_runtimes=yes
10403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10405 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10407 # If the export-symbols file already is a .def file (1st line
10408 # is EXPORTS), use it as is; otherwise, prepend...
10409 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10410 cp $export_symbols $output_objdir/$soname.def;
10411 else
10412 echo EXPORTS > $output_objdir/$soname.def;
10413 cat $export_symbols >> $output_objdir/$soname.def;
10415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10416 else
10417 ld_shlibs=no
10421 haiku*)
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 link_all_deplibs=yes
10426 interix[3-9]*)
10427 hardcode_direct=no
10428 hardcode_shlibpath_var=no
10429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10430 export_dynamic_flag_spec='${wl}-E'
10431 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10432 # Instead, shared libraries are loaded at an image base (0x10000000 by
10433 # default) and relocated if they conflict, which is a slow very memory
10434 # consuming and fragmenting process. To avoid this, we pick a random,
10435 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10436 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10438 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10441 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10442 tmp_diet=no
10443 if test "$host_os" = linux-dietlibc; then
10444 case $cc_basename in
10445 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10446 esac
10448 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10449 && test "$tmp_diet" = no
10450 then
10451 tmp_addflag=' $pic_flag'
10452 tmp_sharedflag='-shared'
10453 case $cc_basename,$host_cpu in
10454 pgcc*) # Portland Group C compiler
10455 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10456 tmp_addflag=' $pic_flag'
10458 pgf77* | pgf90* | pgf95* | pgfortran*)
10459 # Portland Group f77 and f90 compilers
10460 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10461 tmp_addflag=' $pic_flag -Mnomain' ;;
10462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10463 tmp_addflag=' -i_dynamic' ;;
10464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10465 tmp_addflag=' -i_dynamic -nofor_main' ;;
10466 ifc* | ifort*) # Intel Fortran compiler
10467 tmp_addflag=' -nofor_main' ;;
10468 lf95*) # Lahey Fortran 8.1
10469 whole_archive_flag_spec=
10470 tmp_sharedflag='--shared' ;;
10471 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10472 tmp_sharedflag='-qmkshrobj'
10473 tmp_addflag= ;;
10474 nvcc*) # Cuda Compiler Driver 2.2
10475 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10476 compiler_needs_object=yes
10478 esac
10479 case `$CC -V 2>&1 | sed 5q` in
10480 *Sun\ C*) # Sun C 5.9
10481 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10482 compiler_needs_object=yes
10483 tmp_sharedflag='-G' ;;
10484 *Sun\ F*) # Sun Fortran 8.3
10485 tmp_sharedflag='-G' ;;
10486 esac
10487 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10489 if test "x$supports_anon_versioning" = xyes; then
10490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10492 echo "local: *; };" >> $output_objdir/$libname.ver~
10493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10496 case $cc_basename in
10497 xlf* | bgf* | bgxlf* | mpixlf*)
10498 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10499 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10500 hardcode_libdir_flag_spec=
10501 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10502 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10503 if test "x$supports_anon_versioning" = xyes; then
10504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10505 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10506 echo "local: *; };" >> $output_objdir/$libname.ver~
10507 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10510 esac
10511 else
10512 ld_shlibs=no
10516 netbsd*)
10517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10519 wlarc=
10520 else
10521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10526 solaris*)
10527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10528 ld_shlibs=no
10529 cat <<_LT_EOF 1>&2
10531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10532 *** create shared libraries on Solaris systems. Therefore, libtool
10533 *** is disabling shared libraries support. We urge you to upgrade GNU
10534 *** binutils to release 2.9.1 or newer. Another option is to modify
10535 *** your PATH or compiler configuration so that the native linker is
10536 *** used, and then restart.
10538 _LT_EOF
10539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10542 else
10543 ld_shlibs=no
10547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10548 case `$LD -v 2>&1` in
10549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10550 ld_shlibs=no
10551 cat <<_LT_EOF 1>&2
10553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10554 *** reliably create shared libraries on SCO systems. Therefore, libtool
10555 *** is disabling shared libraries support. We urge you to upgrade GNU
10556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10557 *** your PATH or compiler configuration so that the native linker is
10558 *** used, and then restart.
10560 _LT_EOF
10563 # For security reasons, it is highly recommended that you always
10564 # use absolute paths for naming shared libraries, and exclude the
10565 # DT_RUNPATH tag from executables and libraries. But doing so
10566 # requires that you compile everything twice, which is a pain.
10567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10571 else
10572 ld_shlibs=no
10575 esac
10578 sunos4*)
10579 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10580 wlarc=
10581 hardcode_direct=yes
10582 hardcode_shlibpath_var=no
10586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589 else
10590 ld_shlibs=no
10593 esac
10595 if test "$ld_shlibs" = no; then
10596 runpath_var=
10597 hardcode_libdir_flag_spec=
10598 export_dynamic_flag_spec=
10599 whole_archive_flag_spec=
10601 else
10602 # PORTME fill in a description of your system's linker (not GNU ld)
10603 case $host_os in
10604 aix3*)
10605 allow_undefined_flag=unsupported
10606 always_export_symbols=yes
10607 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10608 # Note: this linker hardcodes the directories in LIBPATH if there
10609 # are no directories specified by -L.
10610 hardcode_minus_L=yes
10611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10612 # Neither direct hardcoding nor static linking is supported with a
10613 # broken collect2.
10614 hardcode_direct=unsupported
10618 aix[4-9]*)
10619 if test "$host_cpu" = ia64; then
10620 # On IA64, the linker does run time linking by default, so we don't
10621 # have to do anything special.
10622 aix_use_runtimelinking=no
10623 exp_sym_flag='-Bexport'
10624 no_entry_flag=""
10625 else
10626 # If we're using GNU nm, then we don't want the "-C" option.
10627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10628 # Also, AIX nm treats weak defined symbols like other global
10629 # defined symbols, whereas GNU nm marks them as "W".
10630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10631 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10632 else
10633 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10635 aix_use_runtimelinking=no
10637 # Test if we are trying to use run time linking or normal
10638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10639 # need to do runtime linking.
10640 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10641 for ld_flag in $LDFLAGS; do
10642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10643 aix_use_runtimelinking=yes
10644 break
10646 done
10648 esac
10650 exp_sym_flag='-bexport'
10651 no_entry_flag='-bnoentry'
10654 # When large executables or shared objects are built, AIX ld can
10655 # have problems creating the table of contents. If linking a library
10656 # or program results in "error TOC overflow" add -mminimal-toc to
10657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10660 archive_cmds=''
10661 hardcode_direct=yes
10662 hardcode_direct_absolute=yes
10663 hardcode_libdir_separator=':'
10664 link_all_deplibs=yes
10665 file_list_spec='${wl}-f,'
10667 if test "$GCC" = yes; then
10668 case $host_os in aix4.[012]|aix4.[012].*)
10669 # We only want to do this on AIX 4.2 and lower, the check
10670 # below for broken collect2 doesn't work under 4.3+
10671 collect2name=`${CC} -print-prog-name=collect2`
10672 if test -f "$collect2name" &&
10673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10674 then
10675 # We have reworked collect2
10677 else
10678 # We have old collect2
10679 hardcode_direct=unsupported
10680 # It fails to find uninstalled libraries when the uninstalled
10681 # path is not listed in the libpath. Setting hardcode_minus_L
10682 # to unsupported forces relinking
10683 hardcode_minus_L=yes
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_libdir_separator=
10688 esac
10689 shared_flag='-shared'
10690 if test "$aix_use_runtimelinking" = yes; then
10691 shared_flag="$shared_flag "'${wl}-G'
10693 else
10694 # not using gcc
10695 if test "$host_cpu" = ia64; then
10696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10697 # chokes on -Wl,-G. The following line is correct:
10698 shared_flag='-G'
10699 else
10700 if test "$aix_use_runtimelinking" = yes; then
10701 shared_flag='${wl}-G'
10702 else
10703 shared_flag='${wl}-bM:SRE'
10708 export_dynamic_flag_spec='${wl}-bexpall'
10709 # It seems that -bexpall does not export symbols beginning with
10710 # underscore (_), so it is better to generate a list of symbols to export.
10711 always_export_symbols=yes
10712 if test "$aix_use_runtimelinking" = yes; then
10713 # Warning - without using the other runtime loading flags (-brtl),
10714 # -berok will link without error, but may produce a broken library.
10715 allow_undefined_flag='-berok'
10716 # Determine the default libpath from the value encoded in an
10717 # empty executable.
10718 if test x$gcc_no_link = xyes; then
10719 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10725 main ()
10729 return 0;
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"; then :
10734 lt_aix_libpath_sed='
10735 /Import File Strings/,/^$/ {
10736 /^0/ {
10737 s/^0 *\(.*\)$/\1/
10741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10742 # Check for a 64-bit object if we didn't find anything.
10743 if test -z "$aix_libpath"; then
10744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10751 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10752 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10753 else
10754 if test "$host_cpu" = ia64; then
10755 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10756 allow_undefined_flag="-z nodefs"
10757 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10758 else
10759 # Determine the default libpath from the value encoded in an
10760 # empty executable.
10761 if test x$gcc_no_link = xyes; then
10762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10768 main ()
10772 return 0;
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10777 lt_aix_libpath_sed='
10778 /Import File Strings/,/^$/ {
10779 /^0/ {
10780 s/^0 *\(.*\)$/\1/
10784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785 # Check for a 64-bit object if we didn't find anything.
10786 if test -z "$aix_libpath"; then
10787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795 # Warning - without using the other run time loading flags,
10796 # -berok will link without error, but may produce a broken library.
10797 no_undefined_flag=' ${wl}-bernotok'
10798 allow_undefined_flag=' ${wl}-berok'
10799 if test "$with_gnu_ld" = yes; then
10800 # We only use this code for GNU lds that support --whole-archive.
10801 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10802 else
10803 # Exported symbols can be pulled into shared objects from archives
10804 whole_archive_flag_spec='$convenience'
10806 archive_cmds_need_lc=yes
10807 # This is similar to how AIX traditionally builds its shared libraries.
10808 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10813 amigaos*)
10814 case $host_cpu in
10815 powerpc)
10816 # see comment about AmigaOS4 .so support
10817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 archive_expsym_cmds=''
10820 m68k)
10821 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_minus_L=yes
10825 esac
10828 bsdi[45]*)
10829 export_dynamic_flag_spec=-rdynamic
10832 cygwin* | mingw* | pw32* | cegcc*)
10833 # When not using gcc, we currently assume that we are using
10834 # Microsoft Visual C++.
10835 # hardcode_libdir_flag_spec is actually meaningless, as there is
10836 # no search path for DLLs.
10837 hardcode_libdir_flag_spec=' '
10838 allow_undefined_flag=unsupported
10839 # Tell ltmain to make .lib files, not .a files.
10840 libext=lib
10841 # Tell ltmain to make .dll files, not .so files.
10842 shrext_cmds=".dll"
10843 # FIXME: Setting linknames here is a bad hack.
10844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10845 # The linker will automatically build a .lib file if we build a DLL.
10846 old_archive_from_new_cmds='true'
10847 # FIXME: Should let the user specify the lib program.
10848 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10849 fix_srcfile_path='`cygpath -w "$srcfile"`'
10850 enable_shared_with_static_runtimes=yes
10853 darwin* | rhapsody*)
10856 archive_cmds_need_lc=no
10857 hardcode_direct=no
10858 hardcode_automatic=yes
10859 hardcode_shlibpath_var=unsupported
10860 if test "$lt_cv_ld_force_load" = "yes"; then
10861 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10862 else
10863 whole_archive_flag_spec=''
10865 link_all_deplibs=yes
10866 allow_undefined_flag="$_lt_dar_allow_undefined"
10867 case $cc_basename in
10868 ifort*) _lt_dar_can_shared=yes ;;
10869 *) _lt_dar_can_shared=$GCC ;;
10870 esac
10871 if test "$_lt_dar_can_shared" = "yes"; then
10872 output_verbose_link_cmd=func_echo_all
10873 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10874 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10875 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10876 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10878 else
10879 ld_shlibs=no
10884 dgux*)
10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886 hardcode_libdir_flag_spec='-L$libdir'
10887 hardcode_shlibpath_var=no
10890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10891 # support. Future versions do this automatically, but an explicit c++rt0.o
10892 # does not break anything, and helps significantly (at the cost of a little
10893 # extra space).
10894 freebsd2.2*)
10895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10896 hardcode_libdir_flag_spec='-R$libdir'
10897 hardcode_direct=yes
10898 hardcode_shlibpath_var=no
10901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10902 freebsd2.*)
10903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=yes
10905 hardcode_minus_L=yes
10906 hardcode_shlibpath_var=no
10909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10910 freebsd* | dragonfly*)
10911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10912 hardcode_libdir_flag_spec='-R$libdir'
10913 hardcode_direct=yes
10914 hardcode_shlibpath_var=no
10917 hpux9*)
10918 if test "$GCC" = yes; then
10919 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10920 else
10921 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10924 hardcode_libdir_separator=:
10925 hardcode_direct=yes
10927 # hardcode_minus_L: Not really in the search PATH,
10928 # but as the default location of the library.
10929 hardcode_minus_L=yes
10930 export_dynamic_flag_spec='${wl}-E'
10933 hpux10*)
10934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10936 else
10937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10939 if test "$with_gnu_ld" = no; then
10940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10941 hardcode_libdir_flag_spec_ld='+b $libdir'
10942 hardcode_libdir_separator=:
10943 hardcode_direct=yes
10944 hardcode_direct_absolute=yes
10945 export_dynamic_flag_spec='${wl}-E'
10946 # hardcode_minus_L: Not really in the search PATH,
10947 # but as the default location of the library.
10948 hardcode_minus_L=yes
10952 hpux11*)
10953 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10954 case $host_cpu in
10955 hppa*64*)
10956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 ia64*)
10959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10964 esac
10965 else
10966 case $host_cpu in
10967 hppa*64*)
10968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 ia64*)
10971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10975 # Older versions of the 11.00 compiler do not understand -b yet
10976 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10978 $as_echo_n "checking if $CC understands -b... " >&6; }
10979 if ${lt_cv_prog_compiler__b+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 lt_cv_prog_compiler__b=no
10983 save_LDFLAGS="$LDFLAGS"
10984 LDFLAGS="$LDFLAGS -b"
10985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10987 # The linker can only warn and ignore the option if not recognized
10988 # So say no if there are warnings
10989 if test -s conftest.err; then
10990 # Append any errors to the config.log.
10991 cat conftest.err 1>&5
10992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10994 if diff conftest.exp conftest.er2 >/dev/null; then
10995 lt_cv_prog_compiler__b=yes
10997 else
10998 lt_cv_prog_compiler__b=yes
11001 $RM -r conftest*
11002 LDFLAGS="$save_LDFLAGS"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11006 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11008 if test x"$lt_cv_prog_compiler__b" = xyes; then
11009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11010 else
11011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11015 esac
11017 if test "$with_gnu_ld" = no; then
11018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11019 hardcode_libdir_separator=:
11021 case $host_cpu in
11022 hppa*64*|ia64*)
11023 hardcode_direct=no
11024 hardcode_shlibpath_var=no
11027 hardcode_direct=yes
11028 hardcode_direct_absolute=yes
11029 export_dynamic_flag_spec='${wl}-E'
11031 # hardcode_minus_L: Not really in the search PATH,
11032 # but as the default location of the library.
11033 hardcode_minus_L=yes
11035 esac
11039 irix5* | irix6* | nonstopux*)
11040 if test "$GCC" = yes; then
11041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11042 # Try to use the -exported_symbol ld option, if it does not
11043 # work, assume that -exports_file does not work either and
11044 # implicitly export all symbols.
11045 save_LDFLAGS="$LDFLAGS"
11046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11047 if test x$gcc_no_link = xyes; then
11048 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052 int foo(void) {}
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LDFLAGS="$save_LDFLAGS"
11061 else
11062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11065 archive_cmds_need_lc='no'
11066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067 hardcode_libdir_separator=:
11068 inherit_rpath=yes
11069 link_all_deplibs=yes
11072 netbsd*)
11073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11075 else
11076 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11078 hardcode_libdir_flag_spec='-R$libdir'
11079 hardcode_direct=yes
11080 hardcode_shlibpath_var=no
11083 newsos6)
11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085 hardcode_direct=yes
11086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11087 hardcode_libdir_separator=:
11088 hardcode_shlibpath_var=no
11091 *nto* | *qnx*)
11094 openbsd*)
11095 if test -f /usr/libexec/ld.so; then
11096 hardcode_direct=yes
11097 hardcode_shlibpath_var=no
11098 hardcode_direct_absolute=yes
11099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11103 export_dynamic_flag_spec='${wl}-E'
11104 else
11105 case $host_os in
11106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11108 hardcode_libdir_flag_spec='-R$libdir'
11111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11114 esac
11116 else
11117 ld_shlibs=no
11121 os2*)
11122 hardcode_libdir_flag_spec='-L$libdir'
11123 hardcode_minus_L=yes
11124 allow_undefined_flag=unsupported
11125 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11126 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11129 osf3*)
11130 if test "$GCC" = yes; then
11131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11132 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11133 else
11134 allow_undefined_flag=' -expect_unresolved \*'
11135 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11137 archive_cmds_need_lc='no'
11138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11139 hardcode_libdir_separator=:
11142 osf4* | osf5*) # as osf3* with the addition of -msym flag
11143 if test "$GCC" = yes; then
11144 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11145 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11147 else
11148 allow_undefined_flag=' -expect_unresolved \*'
11149 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11150 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11151 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11153 # Both c and cxx compiler support -rpath directly
11154 hardcode_libdir_flag_spec='-rpath $libdir'
11156 archive_cmds_need_lc='no'
11157 hardcode_libdir_separator=:
11160 solaris*)
11161 no_undefined_flag=' -z defs'
11162 if test "$GCC" = yes; then
11163 wlarc='${wl}'
11164 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11166 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11167 else
11168 case `$CC -V 2>&1` in
11169 *"Compilers 5.0"*)
11170 wlarc=''
11171 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11176 wlarc='${wl}'
11177 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11179 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11181 esac
11183 hardcode_libdir_flag_spec='-R$libdir'
11184 hardcode_shlibpath_var=no
11185 case $host_os in
11186 solaris2.[0-5] | solaris2.[0-5].*) ;;
11188 # The compiler driver will combine and reorder linker options,
11189 # but understands `-z linker_flag'. GCC discards it without `$wl',
11190 # but is careful enough not to reorder.
11191 # Supported since Solaris 2.6 (maybe 2.5.1?)
11192 if test "$GCC" = yes; then
11193 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11194 else
11195 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11198 esac
11199 link_all_deplibs=yes
11202 sunos4*)
11203 if test "x$host_vendor" = xsequent; then
11204 # Use $CC to link under sequent, because it throws in some extra .o
11205 # files that make .init and .fini sections work.
11206 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11207 else
11208 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11210 hardcode_libdir_flag_spec='-L$libdir'
11211 hardcode_direct=yes
11212 hardcode_minus_L=yes
11213 hardcode_shlibpath_var=no
11216 sysv4)
11217 case $host_vendor in
11218 sni)
11219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 hardcode_direct=yes # is this really true???
11222 siemens)
11223 ## LD is ld it makes a PLAMLIB
11224 ## CC just makes a GrossModule.
11225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11226 reload_cmds='$CC -r -o $output$reload_objs'
11227 hardcode_direct=no
11229 motorola)
11230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11233 esac
11234 runpath_var='LD_RUN_PATH'
11235 hardcode_shlibpath_var=no
11238 sysv4.3*)
11239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11240 hardcode_shlibpath_var=no
11241 export_dynamic_flag_spec='-Bexport'
11244 sysv4*MP*)
11245 if test -d /usr/nec; then
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_shlibpath_var=no
11248 runpath_var=LD_RUN_PATH
11249 hardcode_runpath_var=yes
11250 ld_shlibs=yes
11254 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11255 no_undefined_flag='${wl}-z,text'
11256 archive_cmds_need_lc=no
11257 hardcode_shlibpath_var=no
11258 runpath_var='LD_RUN_PATH'
11260 if test "$GCC" = yes; then
11261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263 else
11264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269 sysv5* | sco3.2v5* | sco5v6*)
11270 # Note: We can NOT use -z defs as we might desire, because we do not
11271 # link with -lc, and that would cause any symbols used from libc to
11272 # always be unresolved, which means just about no library would
11273 # ever link correctly. If we're not using GNU ld we use -z text
11274 # though, which does catch some bad symbols but isn't as heavy-handed
11275 # as -z defs.
11276 no_undefined_flag='${wl}-z,text'
11277 allow_undefined_flag='${wl}-z,nodefs'
11278 archive_cmds_need_lc=no
11279 hardcode_shlibpath_var=no
11280 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11281 hardcode_libdir_separator=':'
11282 link_all_deplibs=yes
11283 export_dynamic_flag_spec='${wl}-Bexport'
11284 runpath_var='LD_RUN_PATH'
11286 if test "$GCC" = yes; then
11287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 else
11290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 uts4*)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_libdir_flag_spec='-L$libdir'
11298 hardcode_shlibpath_var=no
11302 ld_shlibs=no
11304 esac
11306 if test x$host_vendor = xsni; then
11307 case $host in
11308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11309 export_dynamic_flag_spec='${wl}-Blargedynsym'
11311 esac
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11316 $as_echo "$ld_shlibs" >&6; }
11317 test "$ld_shlibs" = no && can_build_shared=no
11319 with_gnu_ld=$with_gnu_ld
11336 # Do we need to explicitly link libc?
11338 case "x$archive_cmds_need_lc" in
11339 x|xyes)
11340 # Assume -lc should be added
11341 archive_cmds_need_lc=yes
11343 if test "$enable_shared" = yes && test "$GCC" = yes; then
11344 case $archive_cmds in
11345 *'~'*)
11346 # FIXME: we may have to deal with multi-command sequences.
11348 '$CC '*)
11349 # Test whether the compiler implicitly links with -lc since on some
11350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11351 # to ld, don't add -lc before -lgcc.
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11353 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11354 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 $RM conftest*
11358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11361 (eval $ac_compile) 2>&5
11362 ac_status=$?
11363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11364 test $ac_status = 0; } 2>conftest.err; then
11365 soname=conftest
11366 lib=conftest
11367 libobjs=conftest.$ac_objext
11368 deplibs=
11369 wl=$lt_prog_compiler_wl
11370 pic_flag=$lt_prog_compiler_pic
11371 compiler_flags=-v
11372 linker_flags=-v
11373 verstring=
11374 output_objdir=.
11375 libname=conftest
11376 lt_save_allow_undefined_flag=$allow_undefined_flag
11377 allow_undefined_flag=
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11379 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; }
11383 then
11384 lt_cv_archive_cmds_need_lc=no
11385 else
11386 lt_cv_archive_cmds_need_lc=yes
11388 allow_undefined_flag=$lt_save_allow_undefined_flag
11389 else
11390 cat conftest.err 1>&5
11392 $RM conftest*
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11396 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11397 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11399 esac
11402 esac
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11563 if test "$GCC" = yes; then
11564 case $host_os in
11565 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11566 *) lt_awk_arg="/^libraries:/" ;;
11567 esac
11568 case $host_os in
11569 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11570 *) lt_sed_strip_eq="s,=/,/,g" ;;
11571 esac
11572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11573 case $lt_search_path_spec in
11574 *\;*)
11575 # if the path contains ";" then we assume it to be the separator
11576 # otherwise default to the standard path separator (i.e. ":") - it is
11577 # assumed that no part of a normal pathname contains ";" but that should
11578 # okay in the real world where ";" in dirpaths is itself problematic.
11579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11584 esac
11585 # Ok, now we have the path, separated by spaces, we can step through it
11586 # and add multilib dir if necessary.
11587 lt_tmp_lt_search_path_spec=
11588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11589 for lt_sys_path in $lt_search_path_spec; do
11590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11592 else
11593 test -d "$lt_sys_path" && \
11594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11596 done
11597 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11598 BEGIN {RS=" "; FS="/|\n";} {
11599 lt_foo="";
11600 lt_count=0;
11601 for (lt_i = NF; lt_i > 0; lt_i--) {
11602 if ($lt_i != "" && $lt_i != ".") {
11603 if ($lt_i == "..") {
11604 lt_count++;
11605 } else {
11606 if (lt_count == 0) {
11607 lt_foo="/" $lt_i lt_foo;
11608 } else {
11609 lt_count--;
11614 if (lt_foo != "") { lt_freq[lt_foo]++; }
11615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11617 # AWK program above erroneously prepends '/' to C:/dos/paths
11618 # for these hosts.
11619 case $host_os in
11620 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11621 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11622 esac
11623 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11624 else
11625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11627 library_names_spec=
11628 libname_spec='lib$name'
11629 soname_spec=
11630 shrext_cmds=".so"
11631 postinstall_cmds=
11632 postuninstall_cmds=
11633 finish_cmds=
11634 finish_eval=
11635 shlibpath_var=
11636 shlibpath_overrides_runpath=unknown
11637 version_type=none
11638 dynamic_linker="$host_os ld.so"
11639 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11640 need_lib_prefix=unknown
11641 hardcode_into_libs=no
11643 # when you set need_version to no, make sure it does not cause -set_version
11644 # flags to be left without arguments
11645 need_version=unknown
11647 case $host_os in
11648 aix3*)
11649 version_type=linux
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11651 shlibpath_var=LIBPATH
11653 # AIX 3 has no versioning support, so we append a major version to the name.
11654 soname_spec='${libname}${release}${shared_ext}$major'
11657 aix[4-9]*)
11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 hardcode_into_libs=yes
11662 if test "$host_cpu" = ia64; then
11663 # AIX 5 supports IA64
11664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 else
11667 # With GCC up to 2.95.x, collect2 would create an import file
11668 # for dependence libraries. The import file would start with
11669 # the line `#! .'. This would cause the generated library to
11670 # depend on `.', always an invalid library. This was fixed in
11671 # development snapshots of GCC prior to 3.0.
11672 case $host_os in
11673 aix4 | aix4.[01] | aix4.[01].*)
11674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11675 echo ' yes '
11676 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11678 else
11679 can_build_shared=no
11682 esac
11683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11684 # soname into executable. Probably we can add versioning support to
11685 # collect2, so additional links can be useful in future.
11686 if test "$aix_use_runtimelinking" = yes; then
11687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11688 # instead of lib<name>.a to let people know that these are not
11689 # typical AIX shared libraries.
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 else
11692 # We preserve .a as extension for shared libraries through AIX4.2
11693 # and later when we are not doing run time linking.
11694 library_names_spec='${libname}${release}.a $libname.a'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LIBPATH
11701 amigaos*)
11702 case $host_cpu in
11703 powerpc)
11704 # Since July 2007 AmigaOS4 officially supports .so libraries.
11705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 m68k)
11709 library_names_spec='$libname.ixlibrary $libname.a'
11710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11711 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11713 esac
11716 beos*)
11717 library_names_spec='${libname}${shared_ext}'
11718 dynamic_linker="$host_os ld.so"
11719 shlibpath_var=LIBRARY_PATH
11722 bsdi[45]*)
11723 version_type=linux
11724 need_version=no
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11731 # the default ld.so.conf also contains /usr/contrib/lib and
11732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11733 # libtool to hard-code these into programs
11736 cygwin* | mingw* | pw32* | cegcc*)
11737 version_type=windows
11738 shrext_cmds=".dll"
11739 need_version=no
11740 need_lib_prefix=no
11742 case $GCC,$host_os in
11743 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11744 library_names_spec='$libname.dll.a'
11745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11746 postinstall_cmds='base_file=`basename \${file}`~
11747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11748 dldir=$destdir/`dirname \$dlpath`~
11749 test -d \$dldir || mkdir -p \$dldir~
11750 $install_prog $dir/$dlname \$dldir/$dlname~
11751 chmod a+x \$dldir/$dlname~
11752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11756 dlpath=$dir/\$dldll~
11757 $RM \$dlpath'
11758 shlibpath_overrides_runpath=yes
11760 case $host_os in
11761 cygwin*)
11762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11767 mingw* | cegcc*)
11768 # MinGW DLLs use traditional 'lib' prefix
11769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11771 pw32*)
11772 # pw32 DLLs use 'pw' prefix rather than 'lib'
11773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11775 esac
11779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11781 esac
11782 dynamic_linker='Win32 ld.exe'
11783 # FIXME: first we should search . and the directory the executable is in
11784 shlibpath_var=PATH
11787 darwin* | rhapsody*)
11788 dynamic_linker="$host_os dyld"
11789 version_type=darwin
11790 need_lib_prefix=no
11791 need_version=no
11792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11793 soname_spec='${libname}${release}${major}$shared_ext'
11794 shlibpath_overrides_runpath=yes
11795 shlibpath_var=DYLD_LIBRARY_PATH
11796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11802 dgux*)
11803 version_type=linux
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11811 freebsd* | dragonfly*)
11812 # DragonFly does not have aout. When/if they implement a new
11813 # versioning mechanism, adjust this.
11814 if test -x /usr/bin/objformat; then
11815 objformat=`/usr/bin/objformat`
11816 else
11817 case $host_os in
11818 freebsd[23].*) objformat=aout ;;
11819 *) objformat=elf ;;
11820 esac
11822 version_type=freebsd-$objformat
11823 case $version_type in
11824 freebsd-elf*)
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11826 need_version=no
11827 need_lib_prefix=no
11829 freebsd-*)
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11831 need_version=yes
11833 esac
11834 shlibpath_var=LD_LIBRARY_PATH
11835 case $host_os in
11836 freebsd2.*)
11837 shlibpath_overrides_runpath=yes
11839 freebsd3.[01]* | freebsdelf3.[01]*)
11840 shlibpath_overrides_runpath=yes
11841 hardcode_into_libs=yes
11843 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11844 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11845 shlibpath_overrides_runpath=no
11846 hardcode_into_libs=yes
11848 *) # from 4.6 on, and DragonFly
11849 shlibpath_overrides_runpath=yes
11850 hardcode_into_libs=yes
11852 esac
11855 gnu*)
11856 version_type=linux
11857 need_lib_prefix=no
11858 need_version=no
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 hardcode_into_libs=yes
11865 haiku*)
11866 version_type=linux
11867 need_lib_prefix=no
11868 need_version=no
11869 dynamic_linker="$host_os runtime_loader"
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 shlibpath_var=LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes
11874 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11875 hardcode_into_libs=yes
11878 hpux9* | hpux10* | hpux11*)
11879 # Give a soname corresponding to the major version so that dld.sl refuses to
11880 # link against other versions.
11881 version_type=sunos
11882 need_lib_prefix=no
11883 need_version=no
11884 case $host_cpu in
11885 ia64*)
11886 shrext_cmds='.so'
11887 hardcode_into_libs=yes
11888 dynamic_linker="$host_os dld.so"
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 if test "X$HPUX_IA64_MODE" = X32; then
11894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11895 else
11896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11900 hppa*64*)
11901 shrext_cmds='.sl'
11902 hardcode_into_libs=yes
11903 dynamic_linker="$host_os dld.sl"
11904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11912 shrext_cmds='.sl'
11913 dynamic_linker="$host_os dld.sl"
11914 shlibpath_var=SHLIB_PATH
11915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11919 esac
11920 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11921 postinstall_cmds='chmod 555 $lib'
11922 # or fails outright, so override atomically:
11923 install_override_mode=555
11926 interix[3-9]*)
11927 version_type=linux
11928 need_lib_prefix=no
11929 need_version=no
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11938 irix5* | irix6* | nonstopux*)
11939 case $host_os in
11940 nonstopux*) version_type=nonstopux ;;
11942 if test "$lt_cv_prog_gnu_ld" = yes; then
11943 version_type=linux
11944 else
11945 version_type=irix
11946 fi ;;
11947 esac
11948 need_lib_prefix=no
11949 need_version=no
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11952 case $host_os in
11953 irix5* | nonstopux*)
11954 libsuff= shlibsuff=
11957 case $LD in # libtool.m4 will add one of these switches to LD
11958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11959 libsuff= shlibsuff= libmagic=32-bit;;
11960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11961 libsuff=32 shlibsuff=N32 libmagic=N32;;
11962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11964 *) libsuff= shlibsuff= libmagic=never-match;;
11965 esac
11967 esac
11968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11969 shlibpath_overrides_runpath=no
11970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11972 hardcode_into_libs=yes
11975 # No shared lib support for Linux oldld, aout, or coff.
11976 linux*oldld* | linux*aout* | linux*coff*)
11977 dynamic_linker=no
11980 # This must be Linux ELF.
11981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11982 version_type=linux
11983 need_lib_prefix=no
11984 need_version=no
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986 soname_spec='${libname}${release}${shared_ext}$major'
11987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=no
11991 # Some binutils ld are patched to set DT_RUNPATH
11992 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 lt_cv_shlibpath_overrides_runpath=no
11996 save_LDFLAGS=$LDFLAGS
11997 save_libdir=$libdir
11998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12000 if test x$gcc_no_link = xyes; then
12001 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12007 main ()
12011 return 0;
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12016 lt_cv_shlibpath_overrides_runpath=yes
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LDFLAGS=$save_LDFLAGS
12022 libdir=$save_libdir
12026 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12028 # This implies no fast_install, which is unacceptable.
12029 # Some rework will be needed to allow for fast_install
12030 # before this can be enabled.
12031 hardcode_into_libs=yes
12033 # Append ld.so.conf contents to the search path
12034 if test -f /etc/ld.so.conf; then
12035 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12039 # We used to test for /lib/ld.so.1 and disable shared libraries on
12040 # powerpc, because MkLinux only supported shared libraries with the
12041 # GNU dynamic linker. Since this was broken with cross compilers,
12042 # most powerpc-linux boxes support dynamic linking these days and
12043 # people can always --disable-shared, the test was removed, and we
12044 # assume the GNU/Linux dynamic linker is in use.
12045 dynamic_linker='GNU/Linux ld.so'
12048 netbsd*)
12049 version_type=sunos
12050 need_lib_prefix=no
12051 need_version=no
12052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12055 dynamic_linker='NetBSD (a.out) ld.so'
12056 else
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 dynamic_linker='NetBSD ld.elf_so'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 hardcode_into_libs=yes
12066 newsos6)
12067 version_type=linux
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes
12073 *nto* | *qnx*)
12074 version_type=qnx
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12078 soname_spec='${libname}${release}${shared_ext}$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 dynamic_linker='ldqnx.so'
12085 openbsd*)
12086 version_type=sunos
12087 sys_lib_dlsearch_path_spec="/usr/lib"
12088 need_lib_prefix=no
12089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12090 case $host_os in
12091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12092 *) need_version=no ;;
12093 esac
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12098 case $host_os in
12099 openbsd2.[89] | openbsd2.[89].*)
12100 shlibpath_overrides_runpath=no
12103 shlibpath_overrides_runpath=yes
12105 esac
12106 else
12107 shlibpath_overrides_runpath=yes
12111 os2*)
12112 libname_spec='$name'
12113 shrext_cmds=".dll"
12114 need_lib_prefix=no
12115 library_names_spec='$libname${shared_ext} $libname.a'
12116 dynamic_linker='OS/2 ld.exe'
12117 shlibpath_var=LIBPATH
12120 osf3* | osf4* | osf5*)
12121 version_type=osf
12122 need_lib_prefix=no
12123 need_version=no
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12131 rdos*)
12132 dynamic_linker=no
12135 solaris*)
12136 version_type=linux
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=yes
12143 hardcode_into_libs=yes
12144 # ldd complains unless libraries are executable
12145 postinstall_cmds='chmod +x $lib'
12148 sunos4*)
12149 version_type=sunos
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=yes
12154 if test "$with_gnu_ld" = yes; then
12155 need_lib_prefix=no
12157 need_version=yes
12160 sysv4 | sysv4.3*)
12161 version_type=linux
12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12163 soname_spec='${libname}${release}${shared_ext}$major'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 case $host_vendor in
12166 sni)
12167 shlibpath_overrides_runpath=no
12168 need_lib_prefix=no
12169 runpath_var=LD_RUN_PATH
12171 siemens)
12172 need_lib_prefix=no
12174 motorola)
12175 need_lib_prefix=no
12176 need_version=no
12177 shlibpath_overrides_runpath=no
12178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12180 esac
12183 sysv4*MP*)
12184 if test -d /usr/nec ;then
12185 version_type=linux
12186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12187 soname_spec='$libname${shared_ext}.$major'
12188 shlibpath_var=LD_LIBRARY_PATH
12192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12193 version_type=freebsd-elf
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=yes
12200 hardcode_into_libs=yes
12201 if test "$with_gnu_ld" = yes; then
12202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12203 else
12204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12205 case $host_os in
12206 sco3.2v5*)
12207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12209 esac
12211 sys_lib_dlsearch_path_spec='/usr/lib'
12214 tpf*)
12215 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12216 version_type=linux
12217 need_lib_prefix=no
12218 need_version=no
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 shlibpath_overrides_runpath=no
12222 hardcode_into_libs=yes
12225 uts4*)
12226 version_type=linux
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12228 soname_spec='${libname}${release}${shared_ext}$major'
12229 shlibpath_var=LD_LIBRARY_PATH
12233 dynamic_linker=no
12235 esac
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12237 $as_echo "$dynamic_linker" >&6; }
12238 test "$dynamic_linker" = no && can_build_shared=no
12240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12241 if test "$GCC" = yes; then
12242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12245 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12246 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12248 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12249 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12344 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12345 hardcode_action=
12346 if test -n "$hardcode_libdir_flag_spec" ||
12347 test -n "$runpath_var" ||
12348 test "X$hardcode_automatic" = "Xyes" ; then
12350 # We can hardcode non-existent directories.
12351 if test "$hardcode_direct" != no &&
12352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12353 # have to relink, otherwise we might link with an installed library
12354 # when we should be linking with a yet-to-be-installed one
12355 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12356 test "$hardcode_minus_L" != no; then
12357 # Linking always hardcodes the temporary library directory.
12358 hardcode_action=relink
12359 else
12360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12361 hardcode_action=immediate
12363 else
12364 # We cannot hardcode anything, or else we can only hardcode existing
12365 # directories.
12366 hardcode_action=unsupported
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12369 $as_echo "$hardcode_action" >&6; }
12371 if test "$hardcode_action" = relink ||
12372 test "$inherit_rpath" = yes; then
12373 # Fast installation is not supported
12374 enable_fast_install=no
12375 elif test "$shlibpath_overrides_runpath" = yes ||
12376 test "$enable_shared" = no; then
12377 # Fast installation is not necessary
12378 enable_fast_install=needless
12386 if test "x$enable_dlopen" != xyes; then
12387 enable_dlopen=unknown
12388 enable_dlopen_self=unknown
12389 enable_dlopen_self_static=unknown
12390 else
12391 lt_cv_dlopen=no
12392 lt_cv_dlopen_libs=
12394 case $host_os in
12395 beos*)
12396 lt_cv_dlopen="load_add_on"
12397 lt_cv_dlopen_libs=
12398 lt_cv_dlopen_self=yes
12401 mingw* | pw32* | cegcc*)
12402 lt_cv_dlopen="LoadLibrary"
12403 lt_cv_dlopen_libs=
12406 cygwin*)
12407 lt_cv_dlopen="dlopen"
12408 lt_cv_dlopen_libs=
12411 darwin*)
12412 # if libdl is installed we need to link against it
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12415 if ${ac_cv_lib_dl_dlopen+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-ldl $LIBS"
12420 if test x$gcc_no_link = xyes; then
12421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12429 #ifdef __cplusplus
12430 extern "C"
12431 #endif
12432 char dlopen ();
12434 main ()
12436 return dlopen ();
12438 return 0;
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 ac_cv_lib_dl_dlopen=yes
12443 else
12444 ac_cv_lib_dl_dlopen=no
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12452 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12454 else
12456 lt_cv_dlopen="dyld"
12457 lt_cv_dlopen_libs=
12458 lt_cv_dlopen_self=yes
12465 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12466 if test "x$ac_cv_func_shl_load" = xyes; then :
12467 lt_cv_dlopen="shl_load"
12468 else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12470 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12471 if ${ac_cv_lib_dld_shl_load+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-ldld $LIBS"
12476 if test x$gcc_no_link = xyes; then
12477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char shl_load ();
12490 main ()
12492 return shl_load ();
12494 return 0;
12496 _ACEOF
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 ac_cv_lib_dld_shl_load=yes
12499 else
12500 ac_cv_lib_dld_shl_load=no
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12507 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12508 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12510 else
12511 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12512 if test "x$ac_cv_func_dlopen" = xyes; then :
12513 lt_cv_dlopen="dlopen"
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12516 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12517 if ${ac_cv_lib_dl_dlopen+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 ac_check_lib_save_LIBS=$LIBS
12521 LIBS="-ldl $LIBS"
12522 if test x$gcc_no_link = xyes; then
12523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char dlopen ();
12536 main ()
12538 return dlopen ();
12540 return 0;
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_dl_dlopen=yes
12545 else
12546 ac_cv_lib_dl_dlopen=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12554 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12558 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12559 if ${ac_cv_lib_svld_dlopen+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_check_lib_save_LIBS=$LIBS
12563 LIBS="-lsvld $LIBS"
12564 if test x$gcc_no_link = xyes; then
12565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char dlopen ();
12578 main ()
12580 return dlopen ();
12582 return 0;
12584 _ACEOF
12585 if ac_fn_c_try_link "$LINENO"; then :
12586 ac_cv_lib_svld_dlopen=yes
12587 else
12588 ac_cv_lib_svld_dlopen=no
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12595 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12596 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12600 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12601 if ${ac_cv_lib_dld_dld_link+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-ldld $LIBS"
12606 if test x$gcc_no_link = xyes; then
12607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char dld_link ();
12620 main ()
12622 return dld_link ();
12624 return 0;
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 ac_cv_lib_dld_dld_link=yes
12629 else
12630 ac_cv_lib_dld_dld_link=no
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12637 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12638 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12658 esac
12660 if test "x$lt_cv_dlopen" != xno; then
12661 enable_dlopen=yes
12662 else
12663 enable_dlopen=no
12666 case $lt_cv_dlopen in
12667 dlopen)
12668 save_CPPFLAGS="$CPPFLAGS"
12669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12671 save_LDFLAGS="$LDFLAGS"
12672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12674 save_LIBS="$LIBS"
12675 LIBS="$lt_cv_dlopen_libs $LIBS"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12678 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12679 if ${lt_cv_dlopen_self+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test "$cross_compiling" = yes; then :
12683 lt_cv_dlopen_self=cross
12684 else
12685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686 lt_status=$lt_dlunknown
12687 cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12691 #if HAVE_DLFCN_H
12692 #include <dlfcn.h>
12693 #endif
12695 #include <stdio.h>
12697 #ifdef RTLD_GLOBAL
12698 # define LT_DLGLOBAL RTLD_GLOBAL
12699 #else
12700 # ifdef DL_GLOBAL
12701 # define LT_DLGLOBAL DL_GLOBAL
12702 # else
12703 # define LT_DLGLOBAL 0
12704 # endif
12705 #endif
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708 find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12710 # ifdef RTLD_LAZY
12711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12712 # else
12713 # ifdef DL_LAZY
12714 # define LT_DLLAZY_OR_NOW DL_LAZY
12715 # else
12716 # ifdef RTLD_NOW
12717 # define LT_DLLAZY_OR_NOW RTLD_NOW
12718 # else
12719 # ifdef DL_NOW
12720 # define LT_DLLAZY_OR_NOW DL_NOW
12721 # else
12722 # define LT_DLLAZY_OR_NOW 0
12723 # endif
12724 # endif
12725 # endif
12726 # endif
12727 #endif
12729 /* When -fvisbility=hidden is used, assume the code has been annotated
12730 correspondingly for the symbols needed. */
12731 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12732 void fnord () __attribute__((visibility("default")));
12733 #endif
12735 void fnord () { int i=42; }
12736 int main ()
12738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739 int status = $lt_dlunknown;
12741 if (self)
12743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12744 else
12746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12747 else puts (dlerror ());
12749 /* dlclose (self); */
12751 else
12752 puts (dlerror ());
12754 return status;
12756 _LT_EOF
12757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12758 (eval $ac_link) 2>&5
12759 ac_status=$?
12760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12762 (./conftest; exit; ) >&5 2>/dev/null
12763 lt_status=$?
12764 case x$lt_status in
12765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12768 esac
12769 else :
12770 # compilation failed
12771 lt_cv_dlopen_self=no
12774 rm -fr conftest*
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12779 $as_echo "$lt_cv_dlopen_self" >&6; }
12781 if test "x$lt_cv_dlopen_self" = xyes; then
12782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12784 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12785 if ${lt_cv_dlopen_self_static+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test "$cross_compiling" = yes; then :
12789 lt_cv_dlopen_self_static=cross
12790 else
12791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792 lt_status=$lt_dlunknown
12793 cat > conftest.$ac_ext <<_LT_EOF
12794 #line 12794 "configure"
12795 #include "confdefs.h"
12797 #if HAVE_DLFCN_H
12798 #include <dlfcn.h>
12799 #endif
12801 #include <stdio.h>
12803 #ifdef RTLD_GLOBAL
12804 # define LT_DLGLOBAL RTLD_GLOBAL
12805 #else
12806 # ifdef DL_GLOBAL
12807 # define LT_DLGLOBAL DL_GLOBAL
12808 # else
12809 # define LT_DLGLOBAL 0
12810 # endif
12811 #endif
12813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814 find out it does not work in some platform. */
12815 #ifndef LT_DLLAZY_OR_NOW
12816 # ifdef RTLD_LAZY
12817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12818 # else
12819 # ifdef DL_LAZY
12820 # define LT_DLLAZY_OR_NOW DL_LAZY
12821 # else
12822 # ifdef RTLD_NOW
12823 # define LT_DLLAZY_OR_NOW RTLD_NOW
12824 # else
12825 # ifdef DL_NOW
12826 # define LT_DLLAZY_OR_NOW DL_NOW
12827 # else
12828 # define LT_DLLAZY_OR_NOW 0
12829 # endif
12830 # endif
12831 # endif
12832 # endif
12833 #endif
12835 /* When -fvisbility=hidden is used, assume the code has been annotated
12836 correspondingly for the symbols needed. */
12837 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12838 void fnord () __attribute__((visibility("default")));
12839 #endif
12841 void fnord () { int i=42; }
12842 int main ()
12844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12845 int status = $lt_dlunknown;
12847 if (self)
12849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12850 else
12852 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12853 else puts (dlerror ());
12855 /* dlclose (self); */
12857 else
12858 puts (dlerror ());
12860 return status;
12862 _LT_EOF
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12864 (eval $ac_link) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12868 (./conftest; exit; ) >&5 2>/dev/null
12869 lt_status=$?
12870 case x$lt_status in
12871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12874 esac
12875 else :
12876 # compilation failed
12877 lt_cv_dlopen_self_static=no
12880 rm -fr conftest*
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12885 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12888 CPPFLAGS="$save_CPPFLAGS"
12889 LDFLAGS="$save_LDFLAGS"
12890 LIBS="$save_LIBS"
12892 esac
12894 case $lt_cv_dlopen_self in
12895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12896 *) enable_dlopen_self=unknown ;;
12897 esac
12899 case $lt_cv_dlopen_self_static in
12900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12901 *) enable_dlopen_self_static=unknown ;;
12902 esac
12921 striplib=
12922 old_striplib=
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12924 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12925 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12930 else
12931 # FIXME - insert some real tests, host_os isn't really good enough
12932 case $host_os in
12933 darwin*)
12934 if test -n "$STRIP" ; then
12935 striplib="$STRIP -x"
12936 old_striplib="$STRIP -S"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938 $as_echo "yes" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12948 esac
12962 # Report which library types will actually be built
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12964 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12966 $as_echo "$can_build_shared" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12969 $as_echo_n "checking whether to build shared libraries... " >&6; }
12970 test "$can_build_shared" = "no" && enable_shared=no
12972 # On AIX, shared libraries and static libraries use the same namespace, and
12973 # are all built from PIC.
12974 case $host_os in
12975 aix3*)
12976 test "$enable_shared" = yes && enable_static=no
12977 if test -n "$RANLIB"; then
12978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12979 postinstall_cmds='$RANLIB $lib'
12983 aix[4-9]*)
12984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12985 test "$enable_shared" = yes && enable_static=no
12988 esac
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12990 $as_echo "$enable_shared" >&6; }
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12993 $as_echo_n "checking whether to build static libraries... " >&6; }
12994 # Make sure either enable_shared or enable_static is yes.
12995 test "$enable_shared" = yes || enable_static=yes
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12997 $as_echo "$enable_static" >&6; }
13003 ac_ext=c
13004 ac_cpp='$CPP $CPPFLAGS'
13005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009 CC="$lt_save_CC"
13023 ac_config_commands="$ac_config_commands libtool"
13028 # Only expand once:
13034 case $host in
13035 *-cygwin* | *-mingw*)
13036 # 'host' will be top-level target in the case of a target lib,
13037 # we must compare to with_cross_host to decide if this is a native
13038 # or cross-compiler and select where to install dlls appropriately.
13039 if test -n "$with_cross_host" &&
13040 test x"$with_cross_host" != x"no"; then
13041 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13042 else
13043 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13047 lt_host_flags=
13049 esac
13055 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13057 # We need gfortran to compile parts of the library
13058 #AC_PROG_FC(gfortran)
13059 FC="$GFORTRAN"
13060 ac_ext=${ac_fc_srcext-f}
13061 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13062 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13063 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13064 if test -n "$ac_tool_prefix"; then
13065 for ac_prog in gfortran
13067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_prog_FC+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 if test -n "$FC"; then
13075 ac_cv_prog_FC="$FC" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13080 IFS=$as_save_IFS
13081 test -z "$as_dir" && as_dir=.
13082 for ac_exec_ext in '' $ac_executable_extensions; do
13083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 break 2
13088 done
13089 done
13090 IFS=$as_save_IFS
13094 FC=$ac_cv_prog_FC
13095 if test -n "$FC"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13097 $as_echo "$FC" >&6; }
13098 else
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13104 test -n "$FC" && break
13105 done
13107 if test -z "$FC"; then
13108 ac_ct_FC=$FC
13109 for ac_prog in gfortran
13111 # Extract the first word of "$ac_prog", so it can be a program name with args.
13112 set dummy $ac_prog; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 if test -n "$ac_ct_FC"; then
13119 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13120 else
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128 ac_cv_prog_ac_ct_FC="$ac_prog"
13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 break 2
13132 done
13133 done
13134 IFS=$as_save_IFS
13138 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13139 if test -n "$ac_ct_FC"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13141 $as_echo "$ac_ct_FC" >&6; }
13142 else
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13148 test -n "$ac_ct_FC" && break
13149 done
13151 if test "x$ac_ct_FC" = x; then
13152 FC=""
13153 else
13154 case $cross_compiling:$ac_tool_warned in
13155 yes:)
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158 ac_tool_warned=yes ;;
13159 esac
13160 FC=$ac_ct_FC
13165 # Provide some information about the compiler.
13166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13167 set X $ac_compile
13168 ac_compiler=$2
13169 for ac_option in --version -v -V -qversion; do
13170 { { ac_try="$ac_compiler $ac_option >&5"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174 esac
13175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13176 $as_echo "$ac_try_echo"; } >&5
13177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13178 ac_status=$?
13179 if test -s conftest.err; then
13180 sed '10a\
13181 ... rest of stderr output deleted ...
13182 10q' conftest.err >conftest.er1
13183 cat conftest.er1 >&5
13185 rm -f conftest.er1 conftest.err
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; }
13188 done
13189 rm -f a.out
13191 # If we don't use `.F' as extension, the preprocessor is not run on the
13192 # input file. (Note that this only needs to work for GNU compilers.)
13193 ac_save_ext=$ac_ext
13194 ac_ext=F
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13196 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13197 if ${ac_cv_fc_compiler_gnu+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 cat > conftest.$ac_ext <<_ACEOF
13201 program main
13202 #ifndef __GNUC__
13203 choke me
13204 #endif
13207 _ACEOF
13208 if ac_fn_fc_try_compile "$LINENO"; then :
13209 ac_compiler_gnu=yes
13210 else
13211 ac_compiler_gnu=no
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13218 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13219 ac_ext=$ac_save_ext
13220 ac_test_FCFLAGS=${FCFLAGS+set}
13221 ac_save_FCFLAGS=$FCFLAGS
13222 FCFLAGS=
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13224 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13225 if ${ac_cv_prog_fc_g+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 FCFLAGS=-g
13229 cat > conftest.$ac_ext <<_ACEOF
13230 program main
13233 _ACEOF
13234 if ac_fn_fc_try_compile "$LINENO"; then :
13235 ac_cv_prog_fc_g=yes
13236 else
13237 ac_cv_prog_fc_g=no
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13243 $as_echo "$ac_cv_prog_fc_g" >&6; }
13244 if test "$ac_test_FCFLAGS" = set; then
13245 FCFLAGS=$ac_save_FCFLAGS
13246 elif test $ac_cv_prog_fc_g = yes; then
13247 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13248 FCFLAGS="-g -O2"
13249 else
13250 FCFLAGS="-g"
13252 else
13253 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13254 FCFLAGS="-O2"
13255 else
13256 FCFLAGS=
13260 if test $ac_compiler_gnu = yes; then
13261 GFC=yes
13262 else
13263 GFC=
13265 ac_ext=c
13266 ac_cpp='$CPP $CPPFLAGS'
13267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13271 ac_ext=${ac_fc_srcext-f}
13272 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13273 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13274 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13277 if test -z "$FC" || test "X$FC" = "Xno"; then
13278 _lt_disable_FC=yes
13281 archive_cmds_need_lc_FC=no
13282 allow_undefined_flag_FC=
13283 always_export_symbols_FC=no
13284 archive_expsym_cmds_FC=
13285 export_dynamic_flag_spec_FC=
13286 hardcode_direct_FC=no
13287 hardcode_direct_absolute_FC=no
13288 hardcode_libdir_flag_spec_FC=
13289 hardcode_libdir_flag_spec_ld_FC=
13290 hardcode_libdir_separator_FC=
13291 hardcode_minus_L_FC=no
13292 hardcode_automatic_FC=no
13293 inherit_rpath_FC=no
13294 module_cmds_FC=
13295 module_expsym_cmds_FC=
13296 link_all_deplibs_FC=unknown
13297 old_archive_cmds_FC=$old_archive_cmds
13298 reload_flag_FC=$reload_flag
13299 reload_cmds_FC=$reload_cmds
13300 no_undefined_flag_FC=
13301 whole_archive_flag_spec_FC=
13302 enable_shared_with_static_runtimes_FC=no
13304 # Source file extension for fc test sources.
13305 ac_ext=${ac_fc_srcext-f}
13307 # Object file extension for compiled fc test sources.
13308 objext=o
13309 objext_FC=$objext
13311 # No sense in running all these tests if we already determined that
13312 # the FC compiler isn't working. Some variables (like enable_shared)
13313 # are currently assumed to apply to all compilers on this platform,
13314 # and will be corrupted by setting them based on a non-working compiler.
13315 if test "$_lt_disable_FC" != yes; then
13316 # Code to be used in simple compile tests
13317 lt_simple_compile_test_code="\
13318 subroutine t
13319 return
13323 # Code to be used in simple link tests
13324 lt_simple_link_test_code="\
13325 program t
13329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13336 # If no C compiler was specified, use CC.
13337 LTCC=${LTCC-"$CC"}
13339 # If no C compiler flags were specified, use CFLAGS.
13340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13342 # Allow CC to be a program name with arguments.
13343 compiler=$CC
13346 # save warnings/boilerplate of simple test code
13347 ac_outfile=conftest.$ac_objext
13348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13350 _lt_compiler_boilerplate=`cat conftest.err`
13351 $RM conftest*
13353 ac_outfile=conftest.$ac_objext
13354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13356 _lt_linker_boilerplate=`cat conftest.err`
13357 $RM -r conftest*
13360 # Allow CC to be a program name with arguments.
13361 lt_save_CC="$CC"
13362 lt_save_GCC=$GCC
13363 CC=${FC-"f95"}
13364 compiler=$CC
13365 GCC=$ac_cv_fc_compiler_gnu
13367 compiler_FC=$CC
13368 for cc_temp in $compiler""; do
13369 case $cc_temp in
13370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13372 \-*) ;;
13373 *) break;;
13374 esac
13375 done
13376 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13379 if test -n "$compiler"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13381 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13383 $as_echo "$can_build_shared" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13386 $as_echo_n "checking whether to build shared libraries... " >&6; }
13387 test "$can_build_shared" = "no" && enable_shared=no
13389 # On AIX, shared libraries and static libraries use the same namespace, and
13390 # are all built from PIC.
13391 case $host_os in
13392 aix3*)
13393 test "$enable_shared" = yes && enable_static=no
13394 if test -n "$RANLIB"; then
13395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13396 postinstall_cmds='$RANLIB $lib'
13399 aix[4-9]*)
13400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13401 test "$enable_shared" = yes && enable_static=no
13404 esac
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13406 $as_echo "$enable_shared" >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13409 $as_echo_n "checking whether to build static libraries... " >&6; }
13410 # Make sure either enable_shared or enable_static is yes.
13411 test "$enable_shared" = yes || enable_static=yes
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13413 $as_echo "$enable_static" >&6; }
13415 GCC_FC="$ac_cv_fc_compiler_gnu"
13416 LD_FC="$LD"
13418 ## CAVEAT EMPTOR:
13419 ## There is no encapsulation within the following macros, do not change
13420 ## the running order or otherwise move them around unless you know exactly
13421 ## what you are doing...
13422 # Dependencies to place before and after the object being linked:
13423 predep_objects_FC=
13424 postdep_objects_FC=
13425 predeps_FC=
13426 postdeps_FC=
13427 compiler_lib_search_path_FC=
13429 cat > conftest.$ac_ext <<_LT_EOF
13430 subroutine foo
13431 implicit none
13432 integer a
13434 return
13436 _LT_EOF
13438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13439 (eval $ac_compile) 2>&5
13440 ac_status=$?
13441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442 test $ac_status = 0; }; then
13443 # Parse the compiler output and extract the necessary
13444 # objects, libraries and library flags.
13446 # Sentinel used to keep track of whether or not we are before
13447 # the conftest object file.
13448 pre_test_object_deps_done=no
13450 for p in `eval "$output_verbose_link_cmd"`; do
13451 case $p in
13453 -L* | -R* | -l*)
13454 # Some compilers place space between "-{L,R}" and the path.
13455 # Remove the space.
13456 if test $p = "-L" ||
13457 test $p = "-R"; then
13458 prev=$p
13459 continue
13460 else
13461 prev=
13464 if test "$pre_test_object_deps_done" = no; then
13465 case $p in
13466 -L* | -R*)
13467 # Internal compiler library paths should come after those
13468 # provided the user. The postdeps already come after the
13469 # user supplied libs so there is no need to process them.
13470 if test -z "$compiler_lib_search_path_FC"; then
13471 compiler_lib_search_path_FC="${prev}${p}"
13472 else
13473 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13476 # The "-l" case would never come before the object being
13477 # linked, so don't bother handling this case.
13478 esac
13479 else
13480 if test -z "$postdeps_FC"; then
13481 postdeps_FC="${prev}${p}"
13482 else
13483 postdeps_FC="${postdeps_FC} ${prev}${p}"
13488 *.$objext)
13489 # This assumes that the test object file only shows up
13490 # once in the compiler output.
13491 if test "$p" = "conftest.$objext"; then
13492 pre_test_object_deps_done=yes
13493 continue
13496 if test "$pre_test_object_deps_done" = no; then
13497 if test -z "$predep_objects_FC"; then
13498 predep_objects_FC="$p"
13499 else
13500 predep_objects_FC="$predep_objects_FC $p"
13502 else
13503 if test -z "$postdep_objects_FC"; then
13504 postdep_objects_FC="$p"
13505 else
13506 postdep_objects_FC="$postdep_objects_FC $p"
13511 *) ;; # Ignore the rest.
13513 esac
13514 done
13516 # Clean up.
13517 rm -f a.out a.exe
13518 else
13519 echo "libtool.m4: error: problem compiling FC test program"
13522 $RM -f confest.$objext
13524 # PORTME: override above test on systems where it is broken
13527 case " $postdeps_FC " in
13528 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13529 esac
13530 compiler_lib_search_dirs_FC=
13531 if test -n "${compiler_lib_search_path_FC}"; then
13532 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13565 lt_prog_compiler_wl_FC=
13566 lt_prog_compiler_pic_FC=
13567 lt_prog_compiler_static_FC=
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13570 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13572 if test "$GCC" = yes; then
13573 lt_prog_compiler_wl_FC='-Wl,'
13574 lt_prog_compiler_static_FC='-static'
13576 case $host_os in
13577 aix*)
13578 # All AIX code is PIC.
13579 if test "$host_cpu" = ia64; then
13580 # AIX 5 now supports IA64 processor
13581 lt_prog_compiler_static_FC='-Bstatic'
13583 lt_prog_compiler_pic_FC='-fPIC'
13586 amigaos*)
13587 case $host_cpu in
13588 powerpc)
13589 # see comment about AmigaOS4 .so support
13590 lt_prog_compiler_pic_FC='-fPIC'
13592 m68k)
13593 # FIXME: we need at least 68020 code to build shared libraries, but
13594 # adding the `-m68020' flag to GCC prevents building anything better,
13595 # like `-m68040'.
13596 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13598 esac
13601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13602 # PIC is the default for these OSes.
13605 mingw* | cygwin* | pw32* | os2* | cegcc*)
13606 # This hack is so that the source file can tell whether it is being
13607 # built for inclusion in a dll (and should export symbols for example).
13608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13609 # (--disable-auto-import) libraries
13610 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13613 darwin* | rhapsody*)
13614 # PIC is the default on this platform
13615 # Common symbols not allowed in MH_DYLIB files
13616 lt_prog_compiler_pic_FC='-fno-common'
13619 haiku*)
13620 # PIC is the default for Haiku.
13621 # The "-static" flag exists, but is broken.
13622 lt_prog_compiler_static_FC=
13625 hpux*)
13626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13628 # sets the default TLS model and affects inlining.
13629 case $host_cpu in
13630 hppa*64*)
13631 # +Z the default
13634 lt_prog_compiler_pic_FC='-fPIC'
13636 esac
13639 interix[3-9]*)
13640 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13641 # Instead, we relocate shared libraries at runtime.
13644 msdosdjgpp*)
13645 # Just because we use GCC doesn't mean we suddenly get shared libraries
13646 # on systems that don't support them.
13647 lt_prog_compiler_can_build_shared_FC=no
13648 enable_shared=no
13651 *nto* | *qnx*)
13652 # QNX uses GNU C++, but need to define -shared option too, otherwise
13653 # it will coredump.
13654 lt_prog_compiler_pic_FC='-fPIC -shared'
13657 sysv4*MP*)
13658 if test -d /usr/nec; then
13659 lt_prog_compiler_pic_FC=-Kconform_pic
13664 lt_prog_compiler_pic_FC='-fPIC'
13666 esac
13668 case $cc_basename in
13669 nvcc*) # Cuda Compiler Driver 2.2
13670 lt_prog_compiler_wl_FC='-Xlinker '
13671 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13673 esac
13674 else
13675 # PORTME Check for flag to pass linker flags through the system compiler.
13676 case $host_os in
13677 aix*)
13678 lt_prog_compiler_wl_FC='-Wl,'
13679 if test "$host_cpu" = ia64; then
13680 # AIX 5 now supports IA64 processor
13681 lt_prog_compiler_static_FC='-Bstatic'
13682 else
13683 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13687 mingw* | cygwin* | pw32* | os2* | cegcc*)
13688 # This hack is so that the source file can tell whether it is being
13689 # built for inclusion in a dll (and should export symbols for example).
13690 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13693 hpux9* | hpux10* | hpux11*)
13694 lt_prog_compiler_wl_FC='-Wl,'
13695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13696 # not for PA HP-UX.
13697 case $host_cpu in
13698 hppa*64*|ia64*)
13699 # +Z the default
13702 lt_prog_compiler_pic_FC='+Z'
13704 esac
13705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13706 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13709 irix5* | irix6* | nonstopux*)
13710 lt_prog_compiler_wl_FC='-Wl,'
13711 # PIC (with -KPIC) is the default.
13712 lt_prog_compiler_static_FC='-non_shared'
13715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13716 case $cc_basename in
13717 # old Intel for x86_64 which still supported -KPIC.
13718 ecc*)
13719 lt_prog_compiler_wl_FC='-Wl,'
13720 lt_prog_compiler_pic_FC='-KPIC'
13721 lt_prog_compiler_static_FC='-static'
13723 # icc used to be incompatible with GCC.
13724 # ICC 10 doesn't accept -KPIC any more.
13725 icc* | ifort*)
13726 lt_prog_compiler_wl_FC='-Wl,'
13727 lt_prog_compiler_pic_FC='-fPIC'
13728 lt_prog_compiler_static_FC='-static'
13730 # Lahey Fortran 8.1.
13731 lf95*)
13732 lt_prog_compiler_wl_FC='-Wl,'
13733 lt_prog_compiler_pic_FC='--shared'
13734 lt_prog_compiler_static_FC='--static'
13736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13737 # Portland Group compilers (*not* the Pentium gcc compiler,
13738 # which looks to be a dead project)
13739 lt_prog_compiler_wl_FC='-Wl,'
13740 lt_prog_compiler_pic_FC='-fpic'
13741 lt_prog_compiler_static_FC='-Bstatic'
13743 ccc*)
13744 lt_prog_compiler_wl_FC='-Wl,'
13745 # All Alpha code is PIC.
13746 lt_prog_compiler_static_FC='-non_shared'
13748 xl* | bgxl* | bgf* | mpixl*)
13749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13750 lt_prog_compiler_wl_FC='-Wl,'
13751 lt_prog_compiler_pic_FC='-qpic'
13752 lt_prog_compiler_static_FC='-qstaticlink'
13755 case `$CC -V 2>&1 | sed 5q` in
13756 *Sun\ F* | *Sun*Fortran*)
13757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13758 lt_prog_compiler_pic_FC='-KPIC'
13759 lt_prog_compiler_static_FC='-Bstatic'
13760 lt_prog_compiler_wl_FC=''
13762 *Sun\ C*)
13763 # Sun C 5.9
13764 lt_prog_compiler_pic_FC='-KPIC'
13765 lt_prog_compiler_static_FC='-Bstatic'
13766 lt_prog_compiler_wl_FC='-Wl,'
13768 esac
13770 esac
13773 newsos6)
13774 lt_prog_compiler_pic_FC='-KPIC'
13775 lt_prog_compiler_static_FC='-Bstatic'
13778 *nto* | *qnx*)
13779 # QNX uses GNU C++, but need to define -shared option too, otherwise
13780 # it will coredump.
13781 lt_prog_compiler_pic_FC='-fPIC -shared'
13784 osf3* | osf4* | osf5*)
13785 lt_prog_compiler_wl_FC='-Wl,'
13786 # All OSF/1 code is PIC.
13787 lt_prog_compiler_static_FC='-non_shared'
13790 rdos*)
13791 lt_prog_compiler_static_FC='-non_shared'
13794 solaris*)
13795 lt_prog_compiler_pic_FC='-KPIC'
13796 lt_prog_compiler_static_FC='-Bstatic'
13797 case $cc_basename in
13798 f77* | f90* | f95*)
13799 lt_prog_compiler_wl_FC='-Qoption ld ';;
13801 lt_prog_compiler_wl_FC='-Wl,';;
13802 esac
13805 sunos4*)
13806 lt_prog_compiler_wl_FC='-Qoption ld '
13807 lt_prog_compiler_pic_FC='-PIC'
13808 lt_prog_compiler_static_FC='-Bstatic'
13811 sysv4 | sysv4.2uw2* | sysv4.3*)
13812 lt_prog_compiler_wl_FC='-Wl,'
13813 lt_prog_compiler_pic_FC='-KPIC'
13814 lt_prog_compiler_static_FC='-Bstatic'
13817 sysv4*MP*)
13818 if test -d /usr/nec ;then
13819 lt_prog_compiler_pic_FC='-Kconform_pic'
13820 lt_prog_compiler_static_FC='-Bstatic'
13824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13825 lt_prog_compiler_wl_FC='-Wl,'
13826 lt_prog_compiler_pic_FC='-KPIC'
13827 lt_prog_compiler_static_FC='-Bstatic'
13830 unicos*)
13831 lt_prog_compiler_wl_FC='-Wl,'
13832 lt_prog_compiler_can_build_shared_FC=no
13835 uts4*)
13836 lt_prog_compiler_pic_FC='-pic'
13837 lt_prog_compiler_static_FC='-Bstatic'
13841 lt_prog_compiler_can_build_shared_FC=no
13843 esac
13846 case $host_os in
13847 # For platforms which do not support PIC, -DPIC is meaningless:
13848 *djgpp*)
13849 lt_prog_compiler_pic_FC=
13852 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13854 esac
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13856 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13861 # Check to make sure the PIC flag actually works.
13863 if test -n "$lt_prog_compiler_pic_FC"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13865 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13866 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 lt_cv_prog_compiler_pic_works_FC=no
13870 ac_outfile=conftest.$ac_objext
13871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13872 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13873 # Insert the option either (1) after the last *FLAGS variable, or
13874 # (2) before a word containing "conftest.", or (3) at the end.
13875 # Note that $ac_compile itself does not contain backslashes and begins
13876 # with a dollar sign (not a hyphen), so the echo should work correctly.
13877 # The option is referenced via a variable to avoid confusing sed.
13878 lt_compile=`echo "$ac_compile" | $SED \
13879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881 -e 's:$: $lt_compiler_flag:'`
13882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13883 (eval "$lt_compile" 2>conftest.err)
13884 ac_status=$?
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 if (exit $ac_status) && test -s "$ac_outfile"; then
13888 # The compiler can only warn and ignore the option if not recognized
13889 # So say no if there are warnings other than the usual output.
13890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13893 lt_cv_prog_compiler_pic_works_FC=yes
13896 $RM conftest*
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13900 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13902 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13903 case $lt_prog_compiler_pic_FC in
13904 "" | " "*) ;;
13905 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13906 esac
13907 else
13908 lt_prog_compiler_pic_FC=
13909 lt_prog_compiler_can_build_shared_FC=no
13917 # Check to make sure the static flag actually works.
13919 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13921 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13922 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 lt_cv_prog_compiler_static_works_FC=no
13926 save_LDFLAGS="$LDFLAGS"
13927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13930 # The linker can only warn and ignore the option if not recognized
13931 # So say no if there are warnings
13932 if test -s conftest.err; then
13933 # Append any errors to the config.log.
13934 cat conftest.err 1>&5
13935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13937 if diff conftest.exp conftest.er2 >/dev/null; then
13938 lt_cv_prog_compiler_static_works_FC=yes
13940 else
13941 lt_cv_prog_compiler_static_works_FC=yes
13944 $RM -r conftest*
13945 LDFLAGS="$save_LDFLAGS"
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13949 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13951 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13953 else
13954 lt_prog_compiler_static_FC=
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13962 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 lt_cv_prog_compiler_c_o_FC=no
13966 $RM -r conftest 2>/dev/null
13967 mkdir conftest
13968 cd conftest
13969 mkdir out
13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13972 lt_compiler_flag="-o out/conftest2.$ac_objext"
13973 # Insert the option either (1) after the last *FLAGS variable, or
13974 # (2) before a word containing "conftest.", or (3) at the end.
13975 # Note that $ac_compile itself does not contain backslashes and begins
13976 # with a dollar sign (not a hyphen), so the echo should work correctly.
13977 lt_compile=`echo "$ac_compile" | $SED \
13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13980 -e 's:$: $lt_compiler_flag:'`
13981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13982 (eval "$lt_compile" 2>out/conftest.err)
13983 ac_status=$?
13984 cat out/conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13987 then
13988 # The compiler can only warn and ignore the option if not recognized
13989 # So say no if there are warnings
13990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13993 lt_cv_prog_compiler_c_o_FC=yes
13996 chmod u+w . 2>&5
13997 $RM conftest*
13998 # SGI C++ compiler will create directory out/ii_files/ for
13999 # template instantiation
14000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14001 $RM out/* && rmdir out
14002 cd ..
14003 $RM -r conftest
14004 $RM conftest*
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14008 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14014 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 lt_cv_prog_compiler_c_o_FC=no
14018 $RM -r conftest 2>/dev/null
14019 mkdir conftest
14020 cd conftest
14021 mkdir out
14022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14024 lt_compiler_flag="-o out/conftest2.$ac_objext"
14025 # Insert the option either (1) after the last *FLAGS variable, or
14026 # (2) before a word containing "conftest.", or (3) at the end.
14027 # Note that $ac_compile itself does not contain backslashes and begins
14028 # with a dollar sign (not a hyphen), so the echo should work correctly.
14029 lt_compile=`echo "$ac_compile" | $SED \
14030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14032 -e 's:$: $lt_compiler_flag:'`
14033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14034 (eval "$lt_compile" 2>out/conftest.err)
14035 ac_status=$?
14036 cat out/conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14039 then
14040 # The compiler can only warn and ignore the option if not recognized
14041 # So say no if there are warnings
14042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14045 lt_cv_prog_compiler_c_o_FC=yes
14048 chmod u+w . 2>&5
14049 $RM conftest*
14050 # SGI C++ compiler will create directory out/ii_files/ for
14051 # template instantiation
14052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14053 $RM out/* && rmdir out
14054 cd ..
14055 $RM -r conftest
14056 $RM conftest*
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14060 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14065 hard_links="nottested"
14066 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14067 # do not overwrite the value of need_locks provided by the user
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14069 $as_echo_n "checking if we can lock with hard links... " >&6; }
14070 hard_links=yes
14071 $RM conftest*
14072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14073 touch conftest.a
14074 ln conftest.a conftest.b 2>&5 || hard_links=no
14075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14077 $as_echo "$hard_links" >&6; }
14078 if test "$hard_links" = no; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14081 need_locks=warn
14083 else
14084 need_locks=no
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14092 runpath_var=
14093 allow_undefined_flag_FC=
14094 always_export_symbols_FC=no
14095 archive_cmds_FC=
14096 archive_expsym_cmds_FC=
14097 compiler_needs_object_FC=no
14098 enable_shared_with_static_runtimes_FC=no
14099 export_dynamic_flag_spec_FC=
14100 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14101 hardcode_automatic_FC=no
14102 hardcode_direct_FC=no
14103 hardcode_direct_absolute_FC=no
14104 hardcode_libdir_flag_spec_FC=
14105 hardcode_libdir_flag_spec_ld_FC=
14106 hardcode_libdir_separator_FC=
14107 hardcode_minus_L_FC=no
14108 hardcode_shlibpath_var_FC=unsupported
14109 inherit_rpath_FC=no
14110 link_all_deplibs_FC=unknown
14111 module_cmds_FC=
14112 module_expsym_cmds_FC=
14113 old_archive_from_new_cmds_FC=
14114 old_archive_from_expsyms_cmds_FC=
14115 thread_safe_flag_spec_FC=
14116 whole_archive_flag_spec_FC=
14117 # include_expsyms should be a list of space-separated symbols to be *always*
14118 # included in the symbol list
14119 include_expsyms_FC=
14120 # exclude_expsyms can be an extended regexp of symbols to exclude
14121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14123 # as well as any symbol that contains `d'.
14124 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14126 # platforms (ab)use it in PIC code, but their linkers get confused if
14127 # the symbol is explicitly referenced. Since portable code cannot
14128 # rely on this symbol name, it's probably fine to never include it in
14129 # preloaded symbol tables.
14130 # Exclude shared library initialization/finalization symbols.
14131 extract_expsyms_cmds=
14133 case $host_os in
14134 cygwin* | mingw* | pw32* | cegcc*)
14135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14136 # When not using gcc, we currently assume that we are using
14137 # Microsoft Visual C++.
14138 if test "$GCC" != yes; then
14139 with_gnu_ld=no
14142 interix*)
14143 # we just hope/assume this is gcc and not c89 (= MSVC++)
14144 with_gnu_ld=yes
14146 openbsd*)
14147 with_gnu_ld=no
14149 esac
14151 ld_shlibs_FC=yes
14153 # On some targets, GNU ld is compatible enough with the native linker
14154 # that we're better off using the native interface for both.
14155 lt_use_gnu_ld_interface=no
14156 if test "$with_gnu_ld" = yes; then
14157 case $host_os in
14158 aix*)
14159 # The AIX port of GNU ld has always aspired to compatibility
14160 # with the native linker. However, as the warning in the GNU ld
14161 # block says, versions before 2.19.5* couldn't really create working
14162 # shared libraries, regardless of the interface used.
14163 case `$LD -v 2>&1` in
14164 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14165 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14166 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14168 lt_use_gnu_ld_interface=yes
14170 esac
14173 lt_use_gnu_ld_interface=yes
14175 esac
14178 if test "$lt_use_gnu_ld_interface" = yes; then
14179 # If archive_cmds runs LD, not CC, wlarc should be empty
14180 wlarc='${wl}'
14182 # Set some defaults for GNU ld with shared library support. These
14183 # are reset later if shared libraries are not supported. Putting them
14184 # here allows them to be overridden if necessary.
14185 runpath_var=LD_RUN_PATH
14186 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14187 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14188 # ancient GNU ld didn't support --whole-archive et. al.
14189 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14190 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14191 else
14192 whole_archive_flag_spec_FC=
14194 supports_anon_versioning=no
14195 case `$LD -v 2>&1` in
14196 *GNU\ gold*) supports_anon_versioning=yes ;;
14197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14200 *\ 2.11.*) ;; # other 2.11 versions
14201 *) supports_anon_versioning=yes ;;
14202 esac
14204 # See if GNU ld supports shared libraries.
14205 case $host_os in
14206 aix[3-9]*)
14207 # On AIX/PPC, the GNU linker is very broken
14208 if test "$host_cpu" != ia64; then
14209 ld_shlibs_FC=no
14210 cat <<_LT_EOF 1>&2
14212 *** Warning: the GNU linker, at least up to release 2.19, is reported
14213 *** to be unable to reliably create shared libraries on AIX.
14214 *** Therefore, libtool is disabling shared libraries support. If you
14215 *** really care for shared libraries, you may want to install binutils
14216 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14217 *** You will then need to restart the configuration process.
14219 _LT_EOF
14223 amigaos*)
14224 case $host_cpu in
14225 powerpc)
14226 # see comment about AmigaOS4 .so support
14227 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228 archive_expsym_cmds_FC=''
14230 m68k)
14231 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14232 hardcode_libdir_flag_spec_FC='-L$libdir'
14233 hardcode_minus_L_FC=yes
14235 esac
14238 beos*)
14239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14240 allow_undefined_flag_FC=unsupported
14241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14242 # support --undefined. This deserves some investigation. FIXME
14243 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14244 else
14245 ld_shlibs_FC=no
14249 cygwin* | mingw* | pw32* | cegcc*)
14250 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14251 # as there is no search path for DLLs.
14252 hardcode_libdir_flag_spec_FC='-L$libdir'
14253 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14254 allow_undefined_flag_FC=unsupported
14255 always_export_symbols_FC=no
14256 enable_shared_with_static_runtimes_FC=yes
14257 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14260 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14261 # If the export-symbols file already is a .def file (1st line
14262 # is EXPORTS), use it as is; otherwise, prepend...
14263 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14264 cp $export_symbols $output_objdir/$soname.def;
14265 else
14266 echo EXPORTS > $output_objdir/$soname.def;
14267 cat $export_symbols >> $output_objdir/$soname.def;
14269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270 else
14271 ld_shlibs_FC=no
14275 haiku*)
14276 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277 link_all_deplibs_FC=yes
14280 interix[3-9]*)
14281 hardcode_direct_FC=no
14282 hardcode_shlibpath_var_FC=no
14283 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14284 export_dynamic_flag_spec_FC='${wl}-E'
14285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14286 # Instead, shared libraries are loaded at an image base (0x10000000 by
14287 # default) and relocated if they conflict, which is a slow very memory
14288 # consuming and fragmenting process. To avoid this, we pick a random,
14289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14291 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14292 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14296 tmp_diet=no
14297 if test "$host_os" = linux-dietlibc; then
14298 case $cc_basename in
14299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14300 esac
14302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14303 && test "$tmp_diet" = no
14304 then
14305 tmp_addflag=' $pic_flag'
14306 tmp_sharedflag='-shared'
14307 case $cc_basename,$host_cpu in
14308 pgcc*) # Portland Group C compiler
14309 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14310 tmp_addflag=' $pic_flag'
14312 pgf77* | pgf90* | pgf95* | pgfortran*)
14313 # Portland Group f77 and f90 compilers
14314 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14315 tmp_addflag=' $pic_flag -Mnomain' ;;
14316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14317 tmp_addflag=' -i_dynamic' ;;
14318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14319 tmp_addflag=' -i_dynamic -nofor_main' ;;
14320 ifc* | ifort*) # Intel Fortran compiler
14321 tmp_addflag=' -nofor_main' ;;
14322 lf95*) # Lahey Fortran 8.1
14323 whole_archive_flag_spec_FC=
14324 tmp_sharedflag='--shared' ;;
14325 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14326 tmp_sharedflag='-qmkshrobj'
14327 tmp_addflag= ;;
14328 nvcc*) # Cuda Compiler Driver 2.2
14329 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14330 compiler_needs_object_FC=yes
14332 esac
14333 case `$CC -V 2>&1 | sed 5q` in
14334 *Sun\ C*) # Sun C 5.9
14335 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14336 compiler_needs_object_FC=yes
14337 tmp_sharedflag='-G' ;;
14338 *Sun\ F*) # Sun Fortran 8.3
14339 tmp_sharedflag='-G' ;;
14340 esac
14341 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343 if test "x$supports_anon_versioning" = xyes; then
14344 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14350 case $cc_basename in
14351 xlf* | bgf* | bgxlf* | mpixlf*)
14352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14353 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14354 hardcode_libdir_flag_spec_FC=
14355 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14356 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14357 if test "x$supports_anon_versioning" = xyes; then
14358 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14360 echo "local: *; };" >> $output_objdir/$libname.ver~
14361 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14364 esac
14365 else
14366 ld_shlibs_FC=no
14370 netbsd*)
14371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14372 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14373 wlarc=
14374 else
14375 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14376 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 solaris*)
14381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14382 ld_shlibs_FC=no
14383 cat <<_LT_EOF 1>&2
14385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14386 *** create shared libraries on Solaris systems. Therefore, libtool
14387 *** is disabling shared libraries support. We urge you to upgrade GNU
14388 *** binutils to release 2.9.1 or newer. Another option is to modify
14389 *** your PATH or compiler configuration so that the native linker is
14390 *** used, and then restart.
14392 _LT_EOF
14393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14394 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14396 else
14397 ld_shlibs_FC=no
14401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14402 case `$LD -v 2>&1` in
14403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14404 ld_shlibs_FC=no
14405 cat <<_LT_EOF 1>&2
14407 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14408 *** reliably create shared libraries on SCO systems. Therefore, libtool
14409 *** is disabling shared libraries support. We urge you to upgrade GNU
14410 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14411 *** your PATH or compiler configuration so that the native linker is
14412 *** used, and then restart.
14414 _LT_EOF
14417 # For security reasons, it is highly recommended that you always
14418 # use absolute paths for naming shared libraries, and exclude the
14419 # DT_RUNPATH tag from executables and libraries. But doing so
14420 # requires that you compile everything twice, which is a pain.
14421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14422 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14423 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14425 else
14426 ld_shlibs_FC=no
14429 esac
14432 sunos4*)
14433 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14434 wlarc=
14435 hardcode_direct_FC=yes
14436 hardcode_shlibpath_var_FC=no
14440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14441 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443 else
14444 ld_shlibs_FC=no
14447 esac
14449 if test "$ld_shlibs_FC" = no; then
14450 runpath_var=
14451 hardcode_libdir_flag_spec_FC=
14452 export_dynamic_flag_spec_FC=
14453 whole_archive_flag_spec_FC=
14455 else
14456 # PORTME fill in a description of your system's linker (not GNU ld)
14457 case $host_os in
14458 aix3*)
14459 allow_undefined_flag_FC=unsupported
14460 always_export_symbols_FC=yes
14461 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14462 # Note: this linker hardcodes the directories in LIBPATH if there
14463 # are no directories specified by -L.
14464 hardcode_minus_L_FC=yes
14465 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14466 # Neither direct hardcoding nor static linking is supported with a
14467 # broken collect2.
14468 hardcode_direct_FC=unsupported
14472 aix[4-9]*)
14473 if test "$host_cpu" = ia64; then
14474 # On IA64, the linker does run time linking by default, so we don't
14475 # have to do anything special.
14476 aix_use_runtimelinking=no
14477 exp_sym_flag='-Bexport'
14478 no_entry_flag=""
14479 else
14480 # If we're using GNU nm, then we don't want the "-C" option.
14481 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14482 # Also, AIX nm treats weak defined symbols like other global
14483 # defined symbols, whereas GNU nm marks them as "W".
14484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14485 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14486 else
14487 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14489 aix_use_runtimelinking=no
14491 # Test if we are trying to use run time linking or normal
14492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14493 # need to do runtime linking.
14494 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14495 for ld_flag in $LDFLAGS; do
14496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14497 aix_use_runtimelinking=yes
14498 break
14500 done
14502 esac
14504 exp_sym_flag='-bexport'
14505 no_entry_flag='-bnoentry'
14508 # When large executables or shared objects are built, AIX ld can
14509 # have problems creating the table of contents. If linking a library
14510 # or program results in "error TOC overflow" add -mminimal-toc to
14511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14514 archive_cmds_FC=''
14515 hardcode_direct_FC=yes
14516 hardcode_direct_absolute_FC=yes
14517 hardcode_libdir_separator_FC=':'
14518 link_all_deplibs_FC=yes
14519 file_list_spec_FC='${wl}-f,'
14521 if test "$GCC" = yes; then
14522 case $host_os in aix4.[012]|aix4.[012].*)
14523 # We only want to do this on AIX 4.2 and lower, the check
14524 # below for broken collect2 doesn't work under 4.3+
14525 collect2name=`${CC} -print-prog-name=collect2`
14526 if test -f "$collect2name" &&
14527 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14528 then
14529 # We have reworked collect2
14531 else
14532 # We have old collect2
14533 hardcode_direct_FC=unsupported
14534 # It fails to find uninstalled libraries when the uninstalled
14535 # path is not listed in the libpath. Setting hardcode_minus_L
14536 # to unsupported forces relinking
14537 hardcode_minus_L_FC=yes
14538 hardcode_libdir_flag_spec_FC='-L$libdir'
14539 hardcode_libdir_separator_FC=
14542 esac
14543 shared_flag='-shared'
14544 if test "$aix_use_runtimelinking" = yes; then
14545 shared_flag="$shared_flag "'${wl}-G'
14547 else
14548 # not using gcc
14549 if test "$host_cpu" = ia64; then
14550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14551 # chokes on -Wl,-G. The following line is correct:
14552 shared_flag='-G'
14553 else
14554 if test "$aix_use_runtimelinking" = yes; then
14555 shared_flag='${wl}-G'
14556 else
14557 shared_flag='${wl}-bM:SRE'
14562 export_dynamic_flag_spec_FC='${wl}-bexpall'
14563 # It seems that -bexpall does not export symbols beginning with
14564 # underscore (_), so it is better to generate a list of symbols to export.
14565 always_export_symbols_FC=yes
14566 if test "$aix_use_runtimelinking" = yes; then
14567 # Warning - without using the other runtime loading flags (-brtl),
14568 # -berok will link without error, but may produce a broken library.
14569 allow_undefined_flag_FC='-berok'
14570 # Determine the default libpath from the value encoded in an
14571 # empty executable.
14572 if test x$gcc_no_link = xyes; then
14573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14575 cat > conftest.$ac_ext <<_ACEOF
14576 program main
14579 _ACEOF
14580 if ac_fn_fc_try_link "$LINENO"; then :
14582 lt_aix_libpath_sed='
14583 /Import File Strings/,/^$/ {
14584 /^0/ {
14585 s/^0 *\(.*\)$/\1/
14589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14590 # Check for a 64-bit object if we didn't find anything.
14591 if test -z "$aix_libpath"; then
14592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14599 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14600 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14601 else
14602 if test "$host_cpu" = ia64; then
14603 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14604 allow_undefined_flag_FC="-z nodefs"
14605 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14606 else
14607 # Determine the default libpath from the value encoded in an
14608 # empty executable.
14609 if test x$gcc_no_link = xyes; then
14610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14612 cat > conftest.$ac_ext <<_ACEOF
14613 program main
14616 _ACEOF
14617 if ac_fn_fc_try_link "$LINENO"; then :
14619 lt_aix_libpath_sed='
14620 /Import File Strings/,/^$/ {
14621 /^0/ {
14622 s/^0 *\(.*\)$/\1/
14626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14627 # Check for a 64-bit object if we didn't find anything.
14628 if test -z "$aix_libpath"; then
14629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14636 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14637 # Warning - without using the other run time loading flags,
14638 # -berok will link without error, but may produce a broken library.
14639 no_undefined_flag_FC=' ${wl}-bernotok'
14640 allow_undefined_flag_FC=' ${wl}-berok'
14641 if test "$with_gnu_ld" = yes; then
14642 # We only use this code for GNU lds that support --whole-archive.
14643 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14644 else
14645 # Exported symbols can be pulled into shared objects from archives
14646 whole_archive_flag_spec_FC='$convenience'
14648 archive_cmds_need_lc_FC=yes
14649 # This is similar to how AIX traditionally builds its shared libraries.
14650 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14655 amigaos*)
14656 case $host_cpu in
14657 powerpc)
14658 # see comment about AmigaOS4 .so support
14659 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660 archive_expsym_cmds_FC=''
14662 m68k)
14663 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14664 hardcode_libdir_flag_spec_FC='-L$libdir'
14665 hardcode_minus_L_FC=yes
14667 esac
14670 bsdi[45]*)
14671 export_dynamic_flag_spec_FC=-rdynamic
14674 cygwin* | mingw* | pw32* | cegcc*)
14675 # When not using gcc, we currently assume that we are using
14676 # Microsoft Visual C++.
14677 # hardcode_libdir_flag_spec is actually meaningless, as there is
14678 # no search path for DLLs.
14679 hardcode_libdir_flag_spec_FC=' '
14680 allow_undefined_flag_FC=unsupported
14681 # Tell ltmain to make .lib files, not .a files.
14682 libext=lib
14683 # Tell ltmain to make .dll files, not .so files.
14684 shrext_cmds=".dll"
14685 # FIXME: Setting linknames here is a bad hack.
14686 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14687 # The linker will automatically build a .lib file if we build a DLL.
14688 old_archive_from_new_cmds_FC='true'
14689 # FIXME: Should let the user specify the lib program.
14690 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14691 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14692 enable_shared_with_static_runtimes_FC=yes
14695 darwin* | rhapsody*)
14698 archive_cmds_need_lc_FC=no
14699 hardcode_direct_FC=no
14700 hardcode_automatic_FC=yes
14701 hardcode_shlibpath_var_FC=unsupported
14702 if test "$lt_cv_ld_force_load" = "yes"; then
14703 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14704 else
14705 whole_archive_flag_spec_FC=''
14707 link_all_deplibs_FC=yes
14708 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14709 case $cc_basename in
14710 ifort*) _lt_dar_can_shared=yes ;;
14711 *) _lt_dar_can_shared=$GCC ;;
14712 esac
14713 if test "$_lt_dar_can_shared" = "yes"; then
14714 output_verbose_link_cmd=func_echo_all
14715 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14716 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14717 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14718 module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14720 else
14721 ld_shlibs_FC=no
14726 dgux*)
14727 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_libdir_flag_spec_FC='-L$libdir'
14729 hardcode_shlibpath_var_FC=no
14732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14733 # support. Future versions do this automatically, but an explicit c++rt0.o
14734 # does not break anything, and helps significantly (at the cost of a little
14735 # extra space).
14736 freebsd2.2*)
14737 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14738 hardcode_libdir_flag_spec_FC='-R$libdir'
14739 hardcode_direct_FC=yes
14740 hardcode_shlibpath_var_FC=no
14743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14744 freebsd2.*)
14745 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_direct_FC=yes
14747 hardcode_minus_L_FC=yes
14748 hardcode_shlibpath_var_FC=no
14751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14752 freebsd* | dragonfly*)
14753 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14754 hardcode_libdir_flag_spec_FC='-R$libdir'
14755 hardcode_direct_FC=yes
14756 hardcode_shlibpath_var_FC=no
14759 hpux9*)
14760 if test "$GCC" = yes; then
14761 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14762 else
14763 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14765 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14766 hardcode_libdir_separator_FC=:
14767 hardcode_direct_FC=yes
14769 # hardcode_minus_L: Not really in the search PATH,
14770 # but as the default location of the library.
14771 hardcode_minus_L_FC=yes
14772 export_dynamic_flag_spec_FC='${wl}-E'
14775 hpux10*)
14776 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14777 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14778 else
14779 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14781 if test "$with_gnu_ld" = no; then
14782 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14783 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14784 hardcode_libdir_separator_FC=:
14785 hardcode_direct_FC=yes
14786 hardcode_direct_absolute_FC=yes
14787 export_dynamic_flag_spec_FC='${wl}-E'
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L_FC=yes
14794 hpux11*)
14795 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14796 case $host_cpu in
14797 hppa*64*)
14798 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14800 ia64*)
14801 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14806 esac
14807 else
14808 case $host_cpu in
14809 hppa*64*)
14810 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 ia64*)
14813 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14816 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14818 esac
14820 if test "$with_gnu_ld" = no; then
14821 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14822 hardcode_libdir_separator_FC=:
14824 case $host_cpu in
14825 hppa*64*|ia64*)
14826 hardcode_direct_FC=no
14827 hardcode_shlibpath_var_FC=no
14830 hardcode_direct_FC=yes
14831 hardcode_direct_absolute_FC=yes
14832 export_dynamic_flag_spec_FC='${wl}-E'
14834 # hardcode_minus_L: Not really in the search PATH,
14835 # but as the default location of the library.
14836 hardcode_minus_L_FC=yes
14838 esac
14842 irix5* | irix6* | nonstopux*)
14843 if test "$GCC" = yes; then
14844 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14845 # Try to use the -exported_symbol ld option, if it does not
14846 # work, assume that -exports_file does not work either and
14847 # implicitly export all symbols.
14848 save_LDFLAGS="$LDFLAGS"
14849 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14850 if test x$gcc_no_link = xyes; then
14851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14853 cat > conftest.$ac_ext <<_ACEOF
14854 int foo(void) {}
14855 _ACEOF
14856 if ac_fn_fc_try_link "$LINENO"; then :
14857 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LDFLAGS="$save_LDFLAGS"
14863 else
14864 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14865 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14867 archive_cmds_need_lc_FC='no'
14868 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14869 hardcode_libdir_separator_FC=:
14870 inherit_rpath_FC=yes
14871 link_all_deplibs_FC=yes
14874 netbsd*)
14875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14876 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14877 else
14878 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14880 hardcode_libdir_flag_spec_FC='-R$libdir'
14881 hardcode_direct_FC=yes
14882 hardcode_shlibpath_var_FC=no
14885 newsos6)
14886 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_FC=yes
14888 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14889 hardcode_libdir_separator_FC=:
14890 hardcode_shlibpath_var_FC=no
14893 *nto* | *qnx*)
14896 openbsd*)
14897 if test -f /usr/libexec/ld.so; then
14898 hardcode_direct_FC=yes
14899 hardcode_shlibpath_var_FC=no
14900 hardcode_direct_absolute_FC=yes
14901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14902 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14903 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14904 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14905 export_dynamic_flag_spec_FC='${wl}-E'
14906 else
14907 case $host_os in
14908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14909 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_libdir_flag_spec_FC='-R$libdir'
14913 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14914 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14916 esac
14918 else
14919 ld_shlibs_FC=no
14923 os2*)
14924 hardcode_libdir_flag_spec_FC='-L$libdir'
14925 hardcode_minus_L_FC=yes
14926 allow_undefined_flag_FC=unsupported
14927 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14928 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14931 osf3*)
14932 if test "$GCC" = yes; then
14933 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14934 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14935 else
14936 allow_undefined_flag_FC=' -expect_unresolved \*'
14937 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14939 archive_cmds_need_lc_FC='no'
14940 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14941 hardcode_libdir_separator_FC=:
14944 osf4* | osf5*) # as osf3* with the addition of -msym flag
14945 if test "$GCC" = yes; then
14946 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14947 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14948 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14949 else
14950 allow_undefined_flag_FC=' -expect_unresolved \*'
14951 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14952 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14953 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14955 # Both c and cxx compiler support -rpath directly
14956 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14958 archive_cmds_need_lc_FC='no'
14959 hardcode_libdir_separator_FC=:
14962 solaris*)
14963 no_undefined_flag_FC=' -z defs'
14964 if test "$GCC" = yes; then
14965 wlarc='${wl}'
14966 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14968 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14969 else
14970 case `$CC -V 2>&1` in
14971 *"Compilers 5.0"*)
14972 wlarc=''
14973 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14974 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14978 wlarc='${wl}'
14979 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14983 esac
14985 hardcode_libdir_flag_spec_FC='-R$libdir'
14986 hardcode_shlibpath_var_FC=no
14987 case $host_os in
14988 solaris2.[0-5] | solaris2.[0-5].*) ;;
14990 # The compiler driver will combine and reorder linker options,
14991 # but understands `-z linker_flag'. GCC discards it without `$wl',
14992 # but is careful enough not to reorder.
14993 # Supported since Solaris 2.6 (maybe 2.5.1?)
14994 if test "$GCC" = yes; then
14995 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14996 else
14997 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15000 esac
15001 link_all_deplibs_FC=yes
15004 sunos4*)
15005 if test "x$host_vendor" = xsequent; then
15006 # Use $CC to link under sequent, because it throws in some extra .o
15007 # files that make .init and .fini sections work.
15008 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15009 else
15010 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15012 hardcode_libdir_flag_spec_FC='-L$libdir'
15013 hardcode_direct_FC=yes
15014 hardcode_minus_L_FC=yes
15015 hardcode_shlibpath_var_FC=no
15018 sysv4)
15019 case $host_vendor in
15020 sni)
15021 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_direct_FC=yes # is this really true???
15024 siemens)
15025 ## LD is ld it makes a PLAMLIB
15026 ## CC just makes a GrossModule.
15027 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15028 reload_cmds_FC='$CC -r -o $output$reload_objs'
15029 hardcode_direct_FC=no
15031 motorola)
15032 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15033 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15035 esac
15036 runpath_var='LD_RUN_PATH'
15037 hardcode_shlibpath_var_FC=no
15040 sysv4.3*)
15041 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042 hardcode_shlibpath_var_FC=no
15043 export_dynamic_flag_spec_FC='-Bexport'
15046 sysv4*MP*)
15047 if test -d /usr/nec; then
15048 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15049 hardcode_shlibpath_var_FC=no
15050 runpath_var=LD_RUN_PATH
15051 hardcode_runpath_var=yes
15052 ld_shlibs_FC=yes
15056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15057 no_undefined_flag_FC='${wl}-z,text'
15058 archive_cmds_need_lc_FC=no
15059 hardcode_shlibpath_var_FC=no
15060 runpath_var='LD_RUN_PATH'
15062 if test "$GCC" = yes; then
15063 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 else
15066 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 sysv5* | sco3.2v5* | sco5v6*)
15072 # Note: We can NOT use -z defs as we might desire, because we do not
15073 # link with -lc, and that would cause any symbols used from libc to
15074 # always be unresolved, which means just about no library would
15075 # ever link correctly. If we're not using GNU ld we use -z text
15076 # though, which does catch some bad symbols but isn't as heavy-handed
15077 # as -z defs.
15078 no_undefined_flag_FC='${wl}-z,text'
15079 allow_undefined_flag_FC='${wl}-z,nodefs'
15080 archive_cmds_need_lc_FC=no
15081 hardcode_shlibpath_var_FC=no
15082 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15083 hardcode_libdir_separator_FC=':'
15084 link_all_deplibs_FC=yes
15085 export_dynamic_flag_spec_FC='${wl}-Bexport'
15086 runpath_var='LD_RUN_PATH'
15088 if test "$GCC" = yes; then
15089 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 else
15092 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 uts4*)
15098 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15099 hardcode_libdir_flag_spec_FC='-L$libdir'
15100 hardcode_shlibpath_var_FC=no
15104 ld_shlibs_FC=no
15106 esac
15108 if test x$host_vendor = xsni; then
15109 case $host in
15110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15111 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15113 esac
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15118 $as_echo "$ld_shlibs_FC" >&6; }
15119 test "$ld_shlibs_FC" = no && can_build_shared=no
15121 with_gnu_ld_FC=$with_gnu_ld
15129 # Do we need to explicitly link libc?
15131 case "x$archive_cmds_need_lc_FC" in
15132 x|xyes)
15133 # Assume -lc should be added
15134 archive_cmds_need_lc_FC=yes
15136 if test "$enable_shared" = yes && test "$GCC" = yes; then
15137 case $archive_cmds_FC in
15138 *'~'*)
15139 # FIXME: we may have to deal with multi-command sequences.
15141 '$CC '*)
15142 # Test whether the compiler implicitly links with -lc since on some
15143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15144 # to ld, don't add -lc before -lgcc.
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15147 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15148 $as_echo_n "(cached) " >&6
15149 else
15150 $RM conftest*
15151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15154 (eval $ac_compile) 2>&5
15155 ac_status=$?
15156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; } 2>conftest.err; then
15158 soname=conftest
15159 lib=conftest
15160 libobjs=conftest.$ac_objext
15161 deplibs=
15162 wl=$lt_prog_compiler_wl_FC
15163 pic_flag=$lt_prog_compiler_pic_FC
15164 compiler_flags=-v
15165 linker_flags=-v
15166 verstring=
15167 output_objdir=.
15168 libname=conftest
15169 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15170 allow_undefined_flag_FC=
15171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15172 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15173 ac_status=$?
15174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175 test $ac_status = 0; }
15176 then
15177 lt_cv_archive_cmds_need_lc_FC=no
15178 else
15179 lt_cv_archive_cmds_need_lc_FC=yes
15181 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15182 else
15183 cat conftest.err 1>&5
15185 $RM conftest*
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15189 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15190 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15192 esac
15195 esac
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15261 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15263 library_names_spec=
15264 libname_spec='lib$name'
15265 soname_spec=
15266 shrext_cmds=".so"
15267 postinstall_cmds=
15268 postuninstall_cmds=
15269 finish_cmds=
15270 finish_eval=
15271 shlibpath_var=
15272 shlibpath_overrides_runpath=unknown
15273 version_type=none
15274 dynamic_linker="$host_os ld.so"
15275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15276 need_lib_prefix=unknown
15277 hardcode_into_libs=no
15279 # when you set need_version to no, make sure it does not cause -set_version
15280 # flags to be left without arguments
15281 need_version=unknown
15283 case $host_os in
15284 aix3*)
15285 version_type=linux
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15287 shlibpath_var=LIBPATH
15289 # AIX 3 has no versioning support, so we append a major version to the name.
15290 soname_spec='${libname}${release}${shared_ext}$major'
15293 aix[4-9]*)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 hardcode_into_libs=yes
15298 if test "$host_cpu" = ia64; then
15299 # AIX 5 supports IA64
15300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 else
15303 # With GCC up to 2.95.x, collect2 would create an import file
15304 # for dependence libraries. The import file would start with
15305 # the line `#! .'. This would cause the generated library to
15306 # depend on `.', always an invalid library. This was fixed in
15307 # development snapshots of GCC prior to 3.0.
15308 case $host_os in
15309 aix4 | aix4.[01] | aix4.[01].*)
15310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15311 echo ' yes '
15312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15314 else
15315 can_build_shared=no
15318 esac
15319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15320 # soname into executable. Probably we can add versioning support to
15321 # collect2, so additional links can be useful in future.
15322 if test "$aix_use_runtimelinking" = yes; then
15323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15324 # instead of lib<name>.a to let people know that these are not
15325 # typical AIX shared libraries.
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327 else
15328 # We preserve .a as extension for shared libraries through AIX4.2
15329 # and later when we are not doing run time linking.
15330 library_names_spec='${libname}${release}.a $libname.a'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15333 shlibpath_var=LIBPATH
15337 amigaos*)
15338 case $host_cpu in
15339 powerpc)
15340 # Since July 2007 AmigaOS4 officially supports .so libraries.
15341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 m68k)
15345 library_names_spec='$libname.ixlibrary $libname.a'
15346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15347 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15349 esac
15352 beos*)
15353 library_names_spec='${libname}${shared_ext}'
15354 dynamic_linker="$host_os ld.so"
15355 shlibpath_var=LIBRARY_PATH
15358 bsdi[45]*)
15359 version_type=linux
15360 need_version=no
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15367 # the default ld.so.conf also contains /usr/contrib/lib and
15368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15369 # libtool to hard-code these into programs
15372 cygwin* | mingw* | pw32* | cegcc*)
15373 version_type=windows
15374 shrext_cmds=".dll"
15375 need_version=no
15376 need_lib_prefix=no
15378 case $GCC,$host_os in
15379 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15380 library_names_spec='$libname.dll.a'
15381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382 postinstall_cmds='base_file=`basename \${file}`~
15383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15384 dldir=$destdir/`dirname \$dlpath`~
15385 test -d \$dldir || mkdir -p \$dldir~
15386 $install_prog $dir/$dlname \$dldir/$dlname~
15387 chmod a+x \$dldir/$dlname~
15388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15392 dlpath=$dir/\$dldll~
15393 $RM \$dlpath'
15394 shlibpath_overrides_runpath=yes
15396 case $host_os in
15397 cygwin*)
15398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15402 mingw* | cegcc*)
15403 # MinGW DLLs use traditional 'lib' prefix
15404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15406 pw32*)
15407 # pw32 DLLs use 'pw' prefix rather than 'lib'
15408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15410 esac
15414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15416 esac
15417 dynamic_linker='Win32 ld.exe'
15418 # FIXME: first we should search . and the directory the executable is in
15419 shlibpath_var=PATH
15422 darwin* | rhapsody*)
15423 dynamic_linker="$host_os dyld"
15424 version_type=darwin
15425 need_lib_prefix=no
15426 need_version=no
15427 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15428 soname_spec='${libname}${release}${major}$shared_ext'
15429 shlibpath_overrides_runpath=yes
15430 shlibpath_var=DYLD_LIBRARY_PATH
15431 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15436 dgux*)
15437 version_type=linux
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15445 freebsd* | dragonfly*)
15446 # DragonFly does not have aout. When/if they implement a new
15447 # versioning mechanism, adjust this.
15448 if test -x /usr/bin/objformat; then
15449 objformat=`/usr/bin/objformat`
15450 else
15451 case $host_os in
15452 freebsd[23].*) objformat=aout ;;
15453 *) objformat=elf ;;
15454 esac
15456 version_type=freebsd-$objformat
15457 case $version_type in
15458 freebsd-elf*)
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15460 need_version=no
15461 need_lib_prefix=no
15463 freebsd-*)
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15465 need_version=yes
15467 esac
15468 shlibpath_var=LD_LIBRARY_PATH
15469 case $host_os in
15470 freebsd2.*)
15471 shlibpath_overrides_runpath=yes
15473 freebsd3.[01]* | freebsdelf3.[01]*)
15474 shlibpath_overrides_runpath=yes
15475 hardcode_into_libs=yes
15477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15482 *) # from 4.6 on, and DragonFly
15483 shlibpath_overrides_runpath=yes
15484 hardcode_into_libs=yes
15486 esac
15489 gnu*)
15490 version_type=linux
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 hardcode_into_libs=yes
15499 haiku*)
15500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 dynamic_linker="$host_os runtime_loader"
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 shlibpath_var=LIBRARY_PATH
15507 shlibpath_overrides_runpath=yes
15508 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15509 hardcode_into_libs=yes
15512 hpux9* | hpux10* | hpux11*)
15513 # Give a soname corresponding to the major version so that dld.sl refuses to
15514 # link against other versions.
15515 version_type=sunos
15516 need_lib_prefix=no
15517 need_version=no
15518 case $host_cpu in
15519 ia64*)
15520 shrext_cmds='.so'
15521 hardcode_into_libs=yes
15522 dynamic_linker="$host_os dld.so"
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 if test "X$HPUX_IA64_MODE" = X32; then
15528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15529 else
15530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534 hppa*64*)
15535 shrext_cmds='.sl'
15536 hardcode_into_libs=yes
15537 dynamic_linker="$host_os dld.sl"
15538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15546 shrext_cmds='.sl'
15547 dynamic_linker="$host_os dld.sl"
15548 shlibpath_var=SHLIB_PATH
15549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15553 esac
15554 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15555 postinstall_cmds='chmod 555 $lib'
15556 # or fails outright, so override atomically:
15557 install_override_mode=555
15560 interix[3-9]*)
15561 version_type=linux
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15572 irix5* | irix6* | nonstopux*)
15573 case $host_os in
15574 nonstopux*) version_type=nonstopux ;;
15576 if test "$lt_cv_prog_gnu_ld" = yes; then
15577 version_type=linux
15578 else
15579 version_type=irix
15580 fi ;;
15581 esac
15582 need_lib_prefix=no
15583 need_version=no
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15586 case $host_os in
15587 irix5* | nonstopux*)
15588 libsuff= shlibsuff=
15591 case $LD in # libtool.m4 will add one of these switches to LD
15592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15593 libsuff= shlibsuff= libmagic=32-bit;;
15594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15595 libsuff=32 shlibsuff=N32 libmagic=N32;;
15596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15598 *) libsuff= shlibsuff= libmagic=never-match;;
15599 esac
15601 esac
15602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15603 shlibpath_overrides_runpath=no
15604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15606 hardcode_into_libs=yes
15609 # No shared lib support for Linux oldld, aout, or coff.
15610 linux*oldld* | linux*aout* | linux*coff*)
15611 dynamic_linker=no
15614 # This must be Linux ELF.
15615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15616 version_type=linux
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=no
15625 # Some binutils ld are patched to set DT_RUNPATH
15626 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15627 $as_echo_n "(cached) " >&6
15628 else
15629 lt_cv_shlibpath_overrides_runpath=no
15630 save_LDFLAGS=$LDFLAGS
15631 save_libdir=$libdir
15632 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15633 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15634 if test x$gcc_no_link = xyes; then
15635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15637 cat > conftest.$ac_ext <<_ACEOF
15638 program main
15641 _ACEOF
15642 if ac_fn_fc_try_link "$LINENO"; then :
15643 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15644 lt_cv_shlibpath_overrides_runpath=yes
15647 rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15649 LDFLAGS=$save_LDFLAGS
15650 libdir=$save_libdir
15654 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15656 # This implies no fast_install, which is unacceptable.
15657 # Some rework will be needed to allow for fast_install
15658 # before this can be enabled.
15659 hardcode_into_libs=yes
15661 # Append ld.so.conf contents to the search path
15662 if test -f /etc/ld.so.conf; then
15663 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15667 # We used to test for /lib/ld.so.1 and disable shared libraries on
15668 # powerpc, because MkLinux only supported shared libraries with the
15669 # GNU dynamic linker. Since this was broken with cross compilers,
15670 # most powerpc-linux boxes support dynamic linking these days and
15671 # people can always --disable-shared, the test was removed, and we
15672 # assume the GNU/Linux dynamic linker is in use.
15673 dynamic_linker='GNU/Linux ld.so'
15676 netbsd*)
15677 version_type=sunos
15678 need_lib_prefix=no
15679 need_version=no
15680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15683 dynamic_linker='NetBSD (a.out) ld.so'
15684 else
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 dynamic_linker='NetBSD ld.elf_so'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15694 newsos6)
15695 version_type=linux
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15701 *nto* | *qnx*)
15702 version_type=qnx
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=no
15709 hardcode_into_libs=yes
15710 dynamic_linker='ldqnx.so'
15713 openbsd*)
15714 version_type=sunos
15715 sys_lib_dlsearch_path_spec="/usr/lib"
15716 need_lib_prefix=no
15717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15718 case $host_os in
15719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15720 *) need_version=no ;;
15721 esac
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15726 case $host_os in
15727 openbsd2.[89] | openbsd2.[89].*)
15728 shlibpath_overrides_runpath=no
15731 shlibpath_overrides_runpath=yes
15733 esac
15734 else
15735 shlibpath_overrides_runpath=yes
15739 os2*)
15740 libname_spec='$name'
15741 shrext_cmds=".dll"
15742 need_lib_prefix=no
15743 library_names_spec='$libname${shared_ext} $libname.a'
15744 dynamic_linker='OS/2 ld.exe'
15745 shlibpath_var=LIBPATH
15748 osf3* | osf4* | osf5*)
15749 version_type=osf
15750 need_lib_prefix=no
15751 need_version=no
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15759 rdos*)
15760 dynamic_linker=no
15763 solaris*)
15764 version_type=linux
15765 need_lib_prefix=no
15766 need_version=no
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 hardcode_into_libs=yes
15772 # ldd complains unless libraries are executable
15773 postinstall_cmds='chmod +x $lib'
15776 sunos4*)
15777 version_type=sunos
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15782 if test "$with_gnu_ld" = yes; then
15783 need_lib_prefix=no
15785 need_version=yes
15788 sysv4 | sysv4.3*)
15789 version_type=linux
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 case $host_vendor in
15794 sni)
15795 shlibpath_overrides_runpath=no
15796 need_lib_prefix=no
15797 runpath_var=LD_RUN_PATH
15799 siemens)
15800 need_lib_prefix=no
15802 motorola)
15803 need_lib_prefix=no
15804 need_version=no
15805 shlibpath_overrides_runpath=no
15806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15808 esac
15811 sysv4*MP*)
15812 if test -d /usr/nec ;then
15813 version_type=linux
15814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15815 soname_spec='$libname${shared_ext}.$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15821 version_type=freebsd-elf
15822 need_lib_prefix=no
15823 need_version=no
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 shlibpath_var=LD_LIBRARY_PATH
15827 shlibpath_overrides_runpath=yes
15828 hardcode_into_libs=yes
15829 if test "$with_gnu_ld" = yes; then
15830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15831 else
15832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15833 case $host_os in
15834 sco3.2v5*)
15835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15837 esac
15839 sys_lib_dlsearch_path_spec='/usr/lib'
15842 tpf*)
15843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15844 version_type=linux
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath=no
15850 hardcode_into_libs=yes
15853 uts4*)
15854 version_type=linux
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15861 dynamic_linker=no
15863 esac
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15865 $as_echo "$dynamic_linker" >&6; }
15866 test "$dynamic_linker" = no && can_build_shared=no
15868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15869 if test "$GCC" = yes; then
15870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15873 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15874 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15876 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15877 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15918 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15919 hardcode_action_FC=
15920 if test -n "$hardcode_libdir_flag_spec_FC" ||
15921 test -n "$runpath_var_FC" ||
15922 test "X$hardcode_automatic_FC" = "Xyes" ; then
15924 # We can hardcode non-existent directories.
15925 if test "$hardcode_direct_FC" != no &&
15926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15927 # have to relink, otherwise we might link with an installed library
15928 # when we should be linking with a yet-to-be-installed one
15929 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15930 test "$hardcode_minus_L_FC" != no; then
15931 # Linking always hardcodes the temporary library directory.
15932 hardcode_action_FC=relink
15933 else
15934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15935 hardcode_action_FC=immediate
15937 else
15938 # We cannot hardcode anything, or else we can only hardcode existing
15939 # directories.
15940 hardcode_action_FC=unsupported
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15943 $as_echo "$hardcode_action_FC" >&6; }
15945 if test "$hardcode_action_FC" = relink ||
15946 test "$inherit_rpath_FC" = yes; then
15947 # Fast installation is not supported
15948 enable_fast_install=no
15949 elif test "$shlibpath_overrides_runpath" = yes ||
15950 test "$enable_shared" = no; then
15951 # Fast installation is not necessary
15952 enable_fast_install=needless
15961 fi # test -n "$compiler"
15963 GCC=$lt_save_GCC
15964 CC="$lt_save_CC"
15965 fi # test "$_lt_disable_FC" != yes
15967 ac_ext=c
15968 ac_cpp='$CPP $CPPFLAGS'
15969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15975 # extra LD Flags which are required for targets
15976 case "${host}" in
15977 *-darwin*)
15978 # Darwin needs -single_module when linking libgfortran
15979 extra_ldflags_libgfortran=-Wl,-single_module
15981 esac
15984 # We need a working compiler at that point, otherwise give a clear
15985 # error message and bail out.
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15988 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15989 ac_ext=${ac_fc_srcext-f}
15990 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15991 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15992 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15994 cat > conftest.$ac_ext <<_ACEOF
15996 program foo
15997 real, parameter :: bar = sin (12.34 / 2.5)
15998 end program foo
15999 _ACEOF
16000 if ac_fn_fc_try_compile "$LINENO"; then :
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002 $as_echo "yes" >&6; }
16003 else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 $as_echo "no" >&6; }
16006 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010 ac_ext=c
16011 ac_cpp='$CPP $CPPFLAGS'
16012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16018 # Check whether --enable-largefile was given.
16019 if test "${enable_largefile+set}" = set; then :
16020 enableval=$enable_largefile;
16023 if test "$enable_largefile" != no; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16026 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16027 if ${ac_cv_sys_largefile_CC+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029 else
16030 ac_cv_sys_largefile_CC=no
16031 if test "$GCC" != yes; then
16032 ac_save_CC=$CC
16033 while :; do
16034 # IRIX 6.2 and later do not support large files by default,
16035 # so use the C compiler's -n32 option if that helps.
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038 #include <sys/types.h>
16039 /* Check that off_t can represent 2**63 - 1 correctly.
16040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16041 since some C++ compilers masquerading as C compilers
16042 incorrectly reject 9223372036854775807. */
16043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16045 && LARGE_OFF_T % 2147483647 == 1)
16046 ? 1 : -1];
16048 main ()
16052 return 0;
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 break
16058 rm -f core conftest.err conftest.$ac_objext
16059 CC="$CC -n32"
16060 if ac_fn_c_try_compile "$LINENO"; then :
16061 ac_cv_sys_largefile_CC=' -n32'; break
16063 rm -f core conftest.err conftest.$ac_objext
16064 break
16065 done
16066 CC=$ac_save_CC
16067 rm -f conftest.$ac_ext
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16071 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16072 if test "$ac_cv_sys_largefile_CC" != no; then
16073 CC=$CC$ac_cv_sys_largefile_CC
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16077 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16078 if ${ac_cv_sys_file_offset_bits+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 while :; do
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <sys/types.h>
16085 /* Check that off_t can represent 2**63 - 1 correctly.
16086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16087 since some C++ compilers masquerading as C compilers
16088 incorrectly reject 9223372036854775807. */
16089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16091 && LARGE_OFF_T % 2147483647 == 1)
16092 ? 1 : -1];
16094 main ()
16098 return 0;
16100 _ACEOF
16101 if ac_fn_c_try_compile "$LINENO"; then :
16102 ac_cv_sys_file_offset_bits=no; break
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16107 #define _FILE_OFFSET_BITS 64
16108 #include <sys/types.h>
16109 /* Check that off_t can represent 2**63 - 1 correctly.
16110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16111 since some C++ compilers masquerading as C compilers
16112 incorrectly reject 9223372036854775807. */
16113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16115 && LARGE_OFF_T % 2147483647 == 1)
16116 ? 1 : -1];
16118 main ()
16122 return 0;
16124 _ACEOF
16125 if ac_fn_c_try_compile "$LINENO"; then :
16126 ac_cv_sys_file_offset_bits=64; break
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 ac_cv_sys_file_offset_bits=unknown
16130 break
16131 done
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16134 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16135 case $ac_cv_sys_file_offset_bits in #(
16136 no | unknown) ;;
16138 cat >>confdefs.h <<_ACEOF
16139 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16140 _ACEOF
16142 esac
16143 rm -rf conftest*
16144 if test $ac_cv_sys_file_offset_bits = unknown; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16146 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16147 if ${ac_cv_sys_large_files+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 while :; do
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #include <sys/types.h>
16154 /* Check that off_t can represent 2**63 - 1 correctly.
16155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16156 since some C++ compilers masquerading as C compilers
16157 incorrectly reject 9223372036854775807. */
16158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16160 && LARGE_OFF_T % 2147483647 == 1)
16161 ? 1 : -1];
16163 main ()
16167 return 0;
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"; then :
16171 ac_cv_sys_large_files=no; break
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 #define _LARGE_FILES 1
16177 #include <sys/types.h>
16178 /* Check that off_t can represent 2**63 - 1 correctly.
16179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16180 since some C++ compilers masquerading as C compilers
16181 incorrectly reject 9223372036854775807. */
16182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16184 && LARGE_OFF_T % 2147483647 == 1)
16185 ? 1 : -1];
16187 main ()
16191 return 0;
16193 _ACEOF
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195 ac_cv_sys_large_files=1; break
16197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 ac_cv_sys_large_files=unknown
16199 break
16200 done
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16203 $as_echo "$ac_cv_sys_large_files" >&6; }
16204 case $ac_cv_sys_large_files in #(
16205 no | unknown) ;;
16207 cat >>confdefs.h <<_ACEOF
16208 #define _LARGE_FILES $ac_cv_sys_large_files
16209 _ACEOF
16211 esac
16212 rm -rf conftest*
16219 # Types
16220 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16221 if test "x$ac_cv_type_off_t" = xyes; then :
16223 else
16225 cat >>confdefs.h <<_ACEOF
16226 #define off_t long int
16227 _ACEOF
16232 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16233 if test "x$ac_cv_type_intptr_t" = xyes; then :
16235 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16237 else
16238 for ac_type in 'int' 'long int' 'long long int'; do
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 $ac_includes_default
16243 main ()
16245 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16246 test_array [0] = 0;
16247 return test_array [0];
16250 return 0;
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16255 cat >>confdefs.h <<_ACEOF
16256 #define intptr_t $ac_type
16257 _ACEOF
16259 ac_type=
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 test -z "$ac_type" && break
16263 done
16268 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16269 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16271 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16273 else
16274 for ac_type in 'unsigned int' 'unsigned long int' \
16275 'unsigned long long int'; do
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 $ac_includes_default
16280 main ()
16282 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16283 test_array [0] = 0;
16284 return test_array [0];
16287 return 0;
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"; then :
16292 cat >>confdefs.h <<_ACEOF
16293 #define uintptr_t $ac_type
16294 _ACEOF
16296 ac_type=
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 test -z "$ac_type" && break
16300 done
16304 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16305 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16307 cat >>confdefs.h <<_ACEOF
16308 #define HAVE_PTRDIFF_T 1
16309 _ACEOF
16315 # check header files (we assume C89 is available, so don't check for that)
16319 for ac_header in $ac_header_list
16320 do :
16321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327 _ACEOF
16331 done
16371 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16373 acx_cv_header_stdint=stddef.h
16374 acx_cv_header_stdint_kind="(already complete)"
16375 for i in stdint.h $inttype_headers; do
16376 unset ac_cv_type_uintptr_t
16377 unset ac_cv_type_uintmax_t
16378 unset ac_cv_type_int_least32_t
16379 unset ac_cv_type_int_fast32_t
16380 unset ac_cv_type_uint64_t
16381 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16382 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16383 #include <$i>
16385 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16386 acx_cv_header_stdint=$i
16387 else
16388 continue
16391 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16392 #include <$i>
16394 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16396 else
16397 acx_cv_header_stdint_kind="(mostly complete)"
16400 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16401 #include <$i>
16403 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16405 else
16406 acx_cv_header_stdint_kind="(mostly complete)"
16409 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16410 #include <$i>
16412 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16414 else
16415 acx_cv_header_stdint_kind="(mostly complete)"
16418 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16419 #include <$i>
16421 if test "x$ac_cv_type_uint64_t" = xyes; then :
16423 else
16424 acx_cv_header_stdint_kind="(lacks uint64_t)"
16427 break
16428 done
16429 if test "$acx_cv_header_stdint" = stddef.h; then
16430 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16431 for i in stdint.h $inttype_headers; do
16432 unset ac_cv_type_uintptr_t
16433 unset ac_cv_type_uint32_t
16434 unset ac_cv_type_uint64_t
16435 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16436 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16437 #include <$i>
16439 if test "x$ac_cv_type_uint32_t" = xyes; then :
16440 acx_cv_header_stdint=$i
16441 else
16442 continue
16445 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16446 #include <$i>
16448 if test "x$ac_cv_type_uint64_t" = xyes; then :
16452 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16453 #include <$i>
16455 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16459 break
16460 done
16462 if test "$acx_cv_header_stdint" = stddef.h; then
16463 acx_cv_header_stdint_kind="(u_intXX_t style)"
16464 for i in sys/types.h $inttype_headers; do
16465 unset ac_cv_type_u_int32_t
16466 unset ac_cv_type_u_int64_t
16467 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16468 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16469 #include <$i>
16471 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16472 acx_cv_header_stdint=$i
16473 else
16474 continue
16477 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16478 #include <$i>
16480 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16484 break
16485 done
16487 if test "$acx_cv_header_stdint" = stddef.h; then
16488 acx_cv_header_stdint_kind="(using manual detection)"
16491 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16492 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16493 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16494 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16495 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16497 # ----------------- Summarize what we found so far
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16500 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16502 case `$as_basename -- gstdint.h ||
16503 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16504 Xgstdint.h : 'X\(//\)$' \| \
16505 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16506 $as_echo X/gstdint.h |
16507 sed '/^.*\/\([^/][^/]*\)\/*$/{
16508 s//\1/
16511 /^X\/\(\/\/\)$/{
16512 s//\1/
16515 /^X\/\(\/\).*/{
16516 s//\1/
16519 s/.*/./; q'` in
16520 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16521 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16522 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16523 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16524 *) ;;
16525 esac
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16528 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16530 # ----------------- done included file, check C basic types --------
16532 # Lacking an uintptr_t? Test size of void *
16533 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16534 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16537 # This bug is HP SR number 8606223364.
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16539 $as_echo_n "checking size of void *... " >&6; }
16540 if ${ac_cv_sizeof_void_p+:} false; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16545 else
16546 if test "$ac_cv_type_void_p" = yes; then
16547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16549 as_fn_error 77 "cannot compute sizeof (void *)
16550 See \`config.log' for more details" "$LINENO" 5; }
16551 else
16552 ac_cv_sizeof_void_p=0
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16558 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16562 cat >>confdefs.h <<_ACEOF
16563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16564 _ACEOF
16567 esac
16569 # Lacking an uint64_t? Test size of long
16570 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16571 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16574 # This bug is HP SR number 8606223364.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16576 $as_echo_n "checking size of long... " >&6; }
16577 if ${ac_cv_sizeof_long+:} false; then :
16578 $as_echo_n "(cached) " >&6
16579 else
16580 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16582 else
16583 if test "$ac_cv_type_long" = yes; then
16584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16586 as_fn_error 77 "cannot compute sizeof (long)
16587 See \`config.log' for more details" "$LINENO" 5; }
16588 else
16589 ac_cv_sizeof_long=0
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16595 $as_echo "$ac_cv_sizeof_long" >&6; }
16599 cat >>confdefs.h <<_ACEOF
16600 #define SIZEOF_LONG $ac_cv_sizeof_long
16601 _ACEOF
16604 esac
16606 if test $acx_cv_header_stdint = stddef.h; then
16607 # Lacking a good header? Test size of everything and deduce all types.
16608 # The cast to long int works around a bug in the HP C Compiler
16609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16611 # This bug is HP SR number 8606223364.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16613 $as_echo_n "checking size of int... " >&6; }
16614 if ${ac_cv_sizeof_int+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16619 else
16620 if test "$ac_cv_type_int" = yes; then
16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16623 as_fn_error 77 "cannot compute sizeof (int)
16624 See \`config.log' for more details" "$LINENO" 5; }
16625 else
16626 ac_cv_sizeof_int=0
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16632 $as_echo "$ac_cv_sizeof_int" >&6; }
16636 cat >>confdefs.h <<_ACEOF
16637 #define SIZEOF_INT $ac_cv_sizeof_int
16638 _ACEOF
16641 # The cast to long int works around a bug in the HP C Compiler
16642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16644 # This bug is HP SR number 8606223364.
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16646 $as_echo_n "checking size of short... " >&6; }
16647 if ${ac_cv_sizeof_short+:} false; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16652 else
16653 if test "$ac_cv_type_short" = yes; then
16654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16656 as_fn_error 77 "cannot compute sizeof (short)
16657 See \`config.log' for more details" "$LINENO" 5; }
16658 else
16659 ac_cv_sizeof_short=0
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16665 $as_echo "$ac_cv_sizeof_short" >&6; }
16669 cat >>confdefs.h <<_ACEOF
16670 #define SIZEOF_SHORT $ac_cv_sizeof_short
16671 _ACEOF
16674 # The cast to long int works around a bug in the HP C Compiler
16675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16677 # This bug is HP SR number 8606223364.
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16679 $as_echo_n "checking size of char... " >&6; }
16680 if ${ac_cv_sizeof_char+:} false; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16685 else
16686 if test "$ac_cv_type_char" = yes; then
16687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16689 as_fn_error 77 "cannot compute sizeof (char)
16690 See \`config.log' for more details" "$LINENO" 5; }
16691 else
16692 ac_cv_sizeof_char=0
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16698 $as_echo "$ac_cv_sizeof_char" >&6; }
16702 cat >>confdefs.h <<_ACEOF
16703 #define SIZEOF_CHAR $ac_cv_sizeof_char
16704 _ACEOF
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16709 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16710 case "$ac_cv_sizeof_char" in
16711 1) acx_cv_type_int8_t=char ;;
16712 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16713 esac
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16715 $as_echo "$acx_cv_type_int8_t" >&6; }
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16718 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16719 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16720 2:*) acx_cv_type_int16_t=int ;;
16721 *:2) acx_cv_type_int16_t=short ;;
16722 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16723 esac
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16725 $as_echo "$acx_cv_type_int16_t" >&6; }
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16728 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16729 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16730 4:*) acx_cv_type_int32_t=int ;;
16731 *:4) acx_cv_type_int32_t=long ;;
16732 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16733 esac
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16735 $as_echo "$acx_cv_type_int32_t" >&6; }
16738 # These tests are here to make the output prettier
16740 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16741 case "$ac_cv_sizeof_long" in
16742 8) acx_cv_type_int64_t=long ;;
16743 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16745 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16747 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16750 # Now we can use the above types
16752 if test "$ac_cv_type_uintptr_t" != yes; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16754 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16755 case $ac_cv_sizeof_void_p in
16756 2) acx_cv_type_intptr_t=int16_t ;;
16757 4) acx_cv_type_intptr_t=int32_t ;;
16758 8) acx_cv_type_intptr_t=int64_t ;;
16759 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16760 esac
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16762 $as_echo "$acx_cv_type_intptr_t" >&6; }
16765 # ----------------- done all checks, emit header -------------
16766 ac_config_commands="$ac_config_commands gstdint.h"
16771 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16772 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16776 _ACEOF
16780 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16781 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16785 _ACEOF
16789 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16790 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_STRUCT_STAT_ST_RDEV 1
16794 _ACEOF
16800 case "${host}--x${with_newlib}" in
16801 mips*--xyes)
16802 hardwire_newlib=1;;
16803 nvptx*--xyes)
16804 hardwire_newlib=1;;
16805 esac
16807 # Check for library functions.
16808 if test "${hardwire_newlib:-0}" -eq 1; then
16809 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16810 # may not work correctly, because the compiler may not be able to
16811 # link executables.
16813 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16816 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16819 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16822 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16825 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16828 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16831 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16834 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16837 # At some point, we should differentiate between architectures
16838 # like x86, which have long double versions, and alpha/powerpc/etc.,
16839 # which don't. For the time being, punt.
16840 if test x"long_double_math_on_this_cpu" = x"yes"; then
16842 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16845 else
16849 for ac_func in $ac_func_list
16850 do :
16851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856 _ACEOF
16859 done
16966 # Check strerror_r, cannot be above as versions with two and three arguments exist
16968 ac_save_CFLAGS="$CFLAGS"
16969 CFLAGS="-Wimplicit-function-declaration -Werror"
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 #define _GNU_SOURCE 1
16973 #include <string.h>
16974 #include <locale.h>
16976 main ()
16978 char s[128]; strerror_r(5, s, 128);
16980 return 0;
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"; then :
16985 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 CFLAGS="$ac_save_CFLAGS"
16991 ac_save_CFLAGS="$CFLAGS"
16992 CFLAGS="-Wimplicit-function-declaration -Werror"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #define _GNU_SOURCE 1
16996 #include <string.h>
16997 #include <locale.h>
16999 main ()
17001 char s[128]; strerror_r(5, s);
17003 return 0;
17005 _ACEOF
17006 if ac_fn_c_try_compile "$LINENO"; then :
17008 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 CFLAGS="$ac_save_CFLAGS"
17015 # Check for C99 (and other IEEE) math functions
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17017 $as_echo_n "checking for sin in -lm... " >&6; }
17018 if ${ac_cv_lib_m_sin+:} false; then :
17019 $as_echo_n "(cached) " >&6
17020 else
17021 ac_check_lib_save_LIBS=$LIBS
17022 LIBS="-lm $LIBS"
17023 if test x$gcc_no_link = xyes; then
17024 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032 #ifdef __cplusplus
17033 extern "C"
17034 #endif
17035 char sin ();
17037 main ()
17039 return sin ();
17041 return 0;
17043 _ACEOF
17044 if ac_fn_c_try_link "$LINENO"; then :
17045 ac_cv_lib_m_sin=yes
17046 else
17047 ac_cv_lib_m_sin=no
17049 rm -f core conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17051 LIBS=$ac_check_lib_save_LIBS
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17054 $as_echo "$ac_cv_lib_m_sin" >&6; }
17055 if test "x$ac_cv_lib_m_sin" = xyes; then :
17056 cat >>confdefs.h <<_ACEOF
17057 #define HAVE_LIBM 1
17058 _ACEOF
17060 LIBS="-lm $LIBS"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17071 $as_echo_n "checking for acosf... " >&6; }
17072 if ${gcc_cv_math_func_acosf+:} false; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 if test x$gcc_no_link = xyes; then
17076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17081 #ifdef HAVE_COMPLEX_H
17082 #include <complex.h>
17083 #endif
17084 #ifdef HAVE_MATH_H
17085 #include <math.h>
17086 #endif
17088 int (*ptr)() = (int (*)())acosf;
17091 main ()
17093 return 0;
17096 _ACEOF
17097 if ac_fn_c_try_link "$LINENO"; then :
17098 gcc_cv_math_func_acosf=yes
17099 else
17100 gcc_cv_math_func_acosf=no
17102 rm -f core conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17106 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17107 if test $gcc_cv_math_func_acosf = yes; then
17109 cat >>confdefs.h <<_ACEOF
17110 #define HAVE_ACOSF 1
17111 _ACEOF
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17119 $as_echo_n "checking for acos... " >&6; }
17120 if ${gcc_cv_math_func_acos+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 if test x$gcc_no_link = xyes; then
17124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17129 #ifdef HAVE_COMPLEX_H
17130 #include <complex.h>
17131 #endif
17132 #ifdef HAVE_MATH_H
17133 #include <math.h>
17134 #endif
17136 int (*ptr)() = (int (*)())acos;
17139 main ()
17141 return 0;
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 gcc_cv_math_func_acos=yes
17147 else
17148 gcc_cv_math_func_acos=no
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17154 $as_echo "$gcc_cv_math_func_acos" >&6; }
17155 if test $gcc_cv_math_func_acos = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_ACOS 1
17159 _ACEOF
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17167 $as_echo_n "checking for acosl... " >&6; }
17168 if ${gcc_cv_math_func_acosl+:} false; then :
17169 $as_echo_n "(cached) " >&6
17170 else
17171 if test x$gcc_no_link = xyes; then
17172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17177 #ifdef HAVE_COMPLEX_H
17178 #include <complex.h>
17179 #endif
17180 #ifdef HAVE_MATH_H
17181 #include <math.h>
17182 #endif
17184 int (*ptr)() = (int (*)())acosl;
17187 main ()
17189 return 0;
17192 _ACEOF
17193 if ac_fn_c_try_link "$LINENO"; then :
17194 gcc_cv_math_func_acosl=yes
17195 else
17196 gcc_cv_math_func_acosl=no
17198 rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17202 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17203 if test $gcc_cv_math_func_acosl = yes; then
17205 cat >>confdefs.h <<_ACEOF
17206 #define HAVE_ACOSL 1
17207 _ACEOF
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17215 $as_echo_n "checking for acoshf... " >&6; }
17216 if ${gcc_cv_math_func_acoshf+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 if test x$gcc_no_link = xyes; then
17220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17225 #ifdef HAVE_COMPLEX_H
17226 #include <complex.h>
17227 #endif
17228 #ifdef HAVE_MATH_H
17229 #include <math.h>
17230 #endif
17232 int (*ptr)() = (int (*)())acoshf;
17235 main ()
17237 return 0;
17240 _ACEOF
17241 if ac_fn_c_try_link "$LINENO"; then :
17242 gcc_cv_math_func_acoshf=yes
17243 else
17244 gcc_cv_math_func_acoshf=no
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17250 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17251 if test $gcc_cv_math_func_acoshf = yes; then
17253 cat >>confdefs.h <<_ACEOF
17254 #define HAVE_ACOSHF 1
17255 _ACEOF
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17263 $as_echo_n "checking for acosh... " >&6; }
17264 if ${gcc_cv_math_func_acosh+:} false; then :
17265 $as_echo_n "(cached) " >&6
17266 else
17267 if test x$gcc_no_link = xyes; then
17268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17273 #ifdef HAVE_COMPLEX_H
17274 #include <complex.h>
17275 #endif
17276 #ifdef HAVE_MATH_H
17277 #include <math.h>
17278 #endif
17280 int (*ptr)() = (int (*)())acosh;
17283 main ()
17285 return 0;
17288 _ACEOF
17289 if ac_fn_c_try_link "$LINENO"; then :
17290 gcc_cv_math_func_acosh=yes
17291 else
17292 gcc_cv_math_func_acosh=no
17294 rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17298 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17299 if test $gcc_cv_math_func_acosh = yes; then
17301 cat >>confdefs.h <<_ACEOF
17302 #define HAVE_ACOSH 1
17303 _ACEOF
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17311 $as_echo_n "checking for acoshl... " >&6; }
17312 if ${gcc_cv_math_func_acoshl+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 if test x$gcc_no_link = xyes; then
17316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17321 #ifdef HAVE_COMPLEX_H
17322 #include <complex.h>
17323 #endif
17324 #ifdef HAVE_MATH_H
17325 #include <math.h>
17326 #endif
17328 int (*ptr)() = (int (*)())acoshl;
17331 main ()
17333 return 0;
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338 gcc_cv_math_func_acoshl=yes
17339 else
17340 gcc_cv_math_func_acoshl=no
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17346 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17347 if test $gcc_cv_math_func_acoshl = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_ACOSHL 1
17351 _ACEOF
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17359 $as_echo_n "checking for asinf... " >&6; }
17360 if ${gcc_cv_math_func_asinf+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 if test x$gcc_no_link = xyes; then
17364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17369 #ifdef HAVE_COMPLEX_H
17370 #include <complex.h>
17371 #endif
17372 #ifdef HAVE_MATH_H
17373 #include <math.h>
17374 #endif
17376 int (*ptr)() = (int (*)())asinf;
17379 main ()
17381 return 0;
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"; then :
17386 gcc_cv_math_func_asinf=yes
17387 else
17388 gcc_cv_math_func_asinf=no
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17394 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17395 if test $gcc_cv_math_func_asinf = yes; then
17397 cat >>confdefs.h <<_ACEOF
17398 #define HAVE_ASINF 1
17399 _ACEOF
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17407 $as_echo_n "checking for asin... " >&6; }
17408 if ${gcc_cv_math_func_asin+:} false; then :
17409 $as_echo_n "(cached) " >&6
17410 else
17411 if test x$gcc_no_link = xyes; then
17412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17417 #ifdef HAVE_COMPLEX_H
17418 #include <complex.h>
17419 #endif
17420 #ifdef HAVE_MATH_H
17421 #include <math.h>
17422 #endif
17424 int (*ptr)() = (int (*)())asin;
17427 main ()
17429 return 0;
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"; then :
17434 gcc_cv_math_func_asin=yes
17435 else
17436 gcc_cv_math_func_asin=no
17438 rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17442 $as_echo "$gcc_cv_math_func_asin" >&6; }
17443 if test $gcc_cv_math_func_asin = yes; then
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_ASIN 1
17447 _ACEOF
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17455 $as_echo_n "checking for asinl... " >&6; }
17456 if ${gcc_cv_math_func_asinl+:} false; then :
17457 $as_echo_n "(cached) " >&6
17458 else
17459 if test x$gcc_no_link = xyes; then
17460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17465 #ifdef HAVE_COMPLEX_H
17466 #include <complex.h>
17467 #endif
17468 #ifdef HAVE_MATH_H
17469 #include <math.h>
17470 #endif
17472 int (*ptr)() = (int (*)())asinl;
17475 main ()
17477 return 0;
17480 _ACEOF
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 gcc_cv_math_func_asinl=yes
17483 else
17484 gcc_cv_math_func_asinl=no
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17490 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17491 if test $gcc_cv_math_func_asinl = yes; then
17493 cat >>confdefs.h <<_ACEOF
17494 #define HAVE_ASINL 1
17495 _ACEOF
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17503 $as_echo_n "checking for asinhf... " >&6; }
17504 if ${gcc_cv_math_func_asinhf+:} false; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 if test x$gcc_no_link = xyes; then
17508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17513 #ifdef HAVE_COMPLEX_H
17514 #include <complex.h>
17515 #endif
17516 #ifdef HAVE_MATH_H
17517 #include <math.h>
17518 #endif
17520 int (*ptr)() = (int (*)())asinhf;
17523 main ()
17525 return 0;
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 gcc_cv_math_func_asinhf=yes
17531 else
17532 gcc_cv_math_func_asinhf=no
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17538 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17539 if test $gcc_cv_math_func_asinhf = yes; then
17541 cat >>confdefs.h <<_ACEOF
17542 #define HAVE_ASINHF 1
17543 _ACEOF
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17551 $as_echo_n "checking for asinh... " >&6; }
17552 if ${gcc_cv_math_func_asinh+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 if test x$gcc_no_link = xyes; then
17556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17561 #ifdef HAVE_COMPLEX_H
17562 #include <complex.h>
17563 #endif
17564 #ifdef HAVE_MATH_H
17565 #include <math.h>
17566 #endif
17568 int (*ptr)() = (int (*)())asinh;
17571 main ()
17573 return 0;
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"; then :
17578 gcc_cv_math_func_asinh=yes
17579 else
17580 gcc_cv_math_func_asinh=no
17582 rm -f core conftest.err conftest.$ac_objext \
17583 conftest$ac_exeext conftest.$ac_ext
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17586 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17587 if test $gcc_cv_math_func_asinh = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_ASINH 1
17591 _ACEOF
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17599 $as_echo_n "checking for asinhl... " >&6; }
17600 if ${gcc_cv_math_func_asinhl+:} false; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 if test x$gcc_no_link = xyes; then
17604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17609 #ifdef HAVE_COMPLEX_H
17610 #include <complex.h>
17611 #endif
17612 #ifdef HAVE_MATH_H
17613 #include <math.h>
17614 #endif
17616 int (*ptr)() = (int (*)())asinhl;
17619 main ()
17621 return 0;
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"; then :
17626 gcc_cv_math_func_asinhl=yes
17627 else
17628 gcc_cv_math_func_asinhl=no
17630 rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17634 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17635 if test $gcc_cv_math_func_asinhl = yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define HAVE_ASINHL 1
17639 _ACEOF
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17647 $as_echo_n "checking for atan2f... " >&6; }
17648 if ${gcc_cv_math_func_atan2f+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651 if test x$gcc_no_link = xyes; then
17652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17657 #ifdef HAVE_COMPLEX_H
17658 #include <complex.h>
17659 #endif
17660 #ifdef HAVE_MATH_H
17661 #include <math.h>
17662 #endif
17664 int (*ptr)() = (int (*)())atan2f;
17667 main ()
17669 return 0;
17672 _ACEOF
17673 if ac_fn_c_try_link "$LINENO"; then :
17674 gcc_cv_math_func_atan2f=yes
17675 else
17676 gcc_cv_math_func_atan2f=no
17678 rm -f core conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17682 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17683 if test $gcc_cv_math_func_atan2f = yes; then
17685 cat >>confdefs.h <<_ACEOF
17686 #define HAVE_ATAN2F 1
17687 _ACEOF
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17695 $as_echo_n "checking for atan2... " >&6; }
17696 if ${gcc_cv_math_func_atan2+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 if test x$gcc_no_link = xyes; then
17700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17705 #ifdef HAVE_COMPLEX_H
17706 #include <complex.h>
17707 #endif
17708 #ifdef HAVE_MATH_H
17709 #include <math.h>
17710 #endif
17712 int (*ptr)() = (int (*)())atan2;
17715 main ()
17717 return 0;
17720 _ACEOF
17721 if ac_fn_c_try_link "$LINENO"; then :
17722 gcc_cv_math_func_atan2=yes
17723 else
17724 gcc_cv_math_func_atan2=no
17726 rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17730 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17731 if test $gcc_cv_math_func_atan2 = yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_ATAN2 1
17735 _ACEOF
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17743 $as_echo_n "checking for atan2l... " >&6; }
17744 if ${gcc_cv_math_func_atan2l+:} false; then :
17745 $as_echo_n "(cached) " >&6
17746 else
17747 if test x$gcc_no_link = xyes; then
17748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17753 #ifdef HAVE_COMPLEX_H
17754 #include <complex.h>
17755 #endif
17756 #ifdef HAVE_MATH_H
17757 #include <math.h>
17758 #endif
17760 int (*ptr)() = (int (*)())atan2l;
17763 main ()
17765 return 0;
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17770 gcc_cv_math_func_atan2l=yes
17771 else
17772 gcc_cv_math_func_atan2l=no
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17778 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17779 if test $gcc_cv_math_func_atan2l = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_ATAN2L 1
17783 _ACEOF
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17791 $as_echo_n "checking for atanf... " >&6; }
17792 if ${gcc_cv_math_func_atanf+:} false; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 if test x$gcc_no_link = xyes; then
17796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 #ifdef HAVE_COMPLEX_H
17802 #include <complex.h>
17803 #endif
17804 #ifdef HAVE_MATH_H
17805 #include <math.h>
17806 #endif
17808 int (*ptr)() = (int (*)())atanf;
17811 main ()
17813 return 0;
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 gcc_cv_math_func_atanf=yes
17819 else
17820 gcc_cv_math_func_atanf=no
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17826 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17827 if test $gcc_cv_math_func_atanf = yes; then
17829 cat >>confdefs.h <<_ACEOF
17830 #define HAVE_ATANF 1
17831 _ACEOF
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17839 $as_echo_n "checking for atan... " >&6; }
17840 if ${gcc_cv_math_func_atan+:} false; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 if test x$gcc_no_link = xyes; then
17844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17849 #ifdef HAVE_COMPLEX_H
17850 #include <complex.h>
17851 #endif
17852 #ifdef HAVE_MATH_H
17853 #include <math.h>
17854 #endif
17856 int (*ptr)() = (int (*)())atan;
17859 main ()
17861 return 0;
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 gcc_cv_math_func_atan=yes
17867 else
17868 gcc_cv_math_func_atan=no
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17874 $as_echo "$gcc_cv_math_func_atan" >&6; }
17875 if test $gcc_cv_math_func_atan = yes; then
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_ATAN 1
17879 _ACEOF
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17887 $as_echo_n "checking for atanl... " >&6; }
17888 if ${gcc_cv_math_func_atanl+:} false; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 if test x$gcc_no_link = xyes; then
17892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17897 #ifdef HAVE_COMPLEX_H
17898 #include <complex.h>
17899 #endif
17900 #ifdef HAVE_MATH_H
17901 #include <math.h>
17902 #endif
17904 int (*ptr)() = (int (*)())atanl;
17907 main ()
17909 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 gcc_cv_math_func_atanl=yes
17915 else
17916 gcc_cv_math_func_atanl=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17922 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17923 if test $gcc_cv_math_func_atanl = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define HAVE_ATANL 1
17927 _ACEOF
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17935 $as_echo_n "checking for atanhf... " >&6; }
17936 if ${gcc_cv_math_func_atanhf+:} false; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 if test x$gcc_no_link = xyes; then
17940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17945 #ifdef HAVE_COMPLEX_H
17946 #include <complex.h>
17947 #endif
17948 #ifdef HAVE_MATH_H
17949 #include <math.h>
17950 #endif
17952 int (*ptr)() = (int (*)())atanhf;
17955 main ()
17957 return 0;
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 gcc_cv_math_func_atanhf=yes
17963 else
17964 gcc_cv_math_func_atanhf=no
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17970 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17971 if test $gcc_cv_math_func_atanhf = yes; then
17973 cat >>confdefs.h <<_ACEOF
17974 #define HAVE_ATANHF 1
17975 _ACEOF
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17983 $as_echo_n "checking for atanh... " >&6; }
17984 if ${gcc_cv_math_func_atanh+:} false; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 if test x$gcc_no_link = xyes; then
17988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17993 #ifdef HAVE_COMPLEX_H
17994 #include <complex.h>
17995 #endif
17996 #ifdef HAVE_MATH_H
17997 #include <math.h>
17998 #endif
18000 int (*ptr)() = (int (*)())atanh;
18003 main ()
18005 return 0;
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010 gcc_cv_math_func_atanh=yes
18011 else
18012 gcc_cv_math_func_atanh=no
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18018 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18019 if test $gcc_cv_math_func_atanh = yes; then
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_ATANH 1
18023 _ACEOF
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18031 $as_echo_n "checking for atanhl... " >&6; }
18032 if ${gcc_cv_math_func_atanhl+:} false; then :
18033 $as_echo_n "(cached) " >&6
18034 else
18035 if test x$gcc_no_link = xyes; then
18036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18041 #ifdef HAVE_COMPLEX_H
18042 #include <complex.h>
18043 #endif
18044 #ifdef HAVE_MATH_H
18045 #include <math.h>
18046 #endif
18048 int (*ptr)() = (int (*)())atanhl;
18051 main ()
18053 return 0;
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"; then :
18058 gcc_cv_math_func_atanhl=yes
18059 else
18060 gcc_cv_math_func_atanhl=no
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18066 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18067 if test $gcc_cv_math_func_atanhl = yes; then
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_ATANHL 1
18071 _ACEOF
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18079 $as_echo_n "checking for cargf... " >&6; }
18080 if ${gcc_cv_math_func_cargf+:} false; then :
18081 $as_echo_n "(cached) " >&6
18082 else
18083 if test x$gcc_no_link = xyes; then
18084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18089 #ifdef HAVE_COMPLEX_H
18090 #include <complex.h>
18091 #endif
18092 #ifdef HAVE_MATH_H
18093 #include <math.h>
18094 #endif
18096 int (*ptr)() = (int (*)())cargf;
18099 main ()
18101 return 0;
18104 _ACEOF
18105 if ac_fn_c_try_link "$LINENO"; then :
18106 gcc_cv_math_func_cargf=yes
18107 else
18108 gcc_cv_math_func_cargf=no
18110 rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18114 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18115 if test $gcc_cv_math_func_cargf = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_CARGF 1
18119 _ACEOF
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18127 $as_echo_n "checking for carg... " >&6; }
18128 if ${gcc_cv_math_func_carg+:} false; then :
18129 $as_echo_n "(cached) " >&6
18130 else
18131 if test x$gcc_no_link = xyes; then
18132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18137 #ifdef HAVE_COMPLEX_H
18138 #include <complex.h>
18139 #endif
18140 #ifdef HAVE_MATH_H
18141 #include <math.h>
18142 #endif
18144 int (*ptr)() = (int (*)())carg;
18147 main ()
18149 return 0;
18152 _ACEOF
18153 if ac_fn_c_try_link "$LINENO"; then :
18154 gcc_cv_math_func_carg=yes
18155 else
18156 gcc_cv_math_func_carg=no
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18162 $as_echo "$gcc_cv_math_func_carg" >&6; }
18163 if test $gcc_cv_math_func_carg = yes; then
18165 cat >>confdefs.h <<_ACEOF
18166 #define HAVE_CARG 1
18167 _ACEOF
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18175 $as_echo_n "checking for cargl... " >&6; }
18176 if ${gcc_cv_math_func_cargl+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 if test x$gcc_no_link = xyes; then
18180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18185 #ifdef HAVE_COMPLEX_H
18186 #include <complex.h>
18187 #endif
18188 #ifdef HAVE_MATH_H
18189 #include <math.h>
18190 #endif
18192 int (*ptr)() = (int (*)())cargl;
18195 main ()
18197 return 0;
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 gcc_cv_math_func_cargl=yes
18203 else
18204 gcc_cv_math_func_cargl=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18210 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18211 if test $gcc_cv_math_func_cargl = yes; then
18213 cat >>confdefs.h <<_ACEOF
18214 #define HAVE_CARGL 1
18215 _ACEOF
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18223 $as_echo_n "checking for ceilf... " >&6; }
18224 if ${gcc_cv_math_func_ceilf+:} false; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 if test x$gcc_no_link = xyes; then
18228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 #ifdef HAVE_COMPLEX_H
18234 #include <complex.h>
18235 #endif
18236 #ifdef HAVE_MATH_H
18237 #include <math.h>
18238 #endif
18240 int (*ptr)() = (int (*)())ceilf;
18243 main ()
18245 return 0;
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 gcc_cv_math_func_ceilf=yes
18251 else
18252 gcc_cv_math_func_ceilf=no
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18258 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18259 if test $gcc_cv_math_func_ceilf = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define HAVE_CEILF 1
18263 _ACEOF
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18271 $as_echo_n "checking for ceil... " >&6; }
18272 if ${gcc_cv_math_func_ceil+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 if test x$gcc_no_link = xyes; then
18276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18281 #ifdef HAVE_COMPLEX_H
18282 #include <complex.h>
18283 #endif
18284 #ifdef HAVE_MATH_H
18285 #include <math.h>
18286 #endif
18288 int (*ptr)() = (int (*)())ceil;
18291 main ()
18293 return 0;
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 gcc_cv_math_func_ceil=yes
18299 else
18300 gcc_cv_math_func_ceil=no
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18306 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18307 if test $gcc_cv_math_func_ceil = yes; then
18309 cat >>confdefs.h <<_ACEOF
18310 #define HAVE_CEIL 1
18311 _ACEOF
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18319 $as_echo_n "checking for ceill... " >&6; }
18320 if ${gcc_cv_math_func_ceill+:} false; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 if test x$gcc_no_link = xyes; then
18324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 #ifdef HAVE_COMPLEX_H
18330 #include <complex.h>
18331 #endif
18332 #ifdef HAVE_MATH_H
18333 #include <math.h>
18334 #endif
18336 int (*ptr)() = (int (*)())ceill;
18339 main ()
18341 return 0;
18344 _ACEOF
18345 if ac_fn_c_try_link "$LINENO"; then :
18346 gcc_cv_math_func_ceill=yes
18347 else
18348 gcc_cv_math_func_ceill=no
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18354 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18355 if test $gcc_cv_math_func_ceill = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_CEILL 1
18359 _ACEOF
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18367 $as_echo_n "checking for copysignf... " >&6; }
18368 if ${gcc_cv_math_func_copysignf+:} false; then :
18369 $as_echo_n "(cached) " >&6
18370 else
18371 if test x$gcc_no_link = xyes; then
18372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 #ifdef HAVE_COMPLEX_H
18378 #include <complex.h>
18379 #endif
18380 #ifdef HAVE_MATH_H
18381 #include <math.h>
18382 #endif
18384 int (*ptr)() = (int (*)())copysignf;
18387 main ()
18389 return 0;
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 gcc_cv_math_func_copysignf=yes
18395 else
18396 gcc_cv_math_func_copysignf=no
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18402 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18403 if test $gcc_cv_math_func_copysignf = yes; then
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_COPYSIGNF 1
18407 _ACEOF
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18415 $as_echo_n "checking for copysign... " >&6; }
18416 if ${gcc_cv_math_func_copysign+:} false; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18419 if test x$gcc_no_link = xyes; then
18420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18425 #ifdef HAVE_COMPLEX_H
18426 #include <complex.h>
18427 #endif
18428 #ifdef HAVE_MATH_H
18429 #include <math.h>
18430 #endif
18432 int (*ptr)() = (int (*)())copysign;
18435 main ()
18437 return 0;
18440 _ACEOF
18441 if ac_fn_c_try_link "$LINENO"; then :
18442 gcc_cv_math_func_copysign=yes
18443 else
18444 gcc_cv_math_func_copysign=no
18446 rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18450 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18451 if test $gcc_cv_math_func_copysign = yes; then
18453 cat >>confdefs.h <<_ACEOF
18454 #define HAVE_COPYSIGN 1
18455 _ACEOF
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18463 $as_echo_n "checking for copysignl... " >&6; }
18464 if ${gcc_cv_math_func_copysignl+:} false; then :
18465 $as_echo_n "(cached) " >&6
18466 else
18467 if test x$gcc_no_link = xyes; then
18468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18473 #ifdef HAVE_COMPLEX_H
18474 #include <complex.h>
18475 #endif
18476 #ifdef HAVE_MATH_H
18477 #include <math.h>
18478 #endif
18480 int (*ptr)() = (int (*)())copysignl;
18483 main ()
18485 return 0;
18488 _ACEOF
18489 if ac_fn_c_try_link "$LINENO"; then :
18490 gcc_cv_math_func_copysignl=yes
18491 else
18492 gcc_cv_math_func_copysignl=no
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18498 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18499 if test $gcc_cv_math_func_copysignl = yes; then
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_COPYSIGNL 1
18503 _ACEOF
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18511 $as_echo_n "checking for cosf... " >&6; }
18512 if ${gcc_cv_math_func_cosf+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 if test x$gcc_no_link = xyes; then
18516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18521 #ifdef HAVE_COMPLEX_H
18522 #include <complex.h>
18523 #endif
18524 #ifdef HAVE_MATH_H
18525 #include <math.h>
18526 #endif
18528 int (*ptr)() = (int (*)())cosf;
18531 main ()
18533 return 0;
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"; then :
18538 gcc_cv_math_func_cosf=yes
18539 else
18540 gcc_cv_math_func_cosf=no
18542 rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18546 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18547 if test $gcc_cv_math_func_cosf = yes; then
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_COSF 1
18551 _ACEOF
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18559 $as_echo_n "checking for cos... " >&6; }
18560 if ${gcc_cv_math_func_cos+:} false; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 if test x$gcc_no_link = xyes; then
18564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 #ifdef HAVE_COMPLEX_H
18570 #include <complex.h>
18571 #endif
18572 #ifdef HAVE_MATH_H
18573 #include <math.h>
18574 #endif
18576 int (*ptr)() = (int (*)())cos;
18579 main ()
18581 return 0;
18584 _ACEOF
18585 if ac_fn_c_try_link "$LINENO"; then :
18586 gcc_cv_math_func_cos=yes
18587 else
18588 gcc_cv_math_func_cos=no
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18594 $as_echo "$gcc_cv_math_func_cos" >&6; }
18595 if test $gcc_cv_math_func_cos = yes; then
18597 cat >>confdefs.h <<_ACEOF
18598 #define HAVE_COS 1
18599 _ACEOF
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18607 $as_echo_n "checking for cosl... " >&6; }
18608 if ${gcc_cv_math_func_cosl+:} false; then :
18609 $as_echo_n "(cached) " >&6
18610 else
18611 if test x$gcc_no_link = xyes; then
18612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18617 #ifdef HAVE_COMPLEX_H
18618 #include <complex.h>
18619 #endif
18620 #ifdef HAVE_MATH_H
18621 #include <math.h>
18622 #endif
18624 int (*ptr)() = (int (*)())cosl;
18627 main ()
18629 return 0;
18632 _ACEOF
18633 if ac_fn_c_try_link "$LINENO"; then :
18634 gcc_cv_math_func_cosl=yes
18635 else
18636 gcc_cv_math_func_cosl=no
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18642 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18643 if test $gcc_cv_math_func_cosl = yes; then
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_COSL 1
18647 _ACEOF
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18655 $as_echo_n "checking for ccosf... " >&6; }
18656 if ${gcc_cv_math_func_ccosf+:} false; then :
18657 $as_echo_n "(cached) " >&6
18658 else
18659 if test x$gcc_no_link = xyes; then
18660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18665 #ifdef HAVE_COMPLEX_H
18666 #include <complex.h>
18667 #endif
18668 #ifdef HAVE_MATH_H
18669 #include <math.h>
18670 #endif
18672 int (*ptr)() = (int (*)())ccosf;
18675 main ()
18677 return 0;
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"; then :
18682 gcc_cv_math_func_ccosf=yes
18683 else
18684 gcc_cv_math_func_ccosf=no
18686 rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18690 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18691 if test $gcc_cv_math_func_ccosf = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define HAVE_CCOSF 1
18695 _ACEOF
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18703 $as_echo_n "checking for ccos... " >&6; }
18704 if ${gcc_cv_math_func_ccos+:} false; then :
18705 $as_echo_n "(cached) " >&6
18706 else
18707 if test x$gcc_no_link = xyes; then
18708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18713 #ifdef HAVE_COMPLEX_H
18714 #include <complex.h>
18715 #endif
18716 #ifdef HAVE_MATH_H
18717 #include <math.h>
18718 #endif
18720 int (*ptr)() = (int (*)())ccos;
18723 main ()
18725 return 0;
18728 _ACEOF
18729 if ac_fn_c_try_link "$LINENO"; then :
18730 gcc_cv_math_func_ccos=yes
18731 else
18732 gcc_cv_math_func_ccos=no
18734 rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18738 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18739 if test $gcc_cv_math_func_ccos = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE_CCOS 1
18743 _ACEOF
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18751 $as_echo_n "checking for ccosl... " >&6; }
18752 if ${gcc_cv_math_func_ccosl+:} false; then :
18753 $as_echo_n "(cached) " >&6
18754 else
18755 if test x$gcc_no_link = xyes; then
18756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18761 #ifdef HAVE_COMPLEX_H
18762 #include <complex.h>
18763 #endif
18764 #ifdef HAVE_MATH_H
18765 #include <math.h>
18766 #endif
18768 int (*ptr)() = (int (*)())ccosl;
18771 main ()
18773 return 0;
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 gcc_cv_math_func_ccosl=yes
18779 else
18780 gcc_cv_math_func_ccosl=no
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18786 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18787 if test $gcc_cv_math_func_ccosl = yes; then
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_CCOSL 1
18791 _ACEOF
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18799 $as_echo_n "checking for coshf... " >&6; }
18800 if ${gcc_cv_math_func_coshf+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 if test x$gcc_no_link = xyes; then
18804 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 #ifdef HAVE_COMPLEX_H
18810 #include <complex.h>
18811 #endif
18812 #ifdef HAVE_MATH_H
18813 #include <math.h>
18814 #endif
18816 int (*ptr)() = (int (*)())coshf;
18819 main ()
18821 return 0;
18824 _ACEOF
18825 if ac_fn_c_try_link "$LINENO"; then :
18826 gcc_cv_math_func_coshf=yes
18827 else
18828 gcc_cv_math_func_coshf=no
18830 rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18834 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18835 if test $gcc_cv_math_func_coshf = yes; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define HAVE_COSHF 1
18839 _ACEOF
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18847 $as_echo_n "checking for cosh... " >&6; }
18848 if ${gcc_cv_math_func_cosh+:} false; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851 if test x$gcc_no_link = xyes; then
18852 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18857 #ifdef HAVE_COMPLEX_H
18858 #include <complex.h>
18859 #endif
18860 #ifdef HAVE_MATH_H
18861 #include <math.h>
18862 #endif
18864 int (*ptr)() = (int (*)())cosh;
18867 main ()
18869 return 0;
18872 _ACEOF
18873 if ac_fn_c_try_link "$LINENO"; then :
18874 gcc_cv_math_func_cosh=yes
18875 else
18876 gcc_cv_math_func_cosh=no
18878 rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18882 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18883 if test $gcc_cv_math_func_cosh = yes; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define HAVE_COSH 1
18887 _ACEOF
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18895 $as_echo_n "checking for coshl... " >&6; }
18896 if ${gcc_cv_math_func_coshl+:} false; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 if test x$gcc_no_link = xyes; then
18900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 #ifdef HAVE_COMPLEX_H
18906 #include <complex.h>
18907 #endif
18908 #ifdef HAVE_MATH_H
18909 #include <math.h>
18910 #endif
18912 int (*ptr)() = (int (*)())coshl;
18915 main ()
18917 return 0;
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 gcc_cv_math_func_coshl=yes
18923 else
18924 gcc_cv_math_func_coshl=no
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18930 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18931 if test $gcc_cv_math_func_coshl = yes; then
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_COSHL 1
18935 _ACEOF
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18943 $as_echo_n "checking for ccoshf... " >&6; }
18944 if ${gcc_cv_math_func_ccoshf+:} false; then :
18945 $as_echo_n "(cached) " >&6
18946 else
18947 if test x$gcc_no_link = xyes; then
18948 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 #ifdef HAVE_COMPLEX_H
18954 #include <complex.h>
18955 #endif
18956 #ifdef HAVE_MATH_H
18957 #include <math.h>
18958 #endif
18960 int (*ptr)() = (int (*)())ccoshf;
18963 main ()
18965 return 0;
18968 _ACEOF
18969 if ac_fn_c_try_link "$LINENO"; then :
18970 gcc_cv_math_func_ccoshf=yes
18971 else
18972 gcc_cv_math_func_ccoshf=no
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18978 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18979 if test $gcc_cv_math_func_ccoshf = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_CCOSHF 1
18983 _ACEOF
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18991 $as_echo_n "checking for ccosh... " >&6; }
18992 if ${gcc_cv_math_func_ccosh+:} false; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 if test x$gcc_no_link = xyes; then
18996 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19001 #ifdef HAVE_COMPLEX_H
19002 #include <complex.h>
19003 #endif
19004 #ifdef HAVE_MATH_H
19005 #include <math.h>
19006 #endif
19008 int (*ptr)() = (int (*)())ccosh;
19011 main ()
19013 return 0;
19016 _ACEOF
19017 if ac_fn_c_try_link "$LINENO"; then :
19018 gcc_cv_math_func_ccosh=yes
19019 else
19020 gcc_cv_math_func_ccosh=no
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19026 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19027 if test $gcc_cv_math_func_ccosh = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_CCOSH 1
19031 _ACEOF
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19039 $as_echo_n "checking for ccoshl... " >&6; }
19040 if ${gcc_cv_math_func_ccoshl+:} false; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test x$gcc_no_link = xyes; then
19044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 #ifdef HAVE_COMPLEX_H
19050 #include <complex.h>
19051 #endif
19052 #ifdef HAVE_MATH_H
19053 #include <math.h>
19054 #endif
19056 int (*ptr)() = (int (*)())ccoshl;
19059 main ()
19061 return 0;
19064 _ACEOF
19065 if ac_fn_c_try_link "$LINENO"; then :
19066 gcc_cv_math_func_ccoshl=yes
19067 else
19068 gcc_cv_math_func_ccoshl=no
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19074 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19075 if test $gcc_cv_math_func_ccoshl = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_CCOSHL 1
19079 _ACEOF
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19087 $as_echo_n "checking for expf... " >&6; }
19088 if ${gcc_cv_math_func_expf+:} false; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 if test x$gcc_no_link = xyes; then
19092 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19097 #ifdef HAVE_COMPLEX_H
19098 #include <complex.h>
19099 #endif
19100 #ifdef HAVE_MATH_H
19101 #include <math.h>
19102 #endif
19104 int (*ptr)() = (int (*)())expf;
19107 main ()
19109 return 0;
19112 _ACEOF
19113 if ac_fn_c_try_link "$LINENO"; then :
19114 gcc_cv_math_func_expf=yes
19115 else
19116 gcc_cv_math_func_expf=no
19118 rm -f core conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19122 $as_echo "$gcc_cv_math_func_expf" >&6; }
19123 if test $gcc_cv_math_func_expf = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126 #define HAVE_EXPF 1
19127 _ACEOF
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19135 $as_echo_n "checking for exp... " >&6; }
19136 if ${gcc_cv_math_func_exp+:} false; then :
19137 $as_echo_n "(cached) " >&6
19138 else
19139 if test x$gcc_no_link = xyes; then
19140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19145 #ifdef HAVE_COMPLEX_H
19146 #include <complex.h>
19147 #endif
19148 #ifdef HAVE_MATH_H
19149 #include <math.h>
19150 #endif
19152 int (*ptr)() = (int (*)())exp;
19155 main ()
19157 return 0;
19160 _ACEOF
19161 if ac_fn_c_try_link "$LINENO"; then :
19162 gcc_cv_math_func_exp=yes
19163 else
19164 gcc_cv_math_func_exp=no
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19170 $as_echo "$gcc_cv_math_func_exp" >&6; }
19171 if test $gcc_cv_math_func_exp = yes; then
19173 cat >>confdefs.h <<_ACEOF
19174 #define HAVE_EXP 1
19175 _ACEOF
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19183 $as_echo_n "checking for expl... " >&6; }
19184 if ${gcc_cv_math_func_expl+:} false; then :
19185 $as_echo_n "(cached) " >&6
19186 else
19187 if test x$gcc_no_link = xyes; then
19188 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 #ifdef HAVE_COMPLEX_H
19194 #include <complex.h>
19195 #endif
19196 #ifdef HAVE_MATH_H
19197 #include <math.h>
19198 #endif
19200 int (*ptr)() = (int (*)())expl;
19203 main ()
19205 return 0;
19208 _ACEOF
19209 if ac_fn_c_try_link "$LINENO"; then :
19210 gcc_cv_math_func_expl=yes
19211 else
19212 gcc_cv_math_func_expl=no
19214 rm -f core conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19218 $as_echo "$gcc_cv_math_func_expl" >&6; }
19219 if test $gcc_cv_math_func_expl = yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_EXPL 1
19223 _ACEOF
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19231 $as_echo_n "checking for cexpf... " >&6; }
19232 if ${gcc_cv_math_func_cexpf+:} false; then :
19233 $as_echo_n "(cached) " >&6
19234 else
19235 if test x$gcc_no_link = xyes; then
19236 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19241 #ifdef HAVE_COMPLEX_H
19242 #include <complex.h>
19243 #endif
19244 #ifdef HAVE_MATH_H
19245 #include <math.h>
19246 #endif
19248 int (*ptr)() = (int (*)())cexpf;
19251 main ()
19253 return 0;
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 gcc_cv_math_func_cexpf=yes
19259 else
19260 gcc_cv_math_func_cexpf=no
19262 rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19266 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19267 if test $gcc_cv_math_func_cexpf = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define HAVE_CEXPF 1
19271 _ACEOF
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19279 $as_echo_n "checking for cexp... " >&6; }
19280 if ${gcc_cv_math_func_cexp+:} false; then :
19281 $as_echo_n "(cached) " >&6
19282 else
19283 if test x$gcc_no_link = xyes; then
19284 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19289 #ifdef HAVE_COMPLEX_H
19290 #include <complex.h>
19291 #endif
19292 #ifdef HAVE_MATH_H
19293 #include <math.h>
19294 #endif
19296 int (*ptr)() = (int (*)())cexp;
19299 main ()
19301 return 0;
19304 _ACEOF
19305 if ac_fn_c_try_link "$LINENO"; then :
19306 gcc_cv_math_func_cexp=yes
19307 else
19308 gcc_cv_math_func_cexp=no
19310 rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19314 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19315 if test $gcc_cv_math_func_cexp = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_CEXP 1
19319 _ACEOF
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19327 $as_echo_n "checking for cexpl... " >&6; }
19328 if ${gcc_cv_math_func_cexpl+:} false; then :
19329 $as_echo_n "(cached) " >&6
19330 else
19331 if test x$gcc_no_link = xyes; then
19332 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19337 #ifdef HAVE_COMPLEX_H
19338 #include <complex.h>
19339 #endif
19340 #ifdef HAVE_MATH_H
19341 #include <math.h>
19342 #endif
19344 int (*ptr)() = (int (*)())cexpl;
19347 main ()
19349 return 0;
19352 _ACEOF
19353 if ac_fn_c_try_link "$LINENO"; then :
19354 gcc_cv_math_func_cexpl=yes
19355 else
19356 gcc_cv_math_func_cexpl=no
19358 rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19362 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19363 if test $gcc_cv_math_func_cexpl = yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define HAVE_CEXPL 1
19367 _ACEOF
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19375 $as_echo_n "checking for fabsf... " >&6; }
19376 if ${gcc_cv_math_func_fabsf+:} false; then :
19377 $as_echo_n "(cached) " >&6
19378 else
19379 if test x$gcc_no_link = xyes; then
19380 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19385 #ifdef HAVE_COMPLEX_H
19386 #include <complex.h>
19387 #endif
19388 #ifdef HAVE_MATH_H
19389 #include <math.h>
19390 #endif
19392 int (*ptr)() = (int (*)())fabsf;
19395 main ()
19397 return 0;
19400 _ACEOF
19401 if ac_fn_c_try_link "$LINENO"; then :
19402 gcc_cv_math_func_fabsf=yes
19403 else
19404 gcc_cv_math_func_fabsf=no
19406 rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19410 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19411 if test $gcc_cv_math_func_fabsf = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_FABSF 1
19415 _ACEOF
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19423 $as_echo_n "checking for fabs... " >&6; }
19424 if ${gcc_cv_math_func_fabs+:} false; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19427 if test x$gcc_no_link = xyes; then
19428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19433 #ifdef HAVE_COMPLEX_H
19434 #include <complex.h>
19435 #endif
19436 #ifdef HAVE_MATH_H
19437 #include <math.h>
19438 #endif
19440 int (*ptr)() = (int (*)())fabs;
19443 main ()
19445 return 0;
19448 _ACEOF
19449 if ac_fn_c_try_link "$LINENO"; then :
19450 gcc_cv_math_func_fabs=yes
19451 else
19452 gcc_cv_math_func_fabs=no
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19458 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19459 if test $gcc_cv_math_func_fabs = yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_FABS 1
19463 _ACEOF
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19471 $as_echo_n "checking for fabsl... " >&6; }
19472 if ${gcc_cv_math_func_fabsl+:} false; then :
19473 $as_echo_n "(cached) " >&6
19474 else
19475 if test x$gcc_no_link = xyes; then
19476 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19481 #ifdef HAVE_COMPLEX_H
19482 #include <complex.h>
19483 #endif
19484 #ifdef HAVE_MATH_H
19485 #include <math.h>
19486 #endif
19488 int (*ptr)() = (int (*)())fabsl;
19491 main ()
19493 return 0;
19496 _ACEOF
19497 if ac_fn_c_try_link "$LINENO"; then :
19498 gcc_cv_math_func_fabsl=yes
19499 else
19500 gcc_cv_math_func_fabsl=no
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19506 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19507 if test $gcc_cv_math_func_fabsl = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define HAVE_FABSL 1
19511 _ACEOF
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19519 $as_echo_n "checking for cabsf... " >&6; }
19520 if ${gcc_cv_math_func_cabsf+:} false; then :
19521 $as_echo_n "(cached) " >&6
19522 else
19523 if test x$gcc_no_link = xyes; then
19524 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19529 #ifdef HAVE_COMPLEX_H
19530 #include <complex.h>
19531 #endif
19532 #ifdef HAVE_MATH_H
19533 #include <math.h>
19534 #endif
19536 int (*ptr)() = (int (*)())cabsf;
19539 main ()
19541 return 0;
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"; then :
19546 gcc_cv_math_func_cabsf=yes
19547 else
19548 gcc_cv_math_func_cabsf=no
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19554 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19555 if test $gcc_cv_math_func_cabsf = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_CABSF 1
19559 _ACEOF
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19567 $as_echo_n "checking for cabs... " >&6; }
19568 if ${gcc_cv_math_func_cabs+:} false; then :
19569 $as_echo_n "(cached) " >&6
19570 else
19571 if test x$gcc_no_link = xyes; then
19572 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19577 #ifdef HAVE_COMPLEX_H
19578 #include <complex.h>
19579 #endif
19580 #ifdef HAVE_MATH_H
19581 #include <math.h>
19582 #endif
19584 int (*ptr)() = (int (*)())cabs;
19587 main ()
19589 return 0;
19592 _ACEOF
19593 if ac_fn_c_try_link "$LINENO"; then :
19594 gcc_cv_math_func_cabs=yes
19595 else
19596 gcc_cv_math_func_cabs=no
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19602 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19603 if test $gcc_cv_math_func_cabs = yes; then
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_CABS 1
19607 _ACEOF
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19615 $as_echo_n "checking for cabsl... " >&6; }
19616 if ${gcc_cv_math_func_cabsl+:} false; then :
19617 $as_echo_n "(cached) " >&6
19618 else
19619 if test x$gcc_no_link = xyes; then
19620 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19625 #ifdef HAVE_COMPLEX_H
19626 #include <complex.h>
19627 #endif
19628 #ifdef HAVE_MATH_H
19629 #include <math.h>
19630 #endif
19632 int (*ptr)() = (int (*)())cabsl;
19635 main ()
19637 return 0;
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 gcc_cv_math_func_cabsl=yes
19643 else
19644 gcc_cv_math_func_cabsl=no
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19650 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19651 if test $gcc_cv_math_func_cabsl = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_CABSL 1
19655 _ACEOF
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19663 $as_echo_n "checking for floorf... " >&6; }
19664 if ${gcc_cv_math_func_floorf+:} false; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 if test x$gcc_no_link = xyes; then
19668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19673 #ifdef HAVE_COMPLEX_H
19674 #include <complex.h>
19675 #endif
19676 #ifdef HAVE_MATH_H
19677 #include <math.h>
19678 #endif
19680 int (*ptr)() = (int (*)())floorf;
19683 main ()
19685 return 0;
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"; then :
19690 gcc_cv_math_func_floorf=yes
19691 else
19692 gcc_cv_math_func_floorf=no
19694 rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext conftest.$ac_ext
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19698 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19699 if test $gcc_cv_math_func_floorf = yes; then
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_FLOORF 1
19703 _ACEOF
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19711 $as_echo_n "checking for floor... " >&6; }
19712 if ${gcc_cv_math_func_floor+:} false; then :
19713 $as_echo_n "(cached) " >&6
19714 else
19715 if test x$gcc_no_link = xyes; then
19716 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719 /* end confdefs.h. */
19721 #ifdef HAVE_COMPLEX_H
19722 #include <complex.h>
19723 #endif
19724 #ifdef HAVE_MATH_H
19725 #include <math.h>
19726 #endif
19728 int (*ptr)() = (int (*)())floor;
19731 main ()
19733 return 0;
19736 _ACEOF
19737 if ac_fn_c_try_link "$LINENO"; then :
19738 gcc_cv_math_func_floor=yes
19739 else
19740 gcc_cv_math_func_floor=no
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19746 $as_echo "$gcc_cv_math_func_floor" >&6; }
19747 if test $gcc_cv_math_func_floor = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_FLOOR 1
19751 _ACEOF
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19759 $as_echo_n "checking for floorl... " >&6; }
19760 if ${gcc_cv_math_func_floorl+:} false; then :
19761 $as_echo_n "(cached) " >&6
19762 else
19763 if test x$gcc_no_link = xyes; then
19764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19769 #ifdef HAVE_COMPLEX_H
19770 #include <complex.h>
19771 #endif
19772 #ifdef HAVE_MATH_H
19773 #include <math.h>
19774 #endif
19776 int (*ptr)() = (int (*)())floorl;
19779 main ()
19781 return 0;
19784 _ACEOF
19785 if ac_fn_c_try_link "$LINENO"; then :
19786 gcc_cv_math_func_floorl=yes
19787 else
19788 gcc_cv_math_func_floorl=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19794 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19795 if test $gcc_cv_math_func_floorl = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_FLOORL 1
19799 _ACEOF
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19807 $as_echo_n "checking for fmodf... " >&6; }
19808 if ${gcc_cv_math_func_fmodf+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 if test x$gcc_no_link = xyes; then
19812 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19817 #ifdef HAVE_COMPLEX_H
19818 #include <complex.h>
19819 #endif
19820 #ifdef HAVE_MATH_H
19821 #include <math.h>
19822 #endif
19824 int (*ptr)() = (int (*)())fmodf;
19827 main ()
19829 return 0;
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 gcc_cv_math_func_fmodf=yes
19835 else
19836 gcc_cv_math_func_fmodf=no
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19842 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19843 if test $gcc_cv_math_func_fmodf = yes; then
19845 cat >>confdefs.h <<_ACEOF
19846 #define HAVE_FMODF 1
19847 _ACEOF
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19855 $as_echo_n "checking for fmod... " >&6; }
19856 if ${gcc_cv_math_func_fmod+:} false; then :
19857 $as_echo_n "(cached) " >&6
19858 else
19859 if test x$gcc_no_link = xyes; then
19860 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19865 #ifdef HAVE_COMPLEX_H
19866 #include <complex.h>
19867 #endif
19868 #ifdef HAVE_MATH_H
19869 #include <math.h>
19870 #endif
19872 int (*ptr)() = (int (*)())fmod;
19875 main ()
19877 return 0;
19880 _ACEOF
19881 if ac_fn_c_try_link "$LINENO"; then :
19882 gcc_cv_math_func_fmod=yes
19883 else
19884 gcc_cv_math_func_fmod=no
19886 rm -f core conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19890 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19891 if test $gcc_cv_math_func_fmod = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define HAVE_FMOD 1
19895 _ACEOF
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19903 $as_echo_n "checking for fmodl... " >&6; }
19904 if ${gcc_cv_math_func_fmodl+:} false; then :
19905 $as_echo_n "(cached) " >&6
19906 else
19907 if test x$gcc_no_link = xyes; then
19908 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19913 #ifdef HAVE_COMPLEX_H
19914 #include <complex.h>
19915 #endif
19916 #ifdef HAVE_MATH_H
19917 #include <math.h>
19918 #endif
19920 int (*ptr)() = (int (*)())fmodl;
19923 main ()
19925 return 0;
19928 _ACEOF
19929 if ac_fn_c_try_link "$LINENO"; then :
19930 gcc_cv_math_func_fmodl=yes
19931 else
19932 gcc_cv_math_func_fmodl=no
19934 rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19938 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19939 if test $gcc_cv_math_func_fmodl = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_FMODL 1
19943 _ACEOF
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19951 $as_echo_n "checking for frexpf... " >&6; }
19952 if ${gcc_cv_math_func_frexpf+:} false; then :
19953 $as_echo_n "(cached) " >&6
19954 else
19955 if test x$gcc_no_link = xyes; then
19956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959 /* end confdefs.h. */
19961 #ifdef HAVE_COMPLEX_H
19962 #include <complex.h>
19963 #endif
19964 #ifdef HAVE_MATH_H
19965 #include <math.h>
19966 #endif
19968 int (*ptr)() = (int (*)())frexpf;
19971 main ()
19973 return 0;
19976 _ACEOF
19977 if ac_fn_c_try_link "$LINENO"; then :
19978 gcc_cv_math_func_frexpf=yes
19979 else
19980 gcc_cv_math_func_frexpf=no
19982 rm -f core conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19986 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19987 if test $gcc_cv_math_func_frexpf = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define HAVE_FREXPF 1
19991 _ACEOF
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19999 $as_echo_n "checking for frexp... " >&6; }
20000 if ${gcc_cv_math_func_frexp+:} false; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 if test x$gcc_no_link = xyes; then
20004 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20009 #ifdef HAVE_COMPLEX_H
20010 #include <complex.h>
20011 #endif
20012 #ifdef HAVE_MATH_H
20013 #include <math.h>
20014 #endif
20016 int (*ptr)() = (int (*)())frexp;
20019 main ()
20021 return 0;
20024 _ACEOF
20025 if ac_fn_c_try_link "$LINENO"; then :
20026 gcc_cv_math_func_frexp=yes
20027 else
20028 gcc_cv_math_func_frexp=no
20030 rm -f core conftest.err conftest.$ac_objext \
20031 conftest$ac_exeext conftest.$ac_ext
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20034 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20035 if test $gcc_cv_math_func_frexp = yes; then
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_FREXP 1
20039 _ACEOF
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20047 $as_echo_n "checking for frexpl... " >&6; }
20048 if ${gcc_cv_math_func_frexpl+:} false; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051 if test x$gcc_no_link = xyes; then
20052 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20057 #ifdef HAVE_COMPLEX_H
20058 #include <complex.h>
20059 #endif
20060 #ifdef HAVE_MATH_H
20061 #include <math.h>
20062 #endif
20064 int (*ptr)() = (int (*)())frexpl;
20067 main ()
20069 return 0;
20072 _ACEOF
20073 if ac_fn_c_try_link "$LINENO"; then :
20074 gcc_cv_math_func_frexpl=yes
20075 else
20076 gcc_cv_math_func_frexpl=no
20078 rm -f core conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext conftest.$ac_ext
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20082 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20083 if test $gcc_cv_math_func_frexpl = yes; then
20085 cat >>confdefs.h <<_ACEOF
20086 #define HAVE_FREXPL 1
20087 _ACEOF
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20095 $as_echo_n "checking for hypotf... " >&6; }
20096 if ${gcc_cv_math_func_hypotf+:} false; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20099 if test x$gcc_no_link = xyes; then
20100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20105 #ifdef HAVE_COMPLEX_H
20106 #include <complex.h>
20107 #endif
20108 #ifdef HAVE_MATH_H
20109 #include <math.h>
20110 #endif
20112 int (*ptr)() = (int (*)())hypotf;
20115 main ()
20117 return 0;
20120 _ACEOF
20121 if ac_fn_c_try_link "$LINENO"; then :
20122 gcc_cv_math_func_hypotf=yes
20123 else
20124 gcc_cv_math_func_hypotf=no
20126 rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext conftest.$ac_ext
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20130 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20131 if test $gcc_cv_math_func_hypotf = yes; then
20133 cat >>confdefs.h <<_ACEOF
20134 #define HAVE_HYPOTF 1
20135 _ACEOF
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20143 $as_echo_n "checking for hypot... " >&6; }
20144 if ${gcc_cv_math_func_hypot+:} false; then :
20145 $as_echo_n "(cached) " >&6
20146 else
20147 if test x$gcc_no_link = xyes; then
20148 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151 /* end confdefs.h. */
20153 #ifdef HAVE_COMPLEX_H
20154 #include <complex.h>
20155 #endif
20156 #ifdef HAVE_MATH_H
20157 #include <math.h>
20158 #endif
20160 int (*ptr)() = (int (*)())hypot;
20163 main ()
20165 return 0;
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 gcc_cv_math_func_hypot=yes
20171 else
20172 gcc_cv_math_func_hypot=no
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20178 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20179 if test $gcc_cv_math_func_hypot = yes; then
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_HYPOT 1
20183 _ACEOF
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20191 $as_echo_n "checking for hypotl... " >&6; }
20192 if ${gcc_cv_math_func_hypotl+:} false; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 if test x$gcc_no_link = xyes; then
20196 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199 /* end confdefs.h. */
20201 #ifdef HAVE_COMPLEX_H
20202 #include <complex.h>
20203 #endif
20204 #ifdef HAVE_MATH_H
20205 #include <math.h>
20206 #endif
20208 int (*ptr)() = (int (*)())hypotl;
20211 main ()
20213 return 0;
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"; then :
20218 gcc_cv_math_func_hypotl=yes
20219 else
20220 gcc_cv_math_func_hypotl=no
20222 rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20226 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20227 if test $gcc_cv_math_func_hypotl = yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define HAVE_HYPOTL 1
20231 _ACEOF
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20239 $as_echo_n "checking for ldexpf... " >&6; }
20240 if ${gcc_cv_math_func_ldexpf+:} false; then :
20241 $as_echo_n "(cached) " >&6
20242 else
20243 if test x$gcc_no_link = xyes; then
20244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 #ifdef HAVE_COMPLEX_H
20250 #include <complex.h>
20251 #endif
20252 #ifdef HAVE_MATH_H
20253 #include <math.h>
20254 #endif
20256 int (*ptr)() = (int (*)())ldexpf;
20259 main ()
20261 return 0;
20264 _ACEOF
20265 if ac_fn_c_try_link "$LINENO"; then :
20266 gcc_cv_math_func_ldexpf=yes
20267 else
20268 gcc_cv_math_func_ldexpf=no
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20274 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20275 if test $gcc_cv_math_func_ldexpf = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LDEXPF 1
20279 _ACEOF
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20287 $as_echo_n "checking for ldexp... " >&6; }
20288 if ${gcc_cv_math_func_ldexp+:} false; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20291 if test x$gcc_no_link = xyes; then
20292 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20297 #ifdef HAVE_COMPLEX_H
20298 #include <complex.h>
20299 #endif
20300 #ifdef HAVE_MATH_H
20301 #include <math.h>
20302 #endif
20304 int (*ptr)() = (int (*)())ldexp;
20307 main ()
20309 return 0;
20312 _ACEOF
20313 if ac_fn_c_try_link "$LINENO"; then :
20314 gcc_cv_math_func_ldexp=yes
20315 else
20316 gcc_cv_math_func_ldexp=no
20318 rm -f core conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext conftest.$ac_ext
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20322 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20323 if test $gcc_cv_math_func_ldexp = yes; then
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_LDEXP 1
20327 _ACEOF
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20335 $as_echo_n "checking for ldexpl... " >&6; }
20336 if ${gcc_cv_math_func_ldexpl+:} false; then :
20337 $as_echo_n "(cached) " >&6
20338 else
20339 if test x$gcc_no_link = xyes; then
20340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20345 #ifdef HAVE_COMPLEX_H
20346 #include <complex.h>
20347 #endif
20348 #ifdef HAVE_MATH_H
20349 #include <math.h>
20350 #endif
20352 int (*ptr)() = (int (*)())ldexpl;
20355 main ()
20357 return 0;
20360 _ACEOF
20361 if ac_fn_c_try_link "$LINENO"; then :
20362 gcc_cv_math_func_ldexpl=yes
20363 else
20364 gcc_cv_math_func_ldexpl=no
20366 rm -f core conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20370 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20371 if test $gcc_cv_math_func_ldexpl = yes; then
20373 cat >>confdefs.h <<_ACEOF
20374 #define HAVE_LDEXPL 1
20375 _ACEOF
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20383 $as_echo_n "checking for logf... " >&6; }
20384 if ${gcc_cv_math_func_logf+:} false; then :
20385 $as_echo_n "(cached) " >&6
20386 else
20387 if test x$gcc_no_link = xyes; then
20388 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20393 #ifdef HAVE_COMPLEX_H
20394 #include <complex.h>
20395 #endif
20396 #ifdef HAVE_MATH_H
20397 #include <math.h>
20398 #endif
20400 int (*ptr)() = (int (*)())logf;
20403 main ()
20405 return 0;
20408 _ACEOF
20409 if ac_fn_c_try_link "$LINENO"; then :
20410 gcc_cv_math_func_logf=yes
20411 else
20412 gcc_cv_math_func_logf=no
20414 rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20418 $as_echo "$gcc_cv_math_func_logf" >&6; }
20419 if test $gcc_cv_math_func_logf = yes; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_LOGF 1
20423 _ACEOF
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20431 $as_echo_n "checking for log... " >&6; }
20432 if ${gcc_cv_math_func_log+:} false; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20435 if test x$gcc_no_link = xyes; then
20436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439 /* end confdefs.h. */
20441 #ifdef HAVE_COMPLEX_H
20442 #include <complex.h>
20443 #endif
20444 #ifdef HAVE_MATH_H
20445 #include <math.h>
20446 #endif
20448 int (*ptr)() = (int (*)())log;
20451 main ()
20453 return 0;
20456 _ACEOF
20457 if ac_fn_c_try_link "$LINENO"; then :
20458 gcc_cv_math_func_log=yes
20459 else
20460 gcc_cv_math_func_log=no
20462 rm -f core conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20466 $as_echo "$gcc_cv_math_func_log" >&6; }
20467 if test $gcc_cv_math_func_log = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_LOG 1
20471 _ACEOF
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20479 $as_echo_n "checking for logl... " >&6; }
20480 if ${gcc_cv_math_func_logl+:} false; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 if test x$gcc_no_link = xyes; then
20484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20489 #ifdef HAVE_COMPLEX_H
20490 #include <complex.h>
20491 #endif
20492 #ifdef HAVE_MATH_H
20493 #include <math.h>
20494 #endif
20496 int (*ptr)() = (int (*)())logl;
20499 main ()
20501 return 0;
20504 _ACEOF
20505 if ac_fn_c_try_link "$LINENO"; then :
20506 gcc_cv_math_func_logl=yes
20507 else
20508 gcc_cv_math_func_logl=no
20510 rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20514 $as_echo "$gcc_cv_math_func_logl" >&6; }
20515 if test $gcc_cv_math_func_logl = yes; then
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_LOGL 1
20519 _ACEOF
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20527 $as_echo_n "checking for clogf... " >&6; }
20528 if ${gcc_cv_math_func_clogf+:} false; then :
20529 $as_echo_n "(cached) " >&6
20530 else
20531 if test x$gcc_no_link = xyes; then
20532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20535 /* end confdefs.h. */
20537 #ifdef HAVE_COMPLEX_H
20538 #include <complex.h>
20539 #endif
20540 #ifdef HAVE_MATH_H
20541 #include <math.h>
20542 #endif
20544 int (*ptr)() = (int (*)())clogf;
20547 main ()
20549 return 0;
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554 gcc_cv_math_func_clogf=yes
20555 else
20556 gcc_cv_math_func_clogf=no
20558 rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20562 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20563 if test $gcc_cv_math_func_clogf = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_CLOGF 1
20567 _ACEOF
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20575 $as_echo_n "checking for clog... " >&6; }
20576 if ${gcc_cv_math_func_clog+:} false; then :
20577 $as_echo_n "(cached) " >&6
20578 else
20579 if test x$gcc_no_link = xyes; then
20580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20585 #ifdef HAVE_COMPLEX_H
20586 #include <complex.h>
20587 #endif
20588 #ifdef HAVE_MATH_H
20589 #include <math.h>
20590 #endif
20592 int (*ptr)() = (int (*)())clog;
20595 main ()
20597 return 0;
20600 _ACEOF
20601 if ac_fn_c_try_link "$LINENO"; then :
20602 gcc_cv_math_func_clog=yes
20603 else
20604 gcc_cv_math_func_clog=no
20606 rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20610 $as_echo "$gcc_cv_math_func_clog" >&6; }
20611 if test $gcc_cv_math_func_clog = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_CLOG 1
20615 _ACEOF
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20623 $as_echo_n "checking for clogl... " >&6; }
20624 if ${gcc_cv_math_func_clogl+:} false; then :
20625 $as_echo_n "(cached) " >&6
20626 else
20627 if test x$gcc_no_link = xyes; then
20628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20633 #ifdef HAVE_COMPLEX_H
20634 #include <complex.h>
20635 #endif
20636 #ifdef HAVE_MATH_H
20637 #include <math.h>
20638 #endif
20640 int (*ptr)() = (int (*)())clogl;
20643 main ()
20645 return 0;
20648 _ACEOF
20649 if ac_fn_c_try_link "$LINENO"; then :
20650 gcc_cv_math_func_clogl=yes
20651 else
20652 gcc_cv_math_func_clogl=no
20654 rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20658 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20659 if test $gcc_cv_math_func_clogl = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662 #define HAVE_CLOGL 1
20663 _ACEOF
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20671 $as_echo_n "checking for log10f... " >&6; }
20672 if ${gcc_cv_math_func_log10f+:} false; then :
20673 $as_echo_n "(cached) " >&6
20674 else
20675 if test x$gcc_no_link = xyes; then
20676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20681 #ifdef HAVE_COMPLEX_H
20682 #include <complex.h>
20683 #endif
20684 #ifdef HAVE_MATH_H
20685 #include <math.h>
20686 #endif
20688 int (*ptr)() = (int (*)())log10f;
20691 main ()
20693 return 0;
20696 _ACEOF
20697 if ac_fn_c_try_link "$LINENO"; then :
20698 gcc_cv_math_func_log10f=yes
20699 else
20700 gcc_cv_math_func_log10f=no
20702 rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20706 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20707 if test $gcc_cv_math_func_log10f = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_LOG10F 1
20711 _ACEOF
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20719 $as_echo_n "checking for log10... " >&6; }
20720 if ${gcc_cv_math_func_log10+:} false; then :
20721 $as_echo_n "(cached) " >&6
20722 else
20723 if test x$gcc_no_link = xyes; then
20724 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20729 #ifdef HAVE_COMPLEX_H
20730 #include <complex.h>
20731 #endif
20732 #ifdef HAVE_MATH_H
20733 #include <math.h>
20734 #endif
20736 int (*ptr)() = (int (*)())log10;
20739 main ()
20741 return 0;
20744 _ACEOF
20745 if ac_fn_c_try_link "$LINENO"; then :
20746 gcc_cv_math_func_log10=yes
20747 else
20748 gcc_cv_math_func_log10=no
20750 rm -f core conftest.err conftest.$ac_objext \
20751 conftest$ac_exeext conftest.$ac_ext
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20754 $as_echo "$gcc_cv_math_func_log10" >&6; }
20755 if test $gcc_cv_math_func_log10 = yes; then
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_LOG10 1
20759 _ACEOF
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20767 $as_echo_n "checking for log10l... " >&6; }
20768 if ${gcc_cv_math_func_log10l+:} false; then :
20769 $as_echo_n "(cached) " >&6
20770 else
20771 if test x$gcc_no_link = xyes; then
20772 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20777 #ifdef HAVE_COMPLEX_H
20778 #include <complex.h>
20779 #endif
20780 #ifdef HAVE_MATH_H
20781 #include <math.h>
20782 #endif
20784 int (*ptr)() = (int (*)())log10l;
20787 main ()
20789 return 0;
20792 _ACEOF
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 gcc_cv_math_func_log10l=yes
20795 else
20796 gcc_cv_math_func_log10l=no
20798 rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20802 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20803 if test $gcc_cv_math_func_log10l = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_LOG10L 1
20807 _ACEOF
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20815 $as_echo_n "checking for clog10f... " >&6; }
20816 if ${gcc_cv_math_func_clog10f+:} false; then :
20817 $as_echo_n "(cached) " >&6
20818 else
20819 if test x$gcc_no_link = xyes; then
20820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20825 #ifdef HAVE_COMPLEX_H
20826 #include <complex.h>
20827 #endif
20828 #ifdef HAVE_MATH_H
20829 #include <math.h>
20830 #endif
20832 int (*ptr)() = (int (*)())clog10f;
20835 main ()
20837 return 0;
20840 _ACEOF
20841 if ac_fn_c_try_link "$LINENO"; then :
20842 gcc_cv_math_func_clog10f=yes
20843 else
20844 gcc_cv_math_func_clog10f=no
20846 rm -f core conftest.err conftest.$ac_objext \
20847 conftest$ac_exeext conftest.$ac_ext
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20850 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20851 if test $gcc_cv_math_func_clog10f = yes; then
20853 cat >>confdefs.h <<_ACEOF
20854 #define HAVE_CLOG10F 1
20855 _ACEOF
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20863 $as_echo_n "checking for clog10... " >&6; }
20864 if ${gcc_cv_math_func_clog10+:} false; then :
20865 $as_echo_n "(cached) " >&6
20866 else
20867 if test x$gcc_no_link = xyes; then
20868 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20873 #ifdef HAVE_COMPLEX_H
20874 #include <complex.h>
20875 #endif
20876 #ifdef HAVE_MATH_H
20877 #include <math.h>
20878 #endif
20880 int (*ptr)() = (int (*)())clog10;
20883 main ()
20885 return 0;
20888 _ACEOF
20889 if ac_fn_c_try_link "$LINENO"; then :
20890 gcc_cv_math_func_clog10=yes
20891 else
20892 gcc_cv_math_func_clog10=no
20894 rm -f core conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20898 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20899 if test $gcc_cv_math_func_clog10 = yes; then
20901 cat >>confdefs.h <<_ACEOF
20902 #define HAVE_CLOG10 1
20903 _ACEOF
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20911 $as_echo_n "checking for clog10l... " >&6; }
20912 if ${gcc_cv_math_func_clog10l+:} false; then :
20913 $as_echo_n "(cached) " >&6
20914 else
20915 if test x$gcc_no_link = xyes; then
20916 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20921 #ifdef HAVE_COMPLEX_H
20922 #include <complex.h>
20923 #endif
20924 #ifdef HAVE_MATH_H
20925 #include <math.h>
20926 #endif
20928 int (*ptr)() = (int (*)())clog10l;
20931 main ()
20933 return 0;
20936 _ACEOF
20937 if ac_fn_c_try_link "$LINENO"; then :
20938 gcc_cv_math_func_clog10l=yes
20939 else
20940 gcc_cv_math_func_clog10l=no
20942 rm -f core conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20946 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20947 if test $gcc_cv_math_func_clog10l = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_CLOG10L 1
20951 _ACEOF
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20959 $as_echo_n "checking for nextafterf... " >&6; }
20960 if ${gcc_cv_math_func_nextafterf+:} false; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20963 if test x$gcc_no_link = xyes; then
20964 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20969 #ifdef HAVE_COMPLEX_H
20970 #include <complex.h>
20971 #endif
20972 #ifdef HAVE_MATH_H
20973 #include <math.h>
20974 #endif
20976 int (*ptr)() = (int (*)())nextafterf;
20979 main ()
20981 return 0;
20984 _ACEOF
20985 if ac_fn_c_try_link "$LINENO"; then :
20986 gcc_cv_math_func_nextafterf=yes
20987 else
20988 gcc_cv_math_func_nextafterf=no
20990 rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20994 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20995 if test $gcc_cv_math_func_nextafterf = yes; then
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_NEXTAFTERF 1
20999 _ACEOF
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21007 $as_echo_n "checking for nextafter... " >&6; }
21008 if ${gcc_cv_math_func_nextafter+:} false; then :
21009 $as_echo_n "(cached) " >&6
21010 else
21011 if test x$gcc_no_link = xyes; then
21012 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h. */
21017 #ifdef HAVE_COMPLEX_H
21018 #include <complex.h>
21019 #endif
21020 #ifdef HAVE_MATH_H
21021 #include <math.h>
21022 #endif
21024 int (*ptr)() = (int (*)())nextafter;
21027 main ()
21029 return 0;
21032 _ACEOF
21033 if ac_fn_c_try_link "$LINENO"; then :
21034 gcc_cv_math_func_nextafter=yes
21035 else
21036 gcc_cv_math_func_nextafter=no
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21042 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21043 if test $gcc_cv_math_func_nextafter = yes; then
21045 cat >>confdefs.h <<_ACEOF
21046 #define HAVE_NEXTAFTER 1
21047 _ACEOF
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21055 $as_echo_n "checking for nextafterl... " >&6; }
21056 if ${gcc_cv_math_func_nextafterl+:} false; then :
21057 $as_echo_n "(cached) " >&6
21058 else
21059 if test x$gcc_no_link = xyes; then
21060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21065 #ifdef HAVE_COMPLEX_H
21066 #include <complex.h>
21067 #endif
21068 #ifdef HAVE_MATH_H
21069 #include <math.h>
21070 #endif
21072 int (*ptr)() = (int (*)())nextafterl;
21075 main ()
21077 return 0;
21080 _ACEOF
21081 if ac_fn_c_try_link "$LINENO"; then :
21082 gcc_cv_math_func_nextafterl=yes
21083 else
21084 gcc_cv_math_func_nextafterl=no
21086 rm -f core conftest.err conftest.$ac_objext \
21087 conftest$ac_exeext conftest.$ac_ext
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21090 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21091 if test $gcc_cv_math_func_nextafterl = yes; then
21093 cat >>confdefs.h <<_ACEOF
21094 #define HAVE_NEXTAFTERL 1
21095 _ACEOF
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21103 $as_echo_n "checking for powf... " >&6; }
21104 if ${gcc_cv_math_func_powf+:} false; then :
21105 $as_echo_n "(cached) " >&6
21106 else
21107 if test x$gcc_no_link = xyes; then
21108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 #ifdef HAVE_COMPLEX_H
21114 #include <complex.h>
21115 #endif
21116 #ifdef HAVE_MATH_H
21117 #include <math.h>
21118 #endif
21120 int (*ptr)() = (int (*)())powf;
21123 main ()
21125 return 0;
21128 _ACEOF
21129 if ac_fn_c_try_link "$LINENO"; then :
21130 gcc_cv_math_func_powf=yes
21131 else
21132 gcc_cv_math_func_powf=no
21134 rm -f core conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21138 $as_echo "$gcc_cv_math_func_powf" >&6; }
21139 if test $gcc_cv_math_func_powf = yes; then
21141 cat >>confdefs.h <<_ACEOF
21142 #define HAVE_POWF 1
21143 _ACEOF
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21151 $as_echo_n "checking for pow... " >&6; }
21152 if ${gcc_cv_math_func_pow+:} false; then :
21153 $as_echo_n "(cached) " >&6
21154 else
21155 if test x$gcc_no_link = xyes; then
21156 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21161 #ifdef HAVE_COMPLEX_H
21162 #include <complex.h>
21163 #endif
21164 #ifdef HAVE_MATH_H
21165 #include <math.h>
21166 #endif
21168 int (*ptr)() = (int (*)())pow;
21171 main ()
21173 return 0;
21176 _ACEOF
21177 if ac_fn_c_try_link "$LINENO"; then :
21178 gcc_cv_math_func_pow=yes
21179 else
21180 gcc_cv_math_func_pow=no
21182 rm -f core conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21186 $as_echo "$gcc_cv_math_func_pow" >&6; }
21187 if test $gcc_cv_math_func_pow = yes; then
21189 cat >>confdefs.h <<_ACEOF
21190 #define HAVE_POW 1
21191 _ACEOF
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21199 $as_echo_n "checking for cpowf... " >&6; }
21200 if ${gcc_cv_math_func_cpowf+:} false; then :
21201 $as_echo_n "(cached) " >&6
21202 else
21203 if test x$gcc_no_link = xyes; then
21204 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21207 /* end confdefs.h. */
21209 #ifdef HAVE_COMPLEX_H
21210 #include <complex.h>
21211 #endif
21212 #ifdef HAVE_MATH_H
21213 #include <math.h>
21214 #endif
21216 int (*ptr)() = (int (*)())cpowf;
21219 main ()
21221 return 0;
21224 _ACEOF
21225 if ac_fn_c_try_link "$LINENO"; then :
21226 gcc_cv_math_func_cpowf=yes
21227 else
21228 gcc_cv_math_func_cpowf=no
21230 rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21234 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21235 if test $gcc_cv_math_func_cpowf = yes; then
21237 cat >>confdefs.h <<_ACEOF
21238 #define HAVE_CPOWF 1
21239 _ACEOF
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21247 $as_echo_n "checking for cpow... " >&6; }
21248 if ${gcc_cv_math_func_cpow+:} false; then :
21249 $as_echo_n "(cached) " >&6
21250 else
21251 if test x$gcc_no_link = xyes; then
21252 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21257 #ifdef HAVE_COMPLEX_H
21258 #include <complex.h>
21259 #endif
21260 #ifdef HAVE_MATH_H
21261 #include <math.h>
21262 #endif
21264 int (*ptr)() = (int (*)())cpow;
21267 main ()
21269 return 0;
21272 _ACEOF
21273 if ac_fn_c_try_link "$LINENO"; then :
21274 gcc_cv_math_func_cpow=yes
21275 else
21276 gcc_cv_math_func_cpow=no
21278 rm -f core conftest.err conftest.$ac_objext \
21279 conftest$ac_exeext conftest.$ac_ext
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21282 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21283 if test $gcc_cv_math_func_cpow = yes; then
21285 cat >>confdefs.h <<_ACEOF
21286 #define HAVE_CPOW 1
21287 _ACEOF
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21295 $as_echo_n "checking for cpowl... " >&6; }
21296 if ${gcc_cv_math_func_cpowl+:} false; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 if test x$gcc_no_link = xyes; then
21300 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21305 #ifdef HAVE_COMPLEX_H
21306 #include <complex.h>
21307 #endif
21308 #ifdef HAVE_MATH_H
21309 #include <math.h>
21310 #endif
21312 int (*ptr)() = (int (*)())cpowl;
21315 main ()
21317 return 0;
21320 _ACEOF
21321 if ac_fn_c_try_link "$LINENO"; then :
21322 gcc_cv_math_func_cpowl=yes
21323 else
21324 gcc_cv_math_func_cpowl=no
21326 rm -f core conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21330 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21331 if test $gcc_cv_math_func_cpowl = yes; then
21333 cat >>confdefs.h <<_ACEOF
21334 #define HAVE_CPOWL 1
21335 _ACEOF
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21343 $as_echo_n "checking for roundf... " >&6; }
21344 if ${gcc_cv_math_func_roundf+:} false; then :
21345 $as_echo_n "(cached) " >&6
21346 else
21347 if test x$gcc_no_link = xyes; then
21348 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21353 #ifdef HAVE_COMPLEX_H
21354 #include <complex.h>
21355 #endif
21356 #ifdef HAVE_MATH_H
21357 #include <math.h>
21358 #endif
21360 int (*ptr)() = (int (*)())roundf;
21363 main ()
21365 return 0;
21368 _ACEOF
21369 if ac_fn_c_try_link "$LINENO"; then :
21370 gcc_cv_math_func_roundf=yes
21371 else
21372 gcc_cv_math_func_roundf=no
21374 rm -f core conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21378 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21379 if test $gcc_cv_math_func_roundf = yes; then
21381 cat >>confdefs.h <<_ACEOF
21382 #define HAVE_ROUNDF 1
21383 _ACEOF
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21391 $as_echo_n "checking for round... " >&6; }
21392 if ${gcc_cv_math_func_round+:} false; then :
21393 $as_echo_n "(cached) " >&6
21394 else
21395 if test x$gcc_no_link = xyes; then
21396 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21401 #ifdef HAVE_COMPLEX_H
21402 #include <complex.h>
21403 #endif
21404 #ifdef HAVE_MATH_H
21405 #include <math.h>
21406 #endif
21408 int (*ptr)() = (int (*)())round;
21411 main ()
21413 return 0;
21416 _ACEOF
21417 if ac_fn_c_try_link "$LINENO"; then :
21418 gcc_cv_math_func_round=yes
21419 else
21420 gcc_cv_math_func_round=no
21422 rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21426 $as_echo "$gcc_cv_math_func_round" >&6; }
21427 if test $gcc_cv_math_func_round = yes; then
21429 cat >>confdefs.h <<_ACEOF
21430 #define HAVE_ROUND 1
21431 _ACEOF
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21439 $as_echo_n "checking for roundl... " >&6; }
21440 if ${gcc_cv_math_func_roundl+:} false; then :
21441 $as_echo_n "(cached) " >&6
21442 else
21443 if test x$gcc_no_link = xyes; then
21444 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21449 #ifdef HAVE_COMPLEX_H
21450 #include <complex.h>
21451 #endif
21452 #ifdef HAVE_MATH_H
21453 #include <math.h>
21454 #endif
21456 int (*ptr)() = (int (*)())roundl;
21459 main ()
21461 return 0;
21464 _ACEOF
21465 if ac_fn_c_try_link "$LINENO"; then :
21466 gcc_cv_math_func_roundl=yes
21467 else
21468 gcc_cv_math_func_roundl=no
21470 rm -f core conftest.err conftest.$ac_objext \
21471 conftest$ac_exeext conftest.$ac_ext
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21474 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21475 if test $gcc_cv_math_func_roundl = yes; then
21477 cat >>confdefs.h <<_ACEOF
21478 #define HAVE_ROUNDL 1
21479 _ACEOF
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21487 $as_echo_n "checking for lroundf... " >&6; }
21488 if ${gcc_cv_math_func_lroundf+:} false; then :
21489 $as_echo_n "(cached) " >&6
21490 else
21491 if test x$gcc_no_link = xyes; then
21492 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h. */
21497 #ifdef HAVE_COMPLEX_H
21498 #include <complex.h>
21499 #endif
21500 #ifdef HAVE_MATH_H
21501 #include <math.h>
21502 #endif
21504 int (*ptr)() = (int (*)())lroundf;
21507 main ()
21509 return 0;
21512 _ACEOF
21513 if ac_fn_c_try_link "$LINENO"; then :
21514 gcc_cv_math_func_lroundf=yes
21515 else
21516 gcc_cv_math_func_lroundf=no
21518 rm -f core conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21522 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21523 if test $gcc_cv_math_func_lroundf = yes; then
21525 cat >>confdefs.h <<_ACEOF
21526 #define HAVE_LROUNDF 1
21527 _ACEOF
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21535 $as_echo_n "checking for lround... " >&6; }
21536 if ${gcc_cv_math_func_lround+:} false; then :
21537 $as_echo_n "(cached) " >&6
21538 else
21539 if test x$gcc_no_link = xyes; then
21540 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21545 #ifdef HAVE_COMPLEX_H
21546 #include <complex.h>
21547 #endif
21548 #ifdef HAVE_MATH_H
21549 #include <math.h>
21550 #endif
21552 int (*ptr)() = (int (*)())lround;
21555 main ()
21557 return 0;
21560 _ACEOF
21561 if ac_fn_c_try_link "$LINENO"; then :
21562 gcc_cv_math_func_lround=yes
21563 else
21564 gcc_cv_math_func_lround=no
21566 rm -f core conftest.err conftest.$ac_objext \
21567 conftest$ac_exeext conftest.$ac_ext
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21570 $as_echo "$gcc_cv_math_func_lround" >&6; }
21571 if test $gcc_cv_math_func_lround = yes; then
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_LROUND 1
21575 _ACEOF
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21583 $as_echo_n "checking for lroundl... " >&6; }
21584 if ${gcc_cv_math_func_lroundl+:} false; then :
21585 $as_echo_n "(cached) " >&6
21586 else
21587 if test x$gcc_no_link = xyes; then
21588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21593 #ifdef HAVE_COMPLEX_H
21594 #include <complex.h>
21595 #endif
21596 #ifdef HAVE_MATH_H
21597 #include <math.h>
21598 #endif
21600 int (*ptr)() = (int (*)())lroundl;
21603 main ()
21605 return 0;
21608 _ACEOF
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 gcc_cv_math_func_lroundl=yes
21611 else
21612 gcc_cv_math_func_lroundl=no
21614 rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21618 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21619 if test $gcc_cv_math_func_lroundl = yes; then
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_LROUNDL 1
21623 _ACEOF
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21631 $as_echo_n "checking for llroundf... " >&6; }
21632 if ${gcc_cv_math_func_llroundf+:} false; then :
21633 $as_echo_n "(cached) " >&6
21634 else
21635 if test x$gcc_no_link = xyes; then
21636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h. */
21641 #ifdef HAVE_COMPLEX_H
21642 #include <complex.h>
21643 #endif
21644 #ifdef HAVE_MATH_H
21645 #include <math.h>
21646 #endif
21648 int (*ptr)() = (int (*)())llroundf;
21651 main ()
21653 return 0;
21656 _ACEOF
21657 if ac_fn_c_try_link "$LINENO"; then :
21658 gcc_cv_math_func_llroundf=yes
21659 else
21660 gcc_cv_math_func_llroundf=no
21662 rm -f core conftest.err conftest.$ac_objext \
21663 conftest$ac_exeext conftest.$ac_ext
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21666 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21667 if test $gcc_cv_math_func_llroundf = yes; then
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_LLROUNDF 1
21671 _ACEOF
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21679 $as_echo_n "checking for llround... " >&6; }
21680 if ${gcc_cv_math_func_llround+:} false; then :
21681 $as_echo_n "(cached) " >&6
21682 else
21683 if test x$gcc_no_link = xyes; then
21684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21689 #ifdef HAVE_COMPLEX_H
21690 #include <complex.h>
21691 #endif
21692 #ifdef HAVE_MATH_H
21693 #include <math.h>
21694 #endif
21696 int (*ptr)() = (int (*)())llround;
21699 main ()
21701 return 0;
21704 _ACEOF
21705 if ac_fn_c_try_link "$LINENO"; then :
21706 gcc_cv_math_func_llround=yes
21707 else
21708 gcc_cv_math_func_llround=no
21710 rm -f core conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21714 $as_echo "$gcc_cv_math_func_llround" >&6; }
21715 if test $gcc_cv_math_func_llround = yes; then
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_LLROUND 1
21719 _ACEOF
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21727 $as_echo_n "checking for llroundl... " >&6; }
21728 if ${gcc_cv_math_func_llroundl+:} false; then :
21729 $as_echo_n "(cached) " >&6
21730 else
21731 if test x$gcc_no_link = xyes; then
21732 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21735 /* end confdefs.h. */
21737 #ifdef HAVE_COMPLEX_H
21738 #include <complex.h>
21739 #endif
21740 #ifdef HAVE_MATH_H
21741 #include <math.h>
21742 #endif
21744 int (*ptr)() = (int (*)())llroundl;
21747 main ()
21749 return 0;
21752 _ACEOF
21753 if ac_fn_c_try_link "$LINENO"; then :
21754 gcc_cv_math_func_llroundl=yes
21755 else
21756 gcc_cv_math_func_llroundl=no
21758 rm -f core conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext conftest.$ac_ext
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21762 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21763 if test $gcc_cv_math_func_llroundl = yes; then
21765 cat >>confdefs.h <<_ACEOF
21766 #define HAVE_LLROUNDL 1
21767 _ACEOF
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21775 $as_echo_n "checking for scalbnf... " >&6; }
21776 if ${gcc_cv_math_func_scalbnf+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778 else
21779 if test x$gcc_no_link = xyes; then
21780 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21785 #ifdef HAVE_COMPLEX_H
21786 #include <complex.h>
21787 #endif
21788 #ifdef HAVE_MATH_H
21789 #include <math.h>
21790 #endif
21792 int (*ptr)() = (int (*)())scalbnf;
21795 main ()
21797 return 0;
21800 _ACEOF
21801 if ac_fn_c_try_link "$LINENO"; then :
21802 gcc_cv_math_func_scalbnf=yes
21803 else
21804 gcc_cv_math_func_scalbnf=no
21806 rm -f core conftest.err conftest.$ac_objext \
21807 conftest$ac_exeext conftest.$ac_ext
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21810 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21811 if test $gcc_cv_math_func_scalbnf = yes; then
21813 cat >>confdefs.h <<_ACEOF
21814 #define HAVE_SCALBNF 1
21815 _ACEOF
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21823 $as_echo_n "checking for scalbn... " >&6; }
21824 if ${gcc_cv_math_func_scalbn+:} false; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 if test x$gcc_no_link = xyes; then
21828 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 #ifdef HAVE_COMPLEX_H
21834 #include <complex.h>
21835 #endif
21836 #ifdef HAVE_MATH_H
21837 #include <math.h>
21838 #endif
21840 int (*ptr)() = (int (*)())scalbn;
21843 main ()
21845 return 0;
21848 _ACEOF
21849 if ac_fn_c_try_link "$LINENO"; then :
21850 gcc_cv_math_func_scalbn=yes
21851 else
21852 gcc_cv_math_func_scalbn=no
21854 rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21858 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21859 if test $gcc_cv_math_func_scalbn = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define HAVE_SCALBN 1
21863 _ACEOF
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21871 $as_echo_n "checking for scalbnl... " >&6; }
21872 if ${gcc_cv_math_func_scalbnl+:} false; then :
21873 $as_echo_n "(cached) " >&6
21874 else
21875 if test x$gcc_no_link = xyes; then
21876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h. */
21881 #ifdef HAVE_COMPLEX_H
21882 #include <complex.h>
21883 #endif
21884 #ifdef HAVE_MATH_H
21885 #include <math.h>
21886 #endif
21888 int (*ptr)() = (int (*)())scalbnl;
21891 main ()
21893 return 0;
21896 _ACEOF
21897 if ac_fn_c_try_link "$LINENO"; then :
21898 gcc_cv_math_func_scalbnl=yes
21899 else
21900 gcc_cv_math_func_scalbnl=no
21902 rm -f core conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21906 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21907 if test $gcc_cv_math_func_scalbnl = yes; then
21909 cat >>confdefs.h <<_ACEOF
21910 #define HAVE_SCALBNL 1
21911 _ACEOF
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21919 $as_echo_n "checking for sinf... " >&6; }
21920 if ${gcc_cv_math_func_sinf+:} false; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 if test x$gcc_no_link = xyes; then
21924 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21929 #ifdef HAVE_COMPLEX_H
21930 #include <complex.h>
21931 #endif
21932 #ifdef HAVE_MATH_H
21933 #include <math.h>
21934 #endif
21936 int (*ptr)() = (int (*)())sinf;
21939 main ()
21941 return 0;
21944 _ACEOF
21945 if ac_fn_c_try_link "$LINENO"; then :
21946 gcc_cv_math_func_sinf=yes
21947 else
21948 gcc_cv_math_func_sinf=no
21950 rm -f core conftest.err conftest.$ac_objext \
21951 conftest$ac_exeext conftest.$ac_ext
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21954 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21955 if test $gcc_cv_math_func_sinf = yes; then
21957 cat >>confdefs.h <<_ACEOF
21958 #define HAVE_SINF 1
21959 _ACEOF
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21967 $as_echo_n "checking for sin... " >&6; }
21968 if ${gcc_cv_math_func_sin+:} false; then :
21969 $as_echo_n "(cached) " >&6
21970 else
21971 if test x$gcc_no_link = xyes; then
21972 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21977 #ifdef HAVE_COMPLEX_H
21978 #include <complex.h>
21979 #endif
21980 #ifdef HAVE_MATH_H
21981 #include <math.h>
21982 #endif
21984 int (*ptr)() = (int (*)())sin;
21987 main ()
21989 return 0;
21992 _ACEOF
21993 if ac_fn_c_try_link "$LINENO"; then :
21994 gcc_cv_math_func_sin=yes
21995 else
21996 gcc_cv_math_func_sin=no
21998 rm -f core conftest.err conftest.$ac_objext \
21999 conftest$ac_exeext conftest.$ac_ext
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22002 $as_echo "$gcc_cv_math_func_sin" >&6; }
22003 if test $gcc_cv_math_func_sin = yes; then
22005 cat >>confdefs.h <<_ACEOF
22006 #define HAVE_SIN 1
22007 _ACEOF
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22015 $as_echo_n "checking for sinl... " >&6; }
22016 if ${gcc_cv_math_func_sinl+:} false; then :
22017 $as_echo_n "(cached) " >&6
22018 else
22019 if test x$gcc_no_link = xyes; then
22020 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22025 #ifdef HAVE_COMPLEX_H
22026 #include <complex.h>
22027 #endif
22028 #ifdef HAVE_MATH_H
22029 #include <math.h>
22030 #endif
22032 int (*ptr)() = (int (*)())sinl;
22035 main ()
22037 return 0;
22040 _ACEOF
22041 if ac_fn_c_try_link "$LINENO"; then :
22042 gcc_cv_math_func_sinl=yes
22043 else
22044 gcc_cv_math_func_sinl=no
22046 rm -f core conftest.err conftest.$ac_objext \
22047 conftest$ac_exeext conftest.$ac_ext
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22050 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22051 if test $gcc_cv_math_func_sinl = yes; then
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_SINL 1
22055 _ACEOF
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22063 $as_echo_n "checking for csinf... " >&6; }
22064 if ${gcc_cv_math_func_csinf+:} false; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 if test x$gcc_no_link = xyes; then
22068 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h. */
22073 #ifdef HAVE_COMPLEX_H
22074 #include <complex.h>
22075 #endif
22076 #ifdef HAVE_MATH_H
22077 #include <math.h>
22078 #endif
22080 int (*ptr)() = (int (*)())csinf;
22083 main ()
22085 return 0;
22088 _ACEOF
22089 if ac_fn_c_try_link "$LINENO"; then :
22090 gcc_cv_math_func_csinf=yes
22091 else
22092 gcc_cv_math_func_csinf=no
22094 rm -f core conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22098 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22099 if test $gcc_cv_math_func_csinf = yes; then
22101 cat >>confdefs.h <<_ACEOF
22102 #define HAVE_CSINF 1
22103 _ACEOF
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22111 $as_echo_n "checking for csin... " >&6; }
22112 if ${gcc_cv_math_func_csin+:} false; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 if test x$gcc_no_link = xyes; then
22116 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22119 /* end confdefs.h. */
22121 #ifdef HAVE_COMPLEX_H
22122 #include <complex.h>
22123 #endif
22124 #ifdef HAVE_MATH_H
22125 #include <math.h>
22126 #endif
22128 int (*ptr)() = (int (*)())csin;
22131 main ()
22133 return 0;
22136 _ACEOF
22137 if ac_fn_c_try_link "$LINENO"; then :
22138 gcc_cv_math_func_csin=yes
22139 else
22140 gcc_cv_math_func_csin=no
22142 rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22146 $as_echo "$gcc_cv_math_func_csin" >&6; }
22147 if test $gcc_cv_math_func_csin = yes; then
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_CSIN 1
22151 _ACEOF
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22159 $as_echo_n "checking for csinl... " >&6; }
22160 if ${gcc_cv_math_func_csinl+:} false; then :
22161 $as_echo_n "(cached) " >&6
22162 else
22163 if test x$gcc_no_link = xyes; then
22164 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h. */
22169 #ifdef HAVE_COMPLEX_H
22170 #include <complex.h>
22171 #endif
22172 #ifdef HAVE_MATH_H
22173 #include <math.h>
22174 #endif
22176 int (*ptr)() = (int (*)())csinl;
22179 main ()
22181 return 0;
22184 _ACEOF
22185 if ac_fn_c_try_link "$LINENO"; then :
22186 gcc_cv_math_func_csinl=yes
22187 else
22188 gcc_cv_math_func_csinl=no
22190 rm -f core conftest.err conftest.$ac_objext \
22191 conftest$ac_exeext conftest.$ac_ext
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22194 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22195 if test $gcc_cv_math_func_csinl = yes; then
22197 cat >>confdefs.h <<_ACEOF
22198 #define HAVE_CSINL 1
22199 _ACEOF
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22207 $as_echo_n "checking for sinhf... " >&6; }
22208 if ${gcc_cv_math_func_sinhf+:} false; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 if test x$gcc_no_link = xyes; then
22212 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 #ifdef HAVE_COMPLEX_H
22218 #include <complex.h>
22219 #endif
22220 #ifdef HAVE_MATH_H
22221 #include <math.h>
22222 #endif
22224 int (*ptr)() = (int (*)())sinhf;
22227 main ()
22229 return 0;
22232 _ACEOF
22233 if ac_fn_c_try_link "$LINENO"; then :
22234 gcc_cv_math_func_sinhf=yes
22235 else
22236 gcc_cv_math_func_sinhf=no
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22242 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22243 if test $gcc_cv_math_func_sinhf = yes; then
22245 cat >>confdefs.h <<_ACEOF
22246 #define HAVE_SINHF 1
22247 _ACEOF
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22255 $as_echo_n "checking for sinh... " >&6; }
22256 if ${gcc_cv_math_func_sinh+:} false; then :
22257 $as_echo_n "(cached) " >&6
22258 else
22259 if test x$gcc_no_link = xyes; then
22260 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22265 #ifdef HAVE_COMPLEX_H
22266 #include <complex.h>
22267 #endif
22268 #ifdef HAVE_MATH_H
22269 #include <math.h>
22270 #endif
22272 int (*ptr)() = (int (*)())sinh;
22275 main ()
22277 return 0;
22280 _ACEOF
22281 if ac_fn_c_try_link "$LINENO"; then :
22282 gcc_cv_math_func_sinh=yes
22283 else
22284 gcc_cv_math_func_sinh=no
22286 rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22290 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22291 if test $gcc_cv_math_func_sinh = yes; then
22293 cat >>confdefs.h <<_ACEOF
22294 #define HAVE_SINH 1
22295 _ACEOF
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22303 $as_echo_n "checking for sinhl... " >&6; }
22304 if ${gcc_cv_math_func_sinhl+:} false; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 if test x$gcc_no_link = xyes; then
22308 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22313 #ifdef HAVE_COMPLEX_H
22314 #include <complex.h>
22315 #endif
22316 #ifdef HAVE_MATH_H
22317 #include <math.h>
22318 #endif
22320 int (*ptr)() = (int (*)())sinhl;
22323 main ()
22325 return 0;
22328 _ACEOF
22329 if ac_fn_c_try_link "$LINENO"; then :
22330 gcc_cv_math_func_sinhl=yes
22331 else
22332 gcc_cv_math_func_sinhl=no
22334 rm -f core conftest.err conftest.$ac_objext \
22335 conftest$ac_exeext conftest.$ac_ext
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22338 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22339 if test $gcc_cv_math_func_sinhl = yes; then
22341 cat >>confdefs.h <<_ACEOF
22342 #define HAVE_SINHL 1
22343 _ACEOF
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22351 $as_echo_n "checking for csinhf... " >&6; }
22352 if ${gcc_cv_math_func_csinhf+:} false; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 if test x$gcc_no_link = xyes; then
22356 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22359 /* end confdefs.h. */
22361 #ifdef HAVE_COMPLEX_H
22362 #include <complex.h>
22363 #endif
22364 #ifdef HAVE_MATH_H
22365 #include <math.h>
22366 #endif
22368 int (*ptr)() = (int (*)())csinhf;
22371 main ()
22373 return 0;
22376 _ACEOF
22377 if ac_fn_c_try_link "$LINENO"; then :
22378 gcc_cv_math_func_csinhf=yes
22379 else
22380 gcc_cv_math_func_csinhf=no
22382 rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22386 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22387 if test $gcc_cv_math_func_csinhf = yes; then
22389 cat >>confdefs.h <<_ACEOF
22390 #define HAVE_CSINHF 1
22391 _ACEOF
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22399 $as_echo_n "checking for csinh... " >&6; }
22400 if ${gcc_cv_math_func_csinh+:} false; then :
22401 $as_echo_n "(cached) " >&6
22402 else
22403 if test x$gcc_no_link = xyes; then
22404 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22409 #ifdef HAVE_COMPLEX_H
22410 #include <complex.h>
22411 #endif
22412 #ifdef HAVE_MATH_H
22413 #include <math.h>
22414 #endif
22416 int (*ptr)() = (int (*)())csinh;
22419 main ()
22421 return 0;
22424 _ACEOF
22425 if ac_fn_c_try_link "$LINENO"; then :
22426 gcc_cv_math_func_csinh=yes
22427 else
22428 gcc_cv_math_func_csinh=no
22430 rm -f core conftest.err conftest.$ac_objext \
22431 conftest$ac_exeext conftest.$ac_ext
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22434 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22435 if test $gcc_cv_math_func_csinh = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define HAVE_CSINH 1
22439 _ACEOF
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22447 $as_echo_n "checking for csinhl... " >&6; }
22448 if ${gcc_cv_math_func_csinhl+:} false; then :
22449 $as_echo_n "(cached) " >&6
22450 else
22451 if test x$gcc_no_link = xyes; then
22452 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22457 #ifdef HAVE_COMPLEX_H
22458 #include <complex.h>
22459 #endif
22460 #ifdef HAVE_MATH_H
22461 #include <math.h>
22462 #endif
22464 int (*ptr)() = (int (*)())csinhl;
22467 main ()
22469 return 0;
22472 _ACEOF
22473 if ac_fn_c_try_link "$LINENO"; then :
22474 gcc_cv_math_func_csinhl=yes
22475 else
22476 gcc_cv_math_func_csinhl=no
22478 rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22482 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22483 if test $gcc_cv_math_func_csinhl = yes; then
22485 cat >>confdefs.h <<_ACEOF
22486 #define HAVE_CSINHL 1
22487 _ACEOF
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22495 $as_echo_n "checking for sqrtf... " >&6; }
22496 if ${gcc_cv_math_func_sqrtf+:} false; then :
22497 $as_echo_n "(cached) " >&6
22498 else
22499 if test x$gcc_no_link = xyes; then
22500 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22505 #ifdef HAVE_COMPLEX_H
22506 #include <complex.h>
22507 #endif
22508 #ifdef HAVE_MATH_H
22509 #include <math.h>
22510 #endif
22512 int (*ptr)() = (int (*)())sqrtf;
22515 main ()
22517 return 0;
22520 _ACEOF
22521 if ac_fn_c_try_link "$LINENO"; then :
22522 gcc_cv_math_func_sqrtf=yes
22523 else
22524 gcc_cv_math_func_sqrtf=no
22526 rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22530 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22531 if test $gcc_cv_math_func_sqrtf = yes; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define HAVE_SQRTF 1
22535 _ACEOF
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22543 $as_echo_n "checking for sqrt... " >&6; }
22544 if ${gcc_cv_math_func_sqrt+:} false; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 if test x$gcc_no_link = xyes; then
22548 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551 /* end confdefs.h. */
22553 #ifdef HAVE_COMPLEX_H
22554 #include <complex.h>
22555 #endif
22556 #ifdef HAVE_MATH_H
22557 #include <math.h>
22558 #endif
22560 int (*ptr)() = (int (*)())sqrt;
22563 main ()
22565 return 0;
22568 _ACEOF
22569 if ac_fn_c_try_link "$LINENO"; then :
22570 gcc_cv_math_func_sqrt=yes
22571 else
22572 gcc_cv_math_func_sqrt=no
22574 rm -f core conftest.err conftest.$ac_objext \
22575 conftest$ac_exeext conftest.$ac_ext
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22578 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22579 if test $gcc_cv_math_func_sqrt = yes; then
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_SQRT 1
22583 _ACEOF
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22591 $as_echo_n "checking for sqrtl... " >&6; }
22592 if ${gcc_cv_math_func_sqrtl+:} false; then :
22593 $as_echo_n "(cached) " >&6
22594 else
22595 if test x$gcc_no_link = xyes; then
22596 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22601 #ifdef HAVE_COMPLEX_H
22602 #include <complex.h>
22603 #endif
22604 #ifdef HAVE_MATH_H
22605 #include <math.h>
22606 #endif
22608 int (*ptr)() = (int (*)())sqrtl;
22611 main ()
22613 return 0;
22616 _ACEOF
22617 if ac_fn_c_try_link "$LINENO"; then :
22618 gcc_cv_math_func_sqrtl=yes
22619 else
22620 gcc_cv_math_func_sqrtl=no
22622 rm -f core conftest.err conftest.$ac_objext \
22623 conftest$ac_exeext conftest.$ac_ext
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22626 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22627 if test $gcc_cv_math_func_sqrtl = yes; then
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_SQRTL 1
22631 _ACEOF
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22639 $as_echo_n "checking for csqrtf... " >&6; }
22640 if ${gcc_cv_math_func_csqrtf+:} false; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 if test x$gcc_no_link = xyes; then
22644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647 /* end confdefs.h. */
22649 #ifdef HAVE_COMPLEX_H
22650 #include <complex.h>
22651 #endif
22652 #ifdef HAVE_MATH_H
22653 #include <math.h>
22654 #endif
22656 int (*ptr)() = (int (*)())csqrtf;
22659 main ()
22661 return 0;
22664 _ACEOF
22665 if ac_fn_c_try_link "$LINENO"; then :
22666 gcc_cv_math_func_csqrtf=yes
22667 else
22668 gcc_cv_math_func_csqrtf=no
22670 rm -f core conftest.err conftest.$ac_objext \
22671 conftest$ac_exeext conftest.$ac_ext
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22674 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22675 if test $gcc_cv_math_func_csqrtf = yes; then
22677 cat >>confdefs.h <<_ACEOF
22678 #define HAVE_CSQRTF 1
22679 _ACEOF
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22687 $as_echo_n "checking for csqrt... " >&6; }
22688 if ${gcc_cv_math_func_csqrt+:} false; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 if test x$gcc_no_link = xyes; then
22692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h. */
22697 #ifdef HAVE_COMPLEX_H
22698 #include <complex.h>
22699 #endif
22700 #ifdef HAVE_MATH_H
22701 #include <math.h>
22702 #endif
22704 int (*ptr)() = (int (*)())csqrt;
22707 main ()
22709 return 0;
22712 _ACEOF
22713 if ac_fn_c_try_link "$LINENO"; then :
22714 gcc_cv_math_func_csqrt=yes
22715 else
22716 gcc_cv_math_func_csqrt=no
22718 rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22722 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22723 if test $gcc_cv_math_func_csqrt = yes; then
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_CSQRT 1
22727 _ACEOF
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22735 $as_echo_n "checking for csqrtl... " >&6; }
22736 if ${gcc_cv_math_func_csqrtl+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738 else
22739 if test x$gcc_no_link = xyes; then
22740 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22745 #ifdef HAVE_COMPLEX_H
22746 #include <complex.h>
22747 #endif
22748 #ifdef HAVE_MATH_H
22749 #include <math.h>
22750 #endif
22752 int (*ptr)() = (int (*)())csqrtl;
22755 main ()
22757 return 0;
22760 _ACEOF
22761 if ac_fn_c_try_link "$LINENO"; then :
22762 gcc_cv_math_func_csqrtl=yes
22763 else
22764 gcc_cv_math_func_csqrtl=no
22766 rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22770 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22771 if test $gcc_cv_math_func_csqrtl = yes; then
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_CSQRTL 1
22775 _ACEOF
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22783 $as_echo_n "checking for tanf... " >&6; }
22784 if ${gcc_cv_math_func_tanf+:} false; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 if test x$gcc_no_link = xyes; then
22788 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h. */
22793 #ifdef HAVE_COMPLEX_H
22794 #include <complex.h>
22795 #endif
22796 #ifdef HAVE_MATH_H
22797 #include <math.h>
22798 #endif
22800 int (*ptr)() = (int (*)())tanf;
22803 main ()
22805 return 0;
22808 _ACEOF
22809 if ac_fn_c_try_link "$LINENO"; then :
22810 gcc_cv_math_func_tanf=yes
22811 else
22812 gcc_cv_math_func_tanf=no
22814 rm -f core conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22818 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22819 if test $gcc_cv_math_func_tanf = yes; then
22821 cat >>confdefs.h <<_ACEOF
22822 #define HAVE_TANF 1
22823 _ACEOF
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22831 $as_echo_n "checking for tan... " >&6; }
22832 if ${gcc_cv_math_func_tan+:} false; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 if test x$gcc_no_link = xyes; then
22836 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22839 /* end confdefs.h. */
22841 #ifdef HAVE_COMPLEX_H
22842 #include <complex.h>
22843 #endif
22844 #ifdef HAVE_MATH_H
22845 #include <math.h>
22846 #endif
22848 int (*ptr)() = (int (*)())tan;
22851 main ()
22853 return 0;
22856 _ACEOF
22857 if ac_fn_c_try_link "$LINENO"; then :
22858 gcc_cv_math_func_tan=yes
22859 else
22860 gcc_cv_math_func_tan=no
22862 rm -f core conftest.err conftest.$ac_objext \
22863 conftest$ac_exeext conftest.$ac_ext
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22866 $as_echo "$gcc_cv_math_func_tan" >&6; }
22867 if test $gcc_cv_math_func_tan = yes; then
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_TAN 1
22871 _ACEOF
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22879 $as_echo_n "checking for tanl... " >&6; }
22880 if ${gcc_cv_math_func_tanl+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 if test x$gcc_no_link = xyes; then
22884 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22889 #ifdef HAVE_COMPLEX_H
22890 #include <complex.h>
22891 #endif
22892 #ifdef HAVE_MATH_H
22893 #include <math.h>
22894 #endif
22896 int (*ptr)() = (int (*)())tanl;
22899 main ()
22901 return 0;
22904 _ACEOF
22905 if ac_fn_c_try_link "$LINENO"; then :
22906 gcc_cv_math_func_tanl=yes
22907 else
22908 gcc_cv_math_func_tanl=no
22910 rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22914 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22915 if test $gcc_cv_math_func_tanl = yes; then
22917 cat >>confdefs.h <<_ACEOF
22918 #define HAVE_TANL 1
22919 _ACEOF
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22927 $as_echo_n "checking for ctanf... " >&6; }
22928 if ${gcc_cv_math_func_ctanf+:} false; then :
22929 $as_echo_n "(cached) " >&6
22930 else
22931 if test x$gcc_no_link = xyes; then
22932 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22937 #ifdef HAVE_COMPLEX_H
22938 #include <complex.h>
22939 #endif
22940 #ifdef HAVE_MATH_H
22941 #include <math.h>
22942 #endif
22944 int (*ptr)() = (int (*)())ctanf;
22947 main ()
22949 return 0;
22952 _ACEOF
22953 if ac_fn_c_try_link "$LINENO"; then :
22954 gcc_cv_math_func_ctanf=yes
22955 else
22956 gcc_cv_math_func_ctanf=no
22958 rm -f core conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22962 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22963 if test $gcc_cv_math_func_ctanf = yes; then
22965 cat >>confdefs.h <<_ACEOF
22966 #define HAVE_CTANF 1
22967 _ACEOF
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22975 $as_echo_n "checking for ctan... " >&6; }
22976 if ${gcc_cv_math_func_ctan+:} false; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979 if test x$gcc_no_link = xyes; then
22980 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983 /* end confdefs.h. */
22985 #ifdef HAVE_COMPLEX_H
22986 #include <complex.h>
22987 #endif
22988 #ifdef HAVE_MATH_H
22989 #include <math.h>
22990 #endif
22992 int (*ptr)() = (int (*)())ctan;
22995 main ()
22997 return 0;
23000 _ACEOF
23001 if ac_fn_c_try_link "$LINENO"; then :
23002 gcc_cv_math_func_ctan=yes
23003 else
23004 gcc_cv_math_func_ctan=no
23006 rm -f core conftest.err conftest.$ac_objext \
23007 conftest$ac_exeext conftest.$ac_ext
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23010 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23011 if test $gcc_cv_math_func_ctan = yes; then
23013 cat >>confdefs.h <<_ACEOF
23014 #define HAVE_CTAN 1
23015 _ACEOF
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23023 $as_echo_n "checking for ctanl... " >&6; }
23024 if ${gcc_cv_math_func_ctanl+:} false; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 if test x$gcc_no_link = xyes; then
23028 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23033 #ifdef HAVE_COMPLEX_H
23034 #include <complex.h>
23035 #endif
23036 #ifdef HAVE_MATH_H
23037 #include <math.h>
23038 #endif
23040 int (*ptr)() = (int (*)())ctanl;
23043 main ()
23045 return 0;
23048 _ACEOF
23049 if ac_fn_c_try_link "$LINENO"; then :
23050 gcc_cv_math_func_ctanl=yes
23051 else
23052 gcc_cv_math_func_ctanl=no
23054 rm -f core conftest.err conftest.$ac_objext \
23055 conftest$ac_exeext conftest.$ac_ext
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23058 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23059 if test $gcc_cv_math_func_ctanl = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define HAVE_CTANL 1
23063 _ACEOF
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23071 $as_echo_n "checking for tanhf... " >&6; }
23072 if ${gcc_cv_math_func_tanhf+:} false; then :
23073 $as_echo_n "(cached) " >&6
23074 else
23075 if test x$gcc_no_link = xyes; then
23076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079 /* end confdefs.h. */
23081 #ifdef HAVE_COMPLEX_H
23082 #include <complex.h>
23083 #endif
23084 #ifdef HAVE_MATH_H
23085 #include <math.h>
23086 #endif
23088 int (*ptr)() = (int (*)())tanhf;
23091 main ()
23093 return 0;
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098 gcc_cv_math_func_tanhf=yes
23099 else
23100 gcc_cv_math_func_tanhf=no
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23106 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23107 if test $gcc_cv_math_func_tanhf = yes; then
23109 cat >>confdefs.h <<_ACEOF
23110 #define HAVE_TANHF 1
23111 _ACEOF
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23119 $as_echo_n "checking for tanh... " >&6; }
23120 if ${gcc_cv_math_func_tanh+:} false; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 if test x$gcc_no_link = xyes; then
23124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23127 /* end confdefs.h. */
23129 #ifdef HAVE_COMPLEX_H
23130 #include <complex.h>
23131 #endif
23132 #ifdef HAVE_MATH_H
23133 #include <math.h>
23134 #endif
23136 int (*ptr)() = (int (*)())tanh;
23139 main ()
23141 return 0;
23144 _ACEOF
23145 if ac_fn_c_try_link "$LINENO"; then :
23146 gcc_cv_math_func_tanh=yes
23147 else
23148 gcc_cv_math_func_tanh=no
23150 rm -f core conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23154 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23155 if test $gcc_cv_math_func_tanh = yes; then
23157 cat >>confdefs.h <<_ACEOF
23158 #define HAVE_TANH 1
23159 _ACEOF
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23167 $as_echo_n "checking for tanhl... " >&6; }
23168 if ${gcc_cv_math_func_tanhl+:} false; then :
23169 $as_echo_n "(cached) " >&6
23170 else
23171 if test x$gcc_no_link = xyes; then
23172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23177 #ifdef HAVE_COMPLEX_H
23178 #include <complex.h>
23179 #endif
23180 #ifdef HAVE_MATH_H
23181 #include <math.h>
23182 #endif
23184 int (*ptr)() = (int (*)())tanhl;
23187 main ()
23189 return 0;
23192 _ACEOF
23193 if ac_fn_c_try_link "$LINENO"; then :
23194 gcc_cv_math_func_tanhl=yes
23195 else
23196 gcc_cv_math_func_tanhl=no
23198 rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23202 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23203 if test $gcc_cv_math_func_tanhl = yes; then
23205 cat >>confdefs.h <<_ACEOF
23206 #define HAVE_TANHL 1
23207 _ACEOF
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23215 $as_echo_n "checking for ctanhf... " >&6; }
23216 if ${gcc_cv_math_func_ctanhf+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 if test x$gcc_no_link = xyes; then
23220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23225 #ifdef HAVE_COMPLEX_H
23226 #include <complex.h>
23227 #endif
23228 #ifdef HAVE_MATH_H
23229 #include <math.h>
23230 #endif
23232 int (*ptr)() = (int (*)())ctanhf;
23235 main ()
23237 return 0;
23240 _ACEOF
23241 if ac_fn_c_try_link "$LINENO"; then :
23242 gcc_cv_math_func_ctanhf=yes
23243 else
23244 gcc_cv_math_func_ctanhf=no
23246 rm -f core conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23250 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23251 if test $gcc_cv_math_func_ctanhf = yes; then
23253 cat >>confdefs.h <<_ACEOF
23254 #define HAVE_CTANHF 1
23255 _ACEOF
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23263 $as_echo_n "checking for ctanh... " >&6; }
23264 if ${gcc_cv_math_func_ctanh+:} false; then :
23265 $as_echo_n "(cached) " >&6
23266 else
23267 if test x$gcc_no_link = xyes; then
23268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h. */
23273 #ifdef HAVE_COMPLEX_H
23274 #include <complex.h>
23275 #endif
23276 #ifdef HAVE_MATH_H
23277 #include <math.h>
23278 #endif
23280 int (*ptr)() = (int (*)())ctanh;
23283 main ()
23285 return 0;
23288 _ACEOF
23289 if ac_fn_c_try_link "$LINENO"; then :
23290 gcc_cv_math_func_ctanh=yes
23291 else
23292 gcc_cv_math_func_ctanh=no
23294 rm -f core conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23298 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23299 if test $gcc_cv_math_func_ctanh = yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_CTANH 1
23303 _ACEOF
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23311 $as_echo_n "checking for ctanhl... " >&6; }
23312 if ${gcc_cv_math_func_ctanhl+:} false; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 if test x$gcc_no_link = xyes; then
23316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319 /* end confdefs.h. */
23321 #ifdef HAVE_COMPLEX_H
23322 #include <complex.h>
23323 #endif
23324 #ifdef HAVE_MATH_H
23325 #include <math.h>
23326 #endif
23328 int (*ptr)() = (int (*)())ctanhl;
23331 main ()
23333 return 0;
23336 _ACEOF
23337 if ac_fn_c_try_link "$LINENO"; then :
23338 gcc_cv_math_func_ctanhl=yes
23339 else
23340 gcc_cv_math_func_ctanhl=no
23342 rm -f core conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23346 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23347 if test $gcc_cv_math_func_ctanhl = yes; then
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_CTANHL 1
23351 _ACEOF
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23359 $as_echo_n "checking for truncf... " >&6; }
23360 if ${gcc_cv_math_func_truncf+:} false; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363 if test x$gcc_no_link = xyes; then
23364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23369 #ifdef HAVE_COMPLEX_H
23370 #include <complex.h>
23371 #endif
23372 #ifdef HAVE_MATH_H
23373 #include <math.h>
23374 #endif
23376 int (*ptr)() = (int (*)())truncf;
23379 main ()
23381 return 0;
23384 _ACEOF
23385 if ac_fn_c_try_link "$LINENO"; then :
23386 gcc_cv_math_func_truncf=yes
23387 else
23388 gcc_cv_math_func_truncf=no
23390 rm -f core conftest.err conftest.$ac_objext \
23391 conftest$ac_exeext conftest.$ac_ext
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23394 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23395 if test $gcc_cv_math_func_truncf = yes; then
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_TRUNCF 1
23399 _ACEOF
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23407 $as_echo_n "checking for trunc... " >&6; }
23408 if ${gcc_cv_math_func_trunc+:} false; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 if test x$gcc_no_link = xyes; then
23412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23417 #ifdef HAVE_COMPLEX_H
23418 #include <complex.h>
23419 #endif
23420 #ifdef HAVE_MATH_H
23421 #include <math.h>
23422 #endif
23424 int (*ptr)() = (int (*)())trunc;
23427 main ()
23429 return 0;
23432 _ACEOF
23433 if ac_fn_c_try_link "$LINENO"; then :
23434 gcc_cv_math_func_trunc=yes
23435 else
23436 gcc_cv_math_func_trunc=no
23438 rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23442 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23443 if test $gcc_cv_math_func_trunc = yes; then
23445 cat >>confdefs.h <<_ACEOF
23446 #define HAVE_TRUNC 1
23447 _ACEOF
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23455 $as_echo_n "checking for truncl... " >&6; }
23456 if ${gcc_cv_math_func_truncl+:} false; then :
23457 $as_echo_n "(cached) " >&6
23458 else
23459 if test x$gcc_no_link = xyes; then
23460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23465 #ifdef HAVE_COMPLEX_H
23466 #include <complex.h>
23467 #endif
23468 #ifdef HAVE_MATH_H
23469 #include <math.h>
23470 #endif
23472 int (*ptr)() = (int (*)())truncl;
23475 main ()
23477 return 0;
23480 _ACEOF
23481 if ac_fn_c_try_link "$LINENO"; then :
23482 gcc_cv_math_func_truncl=yes
23483 else
23484 gcc_cv_math_func_truncl=no
23486 rm -f core conftest.err conftest.$ac_objext \
23487 conftest$ac_exeext conftest.$ac_ext
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23490 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23491 if test $gcc_cv_math_func_truncl = yes; then
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_TRUNCL 1
23495 _ACEOF
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23503 $as_echo_n "checking for erff... " >&6; }
23504 if ${gcc_cv_math_func_erff+:} false; then :
23505 $as_echo_n "(cached) " >&6
23506 else
23507 if test x$gcc_no_link = xyes; then
23508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511 /* end confdefs.h. */
23513 #ifdef HAVE_COMPLEX_H
23514 #include <complex.h>
23515 #endif
23516 #ifdef HAVE_MATH_H
23517 #include <math.h>
23518 #endif
23520 int (*ptr)() = (int (*)())erff;
23523 main ()
23525 return 0;
23528 _ACEOF
23529 if ac_fn_c_try_link "$LINENO"; then :
23530 gcc_cv_math_func_erff=yes
23531 else
23532 gcc_cv_math_func_erff=no
23534 rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23538 $as_echo "$gcc_cv_math_func_erff" >&6; }
23539 if test $gcc_cv_math_func_erff = yes; then
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_ERFF 1
23543 _ACEOF
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23551 $as_echo_n "checking for erf... " >&6; }
23552 if ${gcc_cv_math_func_erf+:} false; then :
23553 $as_echo_n "(cached) " >&6
23554 else
23555 if test x$gcc_no_link = xyes; then
23556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23559 /* end confdefs.h. */
23561 #ifdef HAVE_COMPLEX_H
23562 #include <complex.h>
23563 #endif
23564 #ifdef HAVE_MATH_H
23565 #include <math.h>
23566 #endif
23568 int (*ptr)() = (int (*)())erf;
23571 main ()
23573 return 0;
23576 _ACEOF
23577 if ac_fn_c_try_link "$LINENO"; then :
23578 gcc_cv_math_func_erf=yes
23579 else
23580 gcc_cv_math_func_erf=no
23582 rm -f core conftest.err conftest.$ac_objext \
23583 conftest$ac_exeext conftest.$ac_ext
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23586 $as_echo "$gcc_cv_math_func_erf" >&6; }
23587 if test $gcc_cv_math_func_erf = yes; then
23589 cat >>confdefs.h <<_ACEOF
23590 #define HAVE_ERF 1
23591 _ACEOF
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23599 $as_echo_n "checking for erfcf... " >&6; }
23600 if ${gcc_cv_math_func_erfcf+:} false; then :
23601 $as_echo_n "(cached) " >&6
23602 else
23603 if test x$gcc_no_link = xyes; then
23604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23609 #ifdef HAVE_COMPLEX_H
23610 #include <complex.h>
23611 #endif
23612 #ifdef HAVE_MATH_H
23613 #include <math.h>
23614 #endif
23616 int (*ptr)() = (int (*)())erfcf;
23619 main ()
23621 return 0;
23624 _ACEOF
23625 if ac_fn_c_try_link "$LINENO"; then :
23626 gcc_cv_math_func_erfcf=yes
23627 else
23628 gcc_cv_math_func_erfcf=no
23630 rm -f core conftest.err conftest.$ac_objext \
23631 conftest$ac_exeext conftest.$ac_ext
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23634 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23635 if test $gcc_cv_math_func_erfcf = yes; then
23637 cat >>confdefs.h <<_ACEOF
23638 #define HAVE_ERFCF 1
23639 _ACEOF
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23647 $as_echo_n "checking for erfc... " >&6; }
23648 if ${gcc_cv_math_func_erfc+:} false; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 if test x$gcc_no_link = xyes; then
23652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655 /* end confdefs.h. */
23657 #ifdef HAVE_COMPLEX_H
23658 #include <complex.h>
23659 #endif
23660 #ifdef HAVE_MATH_H
23661 #include <math.h>
23662 #endif
23664 int (*ptr)() = (int (*)())erfc;
23667 main ()
23669 return 0;
23672 _ACEOF
23673 if ac_fn_c_try_link "$LINENO"; then :
23674 gcc_cv_math_func_erfc=yes
23675 else
23676 gcc_cv_math_func_erfc=no
23678 rm -f core conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23682 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23683 if test $gcc_cv_math_func_erfc = yes; then
23685 cat >>confdefs.h <<_ACEOF
23686 #define HAVE_ERFC 1
23687 _ACEOF
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23695 $as_echo_n "checking for erfcl... " >&6; }
23696 if ${gcc_cv_math_func_erfcl+:} false; then :
23697 $as_echo_n "(cached) " >&6
23698 else
23699 if test x$gcc_no_link = xyes; then
23700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23705 #ifdef HAVE_COMPLEX_H
23706 #include <complex.h>
23707 #endif
23708 #ifdef HAVE_MATH_H
23709 #include <math.h>
23710 #endif
23712 int (*ptr)() = (int (*)())erfcl;
23715 main ()
23717 return 0;
23720 _ACEOF
23721 if ac_fn_c_try_link "$LINENO"; then :
23722 gcc_cv_math_func_erfcl=yes
23723 else
23724 gcc_cv_math_func_erfcl=no
23726 rm -f core conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23730 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23731 if test $gcc_cv_math_func_erfcl = yes; then
23733 cat >>confdefs.h <<_ACEOF
23734 #define HAVE_ERFCL 1
23735 _ACEOF
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23743 $as_echo_n "checking for j0f... " >&6; }
23744 if ${gcc_cv_math_func_j0f+:} false; then :
23745 $as_echo_n "(cached) " >&6
23746 else
23747 if test x$gcc_no_link = xyes; then
23748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23753 #ifdef HAVE_COMPLEX_H
23754 #include <complex.h>
23755 #endif
23756 #ifdef HAVE_MATH_H
23757 #include <math.h>
23758 #endif
23760 int (*ptr)() = (int (*)())j0f;
23763 main ()
23765 return 0;
23768 _ACEOF
23769 if ac_fn_c_try_link "$LINENO"; then :
23770 gcc_cv_math_func_j0f=yes
23771 else
23772 gcc_cv_math_func_j0f=no
23774 rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23778 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23779 if test $gcc_cv_math_func_j0f = yes; then
23781 cat >>confdefs.h <<_ACEOF
23782 #define HAVE_J0F 1
23783 _ACEOF
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23791 $as_echo_n "checking for j0... " >&6; }
23792 if ${gcc_cv_math_func_j0+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 if test x$gcc_no_link = xyes; then
23796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23801 #ifdef HAVE_COMPLEX_H
23802 #include <complex.h>
23803 #endif
23804 #ifdef HAVE_MATH_H
23805 #include <math.h>
23806 #endif
23808 int (*ptr)() = (int (*)())j0;
23811 main ()
23813 return 0;
23816 _ACEOF
23817 if ac_fn_c_try_link "$LINENO"; then :
23818 gcc_cv_math_func_j0=yes
23819 else
23820 gcc_cv_math_func_j0=no
23822 rm -f core conftest.err conftest.$ac_objext \
23823 conftest$ac_exeext conftest.$ac_ext
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23826 $as_echo "$gcc_cv_math_func_j0" >&6; }
23827 if test $gcc_cv_math_func_j0 = yes; then
23829 cat >>confdefs.h <<_ACEOF
23830 #define HAVE_J0 1
23831 _ACEOF
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23839 $as_echo_n "checking for j1f... " >&6; }
23840 if ${gcc_cv_math_func_j1f+:} false; then :
23841 $as_echo_n "(cached) " >&6
23842 else
23843 if test x$gcc_no_link = xyes; then
23844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23849 #ifdef HAVE_COMPLEX_H
23850 #include <complex.h>
23851 #endif
23852 #ifdef HAVE_MATH_H
23853 #include <math.h>
23854 #endif
23856 int (*ptr)() = (int (*)())j1f;
23859 main ()
23861 return 0;
23864 _ACEOF
23865 if ac_fn_c_try_link "$LINENO"; then :
23866 gcc_cv_math_func_j1f=yes
23867 else
23868 gcc_cv_math_func_j1f=no
23870 rm -f core conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23874 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23875 if test $gcc_cv_math_func_j1f = yes; then
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_J1F 1
23879 _ACEOF
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23887 $as_echo_n "checking for j1... " >&6; }
23888 if ${gcc_cv_math_func_j1+:} false; then :
23889 $as_echo_n "(cached) " >&6
23890 else
23891 if test x$gcc_no_link = xyes; then
23892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23897 #ifdef HAVE_COMPLEX_H
23898 #include <complex.h>
23899 #endif
23900 #ifdef HAVE_MATH_H
23901 #include <math.h>
23902 #endif
23904 int (*ptr)() = (int (*)())j1;
23907 main ()
23909 return 0;
23912 _ACEOF
23913 if ac_fn_c_try_link "$LINENO"; then :
23914 gcc_cv_math_func_j1=yes
23915 else
23916 gcc_cv_math_func_j1=no
23918 rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23922 $as_echo "$gcc_cv_math_func_j1" >&6; }
23923 if test $gcc_cv_math_func_j1 = yes; then
23925 cat >>confdefs.h <<_ACEOF
23926 #define HAVE_J1 1
23927 _ACEOF
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23935 $as_echo_n "checking for jnf... " >&6; }
23936 if ${gcc_cv_math_func_jnf+:} false; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 if test x$gcc_no_link = xyes; then
23940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23945 #ifdef HAVE_COMPLEX_H
23946 #include <complex.h>
23947 #endif
23948 #ifdef HAVE_MATH_H
23949 #include <math.h>
23950 #endif
23952 int (*ptr)() = (int (*)())jnf;
23955 main ()
23957 return 0;
23960 _ACEOF
23961 if ac_fn_c_try_link "$LINENO"; then :
23962 gcc_cv_math_func_jnf=yes
23963 else
23964 gcc_cv_math_func_jnf=no
23966 rm -f core conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23970 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23971 if test $gcc_cv_math_func_jnf = yes; then
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_JNF 1
23975 _ACEOF
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23983 $as_echo_n "checking for jn... " >&6; }
23984 if ${gcc_cv_math_func_jn+:} false; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 if test x$gcc_no_link = xyes; then
23988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991 /* end confdefs.h. */
23993 #ifdef HAVE_COMPLEX_H
23994 #include <complex.h>
23995 #endif
23996 #ifdef HAVE_MATH_H
23997 #include <math.h>
23998 #endif
24000 int (*ptr)() = (int (*)())jn;
24003 main ()
24005 return 0;
24008 _ACEOF
24009 if ac_fn_c_try_link "$LINENO"; then :
24010 gcc_cv_math_func_jn=yes
24011 else
24012 gcc_cv_math_func_jn=no
24014 rm -f core conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24018 $as_echo "$gcc_cv_math_func_jn" >&6; }
24019 if test $gcc_cv_math_func_jn = yes; then
24021 cat >>confdefs.h <<_ACEOF
24022 #define HAVE_JN 1
24023 _ACEOF
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24031 $as_echo_n "checking for jnl... " >&6; }
24032 if ${gcc_cv_math_func_jnl+:} false; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24035 if test x$gcc_no_link = xyes; then
24036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24039 /* end confdefs.h. */
24041 #ifdef HAVE_COMPLEX_H
24042 #include <complex.h>
24043 #endif
24044 #ifdef HAVE_MATH_H
24045 #include <math.h>
24046 #endif
24048 int (*ptr)() = (int (*)())jnl;
24051 main ()
24053 return 0;
24056 _ACEOF
24057 if ac_fn_c_try_link "$LINENO"; then :
24058 gcc_cv_math_func_jnl=yes
24059 else
24060 gcc_cv_math_func_jnl=no
24062 rm -f core conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24066 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24067 if test $gcc_cv_math_func_jnl = yes; then
24069 cat >>confdefs.h <<_ACEOF
24070 #define HAVE_JNL 1
24071 _ACEOF
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24079 $as_echo_n "checking for y0f... " >&6; }
24080 if ${gcc_cv_math_func_y0f+:} false; then :
24081 $as_echo_n "(cached) " >&6
24082 else
24083 if test x$gcc_no_link = xyes; then
24084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24089 #ifdef HAVE_COMPLEX_H
24090 #include <complex.h>
24091 #endif
24092 #ifdef HAVE_MATH_H
24093 #include <math.h>
24094 #endif
24096 int (*ptr)() = (int (*)())y0f;
24099 main ()
24101 return 0;
24104 _ACEOF
24105 if ac_fn_c_try_link "$LINENO"; then :
24106 gcc_cv_math_func_y0f=yes
24107 else
24108 gcc_cv_math_func_y0f=no
24110 rm -f core conftest.err conftest.$ac_objext \
24111 conftest$ac_exeext conftest.$ac_ext
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24114 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24115 if test $gcc_cv_math_func_y0f = yes; then
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_Y0F 1
24119 _ACEOF
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24127 $as_echo_n "checking for y0... " >&6; }
24128 if ${gcc_cv_math_func_y0+:} false; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 if test x$gcc_no_link = xyes; then
24132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h. */
24137 #ifdef HAVE_COMPLEX_H
24138 #include <complex.h>
24139 #endif
24140 #ifdef HAVE_MATH_H
24141 #include <math.h>
24142 #endif
24144 int (*ptr)() = (int (*)())y0;
24147 main ()
24149 return 0;
24152 _ACEOF
24153 if ac_fn_c_try_link "$LINENO"; then :
24154 gcc_cv_math_func_y0=yes
24155 else
24156 gcc_cv_math_func_y0=no
24158 rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24162 $as_echo "$gcc_cv_math_func_y0" >&6; }
24163 if test $gcc_cv_math_func_y0 = yes; then
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_Y0 1
24167 _ACEOF
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24175 $as_echo_n "checking for y1f... " >&6; }
24176 if ${gcc_cv_math_func_y1f+:} false; then :
24177 $as_echo_n "(cached) " >&6
24178 else
24179 if test x$gcc_no_link = xyes; then
24180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183 /* end confdefs.h. */
24185 #ifdef HAVE_COMPLEX_H
24186 #include <complex.h>
24187 #endif
24188 #ifdef HAVE_MATH_H
24189 #include <math.h>
24190 #endif
24192 int (*ptr)() = (int (*)())y1f;
24195 main ()
24197 return 0;
24200 _ACEOF
24201 if ac_fn_c_try_link "$LINENO"; then :
24202 gcc_cv_math_func_y1f=yes
24203 else
24204 gcc_cv_math_func_y1f=no
24206 rm -f core conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24210 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24211 if test $gcc_cv_math_func_y1f = yes; then
24213 cat >>confdefs.h <<_ACEOF
24214 #define HAVE_Y1F 1
24215 _ACEOF
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24223 $as_echo_n "checking for y1... " >&6; }
24224 if ${gcc_cv_math_func_y1+:} false; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 if test x$gcc_no_link = xyes; then
24228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h. */
24233 #ifdef HAVE_COMPLEX_H
24234 #include <complex.h>
24235 #endif
24236 #ifdef HAVE_MATH_H
24237 #include <math.h>
24238 #endif
24240 int (*ptr)() = (int (*)())y1;
24243 main ()
24245 return 0;
24248 _ACEOF
24249 if ac_fn_c_try_link "$LINENO"; then :
24250 gcc_cv_math_func_y1=yes
24251 else
24252 gcc_cv_math_func_y1=no
24254 rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24258 $as_echo "$gcc_cv_math_func_y1" >&6; }
24259 if test $gcc_cv_math_func_y1 = yes; then
24261 cat >>confdefs.h <<_ACEOF
24262 #define HAVE_Y1 1
24263 _ACEOF
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24271 $as_echo_n "checking for ynf... " >&6; }
24272 if ${gcc_cv_math_func_ynf+:} false; then :
24273 $as_echo_n "(cached) " >&6
24274 else
24275 if test x$gcc_no_link = xyes; then
24276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h. */
24281 #ifdef HAVE_COMPLEX_H
24282 #include <complex.h>
24283 #endif
24284 #ifdef HAVE_MATH_H
24285 #include <math.h>
24286 #endif
24288 int (*ptr)() = (int (*)())ynf;
24291 main ()
24293 return 0;
24296 _ACEOF
24297 if ac_fn_c_try_link "$LINENO"; then :
24298 gcc_cv_math_func_ynf=yes
24299 else
24300 gcc_cv_math_func_ynf=no
24302 rm -f core conftest.err conftest.$ac_objext \
24303 conftest$ac_exeext conftest.$ac_ext
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24306 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24307 if test $gcc_cv_math_func_ynf = yes; then
24309 cat >>confdefs.h <<_ACEOF
24310 #define HAVE_YNF 1
24311 _ACEOF
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24319 $as_echo_n "checking for yn... " >&6; }
24320 if ${gcc_cv_math_func_yn+:} false; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 if test x$gcc_no_link = xyes; then
24324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327 /* end confdefs.h. */
24329 #ifdef HAVE_COMPLEX_H
24330 #include <complex.h>
24331 #endif
24332 #ifdef HAVE_MATH_H
24333 #include <math.h>
24334 #endif
24336 int (*ptr)() = (int (*)())yn;
24339 main ()
24341 return 0;
24344 _ACEOF
24345 if ac_fn_c_try_link "$LINENO"; then :
24346 gcc_cv_math_func_yn=yes
24347 else
24348 gcc_cv_math_func_yn=no
24350 rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24354 $as_echo "$gcc_cv_math_func_yn" >&6; }
24355 if test $gcc_cv_math_func_yn = yes; then
24357 cat >>confdefs.h <<_ACEOF
24358 #define HAVE_YN 1
24359 _ACEOF
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24367 $as_echo_n "checking for ynl... " >&6; }
24368 if ${gcc_cv_math_func_ynl+:} false; then :
24369 $as_echo_n "(cached) " >&6
24370 else
24371 if test x$gcc_no_link = xyes; then
24372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24377 #ifdef HAVE_COMPLEX_H
24378 #include <complex.h>
24379 #endif
24380 #ifdef HAVE_MATH_H
24381 #include <math.h>
24382 #endif
24384 int (*ptr)() = (int (*)())ynl;
24387 main ()
24389 return 0;
24392 _ACEOF
24393 if ac_fn_c_try_link "$LINENO"; then :
24394 gcc_cv_math_func_ynl=yes
24395 else
24396 gcc_cv_math_func_ynl=no
24398 rm -f core conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24402 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24403 if test $gcc_cv_math_func_ynl = yes; then
24405 cat >>confdefs.h <<_ACEOF
24406 #define HAVE_YNL 1
24407 _ACEOF
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24415 $as_echo_n "checking for tgamma... " >&6; }
24416 if ${gcc_cv_math_func_tgamma+:} false; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 if test x$gcc_no_link = xyes; then
24420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24423 /* end confdefs.h. */
24425 #ifdef HAVE_COMPLEX_H
24426 #include <complex.h>
24427 #endif
24428 #ifdef HAVE_MATH_H
24429 #include <math.h>
24430 #endif
24432 int (*ptr)() = (int (*)())tgamma;
24435 main ()
24437 return 0;
24440 _ACEOF
24441 if ac_fn_c_try_link "$LINENO"; then :
24442 gcc_cv_math_func_tgamma=yes
24443 else
24444 gcc_cv_math_func_tgamma=no
24446 rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24450 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24451 if test $gcc_cv_math_func_tgamma = yes; then
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_TGAMMA 1
24455 _ACEOF
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24463 $as_echo_n "checking for tgammaf... " >&6; }
24464 if ${gcc_cv_math_func_tgammaf+:} false; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 if test x$gcc_no_link = xyes; then
24468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24473 #ifdef HAVE_COMPLEX_H
24474 #include <complex.h>
24475 #endif
24476 #ifdef HAVE_MATH_H
24477 #include <math.h>
24478 #endif
24480 int (*ptr)() = (int (*)())tgammaf;
24483 main ()
24485 return 0;
24488 _ACEOF
24489 if ac_fn_c_try_link "$LINENO"; then :
24490 gcc_cv_math_func_tgammaf=yes
24491 else
24492 gcc_cv_math_func_tgammaf=no
24494 rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24498 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24499 if test $gcc_cv_math_func_tgammaf = yes; then
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_TGAMMAF 1
24503 _ACEOF
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24511 $as_echo_n "checking for lgamma... " >&6; }
24512 if ${gcc_cv_math_func_lgamma+:} false; then :
24513 $as_echo_n "(cached) " >&6
24514 else
24515 if test x$gcc_no_link = xyes; then
24516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24519 /* end confdefs.h. */
24521 #ifdef HAVE_COMPLEX_H
24522 #include <complex.h>
24523 #endif
24524 #ifdef HAVE_MATH_H
24525 #include <math.h>
24526 #endif
24528 int (*ptr)() = (int (*)())lgamma;
24531 main ()
24533 return 0;
24536 _ACEOF
24537 if ac_fn_c_try_link "$LINENO"; then :
24538 gcc_cv_math_func_lgamma=yes
24539 else
24540 gcc_cv_math_func_lgamma=no
24542 rm -f core conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24546 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24547 if test $gcc_cv_math_func_lgamma = yes; then
24549 cat >>confdefs.h <<_ACEOF
24550 #define HAVE_LGAMMA 1
24551 _ACEOF
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24559 $as_echo_n "checking for lgammaf... " >&6; }
24560 if ${gcc_cv_math_func_lgammaf+:} false; then :
24561 $as_echo_n "(cached) " >&6
24562 else
24563 if test x$gcc_no_link = xyes; then
24564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h. */
24569 #ifdef HAVE_COMPLEX_H
24570 #include <complex.h>
24571 #endif
24572 #ifdef HAVE_MATH_H
24573 #include <math.h>
24574 #endif
24576 int (*ptr)() = (int (*)())lgammaf;
24579 main ()
24581 return 0;
24584 _ACEOF
24585 if ac_fn_c_try_link "$LINENO"; then :
24586 gcc_cv_math_func_lgammaf=yes
24587 else
24588 gcc_cv_math_func_lgammaf=no
24590 rm -f core conftest.err conftest.$ac_objext \
24591 conftest$ac_exeext conftest.$ac_ext
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24594 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24595 if test $gcc_cv_math_func_lgammaf = yes; then
24597 cat >>confdefs.h <<_ACEOF
24598 #define HAVE_LGAMMAF 1
24599 _ACEOF
24604 # Check for GFORTRAN_C99_1.1 funcs
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24609 $as_echo_n "checking for cacos... " >&6; }
24610 if ${gcc_cv_math_func_cacos+:} false; then :
24611 $as_echo_n "(cached) " >&6
24612 else
24613 if test x$gcc_no_link = xyes; then
24614 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617 /* end confdefs.h. */
24619 #ifdef HAVE_COMPLEX_H
24620 #include <complex.h>
24621 #endif
24622 #ifdef HAVE_MATH_H
24623 #include <math.h>
24624 #endif
24626 int (*ptr)() = (int (*)())cacos;
24629 main ()
24631 return 0;
24634 _ACEOF
24635 if ac_fn_c_try_link "$LINENO"; then :
24636 gcc_cv_math_func_cacos=yes
24637 else
24638 gcc_cv_math_func_cacos=no
24640 rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24644 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24645 if test $gcc_cv_math_func_cacos = yes; then
24647 cat >>confdefs.h <<_ACEOF
24648 #define HAVE_CACOS 1
24649 _ACEOF
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24657 $as_echo_n "checking for cacosf... " >&6; }
24658 if ${gcc_cv_math_func_cacosf+:} false; then :
24659 $as_echo_n "(cached) " >&6
24660 else
24661 if test x$gcc_no_link = xyes; then
24662 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665 /* end confdefs.h. */
24667 #ifdef HAVE_COMPLEX_H
24668 #include <complex.h>
24669 #endif
24670 #ifdef HAVE_MATH_H
24671 #include <math.h>
24672 #endif
24674 int (*ptr)() = (int (*)())cacosf;
24677 main ()
24679 return 0;
24682 _ACEOF
24683 if ac_fn_c_try_link "$LINENO"; then :
24684 gcc_cv_math_func_cacosf=yes
24685 else
24686 gcc_cv_math_func_cacosf=no
24688 rm -f core conftest.err conftest.$ac_objext \
24689 conftest$ac_exeext conftest.$ac_ext
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24692 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24693 if test $gcc_cv_math_func_cacosf = yes; then
24695 cat >>confdefs.h <<_ACEOF
24696 #define HAVE_CACOSF 1
24697 _ACEOF
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24705 $as_echo_n "checking for cacosh... " >&6; }
24706 if ${gcc_cv_math_func_cacosh+:} false; then :
24707 $as_echo_n "(cached) " >&6
24708 else
24709 if test x$gcc_no_link = xyes; then
24710 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713 /* end confdefs.h. */
24715 #ifdef HAVE_COMPLEX_H
24716 #include <complex.h>
24717 #endif
24718 #ifdef HAVE_MATH_H
24719 #include <math.h>
24720 #endif
24722 int (*ptr)() = (int (*)())cacosh;
24725 main ()
24727 return 0;
24730 _ACEOF
24731 if ac_fn_c_try_link "$LINENO"; then :
24732 gcc_cv_math_func_cacosh=yes
24733 else
24734 gcc_cv_math_func_cacosh=no
24736 rm -f core conftest.err conftest.$ac_objext \
24737 conftest$ac_exeext conftest.$ac_ext
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24740 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24741 if test $gcc_cv_math_func_cacosh = yes; then
24743 cat >>confdefs.h <<_ACEOF
24744 #define HAVE_CACOSH 1
24745 _ACEOF
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24753 $as_echo_n "checking for cacoshf... " >&6; }
24754 if ${gcc_cv_math_func_cacoshf+:} false; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 if test x$gcc_no_link = xyes; then
24758 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h. */
24763 #ifdef HAVE_COMPLEX_H
24764 #include <complex.h>
24765 #endif
24766 #ifdef HAVE_MATH_H
24767 #include <math.h>
24768 #endif
24770 int (*ptr)() = (int (*)())cacoshf;
24773 main ()
24775 return 0;
24778 _ACEOF
24779 if ac_fn_c_try_link "$LINENO"; then :
24780 gcc_cv_math_func_cacoshf=yes
24781 else
24782 gcc_cv_math_func_cacoshf=no
24784 rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24788 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24789 if test $gcc_cv_math_func_cacoshf = yes; then
24791 cat >>confdefs.h <<_ACEOF
24792 #define HAVE_CACOSHF 1
24793 _ACEOF
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24801 $as_echo_n "checking for cacoshl... " >&6; }
24802 if ${gcc_cv_math_func_cacoshl+:} false; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 if test x$gcc_no_link = xyes; then
24806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809 /* end confdefs.h. */
24811 #ifdef HAVE_COMPLEX_H
24812 #include <complex.h>
24813 #endif
24814 #ifdef HAVE_MATH_H
24815 #include <math.h>
24816 #endif
24818 int (*ptr)() = (int (*)())cacoshl;
24821 main ()
24823 return 0;
24826 _ACEOF
24827 if ac_fn_c_try_link "$LINENO"; then :
24828 gcc_cv_math_func_cacoshl=yes
24829 else
24830 gcc_cv_math_func_cacoshl=no
24832 rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24836 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24837 if test $gcc_cv_math_func_cacoshl = yes; then
24839 cat >>confdefs.h <<_ACEOF
24840 #define HAVE_CACOSHL 1
24841 _ACEOF
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24849 $as_echo_n "checking for cacosl... " >&6; }
24850 if ${gcc_cv_math_func_cacosl+:} false; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 if test x$gcc_no_link = xyes; then
24854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24859 #ifdef HAVE_COMPLEX_H
24860 #include <complex.h>
24861 #endif
24862 #ifdef HAVE_MATH_H
24863 #include <math.h>
24864 #endif
24866 int (*ptr)() = (int (*)())cacosl;
24869 main ()
24871 return 0;
24874 _ACEOF
24875 if ac_fn_c_try_link "$LINENO"; then :
24876 gcc_cv_math_func_cacosl=yes
24877 else
24878 gcc_cv_math_func_cacosl=no
24880 rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24884 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24885 if test $gcc_cv_math_func_cacosl = yes; then
24887 cat >>confdefs.h <<_ACEOF
24888 #define HAVE_CACOSL 1
24889 _ACEOF
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24897 $as_echo_n "checking for casin... " >&6; }
24898 if ${gcc_cv_math_func_casin+:} false; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 if test x$gcc_no_link = xyes; then
24902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h. */
24907 #ifdef HAVE_COMPLEX_H
24908 #include <complex.h>
24909 #endif
24910 #ifdef HAVE_MATH_H
24911 #include <math.h>
24912 #endif
24914 int (*ptr)() = (int (*)())casin;
24917 main ()
24919 return 0;
24922 _ACEOF
24923 if ac_fn_c_try_link "$LINENO"; then :
24924 gcc_cv_math_func_casin=yes
24925 else
24926 gcc_cv_math_func_casin=no
24928 rm -f core conftest.err conftest.$ac_objext \
24929 conftest$ac_exeext conftest.$ac_ext
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24932 $as_echo "$gcc_cv_math_func_casin" >&6; }
24933 if test $gcc_cv_math_func_casin = yes; then
24935 cat >>confdefs.h <<_ACEOF
24936 #define HAVE_CASIN 1
24937 _ACEOF
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24945 $as_echo_n "checking for casinf... " >&6; }
24946 if ${gcc_cv_math_func_casinf+:} false; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 if test x$gcc_no_link = xyes; then
24950 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953 /* end confdefs.h. */
24955 #ifdef HAVE_COMPLEX_H
24956 #include <complex.h>
24957 #endif
24958 #ifdef HAVE_MATH_H
24959 #include <math.h>
24960 #endif
24962 int (*ptr)() = (int (*)())casinf;
24965 main ()
24967 return 0;
24970 _ACEOF
24971 if ac_fn_c_try_link "$LINENO"; then :
24972 gcc_cv_math_func_casinf=yes
24973 else
24974 gcc_cv_math_func_casinf=no
24976 rm -f core conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24980 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24981 if test $gcc_cv_math_func_casinf = yes; then
24983 cat >>confdefs.h <<_ACEOF
24984 #define HAVE_CASINF 1
24985 _ACEOF
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24993 $as_echo_n "checking for casinh... " >&6; }
24994 if ${gcc_cv_math_func_casinh+:} false; then :
24995 $as_echo_n "(cached) " >&6
24996 else
24997 if test x$gcc_no_link = xyes; then
24998 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h. */
25003 #ifdef HAVE_COMPLEX_H
25004 #include <complex.h>
25005 #endif
25006 #ifdef HAVE_MATH_H
25007 #include <math.h>
25008 #endif
25010 int (*ptr)() = (int (*)())casinh;
25013 main ()
25015 return 0;
25018 _ACEOF
25019 if ac_fn_c_try_link "$LINENO"; then :
25020 gcc_cv_math_func_casinh=yes
25021 else
25022 gcc_cv_math_func_casinh=no
25024 rm -f core conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25028 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25029 if test $gcc_cv_math_func_casinh = yes; then
25031 cat >>confdefs.h <<_ACEOF
25032 #define HAVE_CASINH 1
25033 _ACEOF
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25041 $as_echo_n "checking for casinhf... " >&6; }
25042 if ${gcc_cv_math_func_casinhf+:} false; then :
25043 $as_echo_n "(cached) " >&6
25044 else
25045 if test x$gcc_no_link = xyes; then
25046 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049 /* end confdefs.h. */
25051 #ifdef HAVE_COMPLEX_H
25052 #include <complex.h>
25053 #endif
25054 #ifdef HAVE_MATH_H
25055 #include <math.h>
25056 #endif
25058 int (*ptr)() = (int (*)())casinhf;
25061 main ()
25063 return 0;
25066 _ACEOF
25067 if ac_fn_c_try_link "$LINENO"; then :
25068 gcc_cv_math_func_casinhf=yes
25069 else
25070 gcc_cv_math_func_casinhf=no
25072 rm -f core conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25076 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25077 if test $gcc_cv_math_func_casinhf = yes; then
25079 cat >>confdefs.h <<_ACEOF
25080 #define HAVE_CASINHF 1
25081 _ACEOF
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25089 $as_echo_n "checking for casinhl... " >&6; }
25090 if ${gcc_cv_math_func_casinhl+:} false; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 if test x$gcc_no_link = xyes; then
25094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h. */
25099 #ifdef HAVE_COMPLEX_H
25100 #include <complex.h>
25101 #endif
25102 #ifdef HAVE_MATH_H
25103 #include <math.h>
25104 #endif
25106 int (*ptr)() = (int (*)())casinhl;
25109 main ()
25111 return 0;
25114 _ACEOF
25115 if ac_fn_c_try_link "$LINENO"; then :
25116 gcc_cv_math_func_casinhl=yes
25117 else
25118 gcc_cv_math_func_casinhl=no
25120 rm -f core conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25124 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25125 if test $gcc_cv_math_func_casinhl = yes; then
25127 cat >>confdefs.h <<_ACEOF
25128 #define HAVE_CASINHL 1
25129 _ACEOF
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25137 $as_echo_n "checking for casinl... " >&6; }
25138 if ${gcc_cv_math_func_casinl+:} false; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 if test x$gcc_no_link = xyes; then
25142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h. */
25147 #ifdef HAVE_COMPLEX_H
25148 #include <complex.h>
25149 #endif
25150 #ifdef HAVE_MATH_H
25151 #include <math.h>
25152 #endif
25154 int (*ptr)() = (int (*)())casinl;
25157 main ()
25159 return 0;
25162 _ACEOF
25163 if ac_fn_c_try_link "$LINENO"; then :
25164 gcc_cv_math_func_casinl=yes
25165 else
25166 gcc_cv_math_func_casinl=no
25168 rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25172 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25173 if test $gcc_cv_math_func_casinl = yes; then
25175 cat >>confdefs.h <<_ACEOF
25176 #define HAVE_CASINL 1
25177 _ACEOF
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25185 $as_echo_n "checking for catan... " >&6; }
25186 if ${gcc_cv_math_func_catan+:} false; then :
25187 $as_echo_n "(cached) " >&6
25188 else
25189 if test x$gcc_no_link = xyes; then
25190 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193 /* end confdefs.h. */
25195 #ifdef HAVE_COMPLEX_H
25196 #include <complex.h>
25197 #endif
25198 #ifdef HAVE_MATH_H
25199 #include <math.h>
25200 #endif
25202 int (*ptr)() = (int (*)())catan;
25205 main ()
25207 return 0;
25210 _ACEOF
25211 if ac_fn_c_try_link "$LINENO"; then :
25212 gcc_cv_math_func_catan=yes
25213 else
25214 gcc_cv_math_func_catan=no
25216 rm -f core conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25220 $as_echo "$gcc_cv_math_func_catan" >&6; }
25221 if test $gcc_cv_math_func_catan = yes; then
25223 cat >>confdefs.h <<_ACEOF
25224 #define HAVE_CATAN 1
25225 _ACEOF
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25233 $as_echo_n "checking for catanf... " >&6; }
25234 if ${gcc_cv_math_func_catanf+:} false; then :
25235 $as_echo_n "(cached) " >&6
25236 else
25237 if test x$gcc_no_link = xyes; then
25238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25241 /* end confdefs.h. */
25243 #ifdef HAVE_COMPLEX_H
25244 #include <complex.h>
25245 #endif
25246 #ifdef HAVE_MATH_H
25247 #include <math.h>
25248 #endif
25250 int (*ptr)() = (int (*)())catanf;
25253 main ()
25255 return 0;
25258 _ACEOF
25259 if ac_fn_c_try_link "$LINENO"; then :
25260 gcc_cv_math_func_catanf=yes
25261 else
25262 gcc_cv_math_func_catanf=no
25264 rm -f core conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25268 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25269 if test $gcc_cv_math_func_catanf = yes; then
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_CATANF 1
25273 _ACEOF
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25281 $as_echo_n "checking for catanh... " >&6; }
25282 if ${gcc_cv_math_func_catanh+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 if test x$gcc_no_link = xyes; then
25286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25291 #ifdef HAVE_COMPLEX_H
25292 #include <complex.h>
25293 #endif
25294 #ifdef HAVE_MATH_H
25295 #include <math.h>
25296 #endif
25298 int (*ptr)() = (int (*)())catanh;
25301 main ()
25303 return 0;
25306 _ACEOF
25307 if ac_fn_c_try_link "$LINENO"; then :
25308 gcc_cv_math_func_catanh=yes
25309 else
25310 gcc_cv_math_func_catanh=no
25312 rm -f core conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25316 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25317 if test $gcc_cv_math_func_catanh = yes; then
25319 cat >>confdefs.h <<_ACEOF
25320 #define HAVE_CATANH 1
25321 _ACEOF
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25329 $as_echo_n "checking for catanhf... " >&6; }
25330 if ${gcc_cv_math_func_catanhf+:} false; then :
25331 $as_echo_n "(cached) " >&6
25332 else
25333 if test x$gcc_no_link = xyes; then
25334 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337 /* end confdefs.h. */
25339 #ifdef HAVE_COMPLEX_H
25340 #include <complex.h>
25341 #endif
25342 #ifdef HAVE_MATH_H
25343 #include <math.h>
25344 #endif
25346 int (*ptr)() = (int (*)())catanhf;
25349 main ()
25351 return 0;
25354 _ACEOF
25355 if ac_fn_c_try_link "$LINENO"; then :
25356 gcc_cv_math_func_catanhf=yes
25357 else
25358 gcc_cv_math_func_catanhf=no
25360 rm -f core conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25364 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25365 if test $gcc_cv_math_func_catanhf = yes; then
25367 cat >>confdefs.h <<_ACEOF
25368 #define HAVE_CATANHF 1
25369 _ACEOF
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25377 $as_echo_n "checking for catanhl... " >&6; }
25378 if ${gcc_cv_math_func_catanhl+:} false; then :
25379 $as_echo_n "(cached) " >&6
25380 else
25381 if test x$gcc_no_link = xyes; then
25382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h. */
25387 #ifdef HAVE_COMPLEX_H
25388 #include <complex.h>
25389 #endif
25390 #ifdef HAVE_MATH_H
25391 #include <math.h>
25392 #endif
25394 int (*ptr)() = (int (*)())catanhl;
25397 main ()
25399 return 0;
25402 _ACEOF
25403 if ac_fn_c_try_link "$LINENO"; then :
25404 gcc_cv_math_func_catanhl=yes
25405 else
25406 gcc_cv_math_func_catanhl=no
25408 rm -f core conftest.err conftest.$ac_objext \
25409 conftest$ac_exeext conftest.$ac_ext
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25412 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25413 if test $gcc_cv_math_func_catanhl = yes; then
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_CATANHL 1
25417 _ACEOF
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25425 $as_echo_n "checking for catanl... " >&6; }
25426 if ${gcc_cv_math_func_catanl+:} false; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 if test x$gcc_no_link = xyes; then
25430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25435 #ifdef HAVE_COMPLEX_H
25436 #include <complex.h>
25437 #endif
25438 #ifdef HAVE_MATH_H
25439 #include <math.h>
25440 #endif
25442 int (*ptr)() = (int (*)())catanl;
25445 main ()
25447 return 0;
25450 _ACEOF
25451 if ac_fn_c_try_link "$LINENO"; then :
25452 gcc_cv_math_func_catanl=yes
25453 else
25454 gcc_cv_math_func_catanl=no
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25460 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25461 if test $gcc_cv_math_func_catanl = yes; then
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_CATANL 1
25465 _ACEOF
25470 # On AIX, clog is present in libm as __clog
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25472 $as_echo_n "checking for __clog in -lm... " >&6; }
25473 if ${ac_cv_lib_m___clog+:} false; then :
25474 $as_echo_n "(cached) " >&6
25475 else
25476 ac_check_lib_save_LIBS=$LIBS
25477 LIBS="-lm $LIBS"
25478 if test x$gcc_no_link = xyes; then
25479 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482 /* end confdefs.h. */
25484 /* Override any GCC internal prototype to avoid an error.
25485 Use char because int might match the return type of a GCC
25486 builtin and then its argument prototype would still apply. */
25487 #ifdef __cplusplus
25488 extern "C"
25489 #endif
25490 char __clog ();
25492 main ()
25494 return __clog ();
25496 return 0;
25498 _ACEOF
25499 if ac_fn_c_try_link "$LINENO"; then :
25500 ac_cv_lib_m___clog=yes
25501 else
25502 ac_cv_lib_m___clog=no
25504 rm -f core conftest.err conftest.$ac_objext \
25505 conftest$ac_exeext conftest.$ac_ext
25506 LIBS=$ac_check_lib_save_LIBS
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25509 $as_echo "$ac_cv_lib_m___clog" >&6; }
25510 if test "x$ac_cv_lib_m___clog" = xyes; then :
25512 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25517 # Check whether the system has a working stat()
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25520 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25521 if ${libgfor_cv_have_working_stat+:} false; then :
25522 $as_echo_n "(cached) " >&6
25523 else
25525 if test "$cross_compiling" = yes; then :
25527 case "${target}" in
25528 *mingw*) libgfor_cv_have_working_stat=no ;;
25529 *) libgfor_cv_have_working_stat=yes;;
25530 esac
25531 else
25532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25533 /* end confdefs.h. */
25535 #include <stdio.h>
25536 #include <sys/types.h>
25537 #include <sys/stat.h>
25538 #include <unistd.h>
25540 int main ()
25542 FILE *f, *g;
25543 struct stat st1, st2;
25545 f = fopen ("foo", "w");
25546 g = fopen ("bar", "w");
25547 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25548 return 1;
25549 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25550 return 1;
25551 fclose(f);
25552 fclose(g);
25553 return 0;
25555 _ACEOF
25556 if ac_fn_c_try_run "$LINENO"; then :
25557 libgfor_cv_have_working_stat=yes
25558 else
25559 libgfor_cv_have_working_stat=no
25561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25562 conftest.$ac_objext conftest.beam conftest.$ac_ext
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25567 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25568 if test x"$libgfor_cv_have_working_stat" = xyes; then
25570 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25574 # Check whether __mingw_snprintf() is present
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25577 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25578 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25582 if test x$gcc_no_link = xyes; then
25583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25588 #include <stdio.h>
25589 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25592 main ()
25595 __mingw_snprintf (NULL, 0, "%d\n", 1);
25598 return 0;
25600 _ACEOF
25601 if ac_fn_c_try_link "$LINENO"; then :
25602 eval "libgfor_cv_have_mingw_snprintf=yes"
25603 else
25604 eval "libgfor_cv_have_mingw_snprintf=no"
25606 rm -f core conftest.err conftest.$ac_objext \
25607 conftest$ac_exeext conftest.$ac_ext
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25611 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25612 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25614 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25619 # Check whether libquadmath should be used
25620 # Check whether --enable-libquadmath-support was given.
25621 if test "${enable_libquadmath_support+set}" = set; then :
25622 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25623 else
25624 ENABLE_LIBQUADMATH_SUPPORT=yes
25627 enable_libquadmath_support=
25628 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25629 enable_libquadmath_support=no
25632 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25634 LIBQUADSPEC=
25636 if test "x$enable_libquadmath_support" != xno; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25639 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25640 if ${libgfor_cv_have_float128+:} false; then :
25641 $as_echo_n "(cached) " >&6
25642 else
25644 if test x$gcc_no_link = xyes; then
25645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25646 /* end confdefs.h. */
25648 typedef _Complex float __attribute__((mode(TC))) __complex128;
25650 __float128 foo (__float128 x)
25653 __complex128 z1, z2;
25655 z1 = x;
25656 z2 = x / 7.Q;
25657 z2 /= z1;
25659 return (__float128) z2;
25662 __float128 bar (__float128 x)
25664 return x * __builtin_huge_valq ();
25668 main ()
25671 foo (1.2Q);
25672 bar (1.2Q);
25675 return 0;
25677 _ACEOF
25678 if ac_fn_c_try_compile "$LINENO"; then :
25680 libgfor_cv_have_float128=yes
25682 else
25684 libgfor_cv_have_float128=no
25687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688 else
25689 if test x$gcc_no_link = xyes; then
25690 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h. */
25695 typedef _Complex float __attribute__((mode(TC))) __complex128;
25697 __float128 foo (__float128 x)
25700 __complex128 z1, z2;
25702 z1 = x;
25703 z2 = x / 7.Q;
25704 z2 /= z1;
25706 return (__float128) z2;
25709 __float128 bar (__float128 x)
25711 return x * __builtin_huge_valq ();
25715 main ()
25718 foo (1.2Q);
25719 bar (1.2Q);
25722 return 0;
25724 _ACEOF
25725 if ac_fn_c_try_link "$LINENO"; then :
25727 libgfor_cv_have_float128=yes
25729 else
25731 libgfor_cv_have_float128=no
25734 rm -f core conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25739 $as_echo "$libgfor_cv_have_float128" >&6; }
25741 if test "x$libgfor_cv_have_float128" = xyes; then
25743 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25746 ac_xsave_c_werror_flag=$ac_c_werror_flag
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25748 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25749 if ${libgfor_cv_have_as_needed+:} false; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25753 # Test for native Solaris options first.
25754 # No whitespace after -z to pass it through -Wl.
25755 libgfor_cv_as_needed_option="-zignore"
25756 libgfor_cv_no_as_needed_option="-zrecord"
25757 save_LDFLAGS="$LDFLAGS"
25758 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25759 libgfor_cv_have_as_needed=no
25761 ac_c_werror_flag=yes
25762 if test x$gcc_no_link = xyes; then
25763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25769 main ()
25773 return 0;
25775 _ACEOF
25776 if ac_fn_c_try_link "$LINENO"; then :
25777 libgfor_cv_have_as_needed=yes
25778 else
25779 libgfor_cv_have_as_needed=no
25781 rm -f core conftest.err conftest.$ac_objext \
25782 conftest$ac_exeext conftest.$ac_ext
25783 LDFLAGS="$save_LDFLAGS"
25784 if test "x$libgfor_cv_have_as_needed" = xno; then
25785 libgfor_cv_as_needed_option="--as-needed"
25786 libgfor_cv_no_as_needed_option="--no-as-needed"
25787 save_LDFLAGS="$LDFLAGS"
25788 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25789 libgfor_cv_have_as_needed=no
25791 ac_c_werror_flag=yes
25792 if test x$gcc_no_link = xyes; then
25793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796 /* end confdefs.h. */
25799 main ()
25803 return 0;
25805 _ACEOF
25806 if ac_fn_c_try_link "$LINENO"; then :
25807 libgfor_cv_have_as_needed=yes
25808 else
25809 libgfor_cv_have_as_needed=no
25811 rm -f core conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
25813 LDFLAGS="$save_LDFLAGS"
25815 ac_c_werror_flag=$ac_xsave_c_werror_flag
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25819 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25821 if test "x$libgfor_cv_have_as_needed" = xyes; then
25822 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25823 else
25824 LIBQUADSPEC="-lquadmath"
25826 if test -f ../libquadmath/libquadmath.la; then
25827 LIBQUADLIB=../libquadmath/libquadmath.la
25828 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25829 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25830 else
25831 LIBQUADLIB="-lquadmath"
25832 LIBQUADLIB_DEP=
25833 LIBQUADINCLUDE=
25836 else
25837 # for --disable-quadmath
25838 LIBQUADLIB=
25839 LIBQUADLIB_DEP=
25840 LIBQUADINCLUDE=
25848 if test "x$libgfor_cv_have_float128" = xyes; then
25849 LIBGFOR_BUILD_QUAD_TRUE=
25850 LIBGFOR_BUILD_QUAD_FALSE='#'
25851 else
25852 LIBGFOR_BUILD_QUAD_TRUE='#'
25853 LIBGFOR_BUILD_QUAD_FALSE=
25858 # Check for GNU libc feenableexcept
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25860 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25861 if ${ac_cv_lib_m_feenableexcept+:} false; then :
25862 $as_echo_n "(cached) " >&6
25863 else
25864 ac_check_lib_save_LIBS=$LIBS
25865 LIBS="-lm $LIBS"
25866 if test x$gcc_no_link = xyes; then
25867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25870 /* end confdefs.h. */
25872 /* Override any GCC internal prototype to avoid an error.
25873 Use char because int might match the return type of a GCC
25874 builtin and then its argument prototype would still apply. */
25875 #ifdef __cplusplus
25876 extern "C"
25877 #endif
25878 char feenableexcept ();
25880 main ()
25882 return feenableexcept ();
25884 return 0;
25886 _ACEOF
25887 if ac_fn_c_try_link "$LINENO"; then :
25888 ac_cv_lib_m_feenableexcept=yes
25889 else
25890 ac_cv_lib_m_feenableexcept=no
25892 rm -f core conftest.err conftest.$ac_objext \
25893 conftest$ac_exeext conftest.$ac_ext
25894 LIBS=$ac_check_lib_save_LIBS
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25897 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25898 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
25899 have_feenableexcept=yes
25900 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25905 # At least for glibc, clock_gettime is in librt. But don't
25906 # pull that in if it still doesn't give us the function we want. This
25907 # test is copied from libgomp, and modified to not link in -lrt as
25908 # libgfortran calls clock_gettime via a weak reference if it's found
25909 # in librt.
25910 if test "$ac_cv_func_clock_gettime" = no; then
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25912 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25913 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 ac_check_lib_save_LIBS=$LIBS
25917 LIBS="-lrt $LIBS"
25918 if test x$gcc_no_link = xyes; then
25919 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h. */
25924 /* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25927 #ifdef __cplusplus
25928 extern "C"
25929 #endif
25930 char clock_gettime ();
25932 main ()
25934 return clock_gettime ();
25936 return 0;
25938 _ACEOF
25939 if ac_fn_c_try_link "$LINENO"; then :
25940 ac_cv_lib_rt_clock_gettime=yes
25941 else
25942 ac_cv_lib_rt_clock_gettime=no
25944 rm -f core conftest.err conftest.$ac_objext \
25945 conftest$ac_exeext conftest.$ac_ext
25946 LIBS=$ac_check_lib_save_LIBS
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25949 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25950 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25952 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25958 # Check for SysV fpsetmask
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25961 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25962 if ${libgfor_cv_have_fpsetmask+:} false; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25966 if test x$gcc_no_link = xyes; then
25967 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h. */
25972 #if HAVE_FLOATINGPOINT_H
25973 # include <floatingpoint.h>
25974 #endif /* HAVE_FLOATINGPOINT_H */
25975 #if HAVE_IEEEFP_H
25976 # include <ieeefp.h>
25977 #endif /* HAVE_IEEEFP_H */
25979 main ()
25981 fpsetmask(0);
25983 return 0;
25985 _ACEOF
25986 if ac_fn_c_try_link "$LINENO"; then :
25987 eval "libgfor_cv_have_fpsetmask=yes"
25988 else
25989 eval "libgfor_cv_have_fpsetmask=no"
25991 rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25996 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25997 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25998 have_fpsetmask=yes
26000 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26004 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26005 #ifdef HAVE_IEEEFP_H
26006 #include <ieeefp.h>
26007 #endif
26008 #include <math.h>
26011 if test "x$ac_cv_type_fp_except" = xyes; then :
26013 cat >>confdefs.h <<_ACEOF
26014 #define HAVE_FP_EXCEPT 1
26015 _ACEOF
26019 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26020 #ifdef HAVE_IEEEFP_H
26021 #include <ieeefp.h>
26022 #endif
26023 #include <math.h>
26026 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26028 cat >>confdefs.h <<_ACEOF
26029 #define HAVE_FP_EXCEPT_T 1
26030 _ACEOF
26035 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26036 #ifdef HAVE_IEEEFP_H
26037 #include <ieeefp.h>
26038 #endif
26039 #include <math.h>
26042 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26044 cat >>confdefs.h <<_ACEOF
26045 #define HAVE_FP_RND 1
26046 _ACEOF
26050 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26051 #ifdef HAVE_IEEEFP_H
26052 #include <ieeefp.h>
26053 #endif
26054 #include <math.h>
26057 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26059 cat >>confdefs.h <<_ACEOF
26060 #define HAVE_FP_RND_T 1
26061 _ACEOF
26067 # Check whether we have fpsetsticky or fpresetsticky
26068 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26069 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26070 have_fpsetsticky=yes
26071 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26075 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26076 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26077 have_fpresetsticky=yes
26078 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26083 # Check for AIX fp_trap and fp_enable
26084 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26085 if test "x$ac_cv_func_fp_trap" = xyes; then :
26086 have_fp_trap=yes
26087 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26091 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26092 if test "x$ac_cv_func_fp_enable" = xyes; then :
26093 have_fp_enable=yes
26094 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26099 # Check if _SOFT_FLOAT is defined
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26102 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26103 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26104 $as_echo_n "(cached) " >&6
26105 else
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h. */
26110 main ()
26113 #ifdef _SOFT_FLOAT
26114 int ok;
26115 #else
26116 choke me
26117 #endif
26120 return 0;
26122 _ACEOF
26123 if ac_fn_c_try_compile "$LINENO"; then :
26124 ac_cv_defined__SOFT_FLOAT=yes
26125 else
26126 ac_cv_defined__SOFT_FLOAT=no
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26131 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26132 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26133 have_soft_float=yes
26136 # Runs configure.host to set up necessary host-dependent shell variables.
26137 # We then display a message about it, and propagate them through the
26138 # build chain.
26139 . ${srcdir}/configure.host
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26141 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26143 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26144 FPU_HOST_HEADER=config/${fpu_host}.h
26147 # Whether we will build the IEEE modules
26148 if test x${ieee_support} = xyes; then
26149 IEEE_SUPPORT_TRUE=
26150 IEEE_SUPPORT_FALSE='#'
26151 else
26152 IEEE_SUPPORT_TRUE='#'
26153 IEEE_SUPPORT_FALSE=
26158 # Some targets require additional compiler options for IEEE compatibility.
26159 IEEE_FLAGS="${ieee_flags}"
26163 # Check for POSIX getpwuid_r
26165 # There are two versions of getpwuid_r, the POSIX one with 5
26166 # arguments, and another one with 4 arguments used by at least HP-UX
26167 # 10.2.
26168 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26170 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26171 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26175 if test x$gcc_no_link = xyes; then
26176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h. */
26181 #include <stdio.h>
26182 #include <sys/types.h>
26183 #include <pwd.h>
26185 main ()
26188 getpwuid_r(0, NULL, NULL, 0, NULL);
26191 return 0;
26193 _ACEOF
26194 if ac_fn_c_try_link "$LINENO"; then :
26195 libgfor_cv_posix_getpwuid_r="yes"
26196 else
26197 libgfor_cv_posix_getpwuid_r="no"
26199 rm -f core conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26203 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26205 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26207 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26212 # Check out attribute support.
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26215 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26216 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26217 $as_echo_n "(cached) " >&6
26218 else
26220 save_CFLAGS="$CFLAGS"
26221 CFLAGS="$CFLAGS -Werror"
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26224 void __attribute__((visibility("hidden"))) foo(void) { }
26226 main ()
26230 return 0;
26232 _ACEOF
26233 if ac_fn_c_try_compile "$LINENO"; then :
26234 libgfor_cv_have_attribute_visibility=yes
26235 else
26236 libgfor_cv_have_attribute_visibility=no
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26239 CFLAGS="$save_CFLAGS"
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26242 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26243 if test $libgfor_cv_have_attribute_visibility = yes; then
26245 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26250 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26251 if ${libgfor_cv_have_attribute_alias+:} false; then :
26252 $as_echo_n "(cached) " >&6
26253 else
26255 if test x$gcc_no_link = xyes; then
26256 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26259 /* end confdefs.h. */
26261 void foo(void) { }
26262 extern void bar(void) __attribute__((alias("foo")));
26264 main ()
26266 bar();
26268 return 0;
26270 _ACEOF
26271 if ac_fn_c_try_link "$LINENO"; then :
26272 libgfor_cv_have_attribute_alias=yes
26273 else
26274 libgfor_cv_have_attribute_alias=no
26276 rm -f core conftest.err conftest.$ac_objext \
26277 conftest$ac_exeext conftest.$ac_ext
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26280 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26281 if test $libgfor_cv_have_attribute_alias = yes; then
26283 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26287 # Check out atomic builtins support.
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26290 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26291 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26295 if test x$gcc_no_link = xyes; then
26296 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26300 int foovar = 0;
26302 main ()
26305 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26306 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26308 return 0;
26310 _ACEOF
26311 if ac_fn_c_try_link "$LINENO"; then :
26312 libgfor_cv_have_atomic_fetch_add=yes
26313 else
26314 libgfor_cv_have_atomic_fetch_add=no
26316 rm -f core conftest.err conftest.$ac_objext \
26317 conftest$ac_exeext conftest.$ac_ext
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26320 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26321 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26323 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26327 # Check out #pragma weak.
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26330 $as_echo_n "checking whether pragma weak works... " >&6; }
26331 if ${libgfor_cv_have_pragma_weak+:} false; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26335 gfor_save_CFLAGS="$CFLAGS"
26336 CFLAGS="$CFLAGS -Wunknown-pragmas"
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26340 void foo (void);
26341 #pragma weak foo
26344 main ()
26346 if (foo) foo ();
26348 return 0;
26350 _ACEOF
26351 if ac_fn_c_try_compile "$LINENO"; then :
26352 libgfor_cv_have_pragma_weak=yes
26353 else
26354 libgfor_cv_have_pragma_weak=no
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26359 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26360 if test $libgfor_cv_have_pragma_weak = yes; then
26362 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26365 case "$host" in
26366 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26368 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26371 esac
26373 # Check out weakref support.
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26376 $as_echo_n "checking whether the target supports weakref... " >&6; }
26377 if ${libgfor_cv_have_weakref+:} false; then :
26378 $as_echo_n "(cached) " >&6
26379 else
26381 save_CFLAGS="$CFLAGS"
26382 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26383 if test x$gcc_no_link = xyes; then
26384 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387 /* end confdefs.h. */
26389 static int mytoto (int) __attribute__((__weakref__("toto")));
26392 main ()
26394 return (mytoto != 0);
26396 return 0;
26398 _ACEOF
26399 if ac_fn_c_try_link "$LINENO"; then :
26400 libgfor_cv_have_weakref=yes
26401 else
26402 libgfor_cv_have_weakref=no
26404 rm -f core conftest.err conftest.$ac_objext \
26405 conftest$ac_exeext conftest.$ac_ext
26406 CFLAGS="$save_CFLAGS"
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26409 $as_echo "$libgfor_cv_have_weakref" >&6; }
26410 if test $libgfor_cv_have_weakref = yes; then
26412 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26416 # Various other checks on target
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26419 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26420 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26421 $as_echo_n "(cached) " >&6
26422 else
26424 if test "$cross_compiling" = yes; then :
26426 case "${target}" in
26427 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26428 *) libgfor_cv_have_unlink_open_file=yes;;
26429 esac
26430 else
26431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432 /* end confdefs.h. */
26434 #include <errno.h>
26435 #include <fcntl.h>
26436 #include <unistd.h>
26437 #include <sys/stat.h>
26439 int main ()
26441 int fd;
26443 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26444 if (fd <= 0)
26445 return 0;
26446 if (unlink ("testfile") == -1)
26447 return 1;
26448 write (fd, "This is a test\n", 15);
26449 close (fd);
26451 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26452 return 0;
26453 else
26454 return 1;
26456 _ACEOF
26457 if ac_fn_c_try_run "$LINENO"; then :
26458 libgfor_cv_have_unlink_open_file=yes
26459 else
26460 libgfor_cv_have_unlink_open_file=no
26462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26463 conftest.$ac_objext conftest.beam conftest.$ac_ext
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26468 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26469 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26471 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26475 # Check whether line terminator is LF or CRLF
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26478 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26479 if ${libgfor_cv_have_crlf+:} false; then :
26480 $as_echo_n "(cached) " >&6
26481 else
26483 if test "$cross_compiling" = yes; then :
26485 case "${target}" in
26486 *mingw*) libgfor_cv_have_crlf=yes ;;
26487 *) libgfor_cv_have_crlf=no;;
26488 esac
26489 else
26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h. */
26493 /* This test program should exit with status 0 if system uses a CRLF as
26494 line terminator, and status 1 otherwise.
26495 Since it is used to check for mingw systems, and should return 0 in any
26496 other case, in case of a failure we will not use CRLF. */
26497 #include <sys/stat.h>
26498 #include <stdlib.h>
26499 #include <fcntl.h>
26500 #include <stdio.h>
26502 int main ()
26504 #ifndef O_BINARY
26505 exit(1);
26506 #else
26507 int fd, bytes;
26508 char buff[5];
26510 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26511 if (fd < 0)
26512 exit(1);
26513 if (write (fd, "\n", 1) < 0)
26514 perror ("write");
26516 close (fd);
26518 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26519 exit(1);
26520 bytes = read (fd, buff, 5);
26521 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26522 exit(0);
26523 else
26524 exit(1);
26525 #endif
26527 _ACEOF
26528 if ac_fn_c_try_run "$LINENO"; then :
26529 libgfor_cv_have_crlf=yes
26530 else
26531 libgfor_cv_have_crlf=no
26533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26534 conftest.$ac_objext conftest.beam conftest.$ac_ext
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26539 $as_echo "$libgfor_cv_have_crlf" >&6; }
26540 if test x"$libgfor_cv_have_crlf" = xyes; then
26542 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26546 # Check whether we support AVX extensions
26548 ac_save_CFLAGS="$CFLAGS"
26549 CFLAGS="-O2 -mavx"
26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h. */
26553 void _mm256_zeroall (void)
26555 __builtin_ia32_vzeroall ();
26558 main ()
26562 return 0;
26564 _ACEOF
26565 if ac_fn_c_try_compile "$LINENO"; then :
26567 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 CFLAGS="$ac_save_CFLAGS"
26574 # Check wether we support AVX2 extensions
26576 ac_save_CFLAGS="$CFLAGS"
26577 CFLAGS="-O2 -mavx2"
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h. */
26581 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26582 __v4di
26583 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26585 return __builtin_ia32_andnotsi256 (__X, __Y);
26588 main ()
26592 return 0;
26594 _ACEOF
26595 if ac_fn_c_try_compile "$LINENO"; then :
26597 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 CFLAGS="$ac_save_CFLAGS"
26604 # Check wether we support AVX512f extensions
26606 ac_save_CFLAGS="$CFLAGS"
26607 CFLAGS="-O2 -mavx512f"
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h. */
26611 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26612 __m512d _mm512_add (__m512d a)
26614 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26615 /* For -m64/-mx32 also verify that code will work even if
26616 the target uses call saved zmm16+ and needs to emit
26617 unwind info for them (e.g. on mingw). See PR79127. */
26618 #ifdef __x86_64__
26619 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26620 #endif
26621 return b;
26624 main ()
26628 return 0;
26630 _ACEOF
26631 if ac_fn_c_try_compile "$LINENO"; then :
26633 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 CFLAGS="$ac_save_CFLAGS"
26640 # Check for FMA3 extensions
26642 ac_save_CFLAGS="$CFLAGS"
26643 CFLAGS="-O2 -mfma -mno-fma4"
26644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h. */
26647 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26648 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26649 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26651 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26652 (__v4sf)__B,
26653 (__v4sf)__C);
26656 main ()
26660 return 0;
26662 _ACEOF
26663 if ac_fn_c_try_compile "$LINENO"; then :
26665 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 CFLAGS="$ac_save_CFLAGS"
26672 # Check for FMA4 extensions
26674 ac_save_CFLAGS="$CFLAGS"
26675 CFLAGS="-O2 -mfma4 -mno-fma"
26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677 /* end confdefs.h. */
26679 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26680 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26681 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26683 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26684 (__v4sf)__B,
26685 (__v4sf)__C);
26688 main ()
26692 return 0;
26694 _ACEOF
26695 if ac_fn_c_try_compile "$LINENO"; then :
26697 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26701 CFLAGS="$ac_save_CFLAGS"
26704 # Check if AVX128 works
26706 ac_save_CFLAGS="$CFLAGS"
26707 CFLAGS="-O2 -mavx -mprefer-avx128"
26708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h. */
26711 void foo()
26715 main ()
26719 return 0;
26721 _ACEOF
26722 if ac_fn_c_try_compile "$LINENO"; then :
26724 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26726 if true; then
26727 HAVE_AVX128_TRUE=
26728 HAVE_AVX128_FALSE='#'
26729 else
26730 HAVE_AVX128_TRUE='#'
26731 HAVE_AVX128_FALSE=
26734 else
26735 if false; then
26736 HAVE_AVX128_TRUE=
26737 HAVE_AVX128_FALSE='#'
26738 else
26739 HAVE_AVX128_TRUE='#'
26740 HAVE_AVX128_FALSE=
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745 CFLAGS="$ac_save_CFLAGS"
26748 # Determine what GCC version number to use in filesystem paths.
26750 get_gcc_base_ver="cat"
26752 # Check whether --with-gcc-major-version-only was given.
26753 if test "${with_gcc_major_version_only+set}" = set; then :
26754 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26755 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
26763 cat >confcache <<\_ACEOF
26764 # This file is a shell script that caches the results of configure
26765 # tests run on this system so they can be shared between configure
26766 # scripts and configure runs, see configure's option --config-cache.
26767 # It is not useful on other systems. If it contains results you don't
26768 # want to keep, you may remove or edit it.
26770 # config.status only pays attention to the cache file if you give it
26771 # the --recheck option to rerun configure.
26773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26775 # following values.
26777 _ACEOF
26779 # The following way of writing the cache mishandles newlines in values,
26780 # but we know of no workaround that is simple, portable, and efficient.
26781 # So, we kill variables containing newlines.
26782 # Ultrix sh set writes to stderr and can't be redirected directly,
26783 # and sets the high bit in the cache file unless we assign to the vars.
26785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26786 eval ac_val=\$$ac_var
26787 case $ac_val in #(
26788 *${as_nl}*)
26789 case $ac_var in #(
26790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26792 esac
26793 case $ac_var in #(
26794 _ | IFS | as_nl) ;; #(
26795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26796 *) { eval $ac_var=; unset $ac_var;} ;;
26797 esac ;;
26798 esac
26799 done
26801 (set) 2>&1 |
26802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26803 *${as_nl}ac_space=\ *)
26804 # `set' does not quote correctly, so add quotes: double-quote
26805 # substitution turns \\\\ into \\, and sed turns \\ into \.
26806 sed -n \
26807 "s/'/'\\\\''/g;
26808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26809 ;; #(
26811 # `set' quotes correctly as required by POSIX, so do not add quotes.
26812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26814 esac |
26815 sort
26817 sed '
26818 /^ac_cv_env_/b end
26819 t clear
26820 :clear
26821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26822 t end
26823 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26824 :end' >>confcache
26825 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26826 if test -w "$cache_file"; then
26827 if test "x$cache_file" != "x/dev/null"; then
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26829 $as_echo "$as_me: updating cache $cache_file" >&6;}
26830 if test ! -f "$cache_file" || test -h "$cache_file"; then
26831 cat confcache >"$cache_file"
26832 else
26833 case $cache_file in #(
26834 */* | ?:*)
26835 mv -f confcache "$cache_file"$$ &&
26836 mv -f "$cache_file"$$ "$cache_file" ;; #(
26838 mv -f confcache "$cache_file" ;;
26839 esac
26842 else
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26844 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26847 rm -f confcache
26849 if test ${multilib} = yes; then
26850 multilib_arg="--enable-multilib"
26851 else
26852 multilib_arg=
26855 # Write our Makefile and spec file.
26856 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26858 cat >confcache <<\_ACEOF
26859 # This file is a shell script that caches the results of configure
26860 # tests run on this system so they can be shared between configure
26861 # scripts and configure runs, see configure's option --config-cache.
26862 # It is not useful on other systems. If it contains results you don't
26863 # want to keep, you may remove or edit it.
26865 # config.status only pays attention to the cache file if you give it
26866 # the --recheck option to rerun configure.
26868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26870 # following values.
26872 _ACEOF
26874 # The following way of writing the cache mishandles newlines in values,
26875 # but we know of no workaround that is simple, portable, and efficient.
26876 # So, we kill variables containing newlines.
26877 # Ultrix sh set writes to stderr and can't be redirected directly,
26878 # and sets the high bit in the cache file unless we assign to the vars.
26880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26881 eval ac_val=\$$ac_var
26882 case $ac_val in #(
26883 *${as_nl}*)
26884 case $ac_var in #(
26885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26887 esac
26888 case $ac_var in #(
26889 _ | IFS | as_nl) ;; #(
26890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26891 *) { eval $ac_var=; unset $ac_var;} ;;
26892 esac ;;
26893 esac
26894 done
26896 (set) 2>&1 |
26897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26898 *${as_nl}ac_space=\ *)
26899 # `set' does not quote correctly, so add quotes: double-quote
26900 # substitution turns \\\\ into \\, and sed turns \\ into \.
26901 sed -n \
26902 "s/'/'\\\\''/g;
26903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26904 ;; #(
26906 # `set' quotes correctly as required by POSIX, so do not add quotes.
26907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26909 esac |
26910 sort
26912 sed '
26913 /^ac_cv_env_/b end
26914 t clear
26915 :clear
26916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26917 t end
26918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26919 :end' >>confcache
26920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26921 if test -w "$cache_file"; then
26922 if test "x$cache_file" != "x/dev/null"; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26924 $as_echo "$as_me: updating cache $cache_file" >&6;}
26925 if test ! -f "$cache_file" || test -h "$cache_file"; then
26926 cat confcache >"$cache_file"
26927 else
26928 case $cache_file in #(
26929 */* | ?:*)
26930 mv -f confcache "$cache_file"$$ &&
26931 mv -f "$cache_file"$$ "$cache_file" ;; #(
26933 mv -f confcache "$cache_file" ;;
26934 esac
26937 else
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26942 rm -f confcache
26944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26945 # Let make expand exec_prefix.
26946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26948 DEFS=-DHAVE_CONFIG_H
26950 ac_libobjs=
26951 ac_ltlibobjs=
26953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26954 # 1. Remove the extension, and $U if already installed.
26955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26956 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26958 # will be set to the directory where LIBOBJS objects are built.
26959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26961 done
26962 LIBOBJS=$ac_libobjs
26964 LTLIBOBJS=$ac_ltlibobjs
26967 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26968 as_fn_error $? "conditional \"onestep\" was never defined.
26969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26972 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26973 if test -n "$am_sleep_pid"; then
26974 # Hide warnings about reused PIDs.
26975 wait $am_sleep_pid 2>/dev/null
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26978 $as_echo "done" >&6; }
26979 if test -n "$EXEEXT"; then
26980 am__EXEEXT_TRUE=
26981 am__EXEEXT_FALSE='#'
26982 else
26983 am__EXEEXT_TRUE='#'
26984 am__EXEEXT_FALSE=
26987 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26988 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26991 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26992 as_fn_error $? "conditional \"AMDEP\" was never defined.
26993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26995 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26996 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26999 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27000 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27003 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27004 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27007 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27008 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27011 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27012 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27015 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27016 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27019 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27020 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27023 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27024 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27027 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27028 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27031 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27032 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27035 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27036 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27040 : "${CONFIG_STATUS=./config.status}"
27041 ac_write_fail=0
27042 ac_clean_files_save=$ac_clean_files
27043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27045 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27046 as_write_fail=0
27047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27048 #! $SHELL
27049 # Generated by $as_me.
27050 # Run this file to recreate the current configuration.
27051 # Compiler output produced by configure, useful for debugging
27052 # configure, is in config.log if it exists.
27054 debug=false
27055 ac_cs_recheck=false
27056 ac_cs_silent=false
27058 SHELL=\${CONFIG_SHELL-$SHELL}
27059 export SHELL
27060 _ASEOF
27061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27062 ## -------------------- ##
27063 ## M4sh Initialization. ##
27064 ## -------------------- ##
27066 # Be more Bourne compatible
27067 DUALCASE=1; export DUALCASE # for MKS sh
27068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27069 emulate sh
27070 NULLCMD=:
27071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27072 # is contrary to our usage. Disable this feature.
27073 alias -g '${1+"$@"}'='"$@"'
27074 setopt NO_GLOB_SUBST
27075 else
27076 case `(set -o) 2>/dev/null` in #(
27077 *posix*) :
27078 set -o posix ;; #(
27079 *) :
27081 esac
27085 as_nl='
27087 export as_nl
27088 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27089 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27092 # Prefer a ksh shell builtin over an external printf program on Solaris,
27093 # but without wasting forks for bash or zsh.
27094 if test -z "$BASH_VERSION$ZSH_VERSION" \
27095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27096 as_echo='print -r --'
27097 as_echo_n='print -rn --'
27098 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27099 as_echo='printf %s\n'
27100 as_echo_n='printf %s'
27101 else
27102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27104 as_echo_n='/usr/ucb/echo -n'
27105 else
27106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27107 as_echo_n_body='eval
27108 arg=$1;
27109 case $arg in #(
27110 *"$as_nl"*)
27111 expr "X$arg" : "X\\(.*\\)$as_nl";
27112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27113 esac;
27114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27116 export as_echo_n_body
27117 as_echo_n='sh -c $as_echo_n_body as_echo'
27119 export as_echo_body
27120 as_echo='sh -c $as_echo_body as_echo'
27123 # The user is always right.
27124 if test "${PATH_SEPARATOR+set}" != set; then
27125 PATH_SEPARATOR=:
27126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27128 PATH_SEPARATOR=';'
27133 # IFS
27134 # We need space, tab and new line, in precisely that order. Quoting is
27135 # there to prevent editors from complaining about space-tab.
27136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27137 # splitting by setting IFS to empty value.)
27138 IFS=" "" $as_nl"
27140 # Find who we are. Look in the path if we contain no directory separator.
27141 as_myself=
27142 case $0 in #((
27143 *[\\/]* ) as_myself=$0 ;;
27144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27145 for as_dir in $PATH
27147 IFS=$as_save_IFS
27148 test -z "$as_dir" && as_dir=.
27149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27150 done
27151 IFS=$as_save_IFS
27154 esac
27155 # We did not find ourselves, most probably we were run as `sh COMMAND'
27156 # in which case we are not to be found in the path.
27157 if test "x$as_myself" = x; then
27158 as_myself=$0
27160 if test ! -f "$as_myself"; then
27161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27162 exit 1
27165 # Unset variables that we do not need and which cause bugs (e.g. in
27166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27167 # suppresses any "Segmentation fault" message there. '((' could
27168 # trigger a bug in pdksh 5.2.14.
27169 for as_var in BASH_ENV ENV MAIL MAILPATH
27170 do eval test x\${$as_var+set} = xset \
27171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27172 done
27173 PS1='$ '
27174 PS2='> '
27175 PS4='+ '
27177 # NLS nuisances.
27178 LC_ALL=C
27179 export LC_ALL
27180 LANGUAGE=C
27181 export LANGUAGE
27183 # CDPATH.
27184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27187 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27188 # ----------------------------------------
27189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27191 # script with STATUS, using 1 if that was 0.
27192 as_fn_error ()
27194 as_status=$1; test $as_status -eq 0 && as_status=1
27195 if test "$4"; then
27196 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27199 $as_echo "$as_me: error: $2" >&2
27200 as_fn_exit $as_status
27201 } # as_fn_error
27204 # as_fn_set_status STATUS
27205 # -----------------------
27206 # Set $? to STATUS, without forking.
27207 as_fn_set_status ()
27209 return $1
27210 } # as_fn_set_status
27212 # as_fn_exit STATUS
27213 # -----------------
27214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27215 as_fn_exit ()
27217 set +e
27218 as_fn_set_status $1
27219 exit $1
27220 } # as_fn_exit
27222 # as_fn_unset VAR
27223 # ---------------
27224 # Portably unset VAR.
27225 as_fn_unset ()
27227 { eval $1=; unset $1;}
27229 as_unset=as_fn_unset
27230 # as_fn_append VAR VALUE
27231 # ----------------------
27232 # Append the text in VALUE to the end of the definition contained in VAR. Take
27233 # advantage of any shell optimizations that allow amortized linear growth over
27234 # repeated appends, instead of the typical quadratic growth present in naive
27235 # implementations.
27236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27237 eval 'as_fn_append ()
27239 eval $1+=\$2
27241 else
27242 as_fn_append ()
27244 eval $1=\$$1\$2
27246 fi # as_fn_append
27248 # as_fn_arith ARG...
27249 # ------------------
27250 # Perform arithmetic evaluation on the ARGs, and store the result in the
27251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27252 # must be portable across $(()) and expr.
27253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27254 eval 'as_fn_arith ()
27256 as_val=$(( $* ))
27258 else
27259 as_fn_arith ()
27261 as_val=`expr "$@" || test $? -eq 1`
27263 fi # as_fn_arith
27266 if expr a : '\(a\)' >/dev/null 2>&1 &&
27267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27268 as_expr=expr
27269 else
27270 as_expr=false
27273 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27274 as_basename=basename
27275 else
27276 as_basename=false
27279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27280 as_dirname=dirname
27281 else
27282 as_dirname=false
27285 as_me=`$as_basename -- "$0" ||
27286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27287 X"$0" : 'X\(//\)$' \| \
27288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27289 $as_echo X/"$0" |
27290 sed '/^.*\/\([^/][^/]*\)\/*$/{
27291 s//\1/
27294 /^X\/\(\/\/\)$/{
27295 s//\1/
27298 /^X\/\(\/\).*/{
27299 s//\1/
27302 s/.*/./; q'`
27304 # Avoid depending upon Character Ranges.
27305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27308 as_cr_digits='0123456789'
27309 as_cr_alnum=$as_cr_Letters$as_cr_digits
27311 ECHO_C= ECHO_N= ECHO_T=
27312 case `echo -n x` in #(((((
27313 -n*)
27314 case `echo 'xy\c'` in
27315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27316 xy) ECHO_C='\c';;
27317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27318 ECHO_T=' ';;
27319 esac;;
27321 ECHO_N='-n';;
27322 esac
27324 rm -f conf$$ conf$$.exe conf$$.file
27325 if test -d conf$$.dir; then
27326 rm -f conf$$.dir/conf$$.file
27327 else
27328 rm -f conf$$.dir
27329 mkdir conf$$.dir 2>/dev/null
27331 if (echo >conf$$.file) 2>/dev/null; then
27332 if ln -s conf$$.file conf$$ 2>/dev/null; then
27333 as_ln_s='ln -s'
27334 # ... but there are two gotchas:
27335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27337 # In both cases, we have to default to `cp -pR'.
27338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27339 as_ln_s='cp -pR'
27340 elif ln conf$$.file conf$$ 2>/dev/null; then
27341 as_ln_s=ln
27342 else
27343 as_ln_s='cp -pR'
27345 else
27346 as_ln_s='cp -pR'
27348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27349 rmdir conf$$.dir 2>/dev/null
27352 # as_fn_mkdir_p
27353 # -------------
27354 # Create "$as_dir" as a directory, including parents if necessary.
27355 as_fn_mkdir_p ()
27358 case $as_dir in #(
27359 -*) as_dir=./$as_dir;;
27360 esac
27361 test -d "$as_dir" || eval $as_mkdir_p || {
27362 as_dirs=
27363 while :; do
27364 case $as_dir in #(
27365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27366 *) as_qdir=$as_dir;;
27367 esac
27368 as_dirs="'$as_qdir' $as_dirs"
27369 as_dir=`$as_dirname -- "$as_dir" ||
27370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27371 X"$as_dir" : 'X\(//\)[^/]' \| \
27372 X"$as_dir" : 'X\(//\)$' \| \
27373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27374 $as_echo X"$as_dir" |
27375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27376 s//\1/
27379 /^X\(\/\/\)[^/].*/{
27380 s//\1/
27383 /^X\(\/\/\)$/{
27384 s//\1/
27387 /^X\(\/\).*/{
27388 s//\1/
27391 s/.*/./; q'`
27392 test -d "$as_dir" && break
27393 done
27394 test -z "$as_dirs" || eval "mkdir $as_dirs"
27395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27398 } # as_fn_mkdir_p
27399 if mkdir -p . 2>/dev/null; then
27400 as_mkdir_p='mkdir -p "$as_dir"'
27401 else
27402 test -d ./-p && rmdir ./-p
27403 as_mkdir_p=false
27407 # as_fn_executable_p FILE
27408 # -----------------------
27409 # Test if FILE is an executable regular file.
27410 as_fn_executable_p ()
27412 test -f "$1" && test -x "$1"
27413 } # as_fn_executable_p
27414 as_test_x='test -x'
27415 as_executable_p=as_fn_executable_p
27417 # Sed expression to map a string onto a valid CPP name.
27418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27420 # Sed expression to map a string onto a valid variable name.
27421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27424 exec 6>&1
27425 ## ----------------------------------- ##
27426 ## Main body of $CONFIG_STATUS script. ##
27427 ## ----------------------------------- ##
27428 _ASEOF
27429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27432 # Save the log message, to keep $0 and so on meaningful, and to
27433 # report actual input values of CONFIG_FILES etc. instead of their
27434 # values after options handling.
27435 ac_log="
27436 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27437 generated by GNU Autoconf 2.69. Invocation command line was
27439 CONFIG_FILES = $CONFIG_FILES
27440 CONFIG_HEADERS = $CONFIG_HEADERS
27441 CONFIG_LINKS = $CONFIG_LINKS
27442 CONFIG_COMMANDS = $CONFIG_COMMANDS
27443 $ $0 $@
27445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27448 _ACEOF
27450 case $ac_config_files in *"
27451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27452 esac
27454 case $ac_config_headers in *"
27455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27456 esac
27459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27460 # Files that config.status was made for.
27461 config_files="$ac_config_files"
27462 config_headers="$ac_config_headers"
27463 config_commands="$ac_config_commands"
27465 _ACEOF
27467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27468 ac_cs_usage="\
27469 \`$as_me' instantiates files and other configuration actions
27470 from templates according to the current configuration. Unless the files
27471 and actions are specified as TAGs, all are instantiated by default.
27473 Usage: $0 [OPTION]... [TAG]...
27475 -h, --help print this help, then exit
27476 -V, --version print version number and configuration settings, then exit
27477 --config print configuration, then exit
27478 -q, --quiet, --silent
27479 do not print progress messages
27480 -d, --debug don't remove temporary files
27481 --recheck update $as_me by reconfiguring in the same conditions
27482 --file=FILE[:TEMPLATE]
27483 instantiate the configuration file FILE
27484 --header=FILE[:TEMPLATE]
27485 instantiate the configuration header FILE
27487 Configuration files:
27488 $config_files
27490 Configuration headers:
27491 $config_headers
27493 Configuration commands:
27494 $config_commands
27496 Report bugs to the package provider.
27497 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27498 General help using GNU software: <http://www.gnu.org/gethelp/>."
27500 _ACEOF
27501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27502 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27503 ac_cs_version="\\
27504 GNU Fortran Runtime Library config.status 0.3
27505 configured by $0, generated by GNU Autoconf 2.69,
27506 with options \\"\$ac_cs_config\\"
27508 Copyright (C) 2012 Free Software Foundation, Inc.
27509 This config.status script is free software; the Free Software Foundation
27510 gives unlimited permission to copy, distribute and modify it."
27512 ac_pwd='$ac_pwd'
27513 srcdir='$srcdir'
27514 INSTALL='$INSTALL'
27515 MKDIR_P='$MKDIR_P'
27516 AWK='$AWK'
27517 test -n "\$AWK" || AWK=awk
27518 _ACEOF
27520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27521 # The default lists apply if the user does not specify any file.
27522 ac_need_defaults=:
27523 while test $# != 0
27525 case $1 in
27526 --*=?*)
27527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27529 ac_shift=:
27531 --*=)
27532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27533 ac_optarg=
27534 ac_shift=:
27537 ac_option=$1
27538 ac_optarg=$2
27539 ac_shift=shift
27541 esac
27543 case $ac_option in
27544 # Handling of the options.
27545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27546 ac_cs_recheck=: ;;
27547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27548 $as_echo "$ac_cs_version"; exit ;;
27549 --config | --confi | --conf | --con | --co | --c )
27550 $as_echo "$ac_cs_config"; exit ;;
27551 --debug | --debu | --deb | --de | --d | -d )
27552 debug=: ;;
27553 --file | --fil | --fi | --f )
27554 $ac_shift
27555 case $ac_optarg in
27556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27557 '') as_fn_error $? "missing file argument" ;;
27558 esac
27559 as_fn_append CONFIG_FILES " '$ac_optarg'"
27560 ac_need_defaults=false;;
27561 --header | --heade | --head | --hea )
27562 $ac_shift
27563 case $ac_optarg in
27564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27565 esac
27566 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27567 ac_need_defaults=false;;
27568 --he | --h)
27569 # Conflict between --help and --header
27570 as_fn_error $? "ambiguous option: \`$1'
27571 Try \`$0 --help' for more information.";;
27572 --help | --hel | -h )
27573 $as_echo "$ac_cs_usage"; exit ;;
27574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27576 ac_cs_silent=: ;;
27578 # This is an error.
27579 -*) as_fn_error $? "unrecognized option: \`$1'
27580 Try \`$0 --help' for more information." ;;
27582 *) as_fn_append ac_config_targets " $1"
27583 ac_need_defaults=false ;;
27585 esac
27586 shift
27587 done
27589 ac_configure_extra_args=
27591 if $ac_cs_silent; then
27592 exec 6>/dev/null
27593 ac_configure_extra_args="$ac_configure_extra_args --silent"
27596 _ACEOF
27597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27598 if \$ac_cs_recheck; then
27599 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27600 shift
27601 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27602 CONFIG_SHELL='$SHELL'
27603 export CONFIG_SHELL
27604 exec "\$@"
27607 _ACEOF
27608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27609 exec 5>>config.log
27611 echo
27612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27613 ## Running $as_me. ##
27614 _ASBOX
27615 $as_echo "$ac_log"
27616 } >&5
27618 _ACEOF
27619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27621 # INIT-COMMANDS
27624 srcdir="$srcdir"
27625 host="$host"
27626 target="$target"
27627 with_multisubdir="$with_multisubdir"
27628 with_multisrctop="$with_multisrctop"
27629 with_target_subdir="$with_target_subdir"
27630 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27631 multi_basedir="$multi_basedir"
27632 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27633 CC="$CC"
27634 CXX="$CXX"
27635 GFORTRAN="$GFORTRAN"
27636 GDC="$GDC"
27637 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27640 # The HP-UX ksh and POSIX shell print the target directory to stdout
27641 # if CDPATH is set.
27642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27644 sed_quote_subst='$sed_quote_subst'
27645 double_quote_subst='$double_quote_subst'
27646 delay_variable_subst='$delay_variable_subst'
27647 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27648 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27649 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27650 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27651 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27654 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27655 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27656 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27657 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27658 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27659 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27660 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27661 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27662 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27663 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27664 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27665 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27666 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27675 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27676 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27677 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27678 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27679 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27680 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27681 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27682 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27683 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27684 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27685 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27686 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27687 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27688 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27689 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27690 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27691 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27692 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27694 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27695 lt_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"`'
27696 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27697 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27698 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27699 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27700 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27701 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27702 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27703 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27704 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27705 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27706 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27707 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27708 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27709 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27710 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27711 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27712 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27713 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27714 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27715 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27716 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27717 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27718 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27719 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27720 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27721 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27722 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27723 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27724 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27725 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27726 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27727 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27728 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27729 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27730 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27731 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27732 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27733 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27734 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27735 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27736 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27737 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27738 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27739 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27740 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27741 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27742 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27743 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27744 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27745 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27746 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27747 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27748 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27749 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27750 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27751 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27752 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27753 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27754 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27755 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27756 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27757 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27758 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27759 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27760 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27761 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27762 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27763 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27764 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27765 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27766 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27767 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27768 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27769 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27770 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27771 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27772 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27773 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27774 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27775 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27776 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27777 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27778 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27779 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27780 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27781 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27782 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27783 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27784 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27785 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27786 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27787 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27788 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27789 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27790 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27791 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27792 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27793 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27794 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27795 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27796 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27797 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27798 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27799 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27800 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27801 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27802 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27803 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27804 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27805 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27806 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27807 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27808 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27809 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27810 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27811 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27812 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27813 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27814 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27815 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27816 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27817 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27818 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27819 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27820 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27821 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27823 LTCC='$LTCC'
27824 LTCFLAGS='$LTCFLAGS'
27825 compiler='$compiler_DEFAULT'
27827 # A function that is used when there is no print builtin or printf.
27828 func_fallback_echo ()
27830 eval 'cat <<_LTECHO_EOF
27832 _LTECHO_EOF'
27835 # Quote evaled strings.
27836 for var in SED \
27837 GREP \
27838 EGREP \
27839 FGREP \
27840 SHELL \
27841 ECHO \
27842 LD \
27843 NM \
27844 LN_S \
27845 lt_SP2NL \
27846 lt_NL2SP \
27847 reload_flag \
27848 OBJDUMP \
27849 deplibs_check_method \
27850 file_magic_cmd \
27851 AR \
27852 AR_FLAGS \
27853 STRIP \
27854 RANLIB \
27855 CC \
27856 CFLAGS \
27857 compiler \
27858 lt_cv_sys_global_symbol_pipe \
27859 lt_cv_sys_global_symbol_to_cdecl \
27860 lt_cv_sys_global_symbol_to_c_name_address \
27861 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27862 lt_prog_compiler_no_builtin_flag \
27863 lt_prog_compiler_wl \
27864 lt_prog_compiler_pic \
27865 lt_prog_compiler_static \
27866 lt_cv_prog_compiler_c_o \
27867 need_locks \
27868 DSYMUTIL \
27869 NMEDIT \
27870 LIPO \
27871 OTOOL \
27872 OTOOL64 \
27873 shrext_cmds \
27874 export_dynamic_flag_spec \
27875 whole_archive_flag_spec \
27876 compiler_needs_object \
27877 with_gnu_ld \
27878 allow_undefined_flag \
27879 no_undefined_flag \
27880 hardcode_libdir_flag_spec \
27881 hardcode_libdir_flag_spec_ld \
27882 hardcode_libdir_separator \
27883 fix_srcfile_path \
27884 exclude_expsyms \
27885 include_expsyms \
27886 file_list_spec \
27887 variables_saved_for_relink \
27888 libname_spec \
27889 library_names_spec \
27890 soname_spec \
27891 install_override_mode \
27892 finish_eval \
27893 old_striplib \
27894 striplib \
27895 compiler_lib_search_dirs \
27896 predep_objects \
27897 postdep_objects \
27898 predeps \
27899 postdeps \
27900 compiler_lib_search_path \
27901 LD_FC \
27902 reload_flag_FC \
27903 compiler_FC \
27904 lt_prog_compiler_no_builtin_flag_FC \
27905 lt_prog_compiler_wl_FC \
27906 lt_prog_compiler_pic_FC \
27907 lt_prog_compiler_static_FC \
27908 lt_cv_prog_compiler_c_o_FC \
27909 export_dynamic_flag_spec_FC \
27910 whole_archive_flag_spec_FC \
27911 compiler_needs_object_FC \
27912 with_gnu_ld_FC \
27913 allow_undefined_flag_FC \
27914 no_undefined_flag_FC \
27915 hardcode_libdir_flag_spec_FC \
27916 hardcode_libdir_flag_spec_ld_FC \
27917 hardcode_libdir_separator_FC \
27918 fix_srcfile_path_FC \
27919 exclude_expsyms_FC \
27920 include_expsyms_FC \
27921 file_list_spec_FC \
27922 compiler_lib_search_dirs_FC \
27923 predep_objects_FC \
27924 postdep_objects_FC \
27925 predeps_FC \
27926 postdeps_FC \
27927 compiler_lib_search_path_FC; do
27928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27929 *[\\\\\\\`\\"\\\$]*)
27930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27935 esac
27936 done
27938 # Double-quote double-evaled strings.
27939 for var in reload_cmds \
27940 old_postinstall_cmds \
27941 old_postuninstall_cmds \
27942 old_archive_cmds \
27943 extract_expsyms_cmds \
27944 old_archive_from_new_cmds \
27945 old_archive_from_expsyms_cmds \
27946 archive_cmds \
27947 archive_expsym_cmds \
27948 module_cmds \
27949 module_expsym_cmds \
27950 export_symbols_cmds \
27951 prelink_cmds \
27952 postinstall_cmds \
27953 postuninstall_cmds \
27954 finish_cmds \
27955 sys_lib_search_path_spec \
27956 sys_lib_dlsearch_path_spec \
27957 reload_cmds_FC \
27958 old_archive_cmds_FC \
27959 old_archive_from_new_cmds_FC \
27960 old_archive_from_expsyms_cmds_FC \
27961 archive_cmds_FC \
27962 archive_expsym_cmds_FC \
27963 module_cmds_FC \
27964 module_expsym_cmds_FC \
27965 export_symbols_cmds_FC \
27966 prelink_cmds_FC; do
27967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27968 *[\\\\\\\`\\"\\\$]*)
27969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27974 esac
27975 done
27977 ac_aux_dir='$ac_aux_dir'
27978 xsi_shell='$xsi_shell'
27979 lt_shell_append='$lt_shell_append'
27981 # See if we are running on zsh, and set the options which allow our
27982 # commands through without removal of \ escapes INIT.
27983 if test -n "\${ZSH_VERSION+set}" ; then
27984 setopt NO_GLOB_SUBST
27988 PACKAGE='$PACKAGE'
27989 VERSION='$VERSION'
27990 TIMESTAMP='$TIMESTAMP'
27991 RM='$RM'
27992 ofile='$ofile'
27999 GCC="$GCC"
28000 CC="$CC"
28001 acx_cv_header_stdint="$acx_cv_header_stdint"
28002 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28003 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28004 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28005 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28006 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28007 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28008 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28009 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28010 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28011 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28012 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28013 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28014 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28017 _ACEOF
28019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28021 # Handling of arguments.
28022 for ac_config_target in $ac_config_targets
28024 case $ac_config_target in
28025 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28026 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28027 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28029 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28031 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28033 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28034 esac
28035 done
28038 # If the user did not use the arguments to specify the items to instantiate,
28039 # then the envvar interface is used. Set only those that are not.
28040 # We use the long form for the default assignment because of an extremely
28041 # bizarre bug on SunOS 4.1.3.
28042 if $ac_need_defaults; then
28043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28048 # Have a temporary directory for convenience. Make it in the build tree
28049 # simply because there is no reason against having it here, and in addition,
28050 # creating and moving files from /tmp can sometimes cause problems.
28051 # Hook for its removal unless debugging.
28052 # Note that there is a small window in which the directory will not be cleaned:
28053 # after its creation but before its name has been assigned to `$tmp'.
28054 $debug ||
28056 tmp= ac_tmp=
28057 trap 'exit_status=$?
28058 : "${ac_tmp:=$tmp}"
28059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28061 trap 'as_fn_exit 1' 1 2 13 15
28063 # Create a (secure) tmp directory for tmp files.
28066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28067 test -d "$tmp"
28068 } ||
28070 tmp=./conf$$-$RANDOM
28071 (umask 077 && mkdir "$tmp")
28072 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28073 ac_tmp=$tmp
28075 # Set up the scripts for CONFIG_FILES section.
28076 # No need to generate them if there are no CONFIG_FILES.
28077 # This happens for instance with `./config.status config.h'.
28078 if test -n "$CONFIG_FILES"; then
28081 ac_cr=`echo X | tr X '\015'`
28082 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28083 # But we know of no other shell where ac_cr would be empty at this
28084 # point, so we can use a bashism as a fallback.
28085 if test "x$ac_cr" = x; then
28086 eval ac_cr=\$\'\\r\'
28088 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28089 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28090 ac_cs_awk_cr='\\r'
28091 else
28092 ac_cs_awk_cr=$ac_cr
28095 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28096 _ACEOF
28100 echo "cat >conf$$subs.awk <<_ACEOF" &&
28101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28102 echo "_ACEOF"
28103 } >conf$$subs.sh ||
28104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28106 ac_delim='%!_!# '
28107 for ac_last_try in false false false false false :; do
28108 . ./conf$$subs.sh ||
28109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28112 if test $ac_delim_n = $ac_delim_num; then
28113 break
28114 elif $ac_last_try; then
28115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28116 else
28117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28119 done
28120 rm -f conf$$subs.sh
28122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28123 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28124 _ACEOF
28125 sed -n '
28127 s/^/S["/; s/!.*/"]=/
28130 s/^[^!]*!//
28131 :repl
28132 t repl
28133 s/'"$ac_delim"'$//
28134 t delim
28137 s/\(.\{148\}\)..*/\1/
28138 t more1
28139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28142 b repl
28143 :more1
28144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28147 s/.\{148\}//
28148 t nl
28149 :delim
28151 s/\(.\{148\}\)..*/\1/
28152 t more2
28153 s/["\\]/\\&/g; s/^/"/; s/$/"/
28156 :more2
28157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28160 s/.\{148\}//
28161 t delim
28162 ' <conf$$subs.awk | sed '
28163 /^[^""]/{
28165 s/\n//
28167 ' >>$CONFIG_STATUS || ac_write_fail=1
28168 rm -f conf$$subs.awk
28169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28170 _ACAWK
28171 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28172 for (key in S) S_is_set[key] = 1
28173 FS = "\a"
28177 line = $ 0
28178 nfields = split(line, field, "@")
28179 substed = 0
28180 len = length(field[1])
28181 for (i = 2; i < nfields; i++) {
28182 key = field[i]
28183 keylen = length(key)
28184 if (S_is_set[key]) {
28185 value = S[key]
28186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28187 len += length(value) + length(field[++i])
28188 substed = 1
28189 } else
28190 len += 1 + keylen
28193 print line
28196 _ACAWK
28197 _ACEOF
28198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28199 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28201 else
28203 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28205 _ACEOF
28207 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28208 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28209 # trailing colons and then remove the whole line if VPATH becomes empty
28210 # (actually we leave an empty line to preserve line numbers).
28211 if test "x$srcdir" = x.; then
28212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28214 s///
28215 s/^/:/
28216 s/[ ]*$/:/
28217 s/:\$(srcdir):/:/g
28218 s/:\${srcdir}:/:/g
28219 s/:@srcdir@:/:/g
28220 s/^:*//
28221 s/:*$//
28223 s/\(=[ ]*\).*/\1/
28225 s/\n//
28226 s/^[^=]*=[ ]*$//
28230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28231 fi # test -n "$CONFIG_FILES"
28233 # Set up the scripts for CONFIG_HEADERS section.
28234 # No need to generate them if there are no CONFIG_HEADERS.
28235 # This happens for instance with `./config.status Makefile'.
28236 if test -n "$CONFIG_HEADERS"; then
28237 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28238 BEGIN {
28239 _ACEOF
28241 # Transform confdefs.h into an awk script `defines.awk', embedded as
28242 # here-document in config.status, that substitutes the proper values into
28243 # config.h.in to produce config.h.
28245 # Create a delimiter string that does not exist in confdefs.h, to ease
28246 # handling of long lines.
28247 ac_delim='%!_!# '
28248 for ac_last_try in false false :; do
28249 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28250 if test -z "$ac_tt"; then
28251 break
28252 elif $ac_last_try; then
28253 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28254 else
28255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28257 done
28259 # For the awk script, D is an array of macro values keyed by name,
28260 # likewise P contains macro parameters if any. Preserve backslash
28261 # newline sequences.
28263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28264 sed -n '
28265 s/.\{148\}/&'"$ac_delim"'/g
28266 t rset
28267 :rset
28268 s/^[ ]*#[ ]*define[ ][ ]*/ /
28269 t def
28271 :def
28272 s/\\$//
28273 t bsnl
28274 s/["\\]/\\&/g
28275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28276 D["\1"]=" \3"/p
28277 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28279 :bsnl
28280 s/["\\]/\\&/g
28281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28282 D["\1"]=" \3\\\\\\n"\\/p
28283 t cont
28284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28285 t cont
28287 :cont
28289 s/.\{148\}/&'"$ac_delim"'/g
28290 t clear
28291 :clear
28292 s/\\$//
28293 t bsnlc
28294 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28296 :bsnlc
28297 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28298 b cont
28299 ' <confdefs.h | sed '
28300 s/'"$ac_delim"'/"\\\
28301 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28304 for (key in D) D_is_set[key] = 1
28305 FS = "\a"
28307 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28308 line = \$ 0
28309 split(line, arg, " ")
28310 if (arg[1] == "#") {
28311 defundef = arg[2]
28312 mac1 = arg[3]
28313 } else {
28314 defundef = substr(arg[1], 2)
28315 mac1 = arg[2]
28317 split(mac1, mac2, "(") #)
28318 macro = mac2[1]
28319 prefix = substr(line, 1, index(line, defundef) - 1)
28320 if (D_is_set[macro]) {
28321 # Preserve the white space surrounding the "#".
28322 print prefix "define", macro P[macro] D[macro]
28323 next
28324 } else {
28325 # Replace #undef with comments. This is necessary, for example,
28326 # in the case of _POSIX_SOURCE, which is predefined and required
28327 # on some systems where configure will not decide to define it.
28328 if (defundef == "undef") {
28329 print "/*", prefix defundef, macro, "*/"
28330 next
28334 { print }
28335 _ACAWK
28336 _ACEOF
28337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28338 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28339 fi # test -n "$CONFIG_HEADERS"
28342 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28343 shift
28344 for ac_tag
28346 case $ac_tag in
28347 :[FHLC]) ac_mode=$ac_tag; continue;;
28348 esac
28349 case $ac_mode$ac_tag in
28350 :[FHL]*:*);;
28351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28352 :[FH]-) ac_tag=-:-;;
28353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28354 esac
28355 ac_save_IFS=$IFS
28356 IFS=:
28357 set x $ac_tag
28358 IFS=$ac_save_IFS
28359 shift
28360 ac_file=$1
28361 shift
28363 case $ac_mode in
28364 :L) ac_source=$1;;
28365 :[FH])
28366 ac_file_inputs=
28367 for ac_f
28369 case $ac_f in
28370 -) ac_f="$ac_tmp/stdin";;
28371 *) # Look for the file first in the build tree, then in the source tree
28372 # (if the path is not absolute). The absolute path cannot be DOS-style,
28373 # because $ac_f cannot contain `:'.
28374 test -f "$ac_f" ||
28375 case $ac_f in
28376 [\\/$]*) false;;
28377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28378 esac ||
28379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28380 esac
28381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28382 as_fn_append ac_file_inputs " '$ac_f'"
28383 done
28385 # Let's still pretend it is `configure' which instantiates (i.e., don't
28386 # use $as_me), people would be surprised to read:
28387 # /* config.h. Generated by config.status. */
28388 configure_input='Generated from '`
28389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28390 `' by configure.'
28391 if test x"$ac_file" != x-; then
28392 configure_input="$ac_file. $configure_input"
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28394 $as_echo "$as_me: creating $ac_file" >&6;}
28396 # Neutralize special characters interpreted by sed in replacement strings.
28397 case $configure_input in #(
28398 *\&* | *\|* | *\\* )
28399 ac_sed_conf_input=`$as_echo "$configure_input" |
28400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28401 *) ac_sed_conf_input=$configure_input;;
28402 esac
28404 case $ac_tag in
28405 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28407 esac
28409 esac
28411 ac_dir=`$as_dirname -- "$ac_file" ||
28412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28413 X"$ac_file" : 'X\(//\)[^/]' \| \
28414 X"$ac_file" : 'X\(//\)$' \| \
28415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28416 $as_echo X"$ac_file" |
28417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28418 s//\1/
28421 /^X\(\/\/\)[^/].*/{
28422 s//\1/
28425 /^X\(\/\/\)$/{
28426 s//\1/
28429 /^X\(\/\).*/{
28430 s//\1/
28433 s/.*/./; q'`
28434 as_dir="$ac_dir"; as_fn_mkdir_p
28435 ac_builddir=.
28437 case "$ac_dir" in
28438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28441 # A ".." for each directory in $ac_dir_suffix.
28442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28443 case $ac_top_builddir_sub in
28444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28446 esac ;;
28447 esac
28448 ac_abs_top_builddir=$ac_pwd
28449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28450 # for backward compatibility:
28451 ac_top_builddir=$ac_top_build_prefix
28453 case $srcdir in
28454 .) # We are building in place.
28455 ac_srcdir=.
28456 ac_top_srcdir=$ac_top_builddir_sub
28457 ac_abs_top_srcdir=$ac_pwd ;;
28458 [\\/]* | ?:[\\/]* ) # Absolute name.
28459 ac_srcdir=$srcdir$ac_dir_suffix;
28460 ac_top_srcdir=$srcdir
28461 ac_abs_top_srcdir=$srcdir ;;
28462 *) # Relative name.
28463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28464 ac_top_srcdir=$ac_top_build_prefix$srcdir
28465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28466 esac
28467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28470 case $ac_mode in
28473 # CONFIG_FILE
28476 case $INSTALL in
28477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28479 esac
28480 ac_MKDIR_P=$MKDIR_P
28481 case $MKDIR_P in
28482 [\\/$]* | ?:[\\/]* ) ;;
28483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28484 esac
28485 _ACEOF
28487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28488 # If the template does not know about datarootdir, expand it.
28489 # FIXME: This hack should be removed a few years after 2.60.
28490 ac_datarootdir_hack=; ac_datarootdir_seen=
28491 ac_sed_dataroot='
28492 /datarootdir/ {
28496 /@datadir@/p
28497 /@docdir@/p
28498 /@infodir@/p
28499 /@localedir@/p
28500 /@mandir@/p'
28501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28502 *datarootdir*) ac_datarootdir_seen=yes;;
28503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28506 _ACEOF
28507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28508 ac_datarootdir_hack='
28509 s&@datadir@&$datadir&g
28510 s&@docdir@&$docdir&g
28511 s&@infodir@&$infodir&g
28512 s&@localedir@&$localedir&g
28513 s&@mandir@&$mandir&g
28514 s&\\\${datarootdir}&$datarootdir&g' ;;
28515 esac
28516 _ACEOF
28518 # Neutralize VPATH when `$srcdir' = `.'.
28519 # Shell code in configure.ac might set extrasub.
28520 # FIXME: do we really want to maintain this feature?
28521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28522 ac_sed_extra="$ac_vpsub
28523 $extrasub
28524 _ACEOF
28525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28528 s|@configure_input@|$ac_sed_conf_input|;t t
28529 s&@top_builddir@&$ac_top_builddir_sub&;t t
28530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28531 s&@srcdir@&$ac_srcdir&;t t
28532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28533 s&@top_srcdir@&$ac_top_srcdir&;t t
28534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28535 s&@builddir@&$ac_builddir&;t t
28536 s&@abs_builddir@&$ac_abs_builddir&;t t
28537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28538 s&@INSTALL@&$ac_INSTALL&;t t
28539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28540 $ac_datarootdir_hack
28542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28548 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28550 which seems to be undefined. Please make sure it is defined" >&5
28551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28552 which seems to be undefined. Please make sure it is defined" >&2;}
28554 rm -f "$ac_tmp/stdin"
28555 case $ac_file in
28556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28558 esac \
28559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28563 # CONFIG_HEADER
28565 if test x"$ac_file" != x-; then
28567 $as_echo "/* $configure_input */" \
28568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28569 } >"$ac_tmp/config.h" \
28570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28573 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28574 else
28575 rm -f "$ac_file"
28576 mv "$ac_tmp/config.h" "$ac_file" \
28577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28579 else
28580 $as_echo "/* $configure_input */" \
28581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28582 || as_fn_error $? "could not create -" "$LINENO" 5
28584 # Compute "$ac_file"'s index in $config_headers.
28585 _am_arg="$ac_file"
28586 _am_stamp_count=1
28587 for _am_header in $config_headers :; do
28588 case $_am_header in
28589 $_am_arg | $_am_arg:* )
28590 break ;;
28592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28593 esac
28594 done
28595 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28596 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28597 X"$_am_arg" : 'X\(//\)[^/]' \| \
28598 X"$_am_arg" : 'X\(//\)$' \| \
28599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28600 $as_echo X"$_am_arg" |
28601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28602 s//\1/
28605 /^X\(\/\/\)[^/].*/{
28606 s//\1/
28609 /^X\(\/\/\)$/{
28610 s//\1/
28613 /^X\(\/\).*/{
28614 s//\1/
28617 s/.*/./; q'`/stamp-h$_am_stamp_count
28620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28621 $as_echo "$as_me: executing $ac_file commands" >&6;}
28623 esac
28626 case $ac_file$ac_mode in
28627 "default-1":C)
28628 # Only add multilib support code if we just rebuilt the top-level
28629 # Makefile.
28630 case " $CONFIG_FILES " in
28631 *" Makefile "*)
28632 ac_file=Makefile . ${multi_basedir}/config-ml.in
28634 esac ;;
28635 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28636 # Older Autoconf quotes --file arguments for eval, but not when files
28637 # are listed without --file. Let's play safe and only enable the eval
28638 # if we detect the quoting.
28639 case $CONFIG_FILES in
28640 *\'*) eval set x "$CONFIG_FILES" ;;
28641 *) set x $CONFIG_FILES ;;
28642 esac
28643 shift
28644 for mf
28646 # Strip MF so we end up with the name of the file.
28647 mf=`echo "$mf" | sed -e 's/:.*$//'`
28648 # Check whether this is an Automake generated Makefile or not.
28649 # We used to match only the files named 'Makefile.in', but
28650 # some people rename them; so instead we look at the file content.
28651 # Grep'ing the first line is not enough: some people post-process
28652 # each Makefile.in and add a new line on top of each file to say so.
28653 # Grep'ing the whole file is not good either: AIX grep has a line
28654 # limit of 2048, but all sed's we know have understand at least 4000.
28655 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28656 dirpart=`$as_dirname -- "$mf" ||
28657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28658 X"$mf" : 'X\(//\)[^/]' \| \
28659 X"$mf" : 'X\(//\)$' \| \
28660 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28661 $as_echo X"$mf" |
28662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28663 s//\1/
28666 /^X\(\/\/\)[^/].*/{
28667 s//\1/
28670 /^X\(\/\/\)$/{
28671 s//\1/
28674 /^X\(\/\).*/{
28675 s//\1/
28678 s/.*/./; q'`
28679 else
28680 continue
28682 # Extract the definition of DEPDIR, am__include, and am__quote
28683 # from the Makefile without running 'make'.
28684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28685 test -z "$DEPDIR" && continue
28686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28687 test -z "$am__include" && continue
28688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28689 # Find all dependency output files, they are included files with
28690 # $(DEPDIR) in their names. We invoke sed twice because it is the
28691 # simplest approach to changing $(DEPDIR) to its actual value in the
28692 # expansion.
28693 for file in `sed -n "
28694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28696 # Make sure the directory exists.
28697 test -f "$dirpart/$file" && continue
28698 fdir=`$as_dirname -- "$file" ||
28699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28700 X"$file" : 'X\(//\)[^/]' \| \
28701 X"$file" : 'X\(//\)$' \| \
28702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28703 $as_echo X"$file" |
28704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28705 s//\1/
28708 /^X\(\/\/\)[^/].*/{
28709 s//\1/
28712 /^X\(\/\/\)$/{
28713 s//\1/
28716 /^X\(\/\).*/{
28717 s//\1/
28720 s/.*/./; q'`
28721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28722 # echo "creating $dirpart/$file"
28723 echo '# dummy' > "$dirpart/$file"
28724 done
28725 done
28728 "libtool":C)
28730 # See if we are running on zsh, and set the options which allow our
28731 # commands through without removal of \ escapes.
28732 if test -n "${ZSH_VERSION+set}" ; then
28733 setopt NO_GLOB_SUBST
28736 cfgfile="${ofile}T"
28737 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28738 $RM "$cfgfile"
28740 cat <<_LT_EOF >> "$cfgfile"
28741 #! $SHELL
28743 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28744 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28745 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28746 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28748 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28749 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28750 # Written by Gordon Matzigkeit, 1996
28752 # This file is part of GNU Libtool.
28754 # GNU Libtool is free software; you can redistribute it and/or
28755 # modify it under the terms of the GNU General Public License as
28756 # published by the Free Software Foundation; either version 2 of
28757 # the License, or (at your option) any later version.
28759 # As a special exception to the GNU General Public License,
28760 # if you distribute this file as part of a program or library that
28761 # is built using GNU Libtool, you may include this file under the
28762 # same distribution terms that you use for the rest of that program.
28764 # GNU Libtool is distributed in the hope that it will be useful,
28765 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28766 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28767 # GNU General Public License for more details.
28769 # You should have received a copy of the GNU General Public License
28770 # along with GNU Libtool; see the file COPYING. If not, a copy
28771 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28772 # obtained by writing to the Free Software Foundation, Inc.,
28773 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28776 # The names of the tagged configurations supported by this script.
28777 available_tags="FC "
28779 # ### BEGIN LIBTOOL CONFIG
28781 # A sed program that does not truncate output.
28782 SED=$lt_SED
28784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28785 Xsed="\$SED -e 1s/^X//"
28787 # A grep program that handles long lines.
28788 GREP=$lt_GREP
28790 # An ERE matcher.
28791 EGREP=$lt_EGREP
28793 # A literal string matcher.
28794 FGREP=$lt_FGREP
28796 # Shell to use when invoking shell scripts.
28797 SHELL=$lt_SHELL
28799 # An echo program that protects backslashes.
28800 ECHO=$lt_ECHO
28802 # Which release of libtool.m4 was used?
28803 macro_version=$macro_version
28804 macro_revision=$macro_revision
28806 # Whether or not to build shared libraries.
28807 build_libtool_libs=$enable_shared
28809 # Whether or not to build static libraries.
28810 build_old_libs=$enable_static
28812 # What type of objects to build.
28813 pic_mode=$pic_mode
28815 # Whether or not to optimize for fast installation.
28816 fast_install=$enable_fast_install
28818 # The host system.
28819 host_alias=$host_alias
28820 host=$host
28821 host_os=$host_os
28823 # The build system.
28824 build_alias=$build_alias
28825 build=$build
28826 build_os=$build_os
28828 # A BSD- or MS-compatible name lister.
28829 NM=$lt_NM
28831 # Whether we need soft or hard links.
28832 LN_S=$lt_LN_S
28834 # What is the maximum length of a command?
28835 max_cmd_len=$max_cmd_len
28837 # Object file suffix (normally "o").
28838 objext=$ac_objext
28840 # Executable file suffix (normally "").
28841 exeext=$exeext
28843 # whether the shell understands "unset".
28844 lt_unset=$lt_unset
28846 # turn spaces into newlines.
28847 SP2NL=$lt_lt_SP2NL
28849 # turn newlines into spaces.
28850 NL2SP=$lt_lt_NL2SP
28852 # An object symbol dumper.
28853 OBJDUMP=$lt_OBJDUMP
28855 # Method to check whether dependent libraries are shared objects.
28856 deplibs_check_method=$lt_deplibs_check_method
28858 # Command to use when deplibs_check_method == "file_magic".
28859 file_magic_cmd=$lt_file_magic_cmd
28861 # The archiver.
28862 AR=$lt_AR
28863 AR_FLAGS=$lt_AR_FLAGS
28865 # A symbol stripping program.
28866 STRIP=$lt_STRIP
28868 # Commands used to install an old-style archive.
28869 RANLIB=$lt_RANLIB
28870 old_postinstall_cmds=$lt_old_postinstall_cmds
28871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28873 # Whether to use a lock for old archive extraction.
28874 lock_old_archive_extraction=$lock_old_archive_extraction
28876 # A C compiler.
28877 LTCC=$lt_CC
28879 # LTCC compiler flags.
28880 LTCFLAGS=$lt_CFLAGS
28882 # Take the output of nm and produce a listing of raw symbols and C names.
28883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28885 # Transform the output of nm in a proper C declaration.
28886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28888 # Transform the output of nm in a C name address pair.
28889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28891 # Transform the output of nm in a C name address pair when lib prefix is needed.
28892 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28894 # The name of the directory that contains temporary libtool files.
28895 objdir=$objdir
28897 # Used to examine libraries when file_magic_cmd begins with "file".
28898 MAGIC_CMD=$MAGIC_CMD
28900 # Must we lock files when doing compilation?
28901 need_locks=$lt_need_locks
28903 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28904 DSYMUTIL=$lt_DSYMUTIL
28906 # Tool to change global to local symbols on Mac OS X.
28907 NMEDIT=$lt_NMEDIT
28909 # Tool to manipulate fat objects and archives on Mac OS X.
28910 LIPO=$lt_LIPO
28912 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28913 OTOOL=$lt_OTOOL
28915 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28916 OTOOL64=$lt_OTOOL64
28918 # Old archive suffix (normally "a").
28919 libext=$libext
28921 # Shared library suffix (normally ".so").
28922 shrext_cmds=$lt_shrext_cmds
28924 # The commands to extract the exported symbol list from a shared archive.
28925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28927 # Variables whose values should be saved in libtool wrapper scripts and
28928 # restored at link time.
28929 variables_saved_for_relink=$lt_variables_saved_for_relink
28931 # Do we need the "lib" prefix for modules?
28932 need_lib_prefix=$need_lib_prefix
28934 # Do we need a version for libraries?
28935 need_version=$need_version
28937 # Library versioning type.
28938 version_type=$version_type
28940 # Shared library runtime path variable.
28941 runpath_var=$runpath_var
28943 # Shared library path variable.
28944 shlibpath_var=$shlibpath_var
28946 # Is shlibpath searched before the hard-coded library search path?
28947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28949 # Format of library name prefix.
28950 libname_spec=$lt_libname_spec
28952 # List of archive names. First name is the real one, the rest are links.
28953 # The last name is the one that the linker finds with -lNAME
28954 library_names_spec=$lt_library_names_spec
28956 # The coded name of the library, if different from the real name.
28957 soname_spec=$lt_soname_spec
28959 # Permission mode override for installation of shared libraries.
28960 install_override_mode=$lt_install_override_mode
28962 # Command to use after installation of a shared archive.
28963 postinstall_cmds=$lt_postinstall_cmds
28965 # Command to use after uninstallation of a shared archive.
28966 postuninstall_cmds=$lt_postuninstall_cmds
28968 # Commands used to finish a libtool library installation in a directory.
28969 finish_cmds=$lt_finish_cmds
28971 # As "finish_cmds", except a single script fragment to be evaled but
28972 # not shown.
28973 finish_eval=$lt_finish_eval
28975 # Whether we should hardcode library paths into libraries.
28976 hardcode_into_libs=$hardcode_into_libs
28978 # Compile-time system search path for libraries.
28979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28981 # Run-time system search path for libraries.
28982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28984 # Whether dlopen is supported.
28985 dlopen_support=$enable_dlopen
28987 # Whether dlopen of programs is supported.
28988 dlopen_self=$enable_dlopen_self
28990 # Whether dlopen of statically linked programs is supported.
28991 dlopen_self_static=$enable_dlopen_self_static
28993 # Commands to strip libraries.
28994 old_striplib=$lt_old_striplib
28995 striplib=$lt_striplib
28998 # The linker used to build libraries.
28999 LD=$lt_LD
29001 # How to create reloadable object files.
29002 reload_flag=$lt_reload_flag
29003 reload_cmds=$lt_reload_cmds
29005 # Commands used to build an old-style archive.
29006 old_archive_cmds=$lt_old_archive_cmds
29008 # A language specific compiler.
29009 CC=$lt_compiler
29011 # Is the compiler the GNU compiler?
29012 with_gcc=$GCC
29014 # Compiler flag to turn off builtin functions.
29015 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29017 # How to pass a linker flag through the compiler.
29018 wl=$lt_lt_prog_compiler_wl
29020 # Additional compiler flags for building library objects.
29021 pic_flag=$lt_lt_prog_compiler_pic
29023 # Compiler flag to prevent dynamic linking.
29024 link_static_flag=$lt_lt_prog_compiler_static
29026 # Does compiler simultaneously support -c and -o options?
29027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29029 # Whether or not to add -lc for building shared libraries.
29030 build_libtool_need_lc=$archive_cmds_need_lc
29032 # Whether or not to disallow shared libs when runtime libs are static.
29033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29035 # Compiler flag to allow reflexive dlopens.
29036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29038 # Compiler flag to generate shared objects directly from archives.
29039 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29041 # Whether the compiler copes with passing no objects directly.
29042 compiler_needs_object=$lt_compiler_needs_object
29044 # Create an old-style archive from a shared archive.
29045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29047 # Create a temporary old-style archive to link instead of a shared archive.
29048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29050 # Commands used to build a shared archive.
29051 archive_cmds=$lt_archive_cmds
29052 archive_expsym_cmds=$lt_archive_expsym_cmds
29054 # Commands used to build a loadable module if different from building
29055 # a shared archive.
29056 module_cmds=$lt_module_cmds
29057 module_expsym_cmds=$lt_module_expsym_cmds
29059 # Whether we are building with GNU ld or not.
29060 with_gnu_ld=$lt_with_gnu_ld
29062 # Flag that allows shared libraries with undefined symbols to be built.
29063 allow_undefined_flag=$lt_allow_undefined_flag
29065 # Flag that enforces no undefined symbols.
29066 no_undefined_flag=$lt_no_undefined_flag
29068 # Flag to hardcode \$libdir into a binary during linking.
29069 # This must work even if \$libdir does not exist
29070 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29072 # If ld is used when linking, flag to hardcode \$libdir into a binary
29073 # during linking. This must work even if \$libdir does not exist.
29074 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29076 # Whether we need a single "-rpath" flag with a separated argument.
29077 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29080 # DIR into the resulting binary.
29081 hardcode_direct=$hardcode_direct
29083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29084 # DIR into the resulting binary and the resulting library dependency is
29085 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29086 # library is relocated.
29087 hardcode_direct_absolute=$hardcode_direct_absolute
29089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29090 # into the resulting binary.
29091 hardcode_minus_L=$hardcode_minus_L
29093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29094 # into the resulting binary.
29095 hardcode_shlibpath_var=$hardcode_shlibpath_var
29097 # Set to "yes" if building a shared library automatically hardcodes DIR
29098 # into the library and all subsequent libraries and executables linked
29099 # against it.
29100 hardcode_automatic=$hardcode_automatic
29102 # Set to yes if linker adds runtime paths of dependent libraries
29103 # to runtime path list.
29104 inherit_rpath=$inherit_rpath
29106 # Whether libtool must link a program against all its dependency libraries.
29107 link_all_deplibs=$link_all_deplibs
29109 # Fix the shell variable \$srcfile for the compiler.
29110 fix_srcfile_path=$lt_fix_srcfile_path
29112 # Set to "yes" if exported symbols are required.
29113 always_export_symbols=$always_export_symbols
29115 # The commands to list exported symbols.
29116 export_symbols_cmds=$lt_export_symbols_cmds
29118 # Symbols that should not be listed in the preloaded symbols.
29119 exclude_expsyms=$lt_exclude_expsyms
29121 # Symbols that must always be exported.
29122 include_expsyms=$lt_include_expsyms
29124 # Commands necessary for linking programs (against libraries) with templates.
29125 prelink_cmds=$lt_prelink_cmds
29127 # Specify filename containing input files.
29128 file_list_spec=$lt_file_list_spec
29130 # How to hardcode a shared library path into an executable.
29131 hardcode_action=$hardcode_action
29133 # The directories searched by this compiler when creating a shared library.
29134 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29136 # Dependencies to place before and after the objects being linked to
29137 # create a shared library.
29138 predep_objects=$lt_predep_objects
29139 postdep_objects=$lt_postdep_objects
29140 predeps=$lt_predeps
29141 postdeps=$lt_postdeps
29143 # The library search path used internally by the compiler when linking
29144 # a shared library.
29145 compiler_lib_search_path=$lt_compiler_lib_search_path
29147 # ### END LIBTOOL CONFIG
29149 _LT_EOF
29151 case $host_os in
29152 aix3*)
29153 cat <<\_LT_EOF >> "$cfgfile"
29154 # AIX sometimes has problems with the GCC collect2 program. For some
29155 # reason, if we set the COLLECT_NAMES environment variable, the problems
29156 # vanish in a puff of smoke.
29157 if test "X${COLLECT_NAMES+set}" != Xset; then
29158 COLLECT_NAMES=
29159 export COLLECT_NAMES
29161 _LT_EOF
29163 esac
29166 ltmain="$ac_aux_dir/ltmain.sh"
29169 # We use sed instead of cat because bash on DJGPP gets confused if
29170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29171 # text mode, it properly converts lines to CR/LF. This bash problem
29172 # is reportedly fixed, but why not run on old versions too?
29173 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29174 || (rm -f "$cfgfile"; exit 1)
29176 case $xsi_shell in
29177 yes)
29178 cat << \_LT_EOF >> "$cfgfile"
29180 # func_dirname file append nondir_replacement
29181 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29182 # otherwise set result to NONDIR_REPLACEMENT.
29183 func_dirname ()
29185 case ${1} in
29186 */*) func_dirname_result="${1%/*}${2}" ;;
29187 * ) func_dirname_result="${3}" ;;
29188 esac
29191 # func_basename file
29192 func_basename ()
29194 func_basename_result="${1##*/}"
29197 # func_dirname_and_basename file append nondir_replacement
29198 # perform func_basename and func_dirname in a single function
29199 # call:
29200 # dirname: Compute the dirname of FILE. If nonempty,
29201 # add APPEND to the result, otherwise set result
29202 # to NONDIR_REPLACEMENT.
29203 # value returned in "$func_dirname_result"
29204 # basename: Compute filename of FILE.
29205 # value retuned in "$func_basename_result"
29206 # Implementation must be kept synchronized with func_dirname
29207 # and func_basename. For efficiency, we do not delegate to
29208 # those functions but instead duplicate the functionality here.
29209 func_dirname_and_basename ()
29211 case ${1} in
29212 */*) func_dirname_result="${1%/*}${2}" ;;
29213 * ) func_dirname_result="${3}" ;;
29214 esac
29215 func_basename_result="${1##*/}"
29218 # func_stripname prefix suffix name
29219 # strip PREFIX and SUFFIX off of NAME.
29220 # PREFIX and SUFFIX must not contain globbing or regex special
29221 # characters, hashes, percent signs, but SUFFIX may contain a leading
29222 # dot (in which case that matches only a dot).
29223 func_stripname ()
29225 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29226 # positional parameters, so assign one to ordinary parameter first.
29227 func_stripname_result=${3}
29228 func_stripname_result=${func_stripname_result#"${1}"}
29229 func_stripname_result=${func_stripname_result%"${2}"}
29232 # func_opt_split
29233 func_opt_split ()
29235 func_opt_split_opt=${1%%=*}
29236 func_opt_split_arg=${1#*=}
29239 # func_lo2o object
29240 func_lo2o ()
29242 case ${1} in
29243 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29244 *) func_lo2o_result=${1} ;;
29245 esac
29248 # func_xform libobj-or-source
29249 func_xform ()
29251 func_xform_result=${1%.*}.lo
29254 # func_arith arithmetic-term...
29255 func_arith ()
29257 func_arith_result=$(( $* ))
29260 # func_len string
29261 # STRING may not start with a hyphen.
29262 func_len ()
29264 func_len_result=${#1}
29267 _LT_EOF
29269 *) # Bourne compatible functions.
29270 cat << \_LT_EOF >> "$cfgfile"
29272 # func_dirname file append nondir_replacement
29273 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29274 # otherwise set result to NONDIR_REPLACEMENT.
29275 func_dirname ()
29277 # Extract subdirectory from the argument.
29278 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29279 if test "X$func_dirname_result" = "X${1}"; then
29280 func_dirname_result="${3}"
29281 else
29282 func_dirname_result="$func_dirname_result${2}"
29286 # func_basename file
29287 func_basename ()
29289 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29293 # func_stripname prefix suffix name
29294 # strip PREFIX and SUFFIX off of NAME.
29295 # PREFIX and SUFFIX must not contain globbing or regex special
29296 # characters, hashes, percent signs, but SUFFIX may contain a leading
29297 # dot (in which case that matches only a dot).
29298 # func_strip_suffix prefix name
29299 func_stripname ()
29301 case ${2} in
29302 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29303 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29304 esac
29307 # sed scripts:
29308 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29309 my_sed_long_arg='1s/^-[^=]*=//'
29311 # func_opt_split
29312 func_opt_split ()
29314 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29315 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29318 # func_lo2o object
29319 func_lo2o ()
29321 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29324 # func_xform libobj-or-source
29325 func_xform ()
29327 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29330 # func_arith arithmetic-term...
29331 func_arith ()
29333 func_arith_result=`expr "$@"`
29336 # func_len string
29337 # STRING may not start with a hyphen.
29338 func_len ()
29340 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29343 _LT_EOF
29344 esac
29346 case $lt_shell_append in
29347 yes)
29348 cat << \_LT_EOF >> "$cfgfile"
29350 # func_append var value
29351 # Append VALUE to the end of shell variable VAR.
29352 func_append ()
29354 eval "$1+=\$2"
29356 _LT_EOF
29359 cat << \_LT_EOF >> "$cfgfile"
29361 # func_append var value
29362 # Append VALUE to the end of shell variable VAR.
29363 func_append ()
29365 eval "$1=\$$1\$2"
29368 _LT_EOF
29370 esac
29373 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29374 || (rm -f "$cfgfile"; exit 1)
29376 mv -f "$cfgfile" "$ofile" ||
29377 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29378 chmod +x "$ofile"
29381 cat <<_LT_EOF >> "$ofile"
29383 # ### BEGIN LIBTOOL TAG CONFIG: FC
29385 # The linker used to build libraries.
29386 LD=$lt_LD_FC
29388 # How to create reloadable object files.
29389 reload_flag=$lt_reload_flag_FC
29390 reload_cmds=$lt_reload_cmds_FC
29392 # Commands used to build an old-style archive.
29393 old_archive_cmds=$lt_old_archive_cmds_FC
29395 # A language specific compiler.
29396 CC=$lt_compiler_FC
29398 # Is the compiler the GNU compiler?
29399 with_gcc=$GCC_FC
29401 # Compiler flag to turn off builtin functions.
29402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29404 # How to pass a linker flag through the compiler.
29405 wl=$lt_lt_prog_compiler_wl_FC
29407 # Additional compiler flags for building library objects.
29408 pic_flag=$lt_lt_prog_compiler_pic_FC
29410 # Compiler flag to prevent dynamic linking.
29411 link_static_flag=$lt_lt_prog_compiler_static_FC
29413 # Does compiler simultaneously support -c and -o options?
29414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29416 # Whether or not to add -lc for building shared libraries.
29417 build_libtool_need_lc=$archive_cmds_need_lc_FC
29419 # Whether or not to disallow shared libs when runtime libs are static.
29420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29422 # Compiler flag to allow reflexive dlopens.
29423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29425 # Compiler flag to generate shared objects directly from archives.
29426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29428 # Whether the compiler copes with passing no objects directly.
29429 compiler_needs_object=$lt_compiler_needs_object_FC
29431 # Create an old-style archive from a shared archive.
29432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29434 # Create a temporary old-style archive to link instead of a shared archive.
29435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29437 # Commands used to build a shared archive.
29438 archive_cmds=$lt_archive_cmds_FC
29439 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29441 # Commands used to build a loadable module if different from building
29442 # a shared archive.
29443 module_cmds=$lt_module_cmds_FC
29444 module_expsym_cmds=$lt_module_expsym_cmds_FC
29446 # Whether we are building with GNU ld or not.
29447 with_gnu_ld=$lt_with_gnu_ld_FC
29449 # Flag that allows shared libraries with undefined symbols to be built.
29450 allow_undefined_flag=$lt_allow_undefined_flag_FC
29452 # Flag that enforces no undefined symbols.
29453 no_undefined_flag=$lt_no_undefined_flag_FC
29455 # Flag to hardcode \$libdir into a binary during linking.
29456 # This must work even if \$libdir does not exist
29457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29459 # If ld is used when linking, flag to hardcode \$libdir into a binary
29460 # during linking. This must work even if \$libdir does not exist.
29461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29463 # Whether we need a single "-rpath" flag with a separated argument.
29464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29467 # DIR into the resulting binary.
29468 hardcode_direct=$hardcode_direct_FC
29470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29471 # DIR into the resulting binary and the resulting library dependency is
29472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29473 # library is relocated.
29474 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29477 # into the resulting binary.
29478 hardcode_minus_L=$hardcode_minus_L_FC
29480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29481 # into the resulting binary.
29482 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29484 # Set to "yes" if building a shared library automatically hardcodes DIR
29485 # into the library and all subsequent libraries and executables linked
29486 # against it.
29487 hardcode_automatic=$hardcode_automatic_FC
29489 # Set to yes if linker adds runtime paths of dependent libraries
29490 # to runtime path list.
29491 inherit_rpath=$inherit_rpath_FC
29493 # Whether libtool must link a program against all its dependency libraries.
29494 link_all_deplibs=$link_all_deplibs_FC
29496 # Fix the shell variable \$srcfile for the compiler.
29497 fix_srcfile_path=$lt_fix_srcfile_path_FC
29499 # Set to "yes" if exported symbols are required.
29500 always_export_symbols=$always_export_symbols_FC
29502 # The commands to list exported symbols.
29503 export_symbols_cmds=$lt_export_symbols_cmds_FC
29505 # Symbols that should not be listed in the preloaded symbols.
29506 exclude_expsyms=$lt_exclude_expsyms_FC
29508 # Symbols that must always be exported.
29509 include_expsyms=$lt_include_expsyms_FC
29511 # Commands necessary for linking programs (against libraries) with templates.
29512 prelink_cmds=$lt_prelink_cmds_FC
29514 # Specify filename containing input files.
29515 file_list_spec=$lt_file_list_spec_FC
29517 # How to hardcode a shared library path into an executable.
29518 hardcode_action=$hardcode_action_FC
29520 # The directories searched by this compiler when creating a shared library.
29521 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29523 # Dependencies to place before and after the objects being linked to
29524 # create a shared library.
29525 predep_objects=$lt_predep_objects_FC
29526 postdep_objects=$lt_postdep_objects_FC
29527 predeps=$lt_predeps_FC
29528 postdeps=$lt_postdeps_FC
29530 # The library search path used internally by the compiler when linking
29531 # a shared library.
29532 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29534 # ### END LIBTOOL TAG CONFIG: FC
29535 _LT_EOF
29538 "gstdint.h":C)
29539 if test "$GCC" = yes; then
29540 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29541 else
29542 echo "/* generated for $CC */" > tmp-stdint.h
29545 sed 's/^ *//' >> tmp-stdint.h <<EOF
29547 #ifndef GCC_GENERATED_STDINT_H
29548 #define GCC_GENERATED_STDINT_H 1
29550 #include <sys/types.h>
29553 if test "$acx_cv_header_stdint" != stdint.h; then
29554 echo "#include <stddef.h>" >> tmp-stdint.h
29556 if test "$acx_cv_header_stdint" != stddef.h; then
29557 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29560 sed 's/^ *//' >> tmp-stdint.h <<EOF
29561 /* glibc uses these symbols as guards to prevent redefinitions. */
29562 #ifdef __int8_t_defined
29563 #define _INT8_T
29564 #define _INT16_T
29565 #define _INT32_T
29566 #endif
29567 #ifdef __uint32_t_defined
29568 #define _UINT32_T
29569 #endif
29573 # ----------------- done header, emit basic int types -------------
29574 if test "$acx_cv_header_stdint" = stddef.h; then
29575 sed 's/^ *//' >> tmp-stdint.h <<EOF
29577 #ifndef _UINT8_T
29578 #define _UINT8_T
29579 #ifndef __uint8_t_defined
29580 #define __uint8_t_defined
29581 #ifndef uint8_t
29582 typedef unsigned $acx_cv_type_int8_t uint8_t;
29583 #endif
29584 #endif
29585 #endif
29587 #ifndef _UINT16_T
29588 #define _UINT16_T
29589 #ifndef __uint16_t_defined
29590 #define __uint16_t_defined
29591 #ifndef uint16_t
29592 typedef unsigned $acx_cv_type_int16_t uint16_t;
29593 #endif
29594 #endif
29595 #endif
29597 #ifndef _UINT32_T
29598 #define _UINT32_T
29599 #ifndef __uint32_t_defined
29600 #define __uint32_t_defined
29601 #ifndef uint32_t
29602 typedef unsigned $acx_cv_type_int32_t uint32_t;
29603 #endif
29604 #endif
29605 #endif
29607 #ifndef _INT8_T
29608 #define _INT8_T
29609 #ifndef __int8_t_defined
29610 #define __int8_t_defined
29611 #ifndef int8_t
29612 typedef $acx_cv_type_int8_t int8_t;
29613 #endif
29614 #endif
29615 #endif
29617 #ifndef _INT16_T
29618 #define _INT16_T
29619 #ifndef __int16_t_defined
29620 #define __int16_t_defined
29621 #ifndef int16_t
29622 typedef $acx_cv_type_int16_t int16_t;
29623 #endif
29624 #endif
29625 #endif
29627 #ifndef _INT32_T
29628 #define _INT32_T
29629 #ifndef __int32_t_defined
29630 #define __int32_t_defined
29631 #ifndef int32_t
29632 typedef $acx_cv_type_int32_t int32_t;
29633 #endif
29634 #endif
29635 #endif
29637 elif test "$ac_cv_type_u_int32_t" = yes; then
29638 sed 's/^ *//' >> tmp-stdint.h <<EOF
29640 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29641 #ifndef _INT8_T
29642 #define _INT8_T
29643 #endif
29644 #ifndef _INT16_T
29645 #define _INT16_T
29646 #endif
29647 #ifndef _INT32_T
29648 #define _INT32_T
29649 #endif
29651 #ifndef _UINT8_T
29652 #define _UINT8_T
29653 #ifndef __uint8_t_defined
29654 #define __uint8_t_defined
29655 #ifndef uint8_t
29656 typedef u_int8_t uint8_t;
29657 #endif
29658 #endif
29659 #endif
29661 #ifndef _UINT16_T
29662 #define _UINT16_T
29663 #ifndef __uint16_t_defined
29664 #define __uint16_t_defined
29665 #ifndef uint16_t
29666 typedef u_int16_t uint16_t;
29667 #endif
29668 #endif
29669 #endif
29671 #ifndef _UINT32_T
29672 #define _UINT32_T
29673 #ifndef __uint32_t_defined
29674 #define __uint32_t_defined
29675 #ifndef uint32_t
29676 typedef u_int32_t uint32_t;
29677 #endif
29678 #endif
29679 #endif
29681 else
29682 sed 's/^ *//' >> tmp-stdint.h <<EOF
29684 /* Some systems have guard macros to prevent redefinitions, define them. */
29685 #ifndef _INT8_T
29686 #define _INT8_T
29687 #endif
29688 #ifndef _INT16_T
29689 #define _INT16_T
29690 #endif
29691 #ifndef _INT32_T
29692 #define _INT32_T
29693 #endif
29694 #ifndef _UINT8_T
29695 #define _UINT8_T
29696 #endif
29697 #ifndef _UINT16_T
29698 #define _UINT16_T
29699 #endif
29700 #ifndef _UINT32_T
29701 #define _UINT32_T
29702 #endif
29706 # ------------- done basic int types, emit int64_t types ------------
29707 if test "$ac_cv_type_uint64_t" = yes; then
29708 sed 's/^ *//' >> tmp-stdint.h <<EOF
29710 /* system headers have good uint64_t and int64_t */
29711 #ifndef _INT64_T
29712 #define _INT64_T
29713 #endif
29714 #ifndef _UINT64_T
29715 #define _UINT64_T
29716 #endif
29718 elif test "$ac_cv_type_u_int64_t" = yes; then
29719 sed 's/^ *//' >> tmp-stdint.h <<EOF
29721 /* system headers have an u_int64_t (and int64_t) */
29722 #ifndef _INT64_T
29723 #define _INT64_T
29724 #endif
29725 #ifndef _UINT64_T
29726 #define _UINT64_T
29727 #ifndef __uint64_t_defined
29728 #define __uint64_t_defined
29729 #ifndef uint64_t
29730 typedef u_int64_t uint64_t;
29731 #endif
29732 #endif
29733 #endif
29735 elif test -n "$acx_cv_type_int64_t"; then
29736 sed 's/^ *//' >> tmp-stdint.h <<EOF
29738 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29739 #ifndef _INT64_T
29740 #define _INT64_T
29741 #ifndef int64_t
29742 typedef $acx_cv_type_int64_t int64_t;
29743 #endif
29744 #endif
29745 #ifndef _UINT64_T
29746 #define _UINT64_T
29747 #ifndef __uint64_t_defined
29748 #define __uint64_t_defined
29749 #ifndef uint64_t
29750 typedef unsigned $acx_cv_type_int64_t uint64_t;
29751 #endif
29752 #endif
29753 #endif
29755 else
29756 sed 's/^ *//' >> tmp-stdint.h <<EOF
29758 /* some common heuristics for int64_t, using compiler-specific tests */
29759 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29760 #ifndef _INT64_T
29761 #define _INT64_T
29762 #ifndef __int64_t_defined
29763 #ifndef int64_t
29764 typedef long long int64_t;
29765 #endif
29766 #endif
29767 #endif
29768 #ifndef _UINT64_T
29769 #define _UINT64_T
29770 #ifndef uint64_t
29771 typedef unsigned long long uint64_t;
29772 #endif
29773 #endif
29775 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29776 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29777 does not implement __extension__. But that compiler doesn't define
29778 __GNUC_MINOR__. */
29779 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29780 # define __extension__
29781 # endif
29783 # ifndef _INT64_T
29784 # define _INT64_T
29785 # ifndef int64_t
29786 __extension__ typedef long long int64_t;
29787 # endif
29788 # endif
29789 # ifndef _UINT64_T
29790 # define _UINT64_T
29791 # ifndef uint64_t
29792 __extension__ typedef unsigned long long uint64_t;
29793 # endif
29794 # endif
29796 #elif !defined __STRICT_ANSI__
29797 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29799 # ifndef _INT64_T
29800 # define _INT64_T
29801 # ifndef int64_t
29802 typedef __int64 int64_t;
29803 # endif
29804 # endif
29805 # ifndef _UINT64_T
29806 # define _UINT64_T
29807 # ifndef uint64_t
29808 typedef unsigned __int64 uint64_t;
29809 # endif
29810 # endif
29811 # endif /* compiler */
29813 #endif /* ANSI version */
29817 # ------------- done int64_t types, emit intptr types ------------
29818 if test "$ac_cv_type_uintptr_t" != yes; then
29819 sed 's/^ *//' >> tmp-stdint.h <<EOF
29821 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29822 #ifndef __uintptr_t_defined
29823 #ifndef uintptr_t
29824 typedef u$acx_cv_type_intptr_t uintptr_t;
29825 #endif
29826 #endif
29827 #ifndef __intptr_t_defined
29828 #ifndef intptr_t
29829 typedef $acx_cv_type_intptr_t intptr_t;
29830 #endif
29831 #endif
29835 # ------------- done intptr types, emit int_least types ------------
29836 if test "$ac_cv_type_int_least32_t" != yes; then
29837 sed 's/^ *//' >> tmp-stdint.h <<EOF
29839 /* Define int_least types */
29840 typedef int8_t int_least8_t;
29841 typedef int16_t int_least16_t;
29842 typedef int32_t int_least32_t;
29843 #ifdef _INT64_T
29844 typedef int64_t int_least64_t;
29845 #endif
29847 typedef uint8_t uint_least8_t;
29848 typedef uint16_t uint_least16_t;
29849 typedef uint32_t uint_least32_t;
29850 #ifdef _UINT64_T
29851 typedef uint64_t uint_least64_t;
29852 #endif
29856 # ------------- done intptr types, emit int_fast types ------------
29857 if test "$ac_cv_type_int_fast32_t" != yes; then
29858 sed 's/^ *//' >> tmp-stdint.h <<EOF
29860 /* Define int_fast types. short is often slow */
29861 typedef int8_t int_fast8_t;
29862 typedef int int_fast16_t;
29863 typedef int32_t int_fast32_t;
29864 #ifdef _INT64_T
29865 typedef int64_t int_fast64_t;
29866 #endif
29868 typedef uint8_t uint_fast8_t;
29869 typedef unsigned int uint_fast16_t;
29870 typedef uint32_t uint_fast32_t;
29871 #ifdef _UINT64_T
29872 typedef uint64_t uint_fast64_t;
29873 #endif
29877 if test "$ac_cv_type_uintmax_t" != yes; then
29878 sed 's/^ *//' >> tmp-stdint.h <<EOF
29880 /* Define intmax based on what we found */
29881 #ifndef intmax_t
29882 #ifdef _INT64_T
29883 typedef int64_t intmax_t;
29884 #else
29885 typedef long intmax_t;
29886 #endif
29887 #endif
29888 #ifndef uintmax_t
29889 #ifdef _UINT64_T
29890 typedef uint64_t uintmax_t;
29891 #else
29892 typedef unsigned long uintmax_t;
29893 #endif
29894 #endif
29898 sed 's/^ *//' >> tmp-stdint.h <<EOF
29900 #endif /* GCC_GENERATED_STDINT_H */
29903 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29904 rm -f tmp-stdint.h
29905 else
29906 mv -f tmp-stdint.h gstdint.h
29911 esac
29912 done # for ac_tag
29915 as_fn_exit 0
29916 _ACEOF
29917 ac_clean_files=$ac_clean_files_save
29919 test $ac_write_fail = 0 ||
29920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29923 # configure is writing to config.log, and then calls config.status.
29924 # config.status does its own redirection, appending to config.log.
29925 # Unfortunately, on DOS this fails, as config.log is still kept open
29926 # by configure, so config.status won't be able to write to it; its
29927 # output is simply discarded. So we exec the FD to /dev/null,
29928 # effectively closing config.log, so it can be properly (re)opened and
29929 # appended to by config.status. When coming back to configure, we
29930 # need to make the FD available again.
29931 if test "$no_create" != yes; then
29932 ac_cs_success=:
29933 ac_config_status_args=
29934 test "$silent" = yes &&
29935 ac_config_status_args="$ac_config_status_args --quiet"
29936 exec 5>/dev/null
29937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29938 exec 5>>config.log
29939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29940 # would make configure fail if this is the last instruction.
29941 $ac_cs_success || as_fn_exit 1
29943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}