2015-08-24 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libgfortran / configure
blobd7dad11a161444c08182f20eab1395badeb46d8a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 IEEE_FLAGS
609 IEEE_SUPPORT
610 IEEE_SUPPORT_FALSE
611 IEEE_SUPPORT_TRUE
612 FPU_HOST_HEADER
613 LIBGFOR_BUILD_QUAD_FALSE
614 LIBGFOR_BUILD_QUAD_TRUE
615 LIBQUADINCLUDE
616 LIBQUADLIB_DEP
617 LIBQUADLIB
618 LIBQUADSPEC
619 extra_ldflags_libgfortran
620 ac_ct_FC
621 FCFLAGS
623 enable_static
624 enable_shared
625 lt_host_flags
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
637 FGREP
639 LIBTOOL
640 RANLIB
643 SECTION_FLAGS
644 LIBGFOR_MINIMAL_FALSE
645 LIBGFOR_MINIMAL_TRUE
646 LIBGFOR_USE_SYMVER_SUN_FALSE
647 LIBGFOR_USE_SYMVER_SUN_TRUE
648 LIBGFOR_USE_SYMVER_GNU_FALSE
649 LIBGFOR_USE_SYMVER_GNU_TRUE
650 LIBGFOR_USE_SYMVER_FALSE
651 LIBGFOR_USE_SYMVER_TRUE
652 AM_CFLAGS
653 AM_FCFLAGS
654 toolexeclibdir
655 toolexecdir
656 EGREP
657 GREP
659 am__fastdepCC_FALSE
660 am__fastdepCC_TRUE
661 CCDEPMODE
662 am__nodep
663 AMDEPBACKSLASH
664 AMDEP_FALSE
665 AMDEP_TRUE
666 am__quote
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 multi_basedir
677 MAINT
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 target_noncanonical
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 onestep
713 onestep_FALSE
714 onestep_TRUE
715 target_subdir
716 host_subdir
717 build_subdir
718 build_libsubdir
719 build_os
720 build_vendor
721 build_cpu
722 build
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 with_build_libsubdir
765 enable_version_specific_runtime_libs
766 enable_intermodule
767 enable_maintainer_mode
768 enable_multilib
769 enable_dependency_tracking
770 enable_symvers
771 enable_shared
772 enable_static
773 with_pic
774 enable_fast_install
775 with_gnu_ld
776 enable_libtool_lock
777 enable_largefile
778 enable_libquadmath_support
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
790 FCFLAGS'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information."
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-version-specific-runtime-libs
1412 specify that runtime libraries should be installed
1413 in a compiler-specific directory
1414 --enable-intermodule build the library in one step
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
1417 --enable-multilib build many library versions (default)
1418 --disable-dependency-tracking speeds up one-time build
1419 --enable-dependency-tracking do not reject slow dependency extractors
1420 --disable-symvers disable symbol versioning for libgfortran
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --disable-largefile omit support for large files
1427 --disable-libquadmath-support
1428 disable libquadmath support for Fortran
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-build-libsubdir=DIR Directory where to find libraries for build system
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 FC Fortran compiler command
1448 FCFLAGS Fortran compiler flags
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1454 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1455 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 GNU Fortran Runtime Library configure 0.3
1519 generated by GNU Autoconf 2.64
1521 Copyright (C) 2009 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 if test x$gcc_no_link = xyes; then
1825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 main ()
1986 if (sizeof ($2))
1987 return 0;
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 main ()
1999 if (sizeof (($2)))
2000 return 0;
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2007 else
2008 eval "$3=yes"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_type
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 # computed
2026 ac_fn_c_compute_int ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062 else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=-1 ac_mid=-1
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2104 else
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 ac_lo= ac_hi=
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid
2138 else
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 case $ac_lo in #((
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145 '') ac_retval=1 ;;
2146 esac
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2156 main ()
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2169 else
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2181 return 0;
2183 _ACEOF
2184 if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2186 else
2187 ac_retval=1
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 rm -f conftest.val
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 return $ac_retval
2197 } # ac_fn_c_compute_int
2199 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # ----------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_c_check_member ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 $as_echo_n "checking for $2.$3... " >&6; }
2208 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 main ()
2217 static $2 ac_aggr;
2218 if (ac_aggr.$3)
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$4=yes"
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 static $2 ac_aggr;
2234 if (sizeof ac_aggr.$3)
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242 else
2243 eval "$4=no"
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$4
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_c_check_member
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2260 generated by GNU Autoconf 2.64. Invocation command line was
2262 $ $0 $@
2264 _ACEOF
2265 exec 5>>config.log
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 _ASUNAME
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2300 } >&5
2302 cat >&5 <<_ACEOF
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2309 _ACEOF
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2323 for ac_arg
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2352 as_fn_append ac_configure_args " '$ac_arg'"
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2368 echo
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426 ## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444 ## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##
2447 _ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special
2523 # files actually), so we avoid doing that.
2524 if test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " unistd.h"
2539 as_fn_append ac_header_list " sys/time.h"
2540 as_fn_append ac_header_list " sys/times.h"
2541 as_fn_append ac_header_list " sys/resource.h"
2542 as_fn_append ac_header_list " sys/types.h"
2543 as_fn_append ac_header_list " sys/stat.h"
2544 as_fn_append ac_header_list " sys/wait.h"
2545 as_fn_append ac_header_list " floatingpoint.h"
2546 as_fn_append ac_header_list " ieeefp.h"
2547 as_fn_append ac_header_list " fenv.h"
2548 as_fn_append ac_header_list " fptrap.h"
2549 as_fn_append ac_header_list " fpxcp.h"
2550 as_fn_append ac_header_list " pwd.h"
2551 as_fn_append ac_header_list " complex.h"
2552 as_fn_append ac_header_list " xlocale.h"
2553 as_fn_append ac_func_list " getrusage"
2554 as_fn_append ac_func_list " times"
2555 as_fn_append ac_func_list " mkstemp"
2556 as_fn_append ac_func_list " strtof"
2557 as_fn_append ac_func_list " strtold"
2558 as_fn_append ac_func_list " snprintf"
2559 as_fn_append ac_func_list " ftruncate"
2560 as_fn_append ac_func_list " chsize"
2561 as_fn_append ac_func_list " chdir"
2562 as_fn_append ac_func_list " getlogin"
2563 as_fn_append ac_func_list " gethostname"
2564 as_fn_append ac_func_list " kill"
2565 as_fn_append ac_func_list " link"
2566 as_fn_append ac_func_list " symlink"
2567 as_fn_append ac_func_list " sleep"
2568 as_fn_append ac_func_list " ttyname"
2569 as_fn_append ac_func_list " alarm"
2570 as_fn_append ac_func_list " access"
2571 as_fn_append ac_func_list " fork"
2572 as_fn_append ac_func_list " execl"
2573 as_fn_append ac_func_list " setmode"
2574 as_fn_append ac_func_list " close"
2575 as_fn_append ac_func_list " fcntl"
2576 as_fn_append ac_func_list " strcasestr"
2577 as_fn_append ac_func_list " getrlimit"
2578 as_fn_append ac_func_list " gettimeofday"
2579 as_fn_append ac_func_list " stat"
2580 as_fn_append ac_func_list " fstat"
2581 as_fn_append ac_func_list " lstat"
2582 as_fn_append ac_func_list " getpwuid"
2583 as_fn_append ac_func_list " vsnprintf"
2584 as_fn_append ac_func_list " dup"
2585 as_fn_append ac_func_list " getcwd"
2586 as_fn_append ac_func_list " localtime_r"
2587 as_fn_append ac_func_list " gmtime_r"
2588 as_fn_append ac_func_list " getpwuid_r"
2589 as_fn_append ac_func_list " ttyname_r"
2590 as_fn_append ac_func_list " clock_gettime"
2591 as_fn_append ac_func_list " readlink"
2592 as_fn_append ac_func_list " getgid"
2593 as_fn_append ac_func_list " getpid"
2594 as_fn_append ac_func_list " getppid"
2595 as_fn_append ac_func_list " getuid"
2596 as_fn_append ac_func_list " geteuid"
2597 as_fn_append ac_func_list " umask"
2598 as_fn_append ac_func_list " getegid"
2599 as_fn_append ac_func_list " secure_getenv"
2600 as_fn_append ac_func_list " __secure_getenv"
2601 as_fn_append ac_func_list " mkostemp"
2602 as_fn_append ac_func_list " strnlen"
2603 as_fn_append ac_func_list " strndup"
2604 as_fn_append ac_func_list " newlocale"
2605 as_fn_append ac_func_list " freelocale"
2606 as_fn_append ac_func_list " uselocale"
2607 as_fn_append ac_func_list " strerror_l"
2608 as_fn_append ac_header_list " math.h"
2609 # Check that the precious variables saved in the cache have kept the same
2610 # value.
2611 ac_cache_corrupted=false
2612 for ac_var in $ac_precious_vars; do
2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2614 eval ac_new_set=\$ac_env_${ac_var}_set
2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2616 eval ac_new_val=\$ac_env_${ac_var}_value
2617 case $ac_old_set,$ac_new_set in
2618 set,)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2620 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,set)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,);;
2628 if test "x$ac_old_val" != "x$ac_new_val"; then
2629 # differences in whitespace do not lead to failure.
2630 ac_old_val_w=`echo x $ac_old_val`
2631 ac_new_val_w=`echo x $ac_new_val`
2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2634 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2635 ac_cache_corrupted=:
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2638 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2639 eval $ac_var=\$ac_old_val
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2642 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2644 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 fi;;
2646 esac
2647 # Pass precious variables to config.status.
2648 if test "$ac_new_set" = set; then
2649 case $ac_new_val in
2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2651 *) ac_arg=$ac_var=$ac_new_val ;;
2652 esac
2653 case " $ac_configure_args " in
2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2656 esac
2658 done
2659 if $ac_cache_corrupted; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2663 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2664 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 ac_config_headers="$ac_config_headers config.h"
2682 ac_aux_dir=
2683 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2684 for ac_t in install-sh install.sh shtool; do
2685 if test -f "$ac_dir/$ac_t"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/$ac_t -c"
2688 break 2
2690 done
2691 done
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2705 # Make sure we can run config.sub.
2706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2707 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2710 $as_echo_n "checking build system type... " >&6; }
2711 if test "${ac_cv_build+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 ac_build_alias=$build_alias
2715 test "x$ac_build_alias" = x &&
2716 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2717 test "x$ac_build_alias" = x &&
2718 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2720 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2724 $as_echo "$ac_cv_build" >&6; }
2725 case $ac_cv_build in
2726 *-*-*) ;;
2727 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2728 esac
2729 build=$ac_cv_build
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_build
2732 shift
2733 build_cpu=$1
2734 build_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 build_os=$*
2739 IFS=$ac_save_IFS
2740 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2743 case ${build_alias} in
2744 "") build_noncanonical=${build} ;;
2745 *) build_noncanonical=${build_alias} ;;
2746 esac
2748 case ${host_alias} in
2749 "") host_noncanonical=${build_noncanonical} ;;
2750 *) host_noncanonical=${host_alias} ;;
2751 esac
2753 case ${target_alias} in
2754 "") target_noncanonical=${host_noncanonical} ;;
2755 *) target_noncanonical=${target_alias} ;;
2756 esac
2759 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2760 # have matching libraries, they should use host libraries: Makefile.tpl
2761 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2762 # However, they still use the build modules, because the corresponding
2763 # host modules (e.g. bison) are only built for the host when bootstrap
2764 # finishes. So:
2765 # - build_subdir is where we find build modules, and never changes.
2766 # - build_libsubdir is where we find build libraries, and can be overridden.
2768 # Prefix 'build-' so this never conflicts with target_subdir.
2769 build_subdir="build-${build_noncanonical}"
2771 # Check whether --with-build-libsubdir was given.
2772 if test "${with_build_libsubdir+set}" = set; then :
2773 withval=$with_build_libsubdir; build_libsubdir="$withval"
2774 else
2775 build_libsubdir="$build_subdir"
2778 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2779 if ( test $srcdir = . && test -d gcc ) \
2780 || test -d $srcdir/../host-${host_noncanonical}; then
2781 host_subdir="host-${host_noncanonical}"
2782 else
2783 host_subdir=.
2785 # No prefix.
2786 target_subdir=${target_noncanonical}
2789 # -------
2790 # Options
2791 # -------
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2794 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2795 # Check whether --enable-version-specific-runtime-libs was given.
2796 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2797 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2798 yes) version_specific_libs=yes ;;
2799 no) version_specific_libs=no ;;
2800 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2801 esac
2802 else
2803 version_specific_libs=no
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2807 $as_echo "$version_specific_libs" >&6; }
2809 # Build with intermodule optimisations
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2811 $as_echo_n "checking for --enable-intermodule... " >&6; }
2812 # Check whether --enable-intermodule was given.
2813 if test "${enable_intermodule+set}" = set; then :
2814 enableval=$enable_intermodule; case "$enable_intermodule" in
2815 yes) onestep="-onestep";;
2816 *) onestep="";;
2817 esac
2818 else
2819 onestep=""
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2823 $as_echo "$enable_intermodule" >&6; }
2824 if test x$onestep = x-onestep; then
2825 onestep_TRUE=
2826 onestep_FALSE='#'
2827 else
2828 onestep_TRUE='#'
2829 onestep_FALSE=
2834 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2836 # You will slowly go insane if you do not grok the following fact: when
2837 # building this library, the top-level /target/ becomes the library's /host/.
2839 # configure then causes --target to default to --host, exactly like any
2840 # other package using autoconf. Therefore, 'target' and 'host' will
2841 # always be the same. This makes sense both for native and cross compilers
2842 # just think about it for a little while. :-)
2844 # Also, if this library is being configured as part of a cross compiler, the
2845 # top-level configure script will pass the "real" host as $with_cross_host.
2847 # Do not delete or change the following two lines. For why, see
2848 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2850 $as_echo_n "checking host system type... " >&6; }
2851 if test "${ac_cv_host+set}" = set; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test "x$host_alias" = x; then
2855 ac_cv_host=$ac_cv_build
2856 else
2857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2858 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2863 $as_echo "$ac_cv_host" >&6; }
2864 case $ac_cv_host in
2865 *-*-*) ;;
2866 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2867 esac
2868 host=$ac_cv_host
2869 ac_save_IFS=$IFS; IFS='-'
2870 set x $ac_cv_host
2871 shift
2872 host_cpu=$1
2873 host_vendor=$2
2874 shift; shift
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2877 host_os=$*
2878 IFS=$ac_save_IFS
2879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2883 $as_echo_n "checking target system type... " >&6; }
2884 if test "${ac_cv_target+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test "x$target_alias" = x; then
2888 ac_cv_target=$ac_cv_host
2889 else
2890 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2891 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2896 $as_echo "$ac_cv_target" >&6; }
2897 case $ac_cv_target in
2898 *-*-*) ;;
2899 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2900 esac
2901 target=$ac_cv_target
2902 ac_save_IFS=$IFS; IFS='-'
2903 set x $ac_cv_target
2904 shift
2905 target_cpu=$1
2906 target_vendor=$2
2907 shift; shift
2908 # Remember, the first character of IFS is used to create $*,
2909 # except with old shells:
2910 target_os=$*
2911 IFS=$ac_save_IFS
2912 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2915 # The aliases save the names the user supplied, while $host etc.
2916 # will get canonicalized.
2917 test -n "$target_alias" &&
2918 test "$program_prefix$program_suffix$program_transform_name" = \
2919 NONENONEs,x,x, &&
2920 program_prefix=${target_alias}-
2925 target_alias=${target_alias-$host_alias}
2928 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2929 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2930 # 1.9.6: minimum required version
2931 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2932 # of other PACKAGE_* variables will, however, and there's nothing
2933 # we can do about that; they come from AC_INIT).
2934 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2935 # file in the top srcdir, etc, etc), so stop complaining.
2936 # no-dist: we don't want 'dist' and related rules.
2937 # -Wall: turns on all automake warnings...
2938 # -Wno-portability: ...except this one, since GNU make is required.
2939 am__api_version='1.11'
2941 # Find a good install program. We prefer a C program (faster),
2942 # so one script is as good as another. But avoid the broken or
2943 # incompatible versions:
2944 # SysV /etc/install, /usr/sbin/install
2945 # SunOS /usr/etc/install
2946 # IRIX /sbin/install
2947 # AIX /bin/install
2948 # AmigaOS /C/install, which installs bootblocks on floppy discs
2949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952 # OS/2's system install, which has a completely different semantic
2953 # ./install, which can be erroneously created by make from ./install.sh.
2954 # Reject install programs that cannot install multiple files.
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2957 if test -z "$INSTALL"; then
2958 if test "${ac_cv_path_install+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 # Account for people who put trailing slashes in PATH elements.
2967 case $as_dir/ in #((
2968 ./ | .// | /[cC]/* | \
2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2971 /usr/ucb/* ) ;;
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2975 # by default.
2976 for ac_prog in ginstall scoinst install; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2979 if test $ac_prog = install &&
2980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # AIX install. It has an incompatible calling convention.
2983 elif test $ac_prog = install &&
2984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # program-specific install script used by HP pwplus--don't use.
2987 else
2988 rm -rf conftest.one conftest.two conftest.dir
2989 echo one > conftest.one
2990 echo two > conftest.two
2991 mkdir conftest.dir
2992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993 test -s conftest.one && test -s conftest.two &&
2994 test -s conftest.dir/conftest.one &&
2995 test -s conftest.dir/conftest.two
2996 then
2997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2998 break 3
3002 done
3003 done
3005 esac
3007 done
3008 IFS=$as_save_IFS
3010 rm -rf conftest.one conftest.two conftest.dir
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name.
3020 INSTALL=$ac_install_sh
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3024 $as_echo "$INSTALL" >&6; }
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3035 $as_echo_n "checking whether build environment is sane... " >&6; }
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Reject unsafe characters in $srcdir or the absolute working directory
3040 # name. Accept space and tab only in the latter.
3041 am_lf='
3043 case `pwd` in
3044 *[\\\"\#\$\&\'\`$am_lf]*)
3045 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3046 esac
3047 case $srcdir in
3048 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3049 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3050 esac
3052 # Do `set' in a subshell so we don't clobber the current shell's
3053 # arguments. Must try -L first in case configure is actually a
3054 # symlink; some systems play weird games with the mod time of symlinks
3055 # (eg FreeBSD returns the mod time of the symlink's containing
3056 # directory).
3057 if (
3058 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3059 if test "$*" = "X"; then
3060 # -L didn't work.
3061 set X `ls -t "$srcdir/configure" conftest.file`
3063 rm -f conftest.file
3064 if test "$*" != "X $srcdir/configure conftest.file" \
3065 && test "$*" != "X conftest.file $srcdir/configure"; then
3067 # If neither matched, then we have a broken ls. This can happen
3068 # if, for instance, CONFIG_SHELL is bash and it inherits a
3069 # broken ls alias from the environment. This has actually
3070 # happened. Such a system could not be considered "sane".
3071 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3072 alias in your environment" "$LINENO" 5
3075 test "$2" = conftest.file
3077 then
3078 # Ok.
3080 else
3081 as_fn_error "newly created file is older than distributed files!
3082 Check your system clock" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086 test "$program_prefix" != NONE &&
3087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3088 # Use a double $ so make ignores it.
3089 test "$program_suffix" != NONE &&
3090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3091 # Double any \ or $.
3092 # By default was `s,x,x', remove it if useless.
3093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3094 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3096 # expand $ac_aux_dir to an absolute path
3097 am_aux_dir=`cd $ac_aux_dir && pwd`
3099 if test x"${MISSING+set}" != xset; then
3100 case $am_aux_dir in
3101 *\ * | *\ *)
3102 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3104 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3105 esac
3107 # Use eval to expand $SHELL
3108 if eval "$MISSING --run true"; then
3109 am_missing_run="$MISSING --run "
3110 else
3111 am_missing_run=
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3113 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3116 if test x"${install_sh}" != xset; then
3117 case $am_aux_dir in
3118 *\ * | *\ *)
3119 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3121 install_sh="\${SHELL} $am_aux_dir/install-sh"
3122 esac
3125 # Installed binaries are usually stripped using `strip' when the user
3126 # run `make install-strip'. However `strip' might not be the right
3127 # tool to use in cross-compilation environments, therefore Automake
3128 # will honor the `STRIP' environment variable to overrule this program.
3129 if test "$cross_compiling" != no; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_STRIP+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 STRIP=$ac_cv_prog_STRIP
3159 if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161 $as_echo "$STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172 set dummy strip; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199 if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201 $as_echo "$ac_ct_STRIP" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 STRIP=$ac_ct_STRIP
3218 else
3219 STRIP="$ac_cv_prog_STRIP"
3223 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3227 if test -z "$MKDIR_P"; then
3228 if test "${ac_cv_path_mkdir+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in mkdir gmkdir; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3240 'mkdir (GNU coreutils) '* | \
3241 'mkdir (coreutils) '* | \
3242 'mkdir (fileutils) '4.1*)
3243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3244 break 3;;
3245 esac
3246 done
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3255 else
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 test -d ./--version && rmdir ./--version
3261 MKDIR_P="$ac_install_sh -d"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3265 $as_echo "$MKDIR_P" >&6; }
3267 mkdir_p="$MKDIR_P"
3268 case $mkdir_p in
3269 [\\/$]* | ?:[\\/]*) ;;
3270 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3271 esac
3273 for ac_prog in gawk mawk nawk awk
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_AWK+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$AWK"; then
3283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_AWK="$ac_prog"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3298 IFS=$as_save_IFS
3302 AWK=$ac_cv_prog_AWK
3303 if test -n "$AWK"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3305 $as_echo "$AWK" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3312 test -n "$AWK" && break
3313 done
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3317 set x ${MAKE-make}
3318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3319 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat >conftest.make <<\_ACEOF
3323 SHELL = /bin/sh
3324 all:
3325 @echo '@@@%%%=$(MAKE)=@@@%%%'
3326 _ACEOF
3327 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3329 *@@@%%%=?*=@@@%%%*)
3330 eval ac_cv_prog_make_${ac_make}_set=yes;;
3332 eval ac_cv_prog_make_${ac_make}_set=no;;
3333 esac
3334 rm -f conftest.make
3336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339 SET_MAKE=
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 SET_MAKE="MAKE=${MAKE-make}"
3346 rm -rf .tst 2>/dev/null
3347 mkdir .tst 2>/dev/null
3348 if test -d .tst; then
3349 am__leading_dot=.
3350 else
3351 am__leading_dot=_
3353 rmdir .tst 2>/dev/null
3355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357 # is not polluted with repeated "-I."
3358 am__isrc=' -I$(srcdir)'
3359 # test to see if srcdir already configured
3360 if test -f $srcdir/config.status; then
3361 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3365 # test whether we have cygpath
3366 if test -z "$CYGPATH_W"; then
3367 if (cygpath --version) >/dev/null 2>/dev/null; then
3368 CYGPATH_W='cygpath -w'
3369 else
3370 CYGPATH_W=echo
3375 # Define the identity of the package.
3376 PACKAGE='libgfortran'
3377 VERSION='0.3'
3380 # Some tools Automake needs.
3382 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3385 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3388 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3391 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3394 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396 # We need awk for the "check" target. The system "awk" is bad on
3397 # some platforms.
3398 # Always define AMTAR for backward compatibility. Yes, it's still used
3399 # in the wild :-( We should find a proper way to deprecate it ...
3400 AMTAR='$${TAR-tar}'
3402 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3411 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3415 else
3416 USE_MAINTAINER_MODE=no
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3420 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3421 if test $USE_MAINTAINER_MODE = yes; then
3422 MAINTAINER_MODE_TRUE=
3423 MAINTAINER_MODE_FALSE='#'
3424 else
3425 MAINTAINER_MODE_TRUE='#'
3426 MAINTAINER_MODE_FALSE=
3429 MAINT=$MAINTAINER_MODE_TRUE
3432 # Default to --enable-multilib
3433 # Check whether --enable-multilib was given.
3434 if test "${enable_multilib+set}" = set; then :
3435 enableval=$enable_multilib; case "$enableval" in
3436 yes) multilib=yes ;;
3437 no) multilib=no ;;
3438 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3439 esac
3440 else
3441 multilib=yes
3445 # We may get other options which we leave undocumented:
3446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3447 # See config-ml.in if you want the gory details.
3449 if test "$srcdir" = "."; then
3450 if test "$with_target_subdir" != "."; then
3451 multi_basedir="$srcdir/$with_multisrctop../.."
3452 else
3453 multi_basedir="$srcdir/$with_multisrctop.."
3455 else
3456 multi_basedir="$srcdir/.."
3460 # Even if the default multilib is not a cross compilation,
3461 # it may be that some of the other multilibs are.
3462 if test $cross_compiling = no && test $multilib = yes \
3463 && test "x${with_multisubdir}" != x ; then
3464 cross_compiling=maybe
3467 ac_config_commands="$ac_config_commands default-1"
3470 # Handy for debugging:
3471 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3473 # Are we being configured with some form of cross compiler?
3474 # NB: We don't actually need to know this just now, but when, say, a test
3475 # suite is included, we'll have to know.
3476 if test "$build" != "$host"; then
3477 LIBGFOR_IS_NATIVE=false
3479 else
3480 LIBGFOR_IS_NATIVE=true
3483 DEPDIR="${am__leading_dot}deps"
3485 ac_config_commands="$ac_config_commands depfiles"
3488 am_make=${MAKE-make}
3489 cat > confinc << 'END'
3490 am__doit:
3491 @echo this is the am__doit target
3492 .PHONY: am__doit
3494 # If we don't find an include directive, just comment out the code.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3496 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3497 am__include="#"
3498 am__quote=
3499 _am_result=none
3500 # First try GNU make style include.
3501 echo "include confinc" > confmf
3502 # Ignore all kinds of additional output from `make'.
3503 case `$am_make -s -f confmf 2> /dev/null` in #(
3504 *the\ am__doit\ target*)
3505 am__include=include
3506 am__quote=
3507 _am_result=GNU
3509 esac
3510 # Now try BSD make style include.
3511 if test "$am__include" = "#"; then
3512 echo '.include "confinc"' > confmf
3513 case `$am_make -s -f confmf 2> /dev/null` in #(
3514 *the\ am__doit\ target*)
3515 am__include=.include
3516 am__quote="\""
3517 _am_result=BSD
3519 esac
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3524 $as_echo "$_am_result" >&6; }
3525 rm -f confinc confmf
3527 # Check whether --enable-dependency-tracking was given.
3528 if test "${enable_dependency_tracking+set}" = set; then :
3529 enableval=$enable_dependency_tracking;
3532 if test "x$enable_dependency_tracking" != xno; then
3533 am_depcomp="$ac_aux_dir/depcomp"
3534 AMDEPBACKSLASH='\'
3535 am__nodep='_no'
3537 if test "x$enable_dependency_tracking" != xno; then
3538 AMDEP_TRUE=
3539 AMDEP_FALSE='#'
3540 else
3541 AMDEP_TRUE='#'
3542 AMDEP_FALSE=
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3590 if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "gcc", so it can be a program name with args.
3593 set dummy gcc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_ac_ct_CC="gcc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 $as_echo "$ac_ct_CC" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 CC=$ac_ct_CC
3639 else
3640 CC="$ac_cv_prog_CC"
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC="${ac_tool_prefix}cc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3684 if test -z "$CC"; then
3685 # Extract the first word of "cc", so it can be a program name with args.
3686 set dummy cc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 ac_prog_rejected=no
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3704 ac_prog_rejected=yes
3705 continue
3707 ac_cv_prog_CC="cc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3715 if test $ac_prog_rejected = yes; then
3716 # We found a bogon in the path, so make sure we never use it.
3717 set dummy $ac_cv_prog_CC
3718 shift
3719 if test $# != 0; then
3720 # We chose a different compiler from the bogus one.
3721 # However, it has the same basename, so the bogon will be chosen
3722 # first if we set CC to just the basename; use the full file name.
3723 shift
3724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 for ac_prog in cl.exe
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3767 IFS=$as_save_IFS
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 $as_echo "$CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$CC" && break
3782 done
3784 if test -z "$CC"; then
3785 ac_ct_CC=$CC
3786 for ac_prog in cl.exe
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$ac_ct_CC"; then
3796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_ac_ct_CC="$ac_prog"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816 if test -n "$ac_ct_CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818 $as_echo "$ac_ct_CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3825 test -n "$ac_ct_CC" && break
3826 done
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 CC=$ac_ct_CC
3844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error "no acceptable C compiler found in \$PATH
3847 See \`config.log' for more details." "$LINENO" 5; }
3849 # Provide some information about the compiler.
3850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3851 set X $ac_compile
3852 ac_compiler=$2
3853 for ac_option in --version -v -V -qversion; do
3854 { { ac_try="$ac_compiler $ac_option >&5"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862 ac_status=$?
3863 if test -s conftest.err; then
3864 sed '10a\
3865 ... rest of stderr output deleted ...
3866 10q' conftest.err >conftest.er1
3867 cat conftest.er1 >&5
3868 rm -f conftest.er1 conftest.err
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }
3872 done
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 main ()
3882 return 0;
3884 _ACEOF
3885 # FIXME: Cleanup?
3886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3887 (eval $ac_link) 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 gcc_no_link=no
3892 else
3893 gcc_no_link=yes
3895 if test x$gcc_no_link = xyes; then
3896 # Setting cross_compile will disable run tests; it will
3897 # also disable AC_CHECK_FILE but that's generally
3898 # correct if we can't link.
3899 cross_compiling=yes
3900 EXEEXT=
3901 else
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3906 main ()
3910 return 0;
3912 _ACEOF
3913 ac_clean_files_save=$ac_clean_files
3914 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3915 # Try to create an executable without -o first, disregard a.out.
3916 # It will help us diagnose broken compilers, and finding out an intuition
3917 # of exeext.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3919 $as_echo_n "checking for C compiler default output file name... " >&6; }
3920 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3922 # The possible output files:
3923 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3925 ac_rmfiles=
3926 for ac_file in $ac_files
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3931 esac
3932 done
3933 rm -f $ac_rmfiles
3935 if { { ac_try="$ac_link_default"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_link_default") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3947 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3948 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3949 # so that the user can short-circuit this test for compilers unknown to
3950 # Autoconf.
3951 for ac_file in $ac_files ''
3953 test -f "$ac_file" || continue
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3957 [ab].out )
3958 # We found the default executable, but exeext='' is most
3959 # certainly right.
3960 break;;
3961 *.* )
3962 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3963 then :; else
3964 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966 # We set ac_cv_exeext here because the later test for it is not
3967 # safe: cross compilers may not add the suffix if given an `-o'
3968 # argument, so we may need to know it at that point already.
3969 # Even if this section looks crufty: it has the advantage of
3970 # actually working.
3971 break;;
3973 break;;
3974 esac
3975 done
3976 test "$ac_cv_exeext" = no && ac_cv_exeext=
3978 else
3979 ac_file=''
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3982 $as_echo "$ac_file" >&6; }
3983 if test -z "$ac_file"; then :
3984 $as_echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 { as_fn_set_status 77
3990 as_fn_error "C compiler cannot create executables
3991 See \`config.log' for more details." "$LINENO" 5; }; }
3993 ac_exeext=$ac_cv_exeext
3995 # Check that the compiler produces executables we can run. If not, either
3996 # the compiler is broken, or we cross compile.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3998 $as_echo_n "checking whether the C compiler works... " >&6; }
3999 # If not cross compiling, check that we can run a simple program.
4000 if test "$cross_compiling" != yes; then
4001 if { ac_try='./$ac_file'
4002 { { case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_try") 2>&5
4009 ac_status=$?
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; }; then
4012 cross_compiling=no
4013 else
4014 if test "$cross_compiling" = maybe; then
4015 cross_compiling=yes
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot run C compiled programs.
4020 If you meant to cross compile, use \`--host'.
4021 See \`config.log' for more details." "$LINENO" 5; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4029 ac_clean_files=$ac_clean_files_save
4030 # Check that the compiler produces executables we can run. If not, either
4031 # the compiler is broken, or we cross compile.
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033 $as_echo_n "checking whether we are cross compiling... " >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035 $as_echo "$cross_compiling" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4038 $as_echo_n "checking for suffix of executables... " >&6; }
4039 if { { ac_try="$ac_link"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_link") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; then :
4050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4052 # work properly (i.e., refer to `conftest.exe'), while it won't with
4053 # `rm'.
4054 for ac_file in conftest.exe conftest conftest.*; do
4055 test -f "$ac_file" || continue
4056 case $ac_file in
4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4059 break;;
4060 * ) break;;
4061 esac
4062 done
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error "cannot compute suffix of executables: cannot compile and link
4067 See \`config.log' for more details." "$LINENO" 5; }
4069 rm -f conftest$ac_cv_exeext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4071 $as_echo "$ac_cv_exeext" >&6; }
4073 rm -f conftest.$ac_ext
4074 EXEEXT=$ac_cv_exeext
4075 ac_exeext=$EXEEXT
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if test "${ac_cv_objext+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details." "$LINENO" 5; }
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if test "${ac_cv_prog_cc_g+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 main ()
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 #include <sys/types.h>
4255 #include <sys/stat.h>
4256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4257 struct buf { int x; };
4258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4259 static char *e (p, i)
4260 char **p;
4261 int i;
4263 return p[i];
4265 static char *f (char * (*g) (char **, int), char **p, ...)
4267 char *s;
4268 va_list v;
4269 va_start (v,p);
4270 s = g (p, va_arg (v,int));
4271 va_end (v);
4272 return s;
4275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4276 function prototypes and stuff, but not '\xHH' hex character constants.
4277 These don't provoke an error unfortunately, instead are silently treated
4278 as 'x'. The following induces an error, until -std is added to get
4279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4280 array size at least. It's necessary to write '\x00'==0 to get something
4281 that's true only with -std. */
4282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4285 inside strings and character constants. */
4286 #define FOO(x) 'x'
4287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4289 int test (int i, double x);
4290 struct s1 {int (*f) (int a);};
4291 struct s2 {int (*f) (double a);};
4292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4293 int argc;
4294 char **argv;
4296 main ()
4298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4300 return 0;
4302 _ACEOF
4303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_prog_cc_c89=$ac_arg
4310 rm -f core conftest.err conftest.$ac_objext
4311 test "x$ac_cv_prog_cc_c89" != "xno" && break
4312 done
4313 rm -f conftest.$ac_ext
4314 CC=$ac_save_CC
4317 # AC_CACHE_VAL
4318 case "x$ac_cv_prog_cc_c89" in
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 $as_echo "none needed" >&6; } ;;
4322 xno)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4324 $as_echo "unsupported" >&6; } ;;
4326 CC="$CC $ac_cv_prog_cc_c89"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4328 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4329 esac
4330 if test "x$ac_cv_prog_cc_c89" != xno; then :
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 depcc="$CC" am_compiler_list=
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named `D' -- because `-MD' means `put the output
4352 # in D'.
4353 rm -rf conftest.dir
4354 mkdir conftest.dir
4355 # Copy depcomp to subdir because otherwise we won't find it if we're
4356 # using a relative directory.
4357 cp "$am_depcomp" conftest.dir
4358 cd conftest.dir
4359 # We will build objects and dependencies in a subdirectory because
4360 # it helps to detect inapplicable dependency modes. For instance
4361 # both Tru64's cc and ICC support -MD to output dependencies as a
4362 # side effect of compilation, but ICC will put the dependencies in
4363 # the current directory while Tru64 will put them in the object
4364 # directory.
4365 mkdir sub
4367 am_cv_CC_dependencies_compiler_type=none
4368 if test "$am_compiler_list" = ""; then
4369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371 am__universal=false
4372 case " $depcc " in #(
4373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4374 esac
4376 for depmode in $am_compiler_list; do
4377 # Setup a source with many dependencies, because some compilers
4378 # like to wrap large dependency lists on column 80 (with \), and
4379 # we should not choose a depcomp mode which is confused by this.
4381 # We need to recreate these files for each test, as the compiler may
4382 # overwrite some of them when testing with obscure command lines.
4383 # This happens at least with the AIX C compiler.
4384 : > sub/conftest.c
4385 for i in 1 2 3 4 5 6; do
4386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4388 # Solaris 8's {/usr,}/bin/sh.
4389 touch sub/conftst$i.h
4390 done
4391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4394 # mode. It turns out that the SunPro C++ compiler does not properly
4395 # handle `-M -o', and we need to detect this. Also, some Intel
4396 # versions had trouble with output in subdirs
4397 am__obj=sub/conftest.${OBJEXT-o}
4398 am__minus_obj="-o $am__obj"
4399 case $depmode in
4400 gcc)
4401 # This depmode causes a compiler race in universal mode.
4402 test "$am__universal" = false || continue
4404 nosideeffect)
4405 # after this tag, mechanisms are not by side-effect, so they'll
4406 # only be used when explicitly requested
4407 if test "x$enable_dependency_tracking" = xyes; then
4408 continue
4409 else
4410 break
4413 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4414 # This compiler won't grok `-c -o', but also, the minuso test has
4415 # not run yet. These depmodes are late enough in the game, and
4416 # so weak that their functioning should not be impacted.
4417 am__obj=conftest.${OBJEXT-o}
4418 am__minus_obj=
4420 none) break ;;
4421 esac
4422 if depmode=$depmode \
4423 source=sub/conftest.c object=$am__obj \
4424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4426 >/dev/null 2>conftest.err &&
4427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4431 # icc doesn't choke on unknown options, it will just issue warnings
4432 # or remarks (even with -Werror). So we grep stderr for any message
4433 # that says an option was ignored or not supported.
4434 # When given -MP, icc 7.0 and 7.1 complain thusly:
4435 # icc: Command line warning: ignoring option '-M'; no argument required
4436 # The diagnosis changed in icc 8.0:
4437 # icc: Command line remark: option '-MP' not supported
4438 if (grep 'ignoring option' conftest.err ||
4439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4440 am_cv_CC_dependencies_compiler_type=$depmode
4441 break
4444 done
4446 cd ..
4447 rm -rf conftest.dir
4448 else
4449 am_cv_CC_dependencies_compiler_type=none
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4454 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4455 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4458 test "x$enable_dependency_tracking" != xno \
4459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4460 am__fastdepCC_TRUE=
4461 am__fastdepCC_FALSE='#'
4462 else
4463 am__fastdepCC_TRUE='#'
4464 am__fastdepCC_FALSE=
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4476 # On Suns, sometimes $CPP names a directory.
4477 if test -n "$CPP" && test -d "$CPP"; then
4478 CPP=
4480 if test -z "$CPP"; then
4481 if test "${ac_cv_prog_CPP+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 # Double quotes because CPP needs to be expanded
4485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487 ac_preproc_ok=false
4488 for ac_c_preproc_warn_flag in '' yes
4490 # Use a header file that comes with gcc, so configuring glibc
4491 # with a fresh cross-compiler works.
4492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 # <limits.h> exists even on freestanding compilers.
4494 # On the NeXT, cc -E runs the code through the compiler's parser,
4495 # not just through cpp. "Syntax error" is here to catch this case.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #ifdef __STDC__
4499 # include <limits.h>
4500 #else
4501 # include <assert.h>
4502 #endif
4503 Syntax error
4504 _ACEOF
4505 if ac_fn_c_try_cpp "$LINENO"; then :
4507 else
4508 # Broken: fails on valid input.
4509 continue
4511 rm -f conftest.err conftest.$ac_ext
4513 # OK, works on sane cases. Now check whether nonexistent headers
4514 # can be detected and how.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520 # Broken: success on invalid input.
4521 continue
4522 else
4523 # Passes both tests.
4524 ac_preproc_ok=:
4525 break
4527 rm -f conftest.err conftest.$ac_ext
4529 done
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then :
4533 break
4536 done
4537 ac_cv_prog_CPP=$CPP
4540 CPP=$ac_cv_prog_CPP
4541 else
4542 ac_cv_prog_CPP=$CPP
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4545 $as_echo "$CPP" >&6; }
4546 ac_preproc_ok=false
4547 for ac_c_preproc_warn_flag in '' yes
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #ifdef __STDC__
4558 # include <limits.h>
4559 #else
4560 # include <assert.h>
4561 #endif
4562 Syntax error
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4566 else
4567 # Broken: fails on valid input.
4568 continue
4570 rm -f conftest.err conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4577 _ACEOF
4578 if ac_fn_c_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4580 continue
4581 else
4582 # Passes both tests.
4583 ac_preproc_ok=:
4584 break
4586 rm -f conftest.err conftest.$ac_ext
4588 done
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.err conftest.$ac_ext
4591 if $ac_preproc_ok; then :
4593 else
4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4597 See \`config.log' for more details." "$LINENO" 5; }
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4609 if test "${ac_cv_path_GREP+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -z "$GREP"; then
4613 ac_path_GREP_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in grep ggrep; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4624 # Check for GNU ac_path_GREP and select it if it is found.
4625 # Check for GNU $ac_path_GREP
4626 case `"$ac_path_GREP" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo 'GREP' >> "conftest.nl"
4638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_GREP="$ac_path_GREP"
4644 ac_path_GREP_max=$ac_count
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4652 $ac_path_GREP_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_GREP"; then
4658 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 else
4661 ac_cv_path_GREP=$GREP
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4666 $as_echo "$ac_cv_path_GREP" >&6; }
4667 GREP="$ac_cv_path_GREP"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4671 $as_echo_n "checking for egrep... " >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676 then ac_cv_path_EGREP="$GREP -E"
4677 else
4678 if test -z "$EGREP"; then
4679 ac_path_EGREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in egrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4690 # Check for GNU ac_path_EGREP and select it if it is found.
4691 # Check for GNU $ac_path_EGREP
4692 case `"$ac_path_EGREP" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'EGREP' >> "conftest.nl"
4704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_EGREP="$ac_path_EGREP"
4710 ac_path_EGREP_max=$ac_count
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4718 $ac_path_EGREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_EGREP"; then
4724 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 else
4727 ac_cv_path_EGREP=$EGREP
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4733 $as_echo "$ac_cv_path_EGREP" >&6; }
4734 EGREP="$ac_cv_path_EGREP"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4738 $as_echo_n "checking for ANSI C header files... " >&6; }
4739 if test "${ac_cv_header_stdc+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <stdlib.h>
4745 #include <stdarg.h>
4746 #include <string.h>
4747 #include <float.h>
4750 main ()
4754 return 0;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_header_stdc=yes
4759 else
4760 ac_cv_header_stdc=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 if test $ac_cv_header_stdc = yes; then
4765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <string.h>
4770 _ACEOF
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "memchr" >/dev/null 2>&1; then :
4774 else
4775 ac_cv_header_stdc=no
4777 rm -f conftest*
4781 if test $ac_cv_header_stdc = yes; then
4782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <stdlib.h>
4787 _ACEOF
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 $EGREP "free" >/dev/null 2>&1; then :
4791 else
4792 ac_cv_header_stdc=no
4794 rm -f conftest*
4798 if test $ac_cv_header_stdc = yes; then
4799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4800 if test "$cross_compiling" = yes; then :
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #include <ctype.h>
4806 #include <stdlib.h>
4807 #if ((' ' & 0x0FF) == 0x020)
4808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4810 #else
4811 # define ISLOWER(c) \
4812 (('a' <= (c) && (c) <= 'i') \
4813 || ('j' <= (c) && (c) <= 'r') \
4814 || ('s' <= (c) && (c) <= 'z'))
4815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4816 #endif
4818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820 main ()
4822 int i;
4823 for (i = 0; i < 256; i++)
4824 if (XOR (islower (i), ISLOWER (i))
4825 || toupper (i) != TOUPPER (i))
4826 return 2;
4827 return 0;
4829 _ACEOF
4830 if ac_fn_c_try_run "$LINENO"; then :
4832 else
4833 ac_cv_header_stdc=no
4835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4836 conftest.$ac_objext conftest.beam conftest.$ac_ext
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4842 $as_echo "$ac_cv_header_stdc" >&6; }
4843 if test $ac_cv_header_stdc = yes; then
4845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4851 inttypes.h stdint.h unistd.h
4852 do :
4853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4856 eval as_val=\$$as_ac_Header
4857 if test "x$as_val" = x""yes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4864 done
4868 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4869 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4870 MINIX=yes
4871 else
4872 MINIX=
4876 if test "$MINIX" = yes; then
4878 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4881 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4884 $as_echo "#define _MINIX 1" >>confdefs.h
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4890 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4891 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 # define __EXTENSIONS__ 1
4898 $ac_includes_default
4900 main ()
4904 return 0;
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_safe_to_define___extensions__=yes
4909 else
4910 ac_cv_safe_to_define___extensions__=no
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4916 test $ac_cv_safe_to_define___extensions__ = yes &&
4917 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4919 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4921 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4923 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4925 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4929 # Calculate toolexeclibdir
4930 # Also toolexecdir, though it's only used in toolexeclibdir
4931 case ${version_specific_libs} in
4932 yes)
4933 # Need the gcc compiler version to know where to install libraries
4934 # and header files if --enable-version-specific-runtime-libs option
4935 # is selected.
4936 toolexecdir='$(libdir)/gcc/$(target_alias)'
4937 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4940 if test -n "$with_cross_host" &&
4941 test x"$with_cross_host" != x"no"; then
4942 # Install a library built with a cross compiler in tooldir, not libdir.
4943 toolexecdir='$(exec_prefix)/$(target_alias)'
4944 toolexeclibdir='$(toolexecdir)/lib'
4945 else
4946 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4947 toolexeclibdir='$(libdir)'
4949 multi_os_directory=`$CC -print-multi-os-directory`
4950 case $multi_os_directory in
4951 .) ;; # Avoid trailing /.
4952 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4953 esac
4955 esac
4959 # Create a spec file, so that compile/link tests don't fail
4960 test -f libgfortran.spec || touch libgfortran.spec
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 # Check the compiler.
4969 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4970 # We must force CC to /not/ be precious variables; otherwise
4971 # the wrong, non-multilib-adjusted value will be used in multilibs.
4972 # As a side effect, we have to subst CFLAGS ourselves.
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 CC=$ac_cv_prog_CC
5010 if test -n "$CC"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5012 $as_echo "$CC" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5020 if test -z "$ac_cv_prog_CC"; then
5021 ac_ct_CC=$CC
5022 # Extract the first word of "gcc", so it can be a program name with args.
5023 set dummy gcc; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_CC"; then
5030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_ac_ct_CC="gcc"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5050 if test -n "$ac_ct_CC"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5052 $as_echo "$ac_ct_CC" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5058 if test "x$ac_ct_CC" = x; then
5059 CC=""
5060 else
5061 case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067 CC=$ac_ct_CC
5069 else
5070 CC="$ac_cv_prog_CC"
5073 if test -z "$CC"; then
5074 if test -n "$ac_tool_prefix"; then
5075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5076 set dummy ${ac_tool_prefix}cc; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_CC+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$CC"; then
5083 ac_cv_prog_CC="$CC" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_CC="${ac_tool_prefix}cc"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5096 done
5097 done
5098 IFS=$as_save_IFS
5102 CC=$ac_cv_prog_CC
5103 if test -n "$CC"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5105 $as_echo "$CC" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5114 if test -z "$CC"; then
5115 # Extract the first word of "cc", so it can be a program name with args.
5116 set dummy cc; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_CC+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -n "$CC"; then
5123 ac_cv_prog_CC="$CC" # Let the user override the test.
5124 else
5125 ac_prog_rejected=no
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5134 ac_prog_rejected=yes
5135 continue
5137 ac_cv_prog_CC="cc"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5145 if test $ac_prog_rejected = yes; then
5146 # We found a bogon in the path, so make sure we never use it.
5147 set dummy $ac_cv_prog_CC
5148 shift
5149 if test $# != 0; then
5150 # We chose a different compiler from the bogus one.
5151 # However, it has the same basename, so the bogon will be chosen
5152 # first if we set CC to just the basename; use the full file name.
5153 shift
5154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5159 CC=$ac_cv_prog_CC
5160 if test -n "$CC"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5162 $as_echo "$CC" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$CC"; then
5171 if test -n "$ac_tool_prefix"; then
5172 for ac_prog in cl.exe
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_CC+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 test -n "$CC" && break
5212 done
5214 if test -z "$CC"; then
5215 ac_ct_CC=$CC
5216 for ac_prog in cl.exe
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5248 $as_echo "$ac_ct_CC" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 test -n "$ac_ct_CC" && break
5256 done
5258 if test "x$ac_ct_CC" = x; then
5259 CC=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267 CC=$ac_ct_CC
5274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5276 as_fn_error "no acceptable C compiler found in \$PATH
5277 See \`config.log' for more details." "$LINENO" 5; }
5279 # Provide some information about the compiler.
5280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5281 set X $ac_compile
5282 ac_compiler=$2
5283 for ac_option in --version -v -V -qversion; do
5284 { { ac_try="$ac_compiler $ac_option >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5292 ac_status=$?
5293 if test -s conftest.err; then
5294 sed '10a\
5295 ... rest of stderr output deleted ...
5296 10q' conftest.err >conftest.er1
5297 cat conftest.er1 >&5
5298 rm -f conftest.er1 conftest.err
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; }
5302 done
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5306 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5313 main ()
5315 #ifndef __GNUC__
5316 choke me
5317 #endif
5320 return 0;
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_compiler_gnu=yes
5325 else
5326 ac_compiler_gnu=no
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5334 if test $ac_compiler_gnu = yes; then
5335 GCC=yes
5336 else
5337 GCC=
5339 ac_test_CFLAGS=${CFLAGS+set}
5340 ac_save_CFLAGS=$CFLAGS
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5343 if test "${ac_cv_prog_cc_g+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 ac_save_c_werror_flag=$ac_c_werror_flag
5347 ac_c_werror_flag=yes
5348 ac_cv_prog_cc_g=no
5349 CFLAGS="-g"
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5354 main ()
5358 return 0;
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 ac_cv_prog_cc_g=yes
5363 else
5364 CFLAGS=""
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5369 main ()
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5378 else
5379 ac_c_werror_flag=$ac_save_c_werror_flag
5380 CFLAGS="-g"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5385 main ()
5389 return 0;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_prog_cc_g=yes
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_c_werror_flag=$ac_save_c_werror_flag
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5403 $as_echo "$ac_cv_prog_cc_g" >&6; }
5404 if test "$ac_test_CFLAGS" = set; then
5405 CFLAGS=$ac_save_CFLAGS
5406 elif test $ac_cv_prog_cc_g = yes; then
5407 if test "$GCC" = yes; then
5408 CFLAGS="-g -O2"
5409 else
5410 CFLAGS="-g"
5412 else
5413 if test "$GCC" = yes; then
5414 CFLAGS="-O2"
5415 else
5416 CFLAGS=
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5421 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 ac_cv_prog_cc_c89=no
5425 ac_save_CC=$CC
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <stdarg.h>
5429 #include <stdio.h>
5430 #include <sys/types.h>
5431 #include <sys/stat.h>
5432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5433 struct buf { int x; };
5434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5435 static char *e (p, i)
5436 char **p;
5437 int i;
5439 return p[i];
5441 static char *f (char * (*g) (char **, int), char **p, ...)
5443 char *s;
5444 va_list v;
5445 va_start (v,p);
5446 s = g (p, va_arg (v,int));
5447 va_end (v);
5448 return s;
5451 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5452 function prototypes and stuff, but not '\xHH' hex character constants.
5453 These don't provoke an error unfortunately, instead are silently treated
5454 as 'x'. The following induces an error, until -std is added to get
5455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5456 array size at least. It's necessary to write '\x00'==0 to get something
5457 that's true only with -std. */
5458 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5460 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5461 inside strings and character constants. */
5462 #define FOO(x) 'x'
5463 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5465 int test (int i, double x);
5466 struct s1 {int (*f) (int a);};
5467 struct s2 {int (*f) (double a);};
5468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5469 int argc;
5470 char **argv;
5472 main ()
5474 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5476 return 0;
5478 _ACEOF
5479 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5482 CC="$ac_save_CC $ac_arg"
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 ac_cv_prog_cc_c89=$ac_arg
5486 rm -f core conftest.err conftest.$ac_objext
5487 test "x$ac_cv_prog_cc_c89" != "xno" && break
5488 done
5489 rm -f conftest.$ac_ext
5490 CC=$ac_save_CC
5493 # AC_CACHE_VAL
5494 case "x$ac_cv_prog_cc_c89" in
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5497 $as_echo "none needed" >&6; } ;;
5498 xno)
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5500 $as_echo "unsupported" >&6; } ;;
5502 CC="$CC $ac_cv_prog_cc_c89"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5504 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5505 esac
5506 if test "x$ac_cv_prog_cc_c89" != xno; then :
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 depcc="$CC" am_compiler_list=
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5519 $as_echo_n "checking dependency style of $depcc... " >&6; }
5520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5524 # We make a subdir and do the tests there. Otherwise we can end up
5525 # making bogus files that we don't know about and never remove. For
5526 # instance it was reported that on HP-UX the gcc test will end up
5527 # making a dummy file named `D' -- because `-MD' means `put the output
5528 # in D'.
5529 rm -rf conftest.dir
5530 mkdir conftest.dir
5531 # Copy depcomp to subdir because otherwise we won't find it if we're
5532 # using a relative directory.
5533 cp "$am_depcomp" conftest.dir
5534 cd conftest.dir
5535 # We will build objects and dependencies in a subdirectory because
5536 # it helps to detect inapplicable dependency modes. For instance
5537 # both Tru64's cc and ICC support -MD to output dependencies as a
5538 # side effect of compilation, but ICC will put the dependencies in
5539 # the current directory while Tru64 will put them in the object
5540 # directory.
5541 mkdir sub
5543 am_cv_CC_dependencies_compiler_type=none
5544 if test "$am_compiler_list" = ""; then
5545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5547 am__universal=false
5548 case " $depcc " in #(
5549 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5550 esac
5552 for depmode in $am_compiler_list; do
5553 # Setup a source with many dependencies, because some compilers
5554 # like to wrap large dependency lists on column 80 (with \), and
5555 # we should not choose a depcomp mode which is confused by this.
5557 # We need to recreate these files for each test, as the compiler may
5558 # overwrite some of them when testing with obscure command lines.
5559 # This happens at least with the AIX C compiler.
5560 : > sub/conftest.c
5561 for i in 1 2 3 4 5 6; do
5562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564 # Solaris 8's {/usr,}/bin/sh.
5565 touch sub/conftst$i.h
5566 done
5567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5570 # mode. It turns out that the SunPro C++ compiler does not properly
5571 # handle `-M -o', and we need to detect this. Also, some Intel
5572 # versions had trouble with output in subdirs
5573 am__obj=sub/conftest.${OBJEXT-o}
5574 am__minus_obj="-o $am__obj"
5575 case $depmode in
5576 gcc)
5577 # This depmode causes a compiler race in universal mode.
5578 test "$am__universal" = false || continue
5580 nosideeffect)
5581 # after this tag, mechanisms are not by side-effect, so they'll
5582 # only be used when explicitly requested
5583 if test "x$enable_dependency_tracking" = xyes; then
5584 continue
5585 else
5586 break
5589 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5590 # This compiler won't grok `-c -o', but also, the minuso test has
5591 # not run yet. These depmodes are late enough in the game, and
5592 # so weak that their functioning should not be impacted.
5593 am__obj=conftest.${OBJEXT-o}
5594 am__minus_obj=
5596 none) break ;;
5597 esac
5598 if depmode=$depmode \
5599 source=sub/conftest.c object=$am__obj \
5600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5602 >/dev/null 2>conftest.err &&
5603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5607 # icc doesn't choke on unknown options, it will just issue warnings
5608 # or remarks (even with -Werror). So we grep stderr for any message
5609 # that says an option was ignored or not supported.
5610 # When given -MP, icc 7.0 and 7.1 complain thusly:
5611 # icc: Command line warning: ignoring option '-M'; no argument required
5612 # The diagnosis changed in icc 8.0:
5613 # icc: Command line remark: option '-MP' not supported
5614 if (grep 'ignoring option' conftest.err ||
5615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5616 am_cv_CC_dependencies_compiler_type=$depmode
5617 break
5620 done
5622 cd ..
5623 rm -rf conftest.dir
5624 else
5625 am_cv_CC_dependencies_compiler_type=none
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5630 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5634 test "x$enable_dependency_tracking" != xno \
5635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5636 am__fastdepCC_TRUE=
5637 am__fastdepCC_FALSE='#'
5638 else
5639 am__fastdepCC_TRUE='#'
5640 am__fastdepCC_FALSE=
5648 if test "x$CC" != xcc; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5650 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5653 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5655 set dummy $CC; ac_cc=`$as_echo "$2" |
5656 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5657 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5664 main ()
5668 return 0;
5670 _ACEOF
5671 # Make sure it works both with $CC and with simple cc.
5672 # We do the test twice because some compilers refuse to overwrite an
5673 # existing .o file with -o, though they will create one.
5674 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5675 rm -f conftest2.*
5676 if { { case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; } &&
5686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5691 $as_echo "$ac_try_echo"; } >&5
5692 (eval "$ac_try") 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; };
5696 then
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5698 if test "x$CC" != xcc; then
5699 # Test first that cc exists at all.
5700 if { ac_try='cc -c conftest.$ac_ext >&5'
5701 { { case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }; }; then
5711 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5712 rm -f conftest2.*
5713 if { { case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5718 $as_echo "$ac_try_echo"; } >&5
5719 (eval "$ac_try") 2>&5
5720 ac_status=$?
5721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5722 test $ac_status = 0; } &&
5723 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5728 $as_echo "$ac_try_echo"; } >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; };
5733 then
5734 # cc works too.
5736 else
5737 # cc exists but doesn't like -o.
5738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5742 else
5743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5745 rm -f core conftest*
5748 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5755 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5759 # FIXME: we rely on the cache variable name because
5760 # there is no other way.
5761 set dummy $CC
5762 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5763 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5764 if test "$am_t" != yes; then
5765 # Losing compiler, so override with the script.
5766 # FIXME: It is wrong to rewrite CC.
5767 # But if we don't then we get into trouble of one sort or another.
5768 # A longer-term fix would be to have automake use am__CC in this case,
5769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5770 CC="$am_aux_dir/compile $CC"
5775 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5776 if test "x$GCC" = "xyes"; then
5777 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5778 ## We like to use C11 and C99 routines when available. This makes
5779 ## sure that
5780 ## __STDC_VERSION__ is set such that libc includes make them available.
5781 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5782 ## Compile the following tests with the same system header contents
5783 ## that we'll encounter when compiling our own source files.
5784 CFLAGS="-std=gnu11 $CFLAGS"
5790 # Check for symbol versioning (copied from libssp).
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5792 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5793 # Check whether --enable-symvers was given.
5794 if test "${enable_symvers+set}" = set; then :
5795 enableval=$enable_symvers; gfortran_use_symver=$enableval
5796 else
5797 gfortran_use_symver=yes
5800 if test "x$gfortran_use_symver" != xno; then
5801 save_LDFLAGS="$LDFLAGS"
5802 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5803 cat > conftest.map <<EOF
5804 FOO_1.0 {
5805 global: *foo*; bar; local: *;
5808 if test x$gcc_no_link = xyes; then
5809 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int foo;
5815 main ()
5819 return 0;
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 gfortran_use_symver=gnu
5824 else
5825 gfortran_use_symver=no
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 if test x$gfortran_use_symver = xno; then
5830 case "$target_os" in
5831 solaris2*)
5832 LDFLAGS="$save_LDFLAGS"
5833 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5834 # Sun ld cannot handle wildcards and treats all entries as undefined.
5835 cat > conftest.map <<EOF
5836 FOO_1.0 {
5837 global: foo; local: *;
5840 if test x$gcc_no_link = xyes; then
5841 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 int foo;
5847 main ()
5851 return 0;
5853 _ACEOF
5854 if ac_fn_c_try_link "$LINENO"; then :
5855 gfortran_use_symver=sun
5856 else
5857 gfortran_use_symver=no
5859 rm -f core conftest.err conftest.$ac_objext \
5860 conftest$ac_exeext conftest.$ac_ext
5862 esac
5864 LDFLAGS="$save_LDFLAGS"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5867 $as_echo "$gfortran_use_symver" >&6; }
5868 if test "x$gfortran_use_symver" != xno; then
5869 LIBGFOR_USE_SYMVER_TRUE=
5870 LIBGFOR_USE_SYMVER_FALSE='#'
5871 else
5872 LIBGFOR_USE_SYMVER_TRUE='#'
5873 LIBGFOR_USE_SYMVER_FALSE=
5876 if test "x$gfortran_use_symver" = xgnu; then
5877 LIBGFOR_USE_SYMVER_GNU_TRUE=
5878 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5879 else
5880 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5881 LIBGFOR_USE_SYMVER_GNU_FALSE=
5884 if test "x$gfortran_use_symver" = xsun; then
5885 LIBGFOR_USE_SYMVER_SUN_TRUE=
5886 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5887 else
5888 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5889 LIBGFOR_USE_SYMVER_SUN_FALSE=
5893 # For GPU offloading, not everything in libfortran can be supported.
5894 # Currently, the only target that has this problem is nvptx. The
5895 # following is a (partial) list of features that are unsupportable on
5896 # this particular target:
5897 # * Constructors
5898 # * alloca
5899 # * C library support for I/O, with printf as the one notable exception
5900 # * C library support for other features such as signal, environment
5901 # variables, time functions
5903 if test "x${target_cpu}" = xnvptx; then
5904 LIBGFOR_MINIMAL_TRUE=
5905 LIBGFOR_MINIMAL_FALSE='#'
5906 else
5907 LIBGFOR_MINIMAL_TRUE='#'
5908 LIBGFOR_MINIMAL_FALSE=
5912 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5913 # similarly to how libstdc++ does it
5914 ac_test_CFLAGS="${CFLAGS+set}"
5915 ac_save_CFLAGS="$CFLAGS"
5917 # Check for -ffunction-sections -fdata-sections
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5919 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5920 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5925 main ()
5927 int foo;
5929 return 0;
5931 _ACEOF
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 ac_fdsections=yes
5934 else
5935 ac_fdsections=no
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 if test "$ac_test_CFLAGS" = set; then
5939 CFLAGS="$ac_save_CFLAGS"
5940 else
5941 # this is the suspicious part
5942 CFLAGS=""
5944 if test x"$ac_fdsections" = x"yes"; then
5945 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5948 $as_echo "$ac_fdsections" >&6; }
5951 # Find other programs we need.
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}as; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_AS+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$AS"; then
5961 ac_cv_prog_AS="$AS" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_AS="${ac_tool_prefix}as"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5974 done
5975 done
5976 IFS=$as_save_IFS
5980 AS=$ac_cv_prog_AS
5981 if test -n "$AS"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5983 $as_echo "$AS" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5991 if test -z "$ac_cv_prog_AS"; then
5992 ac_ct_AS=$AS
5993 # Extract the first word of "as", so it can be a program name with args.
5994 set dummy as; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$ac_ct_AS"; then
6001 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_ac_ct_AS="as"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6014 done
6015 done
6016 IFS=$as_save_IFS
6020 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6021 if test -n "$ac_ct_AS"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6023 $as_echo "$ac_ct_AS" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6029 if test "x$ac_ct_AS" = x; then
6030 AS=""
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033 yes:)
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038 AS=$ac_ct_AS
6040 else
6041 AS="$ac_cv_prog_AS"
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ar; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_AR+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$AR"; then
6053 ac_cv_prog_AR="$AR" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_AR="${ac_tool_prefix}ar"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6066 done
6067 done
6068 IFS=$as_save_IFS
6072 AR=$ac_cv_prog_AR
6073 if test -n "$AR"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6075 $as_echo "$AR" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6083 if test -z "$ac_cv_prog_AR"; then
6084 ac_ct_AR=$AR
6085 # Extract the first word of "ar", so it can be a program name with args.
6086 set dummy ar; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$ac_ct_AR"; then
6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_AR="ar"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6108 IFS=$as_save_IFS
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6113 if test -n "$ac_ct_AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6115 $as_echo "$ac_ct_AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6121 if test "x$ac_ct_AR" = x; then
6122 AR=""
6123 else
6124 case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130 AR=$ac_ct_AR
6132 else
6133 AR="$ac_cv_prog_AR"
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$RANLIB"; then
6145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6158 done
6159 done
6160 IFS=$as_save_IFS
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6167 $as_echo "$RANLIB" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176 ac_ct_RANLIB=$RANLIB
6177 # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 if test -n "$ac_ct_RANLIB"; then
6185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_RANLIB="ranlib"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6198 done
6199 done
6200 IFS=$as_save_IFS
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6207 $as_echo "$ac_ct_RANLIB" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6213 if test "x$ac_ct_RANLIB" = x; then
6214 RANLIB="ranlib-not-found-in-path-error"
6215 else
6216 case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222 RANLIB=$ac_ct_RANLIB
6224 else
6225 RANLIB="$ac_cv_prog_RANLIB"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6229 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6230 set x ${MAKE-make}
6231 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6232 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat >conftest.make <<\_ACEOF
6236 SHELL = /bin/sh
6237 all:
6238 @echo '@@@%%%=$(MAKE)=@@@%%%'
6239 _ACEOF
6240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6241 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6242 *@@@%%%=?*=@@@%%%*)
6243 eval ac_cv_prog_make_${ac_make}_set=yes;;
6245 eval ac_cv_prog_make_${ac_make}_set=no;;
6246 esac
6247 rm -f conftest.make
6249 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6251 $as_echo "yes" >&6; }
6252 SET_MAKE=
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 SET_MAKE="MAKE=${MAKE-make}"
6261 # Configure libtool
6262 #AC_MSG_NOTICE([====== Starting libtool configuration])
6263 enable_dlopen=yes
6267 case `pwd` in
6268 *\ * | *\ *)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6270 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6271 esac
6275 macro_version='2.2.7a'
6276 macro_revision='1.3134'
6290 ltmain="$ac_aux_dir/ltmain.sh"
6292 # Backslashify metacharacters that are still active within
6293 # double-quoted strings.
6294 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6296 # Same as above, but do not quote variable references.
6297 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6299 # Sed substitution to delay expansion of an escaped shell variable in a
6300 # double_quote_subst'ed string.
6301 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6303 # Sed substitution to delay expansion of an escaped single quote.
6304 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6306 # Sed substitution to avoid accidental globbing in evaled expressions
6307 no_glob_subst='s/\*/\\\*/g'
6309 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6311 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6314 $as_echo_n "checking how to print strings... " >&6; }
6315 # Test print first, because it will be a builtin if present.
6316 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6317 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6318 ECHO='print -r --'
6319 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6320 ECHO='printf %s\n'
6321 else
6322 # Use this function as a fallback that always works.
6323 func_fallback_echo ()
6325 eval 'cat <<_LTECHO_EOF
6327 _LTECHO_EOF'
6329 ECHO='func_fallback_echo'
6332 # func_echo_all arg...
6333 # Invoke $ECHO with all args, space-separated.
6334 func_echo_all ()
6336 $ECHO ""
6339 case "$ECHO" in
6340 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6341 $as_echo "printf" >&6; } ;;
6342 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6343 $as_echo "print -r" >&6; } ;;
6344 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6345 $as_echo "cat" >&6; } ;;
6346 esac
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6362 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6363 if test "${ac_cv_path_SED+set}" = set; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6367 for ac_i in 1 2 3 4 5 6 7; do
6368 ac_script="$ac_script$as_nl$ac_script"
6369 done
6370 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6371 { ac_script=; unset ac_script;}
6372 if test -z "$SED"; then
6373 ac_path_SED_found=false
6374 # Loop through the user's path and test for each of PROGNAME-LIST
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_prog in sed gsed; do
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6383 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6384 # Check for GNU ac_path_SED and select it if it is found.
6385 # Check for GNU $ac_path_SED
6386 case `"$ac_path_SED" --version 2>&1` in
6387 *GNU*)
6388 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6390 ac_count=0
6391 $as_echo_n 0123456789 >"conftest.in"
6392 while :
6394 cat "conftest.in" "conftest.in" >"conftest.tmp"
6395 mv "conftest.tmp" "conftest.in"
6396 cp "conftest.in" "conftest.nl"
6397 $as_echo '' >> "conftest.nl"
6398 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6400 as_fn_arith $ac_count + 1 && ac_count=$as_val
6401 if test $ac_count -gt ${ac_path_SED_max-0}; then
6402 # Best one so far, save it but keep looking for a better one
6403 ac_cv_path_SED="$ac_path_SED"
6404 ac_path_SED_max=$ac_count
6406 # 10*(2^10) chars as input seems more than enough
6407 test $ac_count -gt 10 && break
6408 done
6409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6410 esac
6412 $ac_path_SED_found && break 3
6413 done
6414 done
6415 done
6416 IFS=$as_save_IFS
6417 if test -z "$ac_cv_path_SED"; then
6418 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6420 else
6421 ac_cv_path_SED=$SED
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6426 $as_echo "$ac_cv_path_SED" >&6; }
6427 SED="$ac_cv_path_SED"
6428 rm -f conftest.sed
6430 test -z "$SED" && SED=sed
6431 Xsed="$SED -e 1s/^X//"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6444 $as_echo_n "checking for fgrep... " >&6; }
6445 if test "${ac_cv_path_FGREP+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6449 then ac_cv_path_FGREP="$GREP -F"
6450 else
6451 if test -z "$FGREP"; then
6452 ac_path_FGREP_found=false
6453 # Loop through the user's path and test for each of PROGNAME-LIST
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_prog in fgrep; do
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6462 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6463 # Check for GNU ac_path_FGREP and select it if it is found.
6464 # Check for GNU $ac_path_FGREP
6465 case `"$ac_path_FGREP" --version 2>&1` in
6466 *GNU*)
6467 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6469 ac_count=0
6470 $as_echo_n 0123456789 >"conftest.in"
6471 while :
6473 cat "conftest.in" "conftest.in" >"conftest.tmp"
6474 mv "conftest.tmp" "conftest.in"
6475 cp "conftest.in" "conftest.nl"
6476 $as_echo 'FGREP' >> "conftest.nl"
6477 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6479 as_fn_arith $ac_count + 1 && ac_count=$as_val
6480 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6481 # Best one so far, save it but keep looking for a better one
6482 ac_cv_path_FGREP="$ac_path_FGREP"
6483 ac_path_FGREP_max=$ac_count
6485 # 10*(2^10) chars as input seems more than enough
6486 test $ac_count -gt 10 && break
6487 done
6488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6489 esac
6491 $ac_path_FGREP_found && break 3
6492 done
6493 done
6494 done
6495 IFS=$as_save_IFS
6496 if test -z "$ac_cv_path_FGREP"; then
6497 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6499 else
6500 ac_cv_path_FGREP=$FGREP
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6506 $as_echo "$ac_cv_path_FGREP" >&6; }
6507 FGREP="$ac_cv_path_FGREP"
6510 test -z "$GREP" && GREP=grep
6530 # Check whether --with-gnu-ld was given.
6531 if test "${with_gnu_ld+set}" = set; then :
6532 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6533 else
6534 with_gnu_ld=no
6537 ac_prog=ld
6538 if test "$GCC" = yes; then
6539 # Check if gcc -print-prog-name=ld gives a path.
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6541 $as_echo_n "checking for ld used by $CC... " >&6; }
6542 case $host in
6543 *-*-mingw*)
6544 # gcc leaves a trailing carriage return which upsets mingw
6545 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6547 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6548 esac
6549 case $ac_prog in
6550 # Accept absolute paths.
6551 [\\/]* | ?:[\\/]*)
6552 re_direlt='/[^/][^/]*/\.\./'
6553 # Canonicalize the pathname of ld
6554 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6555 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6556 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6557 done
6558 test -z "$LD" && LD="$ac_prog"
6561 # If it fails, then pretend we aren't using GCC.
6562 ac_prog=ld
6565 # If it is relative, then search for the first ld in PATH.
6566 with_gnu_ld=unknown
6568 esac
6569 elif test "$with_gnu_ld" = yes; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6571 $as_echo_n "checking for GNU ld... " >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6574 $as_echo_n "checking for non-GNU ld... " >&6; }
6576 if test "${lt_cv_path_LD+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -z "$LD"; then
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 for ac_dir in $PATH; do
6582 IFS="$lt_save_ifs"
6583 test -z "$ac_dir" && ac_dir=.
6584 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6585 lt_cv_path_LD="$ac_dir/$ac_prog"
6586 # Check to see if the program is GNU ld. I'd rather use --version,
6587 # but apparently some variants of GNU ld only accept -v.
6588 # Break only if it was the GNU/non-GNU ld that we prefer.
6589 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6590 *GNU* | *'with BFD'*)
6591 test "$with_gnu_ld" != no && break
6594 test "$with_gnu_ld" != yes && break
6596 esac
6598 done
6599 IFS="$lt_save_ifs"
6600 else
6601 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6605 LD="$lt_cv_path_LD"
6606 if test -n "$LD"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6608 $as_echo "$LD" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6613 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6615 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6616 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6620 case `$LD -v 2>&1 </dev/null` in
6621 *GNU* | *'with BFD'*)
6622 lt_cv_prog_gnu_ld=yes
6625 lt_cv_prog_gnu_ld=no
6627 esac
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6630 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6631 with_gnu_ld=$lt_cv_prog_gnu_ld
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6642 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6643 if test "${lt_cv_path_NM+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$NM"; then
6647 # Let the user override the test.
6648 lt_cv_path_NM="$NM"
6649 else
6650 lt_nm_to_check="${ac_tool_prefix}nm"
6651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6652 lt_nm_to_check="$lt_nm_to_check nm"
6654 for lt_tmp_nm in $lt_nm_to_check; do
6655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6657 IFS="$lt_save_ifs"
6658 test -z "$ac_dir" && ac_dir=.
6659 tmp_nm="$ac_dir/$lt_tmp_nm"
6660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6661 # Check to see if the nm accepts a BSD-compat flag.
6662 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6663 # nm: unknown option "B" ignored
6664 # Tru64's nm complains that /dev/null is an invalid object file
6665 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6666 */dev/null* | *'Invalid file or object type'*)
6667 lt_cv_path_NM="$tmp_nm -B"
6668 break
6671 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6672 */dev/null*)
6673 lt_cv_path_NM="$tmp_nm -p"
6674 break
6677 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6678 continue # so that we can try to find one that supports BSD flags
6680 esac
6682 esac
6684 done
6685 IFS="$lt_save_ifs"
6686 done
6687 : ${lt_cv_path_NM=no}
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6691 $as_echo "$lt_cv_path_NM" >&6; }
6692 if test "$lt_cv_path_NM" != "no"; then
6693 NM="$lt_cv_path_NM"
6694 else
6695 # Didn't find any BSD compatible name lister, look for dumpbin.
6696 if test -n "$DUMPBIN"; then :
6697 # Let the user override the test.
6698 else
6699 if test -n "$ac_tool_prefix"; then
6700 for ac_prog in dumpbin "link -dump"
6702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$DUMPBIN"; then
6710 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6723 done
6724 done
6725 IFS=$as_save_IFS
6729 DUMPBIN=$ac_cv_prog_DUMPBIN
6730 if test -n "$DUMPBIN"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6732 $as_echo "$DUMPBIN" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6739 test -n "$DUMPBIN" && break
6740 done
6742 if test -z "$DUMPBIN"; then
6743 ac_ct_DUMPBIN=$DUMPBIN
6744 for ac_prog in dumpbin "link -dump"
6746 # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 if test -n "$ac_ct_DUMPBIN"; then
6754 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6767 done
6768 done
6769 IFS=$as_save_IFS
6773 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6774 if test -n "$ac_ct_DUMPBIN"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6776 $as_echo "$ac_ct_DUMPBIN" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6783 test -n "$ac_ct_DUMPBIN" && break
6784 done
6786 if test "x$ac_ct_DUMPBIN" = x; then
6787 DUMPBIN=":"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790 yes:)
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793 ac_tool_warned=yes ;;
6794 esac
6795 DUMPBIN=$ac_ct_DUMPBIN
6799 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6800 *COFF*)
6801 DUMPBIN="$DUMPBIN -symbols"
6804 DUMPBIN=:
6806 esac
6809 if test "$DUMPBIN" != ":"; then
6810 NM="$DUMPBIN"
6813 test -z "$NM" && NM=nm
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6821 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6822 if test "${lt_cv_nm_interface+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 lt_cv_nm_interface="BSD nm"
6826 echo "int some_variable = 0;" > conftest.$ac_ext
6827 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6828 (eval "$ac_compile" 2>conftest.err)
6829 cat conftest.err >&5
6830 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6831 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6832 cat conftest.err >&5
6833 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6834 cat conftest.out >&5
6835 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6836 lt_cv_nm_interface="MS dumpbin"
6838 rm -f conftest*
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6841 $as_echo "$lt_cv_nm_interface" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844 $as_echo_n "checking whether ln -s works... " >&6; }
6845 LN_S=$as_ln_s
6846 if test "$LN_S" = "ln -s"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848 $as_echo "yes" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851 $as_echo "no, using $LN_S" >&6; }
6854 # find the maximum length of command line arguments
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6856 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6857 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6861 teststring="ABCD"
6863 case $build_os in
6864 msdosdjgpp*)
6865 # On DJGPP, this test can blow up pretty badly due to problems in libc
6866 # (any single argument exceeding 2000 bytes causes a buffer overrun
6867 # during glob expansion). Even if it were fixed, the result of this
6868 # check would be larger than it should be.
6869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6872 gnu*)
6873 # Under GNU Hurd, this test is not required because there is
6874 # no limit to the length of command line arguments.
6875 # Libtool will interpret -1 as no limit whatsoever
6876 lt_cv_sys_max_cmd_len=-1;
6879 cygwin* | mingw* | cegcc*)
6880 # On Win9x/ME, this test blows up -- it succeeds, but takes
6881 # about 5 minutes as the teststring grows exponentially.
6882 # Worse, since 9x/ME are not pre-emptively multitasking,
6883 # you end up with a "frozen" computer, even though with patience
6884 # the test eventually succeeds (with a max line length of 256k).
6885 # Instead, let's just punt: use the minimum linelength reported by
6886 # all of the supported platforms: 8192 (on NT/2K/XP).
6887 lt_cv_sys_max_cmd_len=8192;
6890 mint*)
6891 # On MiNT this can take a long time and run out of memory.
6892 lt_cv_sys_max_cmd_len=8192;
6895 amigaos*)
6896 # On AmigaOS with pdksh, this test takes hours, literally.
6897 # So we just punt and use a minimum line length of 8192.
6898 lt_cv_sys_max_cmd_len=8192;
6901 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6902 # This has been around since 386BSD, at least. Likely further.
6903 if test -x /sbin/sysctl; then
6904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6905 elif test -x /usr/sbin/sysctl; then
6906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6907 else
6908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6910 # And add a safety zone
6911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6915 interix*)
6916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6917 lt_cv_sys_max_cmd_len=196608
6920 osf*)
6921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6923 # nice to cause kernel panics so lets avoid the loop below.
6924 # First set a reasonable default.
6925 lt_cv_sys_max_cmd_len=16384
6927 if test -x /sbin/sysconfig; then
6928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6929 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6930 esac
6933 sco3.2v5*)
6934 lt_cv_sys_max_cmd_len=102400
6936 sysv5* | sco5v6* | sysv4.2uw2*)
6937 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6938 if test -n "$kargmax"; then
6939 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6940 else
6941 lt_cv_sys_max_cmd_len=32768
6945 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6946 if test -n "$lt_cv_sys_max_cmd_len"; then
6947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6949 else
6950 # Make teststring a little bigger before we do anything with it.
6951 # a 1K string should be a reasonable start.
6952 for i in 1 2 3 4 5 6 7 8 ; do
6953 teststring=$teststring$teststring
6954 done
6955 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6956 # If test is not a shell built-in, we'll probably end up computing a
6957 # maximum length that is only half of the actual maximum length, but
6958 # we can't tell.
6959 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6960 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6961 test $i != 17 # 1/2 MB should be enough
6963 i=`expr $i + 1`
6964 teststring=$teststring$teststring
6965 done
6966 # Only check the string length outside the loop.
6967 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6968 teststring=
6969 # Add a significant safety factor because C++ compilers can tack on
6970 # massive amounts of additional arguments before passing them to the
6971 # linker. It appears as though 1/2 is a usable value.
6972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6975 esac
6979 if test -n $lt_cv_sys_max_cmd_len ; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6981 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6984 $as_echo "none" >&6; }
6986 max_cmd_len=$lt_cv_sys_max_cmd_len
6993 : ${CP="cp -f"}
6994 : ${MV="mv -f"}
6995 : ${RM="rm -f"}
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6998 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6999 # Try some XSI features
7000 xsi_shell=no
7001 ( _lt_dummy="a/b/c"
7002 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7003 = c,a/b,, \
7004 && eval 'test $(( 1 + 1 )) -eq 2 \
7005 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7006 && xsi_shell=yes
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7008 $as_echo "$xsi_shell" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7012 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7013 lt_shell_append=no
7014 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7015 >/dev/null 2>&1 \
7016 && lt_shell_append=yes
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7018 $as_echo "$lt_shell_append" >&6; }
7021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7022 lt_unset=unset
7023 else
7024 lt_unset=false
7031 # test EBCDIC or ASCII
7032 case `echo X|tr X '\101'` in
7033 A) # ASCII based system
7034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7035 lt_SP2NL='tr \040 \012'
7036 lt_NL2SP='tr \015\012 \040\040'
7038 *) # EBCDIC based system
7039 lt_SP2NL='tr \100 \n'
7040 lt_NL2SP='tr \r\n \100\100'
7042 esac
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7053 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7054 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 lt_cv_ld_reload_flag='-r'
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7060 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7061 reload_flag=$lt_cv_ld_reload_flag
7062 case $reload_flag in
7063 "" | " "*) ;;
7064 *) reload_flag=" $reload_flag" ;;
7065 esac
7066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7067 case $host_os in
7068 darwin*)
7069 if test "$GCC" = yes; then
7070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7071 else
7072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7075 esac
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$OBJDUMP"; then
7094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7107 done
7108 done
7109 IFS=$as_save_IFS
7113 OBJDUMP=$ac_cv_prog_OBJDUMP
7114 if test -n "$OBJDUMP"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7116 $as_echo "$OBJDUMP" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7124 if test -z "$ac_cv_prog_OBJDUMP"; then
7125 ac_ct_OBJDUMP=$OBJDUMP
7126 # Extract the first word of "objdump", so it can be a program name with args.
7127 set dummy objdump; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$ac_ct_OBJDUMP"; then
7134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7154 if test -n "$ac_ct_OBJDUMP"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7156 $as_echo "$ac_ct_OBJDUMP" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7162 if test "x$ac_ct_OBJDUMP" = x; then
7163 OBJDUMP="false"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 OBJDUMP=$ac_ct_OBJDUMP
7173 else
7174 OBJDUMP="$ac_cv_prog_OBJDUMP"
7177 test -z "$OBJDUMP" && OBJDUMP=objdump
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7188 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7189 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 lt_cv_file_magic_cmd='$MAGIC_CMD'
7193 lt_cv_file_magic_test_file=
7194 lt_cv_deplibs_check_method='unknown'
7195 # Need to set the preceding variable on all platforms that support
7196 # interlibrary dependencies.
7197 # 'none' -- dependencies not supported.
7198 # `unknown' -- same as none, but documents that we really don't know.
7199 # 'pass_all' -- all dependencies passed with no checks.
7200 # 'test_compile' -- check by making test program.
7201 # 'file_magic [[regex]]' -- check by looking for files in library path
7202 # which responds to the $file_magic_cmd with a given extended regex.
7203 # If you have `file' or equivalent on your system and you're not sure
7204 # whether `pass_all' will *always* work, you probably want this one.
7206 case $host_os in
7207 aix[4-9]*)
7208 lt_cv_deplibs_check_method=pass_all
7211 beos*)
7212 lt_cv_deplibs_check_method=pass_all
7215 bsdi[45]*)
7216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7217 lt_cv_file_magic_cmd='/usr/bin/file -L'
7218 lt_cv_file_magic_test_file=/shlib/libc.so
7221 cygwin*)
7222 # func_win32_libid is a shell function defined in ltmain.sh
7223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7224 lt_cv_file_magic_cmd='func_win32_libid'
7227 mingw* | pw32*)
7228 # Base MSYS/MinGW do not provide the 'file' command needed by
7229 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7230 # unless we find 'file', for example because we are cross-compiling.
7231 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7232 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7234 lt_cv_file_magic_cmd='func_win32_libid'
7235 else
7236 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7237 lt_cv_file_magic_cmd='$OBJDUMP -f'
7241 cegcc*)
7242 # use the weaker test based on 'objdump'. See mingw*.
7243 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7244 lt_cv_file_magic_cmd='$OBJDUMP -f'
7247 darwin* | rhapsody*)
7248 lt_cv_deplibs_check_method=pass_all
7251 freebsd* | dragonfly*)
7252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7253 case $host_cpu in
7254 i*86 )
7255 # Not sure whether the presence of OpenBSD here was a mistake.
7256 # Let's accept both of them until this is cleared up.
7257 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7258 lt_cv_file_magic_cmd=/usr/bin/file
7259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7261 esac
7262 else
7263 lt_cv_deplibs_check_method=pass_all
7267 gnu*)
7268 lt_cv_deplibs_check_method=pass_all
7271 haiku*)
7272 lt_cv_deplibs_check_method=pass_all
7275 hpux10.20* | hpux11*)
7276 lt_cv_file_magic_cmd=/usr/bin/file
7277 case $host_cpu in
7278 ia64*)
7279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7282 hppa*64*)
7283 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]'
7284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7290 esac
7293 interix[3-9]*)
7294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7298 irix5* | irix6* | nonstopux*)
7299 case $LD in
7300 *-32|*"-32 ") libmagic=32-bit;;
7301 *-n32|*"-n32 ") libmagic=N32;;
7302 *-64|*"-64 ") libmagic=64-bit;;
7303 *) libmagic=never-match;;
7304 esac
7305 lt_cv_deplibs_check_method=pass_all
7308 # This must be Linux ELF.
7309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7310 lt_cv_deplibs_check_method=pass_all
7313 netbsd*)
7314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7316 else
7317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7321 newos6*)
7322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7323 lt_cv_file_magic_cmd=/usr/bin/file
7324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7327 *nto* | *qnx*)
7328 lt_cv_deplibs_check_method=pass_all
7331 openbsd*)
7332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7334 else
7335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7339 osf3* | osf4* | osf5*)
7340 lt_cv_deplibs_check_method=pass_all
7343 rdos*)
7344 lt_cv_deplibs_check_method=pass_all
7347 solaris*)
7348 lt_cv_deplibs_check_method=pass_all
7351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7352 lt_cv_deplibs_check_method=pass_all
7355 sysv4 | sysv4.3*)
7356 case $host_vendor in
7357 motorola)
7358 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]'
7359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7361 ncr)
7362 lt_cv_deplibs_check_method=pass_all
7364 sequent)
7365 lt_cv_file_magic_cmd='/bin/file'
7366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7368 sni)
7369 lt_cv_file_magic_cmd='/bin/file'
7370 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7371 lt_cv_file_magic_test_file=/lib/libc.so
7373 siemens)
7374 lt_cv_deplibs_check_method=pass_all
7377 lt_cv_deplibs_check_method=pass_all
7379 esac
7382 tpf*)
7383 lt_cv_deplibs_check_method=pass_all
7385 esac
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7389 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7390 file_magic_cmd=$lt_cv_file_magic_cmd
7391 deplibs_check_method=$lt_cv_deplibs_check_method
7392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}ar; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if test "${ac_cv_prog_AR+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$AR"; then
7414 ac_cv_prog_AR="$AR" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_prog_AR="${ac_tool_prefix}ar"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7429 IFS=$as_save_IFS
7433 AR=$ac_cv_prog_AR
7434 if test -n "$AR"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7436 $as_echo "$AR" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_AR"; then
7445 ac_ct_AR=$AR
7446 # Extract the first word of "ar", so it can be a program name with args.
7447 set dummy ar; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_AR"; then
7454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_ac_ct_AR="ar"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7469 IFS=$as_save_IFS
7473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7474 if test -n "$ac_ct_AR"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7476 $as_echo "$ac_ct_AR" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_AR" = x; then
7483 AR="false"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 AR=$ac_ct_AR
7493 else
7494 AR="$ac_cv_prog_AR"
7497 test -z "$AR" && AR=ar
7498 test -z "$AR_FLAGS" && AR_FLAGS=cru
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}strip; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_STRIP+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$STRIP"; then
7519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7532 done
7533 done
7534 IFS=$as_save_IFS
7538 STRIP=$ac_cv_prog_STRIP
7539 if test -n "$STRIP"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7541 $as_echo "$STRIP" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7549 if test -z "$ac_cv_prog_STRIP"; then
7550 ac_ct_STRIP=$STRIP
7551 # Extract the first word of "strip", so it can be a program name with args.
7552 set dummy strip; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$ac_ct_STRIP"; then
7559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_STRIP="strip"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7572 done
7573 done
7574 IFS=$as_save_IFS
7578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7579 if test -n "$ac_ct_STRIP"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7581 $as_echo "$ac_ct_STRIP" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 if test "x$ac_ct_STRIP" = x; then
7588 STRIP=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596 STRIP=$ac_ct_STRIP
7598 else
7599 STRIP="$ac_cv_prog_STRIP"
7602 test -z "$STRIP" && STRIP=:
7609 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$RANLIB"; then
7618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 RANLIB=$ac_cv_prog_RANLIB
7638 if test -n "$RANLIB"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7640 $as_echo "$RANLIB" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_RANLIB"; then
7649 ac_ct_RANLIB=$RANLIB
7650 # Extract the first word of "ranlib", so it can be a program name with args.
7651 set dummy ranlib; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$ac_ct_RANLIB"; then
7658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_ac_ct_RANLIB="ranlib"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7678 if test -n "$ac_ct_RANLIB"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7680 $as_echo "$ac_ct_RANLIB" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_RANLIB" = x; then
7687 RANLIB=":"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695 RANLIB=$ac_ct_RANLIB
7697 else
7698 RANLIB="$ac_cv_prog_RANLIB"
7701 test -z "$RANLIB" && RANLIB=:
7708 # Determine commands to create old-style static archives.
7709 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7710 old_postinstall_cmds='chmod 644 $oldlib'
7711 old_postuninstall_cmds=
7713 if test -n "$RANLIB"; then
7714 case $host_os in
7715 openbsd*)
7716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7721 esac
7722 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7725 case $host_os in
7726 darwin*)
7727 lock_old_archive_extraction=yes ;;
7729 lock_old_archive_extraction=no ;;
7730 esac
7770 # If no C compiler was specified, use CC.
7771 LTCC=${LTCC-"$CC"}
7773 # If no C compiler flags were specified, use CFLAGS.
7774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7776 # Allow CC to be a program name with arguments.
7777 compiler=$CC
7780 # Check for command to grab the raw symbol name followed by C symbol from nm.
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7782 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7783 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7787 # These are sane defaults that work on at least a few old systems.
7788 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7790 # Character class describing NM global symbol codes.
7791 symcode='[BCDEGRST]'
7793 # Regexp to match symbols that can be accessed directly from C.
7794 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7796 # Define system-specific variables.
7797 case $host_os in
7798 aix*)
7799 symcode='[BCDT]'
7801 cygwin* | mingw* | pw32* | cegcc*)
7802 symcode='[ABCDGISTW]'
7804 hpux*)
7805 if test "$host_cpu" = ia64; then
7806 symcode='[ABCDEGRST]'
7809 irix* | nonstopux*)
7810 symcode='[BCDEGRST]'
7812 osf*)
7813 symcode='[BCDEGQRST]'
7815 solaris*)
7816 symcode='[BDRT]'
7818 sco3.2v5*)
7819 symcode='[DT]'
7821 sysv4.2uw2*)
7822 symcode='[DT]'
7824 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7825 symcode='[ABDT]'
7827 sysv4)
7828 symcode='[DFNSTU]'
7830 esac
7832 # If we're using GNU nm, then use its standard symbol codes.
7833 case `$NM -V 2>&1` in
7834 *GNU* | *'with BFD'*)
7835 symcode='[ABCDGIRSTW]' ;;
7836 esac
7838 # Transform an extracted symbol line into a proper C declaration.
7839 # Some systems (esp. on ia64) link data and code symbols differently,
7840 # so use this general approach.
7841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7843 # Transform an extracted symbol line into symbol name and symbol address
7844 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7845 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'"
7847 # Handle CRLF in mingw tool chain
7848 opt_cr=
7849 case $build_os in
7850 mingw*)
7851 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7853 esac
7855 # Try without a prefix underscore, then with it.
7856 for ac_symprfx in "" "_"; do
7858 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7859 symxfrm="\\1 $ac_symprfx\\2 \\2"
7861 # Write the raw and C identifiers.
7862 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7863 # Fake it for dumpbin and say T for any non-static function
7864 # and D for any global variable.
7865 # Also find C++ and __fastcall symbols from MSVC++,
7866 # which start with @ or ?.
7867 lt_cv_sys_global_symbol_pipe="$AWK '"\
7868 " {last_section=section; section=\$ 3};"\
7869 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7870 " \$ 0!~/External *\|/{next};"\
7871 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7872 " {if(hide[section]) next};"\
7873 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7874 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7875 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7876 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7877 " ' prfx=^$ac_symprfx"
7878 else
7879 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7882 # Check to see that the pipe works correctly.
7883 pipe_works=no
7885 rm -f conftest*
7886 cat > conftest.$ac_ext <<_LT_EOF
7887 #ifdef __cplusplus
7888 extern "C" {
7889 #endif
7890 char nm_test_var;
7891 void nm_test_func(void);
7892 void nm_test_func(void){}
7893 #ifdef __cplusplus
7895 #endif
7896 int main(){nm_test_var='a';nm_test_func();return(0);}
7897 _LT_EOF
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900 (eval $ac_compile) 2>&5
7901 ac_status=$?
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }; then
7904 # Now try to grab the symbols.
7905 nlist=conftest.nm
7906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7907 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7908 ac_status=$?
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; } && test -s "$nlist"; then
7911 # Try sorting and uniquifying the output.
7912 if sort "$nlist" | uniq > "$nlist"T; then
7913 mv -f "$nlist"T "$nlist"
7914 else
7915 rm -f "$nlist"T
7918 # Make sure that we snagged all the symbols we need.
7919 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7920 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7921 cat <<_LT_EOF > conftest.$ac_ext
7922 #ifdef __cplusplus
7923 extern "C" {
7924 #endif
7926 _LT_EOF
7927 # Now generate the symbol file.
7928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7930 cat <<_LT_EOF >> conftest.$ac_ext
7932 /* The mapping between symbol names and symbols. */
7933 const struct {
7934 const char *name;
7935 void *address;
7937 lt__PROGRAM__LTX_preloaded_symbols[] =
7939 { "@PROGRAM@", (void *) 0 },
7940 _LT_EOF
7941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7942 cat <<\_LT_EOF >> conftest.$ac_ext
7943 {0, (void *) 0}
7946 /* This works around a problem in FreeBSD linker */
7947 #ifdef FREEBSD_WORKAROUND
7948 static const void *lt_preloaded_setup() {
7949 return lt__PROGRAM__LTX_preloaded_symbols;
7951 #endif
7953 #ifdef __cplusplus
7955 #endif
7956 _LT_EOF
7957 # Now try linking the two files.
7958 mv conftest.$ac_objext conftstm.$ac_objext
7959 lt_save_LIBS="$LIBS"
7960 lt_save_CFLAGS="$CFLAGS"
7961 LIBS="conftstm.$ac_objext"
7962 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7964 (eval $ac_link) 2>&5
7965 ac_status=$?
7966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7968 pipe_works=yes
7970 LIBS="$lt_save_LIBS"
7971 CFLAGS="$lt_save_CFLAGS"
7972 else
7973 echo "cannot find nm_test_func in $nlist" >&5
7975 else
7976 echo "cannot find nm_test_var in $nlist" >&5
7978 else
7979 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7981 else
7982 echo "$progname: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 rm -rf conftest* conftst*
7987 # Do not use the global_symbol_pipe unless it works.
7988 if test "$pipe_works" = yes; then
7989 break
7990 else
7991 lt_cv_sys_global_symbol_pipe=
7993 done
7997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7998 lt_cv_sys_global_symbol_to_cdecl=
8000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8002 $as_echo "failed" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8005 $as_echo "ok" >&6; }
8029 # Check whether --enable-libtool-lock was given.
8030 if test "${enable_libtool_lock+set}" = set; then :
8031 enableval=$enable_libtool_lock;
8034 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8036 # Some flags need to be propagated to the compiler or linker for good
8037 # libtool support.
8038 case $host in
8039 ia64-*-hpux*)
8040 # Find out which ABI we are using.
8041 echo 'int i;' > conftest.$ac_ext
8042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8043 (eval $ac_compile) 2>&5
8044 ac_status=$?
8045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; }; then
8047 case `/usr/bin/file conftest.$ac_objext` in
8048 *ELF-32*)
8049 HPUX_IA64_MODE="32"
8051 *ELF-64*)
8052 HPUX_IA64_MODE="64"
8054 esac
8056 rm -rf conftest*
8058 *-*-irix6*)
8059 # Find out which ABI we are using.
8060 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8062 (eval $ac_compile) 2>&5
8063 ac_status=$?
8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8066 if test "$lt_cv_prog_gnu_ld" = yes; then
8067 case `/usr/bin/file conftest.$ac_objext` in
8068 *32-bit*)
8069 LD="${LD-ld} -melf32bsmip"
8071 *N32*)
8072 LD="${LD-ld} -melf32bmipn32"
8074 *64-bit*)
8075 LD="${LD-ld} -melf64bmip"
8077 esac
8078 else
8079 case `/usr/bin/file conftest.$ac_objext` in
8080 *32-bit*)
8081 LD="${LD-ld} -32"
8083 *N32*)
8084 LD="${LD-ld} -n32"
8086 *64-bit*)
8087 LD="${LD-ld} -64"
8089 esac
8092 rm -rf conftest*
8095 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8096 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8097 # Find out which ABI we are using.
8098 echo 'int i;' > conftest.$ac_ext
8099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8100 (eval $ac_compile) 2>&5
8101 ac_status=$?
8102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103 test $ac_status = 0; }; then
8104 case `/usr/bin/file conftest.o` in
8105 *32-bit*)
8106 case $host in
8107 x86_64-*kfreebsd*-gnu)
8108 LD="${LD-ld} -m elf_i386_fbsd"
8110 x86_64-*linux*)
8111 case `/usr/bin/file conftest.o` in
8112 *x86-64*)
8113 LD="${LD-ld} -m elf32_x86_64"
8116 LD="${LD-ld} -m elf_i386"
8118 esac
8120 powerpc64le-*linux*)
8121 LD="${LD-ld} -m elf32lppclinux"
8123 powerpc64-*linux*)
8124 LD="${LD-ld} -m elf32ppclinux"
8126 s390x-*linux*)
8127 LD="${LD-ld} -m elf_s390"
8129 sparc64-*linux*)
8130 LD="${LD-ld} -m elf32_sparc"
8132 esac
8134 *64-bit*)
8135 case $host in
8136 x86_64-*kfreebsd*-gnu)
8137 LD="${LD-ld} -m elf_x86_64_fbsd"
8139 x86_64-*linux*)
8140 LD="${LD-ld} -m elf_x86_64"
8142 powerpcle-*linux*)
8143 LD="${LD-ld} -m elf64lppc"
8145 powerpc-*linux*)
8146 LD="${LD-ld} -m elf64ppc"
8148 s390*-*linux*|s390*-*tpf*)
8149 LD="${LD-ld} -m elf64_s390"
8151 sparc*-*linux*)
8152 LD="${LD-ld} -m elf64_sparc"
8154 esac
8156 esac
8158 rm -rf conftest*
8161 *-*-sco3.2v5*)
8162 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8163 SAVE_CFLAGS="$CFLAGS"
8164 CFLAGS="$CFLAGS -belf"
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8166 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8167 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 ac_ext=c
8171 ac_cpp='$CPP $CPPFLAGS'
8172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8176 if test x$gcc_no_link = xyes; then
8177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8183 main ()
8187 return 0;
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191 lt_cv_cc_needs_belf=yes
8192 else
8193 lt_cv_cc_needs_belf=no
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 ac_ext=c
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8205 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8206 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8207 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8208 CFLAGS="$SAVE_CFLAGS"
8211 sparc*-*solaris*)
8212 # Find out which ABI we are using.
8213 echo 'int i;' > conftest.$ac_ext
8214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8215 (eval $ac_compile) 2>&5
8216 ac_status=$?
8217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218 test $ac_status = 0; }; then
8219 case `/usr/bin/file conftest.o` in
8220 *64-bit*)
8221 case $lt_cv_prog_gnu_ld in
8222 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8224 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8225 LD="${LD-ld} -64"
8228 esac
8230 esac
8232 rm -rf conftest*
8234 esac
8236 need_locks="$enable_libtool_lock"
8239 case $host_os in
8240 rhapsody* | darwin*)
8241 if test -n "$ac_tool_prefix"; then
8242 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8243 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 if test -n "$DSYMUTIL"; then
8250 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8251 else
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8263 done
8264 done
8265 IFS=$as_save_IFS
8269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8270 if test -n "$DSYMUTIL"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8272 $as_echo "$DSYMUTIL" >&6; }
8273 else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8280 if test -z "$ac_cv_prog_DSYMUTIL"; then
8281 ac_ct_DSYMUTIL=$DSYMUTIL
8282 # Extract the first word of "dsymutil", so it can be a program name with args.
8283 set dummy dsymutil; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$ac_ct_DSYMUTIL"; then
8290 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8310 if test -n "$ac_ct_DSYMUTIL"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8312 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8318 if test "x$ac_ct_DSYMUTIL" = x; then
8319 DSYMUTIL=":"
8320 else
8321 case $cross_compiling:$ac_tool_warned in
8322 yes:)
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8325 ac_tool_warned=yes ;;
8326 esac
8327 DSYMUTIL=$ac_ct_DSYMUTIL
8329 else
8330 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8333 if test -n "$ac_tool_prefix"; then
8334 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8335 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 if test -n "$NMEDIT"; then
8342 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8361 NMEDIT=$ac_cv_prog_NMEDIT
8362 if test -n "$NMEDIT"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8364 $as_echo "$NMEDIT" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8372 if test -z "$ac_cv_prog_NMEDIT"; then
8373 ac_ct_NMEDIT=$NMEDIT
8374 # Extract the first word of "nmedit", so it can be a program name with args.
8375 set dummy nmedit; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 if test -n "$ac_ct_NMEDIT"; then
8382 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8391 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8395 done
8396 done
8397 IFS=$as_save_IFS
8401 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8402 if test -n "$ac_ct_NMEDIT"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8404 $as_echo "$ac_ct_NMEDIT" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8410 if test "x$ac_ct_NMEDIT" = x; then
8411 NMEDIT=":"
8412 else
8413 case $cross_compiling:$ac_tool_warned in
8414 yes:)
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8417 ac_tool_warned=yes ;;
8418 esac
8419 NMEDIT=$ac_ct_NMEDIT
8421 else
8422 NMEDIT="$ac_cv_prog_NMEDIT"
8425 if test -n "$ac_tool_prefix"; then
8426 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8427 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_LIPO+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$LIPO"; then
8434 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8453 LIPO=$ac_cv_prog_LIPO
8454 if test -n "$LIPO"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8456 $as_echo "$LIPO" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8464 if test -z "$ac_cv_prog_LIPO"; then
8465 ac_ct_LIPO=$LIPO
8466 # Extract the first word of "lipo", so it can be a program name with args.
8467 set dummy lipo; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 if test -n "$ac_ct_LIPO"; then
8474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_ac_ct_LIPO="lipo"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8493 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8494 if test -n "$ac_ct_LIPO"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8496 $as_echo "$ac_ct_LIPO" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8502 if test "x$ac_ct_LIPO" = x; then
8503 LIPO=":"
8504 else
8505 case $cross_compiling:$ac_tool_warned in
8506 yes:)
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8509 ac_tool_warned=yes ;;
8510 esac
8511 LIPO=$ac_ct_LIPO
8513 else
8514 LIPO="$ac_cv_prog_LIPO"
8517 if test -n "$ac_tool_prefix"; then
8518 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8519 set dummy ${ac_tool_prefix}otool; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$OTOOL"; then
8526 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 OTOOL=$ac_cv_prog_OTOOL
8546 if test -n "$OTOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8548 $as_echo "$OTOOL" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test -z "$ac_cv_prog_OTOOL"; then
8557 ac_ct_OTOOL=$OTOOL
8558 # Extract the first word of "otool", so it can be a program name with args.
8559 set dummy otool; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$ac_ct_OTOOL"; then
8566 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_prog_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8586 if test -n "$ac_ct_OTOOL"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8588 $as_echo "$ac_ct_OTOOL" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8594 if test "x$ac_ct_OTOOL" = x; then
8595 OTOOL=":"
8596 else
8597 case $cross_compiling:$ac_tool_warned in
8598 yes:)
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8601 ac_tool_warned=yes ;;
8602 esac
8603 OTOOL=$ac_ct_OTOOL
8605 else
8606 OTOOL="$ac_cv_prog_OTOOL"
8609 if test -n "$ac_tool_prefix"; then
8610 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8611 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$OTOOL64"; then
8618 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 OTOOL64=$ac_cv_prog_OTOOL64
8638 if test -n "$OTOOL64"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8640 $as_echo "$OTOOL64" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8648 if test -z "$ac_cv_prog_OTOOL64"; then
8649 ac_ct_OTOOL64=$OTOOL64
8650 # Extract the first word of "otool64", so it can be a program name with args.
8651 set dummy otool64; 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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -n "$ac_ct_OTOOL64"; then
8658 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_prog_ac_ct_OTOOL64="otool64"
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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8678 if test -n "$ac_ct_OTOOL64"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8680 $as_echo "$ac_ct_OTOOL64" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8686 if test "x$ac_ct_OTOOL64" = x; then
8687 OTOOL64=":"
8688 else
8689 case $cross_compiling:$ac_tool_warned in
8690 yes:)
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8693 ac_tool_warned=yes ;;
8694 esac
8695 OTOOL64=$ac_ct_OTOOL64
8697 else
8698 OTOOL64="$ac_cv_prog_OTOOL64"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8728 $as_echo_n "checking for -single_module linker flag... " >&6; }
8729 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 lt_cv_apple_cc_single_mod=no
8733 if test -z "${LT_MULTI_MODULE}"; then
8734 # By default we will add the -single_module flag. You can override
8735 # by either setting the environment variable LT_MULTI_MODULE
8736 # non-empty at configure time, or by adding -multi_module to the
8737 # link flags.
8738 rm -rf libconftest.dylib*
8739 echo "int foo(void){return 1;}" > conftest.c
8740 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8741 -dynamiclib -Wl,-single_module conftest.c" >&5
8742 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8743 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8744 _lt_result=$?
8745 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8746 lt_cv_apple_cc_single_mod=yes
8747 else
8748 cat conftest.err >&5
8750 rm -rf libconftest.dylib*
8751 rm -f conftest.*
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8755 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8757 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8758 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 lt_cv_ld_exported_symbols_list=no
8762 save_LDFLAGS=$LDFLAGS
8763 echo "_main" > conftest.sym
8764 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8765 if test x$gcc_no_link = xyes; then
8766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8772 main ()
8776 return 0;
8778 _ACEOF
8779 if ac_fn_c_try_link "$LINENO"; then :
8780 lt_cv_ld_exported_symbols_list=yes
8781 else
8782 lt_cv_ld_exported_symbols_list=no
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 LDFLAGS="$save_LDFLAGS"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8790 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8792 $as_echo_n "checking for -force_load linker flag... " >&6; }
8793 if test "${lt_cv_ld_force_load+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 lt_cv_ld_force_load=no
8797 cat > conftest.c << _LT_EOF
8798 int forced_loaded() { return 2;}
8799 _LT_EOF
8800 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8801 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8802 echo "$AR cru libconftest.a conftest.o" >&5
8803 $AR cru libconftest.a conftest.o 2>&5
8804 cat > conftest.c << _LT_EOF
8805 int main() { return 0;}
8806 _LT_EOF
8807 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8808 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8809 _lt_result=$?
8810 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8811 lt_cv_ld_force_load=yes
8812 else
8813 cat conftest.err >&5
8815 rm -f conftest.err libconftest.a conftest conftest.c
8816 rm -rf conftest.dSYM
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8820 $as_echo "$lt_cv_ld_force_load" >&6; }
8821 case $host_os in
8822 rhapsody* | darwin1.[012])
8823 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8824 darwin1.*)
8825 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8826 darwin*) # darwin 5.x on
8827 # if running on 10.5 or later, the deployment target defaults
8828 # to the OS version, if on x86, and 10.4, the deployment
8829 # target defaults to 10.4. Don't you love it?
8830 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8831 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8832 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8833 10.[012][,.]*)
8834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8835 10.*)
8836 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8837 esac
8839 esac
8840 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8841 _lt_dar_single_mod='$single_module'
8843 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8844 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8845 else
8846 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8848 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8849 _lt_dsymutil='~$DSYMUTIL $lib || :'
8850 else
8851 _lt_dsymutil=
8854 esac
8856 for ac_header in dlfcn.h
8857 do :
8858 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8860 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_DLFCN_H 1
8863 _ACEOF
8867 done
8873 # Set options
8878 enable_win32_dll=no
8881 # Check whether --enable-shared was given.
8882 if test "${enable_shared+set}" = set; then :
8883 enableval=$enable_shared; p=${PACKAGE-default}
8884 case $enableval in
8885 yes) enable_shared=yes ;;
8886 no) enable_shared=no ;;
8888 enable_shared=no
8889 # Look at the argument we got. We use all the common list separators.
8890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8891 for pkg in $enableval; do
8892 IFS="$lt_save_ifs"
8893 if test "X$pkg" = "X$p"; then
8894 enable_shared=yes
8896 done
8897 IFS="$lt_save_ifs"
8899 esac
8900 else
8901 enable_shared=yes
8912 # Check whether --enable-static was given.
8913 if test "${enable_static+set}" = set; then :
8914 enableval=$enable_static; p=${PACKAGE-default}
8915 case $enableval in
8916 yes) enable_static=yes ;;
8917 no) enable_static=no ;;
8919 enable_static=no
8920 # Look at the argument we got. We use all the common list separators.
8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922 for pkg in $enableval; do
8923 IFS="$lt_save_ifs"
8924 if test "X$pkg" = "X$p"; then
8925 enable_static=yes
8927 done
8928 IFS="$lt_save_ifs"
8930 esac
8931 else
8932 enable_static=yes
8944 # Check whether --with-pic was given.
8945 if test "${with_pic+set}" = set; then :
8946 withval=$with_pic; pic_mode="$withval"
8947 else
8948 pic_mode=default
8952 test -z "$pic_mode" && pic_mode=default
8960 # Check whether --enable-fast-install was given.
8961 if test "${enable_fast_install+set}" = set; then :
8962 enableval=$enable_fast_install; p=${PACKAGE-default}
8963 case $enableval in
8964 yes) enable_fast_install=yes ;;
8965 no) enable_fast_install=no ;;
8967 enable_fast_install=no
8968 # Look at the argument we got. We use all the common list separators.
8969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970 for pkg in $enableval; do
8971 IFS="$lt_save_ifs"
8972 if test "X$pkg" = "X$p"; then
8973 enable_fast_install=yes
8975 done
8976 IFS="$lt_save_ifs"
8978 esac
8979 else
8980 enable_fast_install=yes
8993 # This can be used to rebuild libtool when needed
8994 LIBTOOL_DEPS="$ltmain"
8996 # Always use our own libtool.
8997 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9024 test -z "$LN_S" && LN_S="ln -s"
9039 if test -n "${ZSH_VERSION+set}" ; then
9040 setopt NO_GLOB_SUBST
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9044 $as_echo_n "checking for objdir... " >&6; }
9045 if test "${lt_cv_objdir+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 rm -f .libs 2>/dev/null
9049 mkdir .libs 2>/dev/null
9050 if test -d .libs; then
9051 lt_cv_objdir=.libs
9052 else
9053 # MS-DOS does not allow filenames that begin with a dot.
9054 lt_cv_objdir=_libs
9056 rmdir .libs 2>/dev/null
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9059 $as_echo "$lt_cv_objdir" >&6; }
9060 objdir=$lt_cv_objdir
9066 cat >>confdefs.h <<_ACEOF
9067 #define LT_OBJDIR "$lt_cv_objdir/"
9068 _ACEOF
9073 case $host_os in
9074 aix3*)
9075 # AIX sometimes has problems with the GCC collect2 program. For some
9076 # reason, if we set the COLLECT_NAMES environment variable, the problems
9077 # vanish in a puff of smoke.
9078 if test "X${COLLECT_NAMES+set}" != Xset; then
9079 COLLECT_NAMES=
9080 export COLLECT_NAMES
9083 esac
9085 # Global variables:
9086 ofile=libtool
9087 can_build_shared=yes
9089 # All known linkers require a `.a' archive for static linking (except MSVC,
9090 # which needs '.lib').
9091 libext=a
9093 with_gnu_ld="$lt_cv_prog_gnu_ld"
9095 old_CC="$CC"
9096 old_CFLAGS="$CFLAGS"
9098 # Set sane defaults for various variables
9099 test -z "$CC" && CC=cc
9100 test -z "$LTCC" && LTCC=$CC
9101 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9102 test -z "$LD" && LD=ld
9103 test -z "$ac_objext" && ac_objext=o
9105 for cc_temp in $compiler""; do
9106 case $cc_temp in
9107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9109 \-*) ;;
9110 *) break;;
9111 esac
9112 done
9113 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9116 # Only perform the check for file, if the check method requires it
9117 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9118 case $deplibs_check_method in
9119 file_magic*)
9120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9122 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 case $MAGIC_CMD in
9127 [\\/*] | ?:[\\/]*)
9128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9131 lt_save_MAGIC_CMD="$MAGIC_CMD"
9132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9134 for ac_dir in $ac_dummy; do
9135 IFS="$lt_save_ifs"
9136 test -z "$ac_dir" && ac_dir=.
9137 if test -f $ac_dir/${ac_tool_prefix}file; then
9138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9139 if test -n "$file_magic_test_file"; then
9140 case $deplibs_check_method in
9141 "file_magic "*)
9142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9145 $EGREP "$file_magic_regex" > /dev/null; then
9147 else
9148 cat <<_LT_EOF 1>&2
9150 *** Warning: the command libtool uses to detect shared libraries,
9151 *** $file_magic_cmd, produces output that libtool cannot recognize.
9152 *** The result is that libtool may fail to recognize shared libraries
9153 *** as such. This will affect the creation of libtool libraries that
9154 *** depend on shared libraries, but programs linked with such libtool
9155 *** libraries will work regardless of this problem. Nevertheless, you
9156 *** may want to report the problem to your system manager and/or to
9157 *** bug-libtool@gnu.org
9159 _LT_EOF
9160 fi ;;
9161 esac
9163 break
9165 done
9166 IFS="$lt_save_ifs"
9167 MAGIC_CMD="$lt_save_MAGIC_CMD"
9169 esac
9172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9173 if test -n "$MAGIC_CMD"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9175 $as_echo "$MAGIC_CMD" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9185 if test -z "$lt_cv_path_MAGIC_CMD"; then
9186 if test -n "$ac_tool_prefix"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9188 $as_echo_n "checking for file... " >&6; }
9189 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 case $MAGIC_CMD in
9193 [\\/*] | ?:[\\/]*)
9194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9197 lt_save_MAGIC_CMD="$MAGIC_CMD"
9198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9200 for ac_dir in $ac_dummy; do
9201 IFS="$lt_save_ifs"
9202 test -z "$ac_dir" && ac_dir=.
9203 if test -f $ac_dir/file; then
9204 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9205 if test -n "$file_magic_test_file"; then
9206 case $deplibs_check_method in
9207 "file_magic "*)
9208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9211 $EGREP "$file_magic_regex" > /dev/null; then
9213 else
9214 cat <<_LT_EOF 1>&2
9216 *** Warning: the command libtool uses to detect shared libraries,
9217 *** $file_magic_cmd, produces output that libtool cannot recognize.
9218 *** The result is that libtool may fail to recognize shared libraries
9219 *** as such. This will affect the creation of libtool libraries that
9220 *** depend on shared libraries, but programs linked with such libtool
9221 *** libraries will work regardless of this problem. Nevertheless, you
9222 *** may want to report the problem to your system manager and/or to
9223 *** bug-libtool@gnu.org
9225 _LT_EOF
9226 fi ;;
9227 esac
9229 break
9231 done
9232 IFS="$lt_save_ifs"
9233 MAGIC_CMD="$lt_save_MAGIC_CMD"
9235 esac
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if test -n "$MAGIC_CMD"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9241 $as_echo "$MAGIC_CMD" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9248 else
9249 MAGIC_CMD=:
9255 esac
9257 # Use C for the default configuration in the libtool script
9259 lt_save_CC="$CC"
9260 ac_ext=c
9261 ac_cpp='$CPP $CPPFLAGS'
9262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9267 # Source file extension for C test sources.
9268 ac_ext=c
9270 # Object file extension for compiled C test sources.
9271 objext=o
9272 objext=$objext
9274 # Code to be used in simple compile tests
9275 lt_simple_compile_test_code="int some_variable = 0;"
9277 # Code to be used in simple link tests
9278 lt_simple_link_test_code='int main(){return(0);}'
9286 # If no C compiler was specified, use CC.
9287 LTCC=${LTCC-"$CC"}
9289 # If no C compiler flags were specified, use CFLAGS.
9290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9292 # Allow CC to be a program name with arguments.
9293 compiler=$CC
9295 # Save the default compiler, since it gets overwritten when the other
9296 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9297 compiler_DEFAULT=$CC
9299 # save warnings/boilerplate of simple test code
9300 ac_outfile=conftest.$ac_objext
9301 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9303 _lt_compiler_boilerplate=`cat conftest.err`
9304 $RM conftest*
9306 ac_outfile=conftest.$ac_objext
9307 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9309 _lt_linker_boilerplate=`cat conftest.err`
9310 $RM -r conftest*
9313 ## CAVEAT EMPTOR:
9314 ## There is no encapsulation within the following macros, do not change
9315 ## the running order or otherwise move them around unless you know exactly
9316 ## what you are doing...
9317 if test -n "$compiler"; then
9319 lt_prog_compiler_no_builtin_flag=
9321 if test "$GCC" = yes; then
9322 case $cc_basename in
9323 nvcc*)
9324 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9326 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9327 esac
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9330 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9331 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 lt_cv_prog_compiler_rtti_exceptions=no
9335 ac_outfile=conftest.$ac_objext
9336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9337 lt_compiler_flag="-fno-rtti -fno-exceptions"
9338 # Insert the option either (1) after the last *FLAGS variable, or
9339 # (2) before a word containing "conftest.", or (3) at the end.
9340 # Note that $ac_compile itself does not contain backslashes and begins
9341 # with a dollar sign (not a hyphen), so the echo should work correctly.
9342 # The option is referenced via a variable to avoid confusing sed.
9343 lt_compile=`echo "$ac_compile" | $SED \
9344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9346 -e 's:$: $lt_compiler_flag:'`
9347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9348 (eval "$lt_compile" 2>conftest.err)
9349 ac_status=$?
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 if (exit $ac_status) && test -s "$ac_outfile"; then
9353 # The compiler can only warn and ignore the option if not recognized
9354 # So say no if there are warnings other than the usual output.
9355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9358 lt_cv_prog_compiler_rtti_exceptions=yes
9361 $RM conftest*
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9365 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9367 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9368 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9369 else
9380 lt_prog_compiler_wl=
9381 lt_prog_compiler_pic=
9382 lt_prog_compiler_static=
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9385 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9387 if test "$GCC" = yes; then
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_static='-static'
9391 case $host_os in
9392 aix*)
9393 # All AIX code is PIC.
9394 if test "$host_cpu" = ia64; then
9395 # AIX 5 now supports IA64 processor
9396 lt_prog_compiler_static='-Bstatic'
9398 lt_prog_compiler_pic='-fPIC'
9401 amigaos*)
9402 case $host_cpu in
9403 powerpc)
9404 # see comment about AmigaOS4 .so support
9405 lt_prog_compiler_pic='-fPIC'
9407 m68k)
9408 # FIXME: we need at least 68020 code to build shared libraries, but
9409 # adding the `-m68020' flag to GCC prevents building anything better,
9410 # like `-m68040'.
9411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9413 esac
9416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9417 # PIC is the default for these OSes.
9420 mingw* | cygwin* | pw32* | os2* | cegcc*)
9421 # This hack is so that the source file can tell whether it is being
9422 # built for inclusion in a dll (and should export symbols for example).
9423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9424 # (--disable-auto-import) libraries
9425 lt_prog_compiler_pic='-DDLL_EXPORT'
9428 darwin* | rhapsody*)
9429 # PIC is the default on this platform
9430 # Common symbols not allowed in MH_DYLIB files
9431 lt_prog_compiler_pic='-fno-common'
9434 haiku*)
9435 # PIC is the default for Haiku.
9436 # The "-static" flag exists, but is broken.
9437 lt_prog_compiler_static=
9440 hpux*)
9441 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9442 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9443 # sets the default TLS model and affects inlining.
9444 case $host_cpu in
9445 hppa*64*)
9446 # +Z the default
9449 lt_prog_compiler_pic='-fPIC'
9451 esac
9454 interix[3-9]*)
9455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9456 # Instead, we relocate shared libraries at runtime.
9459 msdosdjgpp*)
9460 # Just because we use GCC doesn't mean we suddenly get shared libraries
9461 # on systems that don't support them.
9462 lt_prog_compiler_can_build_shared=no
9463 enable_shared=no
9466 *nto* | *qnx*)
9467 # QNX uses GNU C++, but need to define -shared option too, otherwise
9468 # it will coredump.
9469 lt_prog_compiler_pic='-fPIC -shared'
9472 sysv4*MP*)
9473 if test -d /usr/nec; then
9474 lt_prog_compiler_pic=-Kconform_pic
9479 lt_prog_compiler_pic='-fPIC'
9481 esac
9483 case $cc_basename in
9484 nvcc*) # Cuda Compiler Driver 2.2
9485 lt_prog_compiler_wl='-Xlinker '
9486 lt_prog_compiler_pic='-Xcompiler -fPIC'
9488 esac
9489 else
9490 # PORTME Check for flag to pass linker flags through the system compiler.
9491 case $host_os in
9492 aix*)
9493 lt_prog_compiler_wl='-Wl,'
9494 if test "$host_cpu" = ia64; then
9495 # AIX 5 now supports IA64 processor
9496 lt_prog_compiler_static='-Bstatic'
9497 else
9498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9502 mingw* | cygwin* | pw32* | os2* | cegcc*)
9503 # This hack is so that the source file can tell whether it is being
9504 # built for inclusion in a dll (and should export symbols for example).
9505 lt_prog_compiler_pic='-DDLL_EXPORT'
9508 hpux9* | hpux10* | hpux11*)
9509 lt_prog_compiler_wl='-Wl,'
9510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9511 # not for PA HP-UX.
9512 case $host_cpu in
9513 hppa*64*|ia64*)
9514 # +Z the default
9517 lt_prog_compiler_pic='+Z'
9519 esac
9520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9521 lt_prog_compiler_static='${wl}-a ${wl}archive'
9524 irix5* | irix6* | nonstopux*)
9525 lt_prog_compiler_wl='-Wl,'
9526 # PIC (with -KPIC) is the default.
9527 lt_prog_compiler_static='-non_shared'
9530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9531 case $cc_basename in
9532 # old Intel for x86_64 which still supported -KPIC.
9533 ecc*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-static'
9538 # icc used to be incompatible with GCC.
9539 # ICC 10 doesn't accept -KPIC any more.
9540 icc* | ifort*)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='-fPIC'
9543 lt_prog_compiler_static='-static'
9545 # Lahey Fortran 8.1.
9546 lf95*)
9547 lt_prog_compiler_wl='-Wl,'
9548 lt_prog_compiler_pic='--shared'
9549 lt_prog_compiler_static='--static'
9551 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9552 # Portland Group compilers (*not* the Pentium gcc compiler,
9553 # which looks to be a dead project)
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-fpic'
9556 lt_prog_compiler_static='-Bstatic'
9558 ccc*)
9559 lt_prog_compiler_wl='-Wl,'
9560 # All Alpha code is PIC.
9561 lt_prog_compiler_static='-non_shared'
9563 xl* | bgxl* | bgf* | mpixl*)
9564 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='-qpic'
9567 lt_prog_compiler_static='-qstaticlink'
9570 case `$CC -V 2>&1 | sed 5q` in
9571 *Sun\ F* | *Sun*Fortran*)
9572 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9573 lt_prog_compiler_pic='-KPIC'
9574 lt_prog_compiler_static='-Bstatic'
9575 lt_prog_compiler_wl=''
9577 *Sun\ C*)
9578 # Sun C 5.9
9579 lt_prog_compiler_pic='-KPIC'
9580 lt_prog_compiler_static='-Bstatic'
9581 lt_prog_compiler_wl='-Wl,'
9583 esac
9585 esac
9588 newsos6)
9589 lt_prog_compiler_pic='-KPIC'
9590 lt_prog_compiler_static='-Bstatic'
9593 *nto* | *qnx*)
9594 # QNX uses GNU C++, but need to define -shared option too, otherwise
9595 # it will coredump.
9596 lt_prog_compiler_pic='-fPIC -shared'
9599 osf3* | osf4* | osf5*)
9600 lt_prog_compiler_wl='-Wl,'
9601 # All OSF/1 code is PIC.
9602 lt_prog_compiler_static='-non_shared'
9605 rdos*)
9606 lt_prog_compiler_static='-non_shared'
9609 solaris*)
9610 lt_prog_compiler_pic='-KPIC'
9611 lt_prog_compiler_static='-Bstatic'
9612 case $cc_basename in
9613 f77* | f90* | f95*)
9614 lt_prog_compiler_wl='-Qoption ld ';;
9616 lt_prog_compiler_wl='-Wl,';;
9617 esac
9620 sunos4*)
9621 lt_prog_compiler_wl='-Qoption ld '
9622 lt_prog_compiler_pic='-PIC'
9623 lt_prog_compiler_static='-Bstatic'
9626 sysv4 | sysv4.2uw2* | sysv4.3*)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-Bstatic'
9632 sysv4*MP*)
9633 if test -d /usr/nec ;then
9634 lt_prog_compiler_pic='-Kconform_pic'
9635 lt_prog_compiler_static='-Bstatic'
9639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9645 unicos*)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_can_build_shared=no
9650 uts4*)
9651 lt_prog_compiler_pic='-pic'
9652 lt_prog_compiler_static='-Bstatic'
9656 lt_prog_compiler_can_build_shared=no
9658 esac
9661 case $host_os in
9662 # For platforms which do not support PIC, -DPIC is meaningless:
9663 *djgpp*)
9664 lt_prog_compiler_pic=
9667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9669 esac
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9671 $as_echo "$lt_prog_compiler_pic" >&6; }
9679 # Check to make sure the PIC flag actually works.
9681 if test -n "$lt_prog_compiler_pic"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9684 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 lt_cv_prog_compiler_pic_works=no
9688 ac_outfile=conftest.$ac_objext
9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9691 # Insert the option either (1) after the last *FLAGS variable, or
9692 # (2) before a word containing "conftest.", or (3) at the end.
9693 # Note that $ac_compile itself does not contain backslashes and begins
9694 # with a dollar sign (not a hyphen), so the echo should work correctly.
9695 # The option is referenced via a variable to avoid confusing sed.
9696 lt_compile=`echo "$ac_compile" | $SED \
9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9699 -e 's:$: $lt_compiler_flag:'`
9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9701 (eval "$lt_compile" 2>conftest.err)
9702 ac_status=$?
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 if (exit $ac_status) && test -s "$ac_outfile"; then
9706 # The compiler can only warn and ignore the option if not recognized
9707 # So say no if there are warnings other than the usual output.
9708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler_pic_works=yes
9714 $RM conftest*
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9718 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9720 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9721 case $lt_prog_compiler_pic in
9722 "" | " "*) ;;
9723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9724 esac
9725 else
9726 lt_prog_compiler_pic=
9727 lt_prog_compiler_can_build_shared=no
9738 # Check to make sure the static flag actually works.
9740 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9743 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 lt_cv_prog_compiler_static_works=no
9747 save_LDFLAGS="$LDFLAGS"
9748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9751 # The linker can only warn and ignore the option if not recognized
9752 # So say no if there are warnings
9753 if test -s conftest.err; then
9754 # Append any errors to the config.log.
9755 cat conftest.err 1>&5
9756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9758 if diff conftest.exp conftest.er2 >/dev/null; then
9759 lt_cv_prog_compiler_static_works=yes
9761 else
9762 lt_cv_prog_compiler_static_works=yes
9765 $RM -r conftest*
9766 LDFLAGS="$save_LDFLAGS"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9770 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9772 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9774 else
9775 lt_prog_compiler_static=
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9786 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 lt_cv_prog_compiler_c_o=no
9790 $RM -r conftest 2>/dev/null
9791 mkdir conftest
9792 cd conftest
9793 mkdir out
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9796 lt_compiler_flag="-o out/conftest2.$ac_objext"
9797 # Insert the option either (1) after the last *FLAGS variable, or
9798 # (2) before a word containing "conftest.", or (3) at the end.
9799 # Note that $ac_compile itself does not contain backslashes and begins
9800 # with a dollar sign (not a hyphen), so the echo should work correctly.
9801 lt_compile=`echo "$ac_compile" | $SED \
9802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9804 -e 's:$: $lt_compiler_flag:'`
9805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9806 (eval "$lt_compile" 2>out/conftest.err)
9807 ac_status=$?
9808 cat out/conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9811 then
9812 # The compiler can only warn and ignore the option if not recognized
9813 # So say no if there are warnings
9814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9817 lt_cv_prog_compiler_c_o=yes
9820 chmod u+w . 2>&5
9821 $RM conftest*
9822 # SGI C++ compiler will create directory out/ii_files/ for
9823 # template instantiation
9824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9825 $RM out/* && rmdir out
9826 cd ..
9827 $RM -r conftest
9828 $RM conftest*
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9832 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 lt_cv_prog_compiler_c_o=no
9845 $RM -r conftest 2>/dev/null
9846 mkdir conftest
9847 cd conftest
9848 mkdir out
9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9851 lt_compiler_flag="-o out/conftest2.$ac_objext"
9852 # Insert the option either (1) after the last *FLAGS variable, or
9853 # (2) before a word containing "conftest.", or (3) at the end.
9854 # Note that $ac_compile itself does not contain backslashes and begins
9855 # with a dollar sign (not a hyphen), so the echo should work correctly.
9856 lt_compile=`echo "$ac_compile" | $SED \
9857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9859 -e 's:$: $lt_compiler_flag:'`
9860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9861 (eval "$lt_compile" 2>out/conftest.err)
9862 ac_status=$?
9863 cat out/conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9866 then
9867 # The compiler can only warn and ignore the option if not recognized
9868 # So say no if there are warnings
9869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9872 lt_cv_prog_compiler_c_o=yes
9875 chmod u+w . 2>&5
9876 $RM conftest*
9877 # SGI C++ compiler will create directory out/ii_files/ for
9878 # template instantiation
9879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9880 $RM out/* && rmdir out
9881 cd ..
9882 $RM -r conftest
9883 $RM conftest*
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9892 hard_links="nottested"
9893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9894 # do not overwrite the value of need_locks provided by the user
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9896 $as_echo_n "checking if we can lock with hard links... " >&6; }
9897 hard_links=yes
9898 $RM conftest*
9899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9900 touch conftest.a
9901 ln conftest.a conftest.b 2>&5 || hard_links=no
9902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9904 $as_echo "$hard_links" >&6; }
9905 if test "$hard_links" = no; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9908 need_locks=warn
9910 else
9911 need_locks=no
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9922 runpath_var=
9923 allow_undefined_flag=
9924 always_export_symbols=no
9925 archive_cmds=
9926 archive_expsym_cmds=
9927 compiler_needs_object=no
9928 enable_shared_with_static_runtimes=no
9929 export_dynamic_flag_spec=
9930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9931 hardcode_automatic=no
9932 hardcode_direct=no
9933 hardcode_direct_absolute=no
9934 hardcode_libdir_flag_spec=
9935 hardcode_libdir_flag_spec_ld=
9936 hardcode_libdir_separator=
9937 hardcode_minus_L=no
9938 hardcode_shlibpath_var=unsupported
9939 inherit_rpath=no
9940 link_all_deplibs=unknown
9941 module_cmds=
9942 module_expsym_cmds=
9943 old_archive_from_new_cmds=
9944 old_archive_from_expsyms_cmds=
9945 thread_safe_flag_spec=
9946 whole_archive_flag_spec=
9947 # include_expsyms should be a list of space-separated symbols to be *always*
9948 # included in the symbol list
9949 include_expsyms=
9950 # exclude_expsyms can be an extended regexp of symbols to exclude
9951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9953 # as well as any symbol that contains `d'.
9954 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9956 # platforms (ab)use it in PIC code, but their linkers get confused if
9957 # the symbol is explicitly referenced. Since portable code cannot
9958 # rely on this symbol name, it's probably fine to never include it in
9959 # preloaded symbol tables.
9960 # Exclude shared library initialization/finalization symbols.
9961 extract_expsyms_cmds=
9963 case $host_os in
9964 cygwin* | mingw* | pw32* | cegcc*)
9965 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9966 # When not using gcc, we currently assume that we are using
9967 # Microsoft Visual C++.
9968 if test "$GCC" != yes; then
9969 with_gnu_ld=no
9972 interix*)
9973 # we just hope/assume this is gcc and not c89 (= MSVC++)
9974 with_gnu_ld=yes
9976 openbsd*)
9977 with_gnu_ld=no
9979 esac
9981 ld_shlibs=yes
9983 # On some targets, GNU ld is compatible enough with the native linker
9984 # that we're better off using the native interface for both.
9985 lt_use_gnu_ld_interface=no
9986 if test "$with_gnu_ld" = yes; then
9987 case $host_os in
9988 aix*)
9989 # The AIX port of GNU ld has always aspired to compatibility
9990 # with the native linker. However, as the warning in the GNU ld
9991 # block says, versions before 2.19.5* couldn't really create working
9992 # shared libraries, regardless of the interface used.
9993 case `$LD -v 2>&1` in
9994 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9995 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9996 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9998 lt_use_gnu_ld_interface=yes
10000 esac
10003 lt_use_gnu_ld_interface=yes
10005 esac
10008 if test "$lt_use_gnu_ld_interface" = yes; then
10009 # If archive_cmds runs LD, not CC, wlarc should be empty
10010 wlarc='${wl}'
10012 # Set some defaults for GNU ld with shared library support. These
10013 # are reset later if shared libraries are not supported. Putting them
10014 # here allows them to be overridden if necessary.
10015 runpath_var=LD_RUN_PATH
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 export_dynamic_flag_spec='${wl}--export-dynamic'
10018 # ancient GNU ld didn't support --whole-archive et. al.
10019 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10020 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10021 else
10022 whole_archive_flag_spec=
10024 supports_anon_versioning=no
10025 case `$LD -v 2>&1` in
10026 *GNU\ gold*) supports_anon_versioning=yes ;;
10027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10030 *\ 2.11.*) ;; # other 2.11 versions
10031 *) supports_anon_versioning=yes ;;
10032 esac
10034 # See if GNU ld supports shared libraries.
10035 case $host_os in
10036 aix[3-9]*)
10037 # On AIX/PPC, the GNU linker is very broken
10038 if test "$host_cpu" != ia64; then
10039 ld_shlibs=no
10040 cat <<_LT_EOF 1>&2
10042 *** Warning: the GNU linker, at least up to release 2.19, is reported
10043 *** to be unable to reliably create shared libraries on AIX.
10044 *** Therefore, libtool is disabling shared libraries support. If you
10045 *** really care for shared libraries, you may want to install binutils
10046 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10047 *** You will then need to restart the configuration process.
10049 _LT_EOF
10053 amigaos*)
10054 case $host_cpu in
10055 powerpc)
10056 # see comment about AmigaOS4 .so support
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058 archive_expsym_cmds=''
10060 m68k)
10061 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)'
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_minus_L=yes
10065 esac
10068 beos*)
10069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10070 allow_undefined_flag=unsupported
10071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10072 # support --undefined. This deserves some investigation. FIXME
10073 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074 else
10075 ld_shlibs=no
10079 cygwin* | mingw* | pw32* | cegcc*)
10080 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10081 # as there is no search path for DLLs.
10082 hardcode_libdir_flag_spec='-L$libdir'
10083 export_dynamic_flag_spec='${wl}--export-all-symbols'
10084 allow_undefined_flag=unsupported
10085 always_export_symbols=no
10086 enable_shared_with_static_runtimes=yes
10087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10089 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10091 # If the export-symbols file already is a .def file (1st line
10092 # is EXPORTS), use it as is; otherwise, prepend...
10093 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10094 cp $export_symbols $output_objdir/$soname.def;
10095 else
10096 echo EXPORTS > $output_objdir/$soname.def;
10097 cat $export_symbols >> $output_objdir/$soname.def;
10099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10100 else
10101 ld_shlibs=no
10105 haiku*)
10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107 link_all_deplibs=yes
10110 interix[3-9]*)
10111 hardcode_direct=no
10112 hardcode_shlibpath_var=no
10113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10114 export_dynamic_flag_spec='${wl}-E'
10115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10116 # Instead, shared libraries are loaded at an image base (0x10000000 by
10117 # default) and relocated if they conflict, which is a slow very memory
10118 # consuming and fragmenting process. To avoid this, we pick a random,
10119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10122 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'
10125 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10126 tmp_diet=no
10127 if test "$host_os" = linux-dietlibc; then
10128 case $cc_basename in
10129 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10130 esac
10132 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10133 && test "$tmp_diet" = no
10134 then
10135 tmp_addflag=' $pic_flag'
10136 tmp_sharedflag='-shared'
10137 case $cc_basename,$host_cpu in
10138 pgcc*) # Portland Group C compiler
10139 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'
10140 tmp_addflag=' $pic_flag'
10142 pgf77* | pgf90* | pgf95* | pgfortran*)
10143 # Portland Group f77 and f90 compilers
10144 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'
10145 tmp_addflag=' $pic_flag -Mnomain' ;;
10146 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10147 tmp_addflag=' -i_dynamic' ;;
10148 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10149 tmp_addflag=' -i_dynamic -nofor_main' ;;
10150 ifc* | ifort*) # Intel Fortran compiler
10151 tmp_addflag=' -nofor_main' ;;
10152 lf95*) # Lahey Fortran 8.1
10153 whole_archive_flag_spec=
10154 tmp_sharedflag='--shared' ;;
10155 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10156 tmp_sharedflag='-qmkshrobj'
10157 tmp_addflag= ;;
10158 nvcc*) # Cuda Compiler Driver 2.2
10159 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'
10160 compiler_needs_object=yes
10162 esac
10163 case `$CC -V 2>&1 | sed 5q` in
10164 *Sun\ C*) # Sun C 5.9
10165 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'
10166 compiler_needs_object=yes
10167 tmp_sharedflag='-G' ;;
10168 *Sun\ F*) # Sun Fortran 8.3
10169 tmp_sharedflag='-G' ;;
10170 esac
10171 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 if test "x$supports_anon_versioning" = xyes; then
10174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10176 echo "local: *; };" >> $output_objdir/$libname.ver~
10177 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10180 case $cc_basename in
10181 xlf* | bgf* | bgxlf* | mpixlf*)
10182 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10183 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10184 hardcode_libdir_flag_spec=
10185 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10186 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10187 if test "x$supports_anon_versioning" = xyes; then
10188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10190 echo "local: *; };" >> $output_objdir/$libname.ver~
10191 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10194 esac
10195 else
10196 ld_shlibs=no
10200 netbsd*)
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10203 wlarc=
10204 else
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10210 solaris*)
10211 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10212 ld_shlibs=no
10213 cat <<_LT_EOF 1>&2
10215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10216 *** create shared libraries on Solaris systems. Therefore, libtool
10217 *** is disabling shared libraries support. We urge you to upgrade GNU
10218 *** binutils to release 2.9.1 or newer. Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10222 _LT_EOF
10223 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10226 else
10227 ld_shlibs=no
10231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10232 case `$LD -v 2>&1` in
10233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10234 ld_shlibs=no
10235 cat <<_LT_EOF 1>&2
10237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10238 *** reliably create shared libraries on SCO systems. Therefore, libtool
10239 *** is disabling shared libraries support. We urge you to upgrade GNU
10240 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10241 *** your PATH or compiler configuration so that the native linker is
10242 *** used, and then restart.
10244 _LT_EOF
10247 # For security reasons, it is highly recommended that you always
10248 # use absolute paths for naming shared libraries, and exclude the
10249 # DT_RUNPATH tag from executables and libraries. But doing so
10250 # requires that you compile everything twice, which is a pain.
10251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255 else
10256 ld_shlibs=no
10259 esac
10262 sunos4*)
10263 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10264 wlarc=
10265 hardcode_direct=yes
10266 hardcode_shlibpath_var=no
10270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10273 else
10274 ld_shlibs=no
10277 esac
10279 if test "$ld_shlibs" = no; then
10280 runpath_var=
10281 hardcode_libdir_flag_spec=
10282 export_dynamic_flag_spec=
10283 whole_archive_flag_spec=
10285 else
10286 # PORTME fill in a description of your system's linker (not GNU ld)
10287 case $host_os in
10288 aix3*)
10289 allow_undefined_flag=unsupported
10290 always_export_symbols=yes
10291 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'
10292 # Note: this linker hardcodes the directories in LIBPATH if there
10293 # are no directories specified by -L.
10294 hardcode_minus_L=yes
10295 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10296 # Neither direct hardcoding nor static linking is supported with a
10297 # broken collect2.
10298 hardcode_direct=unsupported
10302 aix[4-9]*)
10303 if test "$host_cpu" = ia64; then
10304 # On IA64, the linker does run time linking by default, so we don't
10305 # have to do anything special.
10306 aix_use_runtimelinking=no
10307 exp_sym_flag='-Bexport'
10308 no_entry_flag=""
10309 else
10310 # If we're using GNU nm, then we don't want the "-C" option.
10311 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10312 # Also, AIX nm treats weak defined symbols like other global
10313 # defined symbols, whereas GNU nm marks them as "W".
10314 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10315 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'
10316 else
10317 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10319 aix_use_runtimelinking=no
10321 # Test if we are trying to use run time linking or normal
10322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10323 # need to do runtime linking.
10324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10325 for ld_flag in $LDFLAGS; do
10326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10327 aix_use_runtimelinking=yes
10328 break
10330 done
10332 esac
10334 exp_sym_flag='-bexport'
10335 no_entry_flag='-bnoentry'
10338 # When large executables or shared objects are built, AIX ld can
10339 # have problems creating the table of contents. If linking a library
10340 # or program results in "error TOC overflow" add -mminimal-toc to
10341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10344 archive_cmds=''
10345 hardcode_direct=yes
10346 hardcode_direct_absolute=yes
10347 hardcode_libdir_separator=':'
10348 link_all_deplibs=yes
10349 file_list_spec='${wl}-f,'
10351 if test "$GCC" = yes; then
10352 case $host_os in aix4.[012]|aix4.[012].*)
10353 # We only want to do this on AIX 4.2 and lower, the check
10354 # below for broken collect2 doesn't work under 4.3+
10355 collect2name=`${CC} -print-prog-name=collect2`
10356 if test -f "$collect2name" &&
10357 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10358 then
10359 # We have reworked collect2
10361 else
10362 # We have old collect2
10363 hardcode_direct=unsupported
10364 # It fails to find uninstalled libraries when the uninstalled
10365 # path is not listed in the libpath. Setting hardcode_minus_L
10366 # to unsupported forces relinking
10367 hardcode_minus_L=yes
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_libdir_separator=
10372 esac
10373 shared_flag='-shared'
10374 if test "$aix_use_runtimelinking" = yes; then
10375 shared_flag="$shared_flag "'${wl}-G'
10377 else
10378 # not using gcc
10379 if test "$host_cpu" = ia64; then
10380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10381 # chokes on -Wl,-G. The following line is correct:
10382 shared_flag='-G'
10383 else
10384 if test "$aix_use_runtimelinking" = yes; then
10385 shared_flag='${wl}-G'
10386 else
10387 shared_flag='${wl}-bM:SRE'
10392 export_dynamic_flag_spec='${wl}-bexpall'
10393 # It seems that -bexpall does not export symbols beginning with
10394 # underscore (_), so it is better to generate a list of symbols to export.
10395 always_export_symbols=yes
10396 if test "$aix_use_runtimelinking" = yes; then
10397 # Warning - without using the other runtime loading flags (-brtl),
10398 # -berok will link without error, but may produce a broken library.
10399 allow_undefined_flag='-berok'
10400 # Determine the default libpath from the value encoded in an
10401 # empty executable.
10402 if test x$gcc_no_link = xyes; then
10403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10409 main ()
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10418 lt_aix_libpath_sed='
10419 /Import File Strings/,/^$/ {
10420 /^0/ {
10421 s/^0 *\(.*\)$/\1/
10425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426 # Check for a 64-bit object if we didn't find anything.
10427 if test -z "$aix_libpath"; then
10428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10436 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"
10437 else
10438 if test "$host_cpu" = ia64; then
10439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10440 allow_undefined_flag="-z nodefs"
10441 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"
10442 else
10443 # Determine the default libpath from the value encoded in an
10444 # empty executable.
10445 if test x$gcc_no_link = xyes; then
10446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10452 main ()
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10461 lt_aix_libpath_sed='
10462 /Import File Strings/,/^$/ {
10463 /^0/ {
10464 s/^0 *\(.*\)$/\1/
10468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 # Check for a 64-bit object if we didn't find anything.
10470 if test -z "$aix_libpath"; then
10471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10478 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10479 # Warning - without using the other run time loading flags,
10480 # -berok will link without error, but may produce a broken library.
10481 no_undefined_flag=' ${wl}-bernotok'
10482 allow_undefined_flag=' ${wl}-berok'
10483 if test "$with_gnu_ld" = yes; then
10484 # We only use this code for GNU lds that support --whole-archive.
10485 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10486 else
10487 # Exported symbols can be pulled into shared objects from archives
10488 whole_archive_flag_spec='$convenience'
10490 archive_cmds_need_lc=yes
10491 # This is similar to how AIX traditionally builds its shared libraries.
10492 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'
10497 amigaos*)
10498 case $host_cpu in
10499 powerpc)
10500 # see comment about AmigaOS4 .so support
10501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502 archive_expsym_cmds=''
10504 m68k)
10505 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)'
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_minus_L=yes
10509 esac
10512 bsdi[45]*)
10513 export_dynamic_flag_spec=-rdynamic
10516 cygwin* | mingw* | pw32* | cegcc*)
10517 # When not using gcc, we currently assume that we are using
10518 # Microsoft Visual C++.
10519 # hardcode_libdir_flag_spec is actually meaningless, as there is
10520 # no search path for DLLs.
10521 hardcode_libdir_flag_spec=' '
10522 allow_undefined_flag=unsupported
10523 # Tell ltmain to make .lib files, not .a files.
10524 libext=lib
10525 # Tell ltmain to make .dll files, not .so files.
10526 shrext_cmds=".dll"
10527 # FIXME: Setting linknames here is a bad hack.
10528 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10529 # The linker will automatically build a .lib file if we build a DLL.
10530 old_archive_from_new_cmds='true'
10531 # FIXME: Should let the user specify the lib program.
10532 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10533 fix_srcfile_path='`cygpath -w "$srcfile"`'
10534 enable_shared_with_static_runtimes=yes
10537 darwin* | rhapsody*)
10540 archive_cmds_need_lc=no
10541 hardcode_direct=no
10542 hardcode_automatic=yes
10543 hardcode_shlibpath_var=unsupported
10544 if test "$lt_cv_ld_force_load" = "yes"; then
10545 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\"`'
10546 else
10547 whole_archive_flag_spec=''
10549 link_all_deplibs=yes
10550 allow_undefined_flag="$_lt_dar_allow_undefined"
10551 case $cc_basename in
10552 ifort*) _lt_dar_can_shared=yes ;;
10553 *) _lt_dar_can_shared=$GCC ;;
10554 esac
10555 if test "$_lt_dar_can_shared" = "yes"; then
10556 output_verbose_link_cmd=func_echo_all
10557 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10558 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10559 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}"
10560 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}"
10562 else
10563 ld_shlibs=no
10568 dgux*)
10569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570 hardcode_libdir_flag_spec='-L$libdir'
10571 hardcode_shlibpath_var=no
10574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10575 # support. Future versions do this automatically, but an explicit c++rt0.o
10576 # does not break anything, and helps significantly (at the cost of a little
10577 # extra space).
10578 freebsd2.2*)
10579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10580 hardcode_libdir_flag_spec='-R$libdir'
10581 hardcode_direct=yes
10582 hardcode_shlibpath_var=no
10585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10586 freebsd2.*)
10587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_direct=yes
10589 hardcode_minus_L=yes
10590 hardcode_shlibpath_var=no
10593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10594 freebsd* | dragonfly*)
10595 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10596 hardcode_libdir_flag_spec='-R$libdir'
10597 hardcode_direct=yes
10598 hardcode_shlibpath_var=no
10601 hpux9*)
10602 if test "$GCC" = yes; then
10603 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'
10604 else
10605 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'
10607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10608 hardcode_libdir_separator=:
10609 hardcode_direct=yes
10611 # hardcode_minus_L: Not really in the search PATH,
10612 # but as the default location of the library.
10613 hardcode_minus_L=yes
10614 export_dynamic_flag_spec='${wl}-E'
10617 hpux10*)
10618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10619 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10620 else
10621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10623 if test "$with_gnu_ld" = no; then
10624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625 hardcode_libdir_flag_spec_ld='+b $libdir'
10626 hardcode_libdir_separator=:
10627 hardcode_direct=yes
10628 hardcode_direct_absolute=yes
10629 export_dynamic_flag_spec='${wl}-E'
10630 # hardcode_minus_L: Not really in the search PATH,
10631 # but as the default location of the library.
10632 hardcode_minus_L=yes
10636 hpux11*)
10637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10638 case $host_cpu in
10639 hppa*64*)
10640 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 ia64*)
10643 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10648 esac
10649 else
10650 case $host_cpu in
10651 hppa*64*)
10652 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 ia64*)
10655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10659 # Older versions of the 11.00 compiler do not understand -b yet
10660 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10662 $as_echo_n "checking if $CC understands -b... " >&6; }
10663 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 lt_cv_prog_compiler__b=no
10667 save_LDFLAGS="$LDFLAGS"
10668 LDFLAGS="$LDFLAGS -b"
10669 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10671 # The linker can only warn and ignore the option if not recognized
10672 # So say no if there are warnings
10673 if test -s conftest.err; then
10674 # Append any errors to the config.log.
10675 cat conftest.err 1>&5
10676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10678 if diff conftest.exp conftest.er2 >/dev/null; then
10679 lt_cv_prog_compiler__b=yes
10681 else
10682 lt_cv_prog_compiler__b=yes
10685 $RM -r conftest*
10686 LDFLAGS="$save_LDFLAGS"
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10690 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10692 if test x"$lt_cv_prog_compiler__b" = xyes; then
10693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694 else
10695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10699 esac
10701 if test "$with_gnu_ld" = no; then
10702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703 hardcode_libdir_separator=:
10705 case $host_cpu in
10706 hppa*64*|ia64*)
10707 hardcode_direct=no
10708 hardcode_shlibpath_var=no
10711 hardcode_direct=yes
10712 hardcode_direct_absolute=yes
10713 export_dynamic_flag_spec='${wl}-E'
10715 # hardcode_minus_L: Not really in the search PATH,
10716 # but as the default location of the library.
10717 hardcode_minus_L=yes
10719 esac
10723 irix5* | irix6* | nonstopux*)
10724 if test "$GCC" = yes; then
10725 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'
10726 # Try to use the -exported_symbol ld option, if it does not
10727 # work, assume that -exports_file does not work either and
10728 # implicitly export all symbols.
10729 save_LDFLAGS="$LDFLAGS"
10730 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10731 if test x$gcc_no_link = xyes; then
10732 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 int foo(void) {}
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 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'
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LDFLAGS="$save_LDFLAGS"
10745 else
10746 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'
10747 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'
10749 archive_cmds_need_lc='no'
10750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10751 hardcode_libdir_separator=:
10752 inherit_rpath=yes
10753 link_all_deplibs=yes
10756 netbsd*)
10757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10759 else
10760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10762 hardcode_libdir_flag_spec='-R$libdir'
10763 hardcode_direct=yes
10764 hardcode_shlibpath_var=no
10767 newsos6)
10768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769 hardcode_direct=yes
10770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10771 hardcode_libdir_separator=:
10772 hardcode_shlibpath_var=no
10775 *nto* | *qnx*)
10778 openbsd*)
10779 if test -f /usr/libexec/ld.so; then
10780 hardcode_direct=yes
10781 hardcode_shlibpath_var=no
10782 hardcode_direct_absolute=yes
10783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10787 export_dynamic_flag_spec='${wl}-E'
10788 else
10789 case $host_os in
10790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_libdir_flag_spec='-R$libdir'
10795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10798 esac
10800 else
10801 ld_shlibs=no
10805 os2*)
10806 hardcode_libdir_flag_spec='-L$libdir'
10807 hardcode_minus_L=yes
10808 allow_undefined_flag=unsupported
10809 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'
10810 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10813 osf3*)
10814 if test "$GCC" = yes; then
10815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10816 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'
10817 else
10818 allow_undefined_flag=' -expect_unresolved \*'
10819 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'
10821 archive_cmds_need_lc='no'
10822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator=:
10826 osf4* | osf5*) # as osf3* with the addition of -msym flag
10827 if test "$GCC" = yes; then
10828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10829 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'
10830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 else
10832 allow_undefined_flag=' -expect_unresolved \*'
10833 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'
10834 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~
10835 $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'
10837 # Both c and cxx compiler support -rpath directly
10838 hardcode_libdir_flag_spec='-rpath $libdir'
10840 archive_cmds_need_lc='no'
10841 hardcode_libdir_separator=:
10844 solaris*)
10845 no_undefined_flag=' -z defs'
10846 if test "$GCC" = yes; then
10847 wlarc='${wl}'
10848 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10850 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 else
10852 case `$CC -V 2>&1` in
10853 *"Compilers 5.0"*)
10854 wlarc=''
10855 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10860 wlarc='${wl}'
10861 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10863 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10865 esac
10867 hardcode_libdir_flag_spec='-R$libdir'
10868 hardcode_shlibpath_var=no
10869 case $host_os in
10870 solaris2.[0-5] | solaris2.[0-5].*) ;;
10872 # The compiler driver will combine and reorder linker options,
10873 # but understands `-z linker_flag'. GCC discards it without `$wl',
10874 # but is careful enough not to reorder.
10875 # Supported since Solaris 2.6 (maybe 2.5.1?)
10876 if test "$GCC" = yes; then
10877 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10878 else
10879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10882 esac
10883 link_all_deplibs=yes
10886 sunos4*)
10887 if test "x$host_vendor" = xsequent; then
10888 # Use $CC to link under sequent, because it throws in some extra .o
10889 # files that make .init and .fini sections work.
10890 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10891 else
10892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10894 hardcode_libdir_flag_spec='-L$libdir'
10895 hardcode_direct=yes
10896 hardcode_minus_L=yes
10897 hardcode_shlibpath_var=no
10900 sysv4)
10901 case $host_vendor in
10902 sni)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=yes # is this really true???
10906 siemens)
10907 ## LD is ld it makes a PLAMLIB
10908 ## CC just makes a GrossModule.
10909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10910 reload_cmds='$CC -r -o $output$reload_objs'
10911 hardcode_direct=no
10913 motorola)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917 esac
10918 runpath_var='LD_RUN_PATH'
10919 hardcode_shlibpath_var=no
10922 sysv4.3*)
10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924 hardcode_shlibpath_var=no
10925 export_dynamic_flag_spec='-Bexport'
10928 sysv4*MP*)
10929 if test -d /usr/nec; then
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_shlibpath_var=no
10932 runpath_var=LD_RUN_PATH
10933 hardcode_runpath_var=yes
10934 ld_shlibs=yes
10938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10939 no_undefined_flag='${wl}-z,text'
10940 archive_cmds_need_lc=no
10941 hardcode_shlibpath_var=no
10942 runpath_var='LD_RUN_PATH'
10944 if test "$GCC" = yes; then
10945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 sysv5* | sco3.2v5* | sco5v6*)
10954 # Note: We can NOT use -z defs as we might desire, because we do not
10955 # link with -lc, and that would cause any symbols used from libc to
10956 # always be unresolved, which means just about no library would
10957 # ever link correctly. If we're not using GNU ld we use -z text
10958 # though, which does catch some bad symbols but isn't as heavy-handed
10959 # as -z defs.
10960 no_undefined_flag='${wl}-z,text'
10961 allow_undefined_flag='${wl}-z,nodefs'
10962 archive_cmds_need_lc=no
10963 hardcode_shlibpath_var=no
10964 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10965 hardcode_libdir_separator=':'
10966 link_all_deplibs=yes
10967 export_dynamic_flag_spec='${wl}-Bexport'
10968 runpath_var='LD_RUN_PATH'
10970 if test "$GCC" = yes; then
10971 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 else
10974 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 uts4*)
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_libdir_flag_spec='-L$libdir'
10982 hardcode_shlibpath_var=no
10986 ld_shlibs=no
10988 esac
10990 if test x$host_vendor = xsni; then
10991 case $host in
10992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10993 export_dynamic_flag_spec='${wl}-Blargedynsym'
10995 esac
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11000 $as_echo "$ld_shlibs" >&6; }
11001 test "$ld_shlibs" = no && can_build_shared=no
11003 with_gnu_ld=$with_gnu_ld
11020 # Do we need to explicitly link libc?
11022 case "x$archive_cmds_need_lc" in
11023 x|xyes)
11024 # Assume -lc should be added
11025 archive_cmds_need_lc=yes
11027 if test "$enable_shared" = yes && test "$GCC" = yes; then
11028 case $archive_cmds in
11029 *'~'*)
11030 # FIXME: we may have to deal with multi-command sequences.
11032 '$CC '*)
11033 # Test whether the compiler implicitly links with -lc since on some
11034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035 # to ld, don't add -lc before -lgcc.
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11038 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 $RM conftest*
11042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11045 (eval $ac_compile) 2>&5
11046 ac_status=$?
11047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; } 2>conftest.err; then
11049 soname=conftest
11050 lib=conftest
11051 libobjs=conftest.$ac_objext
11052 deplibs=
11053 wl=$lt_prog_compiler_wl
11054 pic_flag=$lt_prog_compiler_pic
11055 compiler_flags=-v
11056 linker_flags=-v
11057 verstring=
11058 output_objdir=.
11059 libname=conftest
11060 lt_save_allow_undefined_flag=$allow_undefined_flag
11061 allow_undefined_flag=
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }
11067 then
11068 lt_cv_archive_cmds_need_lc=no
11069 else
11070 lt_cv_archive_cmds_need_lc=yes
11072 allow_undefined_flag=$lt_save_allow_undefined_flag
11073 else
11074 cat conftest.err 1>&5
11076 $RM conftest*
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11083 esac
11086 esac
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11245 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11247 if test "$GCC" = yes; then
11248 case $host_os in
11249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11250 *) lt_awk_arg="/^libraries:/" ;;
11251 esac
11252 case $host_os in
11253 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11254 *) lt_sed_strip_eq="s,=/,/,g" ;;
11255 esac
11256 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11257 case $lt_search_path_spec in
11258 *\;*)
11259 # if the path contains ";" then we assume it to be the separator
11260 # otherwise default to the standard path separator (i.e. ":") - it is
11261 # assumed that no part of a normal pathname contains ";" but that should
11262 # okay in the real world where ";" in dirpaths is itself problematic.
11263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11268 esac
11269 # Ok, now we have the path, separated by spaces, we can step through it
11270 # and add multilib dir if necessary.
11271 lt_tmp_lt_search_path_spec=
11272 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273 for lt_sys_path in $lt_search_path_spec; do
11274 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11276 else
11277 test -d "$lt_sys_path" && \
11278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11280 done
11281 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11282 BEGIN {RS=" "; FS="/|\n";} {
11283 lt_foo="";
11284 lt_count=0;
11285 for (lt_i = NF; lt_i > 0; lt_i--) {
11286 if ($lt_i != "" && $lt_i != ".") {
11287 if ($lt_i == "..") {
11288 lt_count++;
11289 } else {
11290 if (lt_count == 0) {
11291 lt_foo="/" $lt_i lt_foo;
11292 } else {
11293 lt_count--;
11298 if (lt_foo != "") { lt_freq[lt_foo]++; }
11299 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11301 # AWK program above erroneously prepends '/' to C:/dos/paths
11302 # for these hosts.
11303 case $host_os in
11304 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11305 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11306 esac
11307 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11308 else
11309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11311 library_names_spec=
11312 libname_spec='lib$name'
11313 soname_spec=
11314 shrext_cmds=".so"
11315 postinstall_cmds=
11316 postuninstall_cmds=
11317 finish_cmds=
11318 finish_eval=
11319 shlibpath_var=
11320 shlibpath_overrides_runpath=unknown
11321 version_type=none
11322 dynamic_linker="$host_os ld.so"
11323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11324 need_lib_prefix=unknown
11325 hardcode_into_libs=no
11327 # when you set need_version to no, make sure it does not cause -set_version
11328 # flags to be left without arguments
11329 need_version=unknown
11331 case $host_os in
11332 aix3*)
11333 version_type=linux
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11335 shlibpath_var=LIBPATH
11337 # AIX 3 has no versioning support, so we append a major version to the name.
11338 soname_spec='${libname}${release}${shared_ext}$major'
11341 aix[4-9]*)
11342 version_type=linux
11343 need_lib_prefix=no
11344 need_version=no
11345 hardcode_into_libs=yes
11346 if test "$host_cpu" = ia64; then
11347 # AIX 5 supports IA64
11348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 else
11351 # With GCC up to 2.95.x, collect2 would create an import file
11352 # for dependence libraries. The import file would start with
11353 # the line `#! .'. This would cause the generated library to
11354 # depend on `.', always an invalid library. This was fixed in
11355 # development snapshots of GCC prior to 3.0.
11356 case $host_os in
11357 aix4 | aix4.[01] | aix4.[01].*)
11358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11359 echo ' yes '
11360 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11362 else
11363 can_build_shared=no
11366 esac
11367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11368 # soname into executable. Probably we can add versioning support to
11369 # collect2, so additional links can be useful in future.
11370 if test "$aix_use_runtimelinking" = yes; then
11371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11372 # instead of lib<name>.a to let people know that these are not
11373 # typical AIX shared libraries.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 else
11376 # We preserve .a as extension for shared libraries through AIX4.2
11377 # and later when we are not doing run time linking.
11378 library_names_spec='${libname}${release}.a $libname.a'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LIBPATH
11385 amigaos*)
11386 case $host_cpu in
11387 powerpc)
11388 # Since July 2007 AmigaOS4 officially supports .so libraries.
11389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 m68k)
11393 library_names_spec='$libname.ixlibrary $libname.a'
11394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11395 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'
11397 esac
11400 beos*)
11401 library_names_spec='${libname}${shared_ext}'
11402 dynamic_linker="$host_os ld.so"
11403 shlibpath_var=LIBRARY_PATH
11406 bsdi[45]*)
11407 version_type=linux
11408 need_version=no
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11415 # the default ld.so.conf also contains /usr/contrib/lib and
11416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11417 # libtool to hard-code these into programs
11420 cygwin* | mingw* | pw32* | cegcc*)
11421 version_type=windows
11422 shrext_cmds=".dll"
11423 need_version=no
11424 need_lib_prefix=no
11426 case $GCC,$host_os in
11427 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11428 library_names_spec='$libname.dll.a'
11429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11430 postinstall_cmds='base_file=`basename \${file}`~
11431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11432 dldir=$destdir/`dirname \$dlpath`~
11433 test -d \$dldir || mkdir -p \$dldir~
11434 $install_prog $dir/$dlname \$dldir/$dlname~
11435 chmod a+x \$dldir/$dlname~
11436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11440 dlpath=$dir/\$dldll~
11441 $RM \$dlpath'
11442 shlibpath_overrides_runpath=yes
11444 case $host_os in
11445 cygwin*)
11446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11449 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11451 mingw* | cegcc*)
11452 # MinGW DLLs use traditional 'lib' prefix
11453 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11455 pw32*)
11456 # pw32 DLLs use 'pw' prefix rather than 'lib'
11457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11459 esac
11463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11465 esac
11466 dynamic_linker='Win32 ld.exe'
11467 # FIXME: first we should search . and the directory the executable is in
11468 shlibpath_var=PATH
11471 darwin* | rhapsody*)
11472 dynamic_linker="$host_os dyld"
11473 version_type=darwin
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11477 soname_spec='${libname}${release}${major}$shared_ext'
11478 shlibpath_overrides_runpath=yes
11479 shlibpath_var=DYLD_LIBRARY_PATH
11480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11486 dgux*)
11487 version_type=linux
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 shlibpath_var=LD_LIBRARY_PATH
11495 freebsd* | dragonfly*)
11496 # DragonFly does not have aout. When/if they implement a new
11497 # versioning mechanism, adjust this.
11498 if test -x /usr/bin/objformat; then
11499 objformat=`/usr/bin/objformat`
11500 else
11501 case $host_os in
11502 freebsd[23].*) objformat=aout ;;
11503 *) objformat=elf ;;
11504 esac
11506 version_type=freebsd-$objformat
11507 case $version_type in
11508 freebsd-elf*)
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11510 need_version=no
11511 need_lib_prefix=no
11513 freebsd-*)
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11515 need_version=yes
11517 esac
11518 shlibpath_var=LD_LIBRARY_PATH
11519 case $host_os in
11520 freebsd2.*)
11521 shlibpath_overrides_runpath=yes
11523 freebsd3.[01]* | freebsdelf3.[01]*)
11524 shlibpath_overrides_runpath=yes
11525 hardcode_into_libs=yes
11527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11532 *) # from 4.6 on, and DragonFly
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11536 esac
11539 gnu*)
11540 version_type=linux
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 hardcode_into_libs=yes
11549 haiku*)
11550 version_type=linux
11551 need_lib_prefix=no
11552 need_version=no
11553 dynamic_linker="$host_os runtime_loader"
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11559 hardcode_into_libs=yes
11562 hpux9* | hpux10* | hpux11*)
11563 # Give a soname corresponding to the major version so that dld.sl refuses to
11564 # link against other versions.
11565 version_type=sunos
11566 need_lib_prefix=no
11567 need_version=no
11568 case $host_cpu in
11569 ia64*)
11570 shrext_cmds='.so'
11571 hardcode_into_libs=yes
11572 dynamic_linker="$host_os dld.so"
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 if test "X$HPUX_IA64_MODE" = X32; then
11578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11579 else
11580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11584 hppa*64*)
11585 shrext_cmds='.sl'
11586 hardcode_into_libs=yes
11587 dynamic_linker="$host_os dld.sl"
11588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11596 shrext_cmds='.sl'
11597 dynamic_linker="$host_os dld.sl"
11598 shlibpath_var=SHLIB_PATH
11599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11603 esac
11604 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11605 postinstall_cmds='chmod 555 $lib'
11606 # or fails outright, so override atomically:
11607 install_override_mode=555
11610 interix[3-9]*)
11611 version_type=linux
11612 need_lib_prefix=no
11613 need_version=no
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=no
11619 hardcode_into_libs=yes
11622 irix5* | irix6* | nonstopux*)
11623 case $host_os in
11624 nonstopux*) version_type=nonstopux ;;
11626 if test "$lt_cv_prog_gnu_ld" = yes; then
11627 version_type=linux
11628 else
11629 version_type=irix
11630 fi ;;
11631 esac
11632 need_lib_prefix=no
11633 need_version=no
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11636 case $host_os in
11637 irix5* | nonstopux*)
11638 libsuff= shlibsuff=
11641 case $LD in # libtool.m4 will add one of these switches to LD
11642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11643 libsuff= shlibsuff= libmagic=32-bit;;
11644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11645 libsuff=32 shlibsuff=N32 libmagic=N32;;
11646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11648 *) libsuff= shlibsuff= libmagic=never-match;;
11649 esac
11651 esac
11652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11653 shlibpath_overrides_runpath=no
11654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11656 hardcode_into_libs=yes
11659 # No shared lib support for Linux oldld, aout, or coff.
11660 linux*oldld* | linux*aout* | linux*coff*)
11661 dynamic_linker=no
11664 # This must be Linux ELF.
11665 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11666 version_type=linux
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=no
11675 # Some binutils ld are patched to set DT_RUNPATH
11676 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 lt_cv_shlibpath_overrides_runpath=no
11680 save_LDFLAGS=$LDFLAGS
11681 save_libdir=$libdir
11682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11684 if test x$gcc_no_link = xyes; then
11685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11691 main ()
11695 return 0;
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11700 lt_cv_shlibpath_overrides_runpath=yes
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LDFLAGS=$save_LDFLAGS
11706 libdir=$save_libdir
11710 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11712 # This implies no fast_install, which is unacceptable.
11713 # Some rework will be needed to allow for fast_install
11714 # before this can be enabled.
11715 hardcode_into_libs=yes
11717 # Append ld.so.conf contents to the search path
11718 if test -f /etc/ld.so.conf; then
11719 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' ' '`
11720 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11723 # We used to test for /lib/ld.so.1 and disable shared libraries on
11724 # powerpc, because MkLinux only supported shared libraries with the
11725 # GNU dynamic linker. Since this was broken with cross compilers,
11726 # most powerpc-linux boxes support dynamic linking these days and
11727 # people can always --disable-shared, the test was removed, and we
11728 # assume the GNU/Linux dynamic linker is in use.
11729 dynamic_linker='GNU/Linux ld.so'
11732 netbsd*)
11733 version_type=sunos
11734 need_lib_prefix=no
11735 need_version=no
11736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11739 dynamic_linker='NetBSD (a.out) ld.so'
11740 else
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 dynamic_linker='NetBSD ld.elf_so'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11747 hardcode_into_libs=yes
11750 newsos6)
11751 version_type=linux
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11757 *nto* | *qnx*)
11758 version_type=qnx
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 hardcode_into_libs=yes
11766 dynamic_linker='ldqnx.so'
11769 openbsd*)
11770 version_type=sunos
11771 sys_lib_dlsearch_path_spec="/usr/lib"
11772 need_lib_prefix=no
11773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11774 case $host_os in
11775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11776 *) need_version=no ;;
11777 esac
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11782 case $host_os in
11783 openbsd2.[89] | openbsd2.[89].*)
11784 shlibpath_overrides_runpath=no
11787 shlibpath_overrides_runpath=yes
11789 esac
11790 else
11791 shlibpath_overrides_runpath=yes
11795 os2*)
11796 libname_spec='$name'
11797 shrext_cmds=".dll"
11798 need_lib_prefix=no
11799 library_names_spec='$libname${shared_ext} $libname.a'
11800 dynamic_linker='OS/2 ld.exe'
11801 shlibpath_var=LIBPATH
11804 osf3* | osf4* | osf5*)
11805 version_type=osf
11806 need_lib_prefix=no
11807 need_version=no
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11815 rdos*)
11816 dynamic_linker=no
11819 solaris*)
11820 version_type=linux
11821 need_lib_prefix=no
11822 need_version=no
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827 hardcode_into_libs=yes
11828 # ldd complains unless libraries are executable
11829 postinstall_cmds='chmod +x $lib'
11832 sunos4*)
11833 version_type=sunos
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=yes
11838 if test "$with_gnu_ld" = yes; then
11839 need_lib_prefix=no
11841 need_version=yes
11844 sysv4 | sysv4.3*)
11845 version_type=linux
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 case $host_vendor in
11850 sni)
11851 shlibpath_overrides_runpath=no
11852 need_lib_prefix=no
11853 runpath_var=LD_RUN_PATH
11855 siemens)
11856 need_lib_prefix=no
11858 motorola)
11859 need_lib_prefix=no
11860 need_version=no
11861 shlibpath_overrides_runpath=no
11862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11864 esac
11867 sysv4*MP*)
11868 if test -d /usr/nec ;then
11869 version_type=linux
11870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11871 soname_spec='$libname${shared_ext}.$major'
11872 shlibpath_var=LD_LIBRARY_PATH
11876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11877 version_type=freebsd-elf
11878 need_lib_prefix=no
11879 need_version=no
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 hardcode_into_libs=yes
11885 if test "$with_gnu_ld" = yes; then
11886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11887 else
11888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11889 case $host_os in
11890 sco3.2v5*)
11891 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11893 esac
11895 sys_lib_dlsearch_path_spec='/usr/lib'
11898 tpf*)
11899 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11900 version_type=linux
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 shlibpath_var=LD_LIBRARY_PATH
11905 shlibpath_overrides_runpath=no
11906 hardcode_into_libs=yes
11909 uts4*)
11910 version_type=linux
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LD_LIBRARY_PATH
11917 dynamic_linker=no
11919 esac
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11921 $as_echo "$dynamic_linker" >&6; }
11922 test "$dynamic_linker" = no && can_build_shared=no
11924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11925 if test "$GCC" = yes; then
11926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11929 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11930 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11932 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11933 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12028 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12029 hardcode_action=
12030 if test -n "$hardcode_libdir_flag_spec" ||
12031 test -n "$runpath_var" ||
12032 test "X$hardcode_automatic" = "Xyes" ; then
12034 # We can hardcode non-existent directories.
12035 if test "$hardcode_direct" != no &&
12036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12037 # have to relink, otherwise we might link with an installed library
12038 # when we should be linking with a yet-to-be-installed one
12039 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12040 test "$hardcode_minus_L" != no; then
12041 # Linking always hardcodes the temporary library directory.
12042 hardcode_action=relink
12043 else
12044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12045 hardcode_action=immediate
12047 else
12048 # We cannot hardcode anything, or else we can only hardcode existing
12049 # directories.
12050 hardcode_action=unsupported
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12053 $as_echo "$hardcode_action" >&6; }
12055 if test "$hardcode_action" = relink ||
12056 test "$inherit_rpath" = yes; then
12057 # Fast installation is not supported
12058 enable_fast_install=no
12059 elif test "$shlibpath_overrides_runpath" = yes ||
12060 test "$enable_shared" = no; then
12061 # Fast installation is not necessary
12062 enable_fast_install=needless
12070 if test "x$enable_dlopen" != xyes; then
12071 enable_dlopen=unknown
12072 enable_dlopen_self=unknown
12073 enable_dlopen_self_static=unknown
12074 else
12075 lt_cv_dlopen=no
12076 lt_cv_dlopen_libs=
12078 case $host_os in
12079 beos*)
12080 lt_cv_dlopen="load_add_on"
12081 lt_cv_dlopen_libs=
12082 lt_cv_dlopen_self=yes
12085 mingw* | pw32* | cegcc*)
12086 lt_cv_dlopen="LoadLibrary"
12087 lt_cv_dlopen_libs=
12090 cygwin*)
12091 lt_cv_dlopen="dlopen"
12092 lt_cv_dlopen_libs=
12095 darwin*)
12096 # if libdl is installed we need to link against it
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldl $LIBS"
12104 if test x$gcc_no_link = xyes; then
12105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char dlopen ();
12118 main ()
12120 return dlopen ();
12122 return 0;
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"; then :
12126 ac_cv_lib_dl_dlopen=yes
12127 else
12128 ac_cv_lib_dl_dlopen=no
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12135 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12136 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12138 else
12140 lt_cv_dlopen="dyld"
12141 lt_cv_dlopen_libs=
12142 lt_cv_dlopen_self=yes
12149 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12150 if test "x$ac_cv_func_shl_load" = x""yes; then :
12151 lt_cv_dlopen="shl_load"
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12154 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-ldld $LIBS"
12160 if test x$gcc_no_link = xyes; then
12161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12169 #ifdef __cplusplus
12170 extern "C"
12171 #endif
12172 char shl_load ();
12174 main ()
12176 return shl_load ();
12178 return 0;
12180 _ACEOF
12181 if ac_fn_c_try_link "$LINENO"; then :
12182 ac_cv_lib_dld_shl_load=yes
12183 else
12184 ac_cv_lib_dld_shl_load=no
12186 rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12191 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12192 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12193 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12194 else
12195 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12196 if test "x$ac_cv_func_dlopen" = x""yes; then :
12197 lt_cv_dlopen="dlopen"
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-ldl $LIBS"
12206 if test x$gcc_no_link = xyes; then
12207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12215 #ifdef __cplusplus
12216 extern "C"
12217 #endif
12218 char dlopen ();
12220 main ()
12222 return dlopen ();
12224 return 0;
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"; then :
12228 ac_cv_lib_dl_dlopen=yes
12229 else
12230 ac_cv_lib_dl_dlopen=no
12232 rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12237 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12238 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12242 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12243 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lsvld $LIBS"
12248 if test x$gcc_no_link = xyes; then
12249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char dlopen ();
12262 main ()
12264 return dlopen ();
12266 return 0;
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_svld_dlopen=yes
12271 else
12272 ac_cv_lib_svld_dlopen=no
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12279 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12280 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12284 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12285 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-ldld $LIBS"
12290 if test x$gcc_no_link = xyes; then
12291 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dld_link ();
12304 main ()
12306 return dld_link ();
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_lib_dld_dld_link=yes
12313 else
12314 ac_cv_lib_dld_dld_link=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12321 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12322 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12323 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12342 esac
12344 if test "x$lt_cv_dlopen" != xno; then
12345 enable_dlopen=yes
12346 else
12347 enable_dlopen=no
12350 case $lt_cv_dlopen in
12351 dlopen)
12352 save_CPPFLAGS="$CPPFLAGS"
12353 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12355 save_LDFLAGS="$LDFLAGS"
12356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12358 save_LIBS="$LIBS"
12359 LIBS="$lt_cv_dlopen_libs $LIBS"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12362 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12363 if test "${lt_cv_dlopen_self+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test "$cross_compiling" = yes; then :
12367 lt_cv_dlopen_self=cross
12368 else
12369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12370 lt_status=$lt_dlunknown
12371 cat > conftest.$ac_ext <<_LT_EOF
12372 #line 12372 "configure"
12373 #include "confdefs.h"
12375 #if HAVE_DLFCN_H
12376 #include <dlfcn.h>
12377 #endif
12379 #include <stdio.h>
12381 #ifdef RTLD_GLOBAL
12382 # define LT_DLGLOBAL RTLD_GLOBAL
12383 #else
12384 # ifdef DL_GLOBAL
12385 # define LT_DLGLOBAL DL_GLOBAL
12386 # else
12387 # define LT_DLGLOBAL 0
12388 # endif
12389 #endif
12391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12392 find out it does not work in some platform. */
12393 #ifndef LT_DLLAZY_OR_NOW
12394 # ifdef RTLD_LAZY
12395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12396 # else
12397 # ifdef DL_LAZY
12398 # define LT_DLLAZY_OR_NOW DL_LAZY
12399 # else
12400 # ifdef RTLD_NOW
12401 # define LT_DLLAZY_OR_NOW RTLD_NOW
12402 # else
12403 # ifdef DL_NOW
12404 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # else
12406 # define LT_DLLAZY_OR_NOW 0
12407 # endif
12408 # endif
12409 # endif
12410 # endif
12411 #endif
12413 /* When -fvisbility=hidden is used, assume the code has been annotated
12414 correspondingly for the symbols needed. */
12415 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12416 void fnord () __attribute__((visibility("default")));
12417 #endif
12419 void fnord () { int i=42; }
12420 int main ()
12422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12423 int status = $lt_dlunknown;
12425 if (self)
12427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12428 else
12430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12431 else puts (dlerror ());
12433 /* dlclose (self); */
12435 else
12436 puts (dlerror ());
12438 return status;
12440 _LT_EOF
12441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12442 (eval $ac_link) 2>&5
12443 ac_status=$?
12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12446 (./conftest; exit; ) >&5 2>/dev/null
12447 lt_status=$?
12448 case x$lt_status in
12449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12452 esac
12453 else :
12454 # compilation failed
12455 lt_cv_dlopen_self=no
12458 rm -fr conftest*
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12463 $as_echo "$lt_cv_dlopen_self" >&6; }
12465 if test "x$lt_cv_dlopen_self" = xyes; then
12466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12468 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12469 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test "$cross_compiling" = yes; then :
12473 lt_cv_dlopen_self_static=cross
12474 else
12475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12476 lt_status=$lt_dlunknown
12477 cat > conftest.$ac_ext <<_LT_EOF
12478 #line 12478 "configure"
12479 #include "confdefs.h"
12481 #if HAVE_DLFCN_H
12482 #include <dlfcn.h>
12483 #endif
12485 #include <stdio.h>
12487 #ifdef RTLD_GLOBAL
12488 # define LT_DLGLOBAL RTLD_GLOBAL
12489 #else
12490 # ifdef DL_GLOBAL
12491 # define LT_DLGLOBAL DL_GLOBAL
12492 # else
12493 # define LT_DLGLOBAL 0
12494 # endif
12495 #endif
12497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12498 find out it does not work in some platform. */
12499 #ifndef LT_DLLAZY_OR_NOW
12500 # ifdef RTLD_LAZY
12501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12502 # else
12503 # ifdef DL_LAZY
12504 # define LT_DLLAZY_OR_NOW DL_LAZY
12505 # else
12506 # ifdef RTLD_NOW
12507 # define LT_DLLAZY_OR_NOW RTLD_NOW
12508 # else
12509 # ifdef DL_NOW
12510 # define LT_DLLAZY_OR_NOW DL_NOW
12511 # else
12512 # define LT_DLLAZY_OR_NOW 0
12513 # endif
12514 # endif
12515 # endif
12516 # endif
12517 #endif
12519 /* When -fvisbility=hidden is used, assume the code has been annotated
12520 correspondingly for the symbols needed. */
12521 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12522 void fnord () __attribute__((visibility("default")));
12523 #endif
12525 void fnord () { int i=42; }
12526 int main ()
12528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12529 int status = $lt_dlunknown;
12531 if (self)
12533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12534 else
12536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537 else puts (dlerror ());
12539 /* dlclose (self); */
12541 else
12542 puts (dlerror ());
12544 return status;
12546 _LT_EOF
12547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12552 (./conftest; exit; ) >&5 2>/dev/null
12553 lt_status=$?
12554 case x$lt_status in
12555 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12557 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12558 esac
12559 else :
12560 # compilation failed
12561 lt_cv_dlopen_self_static=no
12564 rm -fr conftest*
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12569 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12572 CPPFLAGS="$save_CPPFLAGS"
12573 LDFLAGS="$save_LDFLAGS"
12574 LIBS="$save_LIBS"
12576 esac
12578 case $lt_cv_dlopen_self in
12579 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12580 *) enable_dlopen_self=unknown ;;
12581 esac
12583 case $lt_cv_dlopen_self_static in
12584 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12585 *) enable_dlopen_self_static=unknown ;;
12586 esac
12605 striplib=
12606 old_striplib=
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12608 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12609 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 else
12615 # FIXME - insert some real tests, host_os isn't really good enough
12616 case $host_os in
12617 darwin*)
12618 if test -n "$STRIP" ; then
12619 striplib="$STRIP -x"
12620 old_striplib="$STRIP -S"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12632 esac
12646 # Report which library types will actually be built
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12650 $as_echo "$can_build_shared" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12653 $as_echo_n "checking whether to build shared libraries... " >&6; }
12654 test "$can_build_shared" = "no" && enable_shared=no
12656 # On AIX, shared libraries and static libraries use the same namespace, and
12657 # are all built from PIC.
12658 case $host_os in
12659 aix3*)
12660 test "$enable_shared" = yes && enable_static=no
12661 if test -n "$RANLIB"; then
12662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12663 postinstall_cmds='$RANLIB $lib'
12667 aix[4-9]*)
12668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12669 test "$enable_shared" = yes && enable_static=no
12672 esac
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12674 $as_echo "$enable_shared" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12677 $as_echo_n "checking whether to build static libraries... " >&6; }
12678 # Make sure either enable_shared or enable_static is yes.
12679 test "$enable_shared" = yes || enable_static=yes
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12681 $as_echo "$enable_static" >&6; }
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693 CC="$lt_save_CC"
12707 ac_config_commands="$ac_config_commands libtool"
12712 # Only expand once:
12718 case $host in
12719 *-cygwin* | *-mingw*)
12720 # 'host' will be top-level target in the case of a target lib,
12721 # we must compare to with_cross_host to decide if this is a native
12722 # or cross-compiler and select where to install dlls appropriately.
12723 if test -n "$with_cross_host" &&
12724 test x"$with_cross_host" != x"no"; then
12725 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12726 else
12727 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12731 lt_host_flags=
12733 esac
12739 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12741 # We need gfortran to compile parts of the library
12742 #AC_PROG_FC(gfortran)
12743 FC="$GFORTRAN"
12744 ac_ext=${ac_fc_srcext-f}
12745 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12746 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12747 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12748 if test -n "$ac_tool_prefix"; then
12749 for ac_prog in gfortran
12751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if test "${ac_cv_prog_FC+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 if test -n "$FC"; then
12759 ac_cv_prog_FC="$FC" # Let the user override the test.
12760 else
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12764 IFS=$as_save_IFS
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12768 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 break 2
12772 done
12773 done
12774 IFS=$as_save_IFS
12778 FC=$ac_cv_prog_FC
12779 if test -n "$FC"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12781 $as_echo "$FC" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12788 test -n "$FC" && break
12789 done
12791 if test -z "$FC"; then
12792 ac_ct_FC=$FC
12793 for ac_prog in gfortran
12795 # Extract the first word of "$ac_prog", so it can be a program name with args.
12796 set dummy $ac_prog; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 if test -n "$ac_ct_FC"; then
12803 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12804 else
12805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806 for as_dir in $PATH
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12812 ac_cv_prog_ac_ct_FC="$ac_prog"
12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 break 2
12816 done
12817 done
12818 IFS=$as_save_IFS
12822 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12823 if test -n "$ac_ct_FC"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12825 $as_echo "$ac_ct_FC" >&6; }
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12832 test -n "$ac_ct_FC" && break
12833 done
12835 if test "x$ac_ct_FC" = x; then
12836 FC=""
12837 else
12838 case $cross_compiling:$ac_tool_warned in
12839 yes:)
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12842 ac_tool_warned=yes ;;
12843 esac
12844 FC=$ac_ct_FC
12849 # Provide some information about the compiler.
12850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12851 set X $ac_compile
12852 ac_compiler=$2
12853 for ac_option in --version -v -V -qversion; do
12854 { { ac_try="$ac_compiler $ac_option >&5"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858 esac
12859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12860 $as_echo "$ac_try_echo"; } >&5
12861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12862 ac_status=$?
12863 if test -s conftest.err; then
12864 sed '10a\
12865 ... rest of stderr output deleted ...
12866 10q' conftest.err >conftest.er1
12867 cat conftest.er1 >&5
12868 rm -f conftest.er1 conftest.err
12870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871 test $ac_status = 0; }
12872 done
12873 rm -f a.out
12875 # If we don't use `.F' as extension, the preprocessor is not run on the
12876 # input file. (Note that this only needs to work for GNU compilers.)
12877 ac_save_ext=$ac_ext
12878 ac_ext=F
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12880 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12881 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 cat > conftest.$ac_ext <<_ACEOF
12885 program main
12886 #ifndef __GNUC__
12887 choke me
12888 #endif
12891 _ACEOF
12892 if ac_fn_fc_try_compile "$LINENO"; then :
12893 ac_compiler_gnu=yes
12894 else
12895 ac_compiler_gnu=no
12897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12898 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12902 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12903 ac_ext=$ac_save_ext
12904 ac_test_FCFLAGS=${FCFLAGS+set}
12905 ac_save_FCFLAGS=$FCFLAGS
12906 FCFLAGS=
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12908 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12909 if test "${ac_cv_prog_fc_g+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 FCFLAGS=-g
12913 cat > conftest.$ac_ext <<_ACEOF
12914 program main
12917 _ACEOF
12918 if ac_fn_fc_try_compile "$LINENO"; then :
12919 ac_cv_prog_fc_g=yes
12920 else
12921 ac_cv_prog_fc_g=no
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12927 $as_echo "$ac_cv_prog_fc_g" >&6; }
12928 if test "$ac_test_FCFLAGS" = set; then
12929 FCFLAGS=$ac_save_FCFLAGS
12930 elif test $ac_cv_prog_fc_g = yes; then
12931 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12932 FCFLAGS="-g -O2"
12933 else
12934 FCFLAGS="-g"
12936 else
12937 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12938 FCFLAGS="-O2"
12939 else
12940 FCFLAGS=
12944 ac_ext=c
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12950 ac_ext=${ac_fc_srcext-f}
12951 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12952 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12956 if test -z "$FC" || test "X$FC" = "Xno"; then
12957 _lt_disable_FC=yes
12960 archive_cmds_need_lc_FC=no
12961 allow_undefined_flag_FC=
12962 always_export_symbols_FC=no
12963 archive_expsym_cmds_FC=
12964 export_dynamic_flag_spec_FC=
12965 hardcode_direct_FC=no
12966 hardcode_direct_absolute_FC=no
12967 hardcode_libdir_flag_spec_FC=
12968 hardcode_libdir_flag_spec_ld_FC=
12969 hardcode_libdir_separator_FC=
12970 hardcode_minus_L_FC=no
12971 hardcode_automatic_FC=no
12972 inherit_rpath_FC=no
12973 module_cmds_FC=
12974 module_expsym_cmds_FC=
12975 link_all_deplibs_FC=unknown
12976 old_archive_cmds_FC=$old_archive_cmds
12977 reload_flag_FC=$reload_flag
12978 reload_cmds_FC=$reload_cmds
12979 no_undefined_flag_FC=
12980 whole_archive_flag_spec_FC=
12981 enable_shared_with_static_runtimes_FC=no
12983 # Source file extension for fc test sources.
12984 ac_ext=${ac_fc_srcext-f}
12986 # Object file extension for compiled fc test sources.
12987 objext=o
12988 objext_FC=$objext
12990 # No sense in running all these tests if we already determined that
12991 # the FC compiler isn't working. Some variables (like enable_shared)
12992 # are currently assumed to apply to all compilers on this platform,
12993 # and will be corrupted by setting them based on a non-working compiler.
12994 if test "$_lt_disable_FC" != yes; then
12995 # Code to be used in simple compile tests
12996 lt_simple_compile_test_code="\
12997 subroutine t
12998 return
13002 # Code to be used in simple link tests
13003 lt_simple_link_test_code="\
13004 program t
13008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13015 # If no C compiler was specified, use CC.
13016 LTCC=${LTCC-"$CC"}
13018 # If no C compiler flags were specified, use CFLAGS.
13019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13021 # Allow CC to be a program name with arguments.
13022 compiler=$CC
13025 # save warnings/boilerplate of simple test code
13026 ac_outfile=conftest.$ac_objext
13027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13029 _lt_compiler_boilerplate=`cat conftest.err`
13030 $RM conftest*
13032 ac_outfile=conftest.$ac_objext
13033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13035 _lt_linker_boilerplate=`cat conftest.err`
13036 $RM -r conftest*
13039 # Allow CC to be a program name with arguments.
13040 lt_save_CC="$CC"
13041 lt_save_GCC=$GCC
13042 CC=${FC-"f95"}
13043 compiler=$CC
13044 GCC=$ac_cv_fc_compiler_gnu
13046 compiler_FC=$CC
13047 for cc_temp in $compiler""; do
13048 case $cc_temp in
13049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13051 \-*) ;;
13052 *) break;;
13053 esac
13054 done
13055 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13058 if test -n "$compiler"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13060 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13062 $as_echo "$can_build_shared" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13065 $as_echo_n "checking whether to build shared libraries... " >&6; }
13066 test "$can_build_shared" = "no" && enable_shared=no
13068 # On AIX, shared libraries and static libraries use the same namespace, and
13069 # are all built from PIC.
13070 case $host_os in
13071 aix3*)
13072 test "$enable_shared" = yes && enable_static=no
13073 if test -n "$RANLIB"; then
13074 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13075 postinstall_cmds='$RANLIB $lib'
13078 aix[4-9]*)
13079 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13080 test "$enable_shared" = yes && enable_static=no
13083 esac
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13085 $as_echo "$enable_shared" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13088 $as_echo_n "checking whether to build static libraries... " >&6; }
13089 # Make sure either enable_shared or enable_static is yes.
13090 test "$enable_shared" = yes || enable_static=yes
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13092 $as_echo "$enable_static" >&6; }
13094 GCC_FC="$ac_cv_fc_compiler_gnu"
13095 LD_FC="$LD"
13097 ## CAVEAT EMPTOR:
13098 ## There is no encapsulation within the following macros, do not change
13099 ## the running order or otherwise move them around unless you know exactly
13100 ## what you are doing...
13101 # Dependencies to place before and after the object being linked:
13102 predep_objects_FC=
13103 postdep_objects_FC=
13104 predeps_FC=
13105 postdeps_FC=
13106 compiler_lib_search_path_FC=
13108 cat > conftest.$ac_ext <<_LT_EOF
13109 subroutine foo
13110 implicit none
13111 integer a
13113 return
13115 _LT_EOF
13117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13118 (eval $ac_compile) 2>&5
13119 ac_status=$?
13120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13121 test $ac_status = 0; }; then
13122 # Parse the compiler output and extract the necessary
13123 # objects, libraries and library flags.
13125 # Sentinel used to keep track of whether or not we are before
13126 # the conftest object file.
13127 pre_test_object_deps_done=no
13129 for p in `eval "$output_verbose_link_cmd"`; do
13130 case $p in
13132 -L* | -R* | -l*)
13133 # Some compilers place space between "-{L,R}" and the path.
13134 # Remove the space.
13135 if test $p = "-L" ||
13136 test $p = "-R"; then
13137 prev=$p
13138 continue
13139 else
13140 prev=
13143 if test "$pre_test_object_deps_done" = no; then
13144 case $p in
13145 -L* | -R*)
13146 # Internal compiler library paths should come after those
13147 # provided the user. The postdeps already come after the
13148 # user supplied libs so there is no need to process them.
13149 if test -z "$compiler_lib_search_path_FC"; then
13150 compiler_lib_search_path_FC="${prev}${p}"
13151 else
13152 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13155 # The "-l" case would never come before the object being
13156 # linked, so don't bother handling this case.
13157 esac
13158 else
13159 if test -z "$postdeps_FC"; then
13160 postdeps_FC="${prev}${p}"
13161 else
13162 postdeps_FC="${postdeps_FC} ${prev}${p}"
13167 *.$objext)
13168 # This assumes that the test object file only shows up
13169 # once in the compiler output.
13170 if test "$p" = "conftest.$objext"; then
13171 pre_test_object_deps_done=yes
13172 continue
13175 if test "$pre_test_object_deps_done" = no; then
13176 if test -z "$predep_objects_FC"; then
13177 predep_objects_FC="$p"
13178 else
13179 predep_objects_FC="$predep_objects_FC $p"
13181 else
13182 if test -z "$postdep_objects_FC"; then
13183 postdep_objects_FC="$p"
13184 else
13185 postdep_objects_FC="$postdep_objects_FC $p"
13190 *) ;; # Ignore the rest.
13192 esac
13193 done
13195 # Clean up.
13196 rm -f a.out a.exe
13197 else
13198 echo "libtool.m4: error: problem compiling FC test program"
13201 $RM -f confest.$objext
13203 # PORTME: override above test on systems where it is broken
13206 case " $postdeps_FC " in
13207 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13208 esac
13209 compiler_lib_search_dirs_FC=
13210 if test -n "${compiler_lib_search_path_FC}"; then
13211 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13244 lt_prog_compiler_wl_FC=
13245 lt_prog_compiler_pic_FC=
13246 lt_prog_compiler_static_FC=
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13251 if test "$GCC" = yes; then
13252 lt_prog_compiler_wl_FC='-Wl,'
13253 lt_prog_compiler_static_FC='-static'
13255 case $host_os in
13256 aix*)
13257 # All AIX code is PIC.
13258 if test "$host_cpu" = ia64; then
13259 # AIX 5 now supports IA64 processor
13260 lt_prog_compiler_static_FC='-Bstatic'
13262 lt_prog_compiler_pic_FC='-fPIC'
13265 amigaos*)
13266 case $host_cpu in
13267 powerpc)
13268 # see comment about AmigaOS4 .so support
13269 lt_prog_compiler_pic_FC='-fPIC'
13271 m68k)
13272 # FIXME: we need at least 68020 code to build shared libraries, but
13273 # adding the `-m68020' flag to GCC prevents building anything better,
13274 # like `-m68040'.
13275 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13277 esac
13280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13281 # PIC is the default for these OSes.
13284 mingw* | cygwin* | pw32* | os2* | cegcc*)
13285 # This hack is so that the source file can tell whether it is being
13286 # built for inclusion in a dll (and should export symbols for example).
13287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13288 # (--disable-auto-import) libraries
13289 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13292 darwin* | rhapsody*)
13293 # PIC is the default on this platform
13294 # Common symbols not allowed in MH_DYLIB files
13295 lt_prog_compiler_pic_FC='-fno-common'
13298 haiku*)
13299 # PIC is the default for Haiku.
13300 # The "-static" flag exists, but is broken.
13301 lt_prog_compiler_static_FC=
13304 hpux*)
13305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13307 # sets the default TLS model and affects inlining.
13308 case $host_cpu in
13309 hppa*64*)
13310 # +Z the default
13313 lt_prog_compiler_pic_FC='-fPIC'
13315 esac
13318 interix[3-9]*)
13319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13320 # Instead, we relocate shared libraries at runtime.
13323 msdosdjgpp*)
13324 # Just because we use GCC doesn't mean we suddenly get shared libraries
13325 # on systems that don't support them.
13326 lt_prog_compiler_can_build_shared_FC=no
13327 enable_shared=no
13330 *nto* | *qnx*)
13331 # QNX uses GNU C++, but need to define -shared option too, otherwise
13332 # it will coredump.
13333 lt_prog_compiler_pic_FC='-fPIC -shared'
13336 sysv4*MP*)
13337 if test -d /usr/nec; then
13338 lt_prog_compiler_pic_FC=-Kconform_pic
13343 lt_prog_compiler_pic_FC='-fPIC'
13345 esac
13347 case $cc_basename in
13348 nvcc*) # Cuda Compiler Driver 2.2
13349 lt_prog_compiler_wl_FC='-Xlinker '
13350 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13352 esac
13353 else
13354 # PORTME Check for flag to pass linker flags through the system compiler.
13355 case $host_os in
13356 aix*)
13357 lt_prog_compiler_wl_FC='-Wl,'
13358 if test "$host_cpu" = ia64; then
13359 # AIX 5 now supports IA64 processor
13360 lt_prog_compiler_static_FC='-Bstatic'
13361 else
13362 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13366 mingw* | cygwin* | pw32* | os2* | cegcc*)
13367 # This hack is so that the source file can tell whether it is being
13368 # built for inclusion in a dll (and should export symbols for example).
13369 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13372 hpux9* | hpux10* | hpux11*)
13373 lt_prog_compiler_wl_FC='-Wl,'
13374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13375 # not for PA HP-UX.
13376 case $host_cpu in
13377 hppa*64*|ia64*)
13378 # +Z the default
13381 lt_prog_compiler_pic_FC='+Z'
13383 esac
13384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13385 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13388 irix5* | irix6* | nonstopux*)
13389 lt_prog_compiler_wl_FC='-Wl,'
13390 # PIC (with -KPIC) is the default.
13391 lt_prog_compiler_static_FC='-non_shared'
13394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13395 case $cc_basename in
13396 # old Intel for x86_64 which still supported -KPIC.
13397 ecc*)
13398 lt_prog_compiler_wl_FC='-Wl,'
13399 lt_prog_compiler_pic_FC='-KPIC'
13400 lt_prog_compiler_static_FC='-static'
13402 # icc used to be incompatible with GCC.
13403 # ICC 10 doesn't accept -KPIC any more.
13404 icc* | ifort*)
13405 lt_prog_compiler_wl_FC='-Wl,'
13406 lt_prog_compiler_pic_FC='-fPIC'
13407 lt_prog_compiler_static_FC='-static'
13409 # Lahey Fortran 8.1.
13410 lf95*)
13411 lt_prog_compiler_wl_FC='-Wl,'
13412 lt_prog_compiler_pic_FC='--shared'
13413 lt_prog_compiler_static_FC='--static'
13415 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13416 # Portland Group compilers (*not* the Pentium gcc compiler,
13417 # which looks to be a dead project)
13418 lt_prog_compiler_wl_FC='-Wl,'
13419 lt_prog_compiler_pic_FC='-fpic'
13420 lt_prog_compiler_static_FC='-Bstatic'
13422 ccc*)
13423 lt_prog_compiler_wl_FC='-Wl,'
13424 # All Alpha code is PIC.
13425 lt_prog_compiler_static_FC='-non_shared'
13427 xl* | bgxl* | bgf* | mpixl*)
13428 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13429 lt_prog_compiler_wl_FC='-Wl,'
13430 lt_prog_compiler_pic_FC='-qpic'
13431 lt_prog_compiler_static_FC='-qstaticlink'
13434 case `$CC -V 2>&1 | sed 5q` in
13435 *Sun\ F* | *Sun*Fortran*)
13436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13437 lt_prog_compiler_pic_FC='-KPIC'
13438 lt_prog_compiler_static_FC='-Bstatic'
13439 lt_prog_compiler_wl_FC=''
13441 *Sun\ C*)
13442 # Sun C 5.9
13443 lt_prog_compiler_pic_FC='-KPIC'
13444 lt_prog_compiler_static_FC='-Bstatic'
13445 lt_prog_compiler_wl_FC='-Wl,'
13447 esac
13449 esac
13452 newsos6)
13453 lt_prog_compiler_pic_FC='-KPIC'
13454 lt_prog_compiler_static_FC='-Bstatic'
13457 *nto* | *qnx*)
13458 # QNX uses GNU C++, but need to define -shared option too, otherwise
13459 # it will coredump.
13460 lt_prog_compiler_pic_FC='-fPIC -shared'
13463 osf3* | osf4* | osf5*)
13464 lt_prog_compiler_wl_FC='-Wl,'
13465 # All OSF/1 code is PIC.
13466 lt_prog_compiler_static_FC='-non_shared'
13469 rdos*)
13470 lt_prog_compiler_static_FC='-non_shared'
13473 solaris*)
13474 lt_prog_compiler_pic_FC='-KPIC'
13475 lt_prog_compiler_static_FC='-Bstatic'
13476 case $cc_basename in
13477 f77* | f90* | f95*)
13478 lt_prog_compiler_wl_FC='-Qoption ld ';;
13480 lt_prog_compiler_wl_FC='-Wl,';;
13481 esac
13484 sunos4*)
13485 lt_prog_compiler_wl_FC='-Qoption ld '
13486 lt_prog_compiler_pic_FC='-PIC'
13487 lt_prog_compiler_static_FC='-Bstatic'
13490 sysv4 | sysv4.2uw2* | sysv4.3*)
13491 lt_prog_compiler_wl_FC='-Wl,'
13492 lt_prog_compiler_pic_FC='-KPIC'
13493 lt_prog_compiler_static_FC='-Bstatic'
13496 sysv4*MP*)
13497 if test -d /usr/nec ;then
13498 lt_prog_compiler_pic_FC='-Kconform_pic'
13499 lt_prog_compiler_static_FC='-Bstatic'
13503 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13504 lt_prog_compiler_wl_FC='-Wl,'
13505 lt_prog_compiler_pic_FC='-KPIC'
13506 lt_prog_compiler_static_FC='-Bstatic'
13509 unicos*)
13510 lt_prog_compiler_wl_FC='-Wl,'
13511 lt_prog_compiler_can_build_shared_FC=no
13514 uts4*)
13515 lt_prog_compiler_pic_FC='-pic'
13516 lt_prog_compiler_static_FC='-Bstatic'
13520 lt_prog_compiler_can_build_shared_FC=no
13522 esac
13525 case $host_os in
13526 # For platforms which do not support PIC, -DPIC is meaningless:
13527 *djgpp*)
13528 lt_prog_compiler_pic_FC=
13531 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13533 esac
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13535 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13540 # Check to make sure the PIC flag actually works.
13542 if test -n "$lt_prog_compiler_pic_FC"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13545 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 lt_cv_prog_compiler_pic_works_FC=no
13549 ac_outfile=conftest.$ac_objext
13550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13551 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13552 # Insert the option either (1) after the last *FLAGS variable, or
13553 # (2) before a word containing "conftest.", or (3) at the end.
13554 # Note that $ac_compile itself does not contain backslashes and begins
13555 # with a dollar sign (not a hyphen), so the echo should work correctly.
13556 # The option is referenced via a variable to avoid confusing sed.
13557 lt_compile=`echo "$ac_compile" | $SED \
13558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13560 -e 's:$: $lt_compiler_flag:'`
13561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13562 (eval "$lt_compile" 2>conftest.err)
13563 ac_status=$?
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 if (exit $ac_status) && test -s "$ac_outfile"; then
13567 # The compiler can only warn and ignore the option if not recognized
13568 # So say no if there are warnings other than the usual output.
13569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13572 lt_cv_prog_compiler_pic_works_FC=yes
13575 $RM conftest*
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13579 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13581 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13582 case $lt_prog_compiler_pic_FC in
13583 "" | " "*) ;;
13584 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13585 esac
13586 else
13587 lt_prog_compiler_pic_FC=
13588 lt_prog_compiler_can_build_shared_FC=no
13596 # Check to make sure the static flag actually works.
13598 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13601 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 lt_cv_prog_compiler_static_works_FC=no
13605 save_LDFLAGS="$LDFLAGS"
13606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13609 # The linker can only warn and ignore the option if not recognized
13610 # So say no if there are warnings
13611 if test -s conftest.err; then
13612 # Append any errors to the config.log.
13613 cat conftest.err 1>&5
13614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13616 if diff conftest.exp conftest.er2 >/dev/null; then
13617 lt_cv_prog_compiler_static_works_FC=yes
13619 else
13620 lt_cv_prog_compiler_static_works_FC=yes
13623 $RM -r conftest*
13624 LDFLAGS="$save_LDFLAGS"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13628 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13630 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13632 else
13633 lt_prog_compiler_static_FC=
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13641 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 lt_cv_prog_compiler_c_o_FC=no
13645 $RM -r conftest 2>/dev/null
13646 mkdir conftest
13647 cd conftest
13648 mkdir out
13649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13651 lt_compiler_flag="-o out/conftest2.$ac_objext"
13652 # Insert the option either (1) after the last *FLAGS variable, or
13653 # (2) before a word containing "conftest.", or (3) at the end.
13654 # Note that $ac_compile itself does not contain backslashes and begins
13655 # with a dollar sign (not a hyphen), so the echo should work correctly.
13656 lt_compile=`echo "$ac_compile" | $SED \
13657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13659 -e 's:$: $lt_compiler_flag:'`
13660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13661 (eval "$lt_compile" 2>out/conftest.err)
13662 ac_status=$?
13663 cat out/conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13666 then
13667 # The compiler can only warn and ignore the option if not recognized
13668 # So say no if there are warnings
13669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13672 lt_cv_prog_compiler_c_o_FC=yes
13675 chmod u+w . 2>&5
13676 $RM conftest*
13677 # SGI C++ compiler will create directory out/ii_files/ for
13678 # template instantiation
13679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13680 $RM out/* && rmdir out
13681 cd ..
13682 $RM -r conftest
13683 $RM conftest*
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13687 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13693 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 lt_cv_prog_compiler_c_o_FC=no
13697 $RM -r conftest 2>/dev/null
13698 mkdir conftest
13699 cd conftest
13700 mkdir out
13701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 lt_compiler_flag="-o out/conftest2.$ac_objext"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 lt_compile=`echo "$ac_compile" | $SED \
13709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13711 -e 's:$: $lt_compiler_flag:'`
13712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13713 (eval "$lt_compile" 2>out/conftest.err)
13714 ac_status=$?
13715 cat out/conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13718 then
13719 # The compiler can only warn and ignore the option if not recognized
13720 # So say no if there are warnings
13721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13724 lt_cv_prog_compiler_c_o_FC=yes
13727 chmod u+w . 2>&5
13728 $RM conftest*
13729 # SGI C++ compiler will create directory out/ii_files/ for
13730 # template instantiation
13731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13732 $RM out/* && rmdir out
13733 cd ..
13734 $RM -r conftest
13735 $RM conftest*
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13739 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13744 hard_links="nottested"
13745 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13746 # do not overwrite the value of need_locks provided by the user
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13748 $as_echo_n "checking if we can lock with hard links... " >&6; }
13749 hard_links=yes
13750 $RM conftest*
13751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13752 touch conftest.a
13753 ln conftest.a conftest.b 2>&5 || hard_links=no
13754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13756 $as_echo "$hard_links" >&6; }
13757 if test "$hard_links" = no; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13759 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13760 need_locks=warn
13762 else
13763 need_locks=no
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13771 runpath_var=
13772 allow_undefined_flag_FC=
13773 always_export_symbols_FC=no
13774 archive_cmds_FC=
13775 archive_expsym_cmds_FC=
13776 compiler_needs_object_FC=no
13777 enable_shared_with_static_runtimes_FC=no
13778 export_dynamic_flag_spec_FC=
13779 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13780 hardcode_automatic_FC=no
13781 hardcode_direct_FC=no
13782 hardcode_direct_absolute_FC=no
13783 hardcode_libdir_flag_spec_FC=
13784 hardcode_libdir_flag_spec_ld_FC=
13785 hardcode_libdir_separator_FC=
13786 hardcode_minus_L_FC=no
13787 hardcode_shlibpath_var_FC=unsupported
13788 inherit_rpath_FC=no
13789 link_all_deplibs_FC=unknown
13790 module_cmds_FC=
13791 module_expsym_cmds_FC=
13792 old_archive_from_new_cmds_FC=
13793 old_archive_from_expsyms_cmds_FC=
13794 thread_safe_flag_spec_FC=
13795 whole_archive_flag_spec_FC=
13796 # include_expsyms should be a list of space-separated symbols to be *always*
13797 # included in the symbol list
13798 include_expsyms_FC=
13799 # exclude_expsyms can be an extended regexp of symbols to exclude
13800 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13801 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13802 # as well as any symbol that contains `d'.
13803 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13804 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13805 # platforms (ab)use it in PIC code, but their linkers get confused if
13806 # the symbol is explicitly referenced. Since portable code cannot
13807 # rely on this symbol name, it's probably fine to never include it in
13808 # preloaded symbol tables.
13809 # Exclude shared library initialization/finalization symbols.
13810 extract_expsyms_cmds=
13812 case $host_os in
13813 cygwin* | mingw* | pw32* | cegcc*)
13814 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13815 # When not using gcc, we currently assume that we are using
13816 # Microsoft Visual C++.
13817 if test "$GCC" != yes; then
13818 with_gnu_ld=no
13821 interix*)
13822 # we just hope/assume this is gcc and not c89 (= MSVC++)
13823 with_gnu_ld=yes
13825 openbsd*)
13826 with_gnu_ld=no
13828 esac
13830 ld_shlibs_FC=yes
13832 # On some targets, GNU ld is compatible enough with the native linker
13833 # that we're better off using the native interface for both.
13834 lt_use_gnu_ld_interface=no
13835 if test "$with_gnu_ld" = yes; then
13836 case $host_os in
13837 aix*)
13838 # The AIX port of GNU ld has always aspired to compatibility
13839 # with the native linker. However, as the warning in the GNU ld
13840 # block says, versions before 2.19.5* couldn't really create working
13841 # shared libraries, regardless of the interface used.
13842 case `$LD -v 2>&1` in
13843 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13844 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13845 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13847 lt_use_gnu_ld_interface=yes
13849 esac
13852 lt_use_gnu_ld_interface=yes
13854 esac
13857 if test "$lt_use_gnu_ld_interface" = yes; then
13858 # If archive_cmds runs LD, not CC, wlarc should be empty
13859 wlarc='${wl}'
13861 # Set some defaults for GNU ld with shared library support. These
13862 # are reset later if shared libraries are not supported. Putting them
13863 # here allows them to be overridden if necessary.
13864 runpath_var=LD_RUN_PATH
13865 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13866 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13867 # ancient GNU ld didn't support --whole-archive et. al.
13868 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13869 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13870 else
13871 whole_archive_flag_spec_FC=
13873 supports_anon_versioning=no
13874 case `$LD -v 2>&1` in
13875 *GNU\ gold*) supports_anon_versioning=yes ;;
13876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13879 *\ 2.11.*) ;; # other 2.11 versions
13880 *) supports_anon_versioning=yes ;;
13881 esac
13883 # See if GNU ld supports shared libraries.
13884 case $host_os in
13885 aix[3-9]*)
13886 # On AIX/PPC, the GNU linker is very broken
13887 if test "$host_cpu" != ia64; then
13888 ld_shlibs_FC=no
13889 cat <<_LT_EOF 1>&2
13891 *** Warning: the GNU linker, at least up to release 2.19, is reported
13892 *** to be unable to reliably create shared libraries on AIX.
13893 *** Therefore, libtool is disabling shared libraries support. If you
13894 *** really care for shared libraries, you may want to install binutils
13895 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13896 *** You will then need to restart the configuration process.
13898 _LT_EOF
13902 amigaos*)
13903 case $host_cpu in
13904 powerpc)
13905 # see comment about AmigaOS4 .so support
13906 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13907 archive_expsym_cmds_FC=''
13909 m68k)
13910 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)'
13911 hardcode_libdir_flag_spec_FC='-L$libdir'
13912 hardcode_minus_L_FC=yes
13914 esac
13917 beos*)
13918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13919 allow_undefined_flag_FC=unsupported
13920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13921 # support --undefined. This deserves some investigation. FIXME
13922 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13923 else
13924 ld_shlibs_FC=no
13928 cygwin* | mingw* | pw32* | cegcc*)
13929 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13930 # as there is no search path for DLLs.
13931 hardcode_libdir_flag_spec_FC='-L$libdir'
13932 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13933 allow_undefined_flag_FC=unsupported
13934 always_export_symbols_FC=no
13935 enable_shared_with_static_runtimes_FC=yes
13936 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13939 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13940 # If the export-symbols file already is a .def file (1st line
13941 # is EXPORTS), use it as is; otherwise, prepend...
13942 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13943 cp $export_symbols $output_objdir/$soname.def;
13944 else
13945 echo EXPORTS > $output_objdir/$soname.def;
13946 cat $export_symbols >> $output_objdir/$soname.def;
13948 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13949 else
13950 ld_shlibs_FC=no
13954 haiku*)
13955 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956 link_all_deplibs_FC=yes
13959 interix[3-9]*)
13960 hardcode_direct_FC=no
13961 hardcode_shlibpath_var_FC=no
13962 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13963 export_dynamic_flag_spec_FC='${wl}-E'
13964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13965 # Instead, shared libraries are loaded at an image base (0x10000000 by
13966 # default) and relocated if they conflict, which is a slow very memory
13967 # consuming and fragmenting process. To avoid this, we pick a random,
13968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13970 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'
13971 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'
13974 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13975 tmp_diet=no
13976 if test "$host_os" = linux-dietlibc; then
13977 case $cc_basename in
13978 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13979 esac
13981 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13982 && test "$tmp_diet" = no
13983 then
13984 tmp_addflag=' $pic_flag'
13985 tmp_sharedflag='-shared'
13986 case $cc_basename,$host_cpu in
13987 pgcc*) # Portland Group C compiler
13988 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'
13989 tmp_addflag=' $pic_flag'
13991 pgf77* | pgf90* | pgf95* | pgfortran*)
13992 # Portland Group f77 and f90 compilers
13993 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'
13994 tmp_addflag=' $pic_flag -Mnomain' ;;
13995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13996 tmp_addflag=' -i_dynamic' ;;
13997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13998 tmp_addflag=' -i_dynamic -nofor_main' ;;
13999 ifc* | ifort*) # Intel Fortran compiler
14000 tmp_addflag=' -nofor_main' ;;
14001 lf95*) # Lahey Fortran 8.1
14002 whole_archive_flag_spec_FC=
14003 tmp_sharedflag='--shared' ;;
14004 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14005 tmp_sharedflag='-qmkshrobj'
14006 tmp_addflag= ;;
14007 nvcc*) # Cuda Compiler Driver 2.2
14008 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'
14009 compiler_needs_object_FC=yes
14011 esac
14012 case `$CC -V 2>&1 | sed 5q` in
14013 *Sun\ C*) # Sun C 5.9
14014 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'
14015 compiler_needs_object_FC=yes
14016 tmp_sharedflag='-G' ;;
14017 *Sun\ F*) # Sun Fortran 8.3
14018 tmp_sharedflag='-G' ;;
14019 esac
14020 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14022 if test "x$supports_anon_versioning" = xyes; then
14023 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14025 echo "local: *; };" >> $output_objdir/$libname.ver~
14026 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14029 case $cc_basename in
14030 xlf* | bgf* | bgxlf* | mpixlf*)
14031 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14032 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14033 hardcode_libdir_flag_spec_FC=
14034 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14035 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14036 if test "x$supports_anon_versioning" = xyes; then
14037 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14039 echo "local: *; };" >> $output_objdir/$libname.ver~
14040 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14043 esac
14044 else
14045 ld_shlibs_FC=no
14049 netbsd*)
14050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14051 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14052 wlarc=
14053 else
14054 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14059 solaris*)
14060 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14061 ld_shlibs_FC=no
14062 cat <<_LT_EOF 1>&2
14064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14065 *** create shared libraries on Solaris systems. Therefore, libtool
14066 *** is disabling shared libraries support. We urge you to upgrade GNU
14067 *** binutils to release 2.9.1 or newer. Another option is to modify
14068 *** your PATH or compiler configuration so that the native linker is
14069 *** used, and then restart.
14071 _LT_EOF
14072 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14073 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14075 else
14076 ld_shlibs_FC=no
14080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14081 case `$LD -v 2>&1` in
14082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14083 ld_shlibs_FC=no
14084 cat <<_LT_EOF 1>&2
14086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14087 *** reliably create shared libraries on SCO systems. Therefore, libtool
14088 *** is disabling shared libraries support. We urge you to upgrade GNU
14089 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14090 *** your PATH or compiler configuration so that the native linker is
14091 *** used, and then restart.
14093 _LT_EOF
14096 # For security reasons, it is highly recommended that you always
14097 # use absolute paths for naming shared libraries, and exclude the
14098 # DT_RUNPATH tag from executables and libraries. But doing so
14099 # requires that you compile everything twice, which is a pain.
14100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14101 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14102 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14104 else
14105 ld_shlibs_FC=no
14108 esac
14111 sunos4*)
14112 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14113 wlarc=
14114 hardcode_direct_FC=yes
14115 hardcode_shlibpath_var_FC=no
14119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14120 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14121 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14122 else
14123 ld_shlibs_FC=no
14126 esac
14128 if test "$ld_shlibs_FC" = no; then
14129 runpath_var=
14130 hardcode_libdir_flag_spec_FC=
14131 export_dynamic_flag_spec_FC=
14132 whole_archive_flag_spec_FC=
14134 else
14135 # PORTME fill in a description of your system's linker (not GNU ld)
14136 case $host_os in
14137 aix3*)
14138 allow_undefined_flag_FC=unsupported
14139 always_export_symbols_FC=yes
14140 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'
14141 # Note: this linker hardcodes the directories in LIBPATH if there
14142 # are no directories specified by -L.
14143 hardcode_minus_L_FC=yes
14144 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14145 # Neither direct hardcoding nor static linking is supported with a
14146 # broken collect2.
14147 hardcode_direct_FC=unsupported
14151 aix[4-9]*)
14152 if test "$host_cpu" = ia64; then
14153 # On IA64, the linker does run time linking by default, so we don't
14154 # have to do anything special.
14155 aix_use_runtimelinking=no
14156 exp_sym_flag='-Bexport'
14157 no_entry_flag=""
14158 else
14159 # If we're using GNU nm, then we don't want the "-C" option.
14160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14161 # Also, AIX nm treats weak defined symbols like other global
14162 # defined symbols, whereas GNU nm marks them as "W".
14163 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14164 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'
14165 else
14166 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14168 aix_use_runtimelinking=no
14170 # Test if we are trying to use run time linking or normal
14171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14172 # need to do runtime linking.
14173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14174 for ld_flag in $LDFLAGS; do
14175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14176 aix_use_runtimelinking=yes
14177 break
14179 done
14181 esac
14183 exp_sym_flag='-bexport'
14184 no_entry_flag='-bnoentry'
14187 # When large executables or shared objects are built, AIX ld can
14188 # have problems creating the table of contents. If linking a library
14189 # or program results in "error TOC overflow" add -mminimal-toc to
14190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14193 archive_cmds_FC=''
14194 hardcode_direct_FC=yes
14195 hardcode_direct_absolute_FC=yes
14196 hardcode_libdir_separator_FC=':'
14197 link_all_deplibs_FC=yes
14198 file_list_spec_FC='${wl}-f,'
14200 if test "$GCC" = yes; then
14201 case $host_os in aix4.[012]|aix4.[012].*)
14202 # We only want to do this on AIX 4.2 and lower, the check
14203 # below for broken collect2 doesn't work under 4.3+
14204 collect2name=`${CC} -print-prog-name=collect2`
14205 if test -f "$collect2name" &&
14206 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14207 then
14208 # We have reworked collect2
14210 else
14211 # We have old collect2
14212 hardcode_direct_FC=unsupported
14213 # It fails to find uninstalled libraries when the uninstalled
14214 # path is not listed in the libpath. Setting hardcode_minus_L
14215 # to unsupported forces relinking
14216 hardcode_minus_L_FC=yes
14217 hardcode_libdir_flag_spec_FC='-L$libdir'
14218 hardcode_libdir_separator_FC=
14221 esac
14222 shared_flag='-shared'
14223 if test "$aix_use_runtimelinking" = yes; then
14224 shared_flag="$shared_flag "'${wl}-G'
14226 else
14227 # not using gcc
14228 if test "$host_cpu" = ia64; then
14229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14230 # chokes on -Wl,-G. The following line is correct:
14231 shared_flag='-G'
14232 else
14233 if test "$aix_use_runtimelinking" = yes; then
14234 shared_flag='${wl}-G'
14235 else
14236 shared_flag='${wl}-bM:SRE'
14241 export_dynamic_flag_spec_FC='${wl}-bexpall'
14242 # It seems that -bexpall does not export symbols beginning with
14243 # underscore (_), so it is better to generate a list of symbols to export.
14244 always_export_symbols_FC=yes
14245 if test "$aix_use_runtimelinking" = yes; then
14246 # Warning - without using the other runtime loading flags (-brtl),
14247 # -berok will link without error, but may produce a broken library.
14248 allow_undefined_flag_FC='-berok'
14249 # Determine the default libpath from the value encoded in an
14250 # empty executable.
14251 if test x$gcc_no_link = xyes; then
14252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14254 cat > conftest.$ac_ext <<_ACEOF
14255 program main
14258 _ACEOF
14259 if ac_fn_fc_try_link "$LINENO"; then :
14261 lt_aix_libpath_sed='
14262 /Import File Strings/,/^$/ {
14263 /^0/ {
14264 s/^0 *\(.*\)$/\1/
14268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14269 # Check for a 64-bit object if we didn't find anything.
14270 if test -z "$aix_libpath"; then
14271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14278 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14279 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"
14280 else
14281 if test "$host_cpu" = ia64; then
14282 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14283 allow_undefined_flag_FC="-z nodefs"
14284 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"
14285 else
14286 # Determine the default libpath from the value encoded in an
14287 # empty executable.
14288 if test x$gcc_no_link = xyes; then
14289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14291 cat > conftest.$ac_ext <<_ACEOF
14292 program main
14295 _ACEOF
14296 if ac_fn_fc_try_link "$LINENO"; then :
14298 lt_aix_libpath_sed='
14299 /Import File Strings/,/^$/ {
14300 /^0/ {
14301 s/^0 *\(.*\)$/\1/
14305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306 # Check for a 64-bit object if we didn't find anything.
14307 if test -z "$aix_libpath"; then
14308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14315 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14316 # Warning - without using the other run time loading flags,
14317 # -berok will link without error, but may produce a broken library.
14318 no_undefined_flag_FC=' ${wl}-bernotok'
14319 allow_undefined_flag_FC=' ${wl}-berok'
14320 if test "$with_gnu_ld" = yes; then
14321 # We only use this code for GNU lds that support --whole-archive.
14322 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14323 else
14324 # Exported symbols can be pulled into shared objects from archives
14325 whole_archive_flag_spec_FC='$convenience'
14327 archive_cmds_need_lc_FC=yes
14328 # This is similar to how AIX traditionally builds its shared libraries.
14329 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'
14334 amigaos*)
14335 case $host_cpu in
14336 powerpc)
14337 # see comment about AmigaOS4 .so support
14338 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339 archive_expsym_cmds_FC=''
14341 m68k)
14342 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)'
14343 hardcode_libdir_flag_spec_FC='-L$libdir'
14344 hardcode_minus_L_FC=yes
14346 esac
14349 bsdi[45]*)
14350 export_dynamic_flag_spec_FC=-rdynamic
14353 cygwin* | mingw* | pw32* | cegcc*)
14354 # When not using gcc, we currently assume that we are using
14355 # Microsoft Visual C++.
14356 # hardcode_libdir_flag_spec is actually meaningless, as there is
14357 # no search path for DLLs.
14358 hardcode_libdir_flag_spec_FC=' '
14359 allow_undefined_flag_FC=unsupported
14360 # Tell ltmain to make .lib files, not .a files.
14361 libext=lib
14362 # Tell ltmain to make .dll files, not .so files.
14363 shrext_cmds=".dll"
14364 # FIXME: Setting linknames here is a bad hack.
14365 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14366 # The linker will automatically build a .lib file if we build a DLL.
14367 old_archive_from_new_cmds_FC='true'
14368 # FIXME: Should let the user specify the lib program.
14369 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14370 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14371 enable_shared_with_static_runtimes_FC=yes
14374 darwin* | rhapsody*)
14377 archive_cmds_need_lc_FC=no
14378 hardcode_direct_FC=no
14379 hardcode_automatic_FC=yes
14380 hardcode_shlibpath_var_FC=unsupported
14381 if test "$lt_cv_ld_force_load" = "yes"; then
14382 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\"`'
14383 else
14384 whole_archive_flag_spec_FC=''
14386 link_all_deplibs_FC=yes
14387 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14388 case $cc_basename in
14389 ifort*) _lt_dar_can_shared=yes ;;
14390 *) _lt_dar_can_shared=$GCC ;;
14391 esac
14392 if test "$_lt_dar_can_shared" = "yes"; then
14393 output_verbose_link_cmd=func_echo_all
14394 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}"
14395 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14396 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}"
14397 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}"
14399 else
14400 ld_shlibs_FC=no
14405 dgux*)
14406 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_libdir_flag_spec_FC='-L$libdir'
14408 hardcode_shlibpath_var_FC=no
14411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14412 # support. Future versions do this automatically, but an explicit c++rt0.o
14413 # does not break anything, and helps significantly (at the cost of a little
14414 # extra space).
14415 freebsd2.2*)
14416 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14417 hardcode_libdir_flag_spec_FC='-R$libdir'
14418 hardcode_direct_FC=yes
14419 hardcode_shlibpath_var_FC=no
14422 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14423 freebsd2.*)
14424 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_direct_FC=yes
14426 hardcode_minus_L_FC=yes
14427 hardcode_shlibpath_var_FC=no
14430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14431 freebsd* | dragonfly*)
14432 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14433 hardcode_libdir_flag_spec_FC='-R$libdir'
14434 hardcode_direct_FC=yes
14435 hardcode_shlibpath_var_FC=no
14438 hpux9*)
14439 if test "$GCC" = yes; then
14440 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'
14441 else
14442 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'
14444 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14445 hardcode_libdir_separator_FC=:
14446 hardcode_direct_FC=yes
14448 # hardcode_minus_L: Not really in the search PATH,
14449 # but as the default location of the library.
14450 hardcode_minus_L_FC=yes
14451 export_dynamic_flag_spec_FC='${wl}-E'
14454 hpux10*)
14455 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14456 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14457 else
14458 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14460 if test "$with_gnu_ld" = no; then
14461 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14462 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14463 hardcode_libdir_separator_FC=:
14464 hardcode_direct_FC=yes
14465 hardcode_direct_absolute_FC=yes
14466 export_dynamic_flag_spec_FC='${wl}-E'
14467 # hardcode_minus_L: Not really in the search PATH,
14468 # but as the default location of the library.
14469 hardcode_minus_L_FC=yes
14473 hpux11*)
14474 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14475 case $host_cpu in
14476 hppa*64*)
14477 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14479 ia64*)
14480 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14485 esac
14486 else
14487 case $host_cpu in
14488 hppa*64*)
14489 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 ia64*)
14492 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14495 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14497 esac
14499 if test "$with_gnu_ld" = no; then
14500 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14501 hardcode_libdir_separator_FC=:
14503 case $host_cpu in
14504 hppa*64*|ia64*)
14505 hardcode_direct_FC=no
14506 hardcode_shlibpath_var_FC=no
14509 hardcode_direct_FC=yes
14510 hardcode_direct_absolute_FC=yes
14511 export_dynamic_flag_spec_FC='${wl}-E'
14513 # hardcode_minus_L: Not really in the search PATH,
14514 # but as the default location of the library.
14515 hardcode_minus_L_FC=yes
14517 esac
14521 irix5* | irix6* | nonstopux*)
14522 if test "$GCC" = yes; then
14523 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'
14524 # Try to use the -exported_symbol ld option, if it does not
14525 # work, assume that -exports_file does not work either and
14526 # implicitly export all symbols.
14527 save_LDFLAGS="$LDFLAGS"
14528 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14529 if test x$gcc_no_link = xyes; then
14530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14532 cat > conftest.$ac_ext <<_ACEOF
14533 int foo(void) {}
14534 _ACEOF
14535 if ac_fn_fc_try_link "$LINENO"; then :
14536 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'
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LDFLAGS="$save_LDFLAGS"
14542 else
14543 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'
14544 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'
14546 archive_cmds_need_lc_FC='no'
14547 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14548 hardcode_libdir_separator_FC=:
14549 inherit_rpath_FC=yes
14550 link_all_deplibs_FC=yes
14553 netbsd*)
14554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14555 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14556 else
14557 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14559 hardcode_libdir_flag_spec_FC='-R$libdir'
14560 hardcode_direct_FC=yes
14561 hardcode_shlibpath_var_FC=no
14564 newsos6)
14565 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_direct_FC=yes
14567 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14568 hardcode_libdir_separator_FC=:
14569 hardcode_shlibpath_var_FC=no
14572 *nto* | *qnx*)
14575 openbsd*)
14576 if test -f /usr/libexec/ld.so; then
14577 hardcode_direct_FC=yes
14578 hardcode_shlibpath_var_FC=no
14579 hardcode_direct_absolute_FC=yes
14580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14581 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14583 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14584 export_dynamic_flag_spec_FC='${wl}-E'
14585 else
14586 case $host_os in
14587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14588 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14589 hardcode_libdir_flag_spec_FC='-R$libdir'
14592 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14593 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14595 esac
14597 else
14598 ld_shlibs_FC=no
14602 os2*)
14603 hardcode_libdir_flag_spec_FC='-L$libdir'
14604 hardcode_minus_L_FC=yes
14605 allow_undefined_flag_FC=unsupported
14606 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'
14607 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14610 osf3*)
14611 if test "$GCC" = yes; then
14612 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14613 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'
14614 else
14615 allow_undefined_flag_FC=' -expect_unresolved \*'
14616 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'
14618 archive_cmds_need_lc_FC='no'
14619 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14620 hardcode_libdir_separator_FC=:
14623 osf4* | osf5*) # as osf3* with the addition of -msym flag
14624 if test "$GCC" = yes; then
14625 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14626 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'
14627 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14628 else
14629 allow_undefined_flag_FC=' -expect_unresolved \*'
14630 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'
14631 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~
14632 $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'
14634 # Both c and cxx compiler support -rpath directly
14635 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14637 archive_cmds_need_lc_FC='no'
14638 hardcode_libdir_separator_FC=:
14641 solaris*)
14642 no_undefined_flag_FC=' -z defs'
14643 if test "$GCC" = yes; then
14644 wlarc='${wl}'
14645 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14646 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14648 else
14649 case `$CC -V 2>&1` in
14650 *"Compilers 5.0"*)
14651 wlarc=''
14652 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14657 wlarc='${wl}'
14658 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14662 esac
14664 hardcode_libdir_flag_spec_FC='-R$libdir'
14665 hardcode_shlibpath_var_FC=no
14666 case $host_os in
14667 solaris2.[0-5] | solaris2.[0-5].*) ;;
14669 # The compiler driver will combine and reorder linker options,
14670 # but understands `-z linker_flag'. GCC discards it without `$wl',
14671 # but is careful enough not to reorder.
14672 # Supported since Solaris 2.6 (maybe 2.5.1?)
14673 if test "$GCC" = yes; then
14674 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14675 else
14676 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14679 esac
14680 link_all_deplibs_FC=yes
14683 sunos4*)
14684 if test "x$host_vendor" = xsequent; then
14685 # Use $CC to link under sequent, because it throws in some extra .o
14686 # files that make .init and .fini sections work.
14687 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14688 else
14689 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14691 hardcode_libdir_flag_spec_FC='-L$libdir'
14692 hardcode_direct_FC=yes
14693 hardcode_minus_L_FC=yes
14694 hardcode_shlibpath_var_FC=no
14697 sysv4)
14698 case $host_vendor in
14699 sni)
14700 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_direct_FC=yes # is this really true???
14703 siemens)
14704 ## LD is ld it makes a PLAMLIB
14705 ## CC just makes a GrossModule.
14706 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14707 reload_cmds_FC='$CC -r -o $output$reload_objs'
14708 hardcode_direct_FC=no
14710 motorola)
14711 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14712 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14714 esac
14715 runpath_var='LD_RUN_PATH'
14716 hardcode_shlibpath_var_FC=no
14719 sysv4.3*)
14720 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_shlibpath_var_FC=no
14722 export_dynamic_flag_spec_FC='-Bexport'
14725 sysv4*MP*)
14726 if test -d /usr/nec; then
14727 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_shlibpath_var_FC=no
14729 runpath_var=LD_RUN_PATH
14730 hardcode_runpath_var=yes
14731 ld_shlibs_FC=yes
14735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14736 no_undefined_flag_FC='${wl}-z,text'
14737 archive_cmds_need_lc_FC=no
14738 hardcode_shlibpath_var_FC=no
14739 runpath_var='LD_RUN_PATH'
14741 if test "$GCC" = yes; then
14742 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14743 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744 else
14745 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14746 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 sysv5* | sco3.2v5* | sco5v6*)
14751 # Note: We can NOT use -z defs as we might desire, because we do not
14752 # link with -lc, and that would cause any symbols used from libc to
14753 # always be unresolved, which means just about no library would
14754 # ever link correctly. If we're not using GNU ld we use -z text
14755 # though, which does catch some bad symbols but isn't as heavy-handed
14756 # as -z defs.
14757 no_undefined_flag_FC='${wl}-z,text'
14758 allow_undefined_flag_FC='${wl}-z,nodefs'
14759 archive_cmds_need_lc_FC=no
14760 hardcode_shlibpath_var_FC=no
14761 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14762 hardcode_libdir_separator_FC=':'
14763 link_all_deplibs_FC=yes
14764 export_dynamic_flag_spec_FC='${wl}-Bexport'
14765 runpath_var='LD_RUN_PATH'
14767 if test "$GCC" = yes; then
14768 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14770 else
14771 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14776 uts4*)
14777 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14778 hardcode_libdir_flag_spec_FC='-L$libdir'
14779 hardcode_shlibpath_var_FC=no
14783 ld_shlibs_FC=no
14785 esac
14787 if test x$host_vendor = xsni; then
14788 case $host in
14789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14790 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14792 esac
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14797 $as_echo "$ld_shlibs_FC" >&6; }
14798 test "$ld_shlibs_FC" = no && can_build_shared=no
14800 with_gnu_ld_FC=$with_gnu_ld
14808 # Do we need to explicitly link libc?
14810 case "x$archive_cmds_need_lc_FC" in
14811 x|xyes)
14812 # Assume -lc should be added
14813 archive_cmds_need_lc_FC=yes
14815 if test "$enable_shared" = yes && test "$GCC" = yes; then
14816 case $archive_cmds_FC in
14817 *'~'*)
14818 # FIXME: we may have to deal with multi-command sequences.
14820 '$CC '*)
14821 # Test whether the compiler implicitly links with -lc since on some
14822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14823 # to ld, don't add -lc before -lgcc.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14826 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 $RM conftest*
14830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14833 (eval $ac_compile) 2>&5
14834 ac_status=$?
14835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14836 test $ac_status = 0; } 2>conftest.err; then
14837 soname=conftest
14838 lib=conftest
14839 libobjs=conftest.$ac_objext
14840 deplibs=
14841 wl=$lt_prog_compiler_wl_FC
14842 pic_flag=$lt_prog_compiler_pic_FC
14843 compiler_flags=-v
14844 linker_flags=-v
14845 verstring=
14846 output_objdir=.
14847 libname=conftest
14848 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14849 allow_undefined_flag_FC=
14850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14851 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14852 ac_status=$?
14853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14854 test $ac_status = 0; }
14855 then
14856 lt_cv_archive_cmds_need_lc_FC=no
14857 else
14858 lt_cv_archive_cmds_need_lc_FC=yes
14860 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14861 else
14862 cat conftest.err 1>&5
14864 $RM conftest*
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14868 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14869 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14871 esac
14874 esac
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14942 library_names_spec=
14943 libname_spec='lib$name'
14944 soname_spec=
14945 shrext_cmds=".so"
14946 postinstall_cmds=
14947 postuninstall_cmds=
14948 finish_cmds=
14949 finish_eval=
14950 shlibpath_var=
14951 shlibpath_overrides_runpath=unknown
14952 version_type=none
14953 dynamic_linker="$host_os ld.so"
14954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14955 need_lib_prefix=unknown
14956 hardcode_into_libs=no
14958 # when you set need_version to no, make sure it does not cause -set_version
14959 # flags to be left without arguments
14960 need_version=unknown
14962 case $host_os in
14963 aix3*)
14964 version_type=linux
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14966 shlibpath_var=LIBPATH
14968 # AIX 3 has no versioning support, so we append a major version to the name.
14969 soname_spec='${libname}${release}${shared_ext}$major'
14972 aix[4-9]*)
14973 version_type=linux
14974 need_lib_prefix=no
14975 need_version=no
14976 hardcode_into_libs=yes
14977 if test "$host_cpu" = ia64; then
14978 # AIX 5 supports IA64
14979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14980 shlibpath_var=LD_LIBRARY_PATH
14981 else
14982 # With GCC up to 2.95.x, collect2 would create an import file
14983 # for dependence libraries. The import file would start with
14984 # the line `#! .'. This would cause the generated library to
14985 # depend on `.', always an invalid library. This was fixed in
14986 # development snapshots of GCC prior to 3.0.
14987 case $host_os in
14988 aix4 | aix4.[01] | aix4.[01].*)
14989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14990 echo ' yes '
14991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14993 else
14994 can_build_shared=no
14997 esac
14998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14999 # soname into executable. Probably we can add versioning support to
15000 # collect2, so additional links can be useful in future.
15001 if test "$aix_use_runtimelinking" = yes; then
15002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15003 # instead of lib<name>.a to let people know that these are not
15004 # typical AIX shared libraries.
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 else
15007 # We preserve .a as extension for shared libraries through AIX4.2
15008 # and later when we are not doing run time linking.
15009 library_names_spec='${libname}${release}.a $libname.a'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LIBPATH
15016 amigaos*)
15017 case $host_cpu in
15018 powerpc)
15019 # Since July 2007 AmigaOS4 officially supports .so libraries.
15020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 m68k)
15024 library_names_spec='$libname.ixlibrary $libname.a'
15025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15026 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'
15028 esac
15031 beos*)
15032 library_names_spec='${libname}${shared_ext}'
15033 dynamic_linker="$host_os ld.so"
15034 shlibpath_var=LIBRARY_PATH
15037 bsdi[45]*)
15038 version_type=linux
15039 need_version=no
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15046 # the default ld.so.conf also contains /usr/contrib/lib and
15047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15048 # libtool to hard-code these into programs
15051 cygwin* | mingw* | pw32* | cegcc*)
15052 version_type=windows
15053 shrext_cmds=".dll"
15054 need_version=no
15055 need_lib_prefix=no
15057 case $GCC,$host_os in
15058 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15059 library_names_spec='$libname.dll.a'
15060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15061 postinstall_cmds='base_file=`basename \${file}`~
15062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15063 dldir=$destdir/`dirname \$dlpath`~
15064 test -d \$dldir || mkdir -p \$dldir~
15065 $install_prog $dir/$dlname \$dldir/$dlname~
15066 chmod a+x \$dldir/$dlname~
15067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15071 dlpath=$dir/\$dldll~
15072 $RM \$dlpath'
15073 shlibpath_overrides_runpath=yes
15075 case $host_os in
15076 cygwin*)
15077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081 mingw* | cegcc*)
15082 # MinGW DLLs use traditional 'lib' prefix
15083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15085 pw32*)
15086 # pw32 DLLs use 'pw' prefix rather than 'lib'
15087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15089 esac
15093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15095 esac
15096 dynamic_linker='Win32 ld.exe'
15097 # FIXME: first we should search . and the directory the executable is in
15098 shlibpath_var=PATH
15101 darwin* | rhapsody*)
15102 dynamic_linker="$host_os dyld"
15103 version_type=darwin
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15107 soname_spec='${libname}${release}${major}$shared_ext'
15108 shlibpath_overrides_runpath=yes
15109 shlibpath_var=DYLD_LIBRARY_PATH
15110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15115 dgux*)
15116 version_type=linux
15117 need_lib_prefix=no
15118 need_version=no
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15124 freebsd* | dragonfly*)
15125 # DragonFly does not have aout. When/if they implement a new
15126 # versioning mechanism, adjust this.
15127 if test -x /usr/bin/objformat; then
15128 objformat=`/usr/bin/objformat`
15129 else
15130 case $host_os in
15131 freebsd[23].*) objformat=aout ;;
15132 *) objformat=elf ;;
15133 esac
15135 version_type=freebsd-$objformat
15136 case $version_type in
15137 freebsd-elf*)
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15139 need_version=no
15140 need_lib_prefix=no
15142 freebsd-*)
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15144 need_version=yes
15146 esac
15147 shlibpath_var=LD_LIBRARY_PATH
15148 case $host_os in
15149 freebsd2.*)
15150 shlibpath_overrides_runpath=yes
15152 freebsd3.[01]* | freebsdelf3.[01]*)
15153 shlibpath_overrides_runpath=yes
15154 hardcode_into_libs=yes
15156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15158 shlibpath_overrides_runpath=no
15159 hardcode_into_libs=yes
15161 *) # from 4.6 on, and DragonFly
15162 shlibpath_overrides_runpath=yes
15163 hardcode_into_libs=yes
15165 esac
15168 gnu*)
15169 version_type=linux
15170 need_lib_prefix=no
15171 need_version=no
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 hardcode_into_libs=yes
15178 haiku*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 dynamic_linker="$host_os runtime_loader"
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes
15187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15188 hardcode_into_libs=yes
15191 hpux9* | hpux10* | hpux11*)
15192 # Give a soname corresponding to the major version so that dld.sl refuses to
15193 # link against other versions.
15194 version_type=sunos
15195 need_lib_prefix=no
15196 need_version=no
15197 case $host_cpu in
15198 ia64*)
15199 shrext_cmds='.so'
15200 hardcode_into_libs=yes
15201 dynamic_linker="$host_os dld.so"
15202 shlibpath_var=LD_LIBRARY_PATH
15203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 if test "X$HPUX_IA64_MODE" = X32; then
15207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15208 else
15209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15213 hppa*64*)
15214 shrext_cmds='.sl'
15215 hardcode_into_libs=yes
15216 dynamic_linker="$host_os dld.sl"
15217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15225 shrext_cmds='.sl'
15226 dynamic_linker="$host_os dld.sl"
15227 shlibpath_var=SHLIB_PATH
15228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15232 esac
15233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15234 postinstall_cmds='chmod 555 $lib'
15235 # or fails outright, so override atomically:
15236 install_override_mode=555
15239 interix[3-9]*)
15240 version_type=linux
15241 need_lib_prefix=no
15242 need_version=no
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath=no
15248 hardcode_into_libs=yes
15251 irix5* | irix6* | nonstopux*)
15252 case $host_os in
15253 nonstopux*) version_type=nonstopux ;;
15255 if test "$lt_cv_prog_gnu_ld" = yes; then
15256 version_type=linux
15257 else
15258 version_type=irix
15259 fi ;;
15260 esac
15261 need_lib_prefix=no
15262 need_version=no
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15265 case $host_os in
15266 irix5* | nonstopux*)
15267 libsuff= shlibsuff=
15270 case $LD in # libtool.m4 will add one of these switches to LD
15271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15272 libsuff= shlibsuff= libmagic=32-bit;;
15273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15274 libsuff=32 shlibsuff=N32 libmagic=N32;;
15275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15277 *) libsuff= shlibsuff= libmagic=never-match;;
15278 esac
15280 esac
15281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15282 shlibpath_overrides_runpath=no
15283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15285 hardcode_into_libs=yes
15288 # No shared lib support for Linux oldld, aout, or coff.
15289 linux*oldld* | linux*aout* | linux*coff*)
15290 dynamic_linker=no
15293 # This must be Linux ELF.
15294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15295 version_type=linux
15296 need_lib_prefix=no
15297 need_version=no
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 shlibpath_overrides_runpath=no
15304 # Some binutils ld are patched to set DT_RUNPATH
15305 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15307 else
15308 lt_cv_shlibpath_overrides_runpath=no
15309 save_LDFLAGS=$LDFLAGS
15310 save_libdir=$libdir
15311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15313 if test x$gcc_no_link = xyes; then
15314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15316 cat > conftest.$ac_ext <<_ACEOF
15317 program main
15320 _ACEOF
15321 if ac_fn_fc_try_link "$LINENO"; then :
15322 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15323 lt_cv_shlibpath_overrides_runpath=yes
15326 rm -f core conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LDFLAGS=$save_LDFLAGS
15329 libdir=$save_libdir
15333 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15335 # This implies no fast_install, which is unacceptable.
15336 # Some rework will be needed to allow for fast_install
15337 # before this can be enabled.
15338 hardcode_into_libs=yes
15340 # Append ld.so.conf contents to the search path
15341 if test -f /etc/ld.so.conf; then
15342 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' ' '`
15343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15346 # We used to test for /lib/ld.so.1 and disable shared libraries on
15347 # powerpc, because MkLinux only supported shared libraries with the
15348 # GNU dynamic linker. Since this was broken with cross compilers,
15349 # most powerpc-linux boxes support dynamic linking these days and
15350 # people can always --disable-shared, the test was removed, and we
15351 # assume the GNU/Linux dynamic linker is in use.
15352 dynamic_linker='GNU/Linux ld.so'
15355 netbsd*)
15356 version_type=sunos
15357 need_lib_prefix=no
15358 need_version=no
15359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15362 dynamic_linker='NetBSD (a.out) ld.so'
15363 else
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 dynamic_linker='NetBSD ld.elf_so'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 shlibpath_overrides_runpath=yes
15370 hardcode_into_libs=yes
15373 newsos6)
15374 version_type=linux
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=yes
15380 *nto* | *qnx*)
15381 version_type=qnx
15382 need_lib_prefix=no
15383 need_version=no
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 shlibpath_overrides_runpath=no
15388 hardcode_into_libs=yes
15389 dynamic_linker='ldqnx.so'
15392 openbsd*)
15393 version_type=sunos
15394 sys_lib_dlsearch_path_spec="/usr/lib"
15395 need_lib_prefix=no
15396 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15397 case $host_os in
15398 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15399 *) need_version=no ;;
15400 esac
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15405 case $host_os in
15406 openbsd2.[89] | openbsd2.[89].*)
15407 shlibpath_overrides_runpath=no
15410 shlibpath_overrides_runpath=yes
15412 esac
15413 else
15414 shlibpath_overrides_runpath=yes
15418 os2*)
15419 libname_spec='$name'
15420 shrext_cmds=".dll"
15421 need_lib_prefix=no
15422 library_names_spec='$libname${shared_ext} $libname.a'
15423 dynamic_linker='OS/2 ld.exe'
15424 shlibpath_var=LIBPATH
15427 osf3* | osf4* | osf5*)
15428 version_type=osf
15429 need_lib_prefix=no
15430 need_version=no
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15435 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15438 rdos*)
15439 dynamic_linker=no
15442 solaris*)
15443 version_type=linux
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=yes
15450 hardcode_into_libs=yes
15451 # ldd complains unless libraries are executable
15452 postinstall_cmds='chmod +x $lib'
15455 sunos4*)
15456 version_type=sunos
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=yes
15461 if test "$with_gnu_ld" = yes; then
15462 need_lib_prefix=no
15464 need_version=yes
15467 sysv4 | sysv4.3*)
15468 version_type=linux
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 case $host_vendor in
15473 sni)
15474 shlibpath_overrides_runpath=no
15475 need_lib_prefix=no
15476 runpath_var=LD_RUN_PATH
15478 siemens)
15479 need_lib_prefix=no
15481 motorola)
15482 need_lib_prefix=no
15483 need_version=no
15484 shlibpath_overrides_runpath=no
15485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15487 esac
15490 sysv4*MP*)
15491 if test -d /usr/nec ;then
15492 version_type=linux
15493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15494 soname_spec='$libname${shared_ext}.$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15500 version_type=freebsd-elf
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 shlibpath_overrides_runpath=yes
15507 hardcode_into_libs=yes
15508 if test "$with_gnu_ld" = yes; then
15509 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15510 else
15511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15512 case $host_os in
15513 sco3.2v5*)
15514 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15516 esac
15518 sys_lib_dlsearch_path_spec='/usr/lib'
15521 tpf*)
15522 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15523 version_type=linux
15524 need_lib_prefix=no
15525 need_version=no
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=no
15529 hardcode_into_libs=yes
15532 uts4*)
15533 version_type=linux
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 shlibpath_var=LD_LIBRARY_PATH
15540 dynamic_linker=no
15542 esac
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15544 $as_echo "$dynamic_linker" >&6; }
15545 test "$dynamic_linker" = no && can_build_shared=no
15547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15548 if test "$GCC" = yes; then
15549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15553 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15555 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15556 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15598 hardcode_action_FC=
15599 if test -n "$hardcode_libdir_flag_spec_FC" ||
15600 test -n "$runpath_var_FC" ||
15601 test "X$hardcode_automatic_FC" = "Xyes" ; then
15603 # We can hardcode non-existent directories.
15604 if test "$hardcode_direct_FC" != no &&
15605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15606 # have to relink, otherwise we might link with an installed library
15607 # when we should be linking with a yet-to-be-installed one
15608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15609 test "$hardcode_minus_L_FC" != no; then
15610 # Linking always hardcodes the temporary library directory.
15611 hardcode_action_FC=relink
15612 else
15613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15614 hardcode_action_FC=immediate
15616 else
15617 # We cannot hardcode anything, or else we can only hardcode existing
15618 # directories.
15619 hardcode_action_FC=unsupported
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15622 $as_echo "$hardcode_action_FC" >&6; }
15624 if test "$hardcode_action_FC" = relink ||
15625 test "$inherit_rpath_FC" = yes; then
15626 # Fast installation is not supported
15627 enable_fast_install=no
15628 elif test "$shlibpath_overrides_runpath" = yes ||
15629 test "$enable_shared" = no; then
15630 # Fast installation is not necessary
15631 enable_fast_install=needless
15640 fi # test -n "$compiler"
15642 GCC=$lt_save_GCC
15643 CC="$lt_save_CC"
15644 fi # test "$_lt_disable_FC" != yes
15646 ac_ext=c
15647 ac_cpp='$CPP $CPPFLAGS'
15648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15654 # extra LD Flags which are required for targets
15655 case "${host}" in
15656 *-darwin*)
15657 # Darwin needs -single_module when linking libgfortran
15658 extra_ldflags_libgfortran=-Wl,-single_module
15660 esac
15663 # We need a working compiler at that point, otherwise give a clear
15664 # error message and bail out.
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15667 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15668 ac_ext=${ac_fc_srcext-f}
15669 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15670 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15671 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15673 cat > conftest.$ac_ext <<_ACEOF
15675 program foo
15676 real, parameter :: bar = sin (12.34 / 2.5)
15677 end program foo
15678 _ACEOF
15679 if ac_fn_fc_try_compile "$LINENO"; then :
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15681 $as_echo "yes" >&6; }
15682 else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684 $as_echo "no" >&6; }
15685 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 ac_ext=c
15690 ac_cpp='$CPP $CPPFLAGS'
15691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15697 # Check whether --enable-largefile was given.
15698 if test "${enable_largefile+set}" = set; then :
15699 enableval=$enable_largefile;
15702 if test "$enable_largefile" != no; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15706 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 ac_cv_sys_largefile_CC=no
15710 if test "$GCC" != yes; then
15711 ac_save_CC=$CC
15712 while :; do
15713 # IRIX 6.2 and later do not support large files by default,
15714 # so use the C compiler's -n32 option if that helps.
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717 #include <sys/types.h>
15718 /* Check that off_t can represent 2**63 - 1 correctly.
15719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720 since some C++ compilers masquerading as C compilers
15721 incorrectly reject 9223372036854775807. */
15722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724 && LARGE_OFF_T % 2147483647 == 1)
15725 ? 1 : -1];
15727 main ()
15731 return 0;
15733 _ACEOF
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 break
15737 rm -f core conftest.err conftest.$ac_objext
15738 CC="$CC -n32"
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740 ac_cv_sys_largefile_CC=' -n32'; break
15742 rm -f core conftest.err conftest.$ac_objext
15743 break
15744 done
15745 CC=$ac_save_CC
15746 rm -f conftest.$ac_ext
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15751 if test "$ac_cv_sys_largefile_CC" != no; then
15752 CC=$CC$ac_cv_sys_largefile_CC
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15757 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 while :; do
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 #include <sys/types.h>
15764 /* Check that off_t can represent 2**63 - 1 correctly.
15765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15766 since some C++ compilers masquerading as C compilers
15767 incorrectly reject 9223372036854775807. */
15768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15770 && LARGE_OFF_T % 2147483647 == 1)
15771 ? 1 : -1];
15773 main ()
15777 return 0;
15779 _ACEOF
15780 if ac_fn_c_try_compile "$LINENO"; then :
15781 ac_cv_sys_file_offset_bits=no; break
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 #define _FILE_OFFSET_BITS 64
15787 #include <sys/types.h>
15788 /* Check that off_t can represent 2**63 - 1 correctly.
15789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15790 since some C++ compilers masquerading as C compilers
15791 incorrectly reject 9223372036854775807. */
15792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15794 && LARGE_OFF_T % 2147483647 == 1)
15795 ? 1 : -1];
15797 main ()
15801 return 0;
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 ac_cv_sys_file_offset_bits=64; break
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 ac_cv_sys_file_offset_bits=unknown
15809 break
15810 done
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15814 case $ac_cv_sys_file_offset_bits in #(
15815 no | unknown) ;;
15817 cat >>confdefs.h <<_ACEOF
15818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15819 _ACEOF
15821 esac
15822 rm -rf conftest*
15823 if test $ac_cv_sys_file_offset_bits = unknown; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15826 if test "${ac_cv_sys_large_files+set}" = set; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829 while :; do
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 #include <sys/types.h>
15833 /* Check that off_t can represent 2**63 - 1 correctly.
15834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15835 since some C++ compilers masquerading as C compilers
15836 incorrectly reject 9223372036854775807. */
15837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15839 && LARGE_OFF_T % 2147483647 == 1)
15840 ? 1 : -1];
15842 main ()
15846 return 0;
15848 _ACEOF
15849 if ac_fn_c_try_compile "$LINENO"; then :
15850 ac_cv_sys_large_files=no; break
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 #define _LARGE_FILES 1
15856 #include <sys/types.h>
15857 /* Check that off_t can represent 2**63 - 1 correctly.
15858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15859 since some C++ compilers masquerading as C compilers
15860 incorrectly reject 9223372036854775807. */
15861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15863 && LARGE_OFF_T % 2147483647 == 1)
15864 ? 1 : -1];
15866 main ()
15870 return 0;
15872 _ACEOF
15873 if ac_fn_c_try_compile "$LINENO"; then :
15874 ac_cv_sys_large_files=1; break
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 ac_cv_sys_large_files=unknown
15878 break
15879 done
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15882 $as_echo "$ac_cv_sys_large_files" >&6; }
15883 case $ac_cv_sys_large_files in #(
15884 no | unknown) ;;
15886 cat >>confdefs.h <<_ACEOF
15887 #define _LARGE_FILES $ac_cv_sys_large_files
15888 _ACEOF
15890 esac
15891 rm -rf conftest*
15896 # Types
15897 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15898 if test "x$ac_cv_type_off_t" = x""yes; then :
15900 else
15902 cat >>confdefs.h <<_ACEOF
15903 #define off_t long int
15904 _ACEOF
15909 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15912 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15914 else
15915 for ac_type in 'int' 'long int' 'long long int'; do
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 $ac_includes_default
15920 main ()
15922 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15923 test_array [0] = 0
15926 return 0;
15928 _ACEOF
15929 if ac_fn_c_try_compile "$LINENO"; then :
15931 cat >>confdefs.h <<_ACEOF
15932 #define intptr_t $ac_type
15933 _ACEOF
15935 ac_type=
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 test -z "$ac_type" && break
15939 done
15944 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15945 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15947 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15949 else
15950 for ac_type in 'unsigned int' 'unsigned long int' \
15951 'unsigned long long int'; do
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 $ac_includes_default
15956 main ()
15958 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15959 test_array [0] = 0
15962 return 0;
15964 _ACEOF
15965 if ac_fn_c_try_compile "$LINENO"; then :
15967 cat >>confdefs.h <<_ACEOF
15968 #define uintptr_t $ac_type
15969 _ACEOF
15971 ac_type=
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 test -z "$ac_type" && break
15975 done
15979 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15980 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_PTRDIFF_T 1
15984 _ACEOF
15990 # check header files (we assume C89 is available, so don't check for that)
15994 for ac_header in $ac_header_list
15995 do :
15996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15999 eval as_val=\$$as_ac_Header
16000 if test "x$as_val" = x""yes; then :
16001 cat >>confdefs.h <<_ACEOF
16002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16003 _ACEOF
16007 done
16043 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16045 acx_cv_header_stdint=stddef.h
16046 acx_cv_header_stdint_kind="(already complete)"
16047 for i in stdint.h $inttype_headers; do
16048 unset ac_cv_type_uintptr_t
16049 unset ac_cv_type_uintmax_t
16050 unset ac_cv_type_int_least32_t
16051 unset ac_cv_type_int_fast32_t
16052 unset ac_cv_type_uint64_t
16053 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16054 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16055 #include <$i>
16057 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16058 acx_cv_header_stdint=$i
16059 else
16060 continue
16063 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16064 #include <$i>
16066 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16068 else
16069 acx_cv_header_stdint_kind="(mostly complete)"
16072 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16073 #include <$i>
16075 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16077 else
16078 acx_cv_header_stdint_kind="(mostly complete)"
16081 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16082 #include <$i>
16084 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16086 else
16087 acx_cv_header_stdint_kind="(mostly complete)"
16090 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16091 #include <$i>
16093 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16095 else
16096 acx_cv_header_stdint_kind="(lacks uint64_t)"
16099 break
16100 done
16101 if test "$acx_cv_header_stdint" = stddef.h; then
16102 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16103 for i in stdint.h $inttype_headers; do
16104 unset ac_cv_type_uintptr_t
16105 unset ac_cv_type_uint32_t
16106 unset ac_cv_type_uint64_t
16107 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16108 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16109 #include <$i>
16111 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16112 acx_cv_header_stdint=$i
16113 else
16114 continue
16117 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16118 #include <$i>
16120 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16124 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16125 #include <$i>
16127 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16131 break
16132 done
16134 if test "$acx_cv_header_stdint" = stddef.h; then
16135 acx_cv_header_stdint_kind="(u_intXX_t style)"
16136 for i in sys/types.h $inttype_headers; do
16137 unset ac_cv_type_u_int32_t
16138 unset ac_cv_type_u_int64_t
16139 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16140 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16141 #include <$i>
16143 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16144 acx_cv_header_stdint=$i
16145 else
16146 continue
16149 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16150 #include <$i>
16152 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16156 break
16157 done
16159 if test "$acx_cv_header_stdint" = stddef.h; then
16160 acx_cv_header_stdint_kind="(using manual detection)"
16163 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16164 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16165 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16166 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16167 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16169 # ----------------- Summarize what we found so far
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16172 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16174 case `$as_basename -- gstdint.h ||
16175 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16176 Xgstdint.h : 'X\(//\)$' \| \
16177 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16178 $as_echo X/gstdint.h |
16179 sed '/^.*\/\([^/][^/]*\)\/*$/{
16180 s//\1/
16183 /^X\/\(\/\/\)$/{
16184 s//\1/
16187 /^X\/\(\/\).*/{
16188 s//\1/
16191 s/.*/./; q'` in
16192 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16193 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16194 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16195 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16196 *) ;;
16197 esac
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16200 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16202 # ----------------- done included file, check C basic types --------
16204 # Lacking an uintptr_t? Test size of void *
16205 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16206 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16209 # This bug is HP SR number 8606223364.
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16211 $as_echo_n "checking size of void *... " >&6; }
16212 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16213 $as_echo_n "(cached) " >&6
16214 else
16215 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16217 else
16218 if test "$ac_cv_type_void_p" = yes; then
16219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16221 { as_fn_set_status 77
16222 as_fn_error "cannot compute sizeof (void *)
16223 See \`config.log' for more details." "$LINENO" 5; }; }
16224 else
16225 ac_cv_sizeof_void_p=0
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16231 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16235 cat >>confdefs.h <<_ACEOF
16236 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16237 _ACEOF
16240 esac
16242 # Lacking an uint64_t? Test size of long
16243 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16244 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16247 # This bug is HP SR number 8606223364.
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16249 $as_echo_n "checking size of long... " >&6; }
16250 if test "${ac_cv_sizeof_long+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16255 else
16256 if test "$ac_cv_type_long" = yes; then
16257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16259 { as_fn_set_status 77
16260 as_fn_error "cannot compute sizeof (long)
16261 See \`config.log' for more details." "$LINENO" 5; }; }
16262 else
16263 ac_cv_sizeof_long=0
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16269 $as_echo "$ac_cv_sizeof_long" >&6; }
16273 cat >>confdefs.h <<_ACEOF
16274 #define SIZEOF_LONG $ac_cv_sizeof_long
16275 _ACEOF
16278 esac
16280 if test $acx_cv_header_stdint = stddef.h; then
16281 # Lacking a good header? Test size of everything and deduce all types.
16282 # The cast to long int works around a bug in the HP C Compiler
16283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16285 # This bug is HP SR number 8606223364.
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16287 $as_echo_n "checking size of int... " >&6; }
16288 if test "${ac_cv_sizeof_int+set}" = set; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16293 else
16294 if test "$ac_cv_type_int" = yes; then
16295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16297 { as_fn_set_status 77
16298 as_fn_error "cannot compute sizeof (int)
16299 See \`config.log' for more details." "$LINENO" 5; }; }
16300 else
16301 ac_cv_sizeof_int=0
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16307 $as_echo "$ac_cv_sizeof_int" >&6; }
16311 cat >>confdefs.h <<_ACEOF
16312 #define SIZEOF_INT $ac_cv_sizeof_int
16313 _ACEOF
16316 # The cast to long int works around a bug in the HP C Compiler
16317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16319 # This bug is HP SR number 8606223364.
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16321 $as_echo_n "checking size of short... " >&6; }
16322 if test "${ac_cv_sizeof_short+set}" = set; then :
16323 $as_echo_n "(cached) " >&6
16324 else
16325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16327 else
16328 if test "$ac_cv_type_short" = yes; then
16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16331 { as_fn_set_status 77
16332 as_fn_error "cannot compute sizeof (short)
16333 See \`config.log' for more details." "$LINENO" 5; }; }
16334 else
16335 ac_cv_sizeof_short=0
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16341 $as_echo "$ac_cv_sizeof_short" >&6; }
16345 cat >>confdefs.h <<_ACEOF
16346 #define SIZEOF_SHORT $ac_cv_sizeof_short
16347 _ACEOF
16350 # The cast to long int works around a bug in the HP C Compiler
16351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16353 # This bug is HP SR number 8606223364.
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16355 $as_echo_n "checking size of char... " >&6; }
16356 if test "${ac_cv_sizeof_char+set}" = set; then :
16357 $as_echo_n "(cached) " >&6
16358 else
16359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16361 else
16362 if test "$ac_cv_type_char" = yes; then
16363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16365 { as_fn_set_status 77
16366 as_fn_error "cannot compute sizeof (char)
16367 See \`config.log' for more details." "$LINENO" 5; }; }
16368 else
16369 ac_cv_sizeof_char=0
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16375 $as_echo "$ac_cv_sizeof_char" >&6; }
16379 cat >>confdefs.h <<_ACEOF
16380 #define SIZEOF_CHAR $ac_cv_sizeof_char
16381 _ACEOF
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16386 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16387 case "$ac_cv_sizeof_char" in
16388 1) acx_cv_type_int8_t=char ;;
16389 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16390 esac
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16392 $as_echo "$acx_cv_type_int8_t" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16395 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16396 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16397 2:*) acx_cv_type_int16_t=int ;;
16398 *:2) acx_cv_type_int16_t=short ;;
16399 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16400 esac
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16402 $as_echo "$acx_cv_type_int16_t" >&6; }
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16405 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16406 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16407 4:*) acx_cv_type_int32_t=int ;;
16408 *:4) acx_cv_type_int32_t=long ;;
16409 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16410 esac
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16412 $as_echo "$acx_cv_type_int32_t" >&6; }
16415 # These tests are here to make the output prettier
16417 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16418 case "$ac_cv_sizeof_long" in
16419 8) acx_cv_type_int64_t=long ;;
16420 esac
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16422 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16424 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16427 # Now we can use the above types
16429 if test "$ac_cv_type_uintptr_t" != yes; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16431 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16432 case $ac_cv_sizeof_void_p in
16433 2) acx_cv_type_intptr_t=int16_t ;;
16434 4) acx_cv_type_intptr_t=int32_t ;;
16435 8) acx_cv_type_intptr_t=int64_t ;;
16436 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16437 esac
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16439 $as_echo "$acx_cv_type_intptr_t" >&6; }
16442 # ----------------- done all checks, emit header -------------
16443 ac_config_commands="$ac_config_commands gstdint.h"
16448 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16449 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16453 _ACEOF
16457 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16458 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16462 _ACEOF
16466 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16467 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_STRUCT_STAT_ST_RDEV 1
16471 _ACEOF
16477 # Check for library functions.
16478 if test "x${with_newlib}" = "xyes"; then
16479 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16480 # may not work correctly, because the compiler may not be able to
16481 # link executables.
16483 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16486 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16489 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16492 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16495 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16498 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16501 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16504 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16507 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16510 # At some point, we should differentiate between architectures
16511 # like x86, which have long double versions, and alpha/powerpc/etc.,
16512 # which don't. For the time being, punt.
16513 if test x"long_double_math_on_this_cpu" = x"yes"; then
16515 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16518 else
16522 for ac_func in $ac_func_list
16523 do :
16524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16526 eval as_val=\$$as_ac_var
16527 if test "x$as_val" = x""yes; then :
16528 cat >>confdefs.h <<_ACEOF
16529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16530 _ACEOF
16533 done
16648 # Check strerror_r, cannot be above as versions with two and three arguments exist
16650 ac_save_CFLAGS="$CFLAGS"
16651 CFLAGS="-Wimplicit-function-declaration -Werror"
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #define _GNU_SOURCE 1
16655 #include <string.h>
16656 #include <locale.h>
16658 main ()
16660 char s[128]; strerror_r(5, s, 128);
16662 return 0;
16664 _ACEOF
16665 if ac_fn_c_try_compile "$LINENO"; then :
16667 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16671 CFLAGS="$ac_save_CFLAGS"
16673 ac_save_CFLAGS="$CFLAGS"
16674 CFLAGS="-Wimplicit-function-declaration -Werror"
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 #define _GNU_SOURCE 1
16678 #include <string.h>
16679 #include <locale.h>
16681 main ()
16683 char s[128]; strerror_r(5, s);
16685 return 0;
16687 _ACEOF
16688 if ac_fn_c_try_compile "$LINENO"; then :
16690 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694 CFLAGS="$ac_save_CFLAGS"
16697 # Check for C99 (and other IEEE) math functions
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16699 $as_echo_n "checking for sin in -lm... " >&6; }
16700 if test "${ac_cv_lib_m_sin+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-lm $LIBS"
16705 if test x$gcc_no_link = xyes; then
16706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16714 #ifdef __cplusplus
16715 extern "C"
16716 #endif
16717 char sin ();
16719 main ()
16721 return sin ();
16723 return 0;
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"; then :
16727 ac_cv_lib_m_sin=yes
16728 else
16729 ac_cv_lib_m_sin=no
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16736 $as_echo "$ac_cv_lib_m_sin" >&6; }
16737 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_LIBM 1
16740 _ACEOF
16742 LIBS="-lm $LIBS"
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16753 $as_echo_n "checking for acosf... " >&6; }
16754 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 if test x$gcc_no_link = xyes; then
16758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16763 #ifdef HAVE_COMPLEX_H
16764 #include <complex.h>
16765 #endif
16766 #ifdef HAVE_MATH_H
16767 #include <math.h>
16768 #endif
16770 int (*ptr)() = (int (*)())acosf;
16773 main ()
16775 return 0;
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"; then :
16780 gcc_cv_math_func_acosf=yes
16781 else
16782 gcc_cv_math_func_acosf=no
16784 rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16788 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16789 if test $gcc_cv_math_func_acosf = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_ACOSF 1
16793 _ACEOF
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16801 $as_echo_n "checking for acos... " >&6; }
16802 if test "${gcc_cv_math_func_acos+set}" = set; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805 if test x$gcc_no_link = xyes; then
16806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16811 #ifdef HAVE_COMPLEX_H
16812 #include <complex.h>
16813 #endif
16814 #ifdef HAVE_MATH_H
16815 #include <math.h>
16816 #endif
16818 int (*ptr)() = (int (*)())acos;
16821 main ()
16823 return 0;
16826 _ACEOF
16827 if ac_fn_c_try_link "$LINENO"; then :
16828 gcc_cv_math_func_acos=yes
16829 else
16830 gcc_cv_math_func_acos=no
16832 rm -f core conftest.err conftest.$ac_objext \
16833 conftest$ac_exeext conftest.$ac_ext
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16836 $as_echo "$gcc_cv_math_func_acos" >&6; }
16837 if test $gcc_cv_math_func_acos = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_ACOS 1
16841 _ACEOF
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16849 $as_echo_n "checking for acosl... " >&6; }
16850 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 if test x$gcc_no_link = xyes; then
16854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16859 #ifdef HAVE_COMPLEX_H
16860 #include <complex.h>
16861 #endif
16862 #ifdef HAVE_MATH_H
16863 #include <math.h>
16864 #endif
16866 int (*ptr)() = (int (*)())acosl;
16869 main ()
16871 return 0;
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 gcc_cv_math_func_acosl=yes
16877 else
16878 gcc_cv_math_func_acosl=no
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16884 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16885 if test $gcc_cv_math_func_acosl = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_ACOSL 1
16889 _ACEOF
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16897 $as_echo_n "checking for acoshf... " >&6; }
16898 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 if test x$gcc_no_link = xyes; then
16902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16907 #ifdef HAVE_COMPLEX_H
16908 #include <complex.h>
16909 #endif
16910 #ifdef HAVE_MATH_H
16911 #include <math.h>
16912 #endif
16914 int (*ptr)() = (int (*)())acoshf;
16917 main ()
16919 return 0;
16922 _ACEOF
16923 if ac_fn_c_try_link "$LINENO"; then :
16924 gcc_cv_math_func_acoshf=yes
16925 else
16926 gcc_cv_math_func_acoshf=no
16928 rm -f core conftest.err conftest.$ac_objext \
16929 conftest$ac_exeext conftest.$ac_ext
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16932 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16933 if test $gcc_cv_math_func_acoshf = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_ACOSHF 1
16937 _ACEOF
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16945 $as_echo_n "checking for acosh... " >&6; }
16946 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 if test x$gcc_no_link = xyes; then
16950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16955 #ifdef HAVE_COMPLEX_H
16956 #include <complex.h>
16957 #endif
16958 #ifdef HAVE_MATH_H
16959 #include <math.h>
16960 #endif
16962 int (*ptr)() = (int (*)())acosh;
16965 main ()
16967 return 0;
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 gcc_cv_math_func_acosh=yes
16973 else
16974 gcc_cv_math_func_acosh=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16980 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16981 if test $gcc_cv_math_func_acosh = yes; then
16983 cat >>confdefs.h <<_ACEOF
16984 #define HAVE_ACOSH 1
16985 _ACEOF
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16993 $as_echo_n "checking for acoshl... " >&6; }
16994 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16995 $as_echo_n "(cached) " >&6
16996 else
16997 if test x$gcc_no_link = xyes; then
16998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17003 #ifdef HAVE_COMPLEX_H
17004 #include <complex.h>
17005 #endif
17006 #ifdef HAVE_MATH_H
17007 #include <math.h>
17008 #endif
17010 int (*ptr)() = (int (*)())acoshl;
17013 main ()
17015 return 0;
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"; then :
17020 gcc_cv_math_func_acoshl=yes
17021 else
17022 gcc_cv_math_func_acoshl=no
17024 rm -f core conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17028 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17029 if test $gcc_cv_math_func_acoshl = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_ACOSHL 1
17033 _ACEOF
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17041 $as_echo_n "checking for asinf... " >&6; }
17042 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 if test x$gcc_no_link = xyes; then
17046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17051 #ifdef HAVE_COMPLEX_H
17052 #include <complex.h>
17053 #endif
17054 #ifdef HAVE_MATH_H
17055 #include <math.h>
17056 #endif
17058 int (*ptr)() = (int (*)())asinf;
17061 main ()
17063 return 0;
17066 _ACEOF
17067 if ac_fn_c_try_link "$LINENO"; then :
17068 gcc_cv_math_func_asinf=yes
17069 else
17070 gcc_cv_math_func_asinf=no
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17076 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17077 if test $gcc_cv_math_func_asinf = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define HAVE_ASINF 1
17081 _ACEOF
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17089 $as_echo_n "checking for asin... " >&6; }
17090 if test "${gcc_cv_math_func_asin+set}" = set; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 if test x$gcc_no_link = xyes; then
17094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17099 #ifdef HAVE_COMPLEX_H
17100 #include <complex.h>
17101 #endif
17102 #ifdef HAVE_MATH_H
17103 #include <math.h>
17104 #endif
17106 int (*ptr)() = (int (*)())asin;
17109 main ()
17111 return 0;
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"; then :
17116 gcc_cv_math_func_asin=yes
17117 else
17118 gcc_cv_math_func_asin=no
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17124 $as_echo "$gcc_cv_math_func_asin" >&6; }
17125 if test $gcc_cv_math_func_asin = yes; then
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_ASIN 1
17129 _ACEOF
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17137 $as_echo_n "checking for asinl... " >&6; }
17138 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 if test x$gcc_no_link = xyes; then
17142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17147 #ifdef HAVE_COMPLEX_H
17148 #include <complex.h>
17149 #endif
17150 #ifdef HAVE_MATH_H
17151 #include <math.h>
17152 #endif
17154 int (*ptr)() = (int (*)())asinl;
17157 main ()
17159 return 0;
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 gcc_cv_math_func_asinl=yes
17165 else
17166 gcc_cv_math_func_asinl=no
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17172 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17173 if test $gcc_cv_math_func_asinl = yes; then
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_ASINL 1
17177 _ACEOF
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17185 $as_echo_n "checking for asinhf... " >&6; }
17186 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17187 $as_echo_n "(cached) " >&6
17188 else
17189 if test x$gcc_no_link = xyes; then
17190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17195 #ifdef HAVE_COMPLEX_H
17196 #include <complex.h>
17197 #endif
17198 #ifdef HAVE_MATH_H
17199 #include <math.h>
17200 #endif
17202 int (*ptr)() = (int (*)())asinhf;
17205 main ()
17207 return 0;
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 gcc_cv_math_func_asinhf=yes
17213 else
17214 gcc_cv_math_func_asinhf=no
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17220 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17221 if test $gcc_cv_math_func_asinhf = yes; then
17223 cat >>confdefs.h <<_ACEOF
17224 #define HAVE_ASINHF 1
17225 _ACEOF
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17233 $as_echo_n "checking for asinh... " >&6; }
17234 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 if test x$gcc_no_link = xyes; then
17238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17243 #ifdef HAVE_COMPLEX_H
17244 #include <complex.h>
17245 #endif
17246 #ifdef HAVE_MATH_H
17247 #include <math.h>
17248 #endif
17250 int (*ptr)() = (int (*)())asinh;
17253 main ()
17255 return 0;
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 gcc_cv_math_func_asinh=yes
17261 else
17262 gcc_cv_math_func_asinh=no
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17268 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17269 if test $gcc_cv_math_func_asinh = yes; then
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_ASINH 1
17273 _ACEOF
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17281 $as_echo_n "checking for asinhl... " >&6; }
17282 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17283 $as_echo_n "(cached) " >&6
17284 else
17285 if test x$gcc_no_link = xyes; then
17286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17291 #ifdef HAVE_COMPLEX_H
17292 #include <complex.h>
17293 #endif
17294 #ifdef HAVE_MATH_H
17295 #include <math.h>
17296 #endif
17298 int (*ptr)() = (int (*)())asinhl;
17301 main ()
17303 return 0;
17306 _ACEOF
17307 if ac_fn_c_try_link "$LINENO"; then :
17308 gcc_cv_math_func_asinhl=yes
17309 else
17310 gcc_cv_math_func_asinhl=no
17312 rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17316 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17317 if test $gcc_cv_math_func_asinhl = yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define HAVE_ASINHL 1
17321 _ACEOF
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17329 $as_echo_n "checking for atan2f... " >&6; }
17330 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333 if test x$gcc_no_link = xyes; then
17334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17339 #ifdef HAVE_COMPLEX_H
17340 #include <complex.h>
17341 #endif
17342 #ifdef HAVE_MATH_H
17343 #include <math.h>
17344 #endif
17346 int (*ptr)() = (int (*)())atan2f;
17349 main ()
17351 return 0;
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"; then :
17356 gcc_cv_math_func_atan2f=yes
17357 else
17358 gcc_cv_math_func_atan2f=no
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17364 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17365 if test $gcc_cv_math_func_atan2f = yes; then
17367 cat >>confdefs.h <<_ACEOF
17368 #define HAVE_ATAN2F 1
17369 _ACEOF
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17377 $as_echo_n "checking for atan2... " >&6; }
17378 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 if test x$gcc_no_link = xyes; then
17382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17387 #ifdef HAVE_COMPLEX_H
17388 #include <complex.h>
17389 #endif
17390 #ifdef HAVE_MATH_H
17391 #include <math.h>
17392 #endif
17394 int (*ptr)() = (int (*)())atan2;
17397 main ()
17399 return 0;
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 gcc_cv_math_func_atan2=yes
17405 else
17406 gcc_cv_math_func_atan2=no
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17412 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17413 if test $gcc_cv_math_func_atan2 = yes; then
17415 cat >>confdefs.h <<_ACEOF
17416 #define HAVE_ATAN2 1
17417 _ACEOF
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17425 $as_echo_n "checking for atan2l... " >&6; }
17426 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17427 $as_echo_n "(cached) " >&6
17428 else
17429 if test x$gcc_no_link = xyes; then
17430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17435 #ifdef HAVE_COMPLEX_H
17436 #include <complex.h>
17437 #endif
17438 #ifdef HAVE_MATH_H
17439 #include <math.h>
17440 #endif
17442 int (*ptr)() = (int (*)())atan2l;
17445 main ()
17447 return 0;
17450 _ACEOF
17451 if ac_fn_c_try_link "$LINENO"; then :
17452 gcc_cv_math_func_atan2l=yes
17453 else
17454 gcc_cv_math_func_atan2l=no
17456 rm -f core conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17460 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17461 if test $gcc_cv_math_func_atan2l = yes; then
17463 cat >>confdefs.h <<_ACEOF
17464 #define HAVE_ATAN2L 1
17465 _ACEOF
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17473 $as_echo_n "checking for atanf... " >&6; }
17474 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 if test x$gcc_no_link = xyes; then
17478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17483 #ifdef HAVE_COMPLEX_H
17484 #include <complex.h>
17485 #endif
17486 #ifdef HAVE_MATH_H
17487 #include <math.h>
17488 #endif
17490 int (*ptr)() = (int (*)())atanf;
17493 main ()
17495 return 0;
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"; then :
17500 gcc_cv_math_func_atanf=yes
17501 else
17502 gcc_cv_math_func_atanf=no
17504 rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17508 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17509 if test $gcc_cv_math_func_atanf = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define HAVE_ATANF 1
17513 _ACEOF
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17521 $as_echo_n "checking for atan... " >&6; }
17522 if test "${gcc_cv_math_func_atan+set}" = set; then :
17523 $as_echo_n "(cached) " >&6
17524 else
17525 if test x$gcc_no_link = xyes; then
17526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17531 #ifdef HAVE_COMPLEX_H
17532 #include <complex.h>
17533 #endif
17534 #ifdef HAVE_MATH_H
17535 #include <math.h>
17536 #endif
17538 int (*ptr)() = (int (*)())atan;
17541 main ()
17543 return 0;
17546 _ACEOF
17547 if ac_fn_c_try_link "$LINENO"; then :
17548 gcc_cv_math_func_atan=yes
17549 else
17550 gcc_cv_math_func_atan=no
17552 rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17556 $as_echo "$gcc_cv_math_func_atan" >&6; }
17557 if test $gcc_cv_math_func_atan = yes; then
17559 cat >>confdefs.h <<_ACEOF
17560 #define HAVE_ATAN 1
17561 _ACEOF
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17569 $as_echo_n "checking for atanl... " >&6; }
17570 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17571 $as_echo_n "(cached) " >&6
17572 else
17573 if test x$gcc_no_link = xyes; then
17574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h. */
17579 #ifdef HAVE_COMPLEX_H
17580 #include <complex.h>
17581 #endif
17582 #ifdef HAVE_MATH_H
17583 #include <math.h>
17584 #endif
17586 int (*ptr)() = (int (*)())atanl;
17589 main ()
17591 return 0;
17594 _ACEOF
17595 if ac_fn_c_try_link "$LINENO"; then :
17596 gcc_cv_math_func_atanl=yes
17597 else
17598 gcc_cv_math_func_atanl=no
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17604 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17605 if test $gcc_cv_math_func_atanl = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_ATANL 1
17609 _ACEOF
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17617 $as_echo_n "checking for atanhf... " >&6; }
17618 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 if test x$gcc_no_link = xyes; then
17622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17627 #ifdef HAVE_COMPLEX_H
17628 #include <complex.h>
17629 #endif
17630 #ifdef HAVE_MATH_H
17631 #include <math.h>
17632 #endif
17634 int (*ptr)() = (int (*)())atanhf;
17637 main ()
17639 return 0;
17642 _ACEOF
17643 if ac_fn_c_try_link "$LINENO"; then :
17644 gcc_cv_math_func_atanhf=yes
17645 else
17646 gcc_cv_math_func_atanhf=no
17648 rm -f core conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17652 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17653 if test $gcc_cv_math_func_atanhf = yes; then
17655 cat >>confdefs.h <<_ACEOF
17656 #define HAVE_ATANHF 1
17657 _ACEOF
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17665 $as_echo_n "checking for atanh... " >&6; }
17666 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17668 else
17669 if test x$gcc_no_link = xyes; then
17670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17675 #ifdef HAVE_COMPLEX_H
17676 #include <complex.h>
17677 #endif
17678 #ifdef HAVE_MATH_H
17679 #include <math.h>
17680 #endif
17682 int (*ptr)() = (int (*)())atanh;
17685 main ()
17687 return 0;
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 gcc_cv_math_func_atanh=yes
17693 else
17694 gcc_cv_math_func_atanh=no
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17700 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17701 if test $gcc_cv_math_func_atanh = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define HAVE_ATANH 1
17705 _ACEOF
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17713 $as_echo_n "checking for atanhl... " >&6; }
17714 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 if test x$gcc_no_link = xyes; then
17718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17723 #ifdef HAVE_COMPLEX_H
17724 #include <complex.h>
17725 #endif
17726 #ifdef HAVE_MATH_H
17727 #include <math.h>
17728 #endif
17730 int (*ptr)() = (int (*)())atanhl;
17733 main ()
17735 return 0;
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 gcc_cv_math_func_atanhl=yes
17741 else
17742 gcc_cv_math_func_atanhl=no
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17748 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17749 if test $gcc_cv_math_func_atanhl = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define HAVE_ATANHL 1
17753 _ACEOF
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17761 $as_echo_n "checking for cargf... " >&6; }
17762 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17763 $as_echo_n "(cached) " >&6
17764 else
17765 if test x$gcc_no_link = xyes; then
17766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17771 #ifdef HAVE_COMPLEX_H
17772 #include <complex.h>
17773 #endif
17774 #ifdef HAVE_MATH_H
17775 #include <math.h>
17776 #endif
17778 int (*ptr)() = (int (*)())cargf;
17781 main ()
17783 return 0;
17786 _ACEOF
17787 if ac_fn_c_try_link "$LINENO"; then :
17788 gcc_cv_math_func_cargf=yes
17789 else
17790 gcc_cv_math_func_cargf=no
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17796 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17797 if test $gcc_cv_math_func_cargf = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define HAVE_CARGF 1
17801 _ACEOF
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17809 $as_echo_n "checking for carg... " >&6; }
17810 if test "${gcc_cv_math_func_carg+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 if test x$gcc_no_link = xyes; then
17814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17819 #ifdef HAVE_COMPLEX_H
17820 #include <complex.h>
17821 #endif
17822 #ifdef HAVE_MATH_H
17823 #include <math.h>
17824 #endif
17826 int (*ptr)() = (int (*)())carg;
17829 main ()
17831 return 0;
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 gcc_cv_math_func_carg=yes
17837 else
17838 gcc_cv_math_func_carg=no
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17844 $as_echo "$gcc_cv_math_func_carg" >&6; }
17845 if test $gcc_cv_math_func_carg = yes; then
17847 cat >>confdefs.h <<_ACEOF
17848 #define HAVE_CARG 1
17849 _ACEOF
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17857 $as_echo_n "checking for cargl... " >&6; }
17858 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17860 else
17861 if test x$gcc_no_link = xyes; then
17862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17867 #ifdef HAVE_COMPLEX_H
17868 #include <complex.h>
17869 #endif
17870 #ifdef HAVE_MATH_H
17871 #include <math.h>
17872 #endif
17874 int (*ptr)() = (int (*)())cargl;
17877 main ()
17879 return 0;
17882 _ACEOF
17883 if ac_fn_c_try_link "$LINENO"; then :
17884 gcc_cv_math_func_cargl=yes
17885 else
17886 gcc_cv_math_func_cargl=no
17888 rm -f core conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17892 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17893 if test $gcc_cv_math_func_cargl = yes; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define HAVE_CARGL 1
17897 _ACEOF
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17905 $as_echo_n "checking for ceilf... " >&6; }
17906 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17907 $as_echo_n "(cached) " >&6
17908 else
17909 if test x$gcc_no_link = xyes; then
17910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17915 #ifdef HAVE_COMPLEX_H
17916 #include <complex.h>
17917 #endif
17918 #ifdef HAVE_MATH_H
17919 #include <math.h>
17920 #endif
17922 int (*ptr)() = (int (*)())ceilf;
17925 main ()
17927 return 0;
17930 _ACEOF
17931 if ac_fn_c_try_link "$LINENO"; then :
17932 gcc_cv_math_func_ceilf=yes
17933 else
17934 gcc_cv_math_func_ceilf=no
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17940 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17941 if test $gcc_cv_math_func_ceilf = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_CEILF 1
17945 _ACEOF
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17953 $as_echo_n "checking for ceil... " >&6; }
17954 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 if test x$gcc_no_link = xyes; then
17958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17963 #ifdef HAVE_COMPLEX_H
17964 #include <complex.h>
17965 #endif
17966 #ifdef HAVE_MATH_H
17967 #include <math.h>
17968 #endif
17970 int (*ptr)() = (int (*)())ceil;
17973 main ()
17975 return 0;
17978 _ACEOF
17979 if ac_fn_c_try_link "$LINENO"; then :
17980 gcc_cv_math_func_ceil=yes
17981 else
17982 gcc_cv_math_func_ceil=no
17984 rm -f core conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17988 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17989 if test $gcc_cv_math_func_ceil = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define HAVE_CEIL 1
17993 _ACEOF
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18001 $as_echo_n "checking for ceill... " >&6; }
18002 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18003 $as_echo_n "(cached) " >&6
18004 else
18005 if test x$gcc_no_link = xyes; then
18006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18011 #ifdef HAVE_COMPLEX_H
18012 #include <complex.h>
18013 #endif
18014 #ifdef HAVE_MATH_H
18015 #include <math.h>
18016 #endif
18018 int (*ptr)() = (int (*)())ceill;
18021 main ()
18023 return 0;
18026 _ACEOF
18027 if ac_fn_c_try_link "$LINENO"; then :
18028 gcc_cv_math_func_ceill=yes
18029 else
18030 gcc_cv_math_func_ceill=no
18032 rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18036 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18037 if test $gcc_cv_math_func_ceill = yes; then
18039 cat >>confdefs.h <<_ACEOF
18040 #define HAVE_CEILL 1
18041 _ACEOF
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18049 $as_echo_n "checking for copysignf... " >&6; }
18050 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053 if test x$gcc_no_link = xyes; then
18054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18059 #ifdef HAVE_COMPLEX_H
18060 #include <complex.h>
18061 #endif
18062 #ifdef HAVE_MATH_H
18063 #include <math.h>
18064 #endif
18066 int (*ptr)() = (int (*)())copysignf;
18069 main ()
18071 return 0;
18074 _ACEOF
18075 if ac_fn_c_try_link "$LINENO"; then :
18076 gcc_cv_math_func_copysignf=yes
18077 else
18078 gcc_cv_math_func_copysignf=no
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18084 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18085 if test $gcc_cv_math_func_copysignf = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_COPYSIGNF 1
18089 _ACEOF
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18097 $as_echo_n "checking for copysign... " >&6; }
18098 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18099 $as_echo_n "(cached) " >&6
18100 else
18101 if test x$gcc_no_link = xyes; then
18102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 #ifdef HAVE_COMPLEX_H
18108 #include <complex.h>
18109 #endif
18110 #ifdef HAVE_MATH_H
18111 #include <math.h>
18112 #endif
18114 int (*ptr)() = (int (*)())copysign;
18117 main ()
18119 return 0;
18122 _ACEOF
18123 if ac_fn_c_try_link "$LINENO"; then :
18124 gcc_cv_math_func_copysign=yes
18125 else
18126 gcc_cv_math_func_copysign=no
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18132 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18133 if test $gcc_cv_math_func_copysign = yes; then
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_COPYSIGN 1
18137 _ACEOF
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18145 $as_echo_n "checking for copysignl... " >&6; }
18146 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18147 $as_echo_n "(cached) " >&6
18148 else
18149 if test x$gcc_no_link = xyes; then
18150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18155 #ifdef HAVE_COMPLEX_H
18156 #include <complex.h>
18157 #endif
18158 #ifdef HAVE_MATH_H
18159 #include <math.h>
18160 #endif
18162 int (*ptr)() = (int (*)())copysignl;
18165 main ()
18167 return 0;
18170 _ACEOF
18171 if ac_fn_c_try_link "$LINENO"; then :
18172 gcc_cv_math_func_copysignl=yes
18173 else
18174 gcc_cv_math_func_copysignl=no
18176 rm -f core conftest.err conftest.$ac_objext \
18177 conftest$ac_exeext conftest.$ac_ext
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18180 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18181 if test $gcc_cv_math_func_copysignl = yes; then
18183 cat >>confdefs.h <<_ACEOF
18184 #define HAVE_COPYSIGNL 1
18185 _ACEOF
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18193 $as_echo_n "checking for cosf... " >&6; }
18194 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18195 $as_echo_n "(cached) " >&6
18196 else
18197 if test x$gcc_no_link = xyes; then
18198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18203 #ifdef HAVE_COMPLEX_H
18204 #include <complex.h>
18205 #endif
18206 #ifdef HAVE_MATH_H
18207 #include <math.h>
18208 #endif
18210 int (*ptr)() = (int (*)())cosf;
18213 main ()
18215 return 0;
18218 _ACEOF
18219 if ac_fn_c_try_link "$LINENO"; then :
18220 gcc_cv_math_func_cosf=yes
18221 else
18222 gcc_cv_math_func_cosf=no
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18228 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18229 if test $gcc_cv_math_func_cosf = yes; then
18231 cat >>confdefs.h <<_ACEOF
18232 #define HAVE_COSF 1
18233 _ACEOF
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18241 $as_echo_n "checking for cos... " >&6; }
18242 if test "${gcc_cv_math_func_cos+set}" = set; then :
18243 $as_echo_n "(cached) " >&6
18244 else
18245 if test x$gcc_no_link = xyes; then
18246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 #ifdef HAVE_COMPLEX_H
18252 #include <complex.h>
18253 #endif
18254 #ifdef HAVE_MATH_H
18255 #include <math.h>
18256 #endif
18258 int (*ptr)() = (int (*)())cos;
18261 main ()
18263 return 0;
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"; then :
18268 gcc_cv_math_func_cos=yes
18269 else
18270 gcc_cv_math_func_cos=no
18272 rm -f core conftest.err conftest.$ac_objext \
18273 conftest$ac_exeext conftest.$ac_ext
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18276 $as_echo "$gcc_cv_math_func_cos" >&6; }
18277 if test $gcc_cv_math_func_cos = yes; then
18279 cat >>confdefs.h <<_ACEOF
18280 #define HAVE_COS 1
18281 _ACEOF
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18289 $as_echo_n "checking for cosl... " >&6; }
18290 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18291 $as_echo_n "(cached) " >&6
18292 else
18293 if test x$gcc_no_link = xyes; then
18294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18299 #ifdef HAVE_COMPLEX_H
18300 #include <complex.h>
18301 #endif
18302 #ifdef HAVE_MATH_H
18303 #include <math.h>
18304 #endif
18306 int (*ptr)() = (int (*)())cosl;
18309 main ()
18311 return 0;
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"; then :
18316 gcc_cv_math_func_cosl=yes
18317 else
18318 gcc_cv_math_func_cosl=no
18320 rm -f core conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18324 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18325 if test $gcc_cv_math_func_cosl = yes; then
18327 cat >>confdefs.h <<_ACEOF
18328 #define HAVE_COSL 1
18329 _ACEOF
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18337 $as_echo_n "checking for ccosf... " >&6; }
18338 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 if test x$gcc_no_link = xyes; then
18342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 #ifdef HAVE_COMPLEX_H
18348 #include <complex.h>
18349 #endif
18350 #ifdef HAVE_MATH_H
18351 #include <math.h>
18352 #endif
18354 int (*ptr)() = (int (*)())ccosf;
18357 main ()
18359 return 0;
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364 gcc_cv_math_func_ccosf=yes
18365 else
18366 gcc_cv_math_func_ccosf=no
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18372 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18373 if test $gcc_cv_math_func_ccosf = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376 #define HAVE_CCOSF 1
18377 _ACEOF
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18385 $as_echo_n "checking for ccos... " >&6; }
18386 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 if test x$gcc_no_link = xyes; then
18390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18395 #ifdef HAVE_COMPLEX_H
18396 #include <complex.h>
18397 #endif
18398 #ifdef HAVE_MATH_H
18399 #include <math.h>
18400 #endif
18402 int (*ptr)() = (int (*)())ccos;
18405 main ()
18407 return 0;
18410 _ACEOF
18411 if ac_fn_c_try_link "$LINENO"; then :
18412 gcc_cv_math_func_ccos=yes
18413 else
18414 gcc_cv_math_func_ccos=no
18416 rm -f core conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18420 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18421 if test $gcc_cv_math_func_ccos = yes; then
18423 cat >>confdefs.h <<_ACEOF
18424 #define HAVE_CCOS 1
18425 _ACEOF
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18433 $as_echo_n "checking for ccosl... " >&6; }
18434 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 if test x$gcc_no_link = xyes; then
18438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18443 #ifdef HAVE_COMPLEX_H
18444 #include <complex.h>
18445 #endif
18446 #ifdef HAVE_MATH_H
18447 #include <math.h>
18448 #endif
18450 int (*ptr)() = (int (*)())ccosl;
18453 main ()
18455 return 0;
18458 _ACEOF
18459 if ac_fn_c_try_link "$LINENO"; then :
18460 gcc_cv_math_func_ccosl=yes
18461 else
18462 gcc_cv_math_func_ccosl=no
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18468 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18469 if test $gcc_cv_math_func_ccosl = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_CCOSL 1
18473 _ACEOF
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18481 $as_echo_n "checking for coshf... " >&6; }
18482 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485 if test x$gcc_no_link = xyes; then
18486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 #ifdef HAVE_COMPLEX_H
18492 #include <complex.h>
18493 #endif
18494 #ifdef HAVE_MATH_H
18495 #include <math.h>
18496 #endif
18498 int (*ptr)() = (int (*)())coshf;
18501 main ()
18503 return 0;
18506 _ACEOF
18507 if ac_fn_c_try_link "$LINENO"; then :
18508 gcc_cv_math_func_coshf=yes
18509 else
18510 gcc_cv_math_func_coshf=no
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18516 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18517 if test $gcc_cv_math_func_coshf = yes; then
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_COSHF 1
18521 _ACEOF
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18529 $as_echo_n "checking for cosh... " >&6; }
18530 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 if test x$gcc_no_link = xyes; then
18534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18539 #ifdef HAVE_COMPLEX_H
18540 #include <complex.h>
18541 #endif
18542 #ifdef HAVE_MATH_H
18543 #include <math.h>
18544 #endif
18546 int (*ptr)() = (int (*)())cosh;
18549 main ()
18551 return 0;
18554 _ACEOF
18555 if ac_fn_c_try_link "$LINENO"; then :
18556 gcc_cv_math_func_cosh=yes
18557 else
18558 gcc_cv_math_func_cosh=no
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18564 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18565 if test $gcc_cv_math_func_cosh = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define HAVE_COSH 1
18569 _ACEOF
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18577 $as_echo_n "checking for coshl... " >&6; }
18578 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 if test x$gcc_no_link = xyes; then
18582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18587 #ifdef HAVE_COMPLEX_H
18588 #include <complex.h>
18589 #endif
18590 #ifdef HAVE_MATH_H
18591 #include <math.h>
18592 #endif
18594 int (*ptr)() = (int (*)())coshl;
18597 main ()
18599 return 0;
18602 _ACEOF
18603 if ac_fn_c_try_link "$LINENO"; then :
18604 gcc_cv_math_func_coshl=yes
18605 else
18606 gcc_cv_math_func_coshl=no
18608 rm -f core conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext conftest.$ac_ext
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18612 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18613 if test $gcc_cv_math_func_coshl = yes; then
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_COSHL 1
18617 _ACEOF
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18625 $as_echo_n "checking for ccoshf... " >&6; }
18626 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18628 else
18629 if test x$gcc_no_link = xyes; then
18630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18635 #ifdef HAVE_COMPLEX_H
18636 #include <complex.h>
18637 #endif
18638 #ifdef HAVE_MATH_H
18639 #include <math.h>
18640 #endif
18642 int (*ptr)() = (int (*)())ccoshf;
18645 main ()
18647 return 0;
18650 _ACEOF
18651 if ac_fn_c_try_link "$LINENO"; then :
18652 gcc_cv_math_func_ccoshf=yes
18653 else
18654 gcc_cv_math_func_ccoshf=no
18656 rm -f core conftest.err conftest.$ac_objext \
18657 conftest$ac_exeext conftest.$ac_ext
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18660 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18661 if test $gcc_cv_math_func_ccoshf = yes; then
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_CCOSHF 1
18665 _ACEOF
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18673 $as_echo_n "checking for ccosh... " >&6; }
18674 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 if test x$gcc_no_link = xyes; then
18678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18683 #ifdef HAVE_COMPLEX_H
18684 #include <complex.h>
18685 #endif
18686 #ifdef HAVE_MATH_H
18687 #include <math.h>
18688 #endif
18690 int (*ptr)() = (int (*)())ccosh;
18693 main ()
18695 return 0;
18698 _ACEOF
18699 if ac_fn_c_try_link "$LINENO"; then :
18700 gcc_cv_math_func_ccosh=yes
18701 else
18702 gcc_cv_math_func_ccosh=no
18704 rm -f core conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18708 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18709 if test $gcc_cv_math_func_ccosh = yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_CCOSH 1
18713 _ACEOF
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18721 $as_echo_n "checking for ccoshl... " >&6; }
18722 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 if test x$gcc_no_link = xyes; then
18726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18731 #ifdef HAVE_COMPLEX_H
18732 #include <complex.h>
18733 #endif
18734 #ifdef HAVE_MATH_H
18735 #include <math.h>
18736 #endif
18738 int (*ptr)() = (int (*)())ccoshl;
18741 main ()
18743 return 0;
18746 _ACEOF
18747 if ac_fn_c_try_link "$LINENO"; then :
18748 gcc_cv_math_func_ccoshl=yes
18749 else
18750 gcc_cv_math_func_ccoshl=no
18752 rm -f core conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18756 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18757 if test $gcc_cv_math_func_ccoshl = yes; then
18759 cat >>confdefs.h <<_ACEOF
18760 #define HAVE_CCOSHL 1
18761 _ACEOF
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18769 $as_echo_n "checking for expf... " >&6; }
18770 if test "${gcc_cv_math_func_expf+set}" = set; then :
18771 $as_echo_n "(cached) " >&6
18772 else
18773 if test x$gcc_no_link = xyes; then
18774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18779 #ifdef HAVE_COMPLEX_H
18780 #include <complex.h>
18781 #endif
18782 #ifdef HAVE_MATH_H
18783 #include <math.h>
18784 #endif
18786 int (*ptr)() = (int (*)())expf;
18789 main ()
18791 return 0;
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 gcc_cv_math_func_expf=yes
18797 else
18798 gcc_cv_math_func_expf=no
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18804 $as_echo "$gcc_cv_math_func_expf" >&6; }
18805 if test $gcc_cv_math_func_expf = yes; then
18807 cat >>confdefs.h <<_ACEOF
18808 #define HAVE_EXPF 1
18809 _ACEOF
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18817 $as_echo_n "checking for exp... " >&6; }
18818 if test "${gcc_cv_math_func_exp+set}" = set; then :
18819 $as_echo_n "(cached) " >&6
18820 else
18821 if test x$gcc_no_link = xyes; then
18822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18827 #ifdef HAVE_COMPLEX_H
18828 #include <complex.h>
18829 #endif
18830 #ifdef HAVE_MATH_H
18831 #include <math.h>
18832 #endif
18834 int (*ptr)() = (int (*)())exp;
18837 main ()
18839 return 0;
18842 _ACEOF
18843 if ac_fn_c_try_link "$LINENO"; then :
18844 gcc_cv_math_func_exp=yes
18845 else
18846 gcc_cv_math_func_exp=no
18848 rm -f core conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18852 $as_echo "$gcc_cv_math_func_exp" >&6; }
18853 if test $gcc_cv_math_func_exp = yes; then
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_EXP 1
18857 _ACEOF
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18865 $as_echo_n "checking for expl... " >&6; }
18866 if test "${gcc_cv_math_func_expl+set}" = set; then :
18867 $as_echo_n "(cached) " >&6
18868 else
18869 if test x$gcc_no_link = xyes; then
18870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18875 #ifdef HAVE_COMPLEX_H
18876 #include <complex.h>
18877 #endif
18878 #ifdef HAVE_MATH_H
18879 #include <math.h>
18880 #endif
18882 int (*ptr)() = (int (*)())expl;
18885 main ()
18887 return 0;
18890 _ACEOF
18891 if ac_fn_c_try_link "$LINENO"; then :
18892 gcc_cv_math_func_expl=yes
18893 else
18894 gcc_cv_math_func_expl=no
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18900 $as_echo "$gcc_cv_math_func_expl" >&6; }
18901 if test $gcc_cv_math_func_expl = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_EXPL 1
18905 _ACEOF
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18913 $as_echo_n "checking for cexpf... " >&6; }
18914 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18915 $as_echo_n "(cached) " >&6
18916 else
18917 if test x$gcc_no_link = xyes; then
18918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18923 #ifdef HAVE_COMPLEX_H
18924 #include <complex.h>
18925 #endif
18926 #ifdef HAVE_MATH_H
18927 #include <math.h>
18928 #endif
18930 int (*ptr)() = (int (*)())cexpf;
18933 main ()
18935 return 0;
18938 _ACEOF
18939 if ac_fn_c_try_link "$LINENO"; then :
18940 gcc_cv_math_func_cexpf=yes
18941 else
18942 gcc_cv_math_func_cexpf=no
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18948 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18949 if test $gcc_cv_math_func_cexpf = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952 #define HAVE_CEXPF 1
18953 _ACEOF
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18961 $as_echo_n "checking for cexp... " >&6; }
18962 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18963 $as_echo_n "(cached) " >&6
18964 else
18965 if test x$gcc_no_link = xyes; then
18966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18971 #ifdef HAVE_COMPLEX_H
18972 #include <complex.h>
18973 #endif
18974 #ifdef HAVE_MATH_H
18975 #include <math.h>
18976 #endif
18978 int (*ptr)() = (int (*)())cexp;
18981 main ()
18983 return 0;
18986 _ACEOF
18987 if ac_fn_c_try_link "$LINENO"; then :
18988 gcc_cv_math_func_cexp=yes
18989 else
18990 gcc_cv_math_func_cexp=no
18992 rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18996 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18997 if test $gcc_cv_math_func_cexp = yes; then
18999 cat >>confdefs.h <<_ACEOF
19000 #define HAVE_CEXP 1
19001 _ACEOF
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19009 $as_echo_n "checking for cexpl... " >&6; }
19010 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19011 $as_echo_n "(cached) " >&6
19012 else
19013 if test x$gcc_no_link = xyes; then
19014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19019 #ifdef HAVE_COMPLEX_H
19020 #include <complex.h>
19021 #endif
19022 #ifdef HAVE_MATH_H
19023 #include <math.h>
19024 #endif
19026 int (*ptr)() = (int (*)())cexpl;
19029 main ()
19031 return 0;
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 gcc_cv_math_func_cexpl=yes
19037 else
19038 gcc_cv_math_func_cexpl=no
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19044 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19045 if test $gcc_cv_math_func_cexpl = yes; then
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_CEXPL 1
19049 _ACEOF
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19057 $as_echo_n "checking for fabsf... " >&6; }
19058 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19060 else
19061 if test x$gcc_no_link = xyes; then
19062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19067 #ifdef HAVE_COMPLEX_H
19068 #include <complex.h>
19069 #endif
19070 #ifdef HAVE_MATH_H
19071 #include <math.h>
19072 #endif
19074 int (*ptr)() = (int (*)())fabsf;
19077 main ()
19079 return 0;
19082 _ACEOF
19083 if ac_fn_c_try_link "$LINENO"; then :
19084 gcc_cv_math_func_fabsf=yes
19085 else
19086 gcc_cv_math_func_fabsf=no
19088 rm -f core conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19092 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19093 if test $gcc_cv_math_func_fabsf = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define HAVE_FABSF 1
19097 _ACEOF
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19105 $as_echo_n "checking for fabs... " >&6; }
19106 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19107 $as_echo_n "(cached) " >&6
19108 else
19109 if test x$gcc_no_link = xyes; then
19110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 #ifdef HAVE_COMPLEX_H
19116 #include <complex.h>
19117 #endif
19118 #ifdef HAVE_MATH_H
19119 #include <math.h>
19120 #endif
19122 int (*ptr)() = (int (*)())fabs;
19125 main ()
19127 return 0;
19130 _ACEOF
19131 if ac_fn_c_try_link "$LINENO"; then :
19132 gcc_cv_math_func_fabs=yes
19133 else
19134 gcc_cv_math_func_fabs=no
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19140 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19141 if test $gcc_cv_math_func_fabs = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define HAVE_FABS 1
19145 _ACEOF
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19153 $as_echo_n "checking for fabsl... " >&6; }
19154 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19155 $as_echo_n "(cached) " >&6
19156 else
19157 if test x$gcc_no_link = xyes; then
19158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19163 #ifdef HAVE_COMPLEX_H
19164 #include <complex.h>
19165 #endif
19166 #ifdef HAVE_MATH_H
19167 #include <math.h>
19168 #endif
19170 int (*ptr)() = (int (*)())fabsl;
19173 main ()
19175 return 0;
19178 _ACEOF
19179 if ac_fn_c_try_link "$LINENO"; then :
19180 gcc_cv_math_func_fabsl=yes
19181 else
19182 gcc_cv_math_func_fabsl=no
19184 rm -f core conftest.err conftest.$ac_objext \
19185 conftest$ac_exeext conftest.$ac_ext
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19188 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19189 if test $gcc_cv_math_func_fabsl = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define HAVE_FABSL 1
19193 _ACEOF
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19201 $as_echo_n "checking for cabsf... " >&6; }
19202 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 if test x$gcc_no_link = xyes; then
19206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19211 #ifdef HAVE_COMPLEX_H
19212 #include <complex.h>
19213 #endif
19214 #ifdef HAVE_MATH_H
19215 #include <math.h>
19216 #endif
19218 int (*ptr)() = (int (*)())cabsf;
19221 main ()
19223 return 0;
19226 _ACEOF
19227 if ac_fn_c_try_link "$LINENO"; then :
19228 gcc_cv_math_func_cabsf=yes
19229 else
19230 gcc_cv_math_func_cabsf=no
19232 rm -f core conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19236 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19237 if test $gcc_cv_math_func_cabsf = yes; then
19239 cat >>confdefs.h <<_ACEOF
19240 #define HAVE_CABSF 1
19241 _ACEOF
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19249 $as_echo_n "checking for cabs... " >&6; }
19250 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19251 $as_echo_n "(cached) " >&6
19252 else
19253 if test x$gcc_no_link = xyes; then
19254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19259 #ifdef HAVE_COMPLEX_H
19260 #include <complex.h>
19261 #endif
19262 #ifdef HAVE_MATH_H
19263 #include <math.h>
19264 #endif
19266 int (*ptr)() = (int (*)())cabs;
19269 main ()
19271 return 0;
19274 _ACEOF
19275 if ac_fn_c_try_link "$LINENO"; then :
19276 gcc_cv_math_func_cabs=yes
19277 else
19278 gcc_cv_math_func_cabs=no
19280 rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19284 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19285 if test $gcc_cv_math_func_cabs = yes; then
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_CABS 1
19289 _ACEOF
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19297 $as_echo_n "checking for cabsl... " >&6; }
19298 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19299 $as_echo_n "(cached) " >&6
19300 else
19301 if test x$gcc_no_link = xyes; then
19302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19307 #ifdef HAVE_COMPLEX_H
19308 #include <complex.h>
19309 #endif
19310 #ifdef HAVE_MATH_H
19311 #include <math.h>
19312 #endif
19314 int (*ptr)() = (int (*)())cabsl;
19317 main ()
19319 return 0;
19322 _ACEOF
19323 if ac_fn_c_try_link "$LINENO"; then :
19324 gcc_cv_math_func_cabsl=yes
19325 else
19326 gcc_cv_math_func_cabsl=no
19328 rm -f core conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19332 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19333 if test $gcc_cv_math_func_cabsl = yes; then
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_CABSL 1
19337 _ACEOF
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19345 $as_echo_n "checking for floorf... " >&6; }
19346 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19347 $as_echo_n "(cached) " >&6
19348 else
19349 if test x$gcc_no_link = xyes; then
19350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19355 #ifdef HAVE_COMPLEX_H
19356 #include <complex.h>
19357 #endif
19358 #ifdef HAVE_MATH_H
19359 #include <math.h>
19360 #endif
19362 int (*ptr)() = (int (*)())floorf;
19365 main ()
19367 return 0;
19370 _ACEOF
19371 if ac_fn_c_try_link "$LINENO"; then :
19372 gcc_cv_math_func_floorf=yes
19373 else
19374 gcc_cv_math_func_floorf=no
19376 rm -f core conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19380 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19381 if test $gcc_cv_math_func_floorf = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define HAVE_FLOORF 1
19385 _ACEOF
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19393 $as_echo_n "checking for floor... " >&6; }
19394 if test "${gcc_cv_math_func_floor+set}" = set; then :
19395 $as_echo_n "(cached) " >&6
19396 else
19397 if test x$gcc_no_link = xyes; then
19398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19403 #ifdef HAVE_COMPLEX_H
19404 #include <complex.h>
19405 #endif
19406 #ifdef HAVE_MATH_H
19407 #include <math.h>
19408 #endif
19410 int (*ptr)() = (int (*)())floor;
19413 main ()
19415 return 0;
19418 _ACEOF
19419 if ac_fn_c_try_link "$LINENO"; then :
19420 gcc_cv_math_func_floor=yes
19421 else
19422 gcc_cv_math_func_floor=no
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19428 $as_echo "$gcc_cv_math_func_floor" >&6; }
19429 if test $gcc_cv_math_func_floor = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_FLOOR 1
19433 _ACEOF
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19441 $as_echo_n "checking for floorl... " >&6; }
19442 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19443 $as_echo_n "(cached) " >&6
19444 else
19445 if test x$gcc_no_link = xyes; then
19446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19451 #ifdef HAVE_COMPLEX_H
19452 #include <complex.h>
19453 #endif
19454 #ifdef HAVE_MATH_H
19455 #include <math.h>
19456 #endif
19458 int (*ptr)() = (int (*)())floorl;
19461 main ()
19463 return 0;
19466 _ACEOF
19467 if ac_fn_c_try_link "$LINENO"; then :
19468 gcc_cv_math_func_floorl=yes
19469 else
19470 gcc_cv_math_func_floorl=no
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19476 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19477 if test $gcc_cv_math_func_floorl = yes; then
19479 cat >>confdefs.h <<_ACEOF
19480 #define HAVE_FLOORL 1
19481 _ACEOF
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19489 $as_echo_n "checking for fmodf... " >&6; }
19490 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19491 $as_echo_n "(cached) " >&6
19492 else
19493 if test x$gcc_no_link = xyes; then
19494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19499 #ifdef HAVE_COMPLEX_H
19500 #include <complex.h>
19501 #endif
19502 #ifdef HAVE_MATH_H
19503 #include <math.h>
19504 #endif
19506 int (*ptr)() = (int (*)())fmodf;
19509 main ()
19511 return 0;
19514 _ACEOF
19515 if ac_fn_c_try_link "$LINENO"; then :
19516 gcc_cv_math_func_fmodf=yes
19517 else
19518 gcc_cv_math_func_fmodf=no
19520 rm -f core conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19524 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19525 if test $gcc_cv_math_func_fmodf = yes; then
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_FMODF 1
19529 _ACEOF
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19537 $as_echo_n "checking for fmod... " >&6; }
19538 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 if test x$gcc_no_link = xyes; then
19542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19547 #ifdef HAVE_COMPLEX_H
19548 #include <complex.h>
19549 #endif
19550 #ifdef HAVE_MATH_H
19551 #include <math.h>
19552 #endif
19554 int (*ptr)() = (int (*)())fmod;
19557 main ()
19559 return 0;
19562 _ACEOF
19563 if ac_fn_c_try_link "$LINENO"; then :
19564 gcc_cv_math_func_fmod=yes
19565 else
19566 gcc_cv_math_func_fmod=no
19568 rm -f core conftest.err conftest.$ac_objext \
19569 conftest$ac_exeext conftest.$ac_ext
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19572 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19573 if test $gcc_cv_math_func_fmod = yes; then
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_FMOD 1
19577 _ACEOF
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19585 $as_echo_n "checking for fmodl... " >&6; }
19586 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 if test x$gcc_no_link = xyes; then
19590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19595 #ifdef HAVE_COMPLEX_H
19596 #include <complex.h>
19597 #endif
19598 #ifdef HAVE_MATH_H
19599 #include <math.h>
19600 #endif
19602 int (*ptr)() = (int (*)())fmodl;
19605 main ()
19607 return 0;
19610 _ACEOF
19611 if ac_fn_c_try_link "$LINENO"; then :
19612 gcc_cv_math_func_fmodl=yes
19613 else
19614 gcc_cv_math_func_fmodl=no
19616 rm -f core conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19620 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19621 if test $gcc_cv_math_func_fmodl = yes; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_FMODL 1
19625 _ACEOF
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19633 $as_echo_n "checking for frexpf... " >&6; }
19634 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19635 $as_echo_n "(cached) " >&6
19636 else
19637 if test x$gcc_no_link = xyes; then
19638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19643 #ifdef HAVE_COMPLEX_H
19644 #include <complex.h>
19645 #endif
19646 #ifdef HAVE_MATH_H
19647 #include <math.h>
19648 #endif
19650 int (*ptr)() = (int (*)())frexpf;
19653 main ()
19655 return 0;
19658 _ACEOF
19659 if ac_fn_c_try_link "$LINENO"; then :
19660 gcc_cv_math_func_frexpf=yes
19661 else
19662 gcc_cv_math_func_frexpf=no
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19668 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19669 if test $gcc_cv_math_func_frexpf = yes; then
19671 cat >>confdefs.h <<_ACEOF
19672 #define HAVE_FREXPF 1
19673 _ACEOF
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19681 $as_echo_n "checking for frexp... " >&6; }
19682 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19683 $as_echo_n "(cached) " >&6
19684 else
19685 if test x$gcc_no_link = xyes; then
19686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19691 #ifdef HAVE_COMPLEX_H
19692 #include <complex.h>
19693 #endif
19694 #ifdef HAVE_MATH_H
19695 #include <math.h>
19696 #endif
19698 int (*ptr)() = (int (*)())frexp;
19701 main ()
19703 return 0;
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 gcc_cv_math_func_frexp=yes
19709 else
19710 gcc_cv_math_func_frexp=no
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19716 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19717 if test $gcc_cv_math_func_frexp = yes; then
19719 cat >>confdefs.h <<_ACEOF
19720 #define HAVE_FREXP 1
19721 _ACEOF
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19729 $as_echo_n "checking for frexpl... " >&6; }
19730 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19731 $as_echo_n "(cached) " >&6
19732 else
19733 if test x$gcc_no_link = xyes; then
19734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19737 /* end confdefs.h. */
19739 #ifdef HAVE_COMPLEX_H
19740 #include <complex.h>
19741 #endif
19742 #ifdef HAVE_MATH_H
19743 #include <math.h>
19744 #endif
19746 int (*ptr)() = (int (*)())frexpl;
19749 main ()
19751 return 0;
19754 _ACEOF
19755 if ac_fn_c_try_link "$LINENO"; then :
19756 gcc_cv_math_func_frexpl=yes
19757 else
19758 gcc_cv_math_func_frexpl=no
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19764 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19765 if test $gcc_cv_math_func_frexpl = yes; then
19767 cat >>confdefs.h <<_ACEOF
19768 #define HAVE_FREXPL 1
19769 _ACEOF
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19777 $as_echo_n "checking for hypotf... " >&6; }
19778 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19779 $as_echo_n "(cached) " >&6
19780 else
19781 if test x$gcc_no_link = xyes; then
19782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19787 #ifdef HAVE_COMPLEX_H
19788 #include <complex.h>
19789 #endif
19790 #ifdef HAVE_MATH_H
19791 #include <math.h>
19792 #endif
19794 int (*ptr)() = (int (*)())hypotf;
19797 main ()
19799 return 0;
19802 _ACEOF
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 gcc_cv_math_func_hypotf=yes
19805 else
19806 gcc_cv_math_func_hypotf=no
19808 rm -f core conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19812 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19813 if test $gcc_cv_math_func_hypotf = yes; then
19815 cat >>confdefs.h <<_ACEOF
19816 #define HAVE_HYPOTF 1
19817 _ACEOF
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19825 $as_echo_n "checking for hypot... " >&6; }
19826 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 if test x$gcc_no_link = xyes; then
19830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 #ifdef HAVE_COMPLEX_H
19836 #include <complex.h>
19837 #endif
19838 #ifdef HAVE_MATH_H
19839 #include <math.h>
19840 #endif
19842 int (*ptr)() = (int (*)())hypot;
19845 main ()
19847 return 0;
19850 _ACEOF
19851 if ac_fn_c_try_link "$LINENO"; then :
19852 gcc_cv_math_func_hypot=yes
19853 else
19854 gcc_cv_math_func_hypot=no
19856 rm -f core conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19860 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19861 if test $gcc_cv_math_func_hypot = yes; then
19863 cat >>confdefs.h <<_ACEOF
19864 #define HAVE_HYPOT 1
19865 _ACEOF
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19873 $as_echo_n "checking for hypotl... " >&6; }
19874 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 if test x$gcc_no_link = xyes; then
19878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19883 #ifdef HAVE_COMPLEX_H
19884 #include <complex.h>
19885 #endif
19886 #ifdef HAVE_MATH_H
19887 #include <math.h>
19888 #endif
19890 int (*ptr)() = (int (*)())hypotl;
19893 main ()
19895 return 0;
19898 _ACEOF
19899 if ac_fn_c_try_link "$LINENO"; then :
19900 gcc_cv_math_func_hypotl=yes
19901 else
19902 gcc_cv_math_func_hypotl=no
19904 rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19908 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19909 if test $gcc_cv_math_func_hypotl = yes; then
19911 cat >>confdefs.h <<_ACEOF
19912 #define HAVE_HYPOTL 1
19913 _ACEOF
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19921 $as_echo_n "checking for ldexpf... " >&6; }
19922 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19923 $as_echo_n "(cached) " >&6
19924 else
19925 if test x$gcc_no_link = xyes; then
19926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19931 #ifdef HAVE_COMPLEX_H
19932 #include <complex.h>
19933 #endif
19934 #ifdef HAVE_MATH_H
19935 #include <math.h>
19936 #endif
19938 int (*ptr)() = (int (*)())ldexpf;
19941 main ()
19943 return 0;
19946 _ACEOF
19947 if ac_fn_c_try_link "$LINENO"; then :
19948 gcc_cv_math_func_ldexpf=yes
19949 else
19950 gcc_cv_math_func_ldexpf=no
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19956 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19957 if test $gcc_cv_math_func_ldexpf = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_LDEXPF 1
19961 _ACEOF
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19969 $as_echo_n "checking for ldexp... " >&6; }
19970 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19971 $as_echo_n "(cached) " >&6
19972 else
19973 if test x$gcc_no_link = xyes; then
19974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977 /* end confdefs.h. */
19979 #ifdef HAVE_COMPLEX_H
19980 #include <complex.h>
19981 #endif
19982 #ifdef HAVE_MATH_H
19983 #include <math.h>
19984 #endif
19986 int (*ptr)() = (int (*)())ldexp;
19989 main ()
19991 return 0;
19994 _ACEOF
19995 if ac_fn_c_try_link "$LINENO"; then :
19996 gcc_cv_math_func_ldexp=yes
19997 else
19998 gcc_cv_math_func_ldexp=no
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20004 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20005 if test $gcc_cv_math_func_ldexp = yes; then
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_LDEXP 1
20009 _ACEOF
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20017 $as_echo_n "checking for ldexpl... " >&6; }
20018 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 if test x$gcc_no_link = xyes; then
20022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20027 #ifdef HAVE_COMPLEX_H
20028 #include <complex.h>
20029 #endif
20030 #ifdef HAVE_MATH_H
20031 #include <math.h>
20032 #endif
20034 int (*ptr)() = (int (*)())ldexpl;
20037 main ()
20039 return 0;
20042 _ACEOF
20043 if ac_fn_c_try_link "$LINENO"; then :
20044 gcc_cv_math_func_ldexpl=yes
20045 else
20046 gcc_cv_math_func_ldexpl=no
20048 rm -f core conftest.err conftest.$ac_objext \
20049 conftest$ac_exeext conftest.$ac_ext
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20052 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20053 if test $gcc_cv_math_func_ldexpl = yes; then
20055 cat >>confdefs.h <<_ACEOF
20056 #define HAVE_LDEXPL 1
20057 _ACEOF
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20065 $as_echo_n "checking for logf... " >&6; }
20066 if test "${gcc_cv_math_func_logf+set}" = set; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 if test x$gcc_no_link = xyes; then
20070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20075 #ifdef HAVE_COMPLEX_H
20076 #include <complex.h>
20077 #endif
20078 #ifdef HAVE_MATH_H
20079 #include <math.h>
20080 #endif
20082 int (*ptr)() = (int (*)())logf;
20085 main ()
20087 return 0;
20090 _ACEOF
20091 if ac_fn_c_try_link "$LINENO"; then :
20092 gcc_cv_math_func_logf=yes
20093 else
20094 gcc_cv_math_func_logf=no
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20100 $as_echo "$gcc_cv_math_func_logf" >&6; }
20101 if test $gcc_cv_math_func_logf = yes; then
20103 cat >>confdefs.h <<_ACEOF
20104 #define HAVE_LOGF 1
20105 _ACEOF
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20113 $as_echo_n "checking for log... " >&6; }
20114 if test "${gcc_cv_math_func_log+set}" = set; then :
20115 $as_echo_n "(cached) " >&6
20116 else
20117 if test x$gcc_no_link = xyes; then
20118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121 /* end confdefs.h. */
20123 #ifdef HAVE_COMPLEX_H
20124 #include <complex.h>
20125 #endif
20126 #ifdef HAVE_MATH_H
20127 #include <math.h>
20128 #endif
20130 int (*ptr)() = (int (*)())log;
20133 main ()
20135 return 0;
20138 _ACEOF
20139 if ac_fn_c_try_link "$LINENO"; then :
20140 gcc_cv_math_func_log=yes
20141 else
20142 gcc_cv_math_func_log=no
20144 rm -f core conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20148 $as_echo "$gcc_cv_math_func_log" >&6; }
20149 if test $gcc_cv_math_func_log = yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_LOG 1
20153 _ACEOF
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20161 $as_echo_n "checking for logl... " >&6; }
20162 if test "${gcc_cv_math_func_logl+set}" = set; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 if test x$gcc_no_link = xyes; then
20166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20171 #ifdef HAVE_COMPLEX_H
20172 #include <complex.h>
20173 #endif
20174 #ifdef HAVE_MATH_H
20175 #include <math.h>
20176 #endif
20178 int (*ptr)() = (int (*)())logl;
20181 main ()
20183 return 0;
20186 _ACEOF
20187 if ac_fn_c_try_link "$LINENO"; then :
20188 gcc_cv_math_func_logl=yes
20189 else
20190 gcc_cv_math_func_logl=no
20192 rm -f core conftest.err conftest.$ac_objext \
20193 conftest$ac_exeext conftest.$ac_ext
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20196 $as_echo "$gcc_cv_math_func_logl" >&6; }
20197 if test $gcc_cv_math_func_logl = yes; then
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_LOGL 1
20201 _ACEOF
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20209 $as_echo_n "checking for clogf... " >&6; }
20210 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20211 $as_echo_n "(cached) " >&6
20212 else
20213 if test x$gcc_no_link = xyes; then
20214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20219 #ifdef HAVE_COMPLEX_H
20220 #include <complex.h>
20221 #endif
20222 #ifdef HAVE_MATH_H
20223 #include <math.h>
20224 #endif
20226 int (*ptr)() = (int (*)())clogf;
20229 main ()
20231 return 0;
20234 _ACEOF
20235 if ac_fn_c_try_link "$LINENO"; then :
20236 gcc_cv_math_func_clogf=yes
20237 else
20238 gcc_cv_math_func_clogf=no
20240 rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20244 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20245 if test $gcc_cv_math_func_clogf = yes; then
20247 cat >>confdefs.h <<_ACEOF
20248 #define HAVE_CLOGF 1
20249 _ACEOF
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20257 $as_echo_n "checking for clog... " >&6; }
20258 if test "${gcc_cv_math_func_clog+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 if test x$gcc_no_link = xyes; then
20262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20267 #ifdef HAVE_COMPLEX_H
20268 #include <complex.h>
20269 #endif
20270 #ifdef HAVE_MATH_H
20271 #include <math.h>
20272 #endif
20274 int (*ptr)() = (int (*)())clog;
20277 main ()
20279 return 0;
20282 _ACEOF
20283 if ac_fn_c_try_link "$LINENO"; then :
20284 gcc_cv_math_func_clog=yes
20285 else
20286 gcc_cv_math_func_clog=no
20288 rm -f core conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20292 $as_echo "$gcc_cv_math_func_clog" >&6; }
20293 if test $gcc_cv_math_func_clog = yes; then
20295 cat >>confdefs.h <<_ACEOF
20296 #define HAVE_CLOG 1
20297 _ACEOF
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20305 $as_echo_n "checking for clogl... " >&6; }
20306 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20308 else
20309 if test x$gcc_no_link = xyes; then
20310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20315 #ifdef HAVE_COMPLEX_H
20316 #include <complex.h>
20317 #endif
20318 #ifdef HAVE_MATH_H
20319 #include <math.h>
20320 #endif
20322 int (*ptr)() = (int (*)())clogl;
20325 main ()
20327 return 0;
20330 _ACEOF
20331 if ac_fn_c_try_link "$LINENO"; then :
20332 gcc_cv_math_func_clogl=yes
20333 else
20334 gcc_cv_math_func_clogl=no
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20340 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20341 if test $gcc_cv_math_func_clogl = yes; then
20343 cat >>confdefs.h <<_ACEOF
20344 #define HAVE_CLOGL 1
20345 _ACEOF
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20353 $as_echo_n "checking for log10f... " >&6; }
20354 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20355 $as_echo_n "(cached) " >&6
20356 else
20357 if test x$gcc_no_link = xyes; then
20358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20363 #ifdef HAVE_COMPLEX_H
20364 #include <complex.h>
20365 #endif
20366 #ifdef HAVE_MATH_H
20367 #include <math.h>
20368 #endif
20370 int (*ptr)() = (int (*)())log10f;
20373 main ()
20375 return 0;
20378 _ACEOF
20379 if ac_fn_c_try_link "$LINENO"; then :
20380 gcc_cv_math_func_log10f=yes
20381 else
20382 gcc_cv_math_func_log10f=no
20384 rm -f core conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20388 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20389 if test $gcc_cv_math_func_log10f = yes; then
20391 cat >>confdefs.h <<_ACEOF
20392 #define HAVE_LOG10F 1
20393 _ACEOF
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20401 $as_echo_n "checking for log10... " >&6; }
20402 if test "${gcc_cv_math_func_log10+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20404 else
20405 if test x$gcc_no_link = xyes; then
20406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20411 #ifdef HAVE_COMPLEX_H
20412 #include <complex.h>
20413 #endif
20414 #ifdef HAVE_MATH_H
20415 #include <math.h>
20416 #endif
20418 int (*ptr)() = (int (*)())log10;
20421 main ()
20423 return 0;
20426 _ACEOF
20427 if ac_fn_c_try_link "$LINENO"; then :
20428 gcc_cv_math_func_log10=yes
20429 else
20430 gcc_cv_math_func_log10=no
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20436 $as_echo "$gcc_cv_math_func_log10" >&6; }
20437 if test $gcc_cv_math_func_log10 = yes; then
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_LOG10 1
20441 _ACEOF
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20449 $as_echo_n "checking for log10l... " >&6; }
20450 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 if test x$gcc_no_link = xyes; then
20454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20459 #ifdef HAVE_COMPLEX_H
20460 #include <complex.h>
20461 #endif
20462 #ifdef HAVE_MATH_H
20463 #include <math.h>
20464 #endif
20466 int (*ptr)() = (int (*)())log10l;
20469 main ()
20471 return 0;
20474 _ACEOF
20475 if ac_fn_c_try_link "$LINENO"; then :
20476 gcc_cv_math_func_log10l=yes
20477 else
20478 gcc_cv_math_func_log10l=no
20480 rm -f core conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20484 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20485 if test $gcc_cv_math_func_log10l = yes; then
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_LOG10L 1
20489 _ACEOF
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20497 $as_echo_n "checking for clog10f... " >&6; }
20498 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20499 $as_echo_n "(cached) " >&6
20500 else
20501 if test x$gcc_no_link = xyes; then
20502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20507 #ifdef HAVE_COMPLEX_H
20508 #include <complex.h>
20509 #endif
20510 #ifdef HAVE_MATH_H
20511 #include <math.h>
20512 #endif
20514 int (*ptr)() = (int (*)())clog10f;
20517 main ()
20519 return 0;
20522 _ACEOF
20523 if ac_fn_c_try_link "$LINENO"; then :
20524 gcc_cv_math_func_clog10f=yes
20525 else
20526 gcc_cv_math_func_clog10f=no
20528 rm -f core conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20532 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20533 if test $gcc_cv_math_func_clog10f = yes; then
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_CLOG10F 1
20537 _ACEOF
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20545 $as_echo_n "checking for clog10... " >&6; }
20546 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20547 $as_echo_n "(cached) " >&6
20548 else
20549 if test x$gcc_no_link = xyes; then
20550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20555 #ifdef HAVE_COMPLEX_H
20556 #include <complex.h>
20557 #endif
20558 #ifdef HAVE_MATH_H
20559 #include <math.h>
20560 #endif
20562 int (*ptr)() = (int (*)())clog10;
20565 main ()
20567 return 0;
20570 _ACEOF
20571 if ac_fn_c_try_link "$LINENO"; then :
20572 gcc_cv_math_func_clog10=yes
20573 else
20574 gcc_cv_math_func_clog10=no
20576 rm -f core conftest.err conftest.$ac_objext \
20577 conftest$ac_exeext conftest.$ac_ext
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20580 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20581 if test $gcc_cv_math_func_clog10 = yes; then
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_CLOG10 1
20585 _ACEOF
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20593 $as_echo_n "checking for clog10l... " >&6; }
20594 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20595 $as_echo_n "(cached) " >&6
20596 else
20597 if test x$gcc_no_link = xyes; then
20598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20603 #ifdef HAVE_COMPLEX_H
20604 #include <complex.h>
20605 #endif
20606 #ifdef HAVE_MATH_H
20607 #include <math.h>
20608 #endif
20610 int (*ptr)() = (int (*)())clog10l;
20613 main ()
20615 return 0;
20618 _ACEOF
20619 if ac_fn_c_try_link "$LINENO"; then :
20620 gcc_cv_math_func_clog10l=yes
20621 else
20622 gcc_cv_math_func_clog10l=no
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20628 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20629 if test $gcc_cv_math_func_clog10l = yes; then
20631 cat >>confdefs.h <<_ACEOF
20632 #define HAVE_CLOG10L 1
20633 _ACEOF
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20641 $as_echo_n "checking for nextafterf... " >&6; }
20642 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20643 $as_echo_n "(cached) " >&6
20644 else
20645 if test x$gcc_no_link = xyes; then
20646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20651 #ifdef HAVE_COMPLEX_H
20652 #include <complex.h>
20653 #endif
20654 #ifdef HAVE_MATH_H
20655 #include <math.h>
20656 #endif
20658 int (*ptr)() = (int (*)())nextafterf;
20661 main ()
20663 return 0;
20666 _ACEOF
20667 if ac_fn_c_try_link "$LINENO"; then :
20668 gcc_cv_math_func_nextafterf=yes
20669 else
20670 gcc_cv_math_func_nextafterf=no
20672 rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20676 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20677 if test $gcc_cv_math_func_nextafterf = yes; then
20679 cat >>confdefs.h <<_ACEOF
20680 #define HAVE_NEXTAFTERF 1
20681 _ACEOF
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20689 $as_echo_n "checking for nextafter... " >&6; }
20690 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 if test x$gcc_no_link = xyes; then
20694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20699 #ifdef HAVE_COMPLEX_H
20700 #include <complex.h>
20701 #endif
20702 #ifdef HAVE_MATH_H
20703 #include <math.h>
20704 #endif
20706 int (*ptr)() = (int (*)())nextafter;
20709 main ()
20711 return 0;
20714 _ACEOF
20715 if ac_fn_c_try_link "$LINENO"; then :
20716 gcc_cv_math_func_nextafter=yes
20717 else
20718 gcc_cv_math_func_nextafter=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20724 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20725 if test $gcc_cv_math_func_nextafter = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define HAVE_NEXTAFTER 1
20729 _ACEOF
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20737 $as_echo_n "checking for nextafterl... " >&6; }
20738 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20739 $as_echo_n "(cached) " >&6
20740 else
20741 if test x$gcc_no_link = xyes; then
20742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20747 #ifdef HAVE_COMPLEX_H
20748 #include <complex.h>
20749 #endif
20750 #ifdef HAVE_MATH_H
20751 #include <math.h>
20752 #endif
20754 int (*ptr)() = (int (*)())nextafterl;
20757 main ()
20759 return 0;
20762 _ACEOF
20763 if ac_fn_c_try_link "$LINENO"; then :
20764 gcc_cv_math_func_nextafterl=yes
20765 else
20766 gcc_cv_math_func_nextafterl=no
20768 rm -f core conftest.err conftest.$ac_objext \
20769 conftest$ac_exeext conftest.$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20772 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20773 if test $gcc_cv_math_func_nextafterl = yes; then
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_NEXTAFTERL 1
20777 _ACEOF
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20785 $as_echo_n "checking for powf... " >&6; }
20786 if test "${gcc_cv_math_func_powf+set}" = set; then :
20787 $as_echo_n "(cached) " >&6
20788 else
20789 if test x$gcc_no_link = xyes; then
20790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793 /* end confdefs.h. */
20795 #ifdef HAVE_COMPLEX_H
20796 #include <complex.h>
20797 #endif
20798 #ifdef HAVE_MATH_H
20799 #include <math.h>
20800 #endif
20802 int (*ptr)() = (int (*)())powf;
20805 main ()
20807 return 0;
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 gcc_cv_math_func_powf=yes
20813 else
20814 gcc_cv_math_func_powf=no
20816 rm -f core conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20820 $as_echo "$gcc_cv_math_func_powf" >&6; }
20821 if test $gcc_cv_math_func_powf = yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_POWF 1
20825 _ACEOF
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20833 $as_echo_n "checking for pow... " >&6; }
20834 if test "${gcc_cv_math_func_pow+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837 if test x$gcc_no_link = xyes; then
20838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20843 #ifdef HAVE_COMPLEX_H
20844 #include <complex.h>
20845 #endif
20846 #ifdef HAVE_MATH_H
20847 #include <math.h>
20848 #endif
20850 int (*ptr)() = (int (*)())pow;
20853 main ()
20855 return 0;
20858 _ACEOF
20859 if ac_fn_c_try_link "$LINENO"; then :
20860 gcc_cv_math_func_pow=yes
20861 else
20862 gcc_cv_math_func_pow=no
20864 rm -f core conftest.err conftest.$ac_objext \
20865 conftest$ac_exeext conftest.$ac_ext
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20868 $as_echo "$gcc_cv_math_func_pow" >&6; }
20869 if test $gcc_cv_math_func_pow = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_POW 1
20873 _ACEOF
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20881 $as_echo_n "checking for powl... " >&6; }
20882 if test "${gcc_cv_math_func_powl+set}" = set; then :
20883 $as_echo_n "(cached) " >&6
20884 else
20885 if test x$gcc_no_link = xyes; then
20886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20891 #ifdef HAVE_COMPLEX_H
20892 #include <complex.h>
20893 #endif
20894 #ifdef HAVE_MATH_H
20895 #include <math.h>
20896 #endif
20898 int (*ptr)() = (int (*)())powl;
20901 main ()
20903 return 0;
20906 _ACEOF
20907 if ac_fn_c_try_link "$LINENO"; then :
20908 gcc_cv_math_func_powl=yes
20909 else
20910 gcc_cv_math_func_powl=no
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20916 $as_echo "$gcc_cv_math_func_powl" >&6; }
20917 if test $gcc_cv_math_func_powl = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_POWL 1
20921 _ACEOF
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20929 $as_echo_n "checking for cpowf... " >&6; }
20930 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20931 $as_echo_n "(cached) " >&6
20932 else
20933 if test x$gcc_no_link = xyes; then
20934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20939 #ifdef HAVE_COMPLEX_H
20940 #include <complex.h>
20941 #endif
20942 #ifdef HAVE_MATH_H
20943 #include <math.h>
20944 #endif
20946 int (*ptr)() = (int (*)())cpowf;
20949 main ()
20951 return 0;
20954 _ACEOF
20955 if ac_fn_c_try_link "$LINENO"; then :
20956 gcc_cv_math_func_cpowf=yes
20957 else
20958 gcc_cv_math_func_cpowf=no
20960 rm -f core conftest.err conftest.$ac_objext \
20961 conftest$ac_exeext conftest.$ac_ext
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20964 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20965 if test $gcc_cv_math_func_cpowf = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_CPOWF 1
20969 _ACEOF
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20977 $as_echo_n "checking for cpow... " >&6; }
20978 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20979 $as_echo_n "(cached) " >&6
20980 else
20981 if test x$gcc_no_link = xyes; then
20982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20987 #ifdef HAVE_COMPLEX_H
20988 #include <complex.h>
20989 #endif
20990 #ifdef HAVE_MATH_H
20991 #include <math.h>
20992 #endif
20994 int (*ptr)() = (int (*)())cpow;
20997 main ()
20999 return 0;
21002 _ACEOF
21003 if ac_fn_c_try_link "$LINENO"; then :
21004 gcc_cv_math_func_cpow=yes
21005 else
21006 gcc_cv_math_func_cpow=no
21008 rm -f core conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21012 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21013 if test $gcc_cv_math_func_cpow = yes; then
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_CPOW 1
21017 _ACEOF
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21025 $as_echo_n "checking for cpowl... " >&6; }
21026 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21027 $as_echo_n "(cached) " >&6
21028 else
21029 if test x$gcc_no_link = xyes; then
21030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033 /* end confdefs.h. */
21035 #ifdef HAVE_COMPLEX_H
21036 #include <complex.h>
21037 #endif
21038 #ifdef HAVE_MATH_H
21039 #include <math.h>
21040 #endif
21042 int (*ptr)() = (int (*)())cpowl;
21045 main ()
21047 return 0;
21050 _ACEOF
21051 if ac_fn_c_try_link "$LINENO"; then :
21052 gcc_cv_math_func_cpowl=yes
21053 else
21054 gcc_cv_math_func_cpowl=no
21056 rm -f core conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21060 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21061 if test $gcc_cv_math_func_cpowl = yes; then
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_CPOWL 1
21065 _ACEOF
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21073 $as_echo_n "checking for roundf... " >&6; }
21074 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21075 $as_echo_n "(cached) " >&6
21076 else
21077 if test x$gcc_no_link = xyes; then
21078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21083 #ifdef HAVE_COMPLEX_H
21084 #include <complex.h>
21085 #endif
21086 #ifdef HAVE_MATH_H
21087 #include <math.h>
21088 #endif
21090 int (*ptr)() = (int (*)())roundf;
21093 main ()
21095 return 0;
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 gcc_cv_math_func_roundf=yes
21101 else
21102 gcc_cv_math_func_roundf=no
21104 rm -f core conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21108 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21109 if test $gcc_cv_math_func_roundf = yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_ROUNDF 1
21113 _ACEOF
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21121 $as_echo_n "checking for round... " >&6; }
21122 if test "${gcc_cv_math_func_round+set}" = set; then :
21123 $as_echo_n "(cached) " >&6
21124 else
21125 if test x$gcc_no_link = xyes; then
21126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21131 #ifdef HAVE_COMPLEX_H
21132 #include <complex.h>
21133 #endif
21134 #ifdef HAVE_MATH_H
21135 #include <math.h>
21136 #endif
21138 int (*ptr)() = (int (*)())round;
21141 main ()
21143 return 0;
21146 _ACEOF
21147 if ac_fn_c_try_link "$LINENO"; then :
21148 gcc_cv_math_func_round=yes
21149 else
21150 gcc_cv_math_func_round=no
21152 rm -f core conftest.err conftest.$ac_objext \
21153 conftest$ac_exeext conftest.$ac_ext
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21156 $as_echo "$gcc_cv_math_func_round" >&6; }
21157 if test $gcc_cv_math_func_round = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_ROUND 1
21161 _ACEOF
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21169 $as_echo_n "checking for roundl... " >&6; }
21170 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 if test x$gcc_no_link = xyes; then
21174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21179 #ifdef HAVE_COMPLEX_H
21180 #include <complex.h>
21181 #endif
21182 #ifdef HAVE_MATH_H
21183 #include <math.h>
21184 #endif
21186 int (*ptr)() = (int (*)())roundl;
21189 main ()
21191 return 0;
21194 _ACEOF
21195 if ac_fn_c_try_link "$LINENO"; then :
21196 gcc_cv_math_func_roundl=yes
21197 else
21198 gcc_cv_math_func_roundl=no
21200 rm -f core conftest.err conftest.$ac_objext \
21201 conftest$ac_exeext conftest.$ac_ext
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21204 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21205 if test $gcc_cv_math_func_roundl = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define HAVE_ROUNDL 1
21209 _ACEOF
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21217 $as_echo_n "checking for lroundf... " >&6; }
21218 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221 if test x$gcc_no_link = xyes; then
21222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21227 #ifdef HAVE_COMPLEX_H
21228 #include <complex.h>
21229 #endif
21230 #ifdef HAVE_MATH_H
21231 #include <math.h>
21232 #endif
21234 int (*ptr)() = (int (*)())lroundf;
21237 main ()
21239 return 0;
21242 _ACEOF
21243 if ac_fn_c_try_link "$LINENO"; then :
21244 gcc_cv_math_func_lroundf=yes
21245 else
21246 gcc_cv_math_func_lroundf=no
21248 rm -f core conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21252 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21253 if test $gcc_cv_math_func_lroundf = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_LROUNDF 1
21257 _ACEOF
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21265 $as_echo_n "checking for lround... " >&6; }
21266 if test "${gcc_cv_math_func_lround+set}" = set; then :
21267 $as_echo_n "(cached) " >&6
21268 else
21269 if test x$gcc_no_link = xyes; then
21270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h. */
21275 #ifdef HAVE_COMPLEX_H
21276 #include <complex.h>
21277 #endif
21278 #ifdef HAVE_MATH_H
21279 #include <math.h>
21280 #endif
21282 int (*ptr)() = (int (*)())lround;
21285 main ()
21287 return 0;
21290 _ACEOF
21291 if ac_fn_c_try_link "$LINENO"; then :
21292 gcc_cv_math_func_lround=yes
21293 else
21294 gcc_cv_math_func_lround=no
21296 rm -f core conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21300 $as_echo "$gcc_cv_math_func_lround" >&6; }
21301 if test $gcc_cv_math_func_lround = yes; then
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE_LROUND 1
21305 _ACEOF
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21313 $as_echo_n "checking for lroundl... " >&6; }
21314 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21316 else
21317 if test x$gcc_no_link = xyes; then
21318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21323 #ifdef HAVE_COMPLEX_H
21324 #include <complex.h>
21325 #endif
21326 #ifdef HAVE_MATH_H
21327 #include <math.h>
21328 #endif
21330 int (*ptr)() = (int (*)())lroundl;
21333 main ()
21335 return 0;
21338 _ACEOF
21339 if ac_fn_c_try_link "$LINENO"; then :
21340 gcc_cv_math_func_lroundl=yes
21341 else
21342 gcc_cv_math_func_lroundl=no
21344 rm -f core conftest.err conftest.$ac_objext \
21345 conftest$ac_exeext conftest.$ac_ext
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21348 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21349 if test $gcc_cv_math_func_lroundl = yes; then
21351 cat >>confdefs.h <<_ACEOF
21352 #define HAVE_LROUNDL 1
21353 _ACEOF
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21361 $as_echo_n "checking for llroundf... " >&6; }
21362 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21363 $as_echo_n "(cached) " >&6
21364 else
21365 if test x$gcc_no_link = xyes; then
21366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369 /* end confdefs.h. */
21371 #ifdef HAVE_COMPLEX_H
21372 #include <complex.h>
21373 #endif
21374 #ifdef HAVE_MATH_H
21375 #include <math.h>
21376 #endif
21378 int (*ptr)() = (int (*)())llroundf;
21381 main ()
21383 return 0;
21386 _ACEOF
21387 if ac_fn_c_try_link "$LINENO"; then :
21388 gcc_cv_math_func_llroundf=yes
21389 else
21390 gcc_cv_math_func_llroundf=no
21392 rm -f core conftest.err conftest.$ac_objext \
21393 conftest$ac_exeext conftest.$ac_ext
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21396 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21397 if test $gcc_cv_math_func_llroundf = yes; then
21399 cat >>confdefs.h <<_ACEOF
21400 #define HAVE_LLROUNDF 1
21401 _ACEOF
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21409 $as_echo_n "checking for llround... " >&6; }
21410 if test "${gcc_cv_math_func_llround+set}" = set; then :
21411 $as_echo_n "(cached) " >&6
21412 else
21413 if test x$gcc_no_link = xyes; then
21414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21419 #ifdef HAVE_COMPLEX_H
21420 #include <complex.h>
21421 #endif
21422 #ifdef HAVE_MATH_H
21423 #include <math.h>
21424 #endif
21426 int (*ptr)() = (int (*)())llround;
21429 main ()
21431 return 0;
21434 _ACEOF
21435 if ac_fn_c_try_link "$LINENO"; then :
21436 gcc_cv_math_func_llround=yes
21437 else
21438 gcc_cv_math_func_llround=no
21440 rm -f core conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21444 $as_echo "$gcc_cv_math_func_llround" >&6; }
21445 if test $gcc_cv_math_func_llround = yes; then
21447 cat >>confdefs.h <<_ACEOF
21448 #define HAVE_LLROUND 1
21449 _ACEOF
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21457 $as_echo_n "checking for llroundl... " >&6; }
21458 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21459 $as_echo_n "(cached) " >&6
21460 else
21461 if test x$gcc_no_link = xyes; then
21462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21467 #ifdef HAVE_COMPLEX_H
21468 #include <complex.h>
21469 #endif
21470 #ifdef HAVE_MATH_H
21471 #include <math.h>
21472 #endif
21474 int (*ptr)() = (int (*)())llroundl;
21477 main ()
21479 return 0;
21482 _ACEOF
21483 if ac_fn_c_try_link "$LINENO"; then :
21484 gcc_cv_math_func_llroundl=yes
21485 else
21486 gcc_cv_math_func_llroundl=no
21488 rm -f core conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21492 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21493 if test $gcc_cv_math_func_llroundl = yes; then
21495 cat >>confdefs.h <<_ACEOF
21496 #define HAVE_LLROUNDL 1
21497 _ACEOF
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21505 $as_echo_n "checking for scalbnf... " >&6; }
21506 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 if test x$gcc_no_link = xyes; then
21510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h. */
21515 #ifdef HAVE_COMPLEX_H
21516 #include <complex.h>
21517 #endif
21518 #ifdef HAVE_MATH_H
21519 #include <math.h>
21520 #endif
21522 int (*ptr)() = (int (*)())scalbnf;
21525 main ()
21527 return 0;
21530 _ACEOF
21531 if ac_fn_c_try_link "$LINENO"; then :
21532 gcc_cv_math_func_scalbnf=yes
21533 else
21534 gcc_cv_math_func_scalbnf=no
21536 rm -f core conftest.err conftest.$ac_objext \
21537 conftest$ac_exeext conftest.$ac_ext
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21540 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21541 if test $gcc_cv_math_func_scalbnf = yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_SCALBNF 1
21545 _ACEOF
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21553 $as_echo_n "checking for scalbn... " >&6; }
21554 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21556 else
21557 if test x$gcc_no_link = xyes; then
21558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21563 #ifdef HAVE_COMPLEX_H
21564 #include <complex.h>
21565 #endif
21566 #ifdef HAVE_MATH_H
21567 #include <math.h>
21568 #endif
21570 int (*ptr)() = (int (*)())scalbn;
21573 main ()
21575 return 0;
21578 _ACEOF
21579 if ac_fn_c_try_link "$LINENO"; then :
21580 gcc_cv_math_func_scalbn=yes
21581 else
21582 gcc_cv_math_func_scalbn=no
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21588 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21589 if test $gcc_cv_math_func_scalbn = yes; then
21591 cat >>confdefs.h <<_ACEOF
21592 #define HAVE_SCALBN 1
21593 _ACEOF
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21601 $as_echo_n "checking for scalbnl... " >&6; }
21602 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21603 $as_echo_n "(cached) " >&6
21604 else
21605 if test x$gcc_no_link = xyes; then
21606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h. */
21611 #ifdef HAVE_COMPLEX_H
21612 #include <complex.h>
21613 #endif
21614 #ifdef HAVE_MATH_H
21615 #include <math.h>
21616 #endif
21618 int (*ptr)() = (int (*)())scalbnl;
21621 main ()
21623 return 0;
21626 _ACEOF
21627 if ac_fn_c_try_link "$LINENO"; then :
21628 gcc_cv_math_func_scalbnl=yes
21629 else
21630 gcc_cv_math_func_scalbnl=no
21632 rm -f core conftest.err conftest.$ac_objext \
21633 conftest$ac_exeext conftest.$ac_ext
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21636 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21637 if test $gcc_cv_math_func_scalbnl = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define HAVE_SCALBNL 1
21641 _ACEOF
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21649 $as_echo_n "checking for sinf... " >&6; }
21650 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21651 $as_echo_n "(cached) " >&6
21652 else
21653 if test x$gcc_no_link = xyes; then
21654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21659 #ifdef HAVE_COMPLEX_H
21660 #include <complex.h>
21661 #endif
21662 #ifdef HAVE_MATH_H
21663 #include <math.h>
21664 #endif
21666 int (*ptr)() = (int (*)())sinf;
21669 main ()
21671 return 0;
21674 _ACEOF
21675 if ac_fn_c_try_link "$LINENO"; then :
21676 gcc_cv_math_func_sinf=yes
21677 else
21678 gcc_cv_math_func_sinf=no
21680 rm -f core conftest.err conftest.$ac_objext \
21681 conftest$ac_exeext conftest.$ac_ext
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21684 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21685 if test $gcc_cv_math_func_sinf = yes; then
21687 cat >>confdefs.h <<_ACEOF
21688 #define HAVE_SINF 1
21689 _ACEOF
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21697 $as_echo_n "checking for sin... " >&6; }
21698 if test "${gcc_cv_math_func_sin+set}" = set; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 if test x$gcc_no_link = xyes; then
21702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21707 #ifdef HAVE_COMPLEX_H
21708 #include <complex.h>
21709 #endif
21710 #ifdef HAVE_MATH_H
21711 #include <math.h>
21712 #endif
21714 int (*ptr)() = (int (*)())sin;
21717 main ()
21719 return 0;
21722 _ACEOF
21723 if ac_fn_c_try_link "$LINENO"; then :
21724 gcc_cv_math_func_sin=yes
21725 else
21726 gcc_cv_math_func_sin=no
21728 rm -f core conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21732 $as_echo "$gcc_cv_math_func_sin" >&6; }
21733 if test $gcc_cv_math_func_sin = yes; then
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_SIN 1
21737 _ACEOF
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21745 $as_echo_n "checking for sinl... " >&6; }
21746 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21748 else
21749 if test x$gcc_no_link = xyes; then
21750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753 /* end confdefs.h. */
21755 #ifdef HAVE_COMPLEX_H
21756 #include <complex.h>
21757 #endif
21758 #ifdef HAVE_MATH_H
21759 #include <math.h>
21760 #endif
21762 int (*ptr)() = (int (*)())sinl;
21765 main ()
21767 return 0;
21770 _ACEOF
21771 if ac_fn_c_try_link "$LINENO"; then :
21772 gcc_cv_math_func_sinl=yes
21773 else
21774 gcc_cv_math_func_sinl=no
21776 rm -f core conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext conftest.$ac_ext
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21780 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21781 if test $gcc_cv_math_func_sinl = yes; then
21783 cat >>confdefs.h <<_ACEOF
21784 #define HAVE_SINL 1
21785 _ACEOF
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21793 $as_echo_n "checking for csinf... " >&6; }
21794 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21796 else
21797 if test x$gcc_no_link = xyes; then
21798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21803 #ifdef HAVE_COMPLEX_H
21804 #include <complex.h>
21805 #endif
21806 #ifdef HAVE_MATH_H
21807 #include <math.h>
21808 #endif
21810 int (*ptr)() = (int (*)())csinf;
21813 main ()
21815 return 0;
21818 _ACEOF
21819 if ac_fn_c_try_link "$LINENO"; then :
21820 gcc_cv_math_func_csinf=yes
21821 else
21822 gcc_cv_math_func_csinf=no
21824 rm -f core conftest.err conftest.$ac_objext \
21825 conftest$ac_exeext conftest.$ac_ext
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21828 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21829 if test $gcc_cv_math_func_csinf = yes; then
21831 cat >>confdefs.h <<_ACEOF
21832 #define HAVE_CSINF 1
21833 _ACEOF
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21841 $as_echo_n "checking for csin... " >&6; }
21842 if test "${gcc_cv_math_func_csin+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 if test x$gcc_no_link = xyes; then
21846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21851 #ifdef HAVE_COMPLEX_H
21852 #include <complex.h>
21853 #endif
21854 #ifdef HAVE_MATH_H
21855 #include <math.h>
21856 #endif
21858 int (*ptr)() = (int (*)())csin;
21861 main ()
21863 return 0;
21866 _ACEOF
21867 if ac_fn_c_try_link "$LINENO"; then :
21868 gcc_cv_math_func_csin=yes
21869 else
21870 gcc_cv_math_func_csin=no
21872 rm -f core conftest.err conftest.$ac_objext \
21873 conftest$ac_exeext conftest.$ac_ext
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21876 $as_echo "$gcc_cv_math_func_csin" >&6; }
21877 if test $gcc_cv_math_func_csin = yes; then
21879 cat >>confdefs.h <<_ACEOF
21880 #define HAVE_CSIN 1
21881 _ACEOF
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21889 $as_echo_n "checking for csinl... " >&6; }
21890 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21891 $as_echo_n "(cached) " >&6
21892 else
21893 if test x$gcc_no_link = xyes; then
21894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21899 #ifdef HAVE_COMPLEX_H
21900 #include <complex.h>
21901 #endif
21902 #ifdef HAVE_MATH_H
21903 #include <math.h>
21904 #endif
21906 int (*ptr)() = (int (*)())csinl;
21909 main ()
21911 return 0;
21914 _ACEOF
21915 if ac_fn_c_try_link "$LINENO"; then :
21916 gcc_cv_math_func_csinl=yes
21917 else
21918 gcc_cv_math_func_csinl=no
21920 rm -f core conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21924 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21925 if test $gcc_cv_math_func_csinl = yes; then
21927 cat >>confdefs.h <<_ACEOF
21928 #define HAVE_CSINL 1
21929 _ACEOF
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21937 $as_echo_n "checking for sinhf... " >&6; }
21938 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 if test x$gcc_no_link = xyes; then
21942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h. */
21947 #ifdef HAVE_COMPLEX_H
21948 #include <complex.h>
21949 #endif
21950 #ifdef HAVE_MATH_H
21951 #include <math.h>
21952 #endif
21954 int (*ptr)() = (int (*)())sinhf;
21957 main ()
21959 return 0;
21962 _ACEOF
21963 if ac_fn_c_try_link "$LINENO"; then :
21964 gcc_cv_math_func_sinhf=yes
21965 else
21966 gcc_cv_math_func_sinhf=no
21968 rm -f core conftest.err conftest.$ac_objext \
21969 conftest$ac_exeext conftest.$ac_ext
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21972 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21973 if test $gcc_cv_math_func_sinhf = yes; then
21975 cat >>confdefs.h <<_ACEOF
21976 #define HAVE_SINHF 1
21977 _ACEOF
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21985 $as_echo_n "checking for sinh... " >&6; }
21986 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 if test x$gcc_no_link = xyes; then
21990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993 /* end confdefs.h. */
21995 #ifdef HAVE_COMPLEX_H
21996 #include <complex.h>
21997 #endif
21998 #ifdef HAVE_MATH_H
21999 #include <math.h>
22000 #endif
22002 int (*ptr)() = (int (*)())sinh;
22005 main ()
22007 return 0;
22010 _ACEOF
22011 if ac_fn_c_try_link "$LINENO"; then :
22012 gcc_cv_math_func_sinh=yes
22013 else
22014 gcc_cv_math_func_sinh=no
22016 rm -f core conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22020 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22021 if test $gcc_cv_math_func_sinh = yes; then
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_SINH 1
22025 _ACEOF
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22033 $as_echo_n "checking for sinhl... " >&6; }
22034 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22035 $as_echo_n "(cached) " >&6
22036 else
22037 if test x$gcc_no_link = xyes; then
22038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22043 #ifdef HAVE_COMPLEX_H
22044 #include <complex.h>
22045 #endif
22046 #ifdef HAVE_MATH_H
22047 #include <math.h>
22048 #endif
22050 int (*ptr)() = (int (*)())sinhl;
22053 main ()
22055 return 0;
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 gcc_cv_math_func_sinhl=yes
22061 else
22062 gcc_cv_math_func_sinhl=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22068 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22069 if test $gcc_cv_math_func_sinhl = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define HAVE_SINHL 1
22073 _ACEOF
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22081 $as_echo_n "checking for csinhf... " >&6; }
22082 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22083 $as_echo_n "(cached) " >&6
22084 else
22085 if test x$gcc_no_link = xyes; then
22086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22091 #ifdef HAVE_COMPLEX_H
22092 #include <complex.h>
22093 #endif
22094 #ifdef HAVE_MATH_H
22095 #include <math.h>
22096 #endif
22098 int (*ptr)() = (int (*)())csinhf;
22101 main ()
22103 return 0;
22106 _ACEOF
22107 if ac_fn_c_try_link "$LINENO"; then :
22108 gcc_cv_math_func_csinhf=yes
22109 else
22110 gcc_cv_math_func_csinhf=no
22112 rm -f core conftest.err conftest.$ac_objext \
22113 conftest$ac_exeext conftest.$ac_ext
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22116 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22117 if test $gcc_cv_math_func_csinhf = yes; then
22119 cat >>confdefs.h <<_ACEOF
22120 #define HAVE_CSINHF 1
22121 _ACEOF
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22129 $as_echo_n "checking for csinh... " >&6; }
22130 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22131 $as_echo_n "(cached) " >&6
22132 else
22133 if test x$gcc_no_link = xyes; then
22134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h. */
22139 #ifdef HAVE_COMPLEX_H
22140 #include <complex.h>
22141 #endif
22142 #ifdef HAVE_MATH_H
22143 #include <math.h>
22144 #endif
22146 int (*ptr)() = (int (*)())csinh;
22149 main ()
22151 return 0;
22154 _ACEOF
22155 if ac_fn_c_try_link "$LINENO"; then :
22156 gcc_cv_math_func_csinh=yes
22157 else
22158 gcc_cv_math_func_csinh=no
22160 rm -f core conftest.err conftest.$ac_objext \
22161 conftest$ac_exeext conftest.$ac_ext
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22164 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22165 if test $gcc_cv_math_func_csinh = yes; then
22167 cat >>confdefs.h <<_ACEOF
22168 #define HAVE_CSINH 1
22169 _ACEOF
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22177 $as_echo_n "checking for csinhl... " >&6; }
22178 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22180 else
22181 if test x$gcc_no_link = xyes; then
22182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22187 #ifdef HAVE_COMPLEX_H
22188 #include <complex.h>
22189 #endif
22190 #ifdef HAVE_MATH_H
22191 #include <math.h>
22192 #endif
22194 int (*ptr)() = (int (*)())csinhl;
22197 main ()
22199 return 0;
22202 _ACEOF
22203 if ac_fn_c_try_link "$LINENO"; then :
22204 gcc_cv_math_func_csinhl=yes
22205 else
22206 gcc_cv_math_func_csinhl=no
22208 rm -f core conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22212 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22213 if test $gcc_cv_math_func_csinhl = yes; then
22215 cat >>confdefs.h <<_ACEOF
22216 #define HAVE_CSINHL 1
22217 _ACEOF
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22225 $as_echo_n "checking for sqrtf... " >&6; }
22226 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22227 $as_echo_n "(cached) " >&6
22228 else
22229 if test x$gcc_no_link = xyes; then
22230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233 /* end confdefs.h. */
22235 #ifdef HAVE_COMPLEX_H
22236 #include <complex.h>
22237 #endif
22238 #ifdef HAVE_MATH_H
22239 #include <math.h>
22240 #endif
22242 int (*ptr)() = (int (*)())sqrtf;
22245 main ()
22247 return 0;
22250 _ACEOF
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 gcc_cv_math_func_sqrtf=yes
22253 else
22254 gcc_cv_math_func_sqrtf=no
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22260 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22261 if test $gcc_cv_math_func_sqrtf = yes; then
22263 cat >>confdefs.h <<_ACEOF
22264 #define HAVE_SQRTF 1
22265 _ACEOF
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22273 $as_echo_n "checking for sqrt... " >&6; }
22274 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22275 $as_echo_n "(cached) " >&6
22276 else
22277 if test x$gcc_no_link = xyes; then
22278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h. */
22283 #ifdef HAVE_COMPLEX_H
22284 #include <complex.h>
22285 #endif
22286 #ifdef HAVE_MATH_H
22287 #include <math.h>
22288 #endif
22290 int (*ptr)() = (int (*)())sqrt;
22293 main ()
22295 return 0;
22298 _ACEOF
22299 if ac_fn_c_try_link "$LINENO"; then :
22300 gcc_cv_math_func_sqrt=yes
22301 else
22302 gcc_cv_math_func_sqrt=no
22304 rm -f core conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22308 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22309 if test $gcc_cv_math_func_sqrt = yes; then
22311 cat >>confdefs.h <<_ACEOF
22312 #define HAVE_SQRT 1
22313 _ACEOF
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22321 $as_echo_n "checking for sqrtl... " >&6; }
22322 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 if test x$gcc_no_link = xyes; then
22326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22331 #ifdef HAVE_COMPLEX_H
22332 #include <complex.h>
22333 #endif
22334 #ifdef HAVE_MATH_H
22335 #include <math.h>
22336 #endif
22338 int (*ptr)() = (int (*)())sqrtl;
22341 main ()
22343 return 0;
22346 _ACEOF
22347 if ac_fn_c_try_link "$LINENO"; then :
22348 gcc_cv_math_func_sqrtl=yes
22349 else
22350 gcc_cv_math_func_sqrtl=no
22352 rm -f core conftest.err conftest.$ac_objext \
22353 conftest$ac_exeext conftest.$ac_ext
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22356 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22357 if test $gcc_cv_math_func_sqrtl = yes; then
22359 cat >>confdefs.h <<_ACEOF
22360 #define HAVE_SQRTL 1
22361 _ACEOF
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22369 $as_echo_n "checking for csqrtf... " >&6; }
22370 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 if test x$gcc_no_link = xyes; then
22374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22379 #ifdef HAVE_COMPLEX_H
22380 #include <complex.h>
22381 #endif
22382 #ifdef HAVE_MATH_H
22383 #include <math.h>
22384 #endif
22386 int (*ptr)() = (int (*)())csqrtf;
22389 main ()
22391 return 0;
22394 _ACEOF
22395 if ac_fn_c_try_link "$LINENO"; then :
22396 gcc_cv_math_func_csqrtf=yes
22397 else
22398 gcc_cv_math_func_csqrtf=no
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22404 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22405 if test $gcc_cv_math_func_csqrtf = yes; then
22407 cat >>confdefs.h <<_ACEOF
22408 #define HAVE_CSQRTF 1
22409 _ACEOF
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22417 $as_echo_n "checking for csqrt... " >&6; }
22418 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 if test x$gcc_no_link = xyes; then
22422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22427 #ifdef HAVE_COMPLEX_H
22428 #include <complex.h>
22429 #endif
22430 #ifdef HAVE_MATH_H
22431 #include <math.h>
22432 #endif
22434 int (*ptr)() = (int (*)())csqrt;
22437 main ()
22439 return 0;
22442 _ACEOF
22443 if ac_fn_c_try_link "$LINENO"; then :
22444 gcc_cv_math_func_csqrt=yes
22445 else
22446 gcc_cv_math_func_csqrt=no
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22452 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22453 if test $gcc_cv_math_func_csqrt = yes; then
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_CSQRT 1
22457 _ACEOF
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22465 $as_echo_n "checking for csqrtl... " >&6; }
22466 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22467 $as_echo_n "(cached) " >&6
22468 else
22469 if test x$gcc_no_link = xyes; then
22470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22475 #ifdef HAVE_COMPLEX_H
22476 #include <complex.h>
22477 #endif
22478 #ifdef HAVE_MATH_H
22479 #include <math.h>
22480 #endif
22482 int (*ptr)() = (int (*)())csqrtl;
22485 main ()
22487 return 0;
22490 _ACEOF
22491 if ac_fn_c_try_link "$LINENO"; then :
22492 gcc_cv_math_func_csqrtl=yes
22493 else
22494 gcc_cv_math_func_csqrtl=no
22496 rm -f core conftest.err conftest.$ac_objext \
22497 conftest$ac_exeext conftest.$ac_ext
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22500 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22501 if test $gcc_cv_math_func_csqrtl = yes; then
22503 cat >>confdefs.h <<_ACEOF
22504 #define HAVE_CSQRTL 1
22505 _ACEOF
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22513 $as_echo_n "checking for tanf... " >&6; }
22514 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 if test x$gcc_no_link = xyes; then
22518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22523 #ifdef HAVE_COMPLEX_H
22524 #include <complex.h>
22525 #endif
22526 #ifdef HAVE_MATH_H
22527 #include <math.h>
22528 #endif
22530 int (*ptr)() = (int (*)())tanf;
22533 main ()
22535 return 0;
22538 _ACEOF
22539 if ac_fn_c_try_link "$LINENO"; then :
22540 gcc_cv_math_func_tanf=yes
22541 else
22542 gcc_cv_math_func_tanf=no
22544 rm -f core conftest.err conftest.$ac_objext \
22545 conftest$ac_exeext conftest.$ac_ext
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22548 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22549 if test $gcc_cv_math_func_tanf = yes; then
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_TANF 1
22553 _ACEOF
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22561 $as_echo_n "checking for tan... " >&6; }
22562 if test "${gcc_cv_math_func_tan+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 if test x$gcc_no_link = xyes; then
22566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h. */
22571 #ifdef HAVE_COMPLEX_H
22572 #include <complex.h>
22573 #endif
22574 #ifdef HAVE_MATH_H
22575 #include <math.h>
22576 #endif
22578 int (*ptr)() = (int (*)())tan;
22581 main ()
22583 return 0;
22586 _ACEOF
22587 if ac_fn_c_try_link "$LINENO"; then :
22588 gcc_cv_math_func_tan=yes
22589 else
22590 gcc_cv_math_func_tan=no
22592 rm -f core conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22596 $as_echo "$gcc_cv_math_func_tan" >&6; }
22597 if test $gcc_cv_math_func_tan = yes; then
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_TAN 1
22601 _ACEOF
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22609 $as_echo_n "checking for tanl... " >&6; }
22610 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 if test x$gcc_no_link = xyes; then
22614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 #ifdef HAVE_COMPLEX_H
22620 #include <complex.h>
22621 #endif
22622 #ifdef HAVE_MATH_H
22623 #include <math.h>
22624 #endif
22626 int (*ptr)() = (int (*)())tanl;
22629 main ()
22631 return 0;
22634 _ACEOF
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 gcc_cv_math_func_tanl=yes
22637 else
22638 gcc_cv_math_func_tanl=no
22640 rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22644 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22645 if test $gcc_cv_math_func_tanl = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648 #define HAVE_TANL 1
22649 _ACEOF
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22657 $as_echo_n "checking for ctanf... " >&6; }
22658 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22660 else
22661 if test x$gcc_no_link = xyes; then
22662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22665 /* end confdefs.h. */
22667 #ifdef HAVE_COMPLEX_H
22668 #include <complex.h>
22669 #endif
22670 #ifdef HAVE_MATH_H
22671 #include <math.h>
22672 #endif
22674 int (*ptr)() = (int (*)())ctanf;
22677 main ()
22679 return 0;
22682 _ACEOF
22683 if ac_fn_c_try_link "$LINENO"; then :
22684 gcc_cv_math_func_ctanf=yes
22685 else
22686 gcc_cv_math_func_ctanf=no
22688 rm -f core conftest.err conftest.$ac_objext \
22689 conftest$ac_exeext conftest.$ac_ext
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22692 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22693 if test $gcc_cv_math_func_ctanf = yes; then
22695 cat >>confdefs.h <<_ACEOF
22696 #define HAVE_CTANF 1
22697 _ACEOF
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22705 $as_echo_n "checking for ctan... " >&6; }
22706 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 if test x$gcc_no_link = xyes; then
22710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22715 #ifdef HAVE_COMPLEX_H
22716 #include <complex.h>
22717 #endif
22718 #ifdef HAVE_MATH_H
22719 #include <math.h>
22720 #endif
22722 int (*ptr)() = (int (*)())ctan;
22725 main ()
22727 return 0;
22730 _ACEOF
22731 if ac_fn_c_try_link "$LINENO"; then :
22732 gcc_cv_math_func_ctan=yes
22733 else
22734 gcc_cv_math_func_ctan=no
22736 rm -f core conftest.err conftest.$ac_objext \
22737 conftest$ac_exeext conftest.$ac_ext
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22740 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22741 if test $gcc_cv_math_func_ctan = yes; then
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_CTAN 1
22745 _ACEOF
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22753 $as_echo_n "checking for ctanl... " >&6; }
22754 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22755 $as_echo_n "(cached) " >&6
22756 else
22757 if test x$gcc_no_link = xyes; then
22758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22763 #ifdef HAVE_COMPLEX_H
22764 #include <complex.h>
22765 #endif
22766 #ifdef HAVE_MATH_H
22767 #include <math.h>
22768 #endif
22770 int (*ptr)() = (int (*)())ctanl;
22773 main ()
22775 return 0;
22778 _ACEOF
22779 if ac_fn_c_try_link "$LINENO"; then :
22780 gcc_cv_math_func_ctanl=yes
22781 else
22782 gcc_cv_math_func_ctanl=no
22784 rm -f core conftest.err conftest.$ac_objext \
22785 conftest$ac_exeext conftest.$ac_ext
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22788 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22789 if test $gcc_cv_math_func_ctanl = yes; then
22791 cat >>confdefs.h <<_ACEOF
22792 #define HAVE_CTANL 1
22793 _ACEOF
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22801 $as_echo_n "checking for tanhf... " >&6; }
22802 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22804 else
22805 if test x$gcc_no_link = xyes; then
22806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h. */
22811 #ifdef HAVE_COMPLEX_H
22812 #include <complex.h>
22813 #endif
22814 #ifdef HAVE_MATH_H
22815 #include <math.h>
22816 #endif
22818 int (*ptr)() = (int (*)())tanhf;
22821 main ()
22823 return 0;
22826 _ACEOF
22827 if ac_fn_c_try_link "$LINENO"; then :
22828 gcc_cv_math_func_tanhf=yes
22829 else
22830 gcc_cv_math_func_tanhf=no
22832 rm -f core conftest.err conftest.$ac_objext \
22833 conftest$ac_exeext conftest.$ac_ext
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22836 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22837 if test $gcc_cv_math_func_tanhf = yes; then
22839 cat >>confdefs.h <<_ACEOF
22840 #define HAVE_TANHF 1
22841 _ACEOF
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22849 $as_echo_n "checking for tanh... " >&6; }
22850 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22852 else
22853 if test x$gcc_no_link = xyes; then
22854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22859 #ifdef HAVE_COMPLEX_H
22860 #include <complex.h>
22861 #endif
22862 #ifdef HAVE_MATH_H
22863 #include <math.h>
22864 #endif
22866 int (*ptr)() = (int (*)())tanh;
22869 main ()
22871 return 0;
22874 _ACEOF
22875 if ac_fn_c_try_link "$LINENO"; then :
22876 gcc_cv_math_func_tanh=yes
22877 else
22878 gcc_cv_math_func_tanh=no
22880 rm -f core conftest.err conftest.$ac_objext \
22881 conftest$ac_exeext conftest.$ac_ext
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22884 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22885 if test $gcc_cv_math_func_tanh = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_TANH 1
22889 _ACEOF
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22897 $as_echo_n "checking for tanhl... " >&6; }
22898 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22900 else
22901 if test x$gcc_no_link = xyes; then
22902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22907 #ifdef HAVE_COMPLEX_H
22908 #include <complex.h>
22909 #endif
22910 #ifdef HAVE_MATH_H
22911 #include <math.h>
22912 #endif
22914 int (*ptr)() = (int (*)())tanhl;
22917 main ()
22919 return 0;
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"; then :
22924 gcc_cv_math_func_tanhl=yes
22925 else
22926 gcc_cv_math_func_tanhl=no
22928 rm -f core conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22932 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22933 if test $gcc_cv_math_func_tanhl = yes; then
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_TANHL 1
22937 _ACEOF
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22945 $as_echo_n "checking for ctanhf... " >&6; }
22946 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 if test x$gcc_no_link = xyes; then
22950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22955 #ifdef HAVE_COMPLEX_H
22956 #include <complex.h>
22957 #endif
22958 #ifdef HAVE_MATH_H
22959 #include <math.h>
22960 #endif
22962 int (*ptr)() = (int (*)())ctanhf;
22965 main ()
22967 return 0;
22970 _ACEOF
22971 if ac_fn_c_try_link "$LINENO"; then :
22972 gcc_cv_math_func_ctanhf=yes
22973 else
22974 gcc_cv_math_func_ctanhf=no
22976 rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22980 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22981 if test $gcc_cv_math_func_ctanhf = yes; then
22983 cat >>confdefs.h <<_ACEOF
22984 #define HAVE_CTANHF 1
22985 _ACEOF
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22993 $as_echo_n "checking for ctanh... " >&6; }
22994 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 if test x$gcc_no_link = xyes; then
22998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23003 #ifdef HAVE_COMPLEX_H
23004 #include <complex.h>
23005 #endif
23006 #ifdef HAVE_MATH_H
23007 #include <math.h>
23008 #endif
23010 int (*ptr)() = (int (*)())ctanh;
23013 main ()
23015 return 0;
23018 _ACEOF
23019 if ac_fn_c_try_link "$LINENO"; then :
23020 gcc_cv_math_func_ctanh=yes
23021 else
23022 gcc_cv_math_func_ctanh=no
23024 rm -f core conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23028 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23029 if test $gcc_cv_math_func_ctanh = yes; then
23031 cat >>confdefs.h <<_ACEOF
23032 #define HAVE_CTANH 1
23033 _ACEOF
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23041 $as_echo_n "checking for ctanhl... " >&6; }
23042 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23043 $as_echo_n "(cached) " >&6
23044 else
23045 if test x$gcc_no_link = xyes; then
23046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h. */
23051 #ifdef HAVE_COMPLEX_H
23052 #include <complex.h>
23053 #endif
23054 #ifdef HAVE_MATH_H
23055 #include <math.h>
23056 #endif
23058 int (*ptr)() = (int (*)())ctanhl;
23061 main ()
23063 return 0;
23066 _ACEOF
23067 if ac_fn_c_try_link "$LINENO"; then :
23068 gcc_cv_math_func_ctanhl=yes
23069 else
23070 gcc_cv_math_func_ctanhl=no
23072 rm -f core conftest.err conftest.$ac_objext \
23073 conftest$ac_exeext conftest.$ac_ext
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23076 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23077 if test $gcc_cv_math_func_ctanhl = yes; then
23079 cat >>confdefs.h <<_ACEOF
23080 #define HAVE_CTANHL 1
23081 _ACEOF
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23089 $as_echo_n "checking for truncf... " >&6; }
23090 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23091 $as_echo_n "(cached) " >&6
23092 else
23093 if test x$gcc_no_link = xyes; then
23094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097 /* end confdefs.h. */
23099 #ifdef HAVE_COMPLEX_H
23100 #include <complex.h>
23101 #endif
23102 #ifdef HAVE_MATH_H
23103 #include <math.h>
23104 #endif
23106 int (*ptr)() = (int (*)())truncf;
23109 main ()
23111 return 0;
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116 gcc_cv_math_func_truncf=yes
23117 else
23118 gcc_cv_math_func_truncf=no
23120 rm -f core conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23124 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23125 if test $gcc_cv_math_func_truncf = yes; then
23127 cat >>confdefs.h <<_ACEOF
23128 #define HAVE_TRUNCF 1
23129 _ACEOF
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23137 $as_echo_n "checking for trunc... " >&6; }
23138 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23139 $as_echo_n "(cached) " >&6
23140 else
23141 if test x$gcc_no_link = xyes; then
23142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 #ifdef HAVE_COMPLEX_H
23148 #include <complex.h>
23149 #endif
23150 #ifdef HAVE_MATH_H
23151 #include <math.h>
23152 #endif
23154 int (*ptr)() = (int (*)())trunc;
23157 main ()
23159 return 0;
23162 _ACEOF
23163 if ac_fn_c_try_link "$LINENO"; then :
23164 gcc_cv_math_func_trunc=yes
23165 else
23166 gcc_cv_math_func_trunc=no
23168 rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23172 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23173 if test $gcc_cv_math_func_trunc = yes; then
23175 cat >>confdefs.h <<_ACEOF
23176 #define HAVE_TRUNC 1
23177 _ACEOF
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23185 $as_echo_n "checking for truncl... " >&6; }
23186 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23187 $as_echo_n "(cached) " >&6
23188 else
23189 if test x$gcc_no_link = xyes; then
23190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23195 #ifdef HAVE_COMPLEX_H
23196 #include <complex.h>
23197 #endif
23198 #ifdef HAVE_MATH_H
23199 #include <math.h>
23200 #endif
23202 int (*ptr)() = (int (*)())truncl;
23205 main ()
23207 return 0;
23210 _ACEOF
23211 if ac_fn_c_try_link "$LINENO"; then :
23212 gcc_cv_math_func_truncl=yes
23213 else
23214 gcc_cv_math_func_truncl=no
23216 rm -f core conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23220 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23221 if test $gcc_cv_math_func_truncl = yes; then
23223 cat >>confdefs.h <<_ACEOF
23224 #define HAVE_TRUNCL 1
23225 _ACEOF
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23233 $as_echo_n "checking for erff... " >&6; }
23234 if test "${gcc_cv_math_func_erff+set}" = set; then :
23235 $as_echo_n "(cached) " >&6
23236 else
23237 if test x$gcc_no_link = xyes; then
23238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23241 /* end confdefs.h. */
23243 #ifdef HAVE_COMPLEX_H
23244 #include <complex.h>
23245 #endif
23246 #ifdef HAVE_MATH_H
23247 #include <math.h>
23248 #endif
23250 int (*ptr)() = (int (*)())erff;
23253 main ()
23255 return 0;
23258 _ACEOF
23259 if ac_fn_c_try_link "$LINENO"; then :
23260 gcc_cv_math_func_erff=yes
23261 else
23262 gcc_cv_math_func_erff=no
23264 rm -f core conftest.err conftest.$ac_objext \
23265 conftest$ac_exeext conftest.$ac_ext
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23268 $as_echo "$gcc_cv_math_func_erff" >&6; }
23269 if test $gcc_cv_math_func_erff = yes; then
23271 cat >>confdefs.h <<_ACEOF
23272 #define HAVE_ERFF 1
23273 _ACEOF
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23281 $as_echo_n "checking for erf... " >&6; }
23282 if test "${gcc_cv_math_func_erf+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23284 else
23285 if test x$gcc_no_link = xyes; then
23286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23291 #ifdef HAVE_COMPLEX_H
23292 #include <complex.h>
23293 #endif
23294 #ifdef HAVE_MATH_H
23295 #include <math.h>
23296 #endif
23298 int (*ptr)() = (int (*)())erf;
23301 main ()
23303 return 0;
23306 _ACEOF
23307 if ac_fn_c_try_link "$LINENO"; then :
23308 gcc_cv_math_func_erf=yes
23309 else
23310 gcc_cv_math_func_erf=no
23312 rm -f core conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23316 $as_echo "$gcc_cv_math_func_erf" >&6; }
23317 if test $gcc_cv_math_func_erf = yes; then
23319 cat >>confdefs.h <<_ACEOF
23320 #define HAVE_ERF 1
23321 _ACEOF
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23329 $as_echo_n "checking for erfl... " >&6; }
23330 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23333 if test x$gcc_no_link = xyes; then
23334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23339 #ifdef HAVE_COMPLEX_H
23340 #include <complex.h>
23341 #endif
23342 #ifdef HAVE_MATH_H
23343 #include <math.h>
23344 #endif
23346 int (*ptr)() = (int (*)())erfl;
23349 main ()
23351 return 0;
23354 _ACEOF
23355 if ac_fn_c_try_link "$LINENO"; then :
23356 gcc_cv_math_func_erfl=yes
23357 else
23358 gcc_cv_math_func_erfl=no
23360 rm -f core conftest.err conftest.$ac_objext \
23361 conftest$ac_exeext conftest.$ac_ext
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23364 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23365 if test $gcc_cv_math_func_erfl = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_ERFL 1
23369 _ACEOF
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23377 $as_echo_n "checking for erfcf... " >&6; }
23378 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23379 $as_echo_n "(cached) " >&6
23380 else
23381 if test x$gcc_no_link = xyes; then
23382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23385 /* end confdefs.h. */
23387 #ifdef HAVE_COMPLEX_H
23388 #include <complex.h>
23389 #endif
23390 #ifdef HAVE_MATH_H
23391 #include <math.h>
23392 #endif
23394 int (*ptr)() = (int (*)())erfcf;
23397 main ()
23399 return 0;
23402 _ACEOF
23403 if ac_fn_c_try_link "$LINENO"; then :
23404 gcc_cv_math_func_erfcf=yes
23405 else
23406 gcc_cv_math_func_erfcf=no
23408 rm -f core conftest.err conftest.$ac_objext \
23409 conftest$ac_exeext conftest.$ac_ext
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23412 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23413 if test $gcc_cv_math_func_erfcf = yes; then
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_ERFCF 1
23417 _ACEOF
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23425 $as_echo_n "checking for erfc... " >&6; }
23426 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23428 else
23429 if test x$gcc_no_link = xyes; then
23430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23435 #ifdef HAVE_COMPLEX_H
23436 #include <complex.h>
23437 #endif
23438 #ifdef HAVE_MATH_H
23439 #include <math.h>
23440 #endif
23442 int (*ptr)() = (int (*)())erfc;
23445 main ()
23447 return 0;
23450 _ACEOF
23451 if ac_fn_c_try_link "$LINENO"; then :
23452 gcc_cv_math_func_erfc=yes
23453 else
23454 gcc_cv_math_func_erfc=no
23456 rm -f core conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23460 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23461 if test $gcc_cv_math_func_erfc = yes; then
23463 cat >>confdefs.h <<_ACEOF
23464 #define HAVE_ERFC 1
23465 _ACEOF
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23473 $as_echo_n "checking for erfcl... " >&6; }
23474 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23475 $as_echo_n "(cached) " >&6
23476 else
23477 if test x$gcc_no_link = xyes; then
23478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481 /* end confdefs.h. */
23483 #ifdef HAVE_COMPLEX_H
23484 #include <complex.h>
23485 #endif
23486 #ifdef HAVE_MATH_H
23487 #include <math.h>
23488 #endif
23490 int (*ptr)() = (int (*)())erfcl;
23493 main ()
23495 return 0;
23498 _ACEOF
23499 if ac_fn_c_try_link "$LINENO"; then :
23500 gcc_cv_math_func_erfcl=yes
23501 else
23502 gcc_cv_math_func_erfcl=no
23504 rm -f core conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext conftest.$ac_ext
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23508 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23509 if test $gcc_cv_math_func_erfcl = yes; then
23511 cat >>confdefs.h <<_ACEOF
23512 #define HAVE_ERFCL 1
23513 _ACEOF
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23521 $as_echo_n "checking for j0f... " >&6; }
23522 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23523 $as_echo_n "(cached) " >&6
23524 else
23525 if test x$gcc_no_link = xyes; then
23526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23531 #ifdef HAVE_COMPLEX_H
23532 #include <complex.h>
23533 #endif
23534 #ifdef HAVE_MATH_H
23535 #include <math.h>
23536 #endif
23538 int (*ptr)() = (int (*)())j0f;
23541 main ()
23543 return 0;
23546 _ACEOF
23547 if ac_fn_c_try_link "$LINENO"; then :
23548 gcc_cv_math_func_j0f=yes
23549 else
23550 gcc_cv_math_func_j0f=no
23552 rm -f core conftest.err conftest.$ac_objext \
23553 conftest$ac_exeext conftest.$ac_ext
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23556 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23557 if test $gcc_cv_math_func_j0f = yes; then
23559 cat >>confdefs.h <<_ACEOF
23560 #define HAVE_J0F 1
23561 _ACEOF
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23569 $as_echo_n "checking for j0... " >&6; }
23570 if test "${gcc_cv_math_func_j0+set}" = set; then :
23571 $as_echo_n "(cached) " >&6
23572 else
23573 if test x$gcc_no_link = xyes; then
23574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23579 #ifdef HAVE_COMPLEX_H
23580 #include <complex.h>
23581 #endif
23582 #ifdef HAVE_MATH_H
23583 #include <math.h>
23584 #endif
23586 int (*ptr)() = (int (*)())j0;
23589 main ()
23591 return 0;
23594 _ACEOF
23595 if ac_fn_c_try_link "$LINENO"; then :
23596 gcc_cv_math_func_j0=yes
23597 else
23598 gcc_cv_math_func_j0=no
23600 rm -f core conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23604 $as_echo "$gcc_cv_math_func_j0" >&6; }
23605 if test $gcc_cv_math_func_j0 = yes; then
23607 cat >>confdefs.h <<_ACEOF
23608 #define HAVE_J0 1
23609 _ACEOF
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23617 $as_echo_n "checking for j0l... " >&6; }
23618 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23619 $as_echo_n "(cached) " >&6
23620 else
23621 if test x$gcc_no_link = xyes; then
23622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625 /* end confdefs.h. */
23627 #ifdef HAVE_COMPLEX_H
23628 #include <complex.h>
23629 #endif
23630 #ifdef HAVE_MATH_H
23631 #include <math.h>
23632 #endif
23634 int (*ptr)() = (int (*)())j0l;
23637 main ()
23639 return 0;
23642 _ACEOF
23643 if ac_fn_c_try_link "$LINENO"; then :
23644 gcc_cv_math_func_j0l=yes
23645 else
23646 gcc_cv_math_func_j0l=no
23648 rm -f core conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext conftest.$ac_ext
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23652 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23653 if test $gcc_cv_math_func_j0l = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define HAVE_J0L 1
23657 _ACEOF
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23665 $as_echo_n "checking for j1f... " >&6; }
23666 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23667 $as_echo_n "(cached) " >&6
23668 else
23669 if test x$gcc_no_link = xyes; then
23670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23673 /* end confdefs.h. */
23675 #ifdef HAVE_COMPLEX_H
23676 #include <complex.h>
23677 #endif
23678 #ifdef HAVE_MATH_H
23679 #include <math.h>
23680 #endif
23682 int (*ptr)() = (int (*)())j1f;
23685 main ()
23687 return 0;
23690 _ACEOF
23691 if ac_fn_c_try_link "$LINENO"; then :
23692 gcc_cv_math_func_j1f=yes
23693 else
23694 gcc_cv_math_func_j1f=no
23696 rm -f core conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23700 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23701 if test $gcc_cv_math_func_j1f = yes; then
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_J1F 1
23705 _ACEOF
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23713 $as_echo_n "checking for j1... " >&6; }
23714 if test "${gcc_cv_math_func_j1+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23716 else
23717 if test x$gcc_no_link = xyes; then
23718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23723 #ifdef HAVE_COMPLEX_H
23724 #include <complex.h>
23725 #endif
23726 #ifdef HAVE_MATH_H
23727 #include <math.h>
23728 #endif
23730 int (*ptr)() = (int (*)())j1;
23733 main ()
23735 return 0;
23738 _ACEOF
23739 if ac_fn_c_try_link "$LINENO"; then :
23740 gcc_cv_math_func_j1=yes
23741 else
23742 gcc_cv_math_func_j1=no
23744 rm -f core conftest.err conftest.$ac_objext \
23745 conftest$ac_exeext conftest.$ac_ext
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23748 $as_echo "$gcc_cv_math_func_j1" >&6; }
23749 if test $gcc_cv_math_func_j1 = yes; then
23751 cat >>confdefs.h <<_ACEOF
23752 #define HAVE_J1 1
23753 _ACEOF
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23761 $as_echo_n "checking for j1l... " >&6; }
23762 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23764 else
23765 if test x$gcc_no_link = xyes; then
23766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23771 #ifdef HAVE_COMPLEX_H
23772 #include <complex.h>
23773 #endif
23774 #ifdef HAVE_MATH_H
23775 #include <math.h>
23776 #endif
23778 int (*ptr)() = (int (*)())j1l;
23781 main ()
23783 return 0;
23786 _ACEOF
23787 if ac_fn_c_try_link "$LINENO"; then :
23788 gcc_cv_math_func_j1l=yes
23789 else
23790 gcc_cv_math_func_j1l=no
23792 rm -f core conftest.err conftest.$ac_objext \
23793 conftest$ac_exeext conftest.$ac_ext
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23796 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23797 if test $gcc_cv_math_func_j1l = yes; then
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_J1L 1
23801 _ACEOF
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23809 $as_echo_n "checking for jnf... " >&6; }
23810 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 if test x$gcc_no_link = xyes; then
23814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23819 #ifdef HAVE_COMPLEX_H
23820 #include <complex.h>
23821 #endif
23822 #ifdef HAVE_MATH_H
23823 #include <math.h>
23824 #endif
23826 int (*ptr)() = (int (*)())jnf;
23829 main ()
23831 return 0;
23834 _ACEOF
23835 if ac_fn_c_try_link "$LINENO"; then :
23836 gcc_cv_math_func_jnf=yes
23837 else
23838 gcc_cv_math_func_jnf=no
23840 rm -f core conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23844 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23845 if test $gcc_cv_math_func_jnf = yes; then
23847 cat >>confdefs.h <<_ACEOF
23848 #define HAVE_JNF 1
23849 _ACEOF
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23857 $as_echo_n "checking for jn... " >&6; }
23858 if test "${gcc_cv_math_func_jn+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23860 else
23861 if test x$gcc_no_link = xyes; then
23862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h. */
23867 #ifdef HAVE_COMPLEX_H
23868 #include <complex.h>
23869 #endif
23870 #ifdef HAVE_MATH_H
23871 #include <math.h>
23872 #endif
23874 int (*ptr)() = (int (*)())jn;
23877 main ()
23879 return 0;
23882 _ACEOF
23883 if ac_fn_c_try_link "$LINENO"; then :
23884 gcc_cv_math_func_jn=yes
23885 else
23886 gcc_cv_math_func_jn=no
23888 rm -f core conftest.err conftest.$ac_objext \
23889 conftest$ac_exeext conftest.$ac_ext
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23892 $as_echo "$gcc_cv_math_func_jn" >&6; }
23893 if test $gcc_cv_math_func_jn = yes; then
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_JN 1
23897 _ACEOF
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23905 $as_echo_n "checking for jnl... " >&6; }
23906 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23908 else
23909 if test x$gcc_no_link = xyes; then
23910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23913 /* end confdefs.h. */
23915 #ifdef HAVE_COMPLEX_H
23916 #include <complex.h>
23917 #endif
23918 #ifdef HAVE_MATH_H
23919 #include <math.h>
23920 #endif
23922 int (*ptr)() = (int (*)())jnl;
23925 main ()
23927 return 0;
23930 _ACEOF
23931 if ac_fn_c_try_link "$LINENO"; then :
23932 gcc_cv_math_func_jnl=yes
23933 else
23934 gcc_cv_math_func_jnl=no
23936 rm -f core conftest.err conftest.$ac_objext \
23937 conftest$ac_exeext conftest.$ac_ext
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23940 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23941 if test $gcc_cv_math_func_jnl = yes; then
23943 cat >>confdefs.h <<_ACEOF
23944 #define HAVE_JNL 1
23945 _ACEOF
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23953 $as_echo_n "checking for y0f... " >&6; }
23954 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23956 else
23957 if test x$gcc_no_link = xyes; then
23958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h. */
23963 #ifdef HAVE_COMPLEX_H
23964 #include <complex.h>
23965 #endif
23966 #ifdef HAVE_MATH_H
23967 #include <math.h>
23968 #endif
23970 int (*ptr)() = (int (*)())y0f;
23973 main ()
23975 return 0;
23978 _ACEOF
23979 if ac_fn_c_try_link "$LINENO"; then :
23980 gcc_cv_math_func_y0f=yes
23981 else
23982 gcc_cv_math_func_y0f=no
23984 rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23988 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23989 if test $gcc_cv_math_func_y0f = yes; then
23991 cat >>confdefs.h <<_ACEOF
23992 #define HAVE_Y0F 1
23993 _ACEOF
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24001 $as_echo_n "checking for y0... " >&6; }
24002 if test "${gcc_cv_math_func_y0+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 if test x$gcc_no_link = xyes; then
24006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24011 #ifdef HAVE_COMPLEX_H
24012 #include <complex.h>
24013 #endif
24014 #ifdef HAVE_MATH_H
24015 #include <math.h>
24016 #endif
24018 int (*ptr)() = (int (*)())y0;
24021 main ()
24023 return 0;
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 gcc_cv_math_func_y0=yes
24029 else
24030 gcc_cv_math_func_y0=no
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24036 $as_echo "$gcc_cv_math_func_y0" >&6; }
24037 if test $gcc_cv_math_func_y0 = yes; then
24039 cat >>confdefs.h <<_ACEOF
24040 #define HAVE_Y0 1
24041 _ACEOF
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24049 $as_echo_n "checking for y0l... " >&6; }
24050 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 if test x$gcc_no_link = xyes; then
24054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057 /* end confdefs.h. */
24059 #ifdef HAVE_COMPLEX_H
24060 #include <complex.h>
24061 #endif
24062 #ifdef HAVE_MATH_H
24063 #include <math.h>
24064 #endif
24066 int (*ptr)() = (int (*)())y0l;
24069 main ()
24071 return 0;
24074 _ACEOF
24075 if ac_fn_c_try_link "$LINENO"; then :
24076 gcc_cv_math_func_y0l=yes
24077 else
24078 gcc_cv_math_func_y0l=no
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24084 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24085 if test $gcc_cv_math_func_y0l = yes; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define HAVE_Y0L 1
24089 _ACEOF
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24097 $as_echo_n "checking for y1f... " >&6; }
24098 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 if test x$gcc_no_link = xyes; then
24102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24105 /* end confdefs.h. */
24107 #ifdef HAVE_COMPLEX_H
24108 #include <complex.h>
24109 #endif
24110 #ifdef HAVE_MATH_H
24111 #include <math.h>
24112 #endif
24114 int (*ptr)() = (int (*)())y1f;
24117 main ()
24119 return 0;
24122 _ACEOF
24123 if ac_fn_c_try_link "$LINENO"; then :
24124 gcc_cv_math_func_y1f=yes
24125 else
24126 gcc_cv_math_func_y1f=no
24128 rm -f core conftest.err conftest.$ac_objext \
24129 conftest$ac_exeext conftest.$ac_ext
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24132 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24133 if test $gcc_cv_math_func_y1f = yes; then
24135 cat >>confdefs.h <<_ACEOF
24136 #define HAVE_Y1F 1
24137 _ACEOF
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24145 $as_echo_n "checking for y1... " >&6; }
24146 if test "${gcc_cv_math_func_y1+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 if test x$gcc_no_link = xyes; then
24150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24155 #ifdef HAVE_COMPLEX_H
24156 #include <complex.h>
24157 #endif
24158 #ifdef HAVE_MATH_H
24159 #include <math.h>
24160 #endif
24162 int (*ptr)() = (int (*)())y1;
24165 main ()
24167 return 0;
24170 _ACEOF
24171 if ac_fn_c_try_link "$LINENO"; then :
24172 gcc_cv_math_func_y1=yes
24173 else
24174 gcc_cv_math_func_y1=no
24176 rm -f core conftest.err conftest.$ac_objext \
24177 conftest$ac_exeext conftest.$ac_ext
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24180 $as_echo "$gcc_cv_math_func_y1" >&6; }
24181 if test $gcc_cv_math_func_y1 = yes; then
24183 cat >>confdefs.h <<_ACEOF
24184 #define HAVE_Y1 1
24185 _ACEOF
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24193 $as_echo_n "checking for y1l... " >&6; }
24194 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 if test x$gcc_no_link = xyes; then
24198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24203 #ifdef HAVE_COMPLEX_H
24204 #include <complex.h>
24205 #endif
24206 #ifdef HAVE_MATH_H
24207 #include <math.h>
24208 #endif
24210 int (*ptr)() = (int (*)())y1l;
24213 main ()
24215 return 0;
24218 _ACEOF
24219 if ac_fn_c_try_link "$LINENO"; then :
24220 gcc_cv_math_func_y1l=yes
24221 else
24222 gcc_cv_math_func_y1l=no
24224 rm -f core conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24228 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24229 if test $gcc_cv_math_func_y1l = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define HAVE_Y1L 1
24233 _ACEOF
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24241 $as_echo_n "checking for ynf... " >&6; }
24242 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24243 $as_echo_n "(cached) " >&6
24244 else
24245 if test x$gcc_no_link = xyes; then
24246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h. */
24251 #ifdef HAVE_COMPLEX_H
24252 #include <complex.h>
24253 #endif
24254 #ifdef HAVE_MATH_H
24255 #include <math.h>
24256 #endif
24258 int (*ptr)() = (int (*)())ynf;
24261 main ()
24263 return 0;
24266 _ACEOF
24267 if ac_fn_c_try_link "$LINENO"; then :
24268 gcc_cv_math_func_ynf=yes
24269 else
24270 gcc_cv_math_func_ynf=no
24272 rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24276 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24277 if test $gcc_cv_math_func_ynf = yes; then
24279 cat >>confdefs.h <<_ACEOF
24280 #define HAVE_YNF 1
24281 _ACEOF
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24289 $as_echo_n "checking for yn... " >&6; }
24290 if test "${gcc_cv_math_func_yn+set}" = set; then :
24291 $as_echo_n "(cached) " >&6
24292 else
24293 if test x$gcc_no_link = xyes; then
24294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24299 #ifdef HAVE_COMPLEX_H
24300 #include <complex.h>
24301 #endif
24302 #ifdef HAVE_MATH_H
24303 #include <math.h>
24304 #endif
24306 int (*ptr)() = (int (*)())yn;
24309 main ()
24311 return 0;
24314 _ACEOF
24315 if ac_fn_c_try_link "$LINENO"; then :
24316 gcc_cv_math_func_yn=yes
24317 else
24318 gcc_cv_math_func_yn=no
24320 rm -f core conftest.err conftest.$ac_objext \
24321 conftest$ac_exeext conftest.$ac_ext
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24324 $as_echo "$gcc_cv_math_func_yn" >&6; }
24325 if test $gcc_cv_math_func_yn = yes; then
24327 cat >>confdefs.h <<_ACEOF
24328 #define HAVE_YN 1
24329 _ACEOF
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24337 $as_echo_n "checking for ynl... " >&6; }
24338 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24339 $as_echo_n "(cached) " >&6
24340 else
24341 if test x$gcc_no_link = xyes; then
24342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24347 #ifdef HAVE_COMPLEX_H
24348 #include <complex.h>
24349 #endif
24350 #ifdef HAVE_MATH_H
24351 #include <math.h>
24352 #endif
24354 int (*ptr)() = (int (*)())ynl;
24357 main ()
24359 return 0;
24362 _ACEOF
24363 if ac_fn_c_try_link "$LINENO"; then :
24364 gcc_cv_math_func_ynl=yes
24365 else
24366 gcc_cv_math_func_ynl=no
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24372 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24373 if test $gcc_cv_math_func_ynl = yes; then
24375 cat >>confdefs.h <<_ACEOF
24376 #define HAVE_YNL 1
24377 _ACEOF
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24385 $as_echo_n "checking for tgamma... " >&6; }
24386 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24387 $as_echo_n "(cached) " >&6
24388 else
24389 if test x$gcc_no_link = xyes; then
24390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24395 #ifdef HAVE_COMPLEX_H
24396 #include <complex.h>
24397 #endif
24398 #ifdef HAVE_MATH_H
24399 #include <math.h>
24400 #endif
24402 int (*ptr)() = (int (*)())tgamma;
24405 main ()
24407 return 0;
24410 _ACEOF
24411 if ac_fn_c_try_link "$LINENO"; then :
24412 gcc_cv_math_func_tgamma=yes
24413 else
24414 gcc_cv_math_func_tgamma=no
24416 rm -f core conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24420 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24421 if test $gcc_cv_math_func_tgamma = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_TGAMMA 1
24425 _ACEOF
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24433 $as_echo_n "checking for tgammaf... " >&6; }
24434 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 if test x$gcc_no_link = xyes; then
24438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24443 #ifdef HAVE_COMPLEX_H
24444 #include <complex.h>
24445 #endif
24446 #ifdef HAVE_MATH_H
24447 #include <math.h>
24448 #endif
24450 int (*ptr)() = (int (*)())tgammaf;
24453 main ()
24455 return 0;
24458 _ACEOF
24459 if ac_fn_c_try_link "$LINENO"; then :
24460 gcc_cv_math_func_tgammaf=yes
24461 else
24462 gcc_cv_math_func_tgammaf=no
24464 rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24468 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24469 if test $gcc_cv_math_func_tgammaf = yes; then
24471 cat >>confdefs.h <<_ACEOF
24472 #define HAVE_TGAMMAF 1
24473 _ACEOF
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24481 $as_echo_n "checking for tgammal... " >&6; }
24482 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test x$gcc_no_link = xyes; then
24486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489 /* end confdefs.h. */
24491 #ifdef HAVE_COMPLEX_H
24492 #include <complex.h>
24493 #endif
24494 #ifdef HAVE_MATH_H
24495 #include <math.h>
24496 #endif
24498 int (*ptr)() = (int (*)())tgammal;
24501 main ()
24503 return 0;
24506 _ACEOF
24507 if ac_fn_c_try_link "$LINENO"; then :
24508 gcc_cv_math_func_tgammal=yes
24509 else
24510 gcc_cv_math_func_tgammal=no
24512 rm -f core conftest.err conftest.$ac_objext \
24513 conftest$ac_exeext conftest.$ac_ext
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24516 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24517 if test $gcc_cv_math_func_tgammal = yes; then
24519 cat >>confdefs.h <<_ACEOF
24520 #define HAVE_TGAMMAL 1
24521 _ACEOF
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24529 $as_echo_n "checking for lgamma... " >&6; }
24530 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 if test x$gcc_no_link = xyes; then
24534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24539 #ifdef HAVE_COMPLEX_H
24540 #include <complex.h>
24541 #endif
24542 #ifdef HAVE_MATH_H
24543 #include <math.h>
24544 #endif
24546 int (*ptr)() = (int (*)())lgamma;
24549 main ()
24551 return 0;
24554 _ACEOF
24555 if ac_fn_c_try_link "$LINENO"; then :
24556 gcc_cv_math_func_lgamma=yes
24557 else
24558 gcc_cv_math_func_lgamma=no
24560 rm -f core conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24564 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24565 if test $gcc_cv_math_func_lgamma = yes; then
24567 cat >>confdefs.h <<_ACEOF
24568 #define HAVE_LGAMMA 1
24569 _ACEOF
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24577 $as_echo_n "checking for lgammaf... " >&6; }
24578 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24580 else
24581 if test x$gcc_no_link = xyes; then
24582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 #ifdef HAVE_COMPLEX_H
24588 #include <complex.h>
24589 #endif
24590 #ifdef HAVE_MATH_H
24591 #include <math.h>
24592 #endif
24594 int (*ptr)() = (int (*)())lgammaf;
24597 main ()
24599 return 0;
24602 _ACEOF
24603 if ac_fn_c_try_link "$LINENO"; then :
24604 gcc_cv_math_func_lgammaf=yes
24605 else
24606 gcc_cv_math_func_lgammaf=no
24608 rm -f core conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24612 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24613 if test $gcc_cv_math_func_lgammaf = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LGAMMAF 1
24617 _ACEOF
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24625 $as_echo_n "checking for lgammal... " >&6; }
24626 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24628 else
24629 if test x$gcc_no_link = xyes; then
24630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633 /* end confdefs.h. */
24635 #ifdef HAVE_COMPLEX_H
24636 #include <complex.h>
24637 #endif
24638 #ifdef HAVE_MATH_H
24639 #include <math.h>
24640 #endif
24642 int (*ptr)() = (int (*)())lgammal;
24645 main ()
24647 return 0;
24650 _ACEOF
24651 if ac_fn_c_try_link "$LINENO"; then :
24652 gcc_cv_math_func_lgammal=yes
24653 else
24654 gcc_cv_math_func_lgammal=no
24656 rm -f core conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24660 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24661 if test $gcc_cv_math_func_lgammal = yes; then
24663 cat >>confdefs.h <<_ACEOF
24664 #define HAVE_LGAMMAL 1
24665 _ACEOF
24670 # Check for GFORTRAN_C99_1.1 funcs
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24675 $as_echo_n "checking for cacos... " >&6; }
24676 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24678 else
24679 if test x$gcc_no_link = xyes; then
24680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24685 #ifdef HAVE_COMPLEX_H
24686 #include <complex.h>
24687 #endif
24688 #ifdef HAVE_MATH_H
24689 #include <math.h>
24690 #endif
24692 int (*ptr)() = (int (*)())cacos;
24695 main ()
24697 return 0;
24700 _ACEOF
24701 if ac_fn_c_try_link "$LINENO"; then :
24702 gcc_cv_math_func_cacos=yes
24703 else
24704 gcc_cv_math_func_cacos=no
24706 rm -f core conftest.err conftest.$ac_objext \
24707 conftest$ac_exeext conftest.$ac_ext
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24710 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24711 if test $gcc_cv_math_func_cacos = yes; then
24713 cat >>confdefs.h <<_ACEOF
24714 #define HAVE_CACOS 1
24715 _ACEOF
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24723 $as_echo_n "checking for cacosf... " >&6; }
24724 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24727 if test x$gcc_no_link = xyes; then
24728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731 /* end confdefs.h. */
24733 #ifdef HAVE_COMPLEX_H
24734 #include <complex.h>
24735 #endif
24736 #ifdef HAVE_MATH_H
24737 #include <math.h>
24738 #endif
24740 int (*ptr)() = (int (*)())cacosf;
24743 main ()
24745 return 0;
24748 _ACEOF
24749 if ac_fn_c_try_link "$LINENO"; then :
24750 gcc_cv_math_func_cacosf=yes
24751 else
24752 gcc_cv_math_func_cacosf=no
24754 rm -f core conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24758 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24759 if test $gcc_cv_math_func_cacosf = yes; then
24761 cat >>confdefs.h <<_ACEOF
24762 #define HAVE_CACOSF 1
24763 _ACEOF
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24771 $as_echo_n "checking for cacosh... " >&6; }
24772 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 if test x$gcc_no_link = xyes; then
24776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24781 #ifdef HAVE_COMPLEX_H
24782 #include <complex.h>
24783 #endif
24784 #ifdef HAVE_MATH_H
24785 #include <math.h>
24786 #endif
24788 int (*ptr)() = (int (*)())cacosh;
24791 main ()
24793 return 0;
24796 _ACEOF
24797 if ac_fn_c_try_link "$LINENO"; then :
24798 gcc_cv_math_func_cacosh=yes
24799 else
24800 gcc_cv_math_func_cacosh=no
24802 rm -f core conftest.err conftest.$ac_objext \
24803 conftest$ac_exeext conftest.$ac_ext
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24806 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24807 if test $gcc_cv_math_func_cacosh = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define HAVE_CACOSH 1
24811 _ACEOF
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24819 $as_echo_n "checking for cacoshf... " >&6; }
24820 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 if test x$gcc_no_link = xyes; then
24824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24827 /* end confdefs.h. */
24829 #ifdef HAVE_COMPLEX_H
24830 #include <complex.h>
24831 #endif
24832 #ifdef HAVE_MATH_H
24833 #include <math.h>
24834 #endif
24836 int (*ptr)() = (int (*)())cacoshf;
24839 main ()
24841 return 0;
24844 _ACEOF
24845 if ac_fn_c_try_link "$LINENO"; then :
24846 gcc_cv_math_func_cacoshf=yes
24847 else
24848 gcc_cv_math_func_cacoshf=no
24850 rm -f core conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24854 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24855 if test $gcc_cv_math_func_cacoshf = yes; then
24857 cat >>confdefs.h <<_ACEOF
24858 #define HAVE_CACOSHF 1
24859 _ACEOF
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24867 $as_echo_n "checking for cacoshl... " >&6; }
24868 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24870 else
24871 if test x$gcc_no_link = xyes; then
24872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 #ifdef HAVE_COMPLEX_H
24878 #include <complex.h>
24879 #endif
24880 #ifdef HAVE_MATH_H
24881 #include <math.h>
24882 #endif
24884 int (*ptr)() = (int (*)())cacoshl;
24887 main ()
24889 return 0;
24892 _ACEOF
24893 if ac_fn_c_try_link "$LINENO"; then :
24894 gcc_cv_math_func_cacoshl=yes
24895 else
24896 gcc_cv_math_func_cacoshl=no
24898 rm -f core conftest.err conftest.$ac_objext \
24899 conftest$ac_exeext conftest.$ac_ext
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24902 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24903 if test $gcc_cv_math_func_cacoshl = yes; then
24905 cat >>confdefs.h <<_ACEOF
24906 #define HAVE_CACOSHL 1
24907 _ACEOF
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24915 $as_echo_n "checking for cacosl... " >&6; }
24916 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24917 $as_echo_n "(cached) " >&6
24918 else
24919 if test x$gcc_no_link = xyes; then
24920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24925 #ifdef HAVE_COMPLEX_H
24926 #include <complex.h>
24927 #endif
24928 #ifdef HAVE_MATH_H
24929 #include <math.h>
24930 #endif
24932 int (*ptr)() = (int (*)())cacosl;
24935 main ()
24937 return 0;
24940 _ACEOF
24941 if ac_fn_c_try_link "$LINENO"; then :
24942 gcc_cv_math_func_cacosl=yes
24943 else
24944 gcc_cv_math_func_cacosl=no
24946 rm -f core conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24950 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24951 if test $gcc_cv_math_func_cacosl = yes; then
24953 cat >>confdefs.h <<_ACEOF
24954 #define HAVE_CACOSL 1
24955 _ACEOF
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24963 $as_echo_n "checking for casin... " >&6; }
24964 if test "${gcc_cv_math_func_casin+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 if test x$gcc_no_link = xyes; then
24968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24973 #ifdef HAVE_COMPLEX_H
24974 #include <complex.h>
24975 #endif
24976 #ifdef HAVE_MATH_H
24977 #include <math.h>
24978 #endif
24980 int (*ptr)() = (int (*)())casin;
24983 main ()
24985 return 0;
24988 _ACEOF
24989 if ac_fn_c_try_link "$LINENO"; then :
24990 gcc_cv_math_func_casin=yes
24991 else
24992 gcc_cv_math_func_casin=no
24994 rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24998 $as_echo "$gcc_cv_math_func_casin" >&6; }
24999 if test $gcc_cv_math_func_casin = yes; then
25001 cat >>confdefs.h <<_ACEOF
25002 #define HAVE_CASIN 1
25003 _ACEOF
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25011 $as_echo_n "checking for casinf... " >&6; }
25012 if test "${gcc_cv_math_func_casinf+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 if test x$gcc_no_link = xyes; then
25016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019 /* end confdefs.h. */
25021 #ifdef HAVE_COMPLEX_H
25022 #include <complex.h>
25023 #endif
25024 #ifdef HAVE_MATH_H
25025 #include <math.h>
25026 #endif
25028 int (*ptr)() = (int (*)())casinf;
25031 main ()
25033 return 0;
25036 _ACEOF
25037 if ac_fn_c_try_link "$LINENO"; then :
25038 gcc_cv_math_func_casinf=yes
25039 else
25040 gcc_cv_math_func_casinf=no
25042 rm -f core conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25046 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25047 if test $gcc_cv_math_func_casinf = yes; then
25049 cat >>confdefs.h <<_ACEOF
25050 #define HAVE_CASINF 1
25051 _ACEOF
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25059 $as_echo_n "checking for casinh... " >&6; }
25060 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 if test x$gcc_no_link = xyes; then
25064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25067 /* end confdefs.h. */
25069 #ifdef HAVE_COMPLEX_H
25070 #include <complex.h>
25071 #endif
25072 #ifdef HAVE_MATH_H
25073 #include <math.h>
25074 #endif
25076 int (*ptr)() = (int (*)())casinh;
25079 main ()
25081 return 0;
25084 _ACEOF
25085 if ac_fn_c_try_link "$LINENO"; then :
25086 gcc_cv_math_func_casinh=yes
25087 else
25088 gcc_cv_math_func_casinh=no
25090 rm -f core conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25094 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25095 if test $gcc_cv_math_func_casinh = yes; then
25097 cat >>confdefs.h <<_ACEOF
25098 #define HAVE_CASINH 1
25099 _ACEOF
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25107 $as_echo_n "checking for casinhf... " >&6; }
25108 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 if test x$gcc_no_link = xyes; then
25112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25117 #ifdef HAVE_COMPLEX_H
25118 #include <complex.h>
25119 #endif
25120 #ifdef HAVE_MATH_H
25121 #include <math.h>
25122 #endif
25124 int (*ptr)() = (int (*)())casinhf;
25127 main ()
25129 return 0;
25132 _ACEOF
25133 if ac_fn_c_try_link "$LINENO"; then :
25134 gcc_cv_math_func_casinhf=yes
25135 else
25136 gcc_cv_math_func_casinhf=no
25138 rm -f core conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25142 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25143 if test $gcc_cv_math_func_casinhf = yes; then
25145 cat >>confdefs.h <<_ACEOF
25146 #define HAVE_CASINHF 1
25147 _ACEOF
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25155 $as_echo_n "checking for casinhl... " >&6; }
25156 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25157 $as_echo_n "(cached) " >&6
25158 else
25159 if test x$gcc_no_link = xyes; then
25160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25165 #ifdef HAVE_COMPLEX_H
25166 #include <complex.h>
25167 #endif
25168 #ifdef HAVE_MATH_H
25169 #include <math.h>
25170 #endif
25172 int (*ptr)() = (int (*)())casinhl;
25175 main ()
25177 return 0;
25180 _ACEOF
25181 if ac_fn_c_try_link "$LINENO"; then :
25182 gcc_cv_math_func_casinhl=yes
25183 else
25184 gcc_cv_math_func_casinhl=no
25186 rm -f core conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25190 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25191 if test $gcc_cv_math_func_casinhl = yes; then
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_CASINHL 1
25195 _ACEOF
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25203 $as_echo_n "checking for casinl... " >&6; }
25204 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 if test x$gcc_no_link = xyes; then
25208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h. */
25213 #ifdef HAVE_COMPLEX_H
25214 #include <complex.h>
25215 #endif
25216 #ifdef HAVE_MATH_H
25217 #include <math.h>
25218 #endif
25220 int (*ptr)() = (int (*)())casinl;
25223 main ()
25225 return 0;
25228 _ACEOF
25229 if ac_fn_c_try_link "$LINENO"; then :
25230 gcc_cv_math_func_casinl=yes
25231 else
25232 gcc_cv_math_func_casinl=no
25234 rm -f core conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25238 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25239 if test $gcc_cv_math_func_casinl = yes; then
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_CASINL 1
25243 _ACEOF
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25251 $as_echo_n "checking for catan... " >&6; }
25252 if test "${gcc_cv_math_func_catan+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 if test x$gcc_no_link = xyes; then
25256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25259 /* end confdefs.h. */
25261 #ifdef HAVE_COMPLEX_H
25262 #include <complex.h>
25263 #endif
25264 #ifdef HAVE_MATH_H
25265 #include <math.h>
25266 #endif
25268 int (*ptr)() = (int (*)())catan;
25271 main ()
25273 return 0;
25276 _ACEOF
25277 if ac_fn_c_try_link "$LINENO"; then :
25278 gcc_cv_math_func_catan=yes
25279 else
25280 gcc_cv_math_func_catan=no
25282 rm -f core conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25286 $as_echo "$gcc_cv_math_func_catan" >&6; }
25287 if test $gcc_cv_math_func_catan = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define HAVE_CATAN 1
25291 _ACEOF
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25299 $as_echo_n "checking for catanf... " >&6; }
25300 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25301 $as_echo_n "(cached) " >&6
25302 else
25303 if test x$gcc_no_link = xyes; then
25304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25309 #ifdef HAVE_COMPLEX_H
25310 #include <complex.h>
25311 #endif
25312 #ifdef HAVE_MATH_H
25313 #include <math.h>
25314 #endif
25316 int (*ptr)() = (int (*)())catanf;
25319 main ()
25321 return 0;
25324 _ACEOF
25325 if ac_fn_c_try_link "$LINENO"; then :
25326 gcc_cv_math_func_catanf=yes
25327 else
25328 gcc_cv_math_func_catanf=no
25330 rm -f core conftest.err conftest.$ac_objext \
25331 conftest$ac_exeext conftest.$ac_ext
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25334 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25335 if test $gcc_cv_math_func_catanf = yes; then
25337 cat >>confdefs.h <<_ACEOF
25338 #define HAVE_CATANF 1
25339 _ACEOF
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25347 $as_echo_n "checking for catanh... " >&6; }
25348 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25349 $as_echo_n "(cached) " >&6
25350 else
25351 if test x$gcc_no_link = xyes; then
25352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 #ifdef HAVE_COMPLEX_H
25358 #include <complex.h>
25359 #endif
25360 #ifdef HAVE_MATH_H
25361 #include <math.h>
25362 #endif
25364 int (*ptr)() = (int (*)())catanh;
25367 main ()
25369 return 0;
25372 _ACEOF
25373 if ac_fn_c_try_link "$LINENO"; then :
25374 gcc_cv_math_func_catanh=yes
25375 else
25376 gcc_cv_math_func_catanh=no
25378 rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25382 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25383 if test $gcc_cv_math_func_catanh = yes; then
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_CATANH 1
25387 _ACEOF
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25395 $as_echo_n "checking for catanhf... " >&6; }
25396 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 if test x$gcc_no_link = xyes; then
25400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25403 /* end confdefs.h. */
25405 #ifdef HAVE_COMPLEX_H
25406 #include <complex.h>
25407 #endif
25408 #ifdef HAVE_MATH_H
25409 #include <math.h>
25410 #endif
25412 int (*ptr)() = (int (*)())catanhf;
25415 main ()
25417 return 0;
25420 _ACEOF
25421 if ac_fn_c_try_link "$LINENO"; then :
25422 gcc_cv_math_func_catanhf=yes
25423 else
25424 gcc_cv_math_func_catanhf=no
25426 rm -f core conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25430 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25431 if test $gcc_cv_math_func_catanhf = yes; then
25433 cat >>confdefs.h <<_ACEOF
25434 #define HAVE_CATANHF 1
25435 _ACEOF
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25443 $as_echo_n "checking for catanhl... " >&6; }
25444 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25445 $as_echo_n "(cached) " >&6
25446 else
25447 if test x$gcc_no_link = xyes; then
25448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25453 #ifdef HAVE_COMPLEX_H
25454 #include <complex.h>
25455 #endif
25456 #ifdef HAVE_MATH_H
25457 #include <math.h>
25458 #endif
25460 int (*ptr)() = (int (*)())catanhl;
25463 main ()
25465 return 0;
25468 _ACEOF
25469 if ac_fn_c_try_link "$LINENO"; then :
25470 gcc_cv_math_func_catanhl=yes
25471 else
25472 gcc_cv_math_func_catanhl=no
25474 rm -f core conftest.err conftest.$ac_objext \
25475 conftest$ac_exeext conftest.$ac_ext
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25478 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25479 if test $gcc_cv_math_func_catanhl = yes; then
25481 cat >>confdefs.h <<_ACEOF
25482 #define HAVE_CATANHL 1
25483 _ACEOF
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25491 $as_echo_n "checking for catanl... " >&6; }
25492 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25494 else
25495 if test x$gcc_no_link = xyes; then
25496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499 /* end confdefs.h. */
25501 #ifdef HAVE_COMPLEX_H
25502 #include <complex.h>
25503 #endif
25504 #ifdef HAVE_MATH_H
25505 #include <math.h>
25506 #endif
25508 int (*ptr)() = (int (*)())catanl;
25511 main ()
25513 return 0;
25516 _ACEOF
25517 if ac_fn_c_try_link "$LINENO"; then :
25518 gcc_cv_math_func_catanl=yes
25519 else
25520 gcc_cv_math_func_catanl=no
25522 rm -f core conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25526 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25527 if test $gcc_cv_math_func_catanl = yes; then
25529 cat >>confdefs.h <<_ACEOF
25530 #define HAVE_CATANL 1
25531 _ACEOF
25536 # On AIX, clog is present in libm as __clog
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25538 $as_echo_n "checking for __clog in -lm... " >&6; }
25539 if test "${ac_cv_lib_m___clog+set}" = set; then :
25540 $as_echo_n "(cached) " >&6
25541 else
25542 ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-lm $LIBS"
25544 if test x$gcc_no_link = xyes; then
25545 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25548 /* end confdefs.h. */
25550 /* Override any GCC internal prototype to avoid an error.
25551 Use char because int might match the return type of a GCC
25552 builtin and then its argument prototype would still apply. */
25553 #ifdef __cplusplus
25554 extern "C"
25555 #endif
25556 char __clog ();
25558 main ()
25560 return __clog ();
25562 return 0;
25564 _ACEOF
25565 if ac_fn_c_try_link "$LINENO"; then :
25566 ac_cv_lib_m___clog=yes
25567 else
25568 ac_cv_lib_m___clog=no
25570 rm -f core conftest.err conftest.$ac_objext \
25571 conftest$ac_exeext conftest.$ac_ext
25572 LIBS=$ac_check_lib_save_LIBS
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25575 $as_echo "$ac_cv_lib_m___clog" >&6; }
25576 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25578 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25583 # Check whether the system has a working stat()
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25586 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25587 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25589 else
25591 if test "$cross_compiling" = yes; then :
25593 case "${target}" in
25594 *mingw*) libgfor_cv_have_working_stat=no ;;
25595 *) libgfor_cv_have_working_stat=yes;;
25596 esac
25597 else
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25601 #include <stdio.h>
25602 #include <sys/types.h>
25603 #include <sys/stat.h>
25604 #include <unistd.h>
25606 int main ()
25608 FILE *f, *g;
25609 struct stat st1, st2;
25611 f = fopen ("foo", "w");
25612 g = fopen ("bar", "w");
25613 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25614 return 1;
25615 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25616 return 1;
25617 fclose(f);
25618 fclose(g);
25619 return 0;
25621 _ACEOF
25622 if ac_fn_c_try_run "$LINENO"; then :
25623 libgfor_cv_have_working_stat=yes
25624 else
25625 libgfor_cv_have_working_stat=no
25627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25628 conftest.$ac_objext conftest.beam conftest.$ac_ext
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25633 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25634 if test x"$libgfor_cv_have_working_stat" = xyes; then
25636 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25640 # Check whether __mingw_snprintf() is present
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25643 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25644 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25645 $as_echo_n "(cached) " >&6
25646 else
25648 if test x$gcc_no_link = xyes; then
25649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25652 /* end confdefs.h. */
25654 #include <stdio.h>
25655 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25658 main ()
25661 __mingw_snprintf (NULL, 0, "%d\n", 1);
25664 return 0;
25666 _ACEOF
25667 if ac_fn_c_try_link "$LINENO"; then :
25668 eval "libgfor_cv_have_mingw_snprintf=yes"
25669 else
25670 eval "libgfor_cv_have_mingw_snprintf=no"
25672 rm -f core conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25677 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25678 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25680 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25685 # Check whether libquadmath should be used
25686 # Check whether --enable-libquadmath-support was given.
25687 if test "${enable_libquadmath_support+set}" = set; then :
25688 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25689 else
25690 ENABLE_LIBQUADMATH_SUPPORT=yes
25693 enable_libquadmath_support=
25694 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25695 enable_libquadmath_support=no
25698 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25700 LIBQUADSPEC=
25702 if test "x$enable_libquadmath_support" != xno; then
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25705 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25706 if test "${libgfor_cv_have_float128+set}" = set; then :
25707 $as_echo_n "(cached) " >&6
25708 else
25710 if test x$gcc_no_link = xyes; then
25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h. */
25714 typedef _Complex float __attribute__((mode(TC))) __complex128;
25716 __float128 foo (__float128 x)
25719 __complex128 z1, z2;
25721 z1 = x;
25722 z2 = x / 7.Q;
25723 z2 /= z1;
25725 return (__float128) z2;
25728 __float128 bar (__float128 x)
25730 return x * __builtin_huge_valq ();
25734 main ()
25737 foo (1.2Q);
25738 bar (1.2Q);
25741 return 0;
25743 _ACEOF
25744 if ac_fn_c_try_compile "$LINENO"; then :
25746 libgfor_cv_have_float128=yes
25748 else
25750 libgfor_cv_have_float128=no
25753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25754 else
25755 if test x$gcc_no_link = xyes; then
25756 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h. */
25761 typedef _Complex float __attribute__((mode(TC))) __complex128;
25763 __float128 foo (__float128 x)
25766 __complex128 z1, z2;
25768 z1 = x;
25769 z2 = x / 7.Q;
25770 z2 /= z1;
25772 return (__float128) z2;
25775 __float128 bar (__float128 x)
25777 return x * __builtin_huge_valq ();
25781 main ()
25784 foo (1.2Q);
25785 bar (1.2Q);
25788 return 0;
25790 _ACEOF
25791 if ac_fn_c_try_link "$LINENO"; then :
25793 libgfor_cv_have_float128=yes
25795 else
25797 libgfor_cv_have_float128=no
25800 rm -f core conftest.err conftest.$ac_objext \
25801 conftest$ac_exeext conftest.$ac_ext
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25805 $as_echo "$libgfor_cv_have_float128" >&6; }
25807 if test "x$libgfor_cv_have_float128" = xyes; then
25809 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25812 ac_xsave_c_werror_flag=$ac_c_werror_flag
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25814 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25815 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25816 $as_echo_n "(cached) " >&6
25817 else
25819 # Test for native Solaris options first.
25820 # No whitespace after -z to pass it through -Wl.
25821 libgfor_cv_as_needed_option="-zignore"
25822 libgfor_cv_no_as_needed_option="-zrecord"
25823 save_LDFLAGS="$LDFLAGS"
25824 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25825 libgfor_cv_have_as_needed=no
25827 ac_c_werror_flag=yes
25828 if test x$gcc_no_link = xyes; then
25829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h. */
25835 main ()
25839 return 0;
25841 _ACEOF
25842 if ac_fn_c_try_link "$LINENO"; then :
25843 libgfor_cv_have_as_needed=yes
25844 else
25845 libgfor_cv_have_as_needed=no
25847 rm -f core conftest.err conftest.$ac_objext \
25848 conftest$ac_exeext conftest.$ac_ext
25849 LDFLAGS="$save_LDFLAGS"
25850 if test "x$libgfor_cv_have_as_needed" = xno; then
25851 libgfor_cv_as_needed_option="--as-needed"
25852 libgfor_cv_no_as_needed_option="--no-as-needed"
25853 save_LDFLAGS="$LDFLAGS"
25854 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25855 libgfor_cv_have_as_needed=no
25857 ac_c_werror_flag=yes
25858 if test x$gcc_no_link = xyes; then
25859 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25862 /* end confdefs.h. */
25865 main ()
25869 return 0;
25871 _ACEOF
25872 if ac_fn_c_try_link "$LINENO"; then :
25873 libgfor_cv_have_as_needed=yes
25874 else
25875 libgfor_cv_have_as_needed=no
25877 rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
25879 LDFLAGS="$save_LDFLAGS"
25881 ac_c_werror_flag=$ac_xsave_c_werror_flag
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25885 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25887 if test "x$libgfor_cv_have_as_needed" = xyes; then
25888 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25889 else
25890 LIBQUADSPEC="-lquadmath"
25892 if test -f ../libquadmath/libquadmath.la; then
25893 LIBQUADLIB=../libquadmath/libquadmath.la
25894 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25895 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25896 else
25897 LIBQUADLIB="-lquadmath"
25898 LIBQUADLIB_DEP=
25899 LIBQUADINCLUDE=
25902 else
25903 # for --disable-quadmath
25904 LIBQUADLIB=
25905 LIBQUADLIB_DEP=
25906 LIBQUADINCLUDE=
25914 if test "x$libgfor_cv_have_float128" = xyes; then
25915 LIBGFOR_BUILD_QUAD_TRUE=
25916 LIBGFOR_BUILD_QUAD_FALSE='#'
25917 else
25918 LIBGFOR_BUILD_QUAD_TRUE='#'
25919 LIBGFOR_BUILD_QUAD_FALSE=
25924 # Check for GNU libc feenableexcept
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25926 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25927 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25929 else
25930 ac_check_lib_save_LIBS=$LIBS
25931 LIBS="-lm $LIBS"
25932 if test x$gcc_no_link = xyes; then
25933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h. */
25938 /* Override any GCC internal prototype to avoid an error.
25939 Use char because int might match the return type of a GCC
25940 builtin and then its argument prototype would still apply. */
25941 #ifdef __cplusplus
25942 extern "C"
25943 #endif
25944 char feenableexcept ();
25946 main ()
25948 return feenableexcept ();
25950 return 0;
25952 _ACEOF
25953 if ac_fn_c_try_link "$LINENO"; then :
25954 ac_cv_lib_m_feenableexcept=yes
25955 else
25956 ac_cv_lib_m_feenableexcept=no
25958 rm -f core conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
25960 LIBS=$ac_check_lib_save_LIBS
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25963 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25964 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25965 have_feenableexcept=yes
25966 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25971 # At least for glibc, clock_gettime is in librt. But don't
25972 # pull that in if it still doesn't give us the function we want. This
25973 # test is copied from libgomp, and modified to not link in -lrt as
25974 # libgfortran calls clock_gettime via a weak reference if it's found
25975 # in librt.
25976 if test "$ac_cv_func_clock_gettime" = no; then
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25978 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25979 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25981 else
25982 ac_check_lib_save_LIBS=$LIBS
25983 LIBS="-lrt $LIBS"
25984 if test x$gcc_no_link = xyes; then
25985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25990 /* Override any GCC internal prototype to avoid an error.
25991 Use char because int might match the return type of a GCC
25992 builtin and then its argument prototype would still apply. */
25993 #ifdef __cplusplus
25994 extern "C"
25995 #endif
25996 char clock_gettime ();
25998 main ()
26000 return clock_gettime ();
26002 return 0;
26004 _ACEOF
26005 if ac_fn_c_try_link "$LINENO"; then :
26006 ac_cv_lib_rt_clock_gettime=yes
26007 else
26008 ac_cv_lib_rt_clock_gettime=no
26010 rm -f core conftest.err conftest.$ac_objext \
26011 conftest$ac_exeext conftest.$ac_ext
26012 LIBS=$ac_check_lib_save_LIBS
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26015 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26016 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
26018 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26024 # Check for SysV fpsetmask
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26027 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26028 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
26029 $as_echo_n "(cached) " >&6
26030 else
26032 if test x$gcc_no_link = xyes; then
26033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26038 #if HAVE_FLOATINGPOINT_H
26039 # include <floatingpoint.h>
26040 #endif /* HAVE_FLOATINGPOINT_H */
26041 #if HAVE_IEEEFP_H
26042 # include <ieeefp.h>
26043 #endif /* HAVE_IEEEFP_H */
26045 main ()
26047 fpsetmask(0);
26049 return 0;
26051 _ACEOF
26052 if ac_fn_c_try_link "$LINENO"; then :
26053 eval "libgfor_cv_have_fpsetmask=yes"
26054 else
26055 eval "libgfor_cv_have_fpsetmask=no"
26057 rm -f core conftest.err conftest.$ac_objext \
26058 conftest$ac_exeext conftest.$ac_ext
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26062 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26063 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26064 have_fpsetmask=yes
26066 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26070 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26071 #ifdef HAVE_IEEEFP_H
26072 #include <ieeefp.h>
26073 #endif
26074 #include <math.h>
26077 if test "x$ac_cv_type_fp_except" = x""yes; then :
26079 cat >>confdefs.h <<_ACEOF
26080 #define HAVE_FP_EXCEPT 1
26081 _ACEOF
26085 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26086 #ifdef HAVE_IEEEFP_H
26087 #include <ieeefp.h>
26088 #endif
26089 #include <math.h>
26092 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26094 cat >>confdefs.h <<_ACEOF
26095 #define HAVE_FP_EXCEPT_T 1
26096 _ACEOF
26101 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26102 #ifdef HAVE_IEEEFP_H
26103 #include <ieeefp.h>
26104 #endif
26105 #include <math.h>
26108 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26110 cat >>confdefs.h <<_ACEOF
26111 #define HAVE_FP_RND 1
26112 _ACEOF
26116 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26117 #ifdef HAVE_IEEEFP_H
26118 #include <ieeefp.h>
26119 #endif
26120 #include <math.h>
26123 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26125 cat >>confdefs.h <<_ACEOF
26126 #define HAVE_FP_RND_T 1
26127 _ACEOF
26133 # Check whether we have fpsetsticky or fpresetsticky
26134 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26135 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
26136 have_fpsetsticky=yes
26137 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26141 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26142 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
26143 have_fpresetsticky=yes
26144 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26149 # Check for AIX fp_trap and fp_enable
26150 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26151 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26152 have_fp_trap=yes
26153 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26157 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26158 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26159 have_fp_enable=yes
26160 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26165 # Runs configure.host to set up necessary host-dependent shell variables.
26166 # We then display a message about it, and propagate them through the
26167 # build chain.
26168 . ${srcdir}/configure.host
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26170 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26172 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26173 FPU_HOST_HEADER=config/${fpu_host}.h
26176 # Whether we will build the IEEE modules
26177 if test x${ieee_support} = xyes; then
26178 IEEE_SUPPORT_TRUE=
26179 IEEE_SUPPORT_FALSE='#'
26180 else
26181 IEEE_SUPPORT_TRUE='#'
26182 IEEE_SUPPORT_FALSE=
26187 # Some targets require additional compiler options for IEEE compatibility.
26188 IEEE_FLAGS="${ieee_flags}"
26192 # Check for POSIX getpwuid_r
26194 # There are two versions of getpwuid_r, the POSIX one with 5
26195 # arguments, and another one with 4 arguments used by at least HP-UX
26196 # 10.2.
26197 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26199 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26200 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26201 $as_echo_n "(cached) " >&6
26202 else
26204 if test x$gcc_no_link = xyes; then
26205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h. */
26210 #include <stdio.h>
26211 #include <sys/types.h>
26212 #include <pwd.h>
26214 main ()
26217 getpwuid_r(0, NULL, NULL, 0, NULL);
26220 return 0;
26222 _ACEOF
26223 if ac_fn_c_try_link "$LINENO"; then :
26224 libgfor_cv_posix_getpwuid_r="yes"
26225 else
26226 libgfor_cv_posix_getpwuid_r="no"
26228 rm -f core conftest.err conftest.$ac_objext \
26229 conftest$ac_exeext conftest.$ac_ext
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26232 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26234 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26236 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26241 # Check out attribute support.
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26244 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26245 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26249 save_CFLAGS="$CFLAGS"
26250 CFLAGS="$CFLAGS -Werror"
26251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26252 /* end confdefs.h. */
26253 void __attribute__((visibility("hidden"))) foo(void) { }
26255 main ()
26259 return 0;
26261 _ACEOF
26262 if ac_fn_c_try_compile "$LINENO"; then :
26263 libgfor_cv_have_attribute_visibility=yes
26264 else
26265 libgfor_cv_have_attribute_visibility=no
26267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268 CFLAGS="$save_CFLAGS"
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26271 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26272 if test $libgfor_cv_have_attribute_visibility = yes; then
26274 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26279 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26280 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26284 save_CFLAGS="$CFLAGS"
26285 CFLAGS="$CFLAGS -Werror"
26286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26287 /* end confdefs.h. */
26288 void __attribute__((dllexport)) foo(void) { }
26290 main ()
26294 return 0;
26296 _ACEOF
26297 if ac_fn_c_try_compile "$LINENO"; then :
26298 libgfor_cv_have_attribute_dllexport=yes
26299 else
26300 libgfor_cv_have_attribute_dllexport=no
26302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 CFLAGS="$save_CFLAGS"
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26306 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26307 if test $libgfor_cv_have_attribute_dllexport = yes; then
26309 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26314 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26315 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26319 if test x$gcc_no_link = xyes; then
26320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323 /* end confdefs.h. */
26325 void foo(void) { }
26326 extern void bar(void) __attribute__((alias("foo")));
26328 main ()
26330 bar();
26332 return 0;
26334 _ACEOF
26335 if ac_fn_c_try_link "$LINENO"; then :
26336 libgfor_cv_have_attribute_alias=yes
26337 else
26338 libgfor_cv_have_attribute_alias=no
26340 rm -f core conftest.err conftest.$ac_objext \
26341 conftest$ac_exeext conftest.$ac_ext
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26344 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26345 if test $libgfor_cv_have_attribute_alias = yes; then
26347 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26351 # Check out sync builtins support.
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26354 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26355 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26357 else
26359 if test x$gcc_no_link = xyes; then
26360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h. */
26364 int foovar = 0;
26366 main ()
26369 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26370 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26372 return 0;
26374 _ACEOF
26375 if ac_fn_c_try_link "$LINENO"; then :
26376 libgfor_cv_have_sync_fetch_and_add=yes
26377 else
26378 libgfor_cv_have_sync_fetch_and_add=no
26380 rm -f core conftest.err conftest.$ac_objext \
26381 conftest$ac_exeext conftest.$ac_ext
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26384 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26385 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26387 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26391 # Check out #pragma weak.
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26394 $as_echo_n "checking whether pragma weak works... " >&6; }
26395 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26396 $as_echo_n "(cached) " >&6
26397 else
26399 gfor_save_CFLAGS="$CFLAGS"
26400 CFLAGS="$CFLAGS -Wunknown-pragmas"
26401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402 /* end confdefs.h. */
26404 void foo (void);
26405 #pragma weak foo
26408 main ()
26410 if (foo) foo ();
26412 return 0;
26414 _ACEOF
26415 if ac_fn_c_try_compile "$LINENO"; then :
26416 libgfor_cv_have_pragma_weak=yes
26417 else
26418 libgfor_cv_have_pragma_weak=no
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26423 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26424 if test $libgfor_cv_have_pragma_weak = yes; then
26426 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26429 case "$host" in
26430 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26432 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26435 esac
26437 # Various other checks on target
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26440 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26441 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26442 $as_echo_n "(cached) " >&6
26443 else
26445 if test "$cross_compiling" = yes; then :
26447 case "${target}" in
26448 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26449 *) libgfor_cv_have_unlink_open_file=yes;;
26450 esac
26451 else
26452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26453 /* end confdefs.h. */
26455 #include <errno.h>
26456 #include <fcntl.h>
26457 #include <unistd.h>
26458 #include <sys/stat.h>
26460 int main ()
26462 int fd;
26464 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26465 if (fd <= 0)
26466 return 0;
26467 if (unlink ("testfile") == -1)
26468 return 1;
26469 write (fd, "This is a test\n", 15);
26470 close (fd);
26472 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26473 return 0;
26474 else
26475 return 1;
26477 _ACEOF
26478 if ac_fn_c_try_run "$LINENO"; then :
26479 libgfor_cv_have_unlink_open_file=yes
26480 else
26481 libgfor_cv_have_unlink_open_file=no
26483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26484 conftest.$ac_objext conftest.beam conftest.$ac_ext
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26489 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26490 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26492 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26496 # Check whether line terminator is LF or CRLF
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26499 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26500 if test "${libgfor_cv_have_crlf+set}" = set; then :
26501 $as_echo_n "(cached) " >&6
26502 else
26504 if test "$cross_compiling" = yes; then :
26506 case "${target}" in
26507 *mingw*) libgfor_cv_have_crlf=yes ;;
26508 *) libgfor_cv_have_crlf=no;;
26509 esac
26510 else
26511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512 /* end confdefs.h. */
26514 /* This test program should exit with status 0 if system uses a CRLF as
26515 line terminator, and status 1 otherwise.
26516 Since it is used to check for mingw systems, and should return 0 in any
26517 other case, in case of a failure we will not use CRLF. */
26518 #include <sys/stat.h>
26519 #include <stdlib.h>
26520 #include <fcntl.h>
26521 #include <stdio.h>
26523 int main ()
26525 #ifndef O_BINARY
26526 exit(1);
26527 #else
26528 int fd, bytes;
26529 char buff[5];
26531 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26532 if (fd < 0)
26533 exit(1);
26534 if (write (fd, "\n", 1) < 0)
26535 perror ("write");
26537 close (fd);
26539 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26540 exit(1);
26541 bytes = read (fd, buff, 5);
26542 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26543 exit(0);
26544 else
26545 exit(1);
26546 #endif
26548 _ACEOF
26549 if ac_fn_c_try_run "$LINENO"; then :
26550 libgfor_cv_have_crlf=yes
26551 else
26552 libgfor_cv_have_crlf=no
26554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26555 conftest.$ac_objext conftest.beam conftest.$ac_ext
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26560 $as_echo "$libgfor_cv_have_crlf" >&6; }
26561 if test x"$libgfor_cv_have_crlf" = xyes; then
26563 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26567 cat >confcache <<\_ACEOF
26568 # This file is a shell script that caches the results of configure
26569 # tests run on this system so they can be shared between configure
26570 # scripts and configure runs, see configure's option --config-cache.
26571 # It is not useful on other systems. If it contains results you don't
26572 # want to keep, you may remove or edit it.
26574 # config.status only pays attention to the cache file if you give it
26575 # the --recheck option to rerun configure.
26577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26579 # following values.
26581 _ACEOF
26583 # The following way of writing the cache mishandles newlines in values,
26584 # but we know of no workaround that is simple, portable, and efficient.
26585 # So, we kill variables containing newlines.
26586 # Ultrix sh set writes to stderr and can't be redirected directly,
26587 # and sets the high bit in the cache file unless we assign to the vars.
26589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26590 eval ac_val=\$$ac_var
26591 case $ac_val in #(
26592 *${as_nl}*)
26593 case $ac_var in #(
26594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26596 esac
26597 case $ac_var in #(
26598 _ | IFS | as_nl) ;; #(
26599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26600 *) { eval $ac_var=; unset $ac_var;} ;;
26601 esac ;;
26602 esac
26603 done
26605 (set) 2>&1 |
26606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26607 *${as_nl}ac_space=\ *)
26608 # `set' does not quote correctly, so add quotes: double-quote
26609 # substitution turns \\\\ into \\, and sed turns \\ into \.
26610 sed -n \
26611 "s/'/'\\\\''/g;
26612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26613 ;; #(
26615 # `set' quotes correctly as required by POSIX, so do not add quotes.
26616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26618 esac |
26619 sort
26621 sed '
26622 /^ac_cv_env_/b end
26623 t clear
26624 :clear
26625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26626 t end
26627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26628 :end' >>confcache
26629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26630 if test -w "$cache_file"; then
26631 test "x$cache_file" != "x/dev/null" &&
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26633 $as_echo "$as_me: updating cache $cache_file" >&6;}
26634 cat confcache >$cache_file
26635 else
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26640 rm -f confcache
26642 if test ${multilib} = yes; then
26643 multilib_arg="--enable-multilib"
26644 else
26645 multilib_arg=
26648 # Write our Makefile and spec file.
26649 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26651 cat >confcache <<\_ACEOF
26652 # This file is a shell script that caches the results of configure
26653 # tests run on this system so they can be shared between configure
26654 # scripts and configure runs, see configure's option --config-cache.
26655 # It is not useful on other systems. If it contains results you don't
26656 # want to keep, you may remove or edit it.
26658 # config.status only pays attention to the cache file if you give it
26659 # the --recheck option to rerun configure.
26661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26663 # following values.
26665 _ACEOF
26667 # The following way of writing the cache mishandles newlines in values,
26668 # but we know of no workaround that is simple, portable, and efficient.
26669 # So, we kill variables containing newlines.
26670 # Ultrix sh set writes to stderr and can't be redirected directly,
26671 # and sets the high bit in the cache file unless we assign to the vars.
26673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26674 eval ac_val=\$$ac_var
26675 case $ac_val in #(
26676 *${as_nl}*)
26677 case $ac_var in #(
26678 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26679 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26680 esac
26681 case $ac_var in #(
26682 _ | IFS | as_nl) ;; #(
26683 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26684 *) { eval $ac_var=; unset $ac_var;} ;;
26685 esac ;;
26686 esac
26687 done
26689 (set) 2>&1 |
26690 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26691 *${as_nl}ac_space=\ *)
26692 # `set' does not quote correctly, so add quotes: double-quote
26693 # substitution turns \\\\ into \\, and sed turns \\ into \.
26694 sed -n \
26695 "s/'/'\\\\''/g;
26696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26697 ;; #(
26699 # `set' quotes correctly as required by POSIX, so do not add quotes.
26700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26702 esac |
26703 sort
26705 sed '
26706 /^ac_cv_env_/b end
26707 t clear
26708 :clear
26709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26710 t end
26711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26712 :end' >>confcache
26713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26714 if test -w "$cache_file"; then
26715 test "x$cache_file" != "x/dev/null" &&
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26717 $as_echo "$as_me: updating cache $cache_file" >&6;}
26718 cat confcache >$cache_file
26719 else
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26724 rm -f confcache
26726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26727 # Let make expand exec_prefix.
26728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26730 DEFS=-DHAVE_CONFIG_H
26732 ac_libobjs=
26733 ac_ltlibobjs=
26734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26735 # 1. Remove the extension, and $U if already installed.
26736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26739 # will be set to the directory where LIBOBJS objects are built.
26740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26742 done
26743 LIBOBJS=$ac_libobjs
26745 LTLIBOBJS=$ac_ltlibobjs
26748 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26749 as_fn_error "conditional \"onestep\" was never defined.
26750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26752 if test -n "$EXEEXT"; then
26753 am__EXEEXT_TRUE=
26754 am__EXEEXT_FALSE='#'
26755 else
26756 am__EXEEXT_TRUE='#'
26757 am__EXEEXT_FALSE=
26760 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26761 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26765 as_fn_error "conditional \"AMDEP\" was never defined.
26766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26769 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26773 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26777 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26780 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26781 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26784 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26785 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26789 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26792 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26793 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26797 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26801 : ${CONFIG_STATUS=./config.status}
26802 ac_write_fail=0
26803 ac_clean_files_save=$ac_clean_files
26804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26807 as_write_fail=0
26808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26809 #! $SHELL
26810 # Generated by $as_me.
26811 # Run this file to recreate the current configuration.
26812 # Compiler output produced by configure, useful for debugging
26813 # configure, is in config.log if it exists.
26815 debug=false
26816 ac_cs_recheck=false
26817 ac_cs_silent=false
26819 SHELL=\${CONFIG_SHELL-$SHELL}
26820 export SHELL
26821 _ASEOF
26822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26823 ## -------------------- ##
26824 ## M4sh Initialization. ##
26825 ## -------------------- ##
26827 # Be more Bourne compatible
26828 DUALCASE=1; export DUALCASE # for MKS sh
26829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26830 emulate sh
26831 NULLCMD=:
26832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26833 # is contrary to our usage. Disable this feature.
26834 alias -g '${1+"$@"}'='"$@"'
26835 setopt NO_GLOB_SUBST
26836 else
26837 case `(set -o) 2>/dev/null` in #(
26838 *posix*) :
26839 set -o posix ;; #(
26840 *) :
26842 esac
26846 as_nl='
26848 export as_nl
26849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26853 # Prefer a ksh shell builtin over an external printf program on Solaris,
26854 # but without wasting forks for bash or zsh.
26855 if test -z "$BASH_VERSION$ZSH_VERSION" \
26856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26857 as_echo='print -r --'
26858 as_echo_n='print -rn --'
26859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26860 as_echo='printf %s\n'
26861 as_echo_n='printf %s'
26862 else
26863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26865 as_echo_n='/usr/ucb/echo -n'
26866 else
26867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26868 as_echo_n_body='eval
26869 arg=$1;
26870 case $arg in #(
26871 *"$as_nl"*)
26872 expr "X$arg" : "X\\(.*\\)$as_nl";
26873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26874 esac;
26875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26877 export as_echo_n_body
26878 as_echo_n='sh -c $as_echo_n_body as_echo'
26880 export as_echo_body
26881 as_echo='sh -c $as_echo_body as_echo'
26884 # The user is always right.
26885 if test "${PATH_SEPARATOR+set}" != set; then
26886 PATH_SEPARATOR=:
26887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26889 PATH_SEPARATOR=';'
26894 # IFS
26895 # We need space, tab and new line, in precisely that order. Quoting is
26896 # there to prevent editors from complaining about space-tab.
26897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26898 # splitting by setting IFS to empty value.)
26899 IFS=" "" $as_nl"
26901 # Find who we are. Look in the path if we contain no directory separator.
26902 case $0 in #((
26903 *[\\/]* ) as_myself=$0 ;;
26904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26905 for as_dir in $PATH
26907 IFS=$as_save_IFS
26908 test -z "$as_dir" && as_dir=.
26909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26910 done
26911 IFS=$as_save_IFS
26914 esac
26915 # We did not find ourselves, most probably we were run as `sh COMMAND'
26916 # in which case we are not to be found in the path.
26917 if test "x$as_myself" = x; then
26918 as_myself=$0
26920 if test ! -f "$as_myself"; then
26921 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26922 exit 1
26925 # Unset variables that we do not need and which cause bugs (e.g. in
26926 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26927 # suppresses any "Segmentation fault" message there. '((' could
26928 # trigger a bug in pdksh 5.2.14.
26929 for as_var in BASH_ENV ENV MAIL MAILPATH
26930 do eval test x\${$as_var+set} = xset \
26931 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26932 done
26933 PS1='$ '
26934 PS2='> '
26935 PS4='+ '
26937 # NLS nuisances.
26938 LC_ALL=C
26939 export LC_ALL
26940 LANGUAGE=C
26941 export LANGUAGE
26943 # CDPATH.
26944 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26947 # as_fn_error ERROR [LINENO LOG_FD]
26948 # ---------------------------------
26949 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26950 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26951 # script with status $?, using 1 if that was 0.
26952 as_fn_error ()
26954 as_status=$?; test $as_status -eq 0 && as_status=1
26955 if test "$3"; then
26956 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26957 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26959 $as_echo "$as_me: error: $1" >&2
26960 as_fn_exit $as_status
26961 } # as_fn_error
26964 # as_fn_set_status STATUS
26965 # -----------------------
26966 # Set $? to STATUS, without forking.
26967 as_fn_set_status ()
26969 return $1
26970 } # as_fn_set_status
26972 # as_fn_exit STATUS
26973 # -----------------
26974 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26975 as_fn_exit ()
26977 set +e
26978 as_fn_set_status $1
26979 exit $1
26980 } # as_fn_exit
26982 # as_fn_unset VAR
26983 # ---------------
26984 # Portably unset VAR.
26985 as_fn_unset ()
26987 { eval $1=; unset $1;}
26989 as_unset=as_fn_unset
26990 # as_fn_append VAR VALUE
26991 # ----------------------
26992 # Append the text in VALUE to the end of the definition contained in VAR. Take
26993 # advantage of any shell optimizations that allow amortized linear growth over
26994 # repeated appends, instead of the typical quadratic growth present in naive
26995 # implementations.
26996 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26997 eval 'as_fn_append ()
26999 eval $1+=\$2
27001 else
27002 as_fn_append ()
27004 eval $1=\$$1\$2
27006 fi # as_fn_append
27008 # as_fn_arith ARG...
27009 # ------------------
27010 # Perform arithmetic evaluation on the ARGs, and store the result in the
27011 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27012 # must be portable across $(()) and expr.
27013 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27014 eval 'as_fn_arith ()
27016 as_val=$(( $* ))
27018 else
27019 as_fn_arith ()
27021 as_val=`expr "$@" || test $? -eq 1`
27023 fi # as_fn_arith
27026 if expr a : '\(a\)' >/dev/null 2>&1 &&
27027 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27028 as_expr=expr
27029 else
27030 as_expr=false
27033 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27034 as_basename=basename
27035 else
27036 as_basename=false
27039 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27040 as_dirname=dirname
27041 else
27042 as_dirname=false
27045 as_me=`$as_basename -- "$0" ||
27046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27047 X"$0" : 'X\(//\)$' \| \
27048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27049 $as_echo X/"$0" |
27050 sed '/^.*\/\([^/][^/]*\)\/*$/{
27051 s//\1/
27054 /^X\/\(\/\/\)$/{
27055 s//\1/
27058 /^X\/\(\/\).*/{
27059 s//\1/
27062 s/.*/./; q'`
27064 # Avoid depending upon Character Ranges.
27065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27068 as_cr_digits='0123456789'
27069 as_cr_alnum=$as_cr_Letters$as_cr_digits
27071 ECHO_C= ECHO_N= ECHO_T=
27072 case `echo -n x` in #(((((
27073 -n*)
27074 case `echo 'xy\c'` in
27075 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27076 xy) ECHO_C='\c';;
27077 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27078 ECHO_T=' ';;
27079 esac;;
27081 ECHO_N='-n';;
27082 esac
27084 rm -f conf$$ conf$$.exe conf$$.file
27085 if test -d conf$$.dir; then
27086 rm -f conf$$.dir/conf$$.file
27087 else
27088 rm -f conf$$.dir
27089 mkdir conf$$.dir 2>/dev/null
27091 if (echo >conf$$.file) 2>/dev/null; then
27092 if ln -s conf$$.file conf$$ 2>/dev/null; then
27093 as_ln_s='ln -s'
27094 # ... but there are two gotchas:
27095 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27096 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27097 # In both cases, we have to default to `cp -p'.
27098 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27099 as_ln_s='cp -p'
27100 elif ln conf$$.file conf$$ 2>/dev/null; then
27101 as_ln_s=ln
27102 else
27103 as_ln_s='cp -p'
27105 else
27106 as_ln_s='cp -p'
27108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27109 rmdir conf$$.dir 2>/dev/null
27112 # as_fn_mkdir_p
27113 # -------------
27114 # Create "$as_dir" as a directory, including parents if necessary.
27115 as_fn_mkdir_p ()
27118 case $as_dir in #(
27119 -*) as_dir=./$as_dir;;
27120 esac
27121 test -d "$as_dir" || eval $as_mkdir_p || {
27122 as_dirs=
27123 while :; do
27124 case $as_dir in #(
27125 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27126 *) as_qdir=$as_dir;;
27127 esac
27128 as_dirs="'$as_qdir' $as_dirs"
27129 as_dir=`$as_dirname -- "$as_dir" ||
27130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27131 X"$as_dir" : 'X\(//\)[^/]' \| \
27132 X"$as_dir" : 'X\(//\)$' \| \
27133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27134 $as_echo X"$as_dir" |
27135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27136 s//\1/
27139 /^X\(\/\/\)[^/].*/{
27140 s//\1/
27143 /^X\(\/\/\)$/{
27144 s//\1/
27147 /^X\(\/\).*/{
27148 s//\1/
27151 s/.*/./; q'`
27152 test -d "$as_dir" && break
27153 done
27154 test -z "$as_dirs" || eval "mkdir $as_dirs"
27155 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27158 } # as_fn_mkdir_p
27159 if mkdir -p . 2>/dev/null; then
27160 as_mkdir_p='mkdir -p "$as_dir"'
27161 else
27162 test -d ./-p && rmdir ./-p
27163 as_mkdir_p=false
27166 if test -x / >/dev/null 2>&1; then
27167 as_test_x='test -x'
27168 else
27169 if ls -dL / >/dev/null 2>&1; then
27170 as_ls_L_option=L
27171 else
27172 as_ls_L_option=
27174 as_test_x='
27175 eval sh -c '\''
27176 if test -d "$1"; then
27177 test -d "$1/.";
27178 else
27179 case $1 in #(
27180 -*)set "./$1";;
27181 esac;
27182 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27183 ???[sx]*):;;*)false;;esac;fi
27184 '\'' sh
27187 as_executable_p=$as_test_x
27189 # Sed expression to map a string onto a valid CPP name.
27190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27192 # Sed expression to map a string onto a valid variable name.
27193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27196 exec 6>&1
27197 ## ----------------------------------- ##
27198 ## Main body of $CONFIG_STATUS script. ##
27199 ## ----------------------------------- ##
27200 _ASEOF
27201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27204 # Save the log message, to keep $0 and so on meaningful, and to
27205 # report actual input values of CONFIG_FILES etc. instead of their
27206 # values after options handling.
27207 ac_log="
27208 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27209 generated by GNU Autoconf 2.64. Invocation command line was
27211 CONFIG_FILES = $CONFIG_FILES
27212 CONFIG_HEADERS = $CONFIG_HEADERS
27213 CONFIG_LINKS = $CONFIG_LINKS
27214 CONFIG_COMMANDS = $CONFIG_COMMANDS
27215 $ $0 $@
27217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27220 _ACEOF
27222 case $ac_config_files in *"
27223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27224 esac
27226 case $ac_config_headers in *"
27227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27228 esac
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27232 # Files that config.status was made for.
27233 config_files="$ac_config_files"
27234 config_headers="$ac_config_headers"
27235 config_commands="$ac_config_commands"
27237 _ACEOF
27239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27240 ac_cs_usage="\
27241 \`$as_me' instantiates files and other configuration actions
27242 from templates according to the current configuration. Unless the files
27243 and actions are specified as TAGs, all are instantiated by default.
27245 Usage: $0 [OPTION]... [TAG]...
27247 -h, --help print this help, then exit
27248 -V, --version print version number and configuration settings, then exit
27249 -q, --quiet, --silent
27250 do not print progress messages
27251 -d, --debug don't remove temporary files
27252 --recheck update $as_me by reconfiguring in the same conditions
27253 --file=FILE[:TEMPLATE]
27254 instantiate the configuration file FILE
27255 --header=FILE[:TEMPLATE]
27256 instantiate the configuration header FILE
27258 Configuration files:
27259 $config_files
27261 Configuration headers:
27262 $config_headers
27264 Configuration commands:
27265 $config_commands
27267 Report bugs to the package provider.
27268 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27269 General help using GNU software: <http://www.gnu.org/gethelp/>."
27271 _ACEOF
27272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27273 ac_cs_version="\\
27274 GNU Fortran Runtime Library config.status 0.3
27275 configured by $0, generated by GNU Autoconf 2.64,
27276 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27278 Copyright (C) 2009 Free Software Foundation, Inc.
27279 This config.status script is free software; the Free Software Foundation
27280 gives unlimited permission to copy, distribute and modify it."
27282 ac_pwd='$ac_pwd'
27283 srcdir='$srcdir'
27284 INSTALL='$INSTALL'
27285 MKDIR_P='$MKDIR_P'
27286 AWK='$AWK'
27287 test -n "\$AWK" || AWK=awk
27288 _ACEOF
27290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27291 # The default lists apply if the user does not specify any file.
27292 ac_need_defaults=:
27293 while test $# != 0
27295 case $1 in
27296 --*=*)
27297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27299 ac_shift=:
27302 ac_option=$1
27303 ac_optarg=$2
27304 ac_shift=shift
27306 esac
27308 case $ac_option in
27309 # Handling of the options.
27310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27311 ac_cs_recheck=: ;;
27312 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27313 $as_echo "$ac_cs_version"; exit ;;
27314 --debug | --debu | --deb | --de | --d | -d )
27315 debug=: ;;
27316 --file | --fil | --fi | --f )
27317 $ac_shift
27318 case $ac_optarg in
27319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27320 esac
27321 as_fn_append CONFIG_FILES " '$ac_optarg'"
27322 ac_need_defaults=false;;
27323 --header | --heade | --head | --hea )
27324 $ac_shift
27325 case $ac_optarg in
27326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27327 esac
27328 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27329 ac_need_defaults=false;;
27330 --he | --h)
27331 # Conflict between --help and --header
27332 as_fn_error "ambiguous option: \`$1'
27333 Try \`$0 --help' for more information.";;
27334 --help | --hel | -h )
27335 $as_echo "$ac_cs_usage"; exit ;;
27336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27338 ac_cs_silent=: ;;
27340 # This is an error.
27341 -*) as_fn_error "unrecognized option: \`$1'
27342 Try \`$0 --help' for more information." ;;
27344 *) as_fn_append ac_config_targets " $1"
27345 ac_need_defaults=false ;;
27347 esac
27348 shift
27349 done
27351 ac_configure_extra_args=
27353 if $ac_cs_silent; then
27354 exec 6>/dev/null
27355 ac_configure_extra_args="$ac_configure_extra_args --silent"
27358 _ACEOF
27359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27360 if \$ac_cs_recheck; then
27361 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27362 shift
27363 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27364 CONFIG_SHELL='$SHELL'
27365 export CONFIG_SHELL
27366 exec "\$@"
27369 _ACEOF
27370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27371 exec 5>>config.log
27373 echo
27374 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27375 ## Running $as_me. ##
27376 _ASBOX
27377 $as_echo "$ac_log"
27378 } >&5
27380 _ACEOF
27381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27383 # INIT-COMMANDS
27386 srcdir="$srcdir"
27387 host="$host"
27388 target="$target"
27389 with_multisubdir="$with_multisubdir"
27390 with_multisrctop="$with_multisrctop"
27391 with_target_subdir="$with_target_subdir"
27392 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27393 multi_basedir="$multi_basedir"
27394 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27395 CC="$CC"
27396 CXX="$CXX"
27397 GFORTRAN="$GFORTRAN"
27398 GCJ="$GCJ"
27399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27402 # The HP-UX ksh and POSIX shell print the target directory to stdout
27403 # if CDPATH is set.
27404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27406 sed_quote_subst='$sed_quote_subst'
27407 double_quote_subst='$double_quote_subst'
27408 delay_variable_subst='$delay_variable_subst'
27409 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27410 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27411 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27412 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27413 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27414 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27415 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27416 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27437 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27438 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27439 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27440 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27441 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27442 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27443 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27457 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"`'
27458 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27459 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27460 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27461 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27462 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27463 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27464 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27465 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27466 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27467 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27468 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27469 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27470 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27471 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27472 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27473 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27474 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27475 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27476 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27477 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27478 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27479 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27480 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27481 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27482 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27483 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27484 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27485 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27486 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27487 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27488 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27489 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27490 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27491 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27492 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27493 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27494 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27495 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27496 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27497 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27498 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27499 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27500 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27501 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27502 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27503 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27504 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27505 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27506 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27507 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27508 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27509 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27510 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27511 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27512 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27513 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27514 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27515 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27516 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27517 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27518 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27519 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27520 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27521 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27522 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27523 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27524 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27525 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27526 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27527 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27528 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27529 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27530 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27531 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27532 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27533 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27534 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27535 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27536 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27537 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27538 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27539 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27540 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27541 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27542 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27543 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27544 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27545 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27546 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27547 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27548 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27549 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27550 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27551 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27552 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27553 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27554 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27555 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27556 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27557 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27558 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27559 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27560 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27561 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27562 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27563 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27564 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27565 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27566 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27567 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27568 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27569 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27570 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27571 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27572 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27573 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27574 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27575 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27576 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27577 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27578 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27579 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27580 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27581 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27582 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27583 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27585 LTCC='$LTCC'
27586 LTCFLAGS='$LTCFLAGS'
27587 compiler='$compiler_DEFAULT'
27589 # A function that is used when there is no print builtin or printf.
27590 func_fallback_echo ()
27592 eval 'cat <<_LTECHO_EOF
27594 _LTECHO_EOF'
27597 # Quote evaled strings.
27598 for var in SHELL \
27599 ECHO \
27600 SED \
27601 GREP \
27602 EGREP \
27603 FGREP \
27604 LD \
27605 NM \
27606 LN_S \
27607 lt_SP2NL \
27608 lt_NL2SP \
27609 reload_flag \
27610 OBJDUMP \
27611 deplibs_check_method \
27612 file_magic_cmd \
27613 AR \
27614 AR_FLAGS \
27615 STRIP \
27616 RANLIB \
27617 CC \
27618 CFLAGS \
27619 compiler \
27620 lt_cv_sys_global_symbol_pipe \
27621 lt_cv_sys_global_symbol_to_cdecl \
27622 lt_cv_sys_global_symbol_to_c_name_address \
27623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27624 lt_prog_compiler_no_builtin_flag \
27625 lt_prog_compiler_wl \
27626 lt_prog_compiler_pic \
27627 lt_prog_compiler_static \
27628 lt_cv_prog_compiler_c_o \
27629 need_locks \
27630 DSYMUTIL \
27631 NMEDIT \
27632 LIPO \
27633 OTOOL \
27634 OTOOL64 \
27635 shrext_cmds \
27636 export_dynamic_flag_spec \
27637 whole_archive_flag_spec \
27638 compiler_needs_object \
27639 with_gnu_ld \
27640 allow_undefined_flag \
27641 no_undefined_flag \
27642 hardcode_libdir_flag_spec \
27643 hardcode_libdir_flag_spec_ld \
27644 hardcode_libdir_separator \
27645 fix_srcfile_path \
27646 exclude_expsyms \
27647 include_expsyms \
27648 file_list_spec \
27649 variables_saved_for_relink \
27650 libname_spec \
27651 library_names_spec \
27652 soname_spec \
27653 install_override_mode \
27654 finish_eval \
27655 old_striplib \
27656 striplib \
27657 compiler_lib_search_dirs \
27658 predep_objects \
27659 postdep_objects \
27660 predeps \
27661 postdeps \
27662 compiler_lib_search_path \
27663 LD_FC \
27664 reload_flag_FC \
27665 compiler_FC \
27666 lt_prog_compiler_no_builtin_flag_FC \
27667 lt_prog_compiler_wl_FC \
27668 lt_prog_compiler_pic_FC \
27669 lt_prog_compiler_static_FC \
27670 lt_cv_prog_compiler_c_o_FC \
27671 export_dynamic_flag_spec_FC \
27672 whole_archive_flag_spec_FC \
27673 compiler_needs_object_FC \
27674 with_gnu_ld_FC \
27675 allow_undefined_flag_FC \
27676 no_undefined_flag_FC \
27677 hardcode_libdir_flag_spec_FC \
27678 hardcode_libdir_flag_spec_ld_FC \
27679 hardcode_libdir_separator_FC \
27680 fix_srcfile_path_FC \
27681 exclude_expsyms_FC \
27682 include_expsyms_FC \
27683 file_list_spec_FC \
27684 compiler_lib_search_dirs_FC \
27685 predep_objects_FC \
27686 postdep_objects_FC \
27687 predeps_FC \
27688 postdeps_FC \
27689 compiler_lib_search_path_FC; do
27690 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27691 *[\\\\\\\`\\"\\\$]*)
27692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27697 esac
27698 done
27700 # Double-quote double-evaled strings.
27701 for var in reload_cmds \
27702 old_postinstall_cmds \
27703 old_postuninstall_cmds \
27704 old_archive_cmds \
27705 extract_expsyms_cmds \
27706 old_archive_from_new_cmds \
27707 old_archive_from_expsyms_cmds \
27708 archive_cmds \
27709 archive_expsym_cmds \
27710 module_cmds \
27711 module_expsym_cmds \
27712 export_symbols_cmds \
27713 prelink_cmds \
27714 postinstall_cmds \
27715 postuninstall_cmds \
27716 finish_cmds \
27717 sys_lib_search_path_spec \
27718 sys_lib_dlsearch_path_spec \
27719 reload_cmds_FC \
27720 old_archive_cmds_FC \
27721 old_archive_from_new_cmds_FC \
27722 old_archive_from_expsyms_cmds_FC \
27723 archive_cmds_FC \
27724 archive_expsym_cmds_FC \
27725 module_cmds_FC \
27726 module_expsym_cmds_FC \
27727 export_symbols_cmds_FC \
27728 prelink_cmds_FC; do
27729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27730 *[\\\\\\\`\\"\\\$]*)
27731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27736 esac
27737 done
27739 ac_aux_dir='$ac_aux_dir'
27740 xsi_shell='$xsi_shell'
27741 lt_shell_append='$lt_shell_append'
27743 # See if we are running on zsh, and set the options which allow our
27744 # commands through without removal of \ escapes INIT.
27745 if test -n "\${ZSH_VERSION+set}" ; then
27746 setopt NO_GLOB_SUBST
27750 PACKAGE='$PACKAGE'
27751 VERSION='$VERSION'
27752 TIMESTAMP='$TIMESTAMP'
27753 RM='$RM'
27754 ofile='$ofile'
27761 GCC="$GCC"
27762 CC="$CC"
27763 acx_cv_header_stdint="$acx_cv_header_stdint"
27764 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27765 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27766 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27767 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27768 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27769 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27770 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27771 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27772 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27773 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27774 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27775 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27776 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27779 _ACEOF
27781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27783 # Handling of arguments.
27784 for ac_config_target in $ac_config_targets
27786 case $ac_config_target in
27787 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27788 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27789 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27790 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27791 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27792 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27793 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27795 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27796 esac
27797 done
27800 # If the user did not use the arguments to specify the items to instantiate,
27801 # then the envvar interface is used. Set only those that are not.
27802 # We use the long form for the default assignment because of an extremely
27803 # bizarre bug on SunOS 4.1.3.
27804 if $ac_need_defaults; then
27805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27810 # Have a temporary directory for convenience. Make it in the build tree
27811 # simply because there is no reason against having it here, and in addition,
27812 # creating and moving files from /tmp can sometimes cause problems.
27813 # Hook for its removal unless debugging.
27814 # Note that there is a small window in which the directory will not be cleaned:
27815 # after its creation but before its name has been assigned to `$tmp'.
27816 $debug ||
27818 tmp=
27819 trap 'exit_status=$?
27820 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27822 trap 'as_fn_exit 1' 1 2 13 15
27824 # Create a (secure) tmp directory for tmp files.
27827 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27828 test -n "$tmp" && test -d "$tmp"
27829 } ||
27831 tmp=./conf$$-$RANDOM
27832 (umask 077 && mkdir "$tmp")
27833 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27835 # Set up the scripts for CONFIG_FILES section.
27836 # No need to generate them if there are no CONFIG_FILES.
27837 # This happens for instance with `./config.status config.h'.
27838 if test -n "$CONFIG_FILES"; then
27841 ac_cr=`echo X | tr X '\015'`
27842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27843 # But we know of no other shell where ac_cr would be empty at this
27844 # point, so we can use a bashism as a fallback.
27845 if test "x$ac_cr" = x; then
27846 eval ac_cr=\$\'\\r\'
27848 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27850 ac_cs_awk_cr='\r'
27851 else
27852 ac_cs_awk_cr=$ac_cr
27855 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27856 _ACEOF
27860 echo "cat >conf$$subs.awk <<_ACEOF" &&
27861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27862 echo "_ACEOF"
27863 } >conf$$subs.sh ||
27864 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27865 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27866 ac_delim='%!_!# '
27867 for ac_last_try in false false false false false :; do
27868 . ./conf$$subs.sh ||
27869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27872 if test $ac_delim_n = $ac_delim_num; then
27873 break
27874 elif $ac_last_try; then
27875 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27876 else
27877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27879 done
27880 rm -f conf$$subs.sh
27882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27883 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27884 _ACEOF
27885 sed -n '
27887 s/^/S["/; s/!.*/"]=/
27890 s/^[^!]*!//
27891 :repl
27892 t repl
27893 s/'"$ac_delim"'$//
27894 t delim
27897 s/\(.\{148\}\).*/\1/
27898 t more1
27899 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27902 b repl
27903 :more1
27904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27907 s/.\{148\}//
27908 t nl
27909 :delim
27911 s/\(.\{148\}\).*/\1/
27912 t more2
27913 s/["\\]/\\&/g; s/^/"/; s/$/"/
27916 :more2
27917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27920 s/.\{148\}//
27921 t delim
27922 ' <conf$$subs.awk | sed '
27923 /^[^""]/{
27925 s/\n//
27927 ' >>$CONFIG_STATUS || ac_write_fail=1
27928 rm -f conf$$subs.awk
27929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27930 _ACAWK
27931 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27932 for (key in S) S_is_set[key] = 1
27933 FS = "\a"
27937 line = $ 0
27938 nfields = split(line, field, "@")
27939 substed = 0
27940 len = length(field[1])
27941 for (i = 2; i < nfields; i++) {
27942 key = field[i]
27943 keylen = length(key)
27944 if (S_is_set[key]) {
27945 value = S[key]
27946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27947 len += length(value) + length(field[++i])
27948 substed = 1
27949 } else
27950 len += 1 + keylen
27953 print line
27956 _ACAWK
27957 _ACEOF
27958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27961 else
27963 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27964 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27965 _ACEOF
27967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27969 # trailing colons and then remove the whole line if VPATH becomes empty
27970 # (actually we leave an empty line to preserve line numbers).
27971 if test "x$srcdir" = x.; then
27972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27973 s/:*\$(srcdir):*/:/
27974 s/:*\${srcdir}:*/:/
27975 s/:*@srcdir@:*/:/
27976 s/^\([^=]*=[ ]*\):*/\1/
27977 s/:*$//
27978 s/^[^=]*=[ ]*$//
27982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27983 fi # test -n "$CONFIG_FILES"
27985 # Set up the scripts for CONFIG_HEADERS section.
27986 # No need to generate them if there are no CONFIG_HEADERS.
27987 # This happens for instance with `./config.status Makefile'.
27988 if test -n "$CONFIG_HEADERS"; then
27989 cat >"$tmp/defines.awk" <<\_ACAWK ||
27990 BEGIN {
27991 _ACEOF
27993 # Transform confdefs.h into an awk script `defines.awk', embedded as
27994 # here-document in config.status, that substitutes the proper values into
27995 # config.h.in to produce config.h.
27997 # Create a delimiter string that does not exist in confdefs.h, to ease
27998 # handling of long lines.
27999 ac_delim='%!_!# '
28000 for ac_last_try in false false :; do
28001 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28002 if test -z "$ac_t"; then
28003 break
28004 elif $ac_last_try; then
28005 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28006 else
28007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28009 done
28011 # For the awk script, D is an array of macro values keyed by name,
28012 # likewise P contains macro parameters if any. Preserve backslash
28013 # newline sequences.
28015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28016 sed -n '
28017 s/.\{148\}/&'"$ac_delim"'/g
28018 t rset
28019 :rset
28020 s/^[ ]*#[ ]*define[ ][ ]*/ /
28021 t def
28023 :def
28024 s/\\$//
28025 t bsnl
28026 s/["\\]/\\&/g
28027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28028 D["\1"]=" \3"/p
28029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28031 :bsnl
28032 s/["\\]/\\&/g
28033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28034 D["\1"]=" \3\\\\\\n"\\/p
28035 t cont
28036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28037 t cont
28039 :cont
28041 s/.\{148\}/&'"$ac_delim"'/g
28042 t clear
28043 :clear
28044 s/\\$//
28045 t bsnlc
28046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28048 :bsnlc
28049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28050 b cont
28051 ' <confdefs.h | sed '
28052 s/'"$ac_delim"'/"\\\
28053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28056 for (key in D) D_is_set[key] = 1
28057 FS = "\a"
28059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28060 line = \$ 0
28061 split(line, arg, " ")
28062 if (arg[1] == "#") {
28063 defundef = arg[2]
28064 mac1 = arg[3]
28065 } else {
28066 defundef = substr(arg[1], 2)
28067 mac1 = arg[2]
28069 split(mac1, mac2, "(") #)
28070 macro = mac2[1]
28071 prefix = substr(line, 1, index(line, defundef) - 1)
28072 if (D_is_set[macro]) {
28073 # Preserve the white space surrounding the "#".
28074 print prefix "define", macro P[macro] D[macro]
28075 next
28076 } else {
28077 # Replace #undef with comments. This is necessary, for example,
28078 # in the case of _POSIX_SOURCE, which is predefined and required
28079 # on some systems where configure will not decide to define it.
28080 if (defundef == "undef") {
28081 print "/*", prefix defundef, macro, "*/"
28082 next
28086 { print }
28087 _ACAWK
28088 _ACEOF
28089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28090 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28091 fi # test -n "$CONFIG_HEADERS"
28094 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28095 shift
28096 for ac_tag
28098 case $ac_tag in
28099 :[FHLC]) ac_mode=$ac_tag; continue;;
28100 esac
28101 case $ac_mode$ac_tag in
28102 :[FHL]*:*);;
28103 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28104 :[FH]-) ac_tag=-:-;;
28105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28106 esac
28107 ac_save_IFS=$IFS
28108 IFS=:
28109 set x $ac_tag
28110 IFS=$ac_save_IFS
28111 shift
28112 ac_file=$1
28113 shift
28115 case $ac_mode in
28116 :L) ac_source=$1;;
28117 :[FH])
28118 ac_file_inputs=
28119 for ac_f
28121 case $ac_f in
28122 -) ac_f="$tmp/stdin";;
28123 *) # Look for the file first in the build tree, then in the source tree
28124 # (if the path is not absolute). The absolute path cannot be DOS-style,
28125 # because $ac_f cannot contain `:'.
28126 test -f "$ac_f" ||
28127 case $ac_f in
28128 [\\/$]*) false;;
28129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28130 esac ||
28131 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28132 esac
28133 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28134 as_fn_append ac_file_inputs " '$ac_f'"
28135 done
28137 # Let's still pretend it is `configure' which instantiates (i.e., don't
28138 # use $as_me), people would be surprised to read:
28139 # /* config.h. Generated by config.status. */
28140 configure_input='Generated from '`
28141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28142 `' by configure.'
28143 if test x"$ac_file" != x-; then
28144 configure_input="$ac_file. $configure_input"
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28146 $as_echo "$as_me: creating $ac_file" >&6;}
28148 # Neutralize special characters interpreted by sed in replacement strings.
28149 case $configure_input in #(
28150 *\&* | *\|* | *\\* )
28151 ac_sed_conf_input=`$as_echo "$configure_input" |
28152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28153 *) ac_sed_conf_input=$configure_input;;
28154 esac
28156 case $ac_tag in
28157 *:-:* | *:-) cat >"$tmp/stdin" \
28158 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28159 esac
28161 esac
28163 ac_dir=`$as_dirname -- "$ac_file" ||
28164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28165 X"$ac_file" : 'X\(//\)[^/]' \| \
28166 X"$ac_file" : 'X\(//\)$' \| \
28167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28168 $as_echo X"$ac_file" |
28169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28170 s//\1/
28173 /^X\(\/\/\)[^/].*/{
28174 s//\1/
28177 /^X\(\/\/\)$/{
28178 s//\1/
28181 /^X\(\/\).*/{
28182 s//\1/
28185 s/.*/./; q'`
28186 as_dir="$ac_dir"; as_fn_mkdir_p
28187 ac_builddir=.
28189 case "$ac_dir" in
28190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28193 # A ".." for each directory in $ac_dir_suffix.
28194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28195 case $ac_top_builddir_sub in
28196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28198 esac ;;
28199 esac
28200 ac_abs_top_builddir=$ac_pwd
28201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28202 # for backward compatibility:
28203 ac_top_builddir=$ac_top_build_prefix
28205 case $srcdir in
28206 .) # We are building in place.
28207 ac_srcdir=.
28208 ac_top_srcdir=$ac_top_builddir_sub
28209 ac_abs_top_srcdir=$ac_pwd ;;
28210 [\\/]* | ?:[\\/]* ) # Absolute name.
28211 ac_srcdir=$srcdir$ac_dir_suffix;
28212 ac_top_srcdir=$srcdir
28213 ac_abs_top_srcdir=$srcdir ;;
28214 *) # Relative name.
28215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28216 ac_top_srcdir=$ac_top_build_prefix$srcdir
28217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28218 esac
28219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28222 case $ac_mode in
28225 # CONFIG_FILE
28228 case $INSTALL in
28229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28231 esac
28232 ac_MKDIR_P=$MKDIR_P
28233 case $MKDIR_P in
28234 [\\/$]* | ?:[\\/]* ) ;;
28235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28236 esac
28237 _ACEOF
28239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28240 # If the template does not know about datarootdir, expand it.
28241 # FIXME: This hack should be removed a few years after 2.60.
28242 ac_datarootdir_hack=; ac_datarootdir_seen=
28243 ac_sed_dataroot='
28244 /datarootdir/ {
28248 /@datadir@/p
28249 /@docdir@/p
28250 /@infodir@/p
28251 /@localedir@/p
28252 /@mandir@/p'
28253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28254 *datarootdir*) ac_datarootdir_seen=yes;;
28255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28258 _ACEOF
28259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28260 ac_datarootdir_hack='
28261 s&@datadir@&$datadir&g
28262 s&@docdir@&$docdir&g
28263 s&@infodir@&$infodir&g
28264 s&@localedir@&$localedir&g
28265 s&@mandir@&$mandir&g
28266 s&\\\${datarootdir}&$datarootdir&g' ;;
28267 esac
28268 _ACEOF
28270 # Neutralize VPATH when `$srcdir' = `.'.
28271 # Shell code in configure.ac might set extrasub.
28272 # FIXME: do we really want to maintain this feature?
28273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28274 ac_sed_extra="$ac_vpsub
28275 $extrasub
28276 _ACEOF
28277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28280 s|@configure_input@|$ac_sed_conf_input|;t t
28281 s&@top_builddir@&$ac_top_builddir_sub&;t t
28282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28283 s&@srcdir@&$ac_srcdir&;t t
28284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28285 s&@top_srcdir@&$ac_top_srcdir&;t t
28286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28287 s&@builddir@&$ac_builddir&;t t
28288 s&@abs_builddir@&$ac_abs_builddir&;t t
28289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28290 s&@INSTALL@&$ac_INSTALL&;t t
28291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28292 $ac_datarootdir_hack
28294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28295 || as_fn_error "could not create $ac_file" "$LINENO" 5
28297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28298 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28301 which seems to be undefined. Please make sure it is defined." >&5
28302 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28303 which seems to be undefined. Please make sure it is defined." >&2;}
28305 rm -f "$tmp/stdin"
28306 case $ac_file in
28307 -) cat "$tmp/out" && rm -f "$tmp/out";;
28308 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28309 esac \
28310 || as_fn_error "could not create $ac_file" "$LINENO" 5
28314 # CONFIG_HEADER
28316 if test x"$ac_file" != x-; then
28318 $as_echo "/* $configure_input */" \
28319 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28320 } >"$tmp/config.h" \
28321 || as_fn_error "could not create $ac_file" "$LINENO" 5
28322 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28324 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28325 else
28326 rm -f "$ac_file"
28327 mv "$tmp/config.h" "$ac_file" \
28328 || as_fn_error "could not create $ac_file" "$LINENO" 5
28330 else
28331 $as_echo "/* $configure_input */" \
28332 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28333 || as_fn_error "could not create -" "$LINENO" 5
28335 # Compute "$ac_file"'s index in $config_headers.
28336 _am_arg="$ac_file"
28337 _am_stamp_count=1
28338 for _am_header in $config_headers :; do
28339 case $_am_header in
28340 $_am_arg | $_am_arg:* )
28341 break ;;
28343 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28344 esac
28345 done
28346 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28347 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28348 X"$_am_arg" : 'X\(//\)[^/]' \| \
28349 X"$_am_arg" : 'X\(//\)$' \| \
28350 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28351 $as_echo X"$_am_arg" |
28352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28353 s//\1/
28356 /^X\(\/\/\)[^/].*/{
28357 s//\1/
28360 /^X\(\/\/\)$/{
28361 s//\1/
28364 /^X\(\/\).*/{
28365 s//\1/
28368 s/.*/./; q'`/stamp-h$_am_stamp_count
28371 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28372 $as_echo "$as_me: executing $ac_file commands" >&6;}
28374 esac
28377 case $ac_file$ac_mode in
28378 "default-1":C)
28379 # Only add multilib support code if we just rebuilt the top-level
28380 # Makefile.
28381 case " $CONFIG_FILES " in
28382 *" Makefile "*)
28383 ac_file=Makefile . ${multi_basedir}/config-ml.in
28385 esac ;;
28386 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28387 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28388 # are listed without --file. Let's play safe and only enable the eval
28389 # if we detect the quoting.
28390 case $CONFIG_FILES in
28391 *\'*) eval set x "$CONFIG_FILES" ;;
28392 *) set x $CONFIG_FILES ;;
28393 esac
28394 shift
28395 for mf
28397 # Strip MF so we end up with the name of the file.
28398 mf=`echo "$mf" | sed -e 's/:.*$//'`
28399 # Check whether this is an Automake generated Makefile or not.
28400 # We used to match only the files named `Makefile.in', but
28401 # some people rename them; so instead we look at the file content.
28402 # Grep'ing the first line is not enough: some people post-process
28403 # each Makefile.in and add a new line on top of each file to say so.
28404 # Grep'ing the whole file is not good either: AIX grep has a line
28405 # limit of 2048, but all sed's we know have understand at least 4000.
28406 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28407 dirpart=`$as_dirname -- "$mf" ||
28408 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28409 X"$mf" : 'X\(//\)[^/]' \| \
28410 X"$mf" : 'X\(//\)$' \| \
28411 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28412 $as_echo X"$mf" |
28413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28414 s//\1/
28417 /^X\(\/\/\)[^/].*/{
28418 s//\1/
28421 /^X\(\/\/\)$/{
28422 s//\1/
28425 /^X\(\/\).*/{
28426 s//\1/
28429 s/.*/./; q'`
28430 else
28431 continue
28433 # Extract the definition of DEPDIR, am__include, and am__quote
28434 # from the Makefile without running `make'.
28435 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28436 test -z "$DEPDIR" && continue
28437 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28438 test -z "am__include" && continue
28439 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28440 # When using ansi2knr, U may be empty or an underscore; expand it
28441 U=`sed -n 's/^U = //p' < "$mf"`
28442 # Find all dependency output files, they are included files with
28443 # $(DEPDIR) in their names. We invoke sed twice because it is the
28444 # simplest approach to changing $(DEPDIR) to its actual value in the
28445 # expansion.
28446 for file in `sed -n "
28447 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28448 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28449 # Make sure the directory exists.
28450 test -f "$dirpart/$file" && continue
28451 fdir=`$as_dirname -- "$file" ||
28452 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28453 X"$file" : 'X\(//\)[^/]' \| \
28454 X"$file" : 'X\(//\)$' \| \
28455 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28456 $as_echo X"$file" |
28457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28458 s//\1/
28461 /^X\(\/\/\)[^/].*/{
28462 s//\1/
28465 /^X\(\/\/\)$/{
28466 s//\1/
28469 /^X\(\/\).*/{
28470 s//\1/
28473 s/.*/./; q'`
28474 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28475 # echo "creating $dirpart/$file"
28476 echo '# dummy' > "$dirpart/$file"
28477 done
28478 done
28481 "libtool":C)
28483 # See if we are running on zsh, and set the options which allow our
28484 # commands through without removal of \ escapes.
28485 if test -n "${ZSH_VERSION+set}" ; then
28486 setopt NO_GLOB_SUBST
28489 cfgfile="${ofile}T"
28490 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28491 $RM "$cfgfile"
28493 cat <<_LT_EOF >> "$cfgfile"
28494 #! $SHELL
28496 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28497 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28498 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28499 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28501 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28502 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28503 # Written by Gordon Matzigkeit, 1996
28505 # This file is part of GNU Libtool.
28507 # GNU Libtool is free software; you can redistribute it and/or
28508 # modify it under the terms of the GNU General Public License as
28509 # published by the Free Software Foundation; either version 2 of
28510 # the License, or (at your option) any later version.
28512 # As a special exception to the GNU General Public License,
28513 # if you distribute this file as part of a program or library that
28514 # is built using GNU Libtool, you may include this file under the
28515 # same distribution terms that you use for the rest of that program.
28517 # GNU Libtool is distributed in the hope that it will be useful,
28518 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28520 # GNU General Public License for more details.
28522 # You should have received a copy of the GNU General Public License
28523 # along with GNU Libtool; see the file COPYING. If not, a copy
28524 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28525 # obtained by writing to the Free Software Foundation, Inc.,
28526 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28529 # The names of the tagged configurations supported by this script.
28530 available_tags="FC "
28532 # ### BEGIN LIBTOOL CONFIG
28534 # Which release of libtool.m4 was used?
28535 macro_version=$macro_version
28536 macro_revision=$macro_revision
28538 # Whether or not to build shared libraries.
28539 build_libtool_libs=$enable_shared
28541 # Whether or not to build static libraries.
28542 build_old_libs=$enable_static
28544 # What type of objects to build.
28545 pic_mode=$pic_mode
28547 # Whether or not to optimize for fast installation.
28548 fast_install=$enable_fast_install
28550 # Shell to use when invoking shell scripts.
28551 SHELL=$lt_SHELL
28553 # An echo program that protects backslashes.
28554 ECHO=$lt_ECHO
28556 # The host system.
28557 host_alias=$host_alias
28558 host=$host
28559 host_os=$host_os
28561 # The build system.
28562 build_alias=$build_alias
28563 build=$build
28564 build_os=$build_os
28566 # A sed program that does not truncate output.
28567 SED=$lt_SED
28569 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28570 Xsed="\$SED -e 1s/^X//"
28572 # A grep program that handles long lines.
28573 GREP=$lt_GREP
28575 # An ERE matcher.
28576 EGREP=$lt_EGREP
28578 # A literal string matcher.
28579 FGREP=$lt_FGREP
28581 # A BSD- or MS-compatible name lister.
28582 NM=$lt_NM
28584 # Whether we need soft or hard links.
28585 LN_S=$lt_LN_S
28587 # What is the maximum length of a command?
28588 max_cmd_len=$max_cmd_len
28590 # Object file suffix (normally "o").
28591 objext=$ac_objext
28593 # Executable file suffix (normally "").
28594 exeext=$exeext
28596 # whether the shell understands "unset".
28597 lt_unset=$lt_unset
28599 # turn spaces into newlines.
28600 SP2NL=$lt_lt_SP2NL
28602 # turn newlines into spaces.
28603 NL2SP=$lt_lt_NL2SP
28605 # An object symbol dumper.
28606 OBJDUMP=$lt_OBJDUMP
28608 # Method to check whether dependent libraries are shared objects.
28609 deplibs_check_method=$lt_deplibs_check_method
28611 # Command to use when deplibs_check_method == "file_magic".
28612 file_magic_cmd=$lt_file_magic_cmd
28614 # The archiver.
28615 AR=$lt_AR
28616 AR_FLAGS=$lt_AR_FLAGS
28618 # A symbol stripping program.
28619 STRIP=$lt_STRIP
28621 # Commands used to install an old-style archive.
28622 RANLIB=$lt_RANLIB
28623 old_postinstall_cmds=$lt_old_postinstall_cmds
28624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28626 # Whether to use a lock for old archive extraction.
28627 lock_old_archive_extraction=$lock_old_archive_extraction
28629 # A C compiler.
28630 LTCC=$lt_CC
28632 # LTCC compiler flags.
28633 LTCFLAGS=$lt_CFLAGS
28635 # Take the output of nm and produce a listing of raw symbols and C names.
28636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28638 # Transform the output of nm in a proper C declaration.
28639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28641 # Transform the output of nm in a C name address pair.
28642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28644 # Transform the output of nm in a C name address pair when lib prefix is needed.
28645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28647 # The name of the directory that contains temporary libtool files.
28648 objdir=$objdir
28650 # Used to examine libraries when file_magic_cmd begins with "file".
28651 MAGIC_CMD=$MAGIC_CMD
28653 # Must we lock files when doing compilation?
28654 need_locks=$lt_need_locks
28656 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28657 DSYMUTIL=$lt_DSYMUTIL
28659 # Tool to change global to local symbols on Mac OS X.
28660 NMEDIT=$lt_NMEDIT
28662 # Tool to manipulate fat objects and archives on Mac OS X.
28663 LIPO=$lt_LIPO
28665 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28666 OTOOL=$lt_OTOOL
28668 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28669 OTOOL64=$lt_OTOOL64
28671 # Old archive suffix (normally "a").
28672 libext=$libext
28674 # Shared library suffix (normally ".so").
28675 shrext_cmds=$lt_shrext_cmds
28677 # The commands to extract the exported symbol list from a shared archive.
28678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28680 # Variables whose values should be saved in libtool wrapper scripts and
28681 # restored at link time.
28682 variables_saved_for_relink=$lt_variables_saved_for_relink
28684 # Do we need the "lib" prefix for modules?
28685 need_lib_prefix=$need_lib_prefix
28687 # Do we need a version for libraries?
28688 need_version=$need_version
28690 # Library versioning type.
28691 version_type=$version_type
28693 # Shared library runtime path variable.
28694 runpath_var=$runpath_var
28696 # Shared library path variable.
28697 shlibpath_var=$shlibpath_var
28699 # Is shlibpath searched before the hard-coded library search path?
28700 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28702 # Format of library name prefix.
28703 libname_spec=$lt_libname_spec
28705 # List of archive names. First name is the real one, the rest are links.
28706 # The last name is the one that the linker finds with -lNAME
28707 library_names_spec=$lt_library_names_spec
28709 # The coded name of the library, if different from the real name.
28710 soname_spec=$lt_soname_spec
28712 # Permission mode override for installation of shared libraries.
28713 install_override_mode=$lt_install_override_mode
28715 # Command to use after installation of a shared archive.
28716 postinstall_cmds=$lt_postinstall_cmds
28718 # Command to use after uninstallation of a shared archive.
28719 postuninstall_cmds=$lt_postuninstall_cmds
28721 # Commands used to finish a libtool library installation in a directory.
28722 finish_cmds=$lt_finish_cmds
28724 # As "finish_cmds", except a single script fragment to be evaled but
28725 # not shown.
28726 finish_eval=$lt_finish_eval
28728 # Whether we should hardcode library paths into libraries.
28729 hardcode_into_libs=$hardcode_into_libs
28731 # Compile-time system search path for libraries.
28732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28734 # Run-time system search path for libraries.
28735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28737 # Whether dlopen is supported.
28738 dlopen_support=$enable_dlopen
28740 # Whether dlopen of programs is supported.
28741 dlopen_self=$enable_dlopen_self
28743 # Whether dlopen of statically linked programs is supported.
28744 dlopen_self_static=$enable_dlopen_self_static
28746 # Commands to strip libraries.
28747 old_striplib=$lt_old_striplib
28748 striplib=$lt_striplib
28751 # The linker used to build libraries.
28752 LD=$lt_LD
28754 # How to create reloadable object files.
28755 reload_flag=$lt_reload_flag
28756 reload_cmds=$lt_reload_cmds
28758 # Commands used to build an old-style archive.
28759 old_archive_cmds=$lt_old_archive_cmds
28761 # A language specific compiler.
28762 CC=$lt_compiler
28764 # Is the compiler the GNU compiler?
28765 with_gcc=$GCC
28767 # Compiler flag to turn off builtin functions.
28768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28770 # How to pass a linker flag through the compiler.
28771 wl=$lt_lt_prog_compiler_wl
28773 # Additional compiler flags for building library objects.
28774 pic_flag=$lt_lt_prog_compiler_pic
28776 # Compiler flag to prevent dynamic linking.
28777 link_static_flag=$lt_lt_prog_compiler_static
28779 # Does compiler simultaneously support -c and -o options?
28780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28782 # Whether or not to add -lc for building shared libraries.
28783 build_libtool_need_lc=$archive_cmds_need_lc
28785 # Whether or not to disallow shared libs when runtime libs are static.
28786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28788 # Compiler flag to allow reflexive dlopens.
28789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28791 # Compiler flag to generate shared objects directly from archives.
28792 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28794 # Whether the compiler copes with passing no objects directly.
28795 compiler_needs_object=$lt_compiler_needs_object
28797 # Create an old-style archive from a shared archive.
28798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28800 # Create a temporary old-style archive to link instead of a shared archive.
28801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28803 # Commands used to build a shared archive.
28804 archive_cmds=$lt_archive_cmds
28805 archive_expsym_cmds=$lt_archive_expsym_cmds
28807 # Commands used to build a loadable module if different from building
28808 # a shared archive.
28809 module_cmds=$lt_module_cmds
28810 module_expsym_cmds=$lt_module_expsym_cmds
28812 # Whether we are building with GNU ld or not.
28813 with_gnu_ld=$lt_with_gnu_ld
28815 # Flag that allows shared libraries with undefined symbols to be built.
28816 allow_undefined_flag=$lt_allow_undefined_flag
28818 # Flag that enforces no undefined symbols.
28819 no_undefined_flag=$lt_no_undefined_flag
28821 # Flag to hardcode \$libdir into a binary during linking.
28822 # This must work even if \$libdir does not exist
28823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28825 # If ld is used when linking, flag to hardcode \$libdir into a binary
28826 # during linking. This must work even if \$libdir does not exist.
28827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28829 # Whether we need a single "-rpath" flag with a separated argument.
28830 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28832 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28833 # DIR into the resulting binary.
28834 hardcode_direct=$hardcode_direct
28836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28837 # DIR into the resulting binary and the resulting library dependency is
28838 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28839 # library is relocated.
28840 hardcode_direct_absolute=$hardcode_direct_absolute
28842 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28843 # into the resulting binary.
28844 hardcode_minus_L=$hardcode_minus_L
28846 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28847 # into the resulting binary.
28848 hardcode_shlibpath_var=$hardcode_shlibpath_var
28850 # Set to "yes" if building a shared library automatically hardcodes DIR
28851 # into the library and all subsequent libraries and executables linked
28852 # against it.
28853 hardcode_automatic=$hardcode_automatic
28855 # Set to yes if linker adds runtime paths of dependent libraries
28856 # to runtime path list.
28857 inherit_rpath=$inherit_rpath
28859 # Whether libtool must link a program against all its dependency libraries.
28860 link_all_deplibs=$link_all_deplibs
28862 # Fix the shell variable \$srcfile for the compiler.
28863 fix_srcfile_path=$lt_fix_srcfile_path
28865 # Set to "yes" if exported symbols are required.
28866 always_export_symbols=$always_export_symbols
28868 # The commands to list exported symbols.
28869 export_symbols_cmds=$lt_export_symbols_cmds
28871 # Symbols that should not be listed in the preloaded symbols.
28872 exclude_expsyms=$lt_exclude_expsyms
28874 # Symbols that must always be exported.
28875 include_expsyms=$lt_include_expsyms
28877 # Commands necessary for linking programs (against libraries) with templates.
28878 prelink_cmds=$lt_prelink_cmds
28880 # Specify filename containing input files.
28881 file_list_spec=$lt_file_list_spec
28883 # How to hardcode a shared library path into an executable.
28884 hardcode_action=$hardcode_action
28886 # The directories searched by this compiler when creating a shared library.
28887 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28889 # Dependencies to place before and after the objects being linked to
28890 # create a shared library.
28891 predep_objects=$lt_predep_objects
28892 postdep_objects=$lt_postdep_objects
28893 predeps=$lt_predeps
28894 postdeps=$lt_postdeps
28896 # The library search path used internally by the compiler when linking
28897 # a shared library.
28898 compiler_lib_search_path=$lt_compiler_lib_search_path
28900 # ### END LIBTOOL CONFIG
28902 _LT_EOF
28904 case $host_os in
28905 aix3*)
28906 cat <<\_LT_EOF >> "$cfgfile"
28907 # AIX sometimes has problems with the GCC collect2 program. For some
28908 # reason, if we set the COLLECT_NAMES environment variable, the problems
28909 # vanish in a puff of smoke.
28910 if test "X${COLLECT_NAMES+set}" != Xset; then
28911 COLLECT_NAMES=
28912 export COLLECT_NAMES
28914 _LT_EOF
28916 esac
28919 ltmain="$ac_aux_dir/ltmain.sh"
28922 # We use sed instead of cat because bash on DJGPP gets confused if
28923 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28924 # text mode, it properly converts lines to CR/LF. This bash problem
28925 # is reportedly fixed, but why not run on old versions too?
28926 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28927 || (rm -f "$cfgfile"; exit 1)
28929 case $xsi_shell in
28930 yes)
28931 cat << \_LT_EOF >> "$cfgfile"
28933 # func_dirname file append nondir_replacement
28934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28935 # otherwise set result to NONDIR_REPLACEMENT.
28936 func_dirname ()
28938 case ${1} in
28939 */*) func_dirname_result="${1%/*}${2}" ;;
28940 * ) func_dirname_result="${3}" ;;
28941 esac
28944 # func_basename file
28945 func_basename ()
28947 func_basename_result="${1##*/}"
28950 # func_dirname_and_basename file append nondir_replacement
28951 # perform func_basename and func_dirname in a single function
28952 # call:
28953 # dirname: Compute the dirname of FILE. If nonempty,
28954 # add APPEND to the result, otherwise set result
28955 # to NONDIR_REPLACEMENT.
28956 # value returned in "$func_dirname_result"
28957 # basename: Compute filename of FILE.
28958 # value retuned in "$func_basename_result"
28959 # Implementation must be kept synchronized with func_dirname
28960 # and func_basename. For efficiency, we do not delegate to
28961 # those functions but instead duplicate the functionality here.
28962 func_dirname_and_basename ()
28964 case ${1} in
28965 */*) func_dirname_result="${1%/*}${2}" ;;
28966 * ) func_dirname_result="${3}" ;;
28967 esac
28968 func_basename_result="${1##*/}"
28971 # func_stripname prefix suffix name
28972 # strip PREFIX and SUFFIX off of NAME.
28973 # PREFIX and SUFFIX must not contain globbing or regex special
28974 # characters, hashes, percent signs, but SUFFIX may contain a leading
28975 # dot (in which case that matches only a dot).
28976 func_stripname ()
28978 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28979 # positional parameters, so assign one to ordinary parameter first.
28980 func_stripname_result=${3}
28981 func_stripname_result=${func_stripname_result#"${1}"}
28982 func_stripname_result=${func_stripname_result%"${2}"}
28985 # func_opt_split
28986 func_opt_split ()
28988 func_opt_split_opt=${1%%=*}
28989 func_opt_split_arg=${1#*=}
28992 # func_lo2o object
28993 func_lo2o ()
28995 case ${1} in
28996 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28997 *) func_lo2o_result=${1} ;;
28998 esac
29001 # func_xform libobj-or-source
29002 func_xform ()
29004 func_xform_result=${1%.*}.lo
29007 # func_arith arithmetic-term...
29008 func_arith ()
29010 func_arith_result=$(( $* ))
29013 # func_len string
29014 # STRING may not start with a hyphen.
29015 func_len ()
29017 func_len_result=${#1}
29020 _LT_EOF
29022 *) # Bourne compatible functions.
29023 cat << \_LT_EOF >> "$cfgfile"
29025 # func_dirname file append nondir_replacement
29026 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29027 # otherwise set result to NONDIR_REPLACEMENT.
29028 func_dirname ()
29030 # Extract subdirectory from the argument.
29031 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29032 if test "X$func_dirname_result" = "X${1}"; then
29033 func_dirname_result="${3}"
29034 else
29035 func_dirname_result="$func_dirname_result${2}"
29039 # func_basename file
29040 func_basename ()
29042 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29046 # func_stripname prefix suffix name
29047 # strip PREFIX and SUFFIX off of NAME.
29048 # PREFIX and SUFFIX must not contain globbing or regex special
29049 # characters, hashes, percent signs, but SUFFIX may contain a leading
29050 # dot (in which case that matches only a dot).
29051 # func_strip_suffix prefix name
29052 func_stripname ()
29054 case ${2} in
29055 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29056 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29057 esac
29060 # sed scripts:
29061 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29062 my_sed_long_arg='1s/^-[^=]*=//'
29064 # func_opt_split
29065 func_opt_split ()
29067 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29068 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29071 # func_lo2o object
29072 func_lo2o ()
29074 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29077 # func_xform libobj-or-source
29078 func_xform ()
29080 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29083 # func_arith arithmetic-term...
29084 func_arith ()
29086 func_arith_result=`expr "$@"`
29089 # func_len string
29090 # STRING may not start with a hyphen.
29091 func_len ()
29093 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29096 _LT_EOF
29097 esac
29099 case $lt_shell_append in
29100 yes)
29101 cat << \_LT_EOF >> "$cfgfile"
29103 # func_append var value
29104 # Append VALUE to the end of shell variable VAR.
29105 func_append ()
29107 eval "$1+=\$2"
29109 _LT_EOF
29112 cat << \_LT_EOF >> "$cfgfile"
29114 # func_append var value
29115 # Append VALUE to the end of shell variable VAR.
29116 func_append ()
29118 eval "$1=\$$1\$2"
29121 _LT_EOF
29123 esac
29126 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29127 || (rm -f "$cfgfile"; exit 1)
29129 mv -f "$cfgfile" "$ofile" ||
29130 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29131 chmod +x "$ofile"
29134 cat <<_LT_EOF >> "$ofile"
29136 # ### BEGIN LIBTOOL TAG CONFIG: FC
29138 # The linker used to build libraries.
29139 LD=$lt_LD_FC
29141 # How to create reloadable object files.
29142 reload_flag=$lt_reload_flag_FC
29143 reload_cmds=$lt_reload_cmds_FC
29145 # Commands used to build an old-style archive.
29146 old_archive_cmds=$lt_old_archive_cmds_FC
29148 # A language specific compiler.
29149 CC=$lt_compiler_FC
29151 # Is the compiler the GNU compiler?
29152 with_gcc=$GCC_FC
29154 # Compiler flag to turn off builtin functions.
29155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29157 # How to pass a linker flag through the compiler.
29158 wl=$lt_lt_prog_compiler_wl_FC
29160 # Additional compiler flags for building library objects.
29161 pic_flag=$lt_lt_prog_compiler_pic_FC
29163 # Compiler flag to prevent dynamic linking.
29164 link_static_flag=$lt_lt_prog_compiler_static_FC
29166 # Does compiler simultaneously support -c and -o options?
29167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29169 # Whether or not to add -lc for building shared libraries.
29170 build_libtool_need_lc=$archive_cmds_need_lc_FC
29172 # Whether or not to disallow shared libs when runtime libs are static.
29173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29175 # Compiler flag to allow reflexive dlopens.
29176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29178 # Compiler flag to generate shared objects directly from archives.
29179 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29181 # Whether the compiler copes with passing no objects directly.
29182 compiler_needs_object=$lt_compiler_needs_object_FC
29184 # Create an old-style archive from a shared archive.
29185 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29187 # Create a temporary old-style archive to link instead of a shared archive.
29188 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29190 # Commands used to build a shared archive.
29191 archive_cmds=$lt_archive_cmds_FC
29192 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29194 # Commands used to build a loadable module if different from building
29195 # a shared archive.
29196 module_cmds=$lt_module_cmds_FC
29197 module_expsym_cmds=$lt_module_expsym_cmds_FC
29199 # Whether we are building with GNU ld or not.
29200 with_gnu_ld=$lt_with_gnu_ld_FC
29202 # Flag that allows shared libraries with undefined symbols to be built.
29203 allow_undefined_flag=$lt_allow_undefined_flag_FC
29205 # Flag that enforces no undefined symbols.
29206 no_undefined_flag=$lt_no_undefined_flag_FC
29208 # Flag to hardcode \$libdir into a binary during linking.
29209 # This must work even if \$libdir does not exist
29210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29212 # If ld is used when linking, flag to hardcode \$libdir into a binary
29213 # during linking. This must work even if \$libdir does not exist.
29214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29216 # Whether we need a single "-rpath" flag with a separated argument.
29217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29219 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29220 # DIR into the resulting binary.
29221 hardcode_direct=$hardcode_direct_FC
29223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29224 # DIR into the resulting binary and the resulting library dependency is
29225 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29226 # library is relocated.
29227 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29229 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29230 # into the resulting binary.
29231 hardcode_minus_L=$hardcode_minus_L_FC
29233 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29234 # into the resulting binary.
29235 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29237 # Set to "yes" if building a shared library automatically hardcodes DIR
29238 # into the library and all subsequent libraries and executables linked
29239 # against it.
29240 hardcode_automatic=$hardcode_automatic_FC
29242 # Set to yes if linker adds runtime paths of dependent libraries
29243 # to runtime path list.
29244 inherit_rpath=$inherit_rpath_FC
29246 # Whether libtool must link a program against all its dependency libraries.
29247 link_all_deplibs=$link_all_deplibs_FC
29249 # Fix the shell variable \$srcfile for the compiler.
29250 fix_srcfile_path=$lt_fix_srcfile_path_FC
29252 # Set to "yes" if exported symbols are required.
29253 always_export_symbols=$always_export_symbols_FC
29255 # The commands to list exported symbols.
29256 export_symbols_cmds=$lt_export_symbols_cmds_FC
29258 # Symbols that should not be listed in the preloaded symbols.
29259 exclude_expsyms=$lt_exclude_expsyms_FC
29261 # Symbols that must always be exported.
29262 include_expsyms=$lt_include_expsyms_FC
29264 # Commands necessary for linking programs (against libraries) with templates.
29265 prelink_cmds=$lt_prelink_cmds_FC
29267 # Specify filename containing input files.
29268 file_list_spec=$lt_file_list_spec_FC
29270 # How to hardcode a shared library path into an executable.
29271 hardcode_action=$hardcode_action_FC
29273 # The directories searched by this compiler when creating a shared library.
29274 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29276 # Dependencies to place before and after the objects being linked to
29277 # create a shared library.
29278 predep_objects=$lt_predep_objects_FC
29279 postdep_objects=$lt_postdep_objects_FC
29280 predeps=$lt_predeps_FC
29281 postdeps=$lt_postdeps_FC
29283 # The library search path used internally by the compiler when linking
29284 # a shared library.
29285 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29287 # ### END LIBTOOL TAG CONFIG: FC
29288 _LT_EOF
29291 "gstdint.h":C)
29292 if test "$GCC" = yes; then
29293 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29294 else
29295 echo "/* generated for $CC */" > tmp-stdint.h
29298 sed 's/^ *//' >> tmp-stdint.h <<EOF
29300 #ifndef GCC_GENERATED_STDINT_H
29301 #define GCC_GENERATED_STDINT_H 1
29303 #include <sys/types.h>
29306 if test "$acx_cv_header_stdint" != stdint.h; then
29307 echo "#include <stddef.h>" >> tmp-stdint.h
29309 if test "$acx_cv_header_stdint" != stddef.h; then
29310 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29313 sed 's/^ *//' >> tmp-stdint.h <<EOF
29314 /* glibc uses these symbols as guards to prevent redefinitions. */
29315 #ifdef __int8_t_defined
29316 #define _INT8_T
29317 #define _INT16_T
29318 #define _INT32_T
29319 #endif
29320 #ifdef __uint32_t_defined
29321 #define _UINT32_T
29322 #endif
29326 # ----------------- done header, emit basic int types -------------
29327 if test "$acx_cv_header_stdint" = stddef.h; then
29328 sed 's/^ *//' >> tmp-stdint.h <<EOF
29330 #ifndef _UINT8_T
29331 #define _UINT8_T
29332 #ifndef __uint8_t_defined
29333 #define __uint8_t_defined
29334 #ifndef uint8_t
29335 typedef unsigned $acx_cv_type_int8_t uint8_t;
29336 #endif
29337 #endif
29338 #endif
29340 #ifndef _UINT16_T
29341 #define _UINT16_T
29342 #ifndef __uint16_t_defined
29343 #define __uint16_t_defined
29344 #ifndef uint16_t
29345 typedef unsigned $acx_cv_type_int16_t uint16_t;
29346 #endif
29347 #endif
29348 #endif
29350 #ifndef _UINT32_T
29351 #define _UINT32_T
29352 #ifndef __uint32_t_defined
29353 #define __uint32_t_defined
29354 #ifndef uint32_t
29355 typedef unsigned $acx_cv_type_int32_t uint32_t;
29356 #endif
29357 #endif
29358 #endif
29360 #ifndef _INT8_T
29361 #define _INT8_T
29362 #ifndef __int8_t_defined
29363 #define __int8_t_defined
29364 #ifndef int8_t
29365 typedef $acx_cv_type_int8_t int8_t;
29366 #endif
29367 #endif
29368 #endif
29370 #ifndef _INT16_T
29371 #define _INT16_T
29372 #ifndef __int16_t_defined
29373 #define __int16_t_defined
29374 #ifndef int16_t
29375 typedef $acx_cv_type_int16_t int16_t;
29376 #endif
29377 #endif
29378 #endif
29380 #ifndef _INT32_T
29381 #define _INT32_T
29382 #ifndef __int32_t_defined
29383 #define __int32_t_defined
29384 #ifndef int32_t
29385 typedef $acx_cv_type_int32_t int32_t;
29386 #endif
29387 #endif
29388 #endif
29390 elif test "$ac_cv_type_u_int32_t" = yes; then
29391 sed 's/^ *//' >> tmp-stdint.h <<EOF
29393 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29394 #ifndef _INT8_T
29395 #define _INT8_T
29396 #endif
29397 #ifndef _INT16_T
29398 #define _INT16_T
29399 #endif
29400 #ifndef _INT32_T
29401 #define _INT32_T
29402 #endif
29404 #ifndef _UINT8_T
29405 #define _UINT8_T
29406 #ifndef __uint8_t_defined
29407 #define __uint8_t_defined
29408 #ifndef uint8_t
29409 typedef u_int8_t uint8_t;
29410 #endif
29411 #endif
29412 #endif
29414 #ifndef _UINT16_T
29415 #define _UINT16_T
29416 #ifndef __uint16_t_defined
29417 #define __uint16_t_defined
29418 #ifndef uint16_t
29419 typedef u_int16_t uint16_t;
29420 #endif
29421 #endif
29422 #endif
29424 #ifndef _UINT32_T
29425 #define _UINT32_T
29426 #ifndef __uint32_t_defined
29427 #define __uint32_t_defined
29428 #ifndef uint32_t
29429 typedef u_int32_t uint32_t;
29430 #endif
29431 #endif
29432 #endif
29434 else
29435 sed 's/^ *//' >> tmp-stdint.h <<EOF
29437 /* Some systems have guard macros to prevent redefinitions, define them. */
29438 #ifndef _INT8_T
29439 #define _INT8_T
29440 #endif
29441 #ifndef _INT16_T
29442 #define _INT16_T
29443 #endif
29444 #ifndef _INT32_T
29445 #define _INT32_T
29446 #endif
29447 #ifndef _UINT8_T
29448 #define _UINT8_T
29449 #endif
29450 #ifndef _UINT16_T
29451 #define _UINT16_T
29452 #endif
29453 #ifndef _UINT32_T
29454 #define _UINT32_T
29455 #endif
29459 # ------------- done basic int types, emit int64_t types ------------
29460 if test "$ac_cv_type_uint64_t" = yes; then
29461 sed 's/^ *//' >> tmp-stdint.h <<EOF
29463 /* system headers have good uint64_t and int64_t */
29464 #ifndef _INT64_T
29465 #define _INT64_T
29466 #endif
29467 #ifndef _UINT64_T
29468 #define _UINT64_T
29469 #endif
29471 elif test "$ac_cv_type_u_int64_t" = yes; then
29472 sed 's/^ *//' >> tmp-stdint.h <<EOF
29474 /* system headers have an u_int64_t (and int64_t) */
29475 #ifndef _INT64_T
29476 #define _INT64_T
29477 #endif
29478 #ifndef _UINT64_T
29479 #define _UINT64_T
29480 #ifndef __uint64_t_defined
29481 #define __uint64_t_defined
29482 #ifndef uint64_t
29483 typedef u_int64_t uint64_t;
29484 #endif
29485 #endif
29486 #endif
29488 elif test -n "$acx_cv_type_int64_t"; then
29489 sed 's/^ *//' >> tmp-stdint.h <<EOF
29491 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29492 #ifndef _INT64_T
29493 #define _INT64_T
29494 #ifndef int64_t
29495 typedef $acx_cv_type_int64_t int64_t;
29496 #endif
29497 #endif
29498 #ifndef _UINT64_T
29499 #define _UINT64_T
29500 #ifndef __uint64_t_defined
29501 #define __uint64_t_defined
29502 #ifndef uint64_t
29503 typedef unsigned $acx_cv_type_int64_t uint64_t;
29504 #endif
29505 #endif
29506 #endif
29508 else
29509 sed 's/^ *//' >> tmp-stdint.h <<EOF
29511 /* some common heuristics for int64_t, using compiler-specific tests */
29512 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29513 #ifndef _INT64_T
29514 #define _INT64_T
29515 #ifndef __int64_t_defined
29516 #ifndef int64_t
29517 typedef long long int64_t;
29518 #endif
29519 #endif
29520 #endif
29521 #ifndef _UINT64_T
29522 #define _UINT64_T
29523 #ifndef uint64_t
29524 typedef unsigned long long uint64_t;
29525 #endif
29526 #endif
29528 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29529 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29530 does not implement __extension__. But that compiler doesn't define
29531 __GNUC_MINOR__. */
29532 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29533 # define __extension__
29534 # endif
29536 # ifndef _INT64_T
29537 # define _INT64_T
29538 # ifndef int64_t
29539 __extension__ typedef long long int64_t;
29540 # endif
29541 # endif
29542 # ifndef _UINT64_T
29543 # define _UINT64_T
29544 # ifndef uint64_t
29545 __extension__ typedef unsigned long long uint64_t;
29546 # endif
29547 # endif
29549 #elif !defined __STRICT_ANSI__
29550 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29552 # ifndef _INT64_T
29553 # define _INT64_T
29554 # ifndef int64_t
29555 typedef __int64 int64_t;
29556 # endif
29557 # endif
29558 # ifndef _UINT64_T
29559 # define _UINT64_T
29560 # ifndef uint64_t
29561 typedef unsigned __int64 uint64_t;
29562 # endif
29563 # endif
29564 # endif /* compiler */
29566 #endif /* ANSI version */
29570 # ------------- done int64_t types, emit intptr types ------------
29571 if test "$ac_cv_type_uintptr_t" != yes; then
29572 sed 's/^ *//' >> tmp-stdint.h <<EOF
29574 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29575 #ifndef __uintptr_t_defined
29576 #ifndef uintptr_t
29577 typedef u$acx_cv_type_intptr_t uintptr_t;
29578 #endif
29579 #endif
29580 #ifndef __intptr_t_defined
29581 #ifndef intptr_t
29582 typedef $acx_cv_type_intptr_t intptr_t;
29583 #endif
29584 #endif
29588 # ------------- done intptr types, emit int_least types ------------
29589 if test "$ac_cv_type_int_least32_t" != yes; then
29590 sed 's/^ *//' >> tmp-stdint.h <<EOF
29592 /* Define int_least types */
29593 typedef int8_t int_least8_t;
29594 typedef int16_t int_least16_t;
29595 typedef int32_t int_least32_t;
29596 #ifdef _INT64_T
29597 typedef int64_t int_least64_t;
29598 #endif
29600 typedef uint8_t uint_least8_t;
29601 typedef uint16_t uint_least16_t;
29602 typedef uint32_t uint_least32_t;
29603 #ifdef _UINT64_T
29604 typedef uint64_t uint_least64_t;
29605 #endif
29609 # ------------- done intptr types, emit int_fast types ------------
29610 if test "$ac_cv_type_int_fast32_t" != yes; then
29611 sed 's/^ *//' >> tmp-stdint.h <<EOF
29613 /* Define int_fast types. short is often slow */
29614 typedef int8_t int_fast8_t;
29615 typedef int int_fast16_t;
29616 typedef int32_t int_fast32_t;
29617 #ifdef _INT64_T
29618 typedef int64_t int_fast64_t;
29619 #endif
29621 typedef uint8_t uint_fast8_t;
29622 typedef unsigned int uint_fast16_t;
29623 typedef uint32_t uint_fast32_t;
29624 #ifdef _UINT64_T
29625 typedef uint64_t uint_fast64_t;
29626 #endif
29630 if test "$ac_cv_type_uintmax_t" != yes; then
29631 sed 's/^ *//' >> tmp-stdint.h <<EOF
29633 /* Define intmax based on what we found */
29634 #ifndef intmax_t
29635 #ifdef _INT64_T
29636 typedef int64_t intmax_t;
29637 #else
29638 typedef long intmax_t;
29639 #endif
29640 #endif
29641 #ifndef uintmax_t
29642 #ifdef _UINT64_T
29643 typedef uint64_t uintmax_t;
29644 #else
29645 typedef unsigned long uintmax_t;
29646 #endif
29647 #endif
29651 sed 's/^ *//' >> tmp-stdint.h <<EOF
29653 #endif /* GCC_GENERATED_STDINT_H */
29656 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29657 rm -f tmp-stdint.h
29658 else
29659 mv -f tmp-stdint.h gstdint.h
29664 esac
29665 done # for ac_tag
29668 as_fn_exit 0
29669 _ACEOF
29670 ac_clean_files=$ac_clean_files_save
29672 test $ac_write_fail = 0 ||
29673 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29676 # configure is writing to config.log, and then calls config.status.
29677 # config.status does its own redirection, appending to config.log.
29678 # Unfortunately, on DOS this fails, as config.log is still kept open
29679 # by configure, so config.status won't be able to write to it; its
29680 # output is simply discarded. So we exec the FD to /dev/null,
29681 # effectively closing config.log, so it can be properly (re)opened and
29682 # appended to by config.status. When coming back to configure, we
29683 # need to make the FD available again.
29684 if test "$no_create" != yes; then
29685 ac_cs_success=:
29686 ac_config_status_args=
29687 test "$silent" = yes &&
29688 ac_config_status_args="$ac_config_status_args --quiet"
29689 exec 5>/dev/null
29690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29691 exec 5>>config.log
29692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29693 # would make configure fail if this is the last instruction.
29694 $ac_cs_success || as_fn_exit $?
29696 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29698 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}