Avoid is_constant calls in vectorizable_bswap
[official-gcc.git] / libgfortran / configure
bloba583b676a3e5e45b25e1251149dac172f7fcf429
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 get_gcc_base_ver
609 HAVE_AVX128_FALSE
610 HAVE_AVX128_TRUE
611 IEEE_FLAGS
612 IEEE_SUPPORT
613 IEEE_SUPPORT_FALSE
614 IEEE_SUPPORT_TRUE
615 FPU_HOST_HEADER
616 LIBGFOR_BUILD_QUAD_FALSE
617 LIBGFOR_BUILD_QUAD_TRUE
618 LIBQUADINCLUDE
619 LIBQUADLIB_DEP
620 LIBQUADLIB
621 LIBQUADSPEC
622 extra_ldflags_libgfortran
623 ac_ct_FC
624 FCFLAGS
626 enable_static
627 enable_shared
628 lt_host_flags
629 OTOOL64
630 OTOOL
631 LIPO
632 NMEDIT
633 DSYMUTIL
634 OBJDUMP
635 LN_S
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LIBTOOL
640 RANLIB
643 HAVE_HWCAP_FALSE
644 HAVE_HWCAP_TRUE
645 HWCAP_LDFLAGS
647 FGREP
649 SECTION_FLAGS
650 LIBGFOR_MINIMAL_FALSE
651 LIBGFOR_MINIMAL_TRUE
652 LIBGFOR_USE_SYMVER_SUN_FALSE
653 LIBGFOR_USE_SYMVER_SUN_TRUE
654 LIBGFOR_USE_SYMVER_GNU_FALSE
655 LIBGFOR_USE_SYMVER_GNU_TRUE
656 LIBGFOR_USE_SYMVER_FALSE
657 LIBGFOR_USE_SYMVER_TRUE
658 AM_CFLAGS
659 AM_FCFLAGS
660 toolexeclibdir
661 toolexecdir
662 EGREP
663 GREP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
682 multi_basedir
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_noncanonical
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 onestep
719 onestep_FALSE
720 onestep_TRUE
721 target_subdir
722 host_subdir
723 build_subdir
724 build_libsubdir
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 with_build_libsubdir
771 enable_version_specific_runtime_libs
772 enable_intermodule
773 enable_maintainer_mode
774 enable_multilib
775 enable_dependency_tracking
776 enable_cet
777 enable_symvers
778 with_gnu_ld
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 enable_libtool_lock
784 enable_largefile
785 enable_libquadmath_support
786 with_gcc_major_version_only
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
798 FCFLAGS'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
849 ac_prev=
850 ac_dashdash=
851 for ac_option
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
869 ac_dashdash=yes ;;
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
888 --config-cache | -C)
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information."
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 esac
1206 done
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1292 /^X\(\/\/\)$/{
1293 s//\1/
1296 /^X\(\/\).*/{
1297 s//\1/
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1305 else
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1395 cat <<\_ACEOF
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1412 esac
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-version-specific-runtime-libs
1420 specify that runtime libraries should be installed
1421 in a compiler-specific directory
1422 --enable-intermodule build the library in one step
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-multilib build many library versions (default)
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --enable-cet enable Intel CET in target libraries [default=no]
1429 --disable-symvers disable symbol versioning for libgfortran
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --disable-largefile omit support for large files
1436 --disable-libquadmath-support
1437 disable libquadmath support for Fortran
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-build-libsubdir=DIR Directory where to find libraries for build system
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gcc-major-version-only
1447 use only GCC major number in filesystem paths
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1458 FC Fortran compiler command
1459 FCFLAGS Fortran compiler flags
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to the package provider.
1465 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1466 General help using GNU software: <http://www.gnu.org/gethelp/>.
1467 _ACEOF
1468 ac_status=$?
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 GNU Fortran Runtime Library configure 0.3
1530 generated by GNU Autoconf 2.64
1532 Copyright (C) 2009 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1574 ac_retval=1
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1579 } # ac_fn_c_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } >/dev/null && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1616 } # ac_fn_c_try_cpp
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1622 # accordingly.
1623 ac_fn_c_check_header_mongrel ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 else
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1646 else
1647 ac_header_compiler=no
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1662 else
1663 ac_header_preproc=no
1665 rm -f conftest.err conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 yes:no: )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 no:yes:* )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 esac
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 eval "$3=\$ac_header_compiler"
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
1745 } # ac_fn_c_try_run
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1822 } # ac_fn_c_try_link
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 if test x$gcc_no_link = xyes; then
1836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1855 #undef $2
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1872 main ()
1874 return $2 ();
1876 return 0;
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_func
1894 # ac_fn_fc_try_compile LINENO
1895 # ---------------------------
1896 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.$ac_objext; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 return $ac_retval
1930 } # ac_fn_fc_try_compile
1932 # ac_fn_fc_try_link LINENO
1933 # ------------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_fc_try_link ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_fc_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 $as_test_x conftest$ac_exeext
1960 }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_retval=1
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1976 } # ac_fn_fc_try_link
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=no"
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 if (sizeof ($2))
1998 return 0;
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 if (sizeof (($2)))
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2018 else
2019 eval "$3=yes"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_c_check_type
2032 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2033 # --------------------------------------------
2034 # Tries to find the compile-time value of EXPR in a program that includes
2035 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 # computed
2037 ac_fn_c_compute_int ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if test "$cross_compiling" = yes; then
2041 # Depending upon the size, compute the lo and hi bounds.
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 static int test_array [1 - 2 * !(($2) >= 0)];
2049 test_array [0] = 0
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=0 ac_mid=0
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid; break
2073 else
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2076 ac_lo= ac_hi=
2077 break
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) < 0)];
2091 test_array [0] = 0
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115 else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 ac_lo= ac_hi=
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid
2149 else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2167 main ()
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2180 else
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198 ac_retval=1
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206 return $ac_retval
2208 } # ac_fn_c_compute_int
2210 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2211 # ----------------------------------------------------
2212 # Tries to find if the field MEMBER exists in type AGGR, after including
2213 # INCLUDES, setting cache variable VAR accordingly.
2214 ac_fn_c_check_member ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2218 $as_echo_n "checking for $2.$3... " >&6; }
2219 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 static $2 ac_aggr;
2229 if (ac_aggr.$3)
2230 return 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 main ()
2244 static $2 ac_aggr;
2245 if (sizeof ac_aggr.$3)
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 eval "$4=no"
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 eval ac_res=\$$4
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_member
2266 cat >config.log <<_ACEOF
2267 This file contains any messages produced by compilers while
2268 running configure, to aid debugging if configure makes a mistake.
2270 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2271 generated by GNU Autoconf 2.64. Invocation command line was
2273 $ $0 $@
2275 _ACEOF
2276 exec 5>>config.log
2278 cat <<_ASUNAME
2279 ## --------- ##
2280 ## Platform. ##
2281 ## --------- ##
2283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2300 _ASUNAME
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 $as_echo "PATH: $as_dir"
2308 done
2309 IFS=$as_save_IFS
2311 } >&5
2313 cat >&5 <<_ACEOF
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2320 _ACEOF
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2334 for ac_arg
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2363 as_fn_append ac_configure_args " '$ac_arg'"
2365 esac
2366 done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log. We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377 # Save into config.log some information that might help in debugging.
2379 echo
2381 cat <<\_ASBOX
2382 ## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##
2385 _ASBOX
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414 esac |
2415 sort
2417 echo
2419 cat <<\_ASBOX
2420 ## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##
2423 _ASBOX
2424 echo
2425 for ac_var in $ac_subst_vars
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2435 if test -n "$ac_subst_files"; then
2436 cat <<\_ASBOX
2437 ## ------------------- ##
2438 ## File substitutions. ##
2439 ## ------------------- ##
2440 _ASBOX
2441 echo
2442 for ac_var in $ac_subst_files
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2453 if test -s confdefs.h; then
2454 cat <<\_ASBOX
2455 ## ----------- ##
2456 ## confdefs.h. ##
2457 ## ----------- ##
2458 _ASBOX
2459 echo
2460 cat confdefs.h
2461 echo
2463 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status"
2466 } >&5
2467 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status
2471 for ac_signal in 1 2 13 15; do
2472 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473 done
2474 ac_signal=0
2476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2477 rm -f -r conftest* confdefs.h
2479 $as_echo "/* confdefs.h */" > confdefs.h
2481 # Predefined preprocessor variables.
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 _ACEOF
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 _ACEOF
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_URL "$PACKAGE_URL"
2505 _ACEOF
2508 # Let the site file select an alternate cache file if it wants to.
2509 # Prefer an explicitly selected file to automatically selected ones.
2510 ac_site_file1=NONE
2511 ac_site_file2=NONE
2512 if test -n "$CONFIG_SITE"; then
2513 ac_site_file1=$CONFIG_SITE
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2517 else
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 test "x$ac_site_file" = xNONE && continue
2524 if test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file"
2530 done
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special
2534 # files actually), so we avoid doing that.
2535 if test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2549 as_fn_append ac_header_list " unistd.h"
2550 as_fn_append ac_header_list " sys/random.h"
2551 as_fn_append ac_header_list " sys/time.h"
2552 as_fn_append ac_header_list " sys/times.h"
2553 as_fn_append ac_header_list " sys/resource.h"
2554 as_fn_append ac_header_list " sys/types.h"
2555 as_fn_append ac_header_list " sys/stat.h"
2556 as_fn_append ac_header_list " sys/wait.h"
2557 as_fn_append ac_header_list " floatingpoint.h"
2558 as_fn_append ac_header_list " ieeefp.h"
2559 as_fn_append ac_header_list " fenv.h"
2560 as_fn_append ac_header_list " fptrap.h"
2561 as_fn_append ac_header_list " fpxcp.h"
2562 as_fn_append ac_header_list " pwd.h"
2563 as_fn_append ac_header_list " complex.h"
2564 as_fn_append ac_header_list " xlocale.h"
2565 as_fn_append ac_func_list " getrusage"
2566 as_fn_append ac_func_list " times"
2567 as_fn_append ac_func_list " mkstemp"
2568 as_fn_append ac_func_list " strtof"
2569 as_fn_append ac_func_list " strtold"
2570 as_fn_append ac_func_list " snprintf"
2571 as_fn_append ac_func_list " ftruncate"
2572 as_fn_append ac_func_list " chsize"
2573 as_fn_append ac_func_list " chdir"
2574 as_fn_append ac_func_list " getentropy"
2575 as_fn_append ac_func_list " getlogin"
2576 as_fn_append ac_func_list " gethostname"
2577 as_fn_append ac_func_list " kill"
2578 as_fn_append ac_func_list " link"
2579 as_fn_append ac_func_list " symlink"
2580 as_fn_append ac_func_list " sleep"
2581 as_fn_append ac_func_list " ttyname"
2582 as_fn_append ac_func_list " alarm"
2583 as_fn_append ac_func_list " access"
2584 as_fn_append ac_func_list " fork"
2585 as_fn_append ac_func_list " setmode"
2586 as_fn_append ac_func_list " fcntl"
2587 as_fn_append ac_func_list " gettimeofday"
2588 as_fn_append ac_func_list " stat"
2589 as_fn_append ac_func_list " fstat"
2590 as_fn_append ac_func_list " lstat"
2591 as_fn_append ac_func_list " getpwuid"
2592 as_fn_append ac_func_list " vsnprintf"
2593 as_fn_append ac_func_list " dup"
2594 as_fn_append ac_func_list " getcwd"
2595 as_fn_append ac_func_list " localtime_r"
2596 as_fn_append ac_func_list " gmtime_r"
2597 as_fn_append ac_func_list " getpwuid_r"
2598 as_fn_append ac_func_list " ttyname_r"
2599 as_fn_append ac_func_list " clock_gettime"
2600 as_fn_append ac_func_list " getgid"
2601 as_fn_append ac_func_list " getpid"
2602 as_fn_append ac_func_list " getuid"
2603 as_fn_append ac_func_list " geteuid"
2604 as_fn_append ac_func_list " umask"
2605 as_fn_append ac_func_list " getegid"
2606 as_fn_append ac_func_list " secure_getenv"
2607 as_fn_append ac_func_list " __secure_getenv"
2608 as_fn_append ac_func_list " mkostemp"
2609 as_fn_append ac_func_list " strnlen"
2610 as_fn_append ac_func_list " strndup"
2611 as_fn_append ac_func_list " newlocale"
2612 as_fn_append ac_func_list " freelocale"
2613 as_fn_append ac_func_list " uselocale"
2614 as_fn_append ac_func_list " strerror_l"
2615 as_fn_append ac_header_list " math.h"
2616 # Check that the precious variables saved in the cache have kept the same
2617 # value.
2618 ac_cache_corrupted=false
2619 for ac_var in $ac_precious_vars; do
2620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621 eval ac_new_set=\$ac_env_${ac_var}_set
2622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623 eval ac_new_val=\$ac_env_${ac_var}_value
2624 case $ac_old_set,$ac_new_set in
2625 set,)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,set)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,);;
2635 if test "x$ac_old_val" != "x$ac_new_val"; then
2636 # differences in whitespace do not lead to failure.
2637 ac_old_val_w=`echo x $ac_old_val`
2638 ac_new_val_w=`echo x $ac_new_val`
2639 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642 ac_cache_corrupted=:
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646 eval $ac_var=\$ac_old_val
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2649 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2651 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2652 fi;;
2653 esac
2654 # Pass precious variables to config.status.
2655 if test "$ac_new_set" = set; then
2656 case $ac_new_val in
2657 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 *) ac_arg=$ac_var=$ac_new_val ;;
2659 esac
2660 case " $ac_configure_args " in
2661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2662 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 esac
2665 done
2666 if $ac_cache_corrupted; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2673 ## -------------------- ##
2674 ## Main body of script. ##
2675 ## -------------------- ##
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 ac_config_headers="$ac_config_headers config.h"
2689 ac_aux_dir=
2690 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2691 for ac_t in install-sh install.sh shtool; do
2692 if test -f "$ac_dir/$ac_t"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/$ac_t -c"
2695 break 2
2697 done
2698 done
2699 if test -z "$ac_aux_dir"; then
2700 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2703 # These three variables are undocumented and unsupported,
2704 # and are intended to be withdrawn in a future Autoconf release.
2705 # They can cause serious problems if a builder's source tree is in a directory
2706 # whose full name contains unusual characters.
2707 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2708 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2709 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2712 # Make sure we can run config.sub.
2713 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2714 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2717 $as_echo_n "checking build system type... " >&6; }
2718 if test "${ac_cv_build+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 ac_build_alias=$build_alias
2722 test "x$ac_build_alias" = x &&
2723 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2724 test "x$ac_build_alias" = x &&
2725 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2726 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2727 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2731 $as_echo "$ac_cv_build" >&6; }
2732 case $ac_cv_build in
2733 *-*-*) ;;
2734 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2735 esac
2736 build=$ac_cv_build
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_build
2739 shift
2740 build_cpu=$1
2741 build_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 build_os=$*
2746 IFS=$ac_save_IFS
2747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2750 case ${build_alias} in
2751 "") build_noncanonical=${build} ;;
2752 *) build_noncanonical=${build_alias} ;;
2753 esac
2755 case ${host_alias} in
2756 "") host_noncanonical=${build_noncanonical} ;;
2757 *) host_noncanonical=${host_alias} ;;
2758 esac
2760 case ${target_alias} in
2761 "") target_noncanonical=${host_noncanonical} ;;
2762 *) target_noncanonical=${target_alias} ;;
2763 esac
2766 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2767 # have matching libraries, they should use host libraries: Makefile.tpl
2768 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2769 # However, they still use the build modules, because the corresponding
2770 # host modules (e.g. bison) are only built for the host when bootstrap
2771 # finishes. So:
2772 # - build_subdir is where we find build modules, and never changes.
2773 # - build_libsubdir is where we find build libraries, and can be overridden.
2775 # Prefix 'build-' so this never conflicts with target_subdir.
2776 build_subdir="build-${build_noncanonical}"
2778 # Check whether --with-build-libsubdir was given.
2779 if test "${with_build_libsubdir+set}" = set; then :
2780 withval=$with_build_libsubdir; build_libsubdir="$withval"
2781 else
2782 build_libsubdir="$build_subdir"
2785 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2786 if ( test $srcdir = . && test -d gcc ) \
2787 || test -d $srcdir/../host-${host_noncanonical}; then
2788 host_subdir="host-${host_noncanonical}"
2789 else
2790 host_subdir=.
2792 # No prefix.
2793 target_subdir=${target_noncanonical}
2796 # -------
2797 # Options
2798 # -------
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2801 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2802 # Check whether --enable-version-specific-runtime-libs was given.
2803 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2804 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2805 yes) version_specific_libs=yes ;;
2806 no) version_specific_libs=no ;;
2807 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2808 esac
2809 else
2810 version_specific_libs=no
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2814 $as_echo "$version_specific_libs" >&6; }
2816 # Build with intermodule optimisations
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2818 $as_echo_n "checking for --enable-intermodule... " >&6; }
2819 # Check whether --enable-intermodule was given.
2820 if test "${enable_intermodule+set}" = set; then :
2821 enableval=$enable_intermodule; case "$enable_intermodule" in
2822 yes) onestep="-onestep";;
2823 *) onestep="";;
2824 esac
2825 else
2826 onestep=""
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2830 $as_echo "$enable_intermodule" >&6; }
2831 if test x$onestep = x-onestep; then
2832 onestep_TRUE=
2833 onestep_FALSE='#'
2834 else
2835 onestep_TRUE='#'
2836 onestep_FALSE=
2841 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2843 # You will slowly go insane if you do not grok the following fact: when
2844 # building this library, the top-level /target/ becomes the library's /host/.
2846 # configure then causes --target to default to --host, exactly like any
2847 # other package using autoconf. Therefore, 'target' and 'host' will
2848 # always be the same. This makes sense both for native and cross compilers
2849 # just think about it for a little while. :-)
2851 # Also, if this library is being configured as part of a cross compiler, the
2852 # top-level configure script will pass the "real" host as $with_cross_host.
2854 # Do not delete or change the following two lines. For why, see
2855 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2857 $as_echo_n "checking host system type... " >&6; }
2858 if test "${ac_cv_host+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test "x$host_alias" = x; then
2862 ac_cv_host=$ac_cv_build
2863 else
2864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2865 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2870 $as_echo "$ac_cv_host" >&6; }
2871 case $ac_cv_host in
2872 *-*-*) ;;
2873 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2874 esac
2875 host=$ac_cv_host
2876 ac_save_IFS=$IFS; IFS='-'
2877 set x $ac_cv_host
2878 shift
2879 host_cpu=$1
2880 host_vendor=$2
2881 shift; shift
2882 # Remember, the first character of IFS is used to create $*,
2883 # except with old shells:
2884 host_os=$*
2885 IFS=$ac_save_IFS
2886 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2890 $as_echo_n "checking target system type... " >&6; }
2891 if test "${ac_cv_target+set}" = set; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test "x$target_alias" = x; then
2895 ac_cv_target=$ac_cv_host
2896 else
2897 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2898 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2903 $as_echo "$ac_cv_target" >&6; }
2904 case $ac_cv_target in
2905 *-*-*) ;;
2906 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2907 esac
2908 target=$ac_cv_target
2909 ac_save_IFS=$IFS; IFS='-'
2910 set x $ac_cv_target
2911 shift
2912 target_cpu=$1
2913 target_vendor=$2
2914 shift; shift
2915 # Remember, the first character of IFS is used to create $*,
2916 # except with old shells:
2917 target_os=$*
2918 IFS=$ac_save_IFS
2919 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2922 # The aliases save the names the user supplied, while $host etc.
2923 # will get canonicalized.
2924 test -n "$target_alias" &&
2925 test "$program_prefix$program_suffix$program_transform_name" = \
2926 NONENONEs,x,x, &&
2927 program_prefix=${target_alias}-
2932 target_alias=${target_alias-$host_alias}
2935 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2936 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2937 # 1.9.6: minimum required version
2938 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2939 # of other PACKAGE_* variables will, however, and there's nothing
2940 # we can do about that; they come from AC_INIT).
2941 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2942 # file in the top srcdir, etc, etc), so stop complaining.
2943 # no-dist: we don't want 'dist' and related rules.
2944 # -Wall: turns on all automake warnings...
2945 # -Wno-portability: ...except this one, since GNU make is required.
2946 am__api_version='1.11'
2948 # Find a good install program. We prefer a C program (faster),
2949 # so one script is as good as another. But avoid the broken or
2950 # incompatible versions:
2951 # SysV /etc/install, /usr/sbin/install
2952 # SunOS /usr/etc/install
2953 # IRIX /sbin/install
2954 # AIX /bin/install
2955 # AmigaOS /C/install, which installs bootblocks on floppy discs
2956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2959 # OS/2's system install, which has a completely different semantic
2960 # ./install, which can be erroneously created by make from ./install.sh.
2961 # Reject install programs that cannot install multiple files.
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2963 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2964 if test -z "$INSTALL"; then
2965 if test "${ac_cv_path_install+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 # Account for people who put trailing slashes in PATH elements.
2974 case $as_dir/ in #((
2975 ./ | .// | /[cC]/* | \
2976 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2977 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2978 /usr/ucb/* ) ;;
2980 # OSF1 and SCO ODT 3.0 have their own names for install.
2981 # Don't use installbsd from OSF since it installs stuff as root
2982 # by default.
2983 for ac_prog in ginstall scoinst install; do
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2986 if test $ac_prog = install &&
2987 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2988 # AIX install. It has an incompatible calling convention.
2990 elif test $ac_prog = install &&
2991 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # program-specific install script used by HP pwplus--don't use.
2994 else
2995 rm -rf conftest.one conftest.two conftest.dir
2996 echo one > conftest.one
2997 echo two > conftest.two
2998 mkdir conftest.dir
2999 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3000 test -s conftest.one && test -s conftest.two &&
3001 test -s conftest.dir/conftest.one &&
3002 test -s conftest.dir/conftest.two
3003 then
3004 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3005 break 3
3009 done
3010 done
3012 esac
3014 done
3015 IFS=$as_save_IFS
3017 rm -rf conftest.one conftest.two conftest.dir
3020 if test "${ac_cv_path_install+set}" = set; then
3021 INSTALL=$ac_cv_path_install
3022 else
3023 # As a last resort, use the slow shell script. Don't cache a
3024 # value for INSTALL within a source directory, because that will
3025 # break other packages using the cache if that directory is
3026 # removed, or if the value is a relative name.
3027 INSTALL=$ac_install_sh
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3031 $as_echo "$INSTALL" >&6; }
3033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3034 # It thinks the first close brace ends the variable substitution.
3035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3042 $as_echo_n "checking whether build environment is sane... " >&6; }
3043 # Just in case
3044 sleep 1
3045 echo timestamp > conftest.file
3046 # Reject unsafe characters in $srcdir or the absolute working directory
3047 # name. Accept space and tab only in the latter.
3048 am_lf='
3050 case `pwd` in
3051 *[\\\"\#\$\&\'\`$am_lf]*)
3052 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3053 esac
3054 case $srcdir in
3055 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3056 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3057 esac
3059 # Do `set' in a subshell so we don't clobber the current shell's
3060 # arguments. Must try -L first in case configure is actually a
3061 # symlink; some systems play weird games with the mod time of symlinks
3062 # (eg FreeBSD returns the mod time of the symlink's containing
3063 # directory).
3064 if (
3065 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3066 if test "$*" = "X"; then
3067 # -L didn't work.
3068 set X `ls -t "$srcdir/configure" conftest.file`
3070 rm -f conftest.file
3071 if test "$*" != "X $srcdir/configure conftest.file" \
3072 && test "$*" != "X conftest.file $srcdir/configure"; then
3074 # If neither matched, then we have a broken ls. This can happen
3075 # if, for instance, CONFIG_SHELL is bash and it inherits a
3076 # broken ls alias from the environment. This has actually
3077 # happened. Such a system could not be considered "sane".
3078 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3079 alias in your environment" "$LINENO" 5
3082 test "$2" = conftest.file
3084 then
3085 # Ok.
3087 else
3088 as_fn_error "newly created file is older than distributed files!
3089 Check your system clock" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092 $as_echo "yes" >&6; }
3093 test "$program_prefix" != NONE &&
3094 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3095 # Use a double $ so make ignores it.
3096 test "$program_suffix" != NONE &&
3097 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3098 # Double any \ or $.
3099 # By default was `s,x,x', remove it if useless.
3100 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3101 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3103 # expand $ac_aux_dir to an absolute path
3104 am_aux_dir=`cd $ac_aux_dir && pwd`
3106 if test x"${MISSING+set}" != xset; then
3107 case $am_aux_dir in
3108 *\ * | *\ *)
3109 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3111 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3112 esac
3114 # Use eval to expand $SHELL
3115 if eval "$MISSING --run true"; then
3116 am_missing_run="$MISSING --run "
3117 else
3118 am_missing_run=
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3120 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3123 if test x"${install_sh}" != xset; then
3124 case $am_aux_dir in
3125 *\ * | *\ *)
3126 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3128 install_sh="\${SHELL} $am_aux_dir/install-sh"
3129 esac
3132 # Installed binaries are usually stripped using `strip' when the user
3133 # run `make install-strip'. However `strip' might not be the right
3134 # tool to use in cross-compilation environments, therefore Automake
3135 # will honor the `STRIP' environment variable to overrule this program.
3136 if test "$cross_compiling" != no; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}strip; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_STRIP+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$STRIP"; then
3146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 STRIP=$ac_cv_prog_STRIP
3166 if test -n "$STRIP"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3168 $as_echo "$STRIP" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_STRIP"; then
3177 ac_ct_STRIP=$STRIP
3178 # Extract the first word of "strip", so it can be a program name with args.
3179 set dummy strip; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$ac_ct_STRIP"; then
3186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_ac_ct_STRIP="strip"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3206 if test -n "$ac_ct_STRIP"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3208 $as_echo "$ac_ct_STRIP" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_STRIP" = x; then
3215 STRIP=":"
3216 else
3217 case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223 STRIP=$ac_ct_STRIP
3225 else
3226 STRIP="$ac_cv_prog_STRIP"
3230 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3233 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3234 if test -z "$MKDIR_P"; then
3235 if test "${ac_cv_path_mkdir+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_prog in mkdir gmkdir; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3246 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3247 'mkdir (GNU coreutils) '* | \
3248 'mkdir (coreutils) '* | \
3249 'mkdir (fileutils) '4.1*)
3250 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3251 break 3;;
3252 esac
3253 done
3254 done
3255 done
3256 IFS=$as_save_IFS
3260 if test "${ac_cv_path_mkdir+set}" = set; then
3261 MKDIR_P="$ac_cv_path_mkdir -p"
3262 else
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for MKDIR_P within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 test -d ./--version && rmdir ./--version
3268 MKDIR_P="$ac_install_sh -d"
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3272 $as_echo "$MKDIR_P" >&6; }
3274 mkdir_p="$MKDIR_P"
3275 case $mkdir_p in
3276 [\\/$]* | ?:[\\/]*) ;;
3277 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3278 esac
3280 for ac_prog in gawk mawk nawk awk
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_AWK+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$AWK"; then
3290 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_AWK="$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3309 AWK=$ac_cv_prog_AWK
3310 if test -n "$AWK"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3312 $as_echo "$AWK" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3319 test -n "$AWK" && break
3320 done
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3323 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3324 set x ${MAKE-make}
3325 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3326 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 cat >conftest.make <<\_ACEOF
3330 SHELL = /bin/sh
3331 all:
3332 @echo '@@@%%%=$(MAKE)=@@@%%%'
3333 _ACEOF
3334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3335 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3336 *@@@%%%=?*=@@@%%%*)
3337 eval ac_cv_prog_make_${ac_make}_set=yes;;
3339 eval ac_cv_prog_make_${ac_make}_set=no;;
3340 esac
3341 rm -f conftest.make
3343 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 SET_MAKE=
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 SET_MAKE="MAKE=${MAKE-make}"
3353 rm -rf .tst 2>/dev/null
3354 mkdir .tst 2>/dev/null
3355 if test -d .tst; then
3356 am__leading_dot=.
3357 else
3358 am__leading_dot=_
3360 rmdir .tst 2>/dev/null
3362 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3363 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3364 # is not polluted with repeated "-I."
3365 am__isrc=' -I$(srcdir)'
3366 # test to see if srcdir already configured
3367 if test -f $srcdir/config.status; then
3368 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3372 # test whether we have cygpath
3373 if test -z "$CYGPATH_W"; then
3374 if (cygpath --version) >/dev/null 2>/dev/null; then
3375 CYGPATH_W='cygpath -w'
3376 else
3377 CYGPATH_W=echo
3382 # Define the identity of the package.
3383 PACKAGE='libgfortran'
3384 VERSION='0.3'
3387 # Some tools Automake needs.
3389 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3392 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3395 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3398 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3401 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3403 # We need awk for the "check" target. The system "awk" is bad on
3404 # some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3407 AMTAR='$${TAR-tar}'
3409 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3418 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3419 # Check whether --enable-maintainer-mode was given.
3420 if test "${enable_maintainer_mode+set}" = set; then :
3421 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3422 else
3423 USE_MAINTAINER_MODE=no
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3427 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3428 if test $USE_MAINTAINER_MODE = yes; then
3429 MAINTAINER_MODE_TRUE=
3430 MAINTAINER_MODE_FALSE='#'
3431 else
3432 MAINTAINER_MODE_TRUE='#'
3433 MAINTAINER_MODE_FALSE=
3436 MAINT=$MAINTAINER_MODE_TRUE
3439 # Default to --enable-multilib
3440 # Check whether --enable-multilib was given.
3441 if test "${enable_multilib+set}" = set; then :
3442 enableval=$enable_multilib; case "$enableval" in
3443 yes) multilib=yes ;;
3444 no) multilib=no ;;
3445 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3446 esac
3447 else
3448 multilib=yes
3452 # We may get other options which we leave undocumented:
3453 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3454 # See config-ml.in if you want the gory details.
3456 if test "$srcdir" = "."; then
3457 if test "$with_target_subdir" != "."; then
3458 multi_basedir="$srcdir/$with_multisrctop../.."
3459 else
3460 multi_basedir="$srcdir/$with_multisrctop.."
3462 else
3463 multi_basedir="$srcdir/.."
3467 # Even if the default multilib is not a cross compilation,
3468 # it may be that some of the other multilibs are.
3469 if test $cross_compiling = no && test $multilib = yes \
3470 && test "x${with_multisubdir}" != x ; then
3471 cross_compiling=maybe
3474 ac_config_commands="$ac_config_commands default-1"
3477 # Handy for debugging:
3478 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3480 # Are we being configured with some form of cross compiler?
3481 # NB: We don't actually need to know this just now, but when, say, a test
3482 # suite is included, we'll have to know.
3483 if test "$build" != "$host"; then
3484 LIBGFOR_IS_NATIVE=false
3486 else
3487 LIBGFOR_IS_NATIVE=true
3490 DEPDIR="${am__leading_dot}deps"
3492 ac_config_commands="$ac_config_commands depfiles"
3495 am_make=${MAKE-make}
3496 cat > confinc << 'END'
3497 am__doit:
3498 @echo this is the am__doit target
3499 .PHONY: am__doit
3501 # If we don't find an include directive, just comment out the code.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3504 am__include="#"
3505 am__quote=
3506 _am_result=none
3507 # First try GNU make style include.
3508 echo "include confinc" > confmf
3509 # Ignore all kinds of additional output from `make'.
3510 case `$am_make -s -f confmf 2> /dev/null` in #(
3511 *the\ am__doit\ target*)
3512 am__include=include
3513 am__quote=
3514 _am_result=GNU
3516 esac
3517 # Now try BSD make style include.
3518 if test "$am__include" = "#"; then
3519 echo '.include "confinc"' > confmf
3520 case `$am_make -s -f confmf 2> /dev/null` in #(
3521 *the\ am__doit\ target*)
3522 am__include=.include
3523 am__quote="\""
3524 _am_result=BSD
3526 esac
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3531 $as_echo "$_am_result" >&6; }
3532 rm -f confinc confmf
3534 # Check whether --enable-dependency-tracking was given.
3535 if test "${enable_dependency_tracking+set}" = set; then :
3536 enableval=$enable_dependency_tracking;
3539 if test "x$enable_dependency_tracking" != xno; then
3540 am_depcomp="$ac_aux_dir/depcomp"
3541 AMDEPBACKSLASH='\'
3542 am__nodep='_no'
3544 if test "x$enable_dependency_tracking" != xno; then
3545 AMDEP_TRUE=
3546 AMDEP_FALSE='#'
3547 else
3548 AMDEP_TRUE='#'
3549 AMDEP_FALSE=
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3597 if test -z "$ac_cv_prog_CC"; then
3598 ac_ct_CC=$CC
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_CC="gcc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3635 if test "x$ac_ct_CC" = x; then
3636 CC=""
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639 yes:)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3643 esac
3644 CC=$ac_ct_CC
3646 else
3647 CC="$ac_cv_prog_CC"
3650 if test -z "$CC"; then
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}cc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_CC="${ac_tool_prefix}cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3675 IFS=$as_save_IFS
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 # Extract the first word of "cc", so it can be a program name with args.
3693 set dummy cc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_CC+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702 ac_prog_rejected=no
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711 ac_prog_rejected=yes
3712 continue
3714 ac_cv_prog_CC="cc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3722 if test $ac_prog_rejected = yes; then
3723 # We found a bogon in the path, so make sure we never use it.
3724 set dummy $ac_cv_prog_CC
3725 shift
3726 if test $# != 0; then
3727 # We chose a different compiler from the bogus one.
3728 # However, it has the same basename, so the bogon will be chosen
3729 # first if we set CC to just the basename; use the full file name.
3730 shift
3731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$CC" && break
3789 done
3791 if test -z "$CC"; then
3792 ac_ct_CC=$CC
3793 for ac_prog in cl.exe
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC="$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$ac_ct_CC" && break
3833 done
3835 if test "x$ac_ct_CC" = x; then
3836 CC=""
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 CC=$ac_ct_CC
3851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error "no acceptable C compiler found in \$PATH
3854 See \`config.log' for more details." "$LINENO" 5; }
3856 # Provide some information about the compiler.
3857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3858 set X $ac_compile
3859 ac_compiler=$2
3860 for ac_option in --version -v -V -qversion; do
3861 { { ac_try="$ac_compiler $ac_option >&5"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3869 ac_status=$?
3870 if test -s conftest.err; then
3871 sed '10a\
3872 ... rest of stderr output deleted ...
3873 10q' conftest.err >conftest.er1
3874 cat conftest.er1 >&5
3875 rm -f conftest.er1 conftest.err
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3879 done
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 main ()
3889 return 0;
3891 _ACEOF
3892 # FIXME: Cleanup?
3893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3894 (eval $ac_link) 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 gcc_no_link=no
3899 else
3900 gcc_no_link=yes
3902 if test x$gcc_no_link = xyes; then
3903 # Setting cross_compile will disable run tests; it will
3904 # also disable AC_CHECK_FILE but that's generally
3905 # correct if we can't link.
3906 cross_compiling=yes
3907 EXEEXT=
3908 else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 main ()
3917 return 0;
3919 _ACEOF
3920 ac_clean_files_save=$ac_clean_files
3921 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3922 # Try to create an executable without -o first, disregard a.out.
3923 # It will help us diagnose broken compilers, and finding out an intuition
3924 # of exeext.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3926 $as_echo_n "checking for C compiler default output file name... " >&6; }
3927 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3929 # The possible output files:
3930 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3932 ac_rmfiles=
3933 for ac_file in $ac_files
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3937 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3938 esac
3939 done
3940 rm -f $ac_rmfiles
3942 if { { ac_try="$ac_link_default"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link_default") 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }; then :
3953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3954 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3955 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3956 # so that the user can short-circuit this test for compilers unknown to
3957 # Autoconf.
3958 for ac_file in $ac_files ''
3960 test -f "$ac_file" || continue
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3964 [ab].out )
3965 # We found the default executable, but exeext='' is most
3966 # certainly right.
3967 break;;
3968 *.* )
3969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3970 then :; else
3971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 # We set ac_cv_exeext here because the later test for it is not
3974 # safe: cross compilers may not add the suffix if given an `-o'
3975 # argument, so we may need to know it at that point already.
3976 # Even if this section looks crufty: it has the advantage of
3977 # actually working.
3978 break;;
3980 break;;
3981 esac
3982 done
3983 test "$ac_cv_exeext" = no && ac_cv_exeext=
3985 else
3986 ac_file=''
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3989 $as_echo "$ac_file" >&6; }
3990 if test -z "$ac_file"; then :
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 { as_fn_set_status 77
3997 as_fn_error "C compiler cannot create executables
3998 See \`config.log' for more details." "$LINENO" 5; }; }
4000 ac_exeext=$ac_cv_exeext
4002 # Check that the compiler produces executables we can run. If not, either
4003 # the compiler is broken, or we cross compile.
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4005 $as_echo_n "checking whether the C compiler works... " >&6; }
4006 # If not cross compiling, check that we can run a simple program.
4007 if test "$cross_compiling" != yes; then
4008 if { ac_try='./$ac_file'
4009 { { case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_try") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; }; then
4019 cross_compiling=no
4020 else
4021 if test "$cross_compiling" = maybe; then
4022 cross_compiling=yes
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot run C compiled programs.
4027 If you meant to cross compile, use \`--host'.
4028 See \`config.log' for more details." "$LINENO" 5; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4033 $as_echo "yes" >&6; }
4035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4036 ac_clean_files=$ac_clean_files_save
4037 # Check that the compiler produces executables we can run. If not, either
4038 # the compiler is broken, or we cross compile.
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4040 $as_echo_n "checking whether we are cross compiling... " >&6; }
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042 $as_echo "$cross_compiling" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4045 $as_echo_n "checking for suffix of executables... " >&6; }
4046 if { { ac_try="$ac_link"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_link") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4059 # work properly (i.e., refer to `conftest.exe'), while it won't with
4060 # `rm'.
4061 for ac_file in conftest.exe conftest conftest.*; do
4062 test -f "$ac_file" || continue
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4066 break;;
4067 * ) break;;
4068 esac
4069 done
4070 else
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of executables: cannot compile and link
4074 See \`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest$ac_cv_exeext
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4078 $as_echo "$ac_cv_exeext" >&6; }
4080 rm -f conftest.$ac_ext
4081 EXEEXT=$ac_cv_exeext
4082 ac_exeext=$EXEEXT
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4085 $as_echo_n "checking for suffix of object files... " >&6; }
4086 if test "${ac_cv_objext+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4097 return 0;
4099 _ACEOF
4100 rm -f conftest.o conftest.obj
4101 if { { ac_try="$ac_compile"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_compile") 2>&5
4109 ac_status=$?
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }; then :
4112 for ac_file in conftest.o conftest.obj conftest.*; do
4113 test -f "$ac_file" || continue;
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4117 break;;
4118 esac
4119 done
4120 else
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error "cannot compute suffix of object files: cannot compile
4127 See \`config.log' for more details." "$LINENO" 5; }
4129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4132 $as_echo "$ac_cv_objext" >&6; }
4133 OBJEXT=$ac_cv_objext
4134 ac_objext=$OBJEXT
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4146 #ifndef __GNUC__
4147 choke me
4148 #endif
4151 return 0;
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_compiler_gnu=yes
4156 else
4157 ac_compiler_gnu=no
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4165 if test $ac_compiler_gnu = yes; then
4166 GCC=yes
4167 else
4168 GCC=
4170 ac_test_CFLAGS=${CFLAGS+set}
4171 ac_save_CFLAGS=$CFLAGS
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4174 if test "${ac_cv_prog_cc_g+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 ac_save_c_werror_flag=$ac_c_werror_flag
4178 ac_c_werror_flag=yes
4179 ac_cv_prog_cc_g=no
4180 CFLAGS="-g"
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 main ()
4189 return 0;
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_g=yes
4194 else
4195 CFLAGS=""
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4204 return 0;
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4209 else
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 CFLAGS="-g"
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4216 main ()
4220 return 0;
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_g=yes
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ac_c_werror_flag=$ac_save_c_werror_flag
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4234 $as_echo "$ac_cv_prog_cc_g" >&6; }
4235 if test "$ac_test_CFLAGS" = set; then
4236 CFLAGS=$ac_save_CFLAGS
4237 elif test $ac_cv_prog_cc_g = yes; then
4238 if test "$GCC" = yes; then
4239 CFLAGS="-g -O2"
4240 else
4241 CFLAGS="-g"
4243 else
4244 if test "$GCC" = yes; then
4245 CFLAGS="-O2"
4246 else
4247 CFLAGS=
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 ac_cv_prog_cc_c89=no
4256 ac_save_CC=$CC
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <stdarg.h>
4260 #include <stdio.h>
4261 #include <sys/types.h>
4262 #include <sys/stat.h>
4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4264 struct buf { int x; };
4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266 static char *e (p, i)
4267 char **p;
4268 int i;
4270 return p[i];
4272 static char *f (char * (*g) (char **, int), char **p, ...)
4274 char *s;
4275 va_list v;
4276 va_start (v,p);
4277 s = g (p, va_arg (v,int));
4278 va_end (v);
4279 return s;
4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 function prototypes and stuff, but not '\xHH' hex character constants.
4284 These don't provoke an error unfortunately, instead are silently treated
4285 as 'x'. The following induces an error, until -std is added to get
4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4287 array size at least. It's necessary to write '\x00'==0 to get something
4288 that's true only with -std. */
4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 inside strings and character constants. */
4293 #define FOO(x) 'x'
4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4296 int test (int i, double x);
4297 struct s1 {int (*f) (int a);};
4298 struct s2 {int (*f) (double a);};
4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300 int argc;
4301 char **argv;
4303 main ()
4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4307 return 0;
4309 _ACEOF
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_c89=$ac_arg
4317 rm -f core conftest.err conftest.$ac_objext
4318 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 done
4320 rm -f conftest.$ac_ext
4321 CC=$ac_save_CC
4324 # AC_CACHE_VAL
4325 case "x$ac_cv_prog_cc_c89" in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328 $as_echo "none needed" >&6; } ;;
4329 xno)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331 $as_echo "unsupported" >&6; } ;;
4333 CC="$CC $ac_cv_prog_cc_c89"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 esac
4337 if test "x$ac_cv_prog_cc_c89" != xno; then :
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 depcc="$CC" am_compiler_list=
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4350 $as_echo_n "checking dependency style of $depcc... " >&6; }
4351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4355 # We make a subdir and do the tests there. Otherwise we can end up
4356 # making bogus files that we don't know about and never remove. For
4357 # instance it was reported that on HP-UX the gcc test will end up
4358 # making a dummy file named `D' -- because `-MD' means `put the output
4359 # in D'.
4360 rm -rf conftest.dir
4361 mkdir conftest.dir
4362 # Copy depcomp to subdir because otherwise we won't find it if we're
4363 # using a relative directory.
4364 cp "$am_depcomp" conftest.dir
4365 cd conftest.dir
4366 # We will build objects and dependencies in a subdirectory because
4367 # it helps to detect inapplicable dependency modes. For instance
4368 # both Tru64's cc and ICC support -MD to output dependencies as a
4369 # side effect of compilation, but ICC will put the dependencies in
4370 # the current directory while Tru64 will put them in the object
4371 # directory.
4372 mkdir sub
4374 am_cv_CC_dependencies_compiler_type=none
4375 if test "$am_compiler_list" = ""; then
4376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4378 am__universal=false
4379 case " $depcc " in #(
4380 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4381 esac
4383 for depmode in $am_compiler_list; do
4384 # Setup a source with many dependencies, because some compilers
4385 # like to wrap large dependency lists on column 80 (with \), and
4386 # we should not choose a depcomp mode which is confused by this.
4388 # We need to recreate these files for each test, as the compiler may
4389 # overwrite some of them when testing with obscure command lines.
4390 # This happens at least with the AIX C compiler.
4391 : > sub/conftest.c
4392 for i in 1 2 3 4 5 6; do
4393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4395 # Solaris 8's {/usr,}/bin/sh.
4396 touch sub/conftst$i.h
4397 done
4398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4401 # mode. It turns out that the SunPro C++ compiler does not properly
4402 # handle `-M -o', and we need to detect this. Also, some Intel
4403 # versions had trouble with output in subdirs
4404 am__obj=sub/conftest.${OBJEXT-o}
4405 am__minus_obj="-o $am__obj"
4406 case $depmode in
4407 gcc)
4408 # This depmode causes a compiler race in universal mode.
4409 test "$am__universal" = false || continue
4411 nosideeffect)
4412 # after this tag, mechanisms are not by side-effect, so they'll
4413 # only be used when explicitly requested
4414 if test "x$enable_dependency_tracking" = xyes; then
4415 continue
4416 else
4417 break
4420 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4421 # This compiler won't grok `-c -o', but also, the minuso test has
4422 # not run yet. These depmodes are late enough in the game, and
4423 # so weak that their functioning should not be impacted.
4424 am__obj=conftest.${OBJEXT-o}
4425 am__minus_obj=
4427 none) break ;;
4428 esac
4429 if depmode=$depmode \
4430 source=sub/conftest.c object=$am__obj \
4431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4433 >/dev/null 2>conftest.err &&
4434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4438 # icc doesn't choke on unknown options, it will just issue warnings
4439 # or remarks (even with -Werror). So we grep stderr for any message
4440 # that says an option was ignored or not supported.
4441 # When given -MP, icc 7.0 and 7.1 complain thusly:
4442 # icc: Command line warning: ignoring option '-M'; no argument required
4443 # The diagnosis changed in icc 8.0:
4444 # icc: Command line remark: option '-MP' not supported
4445 if (grep 'ignoring option' conftest.err ||
4446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4447 am_cv_CC_dependencies_compiler_type=$depmode
4448 break
4451 done
4453 cd ..
4454 rm -rf conftest.dir
4455 else
4456 am_cv_CC_dependencies_compiler_type=none
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4461 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4462 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4465 test "x$enable_dependency_tracking" != xno \
4466 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4467 am__fastdepCC_TRUE=
4468 am__fastdepCC_FALSE='#'
4469 else
4470 am__fastdepCC_TRUE='#'
4471 am__fastdepCC_FALSE=
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4482 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4483 # On Suns, sometimes $CPP names a directory.
4484 if test -n "$CPP" && test -d "$CPP"; then
4485 CPP=
4487 if test -z "$CPP"; then
4488 if test "${ac_cv_prog_CPP+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 # Double quotes because CPP needs to be expanded
4492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4494 ac_preproc_ok=false
4495 for ac_c_preproc_warn_flag in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #ifdef __STDC__
4506 # include <limits.h>
4507 #else
4508 # include <assert.h>
4509 #endif
4510 Syntax error
4511 _ACEOF
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4514 else
4515 # Broken: fails on valid input.
4516 continue
4518 rm -f conftest.err conftest.$ac_ext
4520 # OK, works on sane cases. Now check whether nonexistent headers
4521 # can be detected and how.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ac_nonexistent.h>
4525 _ACEOF
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527 # Broken: success on invalid input.
4528 continue
4529 else
4530 # Passes both tests.
4531 ac_preproc_ok=:
4532 break
4534 rm -f conftest.err conftest.$ac_ext
4536 done
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.err conftest.$ac_ext
4539 if $ac_preproc_ok; then :
4540 break
4543 done
4544 ac_cv_prog_CPP=$CPP
4547 CPP=$ac_cv_prog_CPP
4548 else
4549 ac_cv_prog_CPP=$CPP
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4552 $as_echo "$CPP" >&6; }
4553 ac_preproc_ok=false
4554 for ac_c_preproc_warn_flag in '' yes
4556 # Use a header file that comes with gcc, so configuring glibc
4557 # with a fresh cross-compiler works.
4558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4559 # <limits.h> exists even on freestanding compilers.
4560 # On the NeXT, cc -E runs the code through the compiler's parser,
4561 # not just through cpp. "Syntax error" is here to catch this case.
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 #ifdef __STDC__
4565 # include <limits.h>
4566 #else
4567 # include <assert.h>
4568 #endif
4569 Syntax error
4570 _ACEOF
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4573 else
4574 # Broken: fails on valid input.
4575 continue
4577 rm -f conftest.err conftest.$ac_ext
4579 # OK, works on sane cases. Now check whether nonexistent headers
4580 # can be detected and how.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <ac_nonexistent.h>
4584 _ACEOF
4585 if ac_fn_c_try_cpp "$LINENO"; then :
4586 # Broken: success on invalid input.
4587 continue
4588 else
4589 # Passes both tests.
4590 ac_preproc_ok=:
4591 break
4593 rm -f conftest.err conftest.$ac_ext
4595 done
4596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4597 rm -f conftest.err conftest.$ac_ext
4598 if $ac_preproc_ok; then :
4600 else
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4604 See \`config.log' for more details." "$LINENO" 5; }
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4615 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4616 if test "${ac_cv_path_GREP+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -z "$GREP"; then
4620 ac_path_GREP_found=false
4621 # Loop through the user's path and test for each of PROGNAME-LIST
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_prog in grep ggrep; do
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4630 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4631 # Check for GNU ac_path_GREP and select it if it is found.
4632 # Check for GNU $ac_path_GREP
4633 case `"$ac_path_GREP" --version 2>&1` in
4634 *GNU*)
4635 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 ac_count=0
4638 $as_echo_n 0123456789 >"conftest.in"
4639 while :
4641 cat "conftest.in" "conftest.in" >"conftest.tmp"
4642 mv "conftest.tmp" "conftest.in"
4643 cp "conftest.in" "conftest.nl"
4644 $as_echo 'GREP' >> "conftest.nl"
4645 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647 as_fn_arith $ac_count + 1 && ac_count=$as_val
4648 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4649 # Best one so far, save it but keep looking for a better one
4650 ac_cv_path_GREP="$ac_path_GREP"
4651 ac_path_GREP_max=$ac_count
4653 # 10*(2^10) chars as input seems more than enough
4654 test $ac_count -gt 10 && break
4655 done
4656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657 esac
4659 $ac_path_GREP_found && break 3
4660 done
4661 done
4662 done
4663 IFS=$as_save_IFS
4664 if test -z "$ac_cv_path_GREP"; then
4665 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667 else
4668 ac_cv_path_GREP=$GREP
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4673 $as_echo "$ac_cv_path_GREP" >&6; }
4674 GREP="$ac_cv_path_GREP"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4678 $as_echo_n "checking for egrep... " >&6; }
4679 if test "${ac_cv_path_EGREP+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4683 then ac_cv_path_EGREP="$GREP -E"
4684 else
4685 if test -z "$EGREP"; then
4686 ac_path_EGREP_found=false
4687 # Loop through the user's path and test for each of PROGNAME-LIST
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_prog in egrep; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4696 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4697 # Check for GNU ac_path_EGREP and select it if it is found.
4698 # Check for GNU $ac_path_EGREP
4699 case `"$ac_path_EGREP" --version 2>&1` in
4700 *GNU*)
4701 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 ac_count=0
4704 $as_echo_n 0123456789 >"conftest.in"
4705 while :
4707 cat "conftest.in" "conftest.in" >"conftest.tmp"
4708 mv "conftest.tmp" "conftest.in"
4709 cp "conftest.in" "conftest.nl"
4710 $as_echo 'EGREP' >> "conftest.nl"
4711 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713 as_fn_arith $ac_count + 1 && ac_count=$as_val
4714 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4715 # Best one so far, save it but keep looking for a better one
4716 ac_cv_path_EGREP="$ac_path_EGREP"
4717 ac_path_EGREP_max=$ac_count
4719 # 10*(2^10) chars as input seems more than enough
4720 test $ac_count -gt 10 && break
4721 done
4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 esac
4725 $ac_path_EGREP_found && break 3
4726 done
4727 done
4728 done
4729 IFS=$as_save_IFS
4730 if test -z "$ac_cv_path_EGREP"; then
4731 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733 else
4734 ac_cv_path_EGREP=$EGREP
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4740 $as_echo "$ac_cv_path_EGREP" >&6; }
4741 EGREP="$ac_cv_path_EGREP"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745 $as_echo_n "checking for ANSI C header files... " >&6; }
4746 if test "${ac_cv_header_stdc+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4752 #include <stdarg.h>
4753 #include <string.h>
4754 #include <float.h>
4757 main ()
4761 return 0;
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_header_stdc=yes
4766 else
4767 ac_cv_header_stdc=no
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <string.h>
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev/null 2>&1; then :
4781 else
4782 ac_cv_header_stdc=no
4784 rm -f conftest*
4788 if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdlib.h>
4794 _ACEOF
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev/null 2>&1; then :
4798 else
4799 ac_cv_header_stdc=no
4801 rm -f conftest*
4805 if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #include <ctype.h>
4813 #include <stdlib.h>
4814 #if ((' ' & 0x0FF) == 0x020)
4815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817 #else
4818 # define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823 #endif
4825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4827 main ()
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 return 2;
4834 return 0;
4836 _ACEOF
4837 if ac_fn_c_try_run "$LINENO"; then :
4839 else
4840 ac_cv_header_stdc=no
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849 $as_echo "$ac_cv_header_stdc" >&6; }
4850 if test $ac_cv_header_stdc = yes; then
4852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4857 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4858 inttypes.h stdint.h unistd.h
4859 do :
4860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4863 eval as_val=\$$as_ac_Header
4864 if test "x$as_val" = x""yes; then :
4865 cat >>confdefs.h <<_ACEOF
4866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867 _ACEOF
4871 done
4875 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4876 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4877 MINIX=yes
4878 else
4879 MINIX=
4883 if test "$MINIX" = yes; then
4885 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4888 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4891 $as_echo "#define _MINIX 1" >>confdefs.h
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4897 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4898 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4904 # define __EXTENSIONS__ 1
4905 $ac_includes_default
4907 main ()
4911 return 0;
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_safe_to_define___extensions__=yes
4916 else
4917 ac_cv_safe_to_define___extensions__=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4922 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4923 test $ac_cv_safe_to_define___extensions__ = yes &&
4924 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4926 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4928 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4930 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4932 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4936 # Calculate toolexeclibdir
4937 # Also toolexecdir, though it's only used in toolexeclibdir
4938 case ${version_specific_libs} in
4939 yes)
4940 # Need the gcc compiler version to know where to install libraries
4941 # and header files if --enable-version-specific-runtime-libs option
4942 # is selected.
4943 toolexecdir='$(libdir)/gcc/$(target_alias)'
4944 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4947 if test -n "$with_cross_host" &&
4948 test x"$with_cross_host" != x"no"; then
4949 # Install a library built with a cross compiler in tooldir, not libdir.
4950 toolexecdir='$(exec_prefix)/$(target_alias)'
4951 toolexeclibdir='$(toolexecdir)/lib'
4952 else
4953 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4954 toolexeclibdir='$(libdir)'
4956 multi_os_directory=`$CC -print-multi-os-directory`
4957 case $multi_os_directory in
4958 .) ;; # Avoid trailing /.
4959 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4960 esac
4962 esac
4966 # Create a spec file, so that compile/link tests don't fail
4967 test -f libgfortran.spec || touch libgfortran.spec
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 # Check the compiler.
4976 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4977 # We must force CC to /not/ be precious variables; otherwise
4978 # the wrong, non-multilib-adjusted value will be used in multilibs.
4979 # As a side effect, we have to subst CFLAGS ourselves.
4983 ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_CC+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$CC"; then
4997 ac_cv_prog_CC="$CC" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5016 CC=$ac_cv_prog_CC
5017 if test -n "$CC"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5019 $as_echo "$CC" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5027 if test -z "$ac_cv_prog_CC"; then
5028 ac_ct_CC=$CC
5029 # Extract the first word of "gcc", so it can be a program name with args.
5030 set dummy gcc; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$ac_ct_CC"; then
5037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_ac_ct_CC="gcc"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5057 if test -n "$ac_ct_CC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5059 $as_echo "$ac_ct_CC" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5065 if test "x$ac_ct_CC" = x; then
5066 CC=""
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074 CC=$ac_ct_CC
5076 else
5077 CC="$ac_cv_prog_CC"
5080 if test -z "$CC"; then
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}cc; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_CC+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$CC"; then
5090 ac_cv_prog_CC="$CC" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_CC="${ac_tool_prefix}cc"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 CC=$ac_cv_prog_CC
5110 if test -n "$CC"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5112 $as_echo "$CC" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5121 if test -z "$CC"; then
5122 # Extract the first word of "cc", so it can be a program name with args.
5123 set dummy cc; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_CC+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$CC"; then
5130 ac_cv_prog_CC="$CC" # Let the user override the test.
5131 else
5132 ac_prog_rejected=no
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5141 ac_prog_rejected=yes
5142 continue
5144 ac_cv_prog_CC="cc"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5152 if test $ac_prog_rejected = yes; then
5153 # We found a bogon in the path, so make sure we never use it.
5154 set dummy $ac_cv_prog_CC
5155 shift
5156 if test $# != 0; then
5157 # We chose a different compiler from the bogus one.
5158 # However, it has the same basename, so the bogon will be chosen
5159 # first if we set CC to just the basename; use the full file name.
5160 shift
5161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5166 CC=$ac_cv_prog_CC
5167 if test -n "$CC"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5169 $as_echo "$CC" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$CC"; then
5178 if test -n "$ac_tool_prefix"; then
5179 for ac_prog in cl.exe
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_prog_CC+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$CC"; then
5189 ac_cv_prog_CC="$CC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5202 done
5203 done
5204 IFS=$as_save_IFS
5208 CC=$ac_cv_prog_CC
5209 if test -n "$CC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5211 $as_echo "$CC" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 test -n "$CC" && break
5219 done
5221 if test -z "$CC"; then
5222 ac_ct_CC=$CC
5223 for ac_prog in cl.exe
5225 # Extract the first word of "$ac_prog", so it can be a program name with args.
5226 set dummy $ac_prog; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$ac_ct_CC"; then
5233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_ac_ct_CC="$ac_prog"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5253 if test -n "$ac_ct_CC"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5255 $as_echo "$ac_ct_CC" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 test -n "$ac_ct_CC" && break
5263 done
5265 if test "x$ac_ct_CC" = x; then
5266 CC=""
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 CC=$ac_ct_CC
5281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283 as_fn_error "no acceptable C compiler found in \$PATH
5284 See \`config.log' for more details." "$LINENO" 5; }
5286 # Provide some information about the compiler.
5287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5288 set X $ac_compile
5289 ac_compiler=$2
5290 for ac_option in --version -v -V -qversion; do
5291 { { ac_try="$ac_compiler $ac_option >&5"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5297 $as_echo "$ac_try_echo"; } >&5
5298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5299 ac_status=$?
5300 if test -s conftest.err; then
5301 sed '10a\
5302 ... rest of stderr output deleted ...
5303 10q' conftest.err >conftest.er1
5304 cat conftest.er1 >&5
5305 rm -f conftest.er1 conftest.err
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; }
5309 done
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5312 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5313 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 main ()
5322 #ifndef __GNUC__
5323 choke me
5324 #endif
5327 return 0;
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ac_compiler_gnu=yes
5332 else
5333 ac_compiler_gnu=no
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5340 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5341 if test $ac_compiler_gnu = yes; then
5342 GCC=yes
5343 else
5344 GCC=
5346 ac_test_CFLAGS=${CFLAGS+set}
5347 ac_save_CFLAGS=$CFLAGS
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5349 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5350 if test "${ac_cv_prog_cc_g+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 ac_save_c_werror_flag=$ac_c_werror_flag
5354 ac_c_werror_flag=yes
5355 ac_cv_prog_cc_g=no
5356 CFLAGS="-g"
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5361 main ()
5365 return 0;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_prog_cc_g=yes
5370 else
5371 CFLAGS=""
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5376 main ()
5380 return 0;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5385 else
5386 ac_c_werror_flag=$ac_save_c_werror_flag
5387 CFLAGS="-g"
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5392 main ()
5396 return 0;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 ac_cv_prog_cc_g=yes
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_c_werror_flag=$ac_save_c_werror_flag
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5410 $as_echo "$ac_cv_prog_cc_g" >&6; }
5411 if test "$ac_test_CFLAGS" = set; then
5412 CFLAGS=$ac_save_CFLAGS
5413 elif test $ac_cv_prog_cc_g = yes; then
5414 if test "$GCC" = yes; then
5415 CFLAGS="-g -O2"
5416 else
5417 CFLAGS="-g"
5419 else
5420 if test "$GCC" = yes; then
5421 CFLAGS="-O2"
5422 else
5423 CFLAGS=
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5428 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 ac_cv_prog_cc_c89=no
5432 ac_save_CC=$CC
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <stdarg.h>
5436 #include <stdio.h>
5437 #include <sys/types.h>
5438 #include <sys/stat.h>
5439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5440 struct buf { int x; };
5441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5442 static char *e (p, i)
5443 char **p;
5444 int i;
5446 return p[i];
5448 static char *f (char * (*g) (char **, int), char **p, ...)
5450 char *s;
5451 va_list v;
5452 va_start (v,p);
5453 s = g (p, va_arg (v,int));
5454 va_end (v);
5455 return s;
5458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5459 function prototypes and stuff, but not '\xHH' hex character constants.
5460 These don't provoke an error unfortunately, instead are silently treated
5461 as 'x'. The following induces an error, until -std is added to get
5462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5463 array size at least. It's necessary to write '\x00'==0 to get something
5464 that's true only with -std. */
5465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5468 inside strings and character constants. */
5469 #define FOO(x) 'x'
5470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5472 int test (int i, double x);
5473 struct s1 {int (*f) (int a);};
5474 struct s2 {int (*f) (double a);};
5475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5476 int argc;
5477 char **argv;
5479 main ()
5481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5483 return 0;
5485 _ACEOF
5486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5489 CC="$ac_save_CC $ac_arg"
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_prog_cc_c89=$ac_arg
5493 rm -f core conftest.err conftest.$ac_objext
5494 test "x$ac_cv_prog_cc_c89" != "xno" && break
5495 done
5496 rm -f conftest.$ac_ext
5497 CC=$ac_save_CC
5500 # AC_CACHE_VAL
5501 case "x$ac_cv_prog_cc_c89" in
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5504 $as_echo "none needed" >&6; } ;;
5505 xno)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5507 $as_echo "unsupported" >&6; } ;;
5509 CC="$CC $ac_cv_prog_cc_c89"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5512 esac
5513 if test "x$ac_cv_prog_cc_c89" != xno; then :
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 depcc="$CC" am_compiler_list=
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5526 $as_echo_n "checking dependency style of $depcc... " >&6; }
5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5535 # in D'.
5536 rm -rf conftest.dir
5537 mkdir conftest.dir
5538 # Copy depcomp to subdir because otherwise we won't find it if we're
5539 # using a relative directory.
5540 cp "$am_depcomp" conftest.dir
5541 cd conftest.dir
5542 # We will build objects and dependencies in a subdirectory because
5543 # it helps to detect inapplicable dependency modes. For instance
5544 # both Tru64's cc and ICC support -MD to output dependencies as a
5545 # side effect of compilation, but ICC will put the dependencies in
5546 # the current directory while Tru64 will put them in the object
5547 # directory.
5548 mkdir sub
5550 am_cv_CC_dependencies_compiler_type=none
5551 if test "$am_compiler_list" = ""; then
5552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5554 am__universal=false
5555 case " $depcc " in #(
5556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5557 esac
5559 for depmode in $am_compiler_list; do
5560 # Setup a source with many dependencies, because some compilers
5561 # like to wrap large dependency lists on column 80 (with \), and
5562 # we should not choose a depcomp mode which is confused by this.
5564 # We need to recreate these files for each test, as the compiler may
5565 # overwrite some of them when testing with obscure command lines.
5566 # This happens at least with the AIX C compiler.
5567 : > sub/conftest.c
5568 for i in 1 2 3 4 5 6; do
5569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5571 # Solaris 8's {/usr,}/bin/sh.
5572 touch sub/conftst$i.h
5573 done
5574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5577 # mode. It turns out that the SunPro C++ compiler does not properly
5578 # handle `-M -o', and we need to detect this. Also, some Intel
5579 # versions had trouble with output in subdirs
5580 am__obj=sub/conftest.${OBJEXT-o}
5581 am__minus_obj="-o $am__obj"
5582 case $depmode in
5583 gcc)
5584 # This depmode causes a compiler race in universal mode.
5585 test "$am__universal" = false || continue
5587 nosideeffect)
5588 # after this tag, mechanisms are not by side-effect, so they'll
5589 # only be used when explicitly requested
5590 if test "x$enable_dependency_tracking" = xyes; then
5591 continue
5592 else
5593 break
5596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5597 # This compiler won't grok `-c -o', but also, the minuso test has
5598 # not run yet. These depmodes are late enough in the game, and
5599 # so weak that their functioning should not be impacted.
5600 am__obj=conftest.${OBJEXT-o}
5601 am__minus_obj=
5603 none) break ;;
5604 esac
5605 if depmode=$depmode \
5606 source=sub/conftest.c object=$am__obj \
5607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5609 >/dev/null 2>conftest.err &&
5610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5614 # icc doesn't choke on unknown options, it will just issue warnings
5615 # or remarks (even with -Werror). So we grep stderr for any message
5616 # that says an option was ignored or not supported.
5617 # When given -MP, icc 7.0 and 7.1 complain thusly:
5618 # icc: Command line warning: ignoring option '-M'; no argument required
5619 # The diagnosis changed in icc 8.0:
5620 # icc: Command line remark: option '-MP' not supported
5621 if (grep 'ignoring option' conftest.err ||
5622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5623 am_cv_CC_dependencies_compiler_type=$depmode
5624 break
5627 done
5629 cd ..
5630 rm -rf conftest.dir
5631 else
5632 am_cv_CC_dependencies_compiler_type=none
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5637 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5638 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641 test "x$enable_dependency_tracking" != xno \
5642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5643 am__fastdepCC_TRUE=
5644 am__fastdepCC_FALSE='#'
5645 else
5646 am__fastdepCC_TRUE='#'
5647 am__fastdepCC_FALSE=
5655 if test "x$CC" != xcc; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5657 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5660 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5662 set dummy $CC; ac_cc=`$as_echo "$2" |
5663 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5664 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5671 main ()
5675 return 0;
5677 _ACEOF
5678 # Make sure it works both with $CC and with simple cc.
5679 # We do the test twice because some compilers refuse to overwrite an
5680 # existing .o file with -o, though they will create one.
5681 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5682 rm -f conftest2.*
5683 if { { case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; } &&
5693 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5698 $as_echo "$ac_try_echo"; } >&5
5699 (eval "$ac_try") 2>&5
5700 ac_status=$?
5701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5702 test $ac_status = 0; };
5703 then
5704 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5705 if test "x$CC" != xcc; then
5706 # Test first that cc exists at all.
5707 if { ac_try='cc -c conftest.$ac_ext >&5'
5708 { { case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5713 $as_echo "$ac_try_echo"; } >&5
5714 (eval "$ac_try") 2>&5
5715 ac_status=$?
5716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5717 test $ac_status = 0; }; }; then
5718 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5719 rm -f conftest2.*
5720 if { { case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5725 $as_echo "$ac_try_echo"; } >&5
5726 (eval "$ac_try") 2>&5
5727 ac_status=$?
5728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729 test $ac_status = 0; } &&
5730 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5735 $as_echo "$ac_try_echo"; } >&5
5736 (eval "$ac_try") 2>&5
5737 ac_status=$?
5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739 test $ac_status = 0; };
5740 then
5741 # cc works too.
5743 else
5744 # cc exists but doesn't like -o.
5745 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5749 else
5750 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5752 rm -f core conftest*
5755 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757 $as_echo "yes" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5762 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5766 # FIXME: we rely on the cache variable name because
5767 # there is no other way.
5768 set dummy $CC
5769 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5770 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5771 if test "$am_t" != yes; then
5772 # Losing compiler, so override with the script.
5773 # FIXME: It is wrong to rewrite CC.
5774 # But if we don't then we get into trouble of one sort or another.
5775 # A longer-term fix would be to have automake use am__CC in this case,
5776 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5777 CC="$am_aux_dir/compile $CC"
5782 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5783 if test "x$GCC" = "xyes"; then
5784 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5785 ## We like to use C11 and C99 routines when available. This makes
5786 ## sure that
5787 ## __STDC_VERSION__ is set such that libc includes make them available.
5788 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5789 ## Compile the following tests with the same system header contents
5790 ## that we'll encounter when compiling our own source files.
5791 CFLAGS="-std=gnu11 $CFLAGS"
5794 # Add CET specific flags if CET is enabled
5795 # Check whether --enable-cet was given.
5796 if test "${enable_cet+set}" = set; then :
5797 enableval=$enable_cet;
5798 case "$enableval" in
5799 yes|no|auto) ;;
5800 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5801 esac
5803 else
5804 enable_cet=no
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5809 $as_echo_n "checking for CET support... " >&6; }
5811 case "$host" in
5812 i[34567]86-*-linux* | x86_64-*-linux*)
5813 case "$enable_cet" in
5814 auto)
5815 # Check if target supports multi-byte NOPs
5816 # and if assembler supports CET insn.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5821 main ()
5824 #if !defined(__SSE2__)
5825 #error target does not support multi-byte NOPs
5826 #else
5827 asm ("setssbsy");
5828 #endif
5831 return 0;
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835 enable_cet=yes
5836 else
5837 enable_cet=no
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 yes)
5842 # Check if assembler supports CET.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5847 main ()
5849 asm ("setssbsy");
5851 return 0;
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5856 else
5857 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 esac
5864 enable_cet=no
5866 esac
5867 if test x$enable_cet = xyes; then
5868 CET_FLAGS="-fcf-protection -mshstk"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5870 $as_echo "yes" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5876 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
5877 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
5878 CFLAGS="$CFLAGS $CET_FLAGS"
5884 # Check for symbol versioning (copied from libssp).
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5886 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5887 # Check whether --enable-symvers was given.
5888 if test "${enable_symvers+set}" = set; then :
5889 enableval=$enable_symvers; gfortran_use_symver=$enableval
5890 else
5891 gfortran_use_symver=yes
5894 if test "x$gfortran_use_symver" != xno; then
5895 save_LDFLAGS="$LDFLAGS"
5896 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5897 cat > conftest.map <<EOF
5898 FOO_1.0 {
5899 global: *foo*; bar; local: *;
5902 if test x$gcc_no_link = xyes; then
5903 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int foo;
5909 main ()
5913 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_link "$LINENO"; then :
5917 gfortran_use_symver=gnu
5918 else
5919 gfortran_use_symver=no
5921 rm -f core conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
5923 if test x$gfortran_use_symver = xno; then
5924 case "$target_os" in
5925 solaris2*)
5926 LDFLAGS="$save_LDFLAGS"
5927 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5928 # Sun ld cannot handle wildcards and treats all entries as undefined.
5929 cat > conftest.map <<EOF
5930 FOO_1.0 {
5931 global: foo; local: *;
5934 if test x$gcc_no_link = xyes; then
5935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 int foo;
5941 main ()
5945 return 0;
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 gfortran_use_symver=sun
5950 else
5951 gfortran_use_symver=no
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5956 esac
5958 LDFLAGS="$save_LDFLAGS"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5961 $as_echo "$gfortran_use_symver" >&6; }
5962 if test "x$gfortran_use_symver" != xno; then
5963 LIBGFOR_USE_SYMVER_TRUE=
5964 LIBGFOR_USE_SYMVER_FALSE='#'
5965 else
5966 LIBGFOR_USE_SYMVER_TRUE='#'
5967 LIBGFOR_USE_SYMVER_FALSE=
5970 if test "x$gfortran_use_symver" = xgnu; then
5971 LIBGFOR_USE_SYMVER_GNU_TRUE=
5972 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5973 else
5974 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5975 LIBGFOR_USE_SYMVER_GNU_FALSE=
5978 if test "x$gfortran_use_symver" = xsun; then
5979 LIBGFOR_USE_SYMVER_SUN_TRUE=
5980 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5981 else
5982 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5983 LIBGFOR_USE_SYMVER_SUN_FALSE=
5987 # For GPU offloading, not everything in libfortran can be supported.
5988 # Currently, the only target that has this problem is nvptx. The
5989 # following is a (partial) list of features that are unsupportable on
5990 # this particular target:
5991 # * Constructors
5992 # * alloca
5993 # * C library support for I/O, with printf as the one notable exception
5994 # * C library support for other features such as signal, environment
5995 # variables, time functions
5997 if test "x${target_cpu}" = xnvptx; then
5998 LIBGFOR_MINIMAL_TRUE=
5999 LIBGFOR_MINIMAL_FALSE='#'
6000 else
6001 LIBGFOR_MINIMAL_TRUE='#'
6002 LIBGFOR_MINIMAL_FALSE=
6006 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6007 # similarly to how libstdc++ does it
6008 ac_test_CFLAGS="${CFLAGS+set}"
6009 ac_save_CFLAGS="$CFLAGS"
6011 # Check for -ffunction-sections -fdata-sections
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6013 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6014 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6019 main ()
6021 int foo;
6023 return 0;
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_fdsections=yes
6028 else
6029 ac_fdsections=no
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 if test "$ac_test_CFLAGS" = set; then
6033 CFLAGS="$ac_save_CFLAGS"
6034 else
6035 # this is the suspicious part
6036 CFLAGS=""
6038 if test x"$ac_fdsections" = x"yes"; then
6039 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6042 $as_echo "$ac_fdsections" >&6; }
6045 # Check linker hardware capability support.
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6048 if test "${ac_cv_path_SED+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6052 for ac_i in 1 2 3 4 5 6 7; do
6053 ac_script="$ac_script$as_nl$ac_script"
6054 done
6055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6056 { ac_script=; unset ac_script;}
6057 if test -z "$SED"; then
6058 ac_path_SED_found=false
6059 # Loop through the user's path and test for each of PROGNAME-LIST
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_prog in sed gsed; do
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6068 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6069 # Check for GNU ac_path_SED and select it if it is found.
6070 # Check for GNU $ac_path_SED
6071 case `"$ac_path_SED" --version 2>&1` in
6072 *GNU*)
6073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6075 ac_count=0
6076 $as_echo_n 0123456789 >"conftest.in"
6077 while :
6079 cat "conftest.in" "conftest.in" >"conftest.tmp"
6080 mv "conftest.tmp" "conftest.in"
6081 cp "conftest.in" "conftest.nl"
6082 $as_echo '' >> "conftest.nl"
6083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6085 as_fn_arith $ac_count + 1 && ac_count=$as_val
6086 if test $ac_count -gt ${ac_path_SED_max-0}; then
6087 # Best one so far, save it but keep looking for a better one
6088 ac_cv_path_SED="$ac_path_SED"
6089 ac_path_SED_max=$ac_count
6091 # 10*(2^10) chars as input seems more than enough
6092 test $ac_count -gt 10 && break
6093 done
6094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6095 esac
6097 $ac_path_SED_found && break 3
6098 done
6099 done
6100 done
6101 IFS=$as_save_IFS
6102 if test -z "$ac_cv_path_SED"; then
6103 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6105 else
6106 ac_cv_path_SED=$SED
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6111 $as_echo "$ac_cv_path_SED" >&6; }
6112 SED="$ac_cv_path_SED"
6113 rm -f conftest.sed
6115 test -z "$SED" && SED=sed
6116 Xsed="$SED -e 1s/^X//"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6129 $as_echo_n "checking for fgrep... " >&6; }
6130 if test "${ac_cv_path_FGREP+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6134 then ac_cv_path_FGREP="$GREP -F"
6135 else
6136 if test -z "$FGREP"; then
6137 ac_path_FGREP_found=false
6138 # Loop through the user's path and test for each of PROGNAME-LIST
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_prog in fgrep; do
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6147 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6148 # Check for GNU ac_path_FGREP and select it if it is found.
6149 # Check for GNU $ac_path_FGREP
6150 case `"$ac_path_FGREP" --version 2>&1` in
6151 *GNU*)
6152 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6154 ac_count=0
6155 $as_echo_n 0123456789 >"conftest.in"
6156 while :
6158 cat "conftest.in" "conftest.in" >"conftest.tmp"
6159 mv "conftest.tmp" "conftest.in"
6160 cp "conftest.in" "conftest.nl"
6161 $as_echo 'FGREP' >> "conftest.nl"
6162 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6164 as_fn_arith $ac_count + 1 && ac_count=$as_val
6165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6166 # Best one so far, save it but keep looking for a better one
6167 ac_cv_path_FGREP="$ac_path_FGREP"
6168 ac_path_FGREP_max=$ac_count
6170 # 10*(2^10) chars as input seems more than enough
6171 test $ac_count -gt 10 && break
6172 done
6173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6174 esac
6176 $ac_path_FGREP_found && break 3
6177 done
6178 done
6179 done
6180 IFS=$as_save_IFS
6181 if test -z "$ac_cv_path_FGREP"; then
6182 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6184 else
6185 ac_cv_path_FGREP=$FGREP
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6191 $as_echo "$ac_cv_path_FGREP" >&6; }
6192 FGREP="$ac_cv_path_FGREP"
6195 test -z "$GREP" && GREP=grep
6213 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6214 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6215 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6218 $as_echo_n "checking how to print strings... " >&6; }
6219 # Test print first, because it will be a builtin if present.
6220 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6221 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6222 ECHO='print -r --'
6223 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6224 ECHO='printf %s\n'
6225 else
6226 # Use this function as a fallback that always works.
6227 func_fallback_echo ()
6229 eval 'cat <<_LTECHO_EOF
6231 _LTECHO_EOF'
6233 ECHO='func_fallback_echo'
6236 # func_echo_all arg...
6237 # Invoke $ECHO with all args, space-separated.
6238 func_echo_all ()
6240 $ECHO ""
6243 case "$ECHO" in
6244 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6245 $as_echo "printf" >&6; } ;;
6246 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6247 $as_echo "print -r" >&6; } ;;
6248 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6249 $as_echo "cat" >&6; } ;;
6250 esac
6267 # Check whether --with-gnu-ld was given.
6268 if test "${with_gnu_ld+set}" = set; then :
6269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6270 else
6271 with_gnu_ld=no
6274 ac_prog=ld
6275 if test "$GCC" = yes; then
6276 # Check if gcc -print-prog-name=ld gives a path.
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6278 $as_echo_n "checking for ld used by $CC... " >&6; }
6279 case $host in
6280 *-*-mingw*)
6281 # gcc leaves a trailing carriage return which upsets mingw
6282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6285 esac
6286 case $ac_prog in
6287 # Accept absolute paths.
6288 [\\/]* | ?:[\\/]*)
6289 re_direlt='/[^/][^/]*/\.\./'
6290 # Canonicalize the pathname of ld
6291 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6292 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6293 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6294 done
6295 test -z "$LD" && LD="$ac_prog"
6298 # If it fails, then pretend we aren't using GCC.
6299 ac_prog=ld
6302 # If it is relative, then search for the first ld in PATH.
6303 with_gnu_ld=unknown
6305 esac
6306 elif test "$with_gnu_ld" = yes; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6308 $as_echo_n "checking for GNU ld... " >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6311 $as_echo_n "checking for non-GNU ld... " >&6; }
6313 if test "${lt_cv_path_LD+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -z "$LD"; then
6317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6318 for ac_dir in $PATH; do
6319 IFS="$lt_save_ifs"
6320 test -z "$ac_dir" && ac_dir=.
6321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6322 lt_cv_path_LD="$ac_dir/$ac_prog"
6323 # Check to see if the program is GNU ld. I'd rather use --version,
6324 # but apparently some variants of GNU ld only accept -v.
6325 # Break only if it was the GNU/non-GNU ld that we prefer.
6326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6327 *GNU* | *'with BFD'*)
6328 test "$with_gnu_ld" != no && break
6331 test "$with_gnu_ld" != yes && break
6333 esac
6335 done
6336 IFS="$lt_save_ifs"
6337 else
6338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 LD="$lt_cv_path_LD"
6343 if test -n "$LD"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6345 $as_echo "$LD" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6350 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6353 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6357 case `$LD -v 2>&1 </dev/null` in
6358 *GNU* | *'with BFD'*)
6359 lt_cv_prog_gnu_ld=yes
6362 lt_cv_prog_gnu_ld=no
6364 esac
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6368 with_gnu_ld=$lt_cv_prog_gnu_ld
6379 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6382 ac_save_LDFLAGS="$LDFLAGS"
6383 LDFLAGS="$LFLAGS -mclear-hwcap"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6386 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6387 if test x$gcc_no_link = xyes; then
6388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6394 main ()
6396 return 0;
6398 return 0;
6400 _ACEOF
6401 if ac_fn_c_try_link "$LINENO"; then :
6402 ac_hwcap_ldflags=yes
6403 else
6404 ac_hwcap_ldflags=no
6406 rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 if test "$ac_hwcap_ldflags" = "yes"; then
6409 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6412 $as_echo "$ac_hwcap_ldflags" >&6; }
6414 LDFLAGS="$ac_save_LDFLAGS"
6418 if test $ac_hwcap_ldflags != no; then
6419 HAVE_HWCAP_TRUE=
6420 HAVE_HWCAP_FALSE='#'
6421 else
6422 HAVE_HWCAP_TRUE='#'
6423 HAVE_HWCAP_FALSE=
6428 # Find other programs we need.
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}as; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_AS+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$AS"; then
6438 ac_cv_prog_AS="$AS" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_AS="${ac_tool_prefix}as"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6451 done
6452 done
6453 IFS=$as_save_IFS
6457 AS=$ac_cv_prog_AS
6458 if test -n "$AS"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6460 $as_echo "$AS" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6468 if test -z "$ac_cv_prog_AS"; then
6469 ac_ct_AS=$AS
6470 # Extract the first word of "as", so it can be a program name with args.
6471 set dummy as; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_AS"; then
6478 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_AS="as"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6491 done
6492 done
6493 IFS=$as_save_IFS
6497 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6498 if test -n "$ac_ct_AS"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6500 $as_echo "$ac_ct_AS" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6506 if test "x$ac_ct_AS" = x; then
6507 AS=""
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 AS=$ac_ct_AS
6517 else
6518 AS="$ac_cv_prog_AS"
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}ar; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_AR+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$AR"; then
6530 ac_cv_prog_AR="$AR" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_AR="${ac_tool_prefix}ar"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6543 done
6544 done
6545 IFS=$as_save_IFS
6549 AR=$ac_cv_prog_AR
6550 if test -n "$AR"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6552 $as_echo "$AR" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6560 if test -z "$ac_cv_prog_AR"; then
6561 ac_ct_AR=$AR
6562 # Extract the first word of "ar", so it can be a program name with args.
6563 set dummy ar; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_AR"; then
6570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_AR="ar"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6583 done
6584 done
6585 IFS=$as_save_IFS
6589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6590 if test -n "$ac_ct_AR"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6592 $as_echo "$ac_ct_AR" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6598 if test "x$ac_ct_AR" = x; then
6599 AR=""
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 AR=$ac_ct_AR
6609 else
6610 AR="$ac_cv_prog_AR"
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test -n "$RANLIB"; then
6622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6635 done
6636 done
6637 IFS=$as_save_IFS
6641 RANLIB=$ac_cv_prog_RANLIB
6642 if test -n "$RANLIB"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6644 $as_echo "$RANLIB" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6652 if test -z "$ac_cv_prog_RANLIB"; then
6653 ac_ct_RANLIB=$RANLIB
6654 # Extract the first word of "ranlib", so it can be a program name with args.
6655 set dummy ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 if test -n "$ac_ct_RANLIB"; then
6662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_ac_ct_RANLIB="ranlib"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6675 done
6676 done
6677 IFS=$as_save_IFS
6681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6682 if test -n "$ac_ct_RANLIB"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6684 $as_echo "$ac_ct_RANLIB" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6690 if test "x$ac_ct_RANLIB" = x; then
6691 RANLIB="ranlib-not-found-in-path-error"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699 RANLIB=$ac_ct_RANLIB
6701 else
6702 RANLIB="$ac_cv_prog_RANLIB"
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6707 set x ${MAKE-make}
6708 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6709 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat >conftest.make <<\_ACEOF
6713 SHELL = /bin/sh
6714 all:
6715 @echo '@@@%%%=$(MAKE)=@@@%%%'
6716 _ACEOF
6717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6719 *@@@%%%=?*=@@@%%%*)
6720 eval ac_cv_prog_make_${ac_make}_set=yes;;
6722 eval ac_cv_prog_make_${ac_make}_set=no;;
6723 esac
6724 rm -f conftest.make
6726 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6728 $as_echo "yes" >&6; }
6729 SET_MAKE=
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 SET_MAKE="MAKE=${MAKE-make}"
6738 # Configure libtool
6739 #AC_MSG_NOTICE([====== Starting libtool configuration])
6740 enable_dlopen=yes
6744 case `pwd` in
6745 *\ * | *\ *)
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6747 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6748 esac
6752 macro_version='2.2.7a'
6753 macro_revision='1.3134'
6767 ltmain="$ac_aux_dir/ltmain.sh"
6769 # Backslashify metacharacters that are still active within
6770 # double-quoted strings.
6771 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6773 # Same as above, but do not quote variable references.
6774 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6776 # Sed substitution to delay expansion of an escaped shell variable in a
6777 # double_quote_subst'ed string.
6778 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6780 # Sed substitution to delay expansion of an escaped single quote.
6781 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6783 # Sed substitution to avoid accidental globbing in evaled expressions
6784 no_glob_subst='s/\*/\\\*/g'
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6787 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6788 if test "${lt_cv_path_NM+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$NM"; then
6792 # Let the user override the test.
6793 lt_cv_path_NM="$NM"
6794 else
6795 lt_nm_to_check="${ac_tool_prefix}nm"
6796 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6797 lt_nm_to_check="$lt_nm_to_check nm"
6799 for lt_tmp_nm in $lt_nm_to_check; do
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6802 IFS="$lt_save_ifs"
6803 test -z "$ac_dir" && ac_dir=.
6804 tmp_nm="$ac_dir/$lt_tmp_nm"
6805 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6806 # Check to see if the nm accepts a BSD-compat flag.
6807 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6808 # nm: unknown option "B" ignored
6809 # Tru64's nm complains that /dev/null is an invalid object file
6810 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6811 */dev/null* | *'Invalid file or object type'*)
6812 lt_cv_path_NM="$tmp_nm -B"
6813 break
6816 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6817 */dev/null*)
6818 lt_cv_path_NM="$tmp_nm -p"
6819 break
6822 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6823 continue # so that we can try to find one that supports BSD flags
6825 esac
6827 esac
6829 done
6830 IFS="$lt_save_ifs"
6831 done
6832 : ${lt_cv_path_NM=no}
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6836 $as_echo "$lt_cv_path_NM" >&6; }
6837 if test "$lt_cv_path_NM" != "no"; then
6838 NM="$lt_cv_path_NM"
6839 else
6840 # Didn't find any BSD compatible name lister, look for dumpbin.
6841 if test -n "$DUMPBIN"; then :
6842 # Let the user override the test.
6843 else
6844 if test -n "$ac_tool_prefix"; then
6845 for ac_prog in dumpbin "link -dump"
6847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$DUMPBIN"; then
6855 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6874 DUMPBIN=$ac_cv_prog_DUMPBIN
6875 if test -n "$DUMPBIN"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6877 $as_echo "$DUMPBIN" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6884 test -n "$DUMPBIN" && break
6885 done
6887 if test -z "$DUMPBIN"; then
6888 ac_ct_DUMPBIN=$DUMPBIN
6889 for ac_prog in dumpbin "link -dump"
6891 # Extract the first word of "$ac_prog", so it can be a program name with args.
6892 set dummy $ac_prog; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_DUMPBIN"; then
6899 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6912 done
6913 done
6914 IFS=$as_save_IFS
6918 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6919 if test -n "$ac_ct_DUMPBIN"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6921 $as_echo "$ac_ct_DUMPBIN" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6928 test -n "$ac_ct_DUMPBIN" && break
6929 done
6931 if test "x$ac_ct_DUMPBIN" = x; then
6932 DUMPBIN=":"
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940 DUMPBIN=$ac_ct_DUMPBIN
6944 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6945 *COFF*)
6946 DUMPBIN="$DUMPBIN -symbols"
6949 DUMPBIN=:
6951 esac
6954 if test "$DUMPBIN" != ":"; then
6955 NM="$DUMPBIN"
6958 test -z "$NM" && NM=nm
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6966 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6967 if test "${lt_cv_nm_interface+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 lt_cv_nm_interface="BSD nm"
6971 echo "int some_variable = 0;" > conftest.$ac_ext
6972 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6973 (eval "$ac_compile" 2>conftest.err)
6974 cat conftest.err >&5
6975 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6976 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6977 cat conftest.err >&5
6978 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6979 cat conftest.out >&5
6980 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6981 lt_cv_nm_interface="MS dumpbin"
6983 rm -f conftest*
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6986 $as_echo "$lt_cv_nm_interface" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6989 $as_echo_n "checking whether ln -s works... " >&6; }
6990 LN_S=$as_ln_s
6991 if test "$LN_S" = "ln -s"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6993 $as_echo "yes" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6996 $as_echo "no, using $LN_S" >&6; }
6999 # find the maximum length of command line arguments
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7001 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7002 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7006 teststring="ABCD"
7008 case $build_os in
7009 msdosdjgpp*)
7010 # On DJGPP, this test can blow up pretty badly due to problems in libc
7011 # (any single argument exceeding 2000 bytes causes a buffer overrun
7012 # during glob expansion). Even if it were fixed, the result of this
7013 # check would be larger than it should be.
7014 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7017 gnu*)
7018 # Under GNU Hurd, this test is not required because there is
7019 # no limit to the length of command line arguments.
7020 # Libtool will interpret -1 as no limit whatsoever
7021 lt_cv_sys_max_cmd_len=-1;
7024 cygwin* | mingw* | cegcc*)
7025 # On Win9x/ME, this test blows up -- it succeeds, but takes
7026 # about 5 minutes as the teststring grows exponentially.
7027 # Worse, since 9x/ME are not pre-emptively multitasking,
7028 # you end up with a "frozen" computer, even though with patience
7029 # the test eventually succeeds (with a max line length of 256k).
7030 # Instead, let's just punt: use the minimum linelength reported by
7031 # all of the supported platforms: 8192 (on NT/2K/XP).
7032 lt_cv_sys_max_cmd_len=8192;
7035 mint*)
7036 # On MiNT this can take a long time and run out of memory.
7037 lt_cv_sys_max_cmd_len=8192;
7040 amigaos*)
7041 # On AmigaOS with pdksh, this test takes hours, literally.
7042 # So we just punt and use a minimum line length of 8192.
7043 lt_cv_sys_max_cmd_len=8192;
7046 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7047 # This has been around since 386BSD, at least. Likely further.
7048 if test -x /sbin/sysctl; then
7049 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7050 elif test -x /usr/sbin/sysctl; then
7051 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7052 else
7053 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7055 # And add a safety zone
7056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7060 interix*)
7061 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7062 lt_cv_sys_max_cmd_len=196608
7065 osf*)
7066 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7067 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7068 # nice to cause kernel panics so lets avoid the loop below.
7069 # First set a reasonable default.
7070 lt_cv_sys_max_cmd_len=16384
7072 if test -x /sbin/sysconfig; then
7073 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7074 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7075 esac
7078 sco3.2v5*)
7079 lt_cv_sys_max_cmd_len=102400
7081 sysv5* | sco5v6* | sysv4.2uw2*)
7082 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7083 if test -n "$kargmax"; then
7084 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7085 else
7086 lt_cv_sys_max_cmd_len=32768
7090 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7091 if test -n "$lt_cv_sys_max_cmd_len"; then
7092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7094 else
7095 # Make teststring a little bigger before we do anything with it.
7096 # a 1K string should be a reasonable start.
7097 for i in 1 2 3 4 5 6 7 8 ; do
7098 teststring=$teststring$teststring
7099 done
7100 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7101 # If test is not a shell built-in, we'll probably end up computing a
7102 # maximum length that is only half of the actual maximum length, but
7103 # we can't tell.
7104 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7105 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7106 test $i != 17 # 1/2 MB should be enough
7108 i=`expr $i + 1`
7109 teststring=$teststring$teststring
7110 done
7111 # Only check the string length outside the loop.
7112 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7113 teststring=
7114 # Add a significant safety factor because C++ compilers can tack on
7115 # massive amounts of additional arguments before passing them to the
7116 # linker. It appears as though 1/2 is a usable value.
7117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7120 esac
7124 if test -n $lt_cv_sys_max_cmd_len ; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7126 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7129 $as_echo "none" >&6; }
7131 max_cmd_len=$lt_cv_sys_max_cmd_len
7138 : ${CP="cp -f"}
7139 : ${MV="mv -f"}
7140 : ${RM="rm -f"}
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7143 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7144 # Try some XSI features
7145 xsi_shell=no
7146 ( _lt_dummy="a/b/c"
7147 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7148 = c,a/b,, \
7149 && eval 'test $(( 1 + 1 )) -eq 2 \
7150 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7151 && xsi_shell=yes
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7153 $as_echo "$xsi_shell" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7157 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7158 lt_shell_append=no
7159 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7160 >/dev/null 2>&1 \
7161 && lt_shell_append=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7163 $as_echo "$lt_shell_append" >&6; }
7166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7167 lt_unset=unset
7168 else
7169 lt_unset=false
7176 # test EBCDIC or ASCII
7177 case `echo X|tr X '\101'` in
7178 A) # ASCII based system
7179 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7180 lt_SP2NL='tr \040 \012'
7181 lt_NL2SP='tr \015\012 \040\040'
7183 *) # EBCDIC based system
7184 lt_SP2NL='tr \100 \n'
7185 lt_NL2SP='tr \r\n \100\100'
7187 esac
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7198 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7199 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 lt_cv_ld_reload_flag='-r'
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7205 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7206 reload_flag=$lt_cv_ld_reload_flag
7207 case $reload_flag in
7208 "" | " "*) ;;
7209 *) reload_flag=" $reload_flag" ;;
7210 esac
7211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7212 case $host_os in
7213 darwin*)
7214 if test "$GCC" = yes; then
7215 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7216 else
7217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7220 esac
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$OBJDUMP"; then
7239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7252 done
7253 done
7254 IFS=$as_save_IFS
7258 OBJDUMP=$ac_cv_prog_OBJDUMP
7259 if test -n "$OBJDUMP"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7261 $as_echo "$OBJDUMP" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7269 if test -z "$ac_cv_prog_OBJDUMP"; then
7270 ac_ct_OBJDUMP=$OBJDUMP
7271 # Extract the first word of "objdump", so it can be a program name with args.
7272 set dummy objdump; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$ac_ct_OBJDUMP"; then
7279 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7298 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7299 if test -n "$ac_ct_OBJDUMP"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7301 $as_echo "$ac_ct_OBJDUMP" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7307 if test "x$ac_ct_OBJDUMP" = x; then
7308 OBJDUMP="false"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316 OBJDUMP=$ac_ct_OBJDUMP
7318 else
7319 OBJDUMP="$ac_cv_prog_OBJDUMP"
7322 test -z "$OBJDUMP" && OBJDUMP=objdump
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7333 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7334 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 lt_cv_file_magic_cmd='$MAGIC_CMD'
7338 lt_cv_file_magic_test_file=
7339 lt_cv_deplibs_check_method='unknown'
7340 # Need to set the preceding variable on all platforms that support
7341 # interlibrary dependencies.
7342 # 'none' -- dependencies not supported.
7343 # `unknown' -- same as none, but documents that we really don't know.
7344 # 'pass_all' -- all dependencies passed with no checks.
7345 # 'test_compile' -- check by making test program.
7346 # 'file_magic [[regex]]' -- check by looking for files in library path
7347 # which responds to the $file_magic_cmd with a given extended regex.
7348 # If you have `file' or equivalent on your system and you're not sure
7349 # whether `pass_all' will *always* work, you probably want this one.
7351 case $host_os in
7352 aix[4-9]*)
7353 lt_cv_deplibs_check_method=pass_all
7356 beos*)
7357 lt_cv_deplibs_check_method=pass_all
7360 bsdi[45]*)
7361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7362 lt_cv_file_magic_cmd='/usr/bin/file -L'
7363 lt_cv_file_magic_test_file=/shlib/libc.so
7366 cygwin*)
7367 # func_win32_libid is a shell function defined in ltmain.sh
7368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7369 lt_cv_file_magic_cmd='func_win32_libid'
7372 mingw* | pw32*)
7373 # Base MSYS/MinGW do not provide the 'file' command needed by
7374 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7375 # unless we find 'file', for example because we are cross-compiling.
7376 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7377 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7379 lt_cv_file_magic_cmd='func_win32_libid'
7380 else
7381 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7382 lt_cv_file_magic_cmd='$OBJDUMP -f'
7386 cegcc*)
7387 # use the weaker test based on 'objdump'. See mingw*.
7388 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7389 lt_cv_file_magic_cmd='$OBJDUMP -f'
7392 darwin* | rhapsody*)
7393 lt_cv_deplibs_check_method=pass_all
7396 freebsd* | dragonfly*)
7397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7398 case $host_cpu in
7399 i*86 )
7400 # Not sure whether the presence of OpenBSD here was a mistake.
7401 # Let's accept both of them until this is cleared up.
7402 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7403 lt_cv_file_magic_cmd=/usr/bin/file
7404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7406 esac
7407 else
7408 lt_cv_deplibs_check_method=pass_all
7412 gnu*)
7413 lt_cv_deplibs_check_method=pass_all
7416 haiku*)
7417 lt_cv_deplibs_check_method=pass_all
7420 hpux10.20* | hpux11*)
7421 lt_cv_file_magic_cmd=/usr/bin/file
7422 case $host_cpu in
7423 ia64*)
7424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7425 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7427 hppa*64*)
7428 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]'
7429 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7433 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7435 esac
7438 interix[3-9]*)
7439 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7443 irix5* | irix6* | nonstopux*)
7444 case $LD in
7445 *-32|*"-32 ") libmagic=32-bit;;
7446 *-n32|*"-n32 ") libmagic=N32;;
7447 *-64|*"-64 ") libmagic=64-bit;;
7448 *) libmagic=never-match;;
7449 esac
7450 lt_cv_deplibs_check_method=pass_all
7453 # This must be Linux ELF.
7454 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7455 lt_cv_deplibs_check_method=pass_all
7458 netbsd*)
7459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7461 else
7462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7466 newos6*)
7467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7468 lt_cv_file_magic_cmd=/usr/bin/file
7469 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7472 *nto* | *qnx*)
7473 lt_cv_deplibs_check_method=pass_all
7476 openbsd*)
7477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7479 else
7480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7484 osf3* | osf4* | osf5*)
7485 lt_cv_deplibs_check_method=pass_all
7488 rdos*)
7489 lt_cv_deplibs_check_method=pass_all
7492 solaris*)
7493 lt_cv_deplibs_check_method=pass_all
7496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7497 lt_cv_deplibs_check_method=pass_all
7500 sysv4 | sysv4.3*)
7501 case $host_vendor in
7502 motorola)
7503 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]'
7504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7506 ncr)
7507 lt_cv_deplibs_check_method=pass_all
7509 sequent)
7510 lt_cv_file_magic_cmd='/bin/file'
7511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7513 sni)
7514 lt_cv_file_magic_cmd='/bin/file'
7515 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7516 lt_cv_file_magic_test_file=/lib/libc.so
7518 siemens)
7519 lt_cv_deplibs_check_method=pass_all
7522 lt_cv_deplibs_check_method=pass_all
7524 esac
7527 tpf*)
7528 lt_cv_deplibs_check_method=pass_all
7530 esac
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7534 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7535 file_magic_cmd=$lt_cv_file_magic_cmd
7536 deplibs_check_method=$lt_cv_deplibs_check_method
7537 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$AR"; then
7559 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
7579 if test -n "$AR"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7581 $as_echo "$AR" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7589 if test -z "$ac_cv_prog_AR"; then
7590 ac_ct_AR=$AR
7591 # Extract the first word of "ar", so it can be a program name with args.
7592 set dummy ar; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$ac_ct_AR"; then
7599 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_ac_ct_AR="ar"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7612 done
7613 done
7614 IFS=$as_save_IFS
7618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7619 if test -n "$ac_ct_AR"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7621 $as_echo "$ac_ct_AR" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7627 if test "x$ac_ct_AR" = x; then
7628 AR="false"
7629 else
7630 case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636 AR=$ac_ct_AR
7638 else
7639 AR="$ac_cv_prog_AR"
7642 test -z "$AR" && AR=ar
7643 test -z "$AR_FLAGS" && AR_FLAGS=cru
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}strip; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_STRIP+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 if test -n "$STRIP"; then
7664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7677 done
7678 done
7679 IFS=$as_save_IFS
7683 STRIP=$ac_cv_prog_STRIP
7684 if test -n "$STRIP"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7686 $as_echo "$STRIP" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test -z "$ac_cv_prog_STRIP"; then
7695 ac_ct_STRIP=$STRIP
7696 # Extract the first word of "strip", so it can be a program name with args.
7697 set dummy strip; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$ac_ct_STRIP"; then
7704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_ac_ct_STRIP="strip"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7724 if test -n "$ac_ct_STRIP"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7726 $as_echo "$ac_ct_STRIP" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7732 if test "x$ac_ct_STRIP" = x; then
7733 STRIP=":"
7734 else
7735 case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7740 esac
7741 STRIP=$ac_ct_STRIP
7743 else
7744 STRIP="$ac_cv_prog_STRIP"
7747 test -z "$STRIP" && STRIP=:
7754 if test -n "$ac_tool_prefix"; then
7755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$RANLIB"; then
7763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7782 RANLIB=$ac_cv_prog_RANLIB
7783 if test -n "$RANLIB"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7785 $as_echo "$RANLIB" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7793 if test -z "$ac_cv_prog_RANLIB"; then
7794 ac_ct_RANLIB=$RANLIB
7795 # Extract the first word of "ranlib", so it can be a program name with args.
7796 set dummy ranlib; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$ac_ct_RANLIB"; then
7803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_ac_ct_RANLIB="ranlib"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7823 if test -n "$ac_ct_RANLIB"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7825 $as_echo "$ac_ct_RANLIB" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7831 if test "x$ac_ct_RANLIB" = x; then
7832 RANLIB=":"
7833 else
7834 case $cross_compiling:$ac_tool_warned in
7835 yes:)
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838 ac_tool_warned=yes ;;
7839 esac
7840 RANLIB=$ac_ct_RANLIB
7842 else
7843 RANLIB="$ac_cv_prog_RANLIB"
7846 test -z "$RANLIB" && RANLIB=:
7853 # Determine commands to create old-style static archives.
7854 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7855 old_postinstall_cmds='chmod 644 $oldlib'
7856 old_postuninstall_cmds=
7858 if test -n "$RANLIB"; then
7859 case $host_os in
7860 openbsd*)
7861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7866 esac
7867 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7870 case $host_os in
7871 darwin*)
7872 lock_old_archive_extraction=yes ;;
7874 lock_old_archive_extraction=no ;;
7875 esac
7915 # If no C compiler was specified, use CC.
7916 LTCC=${LTCC-"$CC"}
7918 # If no C compiler flags were specified, use CFLAGS.
7919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7921 # Allow CC to be a program name with arguments.
7922 compiler=$CC
7925 # Check for command to grab the raw symbol name followed by C symbol from nm.
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7927 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7928 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7932 # These are sane defaults that work on at least a few old systems.
7933 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7935 # Character class describing NM global symbol codes.
7936 symcode='[BCDEGRST]'
7938 # Regexp to match symbols that can be accessed directly from C.
7939 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7941 # Define system-specific variables.
7942 case $host_os in
7943 aix*)
7944 symcode='[BCDT]'
7946 cygwin* | mingw* | pw32* | cegcc*)
7947 symcode='[ABCDGISTW]'
7949 hpux*)
7950 if test "$host_cpu" = ia64; then
7951 symcode='[ABCDEGRST]'
7954 irix* | nonstopux*)
7955 symcode='[BCDEGRST]'
7957 osf*)
7958 symcode='[BCDEGQRST]'
7960 solaris*)
7961 symcode='[BDRT]'
7963 sco3.2v5*)
7964 symcode='[DT]'
7966 sysv4.2uw2*)
7967 symcode='[DT]'
7969 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7970 symcode='[ABDT]'
7972 sysv4)
7973 symcode='[DFNSTU]'
7975 esac
7977 # If we're using GNU nm, then use its standard symbol codes.
7978 case `$NM -V 2>&1` in
7979 *GNU* | *'with BFD'*)
7980 symcode='[ABCDGIRSTW]' ;;
7981 esac
7983 # Transform an extracted symbol line into a proper C declaration.
7984 # Some systems (esp. on ia64) link data and code symbols differently,
7985 # so use this general approach.
7986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7988 # Transform an extracted symbol line into symbol name and symbol address
7989 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7990 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'"
7992 # Handle CRLF in mingw tool chain
7993 opt_cr=
7994 case $build_os in
7995 mingw*)
7996 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7998 esac
8000 # Try without a prefix underscore, then with it.
8001 for ac_symprfx in "" "_"; do
8003 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8004 symxfrm="\\1 $ac_symprfx\\2 \\2"
8006 # Write the raw and C identifiers.
8007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8008 # Fake it for dumpbin and say T for any non-static function
8009 # and D for any global variable.
8010 # Also find C++ and __fastcall symbols from MSVC++,
8011 # which start with @ or ?.
8012 lt_cv_sys_global_symbol_pipe="$AWK '"\
8013 " {last_section=section; section=\$ 3};"\
8014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8015 " \$ 0!~/External *\|/{next};"\
8016 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8017 " {if(hide[section]) next};"\
8018 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8019 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8020 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8021 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8022 " ' prfx=^$ac_symprfx"
8023 else
8024 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8027 # Check to see that the pipe works correctly.
8028 pipe_works=no
8030 rm -f conftest*
8031 cat > conftest.$ac_ext <<_LT_EOF
8032 #ifdef __cplusplus
8033 extern "C" {
8034 #endif
8035 char nm_test_var;
8036 void nm_test_func(void);
8037 void nm_test_func(void){}
8038 #ifdef __cplusplus
8040 #endif
8041 int main(){nm_test_var='a';nm_test_func();return(0);}
8042 _LT_EOF
8044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8045 (eval $ac_compile) 2>&5
8046 ac_status=$?
8047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048 test $ac_status = 0; }; then
8049 # Now try to grab the symbols.
8050 nlist=conftest.nm
8051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8052 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8053 ac_status=$?
8054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8055 test $ac_status = 0; } && test -s "$nlist"; then
8056 # Try sorting and uniquifying the output.
8057 if sort "$nlist" | uniq > "$nlist"T; then
8058 mv -f "$nlist"T "$nlist"
8059 else
8060 rm -f "$nlist"T
8063 # Make sure that we snagged all the symbols we need.
8064 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8065 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8066 cat <<_LT_EOF > conftest.$ac_ext
8067 #ifdef __cplusplus
8068 extern "C" {
8069 #endif
8071 _LT_EOF
8072 # Now generate the symbol file.
8073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8075 cat <<_LT_EOF >> conftest.$ac_ext
8077 /* The mapping between symbol names and symbols. */
8078 const struct {
8079 const char *name;
8080 void *address;
8082 lt__PROGRAM__LTX_preloaded_symbols[] =
8084 { "@PROGRAM@", (void *) 0 },
8085 _LT_EOF
8086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8087 cat <<\_LT_EOF >> conftest.$ac_ext
8088 {0, (void *) 0}
8091 /* This works around a problem in FreeBSD linker */
8092 #ifdef FREEBSD_WORKAROUND
8093 static const void *lt_preloaded_setup() {
8094 return lt__PROGRAM__LTX_preloaded_symbols;
8096 #endif
8098 #ifdef __cplusplus
8100 #endif
8101 _LT_EOF
8102 # Now try linking the two files.
8103 mv conftest.$ac_objext conftstm.$ac_objext
8104 lt_save_LIBS="$LIBS"
8105 lt_save_CFLAGS="$CFLAGS"
8106 LIBS="conftstm.$ac_objext"
8107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8109 (eval $ac_link) 2>&5
8110 ac_status=$?
8111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8113 pipe_works=yes
8115 LIBS="$lt_save_LIBS"
8116 CFLAGS="$lt_save_CFLAGS"
8117 else
8118 echo "cannot find nm_test_func in $nlist" >&5
8120 else
8121 echo "cannot find nm_test_var in $nlist" >&5
8123 else
8124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8126 else
8127 echo "$progname: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 rm -rf conftest* conftst*
8132 # Do not use the global_symbol_pipe unless it works.
8133 if test "$pipe_works" = yes; then
8134 break
8135 else
8136 lt_cv_sys_global_symbol_pipe=
8138 done
8142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8143 lt_cv_sys_global_symbol_to_cdecl=
8145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8147 $as_echo "failed" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8150 $as_echo "ok" >&6; }
8174 # Check whether --enable-libtool-lock was given.
8175 if test "${enable_libtool_lock+set}" = set; then :
8176 enableval=$enable_libtool_lock;
8179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8181 # Some flags need to be propagated to the compiler or linker for good
8182 # libtool support.
8183 case $host in
8184 ia64-*-hpux*)
8185 # Find out which ABI we are using.
8186 echo 'int i;' > conftest.$ac_ext
8187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8188 (eval $ac_compile) 2>&5
8189 ac_status=$?
8190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 test $ac_status = 0; }; then
8192 case `/usr/bin/file conftest.$ac_objext` in
8193 *ELF-32*)
8194 HPUX_IA64_MODE="32"
8196 *ELF-64*)
8197 HPUX_IA64_MODE="64"
8199 esac
8201 rm -rf conftest*
8203 *-*-irix6*)
8204 # Find out which ABI we are using.
8205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8207 (eval $ac_compile) 2>&5
8208 ac_status=$?
8209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8210 test $ac_status = 0; }; then
8211 if test "$lt_cv_prog_gnu_ld" = yes; then
8212 case `/usr/bin/file conftest.$ac_objext` in
8213 *32-bit*)
8214 LD="${LD-ld} -melf32bsmip"
8216 *N32*)
8217 LD="${LD-ld} -melf32bmipn32"
8219 *64-bit*)
8220 LD="${LD-ld} -melf64bmip"
8222 esac
8223 else
8224 case `/usr/bin/file conftest.$ac_objext` in
8225 *32-bit*)
8226 LD="${LD-ld} -32"
8228 *N32*)
8229 LD="${LD-ld} -n32"
8231 *64-bit*)
8232 LD="${LD-ld} -64"
8234 esac
8237 rm -rf conftest*
8240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8242 # Find out which ABI we are using.
8243 echo 'int i;' > conftest.$ac_ext
8244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8245 (eval $ac_compile) 2>&5
8246 ac_status=$?
8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8248 test $ac_status = 0; }; then
8249 case `/usr/bin/file conftest.o` in
8250 *32-bit*)
8251 case $host in
8252 x86_64-*kfreebsd*-gnu)
8253 LD="${LD-ld} -m elf_i386_fbsd"
8255 x86_64-*linux*)
8256 case `/usr/bin/file conftest.o` in
8257 *x86-64*)
8258 LD="${LD-ld} -m elf32_x86_64"
8261 LD="${LD-ld} -m elf_i386"
8263 esac
8265 powerpc64le-*linux*)
8266 LD="${LD-ld} -m elf32lppclinux"
8268 powerpc64-*linux*)
8269 LD="${LD-ld} -m elf32ppclinux"
8271 s390x-*linux*)
8272 LD="${LD-ld} -m elf_s390"
8274 sparc64-*linux*)
8275 LD="${LD-ld} -m elf32_sparc"
8277 esac
8279 *64-bit*)
8280 case $host in
8281 x86_64-*kfreebsd*-gnu)
8282 LD="${LD-ld} -m elf_x86_64_fbsd"
8284 x86_64-*linux*)
8285 LD="${LD-ld} -m elf_x86_64"
8287 powerpcle-*linux*)
8288 LD="${LD-ld} -m elf64lppc"
8290 powerpc-*linux*)
8291 LD="${LD-ld} -m elf64ppc"
8293 s390*-*linux*|s390*-*tpf*)
8294 LD="${LD-ld} -m elf64_s390"
8296 sparc*-*linux*)
8297 LD="${LD-ld} -m elf64_sparc"
8299 esac
8301 esac
8303 rm -rf conftest*
8306 *-*-sco3.2v5*)
8307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8308 SAVE_CFLAGS="$CFLAGS"
8309 CFLAGS="$CFLAGS -belf"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8311 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8312 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 ac_ext=c
8316 ac_cpp='$CPP $CPPFLAGS'
8317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321 if test x$gcc_no_link = xyes; then
8322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8328 main ()
8332 return 0;
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 lt_cv_cc_needs_belf=yes
8337 else
8338 lt_cv_cc_needs_belf=no
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8350 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8351 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8353 CFLAGS="$SAVE_CFLAGS"
8356 sparc*-*solaris*)
8357 # Find out which ABI we are using.
8358 echo 'int i;' > conftest.$ac_ext
8359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8360 (eval $ac_compile) 2>&5
8361 ac_status=$?
8362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8363 test $ac_status = 0; }; then
8364 case `/usr/bin/file conftest.o` in
8365 *64-bit*)
8366 case $lt_cv_prog_gnu_ld in
8367 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8369 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8370 LD="${LD-ld} -64"
8373 esac
8375 esac
8377 rm -rf conftest*
8379 esac
8381 need_locks="$enable_libtool_lock"
8384 case $host_os in
8385 rhapsody* | darwin*)
8386 if test -n "$ac_tool_prefix"; then
8387 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 if test -n "$DSYMUTIL"; then
8395 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8408 done
8409 done
8410 IFS=$as_save_IFS
8414 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8415 if test -n "$DSYMUTIL"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8417 $as_echo "$DSYMUTIL" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8425 if test -z "$ac_cv_prog_DSYMUTIL"; then
8426 ac_ct_DSYMUTIL=$DSYMUTIL
8427 # Extract the first word of "dsymutil", so it can be a program name with args.
8428 set dummy dsymutil; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$ac_ct_DSYMUTIL"; then
8435 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8454 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8455 if test -n "$ac_ct_DSYMUTIL"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8457 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8463 if test "x$ac_ct_DSYMUTIL" = x; then
8464 DSYMUTIL=":"
8465 else
8466 case $cross_compiling:$ac_tool_warned in
8467 yes:)
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8471 esac
8472 DSYMUTIL=$ac_ct_DSYMUTIL
8474 else
8475 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8478 if test -n "$ac_tool_prefix"; then
8479 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8480 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 if test -n "$NMEDIT"; then
8487 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8500 done
8501 done
8502 IFS=$as_save_IFS
8506 NMEDIT=$ac_cv_prog_NMEDIT
8507 if test -n "$NMEDIT"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8509 $as_echo "$NMEDIT" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8517 if test -z "$ac_cv_prog_NMEDIT"; then
8518 ac_ct_NMEDIT=$NMEDIT
8519 # Extract the first word of "nmedit", so it can be a program name with args.
8520 set dummy nmedit; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 if test -n "$ac_ct_NMEDIT"; then
8527 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8540 done
8541 done
8542 IFS=$as_save_IFS
8546 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8547 if test -n "$ac_ct_NMEDIT"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8549 $as_echo "$ac_ct_NMEDIT" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8555 if test "x$ac_ct_NMEDIT" = x; then
8556 NMEDIT=":"
8557 else
8558 case $cross_compiling:$ac_tool_warned in
8559 yes:)
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8562 ac_tool_warned=yes ;;
8563 esac
8564 NMEDIT=$ac_ct_NMEDIT
8566 else
8567 NMEDIT="$ac_cv_prog_NMEDIT"
8570 if test -n "$ac_tool_prefix"; then
8571 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8572 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if test "${ac_cv_prog_LIPO+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 if test -n "$LIPO"; then
8579 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8592 done
8593 done
8594 IFS=$as_save_IFS
8598 LIPO=$ac_cv_prog_LIPO
8599 if test -n "$LIPO"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8601 $as_echo "$LIPO" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8609 if test -z "$ac_cv_prog_LIPO"; then
8610 ac_ct_LIPO=$LIPO
8611 # Extract the first word of "lipo", so it can be a program name with args.
8612 set dummy lipo; ac_word=$2
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614 $as_echo_n "checking for $ac_word... " >&6; }
8615 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 if test -n "$ac_ct_LIPO"; then
8619 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_prog_ac_ct_LIPO="lipo"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8632 done
8633 done
8634 IFS=$as_save_IFS
8638 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8639 if test -n "$ac_ct_LIPO"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8641 $as_echo "$ac_ct_LIPO" >&6; }
8642 else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8647 if test "x$ac_ct_LIPO" = x; then
8648 LIPO=":"
8649 else
8650 case $cross_compiling:$ac_tool_warned in
8651 yes:)
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8654 ac_tool_warned=yes ;;
8655 esac
8656 LIPO=$ac_ct_LIPO
8658 else
8659 LIPO="$ac_cv_prog_LIPO"
8662 if test -n "$ac_tool_prefix"; then
8663 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8664 set dummy ${ac_tool_prefix}otool; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 if test -n "$OTOOL"; then
8671 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8690 OTOOL=$ac_cv_prog_OTOOL
8691 if test -n "$OTOOL"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8693 $as_echo "$OTOOL" >&6; }
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8701 if test -z "$ac_cv_prog_OTOOL"; then
8702 ac_ct_OTOOL=$OTOOL
8703 # Extract the first word of "otool", so it can be a program name with args.
8704 set dummy otool; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$ac_ct_OTOOL"; then
8711 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_prog_ac_ct_OTOOL="otool"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8724 done
8725 done
8726 IFS=$as_save_IFS
8730 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8731 if test -n "$ac_ct_OTOOL"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8733 $as_echo "$ac_ct_OTOOL" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8739 if test "x$ac_ct_OTOOL" = x; then
8740 OTOOL=":"
8741 else
8742 case $cross_compiling:$ac_tool_warned in
8743 yes:)
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8746 ac_tool_warned=yes ;;
8747 esac
8748 OTOOL=$ac_ct_OTOOL
8750 else
8751 OTOOL="$ac_cv_prog_OTOOL"
8754 if test -n "$ac_tool_prefix"; then
8755 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8756 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 if test -n "$OTOOL64"; then
8763 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8776 done
8777 done
8778 IFS=$as_save_IFS
8782 OTOOL64=$ac_cv_prog_OTOOL64
8783 if test -n "$OTOOL64"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8785 $as_echo "$OTOOL64" >&6; }
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8793 if test -z "$ac_cv_prog_OTOOL64"; then
8794 ac_ct_OTOOL64=$OTOOL64
8795 # Extract the first word of "otool64", so it can be a program name with args.
8796 set dummy otool64; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$ac_ct_OTOOL64"; then
8803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_ac_ct_OTOOL64="otool64"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8818 IFS=$as_save_IFS
8822 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8823 if test -n "$ac_ct_OTOOL64"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8825 $as_echo "$ac_ct_OTOOL64" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8831 if test "x$ac_ct_OTOOL64" = x; then
8832 OTOOL64=":"
8833 else
8834 case $cross_compiling:$ac_tool_warned in
8835 yes:)
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8839 esac
8840 OTOOL64=$ac_ct_OTOOL64
8842 else
8843 OTOOL64="$ac_cv_prog_OTOOL64"
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8873 $as_echo_n "checking for -single_module linker flag... " >&6; }
8874 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 lt_cv_apple_cc_single_mod=no
8878 if test -z "${LT_MULTI_MODULE}"; then
8879 # By default we will add the -single_module flag. You can override
8880 # by either setting the environment variable LT_MULTI_MODULE
8881 # non-empty at configure time, or by adding -multi_module to the
8882 # link flags.
8883 rm -rf libconftest.dylib*
8884 echo "int foo(void){return 1;}" > conftest.c
8885 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8886 -dynamiclib -Wl,-single_module conftest.c" >&5
8887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8888 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8889 _lt_result=$?
8890 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8891 lt_cv_apple_cc_single_mod=yes
8892 else
8893 cat conftest.err >&5
8895 rm -rf libconftest.dylib*
8896 rm -f conftest.*
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8900 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8902 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8903 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_ld_exported_symbols_list=no
8907 save_LDFLAGS=$LDFLAGS
8908 echo "_main" > conftest.sym
8909 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8910 if test x$gcc_no_link = xyes; then
8911 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8917 main ()
8921 return 0;
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925 lt_cv_ld_exported_symbols_list=yes
8926 else
8927 lt_cv_ld_exported_symbols_list=no
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 LDFLAGS="$save_LDFLAGS"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8935 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8937 $as_echo_n "checking for -force_load linker flag... " >&6; }
8938 if test "${lt_cv_ld_force_load+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 lt_cv_ld_force_load=no
8942 cat > conftest.c << _LT_EOF
8943 int forced_loaded() { return 2;}
8944 _LT_EOF
8945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8947 echo "$AR cru libconftest.a conftest.o" >&5
8948 $AR cru libconftest.a conftest.o 2>&5
8949 cat > conftest.c << _LT_EOF
8950 int main() { return 0;}
8951 _LT_EOF
8952 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8953 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8954 _lt_result=$?
8955 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8956 lt_cv_ld_force_load=yes
8957 else
8958 cat conftest.err >&5
8960 rm -f conftest.err libconftest.a conftest conftest.c
8961 rm -rf conftest.dSYM
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8965 $as_echo "$lt_cv_ld_force_load" >&6; }
8966 case $host_os in
8967 rhapsody* | darwin1.[012])
8968 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8969 darwin1.*)
8970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8971 darwin*) # darwin 5.x on
8972 # if running on 10.5 or later, the deployment target defaults
8973 # to the OS version, if on x86, and 10.4, the deployment
8974 # target defaults to 10.4. Don't you love it?
8975 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8976 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8977 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8978 10.[012][,.]*)
8979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8980 10.*)
8981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8982 esac
8984 esac
8985 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8986 _lt_dar_single_mod='$single_module'
8988 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8989 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8990 else
8991 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8993 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8994 _lt_dsymutil='~$DSYMUTIL $lib || :'
8995 else
8996 _lt_dsymutil=
8999 esac
9001 for ac_header in dlfcn.h
9002 do :
9003 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9005 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9006 cat >>confdefs.h <<_ACEOF
9007 #define HAVE_DLFCN_H 1
9008 _ACEOF
9012 done
9018 # Set options
9023 enable_win32_dll=no
9026 # Check whether --enable-shared was given.
9027 if test "${enable_shared+set}" = set; then :
9028 enableval=$enable_shared; p=${PACKAGE-default}
9029 case $enableval in
9030 yes) enable_shared=yes ;;
9031 no) enable_shared=no ;;
9033 enable_shared=no
9034 # Look at the argument we got. We use all the common list separators.
9035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036 for pkg in $enableval; do
9037 IFS="$lt_save_ifs"
9038 if test "X$pkg" = "X$p"; then
9039 enable_shared=yes
9041 done
9042 IFS="$lt_save_ifs"
9044 esac
9045 else
9046 enable_shared=yes
9057 # Check whether --enable-static was given.
9058 if test "${enable_static+set}" = set; then :
9059 enableval=$enable_static; p=${PACKAGE-default}
9060 case $enableval in
9061 yes) enable_static=yes ;;
9062 no) enable_static=no ;;
9064 enable_static=no
9065 # Look at the argument we got. We use all the common list separators.
9066 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9067 for pkg in $enableval; do
9068 IFS="$lt_save_ifs"
9069 if test "X$pkg" = "X$p"; then
9070 enable_static=yes
9072 done
9073 IFS="$lt_save_ifs"
9075 esac
9076 else
9077 enable_static=yes
9089 # Check whether --with-pic was given.
9090 if test "${with_pic+set}" = set; then :
9091 withval=$with_pic; pic_mode="$withval"
9092 else
9093 pic_mode=default
9097 test -z "$pic_mode" && pic_mode=default
9105 # Check whether --enable-fast-install was given.
9106 if test "${enable_fast_install+set}" = set; then :
9107 enableval=$enable_fast_install; p=${PACKAGE-default}
9108 case $enableval in
9109 yes) enable_fast_install=yes ;;
9110 no) enable_fast_install=no ;;
9112 enable_fast_install=no
9113 # Look at the argument we got. We use all the common list separators.
9114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9115 for pkg in $enableval; do
9116 IFS="$lt_save_ifs"
9117 if test "X$pkg" = "X$p"; then
9118 enable_fast_install=yes
9120 done
9121 IFS="$lt_save_ifs"
9123 esac
9124 else
9125 enable_fast_install=yes
9138 # This can be used to rebuild libtool when needed
9139 LIBTOOL_DEPS="$ltmain"
9141 # Always use our own libtool.
9142 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9169 test -z "$LN_S" && LN_S="ln -s"
9184 if test -n "${ZSH_VERSION+set}" ; then
9185 setopt NO_GLOB_SUBST
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9189 $as_echo_n "checking for objdir... " >&6; }
9190 if test "${lt_cv_objdir+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 rm -f .libs 2>/dev/null
9194 mkdir .libs 2>/dev/null
9195 if test -d .libs; then
9196 lt_cv_objdir=.libs
9197 else
9198 # MS-DOS does not allow filenames that begin with a dot.
9199 lt_cv_objdir=_libs
9201 rmdir .libs 2>/dev/null
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9204 $as_echo "$lt_cv_objdir" >&6; }
9205 objdir=$lt_cv_objdir
9211 cat >>confdefs.h <<_ACEOF
9212 #define LT_OBJDIR "$lt_cv_objdir/"
9213 _ACEOF
9218 case $host_os in
9219 aix3*)
9220 # AIX sometimes has problems with the GCC collect2 program. For some
9221 # reason, if we set the COLLECT_NAMES environment variable, the problems
9222 # vanish in a puff of smoke.
9223 if test "X${COLLECT_NAMES+set}" != Xset; then
9224 COLLECT_NAMES=
9225 export COLLECT_NAMES
9228 esac
9230 # Global variables:
9231 ofile=libtool
9232 can_build_shared=yes
9234 # All known linkers require a `.a' archive for static linking (except MSVC,
9235 # which needs '.lib').
9236 libext=a
9238 with_gnu_ld="$lt_cv_prog_gnu_ld"
9240 old_CC="$CC"
9241 old_CFLAGS="$CFLAGS"
9243 # Set sane defaults for various variables
9244 test -z "$CC" && CC=cc
9245 test -z "$LTCC" && LTCC=$CC
9246 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9247 test -z "$LD" && LD=ld
9248 test -z "$ac_objext" && ac_objext=o
9250 for cc_temp in $compiler""; do
9251 case $cc_temp in
9252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9254 \-*) ;;
9255 *) break;;
9256 esac
9257 done
9258 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9261 # Only perform the check for file, if the check method requires it
9262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9263 case $deplibs_check_method in
9264 file_magic*)
9265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9267 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9268 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 case $MAGIC_CMD in
9272 [\\/*] | ?:[\\/]*)
9273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9276 lt_save_MAGIC_CMD="$MAGIC_CMD"
9277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9279 for ac_dir in $ac_dummy; do
9280 IFS="$lt_save_ifs"
9281 test -z "$ac_dir" && ac_dir=.
9282 if test -f $ac_dir/${ac_tool_prefix}file; then
9283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9284 if test -n "$file_magic_test_file"; then
9285 case $deplibs_check_method in
9286 "file_magic "*)
9287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9290 $EGREP "$file_magic_regex" > /dev/null; then
9292 else
9293 cat <<_LT_EOF 1>&2
9295 *** Warning: the command libtool uses to detect shared libraries,
9296 *** $file_magic_cmd, produces output that libtool cannot recognize.
9297 *** The result is that libtool may fail to recognize shared libraries
9298 *** as such. This will affect the creation of libtool libraries that
9299 *** depend on shared libraries, but programs linked with such libtool
9300 *** libraries will work regardless of this problem. Nevertheless, you
9301 *** may want to report the problem to your system manager and/or to
9302 *** bug-libtool@gnu.org
9304 _LT_EOF
9305 fi ;;
9306 esac
9308 break
9310 done
9311 IFS="$lt_save_ifs"
9312 MAGIC_CMD="$lt_save_MAGIC_CMD"
9314 esac
9317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9318 if test -n "$MAGIC_CMD"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9320 $as_echo "$MAGIC_CMD" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9330 if test -z "$lt_cv_path_MAGIC_CMD"; then
9331 if test -n "$ac_tool_prefix"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9333 $as_echo_n "checking for file... " >&6; }
9334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 case $MAGIC_CMD in
9338 [\\/*] | ?:[\\/]*)
9339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9342 lt_save_MAGIC_CMD="$MAGIC_CMD"
9343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9345 for ac_dir in $ac_dummy; do
9346 IFS="$lt_save_ifs"
9347 test -z "$ac_dir" && ac_dir=.
9348 if test -f $ac_dir/file; then
9349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9350 if test -n "$file_magic_test_file"; then
9351 case $deplibs_check_method in
9352 "file_magic "*)
9353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9356 $EGREP "$file_magic_regex" > /dev/null; then
9358 else
9359 cat <<_LT_EOF 1>&2
9361 *** Warning: the command libtool uses to detect shared libraries,
9362 *** $file_magic_cmd, produces output that libtool cannot recognize.
9363 *** The result is that libtool may fail to recognize shared libraries
9364 *** as such. This will affect the creation of libtool libraries that
9365 *** depend on shared libraries, but programs linked with such libtool
9366 *** libraries will work regardless of this problem. Nevertheless, you
9367 *** may want to report the problem to your system manager and/or to
9368 *** bug-libtool@gnu.org
9370 _LT_EOF
9371 fi ;;
9372 esac
9374 break
9376 done
9377 IFS="$lt_save_ifs"
9378 MAGIC_CMD="$lt_save_MAGIC_CMD"
9380 esac
9383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9384 if test -n "$MAGIC_CMD"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9386 $as_echo "$MAGIC_CMD" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9393 else
9394 MAGIC_CMD=:
9400 esac
9402 # Use C for the default configuration in the libtool script
9404 lt_save_CC="$CC"
9405 ac_ext=c
9406 ac_cpp='$CPP $CPPFLAGS'
9407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9412 # Source file extension for C test sources.
9413 ac_ext=c
9415 # Object file extension for compiled C test sources.
9416 objext=o
9417 objext=$objext
9419 # Code to be used in simple compile tests
9420 lt_simple_compile_test_code="int some_variable = 0;"
9422 # Code to be used in simple link tests
9423 lt_simple_link_test_code='int main(){return(0);}'
9431 # If no C compiler was specified, use CC.
9432 LTCC=${LTCC-"$CC"}
9434 # If no C compiler flags were specified, use CFLAGS.
9435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9437 # Allow CC to be a program name with arguments.
9438 compiler=$CC
9440 # Save the default compiler, since it gets overwritten when the other
9441 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9442 compiler_DEFAULT=$CC
9444 # save warnings/boilerplate of simple test code
9445 ac_outfile=conftest.$ac_objext
9446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9448 _lt_compiler_boilerplate=`cat conftest.err`
9449 $RM conftest*
9451 ac_outfile=conftest.$ac_objext
9452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9454 _lt_linker_boilerplate=`cat conftest.err`
9455 $RM -r conftest*
9458 ## CAVEAT EMPTOR:
9459 ## There is no encapsulation within the following macros, do not change
9460 ## the running order or otherwise move them around unless you know exactly
9461 ## what you are doing...
9462 if test -n "$compiler"; then
9464 lt_prog_compiler_no_builtin_flag=
9466 if test "$GCC" = yes; then
9467 case $cc_basename in
9468 nvcc*)
9469 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9471 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9472 esac
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9475 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9476 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 lt_cv_prog_compiler_rtti_exceptions=no
9480 ac_outfile=conftest.$ac_objext
9481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9482 lt_compiler_flag="-fno-rtti -fno-exceptions"
9483 # Insert the option either (1) after the last *FLAGS variable, or
9484 # (2) before a word containing "conftest.", or (3) at the end.
9485 # Note that $ac_compile itself does not contain backslashes and begins
9486 # with a dollar sign (not a hyphen), so the echo should work correctly.
9487 # The option is referenced via a variable to avoid confusing sed.
9488 lt_compile=`echo "$ac_compile" | $SED \
9489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9491 -e 's:$: $lt_compiler_flag:'`
9492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9493 (eval "$lt_compile" 2>conftest.err)
9494 ac_status=$?
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 if (exit $ac_status) && test -s "$ac_outfile"; then
9498 # The compiler can only warn and ignore the option if not recognized
9499 # So say no if there are warnings other than the usual output.
9500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9503 lt_cv_prog_compiler_rtti_exceptions=yes
9506 $RM conftest*
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9510 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9512 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9513 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9514 else
9525 lt_prog_compiler_wl=
9526 lt_prog_compiler_pic=
9527 lt_prog_compiler_static=
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9530 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9532 if test "$GCC" = yes; then
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_static='-static'
9536 case $host_os in
9537 aix*)
9538 # All AIX code is PIC.
9539 if test "$host_cpu" = ia64; then
9540 # AIX 5 now supports IA64 processor
9541 lt_prog_compiler_static='-Bstatic'
9543 lt_prog_compiler_pic='-fPIC'
9546 amigaos*)
9547 case $host_cpu in
9548 powerpc)
9549 # see comment about AmigaOS4 .so support
9550 lt_prog_compiler_pic='-fPIC'
9552 m68k)
9553 # FIXME: we need at least 68020 code to build shared libraries, but
9554 # adding the `-m68020' flag to GCC prevents building anything better,
9555 # like `-m68040'.
9556 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9558 esac
9561 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9562 # PIC is the default for these OSes.
9565 mingw* | cygwin* | pw32* | os2* | cegcc*)
9566 # This hack is so that the source file can tell whether it is being
9567 # built for inclusion in a dll (and should export symbols for example).
9568 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9569 # (--disable-auto-import) libraries
9570 lt_prog_compiler_pic='-DDLL_EXPORT'
9573 darwin* | rhapsody*)
9574 # PIC is the default on this platform
9575 # Common symbols not allowed in MH_DYLIB files
9576 lt_prog_compiler_pic='-fno-common'
9579 haiku*)
9580 # PIC is the default for Haiku.
9581 # The "-static" flag exists, but is broken.
9582 lt_prog_compiler_static=
9585 hpux*)
9586 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9587 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9588 # sets the default TLS model and affects inlining.
9589 case $host_cpu in
9590 hppa*64*)
9591 # +Z the default
9594 lt_prog_compiler_pic='-fPIC'
9596 esac
9599 interix[3-9]*)
9600 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9601 # Instead, we relocate shared libraries at runtime.
9604 msdosdjgpp*)
9605 # Just because we use GCC doesn't mean we suddenly get shared libraries
9606 # on systems that don't support them.
9607 lt_prog_compiler_can_build_shared=no
9608 enable_shared=no
9611 *nto* | *qnx*)
9612 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 # it will coredump.
9614 lt_prog_compiler_pic='-fPIC -shared'
9617 sysv4*MP*)
9618 if test -d /usr/nec; then
9619 lt_prog_compiler_pic=-Kconform_pic
9624 lt_prog_compiler_pic='-fPIC'
9626 esac
9628 case $cc_basename in
9629 nvcc*) # Cuda Compiler Driver 2.2
9630 lt_prog_compiler_wl='-Xlinker '
9631 lt_prog_compiler_pic='-Xcompiler -fPIC'
9633 esac
9634 else
9635 # PORTME Check for flag to pass linker flags through the system compiler.
9636 case $host_os in
9637 aix*)
9638 lt_prog_compiler_wl='-Wl,'
9639 if test "$host_cpu" = ia64; then
9640 # AIX 5 now supports IA64 processor
9641 lt_prog_compiler_static='-Bstatic'
9642 else
9643 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9647 mingw* | cygwin* | pw32* | os2* | cegcc*)
9648 # This hack is so that the source file can tell whether it is being
9649 # built for inclusion in a dll (and should export symbols for example).
9650 lt_prog_compiler_pic='-DDLL_EXPORT'
9653 hpux9* | hpux10* | hpux11*)
9654 lt_prog_compiler_wl='-Wl,'
9655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9656 # not for PA HP-UX.
9657 case $host_cpu in
9658 hppa*64*|ia64*)
9659 # +Z the default
9662 lt_prog_compiler_pic='+Z'
9664 esac
9665 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9666 lt_prog_compiler_static='${wl}-a ${wl}archive'
9669 irix5* | irix6* | nonstopux*)
9670 lt_prog_compiler_wl='-Wl,'
9671 # PIC (with -KPIC) is the default.
9672 lt_prog_compiler_static='-non_shared'
9675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9676 case $cc_basename in
9677 # old Intel for x86_64 which still supported -KPIC.
9678 ecc*)
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-static'
9683 # icc used to be incompatible with GCC.
9684 # ICC 10 doesn't accept -KPIC any more.
9685 icc* | ifort*)
9686 lt_prog_compiler_wl='-Wl,'
9687 lt_prog_compiler_pic='-fPIC'
9688 lt_prog_compiler_static='-static'
9690 # Lahey Fortran 8.1.
9691 lf95*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='--shared'
9694 lt_prog_compiler_static='--static'
9696 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9697 # Portland Group compilers (*not* the Pentium gcc compiler,
9698 # which looks to be a dead project)
9699 lt_prog_compiler_wl='-Wl,'
9700 lt_prog_compiler_pic='-fpic'
9701 lt_prog_compiler_static='-Bstatic'
9703 ccc*)
9704 lt_prog_compiler_wl='-Wl,'
9705 # All Alpha code is PIC.
9706 lt_prog_compiler_static='-non_shared'
9708 xl* | bgxl* | bgf* | mpixl*)
9709 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-qpic'
9712 lt_prog_compiler_static='-qstaticlink'
9715 case `$CC -V 2>&1 | sed 5q` in
9716 *Sun\ F* | *Sun*Fortran*)
9717 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9718 lt_prog_compiler_pic='-KPIC'
9719 lt_prog_compiler_static='-Bstatic'
9720 lt_prog_compiler_wl=''
9722 *Sun\ C*)
9723 # Sun C 5.9
9724 lt_prog_compiler_pic='-KPIC'
9725 lt_prog_compiler_static='-Bstatic'
9726 lt_prog_compiler_wl='-Wl,'
9728 esac
9730 esac
9733 newsos6)
9734 lt_prog_compiler_pic='-KPIC'
9735 lt_prog_compiler_static='-Bstatic'
9738 *nto* | *qnx*)
9739 # QNX uses GNU C++, but need to define -shared option too, otherwise
9740 # it will coredump.
9741 lt_prog_compiler_pic='-fPIC -shared'
9744 osf3* | osf4* | osf5*)
9745 lt_prog_compiler_wl='-Wl,'
9746 # All OSF/1 code is PIC.
9747 lt_prog_compiler_static='-non_shared'
9750 rdos*)
9751 lt_prog_compiler_static='-non_shared'
9754 solaris*)
9755 lt_prog_compiler_pic='-KPIC'
9756 lt_prog_compiler_static='-Bstatic'
9757 case $cc_basename in
9758 f77* | f90* | f95*)
9759 lt_prog_compiler_wl='-Qoption ld ';;
9761 lt_prog_compiler_wl='-Wl,';;
9762 esac
9765 sunos4*)
9766 lt_prog_compiler_wl='-Qoption ld '
9767 lt_prog_compiler_pic='-PIC'
9768 lt_prog_compiler_static='-Bstatic'
9771 sysv4 | sysv4.2uw2* | sysv4.3*)
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_pic='-KPIC'
9774 lt_prog_compiler_static='-Bstatic'
9777 sysv4*MP*)
9778 if test -d /usr/nec ;then
9779 lt_prog_compiler_pic='-Kconform_pic'
9780 lt_prog_compiler_static='-Bstatic'
9784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9785 lt_prog_compiler_wl='-Wl,'
9786 lt_prog_compiler_pic='-KPIC'
9787 lt_prog_compiler_static='-Bstatic'
9790 unicos*)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_can_build_shared=no
9795 uts4*)
9796 lt_prog_compiler_pic='-pic'
9797 lt_prog_compiler_static='-Bstatic'
9801 lt_prog_compiler_can_build_shared=no
9803 esac
9806 case $host_os in
9807 # For platforms which do not support PIC, -DPIC is meaningless:
9808 *djgpp*)
9809 lt_prog_compiler_pic=
9812 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9814 esac
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9816 $as_echo "$lt_prog_compiler_pic" >&6; }
9824 # Check to make sure the PIC flag actually works.
9826 if test -n "$lt_prog_compiler_pic"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9828 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9829 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 lt_cv_prog_compiler_pic_works=no
9833 ac_outfile=conftest.$ac_objext
9834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9835 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9836 # Insert the option either (1) after the last *FLAGS variable, or
9837 # (2) before a word containing "conftest.", or (3) at the end.
9838 # Note that $ac_compile itself does not contain backslashes and begins
9839 # with a dollar sign (not a hyphen), so the echo should work correctly.
9840 # The option is referenced via a variable to avoid confusing sed.
9841 lt_compile=`echo "$ac_compile" | $SED \
9842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9844 -e 's:$: $lt_compiler_flag:'`
9845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9846 (eval "$lt_compile" 2>conftest.err)
9847 ac_status=$?
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 if (exit $ac_status) && test -s "$ac_outfile"; then
9851 # The compiler can only warn and ignore the option if not recognized
9852 # So say no if there are warnings other than the usual output.
9853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9856 lt_cv_prog_compiler_pic_works=yes
9859 $RM conftest*
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9863 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9865 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9866 case $lt_prog_compiler_pic in
9867 "" | " "*) ;;
9868 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9869 esac
9870 else
9871 lt_prog_compiler_pic=
9872 lt_prog_compiler_can_build_shared=no
9883 # Check to make sure the static flag actually works.
9885 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9887 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9888 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 lt_cv_prog_compiler_static_works=no
9892 save_LDFLAGS="$LDFLAGS"
9893 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9894 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9896 # The linker can only warn and ignore the option if not recognized
9897 # So say no if there are warnings
9898 if test -s conftest.err; then
9899 # Append any errors to the config.log.
9900 cat conftest.err 1>&5
9901 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903 if diff conftest.exp conftest.er2 >/dev/null; then
9904 lt_cv_prog_compiler_static_works=yes
9906 else
9907 lt_cv_prog_compiler_static_works=yes
9910 $RM -r conftest*
9911 LDFLAGS="$save_LDFLAGS"
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9915 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9917 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9919 else
9920 lt_prog_compiler_static=
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9930 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9931 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 lt_cv_prog_compiler_c_o=no
9935 $RM -r conftest 2>/dev/null
9936 mkdir conftest
9937 cd conftest
9938 mkdir out
9939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9941 lt_compiler_flag="-o out/conftest2.$ac_objext"
9942 # Insert the option either (1) after the last *FLAGS variable, or
9943 # (2) before a word containing "conftest.", or (3) at the end.
9944 # Note that $ac_compile itself does not contain backslashes and begins
9945 # with a dollar sign (not a hyphen), so the echo should work correctly.
9946 lt_compile=`echo "$ac_compile" | $SED \
9947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9949 -e 's:$: $lt_compiler_flag:'`
9950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9951 (eval "$lt_compile" 2>out/conftest.err)
9952 ac_status=$?
9953 cat out/conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9956 then
9957 # The compiler can only warn and ignore the option if not recognized
9958 # So say no if there are warnings
9959 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9962 lt_cv_prog_compiler_c_o=yes
9965 chmod u+w . 2>&5
9966 $RM conftest*
9967 # SGI C++ compiler will create directory out/ii_files/ for
9968 # template instantiation
9969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9970 $RM out/* && rmdir out
9971 cd ..
9972 $RM -r conftest
9973 $RM conftest*
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9977 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9985 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 lt_cv_prog_compiler_c_o=no
9990 $RM -r conftest 2>/dev/null
9991 mkdir conftest
9992 cd conftest
9993 mkdir out
9994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996 lt_compiler_flag="-o out/conftest2.$ac_objext"
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 lt_compile=`echo "$ac_compile" | $SED \
10002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10004 -e 's:$: $lt_compiler_flag:'`
10005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10006 (eval "$lt_compile" 2>out/conftest.err)
10007 ac_status=$?
10008 cat out/conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10011 then
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings
10014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10017 lt_cv_prog_compiler_c_o=yes
10020 chmod u+w . 2>&5
10021 $RM conftest*
10022 # SGI C++ compiler will create directory out/ii_files/ for
10023 # template instantiation
10024 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10025 $RM out/* && rmdir out
10026 cd ..
10027 $RM -r conftest
10028 $RM conftest*
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10032 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10037 hard_links="nottested"
10038 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10039 # do not overwrite the value of need_locks provided by the user
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10041 $as_echo_n "checking if we can lock with hard links... " >&6; }
10042 hard_links=yes
10043 $RM conftest*
10044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10045 touch conftest.a
10046 ln conftest.a conftest.b 2>&5 || hard_links=no
10047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10049 $as_echo "$hard_links" >&6; }
10050 if test "$hard_links" = no; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10052 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10053 need_locks=warn
10055 else
10056 need_locks=no
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10065 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10067 runpath_var=
10068 allow_undefined_flag=
10069 always_export_symbols=no
10070 archive_cmds=
10071 archive_expsym_cmds=
10072 compiler_needs_object=no
10073 enable_shared_with_static_runtimes=no
10074 export_dynamic_flag_spec=
10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10076 hardcode_automatic=no
10077 hardcode_direct=no
10078 hardcode_direct_absolute=no
10079 hardcode_libdir_flag_spec=
10080 hardcode_libdir_flag_spec_ld=
10081 hardcode_libdir_separator=
10082 hardcode_minus_L=no
10083 hardcode_shlibpath_var=unsupported
10084 inherit_rpath=no
10085 link_all_deplibs=unknown
10086 module_cmds=
10087 module_expsym_cmds=
10088 old_archive_from_new_cmds=
10089 old_archive_from_expsyms_cmds=
10090 thread_safe_flag_spec=
10091 whole_archive_flag_spec=
10092 # include_expsyms should be a list of space-separated symbols to be *always*
10093 # included in the symbol list
10094 include_expsyms=
10095 # exclude_expsyms can be an extended regexp of symbols to exclude
10096 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10097 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10098 # as well as any symbol that contains `d'.
10099 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10100 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10101 # platforms (ab)use it in PIC code, but their linkers get confused if
10102 # the symbol is explicitly referenced. Since portable code cannot
10103 # rely on this symbol name, it's probably fine to never include it in
10104 # preloaded symbol tables.
10105 # Exclude shared library initialization/finalization symbols.
10106 extract_expsyms_cmds=
10108 case $host_os in
10109 cygwin* | mingw* | pw32* | cegcc*)
10110 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10111 # When not using gcc, we currently assume that we are using
10112 # Microsoft Visual C++.
10113 if test "$GCC" != yes; then
10114 with_gnu_ld=no
10117 interix*)
10118 # we just hope/assume this is gcc and not c89 (= MSVC++)
10119 with_gnu_ld=yes
10121 openbsd*)
10122 with_gnu_ld=no
10124 esac
10126 ld_shlibs=yes
10128 # On some targets, GNU ld is compatible enough with the native linker
10129 # that we're better off using the native interface for both.
10130 lt_use_gnu_ld_interface=no
10131 if test "$with_gnu_ld" = yes; then
10132 case $host_os in
10133 aix*)
10134 # The AIX port of GNU ld has always aspired to compatibility
10135 # with the native linker. However, as the warning in the GNU ld
10136 # block says, versions before 2.19.5* couldn't really create working
10137 # shared libraries, regardless of the interface used.
10138 case `$LD -v 2>&1` in
10139 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10140 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10141 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10143 lt_use_gnu_ld_interface=yes
10145 esac
10148 lt_use_gnu_ld_interface=yes
10150 esac
10153 if test "$lt_use_gnu_ld_interface" = yes; then
10154 # If archive_cmds runs LD, not CC, wlarc should be empty
10155 wlarc='${wl}'
10157 # Set some defaults for GNU ld with shared library support. These
10158 # are reset later if shared libraries are not supported. Putting them
10159 # here allows them to be overridden if necessary.
10160 runpath_var=LD_RUN_PATH
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 export_dynamic_flag_spec='${wl}--export-dynamic'
10163 # ancient GNU ld didn't support --whole-archive et. al.
10164 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10165 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10166 else
10167 whole_archive_flag_spec=
10169 supports_anon_versioning=no
10170 case `$LD -v 2>&1` in
10171 *GNU\ gold*) supports_anon_versioning=yes ;;
10172 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10175 *\ 2.11.*) ;; # other 2.11 versions
10176 *) supports_anon_versioning=yes ;;
10177 esac
10179 # See if GNU ld supports shared libraries.
10180 case $host_os in
10181 aix[3-9]*)
10182 # On AIX/PPC, the GNU linker is very broken
10183 if test "$host_cpu" != ia64; then
10184 ld_shlibs=no
10185 cat <<_LT_EOF 1>&2
10187 *** Warning: the GNU linker, at least up to release 2.19, is reported
10188 *** to be unable to reliably create shared libraries on AIX.
10189 *** Therefore, libtool is disabling shared libraries support. If you
10190 *** really care for shared libraries, you may want to install binutils
10191 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10192 *** You will then need to restart the configuration process.
10194 _LT_EOF
10198 amigaos*)
10199 case $host_cpu in
10200 powerpc)
10201 # see comment about AmigaOS4 .so support
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10203 archive_expsym_cmds=''
10205 m68k)
10206 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)'
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 hardcode_minus_L=yes
10210 esac
10213 beos*)
10214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10215 allow_undefined_flag=unsupported
10216 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10217 # support --undefined. This deserves some investigation. FIXME
10218 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 else
10220 ld_shlibs=no
10224 cygwin* | mingw* | pw32* | cegcc*)
10225 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10226 # as there is no search path for DLLs.
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 export_dynamic_flag_spec='${wl}--export-all-symbols'
10229 allow_undefined_flag=unsupported
10230 always_export_symbols=no
10231 enable_shared_with_static_runtimes=yes
10232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10234 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10236 # If the export-symbols file already is a .def file (1st line
10237 # is EXPORTS), use it as is; otherwise, prepend...
10238 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10239 cp $export_symbols $output_objdir/$soname.def;
10240 else
10241 echo EXPORTS > $output_objdir/$soname.def;
10242 cat $export_symbols >> $output_objdir/$soname.def;
10244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10245 else
10246 ld_shlibs=no
10250 haiku*)
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252 link_all_deplibs=yes
10255 interix[3-9]*)
10256 hardcode_direct=no
10257 hardcode_shlibpath_var=no
10258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10259 export_dynamic_flag_spec='${wl}-E'
10260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10261 # Instead, shared libraries are loaded at an image base (0x10000000 by
10262 # default) and relocated if they conflict, which is a slow very memory
10263 # consuming and fragmenting process. To avoid this, we pick a random,
10264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10267 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'
10270 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10271 tmp_diet=no
10272 if test "$host_os" = linux-dietlibc; then
10273 case $cc_basename in
10274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10275 esac
10277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10278 && test "$tmp_diet" = no
10279 then
10280 tmp_addflag=' $pic_flag'
10281 tmp_sharedflag='-shared'
10282 case $cc_basename,$host_cpu in
10283 pgcc*) # Portland Group C compiler
10284 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'
10285 tmp_addflag=' $pic_flag'
10287 pgf77* | pgf90* | pgf95* | pgfortran*)
10288 # Portland Group f77 and f90 compilers
10289 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'
10290 tmp_addflag=' $pic_flag -Mnomain' ;;
10291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10292 tmp_addflag=' -i_dynamic' ;;
10293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10294 tmp_addflag=' -i_dynamic -nofor_main' ;;
10295 ifc* | ifort*) # Intel Fortran compiler
10296 tmp_addflag=' -nofor_main' ;;
10297 lf95*) # Lahey Fortran 8.1
10298 whole_archive_flag_spec=
10299 tmp_sharedflag='--shared' ;;
10300 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10301 tmp_sharedflag='-qmkshrobj'
10302 tmp_addflag= ;;
10303 nvcc*) # Cuda Compiler Driver 2.2
10304 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'
10305 compiler_needs_object=yes
10307 esac
10308 case `$CC -V 2>&1 | sed 5q` in
10309 *Sun\ C*) # Sun C 5.9
10310 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'
10311 compiler_needs_object=yes
10312 tmp_sharedflag='-G' ;;
10313 *Sun\ F*) # Sun Fortran 8.3
10314 tmp_sharedflag='-G' ;;
10315 esac
10316 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10318 if test "x$supports_anon_versioning" = xyes; then
10319 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10321 echo "local: *; };" >> $output_objdir/$libname.ver~
10322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10325 case $cc_basename in
10326 xlf* | bgf* | bgxlf* | mpixlf*)
10327 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10328 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10329 hardcode_libdir_flag_spec=
10330 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10331 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10332 if test "x$supports_anon_versioning" = xyes; then
10333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10335 echo "local: *; };" >> $output_objdir/$libname.ver~
10336 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10339 esac
10340 else
10341 ld_shlibs=no
10345 netbsd*)
10346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10347 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10348 wlarc=
10349 else
10350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10355 solaris*)
10356 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10357 ld_shlibs=no
10358 cat <<_LT_EOF 1>&2
10360 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10361 *** create shared libraries on Solaris systems. Therefore, libtool
10362 *** is disabling shared libraries support. We urge you to upgrade GNU
10363 *** binutils to release 2.9.1 or newer. Another option is to modify
10364 *** your PATH or compiler configuration so that the native linker is
10365 *** used, and then restart.
10367 _LT_EOF
10368 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10371 else
10372 ld_shlibs=no
10376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10377 case `$LD -v 2>&1` in
10378 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10379 ld_shlibs=no
10380 cat <<_LT_EOF 1>&2
10382 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10383 *** reliably create shared libraries on SCO systems. Therefore, libtool
10384 *** is disabling shared libraries support. We urge you to upgrade GNU
10385 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10386 *** your PATH or compiler configuration so that the native linker is
10387 *** used, and then restart.
10389 _LT_EOF
10392 # For security reasons, it is highly recommended that you always
10393 # use absolute paths for naming shared libraries, and exclude the
10394 # DT_RUNPATH tag from executables and libraries. But doing so
10395 # requires that you compile everything twice, which is a pain.
10396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10400 else
10401 ld_shlibs=no
10404 esac
10407 sunos4*)
10408 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10409 wlarc=
10410 hardcode_direct=yes
10411 hardcode_shlibpath_var=no
10415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10418 else
10419 ld_shlibs=no
10422 esac
10424 if test "$ld_shlibs" = no; then
10425 runpath_var=
10426 hardcode_libdir_flag_spec=
10427 export_dynamic_flag_spec=
10428 whole_archive_flag_spec=
10430 else
10431 # PORTME fill in a description of your system's linker (not GNU ld)
10432 case $host_os in
10433 aix3*)
10434 allow_undefined_flag=unsupported
10435 always_export_symbols=yes
10436 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'
10437 # Note: this linker hardcodes the directories in LIBPATH if there
10438 # are no directories specified by -L.
10439 hardcode_minus_L=yes
10440 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10441 # Neither direct hardcoding nor static linking is supported with a
10442 # broken collect2.
10443 hardcode_direct=unsupported
10447 aix[4-9]*)
10448 if test "$host_cpu" = ia64; then
10449 # On IA64, the linker does run time linking by default, so we don't
10450 # have to do anything special.
10451 aix_use_runtimelinking=no
10452 exp_sym_flag='-Bexport'
10453 no_entry_flag=""
10454 else
10455 # If we're using GNU nm, then we don't want the "-C" option.
10456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10457 # Also, AIX nm treats weak defined symbols like other global
10458 # defined symbols, whereas GNU nm marks them as "W".
10459 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10460 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'
10461 else
10462 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10464 aix_use_runtimelinking=no
10466 # Test if we are trying to use run time linking or normal
10467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10468 # need to do runtime linking.
10469 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10470 for ld_flag in $LDFLAGS; do
10471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10472 aix_use_runtimelinking=yes
10473 break
10475 done
10477 esac
10479 exp_sym_flag='-bexport'
10480 no_entry_flag='-bnoentry'
10483 # When large executables or shared objects are built, AIX ld can
10484 # have problems creating the table of contents. If linking a library
10485 # or program results in "error TOC overflow" add -mminimal-toc to
10486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489 archive_cmds=''
10490 hardcode_direct=yes
10491 hardcode_direct_absolute=yes
10492 hardcode_libdir_separator=':'
10493 link_all_deplibs=yes
10494 file_list_spec='${wl}-f,'
10496 if test "$GCC" = yes; then
10497 case $host_os in aix4.[012]|aix4.[012].*)
10498 # We only want to do this on AIX 4.2 and lower, the check
10499 # below for broken collect2 doesn't work under 4.3+
10500 collect2name=`${CC} -print-prog-name=collect2`
10501 if test -f "$collect2name" &&
10502 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10503 then
10504 # We have reworked collect2
10506 else
10507 # We have old collect2
10508 hardcode_direct=unsupported
10509 # It fails to find uninstalled libraries when the uninstalled
10510 # path is not listed in the libpath. Setting hardcode_minus_L
10511 # to unsupported forces relinking
10512 hardcode_minus_L=yes
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_libdir_separator=
10517 esac
10518 shared_flag='-shared'
10519 if test "$aix_use_runtimelinking" = yes; then
10520 shared_flag="$shared_flag "'${wl}-G'
10522 else
10523 # not using gcc
10524 if test "$host_cpu" = ia64; then
10525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10526 # chokes on -Wl,-G. The following line is correct:
10527 shared_flag='-G'
10528 else
10529 if test "$aix_use_runtimelinking" = yes; then
10530 shared_flag='${wl}-G'
10531 else
10532 shared_flag='${wl}-bM:SRE'
10537 export_dynamic_flag_spec='${wl}-bexpall'
10538 # It seems that -bexpall does not export symbols beginning with
10539 # underscore (_), so it is better to generate a list of symbols to export.
10540 always_export_symbols=yes
10541 if test "$aix_use_runtimelinking" = yes; then
10542 # Warning - without using the other runtime loading flags (-brtl),
10543 # -berok will link without error, but may produce a broken library.
10544 allow_undefined_flag='-berok'
10545 # Determine the default libpath from the value encoded in an
10546 # empty executable.
10547 if test x$gcc_no_link = xyes; then
10548 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10554 main ()
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10563 lt_aix_libpath_sed='
10564 /Import File Strings/,/^$/ {
10565 /^0/ {
10566 s/^0 *\(.*\)$/\1/
10570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10571 # Check for a 64-bit object if we didn't find anything.
10572 if test -z "$aix_libpath"; then
10573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10581 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"
10582 else
10583 if test "$host_cpu" = ia64; then
10584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10585 allow_undefined_flag="-z nodefs"
10586 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"
10587 else
10588 # Determine the default libpath from the value encoded in an
10589 # empty executable.
10590 if test x$gcc_no_link = xyes; then
10591 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10597 main ()
10601 return 0;
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10606 lt_aix_libpath_sed='
10607 /Import File Strings/,/^$/ {
10608 /^0/ {
10609 s/^0 *\(.*\)$/\1/
10613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10614 # Check for a 64-bit object if we didn't find anything.
10615 if test -z "$aix_libpath"; then
10616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10624 # Warning - without using the other run time loading flags,
10625 # -berok will link without error, but may produce a broken library.
10626 no_undefined_flag=' ${wl}-bernotok'
10627 allow_undefined_flag=' ${wl}-berok'
10628 if test "$with_gnu_ld" = yes; then
10629 # We only use this code for GNU lds that support --whole-archive.
10630 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10631 else
10632 # Exported symbols can be pulled into shared objects from archives
10633 whole_archive_flag_spec='$convenience'
10635 archive_cmds_need_lc=yes
10636 # This is similar to how AIX traditionally builds its shared libraries.
10637 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'
10642 amigaos*)
10643 case $host_cpu in
10644 powerpc)
10645 # see comment about AmigaOS4 .so support
10646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10647 archive_expsym_cmds=''
10649 m68k)
10650 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)'
10651 hardcode_libdir_flag_spec='-L$libdir'
10652 hardcode_minus_L=yes
10654 esac
10657 bsdi[45]*)
10658 export_dynamic_flag_spec=-rdynamic
10661 cygwin* | mingw* | pw32* | cegcc*)
10662 # When not using gcc, we currently assume that we are using
10663 # Microsoft Visual C++.
10664 # hardcode_libdir_flag_spec is actually meaningless, as there is
10665 # no search path for DLLs.
10666 hardcode_libdir_flag_spec=' '
10667 allow_undefined_flag=unsupported
10668 # Tell ltmain to make .lib files, not .a files.
10669 libext=lib
10670 # Tell ltmain to make .dll files, not .so files.
10671 shrext_cmds=".dll"
10672 # FIXME: Setting linknames here is a bad hack.
10673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10674 # The linker will automatically build a .lib file if we build a DLL.
10675 old_archive_from_new_cmds='true'
10676 # FIXME: Should let the user specify the lib program.
10677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10678 fix_srcfile_path='`cygpath -w "$srcfile"`'
10679 enable_shared_with_static_runtimes=yes
10682 darwin* | rhapsody*)
10685 archive_cmds_need_lc=no
10686 hardcode_direct=no
10687 hardcode_automatic=yes
10688 hardcode_shlibpath_var=unsupported
10689 if test "$lt_cv_ld_force_load" = "yes"; then
10690 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\"`'
10691 else
10692 whole_archive_flag_spec=''
10694 link_all_deplibs=yes
10695 allow_undefined_flag="$_lt_dar_allow_undefined"
10696 case $cc_basename in
10697 ifort*) _lt_dar_can_shared=yes ;;
10698 *) _lt_dar_can_shared=$GCC ;;
10699 esac
10700 if test "$_lt_dar_can_shared" = "yes"; then
10701 output_verbose_link_cmd=func_echo_all
10702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10704 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}"
10705 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}"
10707 else
10708 ld_shlibs=no
10713 dgux*)
10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_libdir_flag_spec='-L$libdir'
10716 hardcode_shlibpath_var=no
10719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10720 # support. Future versions do this automatically, but an explicit c++rt0.o
10721 # does not break anything, and helps significantly (at the cost of a little
10722 # extra space).
10723 freebsd2.2*)
10724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10725 hardcode_libdir_flag_spec='-R$libdir'
10726 hardcode_direct=yes
10727 hardcode_shlibpath_var=no
10730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10731 freebsd2.*)
10732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10733 hardcode_direct=yes
10734 hardcode_minus_L=yes
10735 hardcode_shlibpath_var=no
10738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10739 freebsd* | dragonfly*)
10740 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10741 hardcode_libdir_flag_spec='-R$libdir'
10742 hardcode_direct=yes
10743 hardcode_shlibpath_var=no
10746 hpux9*)
10747 if test "$GCC" = yes; then
10748 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'
10749 else
10750 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'
10752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10753 hardcode_libdir_separator=:
10754 hardcode_direct=yes
10756 # hardcode_minus_L: Not really in the search PATH,
10757 # but as the default location of the library.
10758 hardcode_minus_L=yes
10759 export_dynamic_flag_spec='${wl}-E'
10762 hpux10*)
10763 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 else
10766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10768 if test "$with_gnu_ld" = no; then
10769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10770 hardcode_libdir_flag_spec_ld='+b $libdir'
10771 hardcode_libdir_separator=:
10772 hardcode_direct=yes
10773 hardcode_direct_absolute=yes
10774 export_dynamic_flag_spec='${wl}-E'
10775 # hardcode_minus_L: Not really in the search PATH,
10776 # but as the default location of the library.
10777 hardcode_minus_L=yes
10781 hpux11*)
10782 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10783 case $host_cpu in
10784 hppa*64*)
10785 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 ia64*)
10788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10793 esac
10794 else
10795 case $host_cpu in
10796 hppa*64*)
10797 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 ia64*)
10800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10804 # Older versions of the 11.00 compiler do not understand -b yet
10805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10807 $as_echo_n "checking if $CC understands -b... " >&6; }
10808 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 lt_cv_prog_compiler__b=no
10812 save_LDFLAGS="$LDFLAGS"
10813 LDFLAGS="$LDFLAGS -b"
10814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10816 # The linker can only warn and ignore the option if not recognized
10817 # So say no if there are warnings
10818 if test -s conftest.err; then
10819 # Append any errors to the config.log.
10820 cat conftest.err 1>&5
10821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10823 if diff conftest.exp conftest.er2 >/dev/null; then
10824 lt_cv_prog_compiler__b=yes
10826 else
10827 lt_cv_prog_compiler__b=yes
10830 $RM -r conftest*
10831 LDFLAGS="$save_LDFLAGS"
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10835 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10837 if test x"$lt_cv_prog_compiler__b" = xyes; then
10838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10839 else
10840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10844 esac
10846 if test "$with_gnu_ld" = no; then
10847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10848 hardcode_libdir_separator=:
10850 case $host_cpu in
10851 hppa*64*|ia64*)
10852 hardcode_direct=no
10853 hardcode_shlibpath_var=no
10856 hardcode_direct=yes
10857 hardcode_direct_absolute=yes
10858 export_dynamic_flag_spec='${wl}-E'
10860 # hardcode_minus_L: Not really in the search PATH,
10861 # but as the default location of the library.
10862 hardcode_minus_L=yes
10864 esac
10868 irix5* | irix6* | nonstopux*)
10869 if test "$GCC" = yes; then
10870 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'
10871 # Try to use the -exported_symbol ld option, if it does not
10872 # work, assume that -exports_file does not work either and
10873 # implicitly export all symbols.
10874 save_LDFLAGS="$LDFLAGS"
10875 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10876 if test x$gcc_no_link = xyes; then
10877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881 int foo(void) {}
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 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'
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LDFLAGS="$save_LDFLAGS"
10890 else
10891 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'
10892 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'
10894 archive_cmds_need_lc='no'
10895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10896 hardcode_libdir_separator=:
10897 inherit_rpath=yes
10898 link_all_deplibs=yes
10901 netbsd*)
10902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10904 else
10905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10907 hardcode_libdir_flag_spec='-R$libdir'
10908 hardcode_direct=yes
10909 hardcode_shlibpath_var=no
10912 newsos6)
10913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=yes
10915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10916 hardcode_libdir_separator=:
10917 hardcode_shlibpath_var=no
10920 *nto* | *qnx*)
10923 openbsd*)
10924 if test -f /usr/libexec/ld.so; then
10925 hardcode_direct=yes
10926 hardcode_shlibpath_var=no
10927 hardcode_direct_absolute=yes
10928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10932 export_dynamic_flag_spec='${wl}-E'
10933 else
10934 case $host_os in
10935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10937 hardcode_libdir_flag_spec='-R$libdir'
10940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10943 esac
10945 else
10946 ld_shlibs=no
10950 os2*)
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_minus_L=yes
10953 allow_undefined_flag=unsupported
10954 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'
10955 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10958 osf3*)
10959 if test "$GCC" = yes; then
10960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10961 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'
10962 else
10963 allow_undefined_flag=' -expect_unresolved \*'
10964 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'
10966 archive_cmds_need_lc='no'
10967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator=:
10971 osf4* | osf5*) # as osf3* with the addition of -msym flag
10972 if test "$GCC" = yes; then
10973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10974 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'
10975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10976 else
10977 allow_undefined_flag=' -expect_unresolved \*'
10978 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'
10979 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~
10980 $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'
10982 # Both c and cxx compiler support -rpath directly
10983 hardcode_libdir_flag_spec='-rpath $libdir'
10985 archive_cmds_need_lc='no'
10986 hardcode_libdir_separator=:
10989 solaris*)
10990 no_undefined_flag=' -z defs'
10991 if test "$GCC" = yes; then
10992 wlarc='${wl}'
10993 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10995 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10996 else
10997 case `$CC -V 2>&1` in
10998 *"Compilers 5.0"*)
10999 wlarc=''
11000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11005 wlarc='${wl}'
11006 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11010 esac
11012 hardcode_libdir_flag_spec='-R$libdir'
11013 hardcode_shlibpath_var=no
11014 case $host_os in
11015 solaris2.[0-5] | solaris2.[0-5].*) ;;
11017 # The compiler driver will combine and reorder linker options,
11018 # but understands `-z linker_flag'. GCC discards it without `$wl',
11019 # but is careful enough not to reorder.
11020 # Supported since Solaris 2.6 (maybe 2.5.1?)
11021 if test "$GCC" = yes; then
11022 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11023 else
11024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11027 esac
11028 link_all_deplibs=yes
11031 sunos4*)
11032 if test "x$host_vendor" = xsequent; then
11033 # Use $CC to link under sequent, because it throws in some extra .o
11034 # files that make .init and .fini sections work.
11035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11036 else
11037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_direct=yes
11041 hardcode_minus_L=yes
11042 hardcode_shlibpath_var=no
11045 sysv4)
11046 case $host_vendor in
11047 sni)
11048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11049 hardcode_direct=yes # is this really true???
11051 siemens)
11052 ## LD is ld it makes a PLAMLIB
11053 ## CC just makes a GrossModule.
11054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11055 reload_cmds='$CC -r -o $output$reload_objs'
11056 hardcode_direct=no
11058 motorola)
11059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11062 esac
11063 runpath_var='LD_RUN_PATH'
11064 hardcode_shlibpath_var=no
11067 sysv4.3*)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_shlibpath_var=no
11070 export_dynamic_flag_spec='-Bexport'
11073 sysv4*MP*)
11074 if test -d /usr/nec; then
11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076 hardcode_shlibpath_var=no
11077 runpath_var=LD_RUN_PATH
11078 hardcode_runpath_var=yes
11079 ld_shlibs=yes
11083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11084 no_undefined_flag='${wl}-z,text'
11085 archive_cmds_need_lc=no
11086 hardcode_shlibpath_var=no
11087 runpath_var='LD_RUN_PATH'
11089 if test "$GCC" = yes; then
11090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11092 else
11093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 sysv5* | sco3.2v5* | sco5v6*)
11099 # Note: We can NOT use -z defs as we might desire, because we do not
11100 # link with -lc, and that would cause any symbols used from libc to
11101 # always be unresolved, which means just about no library would
11102 # ever link correctly. If we're not using GNU ld we use -z text
11103 # though, which does catch some bad symbols but isn't as heavy-handed
11104 # as -z defs.
11105 no_undefined_flag='${wl}-z,text'
11106 allow_undefined_flag='${wl}-z,nodefs'
11107 archive_cmds_need_lc=no
11108 hardcode_shlibpath_var=no
11109 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11110 hardcode_libdir_separator=':'
11111 link_all_deplibs=yes
11112 export_dynamic_flag_spec='${wl}-Bexport'
11113 runpath_var='LD_RUN_PATH'
11115 if test "$GCC" = yes; then
11116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11118 else
11119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 uts4*)
11125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11126 hardcode_libdir_flag_spec='-L$libdir'
11127 hardcode_shlibpath_var=no
11131 ld_shlibs=no
11133 esac
11135 if test x$host_vendor = xsni; then
11136 case $host in
11137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11138 export_dynamic_flag_spec='${wl}-Blargedynsym'
11140 esac
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11145 $as_echo "$ld_shlibs" >&6; }
11146 test "$ld_shlibs" = no && can_build_shared=no
11148 with_gnu_ld=$with_gnu_ld
11165 # Do we need to explicitly link libc?
11167 case "x$archive_cmds_need_lc" in
11168 x|xyes)
11169 # Assume -lc should be added
11170 archive_cmds_need_lc=yes
11172 if test "$enable_shared" = yes && test "$GCC" = yes; then
11173 case $archive_cmds in
11174 *'~'*)
11175 # FIXME: we may have to deal with multi-command sequences.
11177 '$CC '*)
11178 # Test whether the compiler implicitly links with -lc since on some
11179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11180 # to ld, don't add -lc before -lgcc.
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11183 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 $RM conftest*
11187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11190 (eval $ac_compile) 2>&5
11191 ac_status=$?
11192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193 test $ac_status = 0; } 2>conftest.err; then
11194 soname=conftest
11195 lib=conftest
11196 libobjs=conftest.$ac_objext
11197 deplibs=
11198 wl=$lt_prog_compiler_wl
11199 pic_flag=$lt_prog_compiler_pic
11200 compiler_flags=-v
11201 linker_flags=-v
11202 verstring=
11203 output_objdir=.
11204 libname=conftest
11205 lt_save_allow_undefined_flag=$allow_undefined_flag
11206 allow_undefined_flag=
11207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11209 ac_status=$?
11210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211 test $ac_status = 0; }
11212 then
11213 lt_cv_archive_cmds_need_lc=no
11214 else
11215 lt_cv_archive_cmds_need_lc=yes
11217 allow_undefined_flag=$lt_save_allow_undefined_flag
11218 else
11219 cat conftest.err 1>&5
11221 $RM conftest*
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11228 esac
11231 esac
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11392 if test "$GCC" = yes; then
11393 case $host_os in
11394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11395 *) lt_awk_arg="/^libraries:/" ;;
11396 esac
11397 case $host_os in
11398 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11399 *) lt_sed_strip_eq="s,=/,/,g" ;;
11400 esac
11401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11402 case $lt_search_path_spec in
11403 *\;*)
11404 # if the path contains ";" then we assume it to be the separator
11405 # otherwise default to the standard path separator (i.e. ":") - it is
11406 # assumed that no part of a normal pathname contains ";" but that should
11407 # okay in the real world where ";" in dirpaths is itself problematic.
11408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11413 esac
11414 # Ok, now we have the path, separated by spaces, we can step through it
11415 # and add multilib dir if necessary.
11416 lt_tmp_lt_search_path_spec=
11417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11418 for lt_sys_path in $lt_search_path_spec; do
11419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11421 else
11422 test -d "$lt_sys_path" && \
11423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11425 done
11426 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11427 BEGIN {RS=" "; FS="/|\n";} {
11428 lt_foo="";
11429 lt_count=0;
11430 for (lt_i = NF; lt_i > 0; lt_i--) {
11431 if ($lt_i != "" && $lt_i != ".") {
11432 if ($lt_i == "..") {
11433 lt_count++;
11434 } else {
11435 if (lt_count == 0) {
11436 lt_foo="/" $lt_i lt_foo;
11437 } else {
11438 lt_count--;
11443 if (lt_foo != "") { lt_freq[lt_foo]++; }
11444 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11446 # AWK program above erroneously prepends '/' to C:/dos/paths
11447 # for these hosts.
11448 case $host_os in
11449 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11450 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11451 esac
11452 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11453 else
11454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11456 library_names_spec=
11457 libname_spec='lib$name'
11458 soname_spec=
11459 shrext_cmds=".so"
11460 postinstall_cmds=
11461 postuninstall_cmds=
11462 finish_cmds=
11463 finish_eval=
11464 shlibpath_var=
11465 shlibpath_overrides_runpath=unknown
11466 version_type=none
11467 dynamic_linker="$host_os ld.so"
11468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11469 need_lib_prefix=unknown
11470 hardcode_into_libs=no
11472 # when you set need_version to no, make sure it does not cause -set_version
11473 # flags to be left without arguments
11474 need_version=unknown
11476 case $host_os in
11477 aix3*)
11478 version_type=linux
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11480 shlibpath_var=LIBPATH
11482 # AIX 3 has no versioning support, so we append a major version to the name.
11483 soname_spec='${libname}${release}${shared_ext}$major'
11486 aix[4-9]*)
11487 version_type=linux
11488 need_lib_prefix=no
11489 need_version=no
11490 hardcode_into_libs=yes
11491 if test "$host_cpu" = ia64; then
11492 # AIX 5 supports IA64
11493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 else
11496 # With GCC up to 2.95.x, collect2 would create an import file
11497 # for dependence libraries. The import file would start with
11498 # the line `#! .'. This would cause the generated library to
11499 # depend on `.', always an invalid library. This was fixed in
11500 # development snapshots of GCC prior to 3.0.
11501 case $host_os in
11502 aix4 | aix4.[01] | aix4.[01].*)
11503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11504 echo ' yes '
11505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11507 else
11508 can_build_shared=no
11511 esac
11512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11513 # soname into executable. Probably we can add versioning support to
11514 # collect2, so additional links can be useful in future.
11515 if test "$aix_use_runtimelinking" = yes; then
11516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11517 # instead of lib<name>.a to let people know that these are not
11518 # typical AIX shared libraries.
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 else
11521 # We preserve .a as extension for shared libraries through AIX4.2
11522 # and later when we are not doing run time linking.
11523 library_names_spec='${libname}${release}.a $libname.a'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LIBPATH
11530 amigaos*)
11531 case $host_cpu in
11532 powerpc)
11533 # Since July 2007 AmigaOS4 officially supports .so libraries.
11534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 m68k)
11538 library_names_spec='$libname.ixlibrary $libname.a'
11539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11540 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'
11542 esac
11545 beos*)
11546 library_names_spec='${libname}${shared_ext}'
11547 dynamic_linker="$host_os ld.so"
11548 shlibpath_var=LIBRARY_PATH
11551 bsdi[45]*)
11552 version_type=linux
11553 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11560 # the default ld.so.conf also contains /usr/contrib/lib and
11561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11562 # libtool to hard-code these into programs
11565 cygwin* | mingw* | pw32* | cegcc*)
11566 version_type=windows
11567 shrext_cmds=".dll"
11568 need_version=no
11569 need_lib_prefix=no
11571 case $GCC,$host_os in
11572 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11573 library_names_spec='$libname.dll.a'
11574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11575 postinstall_cmds='base_file=`basename \${file}`~
11576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11577 dldir=$destdir/`dirname \$dlpath`~
11578 test -d \$dldir || mkdir -p \$dldir~
11579 $install_prog $dir/$dlname \$dldir/$dlname~
11580 chmod a+x \$dldir/$dlname~
11581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11585 dlpath=$dir/\$dldll~
11586 $RM \$dlpath'
11587 shlibpath_overrides_runpath=yes
11589 case $host_os in
11590 cygwin*)
11591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11596 mingw* | cegcc*)
11597 # MinGW DLLs use traditional 'lib' prefix
11598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11600 pw32*)
11601 # pw32 DLLs use 'pw' prefix rather than 'lib'
11602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11604 esac
11608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11610 esac
11611 dynamic_linker='Win32 ld.exe'
11612 # FIXME: first we should search . and the directory the executable is in
11613 shlibpath_var=PATH
11616 darwin* | rhapsody*)
11617 dynamic_linker="$host_os dyld"
11618 version_type=darwin
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11622 soname_spec='${libname}${release}${major}$shared_ext'
11623 shlibpath_overrides_runpath=yes
11624 shlibpath_var=DYLD_LIBRARY_PATH
11625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11631 dgux*)
11632 version_type=linux
11633 need_lib_prefix=no
11634 need_version=no
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 shlibpath_var=LD_LIBRARY_PATH
11640 freebsd* | dragonfly*)
11641 # DragonFly does not have aout. When/if they implement a new
11642 # versioning mechanism, adjust this.
11643 if test -x /usr/bin/objformat; then
11644 objformat=`/usr/bin/objformat`
11645 else
11646 case $host_os in
11647 freebsd[23].*) objformat=aout ;;
11648 *) objformat=elf ;;
11649 esac
11651 version_type=freebsd-$objformat
11652 case $version_type in
11653 freebsd-elf*)
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11655 need_version=no
11656 need_lib_prefix=no
11658 freebsd-*)
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11660 need_version=yes
11662 esac
11663 shlibpath_var=LD_LIBRARY_PATH
11664 case $host_os in
11665 freebsd2.*)
11666 shlibpath_overrides_runpath=yes
11668 freebsd3.[01]* | freebsdelf3.[01]*)
11669 shlibpath_overrides_runpath=yes
11670 hardcode_into_libs=yes
11672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11674 shlibpath_overrides_runpath=no
11675 hardcode_into_libs=yes
11677 *) # from 4.6 on, and DragonFly
11678 shlibpath_overrides_runpath=yes
11679 hardcode_into_libs=yes
11681 esac
11684 gnu*)
11685 version_type=linux
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 hardcode_into_libs=yes
11694 haiku*)
11695 version_type=linux
11696 need_lib_prefix=no
11697 need_version=no
11698 dynamic_linker="$host_os runtime_loader"
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11704 hardcode_into_libs=yes
11707 hpux9* | hpux10* | hpux11*)
11708 # Give a soname corresponding to the major version so that dld.sl refuses to
11709 # link against other versions.
11710 version_type=sunos
11711 need_lib_prefix=no
11712 need_version=no
11713 case $host_cpu in
11714 ia64*)
11715 shrext_cmds='.so'
11716 hardcode_into_libs=yes
11717 dynamic_linker="$host_os dld.so"
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 if test "X$HPUX_IA64_MODE" = X32; then
11723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724 else
11725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11729 hppa*64*)
11730 shrext_cmds='.sl'
11731 hardcode_into_libs=yes
11732 dynamic_linker="$host_os dld.sl"
11733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11741 shrext_cmds='.sl'
11742 dynamic_linker="$host_os dld.sl"
11743 shlibpath_var=SHLIB_PATH
11744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11748 esac
11749 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11750 postinstall_cmds='chmod 555 $lib'
11751 # or fails outright, so override atomically:
11752 install_override_mode=555
11755 interix[3-9]*)
11756 version_type=linux
11757 need_lib_prefix=no
11758 need_version=no
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=no
11764 hardcode_into_libs=yes
11767 irix5* | irix6* | nonstopux*)
11768 case $host_os in
11769 nonstopux*) version_type=nonstopux ;;
11771 if test "$lt_cv_prog_gnu_ld" = yes; then
11772 version_type=linux
11773 else
11774 version_type=irix
11775 fi ;;
11776 esac
11777 need_lib_prefix=no
11778 need_version=no
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11781 case $host_os in
11782 irix5* | nonstopux*)
11783 libsuff= shlibsuff=
11786 case $LD in # libtool.m4 will add one of these switches to LD
11787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11788 libsuff= shlibsuff= libmagic=32-bit;;
11789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11790 libsuff=32 shlibsuff=N32 libmagic=N32;;
11791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11793 *) libsuff= shlibsuff= libmagic=never-match;;
11794 esac
11796 esac
11797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11798 shlibpath_overrides_runpath=no
11799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11801 hardcode_into_libs=yes
11804 # No shared lib support for Linux oldld, aout, or coff.
11805 linux*oldld* | linux*aout* | linux*coff*)
11806 dynamic_linker=no
11809 # This must be Linux ELF.
11810 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=no
11820 # Some binutils ld are patched to set DT_RUNPATH
11821 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 lt_cv_shlibpath_overrides_runpath=no
11825 save_LDFLAGS=$LDFLAGS
11826 save_libdir=$libdir
11827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11829 if test x$gcc_no_link = xyes; then
11830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11836 main ()
11840 return 0;
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11845 lt_cv_shlibpath_overrides_runpath=yes
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LDFLAGS=$save_LDFLAGS
11851 libdir=$save_libdir
11855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11857 # This implies no fast_install, which is unacceptable.
11858 # Some rework will be needed to allow for fast_install
11859 # before this can be enabled.
11860 hardcode_into_libs=yes
11862 # Append ld.so.conf contents to the search path
11863 if test -f /etc/ld.so.conf; then
11864 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' ' '`
11865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11868 # We used to test for /lib/ld.so.1 and disable shared libraries on
11869 # powerpc, because MkLinux only supported shared libraries with the
11870 # GNU dynamic linker. Since this was broken with cross compilers,
11871 # most powerpc-linux boxes support dynamic linking these days and
11872 # people can always --disable-shared, the test was removed, and we
11873 # assume the GNU/Linux dynamic linker is in use.
11874 dynamic_linker='GNU/Linux ld.so'
11877 netbsd*)
11878 version_type=sunos
11879 need_lib_prefix=no
11880 need_version=no
11881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11884 dynamic_linker='NetBSD (a.out) ld.so'
11885 else
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 dynamic_linker='NetBSD ld.elf_so'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 hardcode_into_libs=yes
11895 newsos6)
11896 version_type=linux
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=yes
11902 *nto* | *qnx*)
11903 version_type=qnx
11904 need_lib_prefix=no
11905 need_version=no
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 shlibpath_overrides_runpath=no
11910 hardcode_into_libs=yes
11911 dynamic_linker='ldqnx.so'
11914 openbsd*)
11915 version_type=sunos
11916 sys_lib_dlsearch_path_spec="/usr/lib"
11917 need_lib_prefix=no
11918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11919 case $host_os in
11920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11921 *) need_version=no ;;
11922 esac
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11927 case $host_os in
11928 openbsd2.[89] | openbsd2.[89].*)
11929 shlibpath_overrides_runpath=no
11932 shlibpath_overrides_runpath=yes
11934 esac
11935 else
11936 shlibpath_overrides_runpath=yes
11940 os2*)
11941 libname_spec='$name'
11942 shrext_cmds=".dll"
11943 need_lib_prefix=no
11944 library_names_spec='$libname${shared_ext} $libname.a'
11945 dynamic_linker='OS/2 ld.exe'
11946 shlibpath_var=LIBPATH
11949 osf3* | osf4* | osf5*)
11950 version_type=osf
11951 need_lib_prefix=no
11952 need_version=no
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11960 rdos*)
11961 dynamic_linker=no
11964 solaris*)
11965 version_type=linux
11966 need_lib_prefix=no
11967 need_version=no
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=yes
11972 hardcode_into_libs=yes
11973 # ldd complains unless libraries are executable
11974 postinstall_cmds='chmod +x $lib'
11977 sunos4*)
11978 version_type=sunos
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=yes
11983 if test "$with_gnu_ld" = yes; then
11984 need_lib_prefix=no
11986 need_version=yes
11989 sysv4 | sysv4.3*)
11990 version_type=linux
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 case $host_vendor in
11995 sni)
11996 shlibpath_overrides_runpath=no
11997 need_lib_prefix=no
11998 runpath_var=LD_RUN_PATH
12000 siemens)
12001 need_lib_prefix=no
12003 motorola)
12004 need_lib_prefix=no
12005 need_version=no
12006 shlibpath_overrides_runpath=no
12007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12009 esac
12012 sysv4*MP*)
12013 if test -d /usr/nec ;then
12014 version_type=linux
12015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12016 soname_spec='$libname${shared_ext}.$major'
12017 shlibpath_var=LD_LIBRARY_PATH
12021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12022 version_type=freebsd-elf
12023 need_lib_prefix=no
12024 need_version=no
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 shlibpath_var=LD_LIBRARY_PATH
12028 shlibpath_overrides_runpath=yes
12029 hardcode_into_libs=yes
12030 if test "$with_gnu_ld" = yes; then
12031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12032 else
12033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12034 case $host_os in
12035 sco3.2v5*)
12036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12038 esac
12040 sys_lib_dlsearch_path_spec='/usr/lib'
12043 tpf*)
12044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12045 version_type=linux
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 shlibpath_overrides_runpath=no
12051 hardcode_into_libs=yes
12054 uts4*)
12055 version_type=linux
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12062 dynamic_linker=no
12064 esac
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12066 $as_echo "$dynamic_linker" >&6; }
12067 test "$dynamic_linker" = no && can_build_shared=no
12069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12070 if test "$GCC" = yes; then
12071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12074 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12077 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12174 hardcode_action=
12175 if test -n "$hardcode_libdir_flag_spec" ||
12176 test -n "$runpath_var" ||
12177 test "X$hardcode_automatic" = "Xyes" ; then
12179 # We can hardcode non-existent directories.
12180 if test "$hardcode_direct" != no &&
12181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12182 # have to relink, otherwise we might link with an installed library
12183 # when we should be linking with a yet-to-be-installed one
12184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12185 test "$hardcode_minus_L" != no; then
12186 # Linking always hardcodes the temporary library directory.
12187 hardcode_action=relink
12188 else
12189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12190 hardcode_action=immediate
12192 else
12193 # We cannot hardcode anything, or else we can only hardcode existing
12194 # directories.
12195 hardcode_action=unsupported
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12198 $as_echo "$hardcode_action" >&6; }
12200 if test "$hardcode_action" = relink ||
12201 test "$inherit_rpath" = yes; then
12202 # Fast installation is not supported
12203 enable_fast_install=no
12204 elif test "$shlibpath_overrides_runpath" = yes ||
12205 test "$enable_shared" = no; then
12206 # Fast installation is not necessary
12207 enable_fast_install=needless
12215 if test "x$enable_dlopen" != xyes; then
12216 enable_dlopen=unknown
12217 enable_dlopen_self=unknown
12218 enable_dlopen_self_static=unknown
12219 else
12220 lt_cv_dlopen=no
12221 lt_cv_dlopen_libs=
12223 case $host_os in
12224 beos*)
12225 lt_cv_dlopen="load_add_on"
12226 lt_cv_dlopen_libs=
12227 lt_cv_dlopen_self=yes
12230 mingw* | pw32* | cegcc*)
12231 lt_cv_dlopen="LoadLibrary"
12232 lt_cv_dlopen_libs=
12235 cygwin*)
12236 lt_cv_dlopen="dlopen"
12237 lt_cv_dlopen_libs=
12240 darwin*)
12241 # if libdl is installed we need to link against it
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12243 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-ldl $LIBS"
12249 if test x$gcc_no_link = xyes; then
12250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12255 /* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 char dlopen ();
12263 main ()
12265 return dlopen ();
12267 return 0;
12269 _ACEOF
12270 if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_dl_dlopen=yes
12272 else
12273 ac_cv_lib_dl_dlopen=no
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12281 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12283 else
12285 lt_cv_dlopen="dyld"
12286 lt_cv_dlopen_libs=
12287 lt_cv_dlopen_self=yes
12294 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12295 if test "x$ac_cv_func_shl_load" = x""yes; then :
12296 lt_cv_dlopen="shl_load"
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12299 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12300 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-ldld $LIBS"
12305 if test x$gcc_no_link = xyes; then
12306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char shl_load ();
12319 main ()
12321 return shl_load ();
12323 return 0;
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_dld_shl_load=yes
12328 else
12329 ac_cv_lib_dld_shl_load=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12337 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12339 else
12340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12341 if test "x$ac_cv_func_dlopen" = x""yes; then :
12342 lt_cv_dlopen="dlopen"
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-ldl $LIBS"
12351 if test x$gcc_no_link = xyes; then
12352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char dlopen ();
12365 main ()
12367 return dlopen ();
12369 return 0;
12371 _ACEOF
12372 if ac_fn_c_try_link "$LINENO"; then :
12373 ac_cv_lib_dl_dlopen=yes
12374 else
12375 ac_cv_lib_dl_dlopen=no
12377 rm -f core conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12382 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12383 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12387 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12388 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lsvld $LIBS"
12393 if test x$gcc_no_link = xyes; then
12394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char dlopen ();
12407 main ()
12409 return dlopen ();
12411 return 0;
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_lib_svld_dlopen=yes
12416 else
12417 ac_cv_lib_svld_dlopen=no
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12424 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12425 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12430 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-ldld $LIBS"
12435 if test x$gcc_no_link = xyes; then
12436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char dld_link ();
12449 main ()
12451 return dld_link ();
12453 return 0;
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457 ac_cv_lib_dld_dld_link=yes
12458 else
12459 ac_cv_lib_dld_dld_link=no
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12466 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12467 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12468 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12487 esac
12489 if test "x$lt_cv_dlopen" != xno; then
12490 enable_dlopen=yes
12491 else
12492 enable_dlopen=no
12495 case $lt_cv_dlopen in
12496 dlopen)
12497 save_CPPFLAGS="$CPPFLAGS"
12498 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12500 save_LDFLAGS="$LDFLAGS"
12501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12503 save_LIBS="$LIBS"
12504 LIBS="$lt_cv_dlopen_libs $LIBS"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12507 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12508 if test "${lt_cv_dlopen_self+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test "$cross_compiling" = yes; then :
12512 lt_cv_dlopen_self=cross
12513 else
12514 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12515 lt_status=$lt_dlunknown
12516 cat > conftest.$ac_ext <<_LT_EOF
12517 #line 12517 "configure"
12518 #include "confdefs.h"
12520 #if HAVE_DLFCN_H
12521 #include <dlfcn.h>
12522 #endif
12524 #include <stdio.h>
12526 #ifdef RTLD_GLOBAL
12527 # define LT_DLGLOBAL RTLD_GLOBAL
12528 #else
12529 # ifdef DL_GLOBAL
12530 # define LT_DLGLOBAL DL_GLOBAL
12531 # else
12532 # define LT_DLGLOBAL 0
12533 # endif
12534 #endif
12536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12537 find out it does not work in some platform. */
12538 #ifndef LT_DLLAZY_OR_NOW
12539 # ifdef RTLD_LAZY
12540 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12541 # else
12542 # ifdef DL_LAZY
12543 # define LT_DLLAZY_OR_NOW DL_LAZY
12544 # else
12545 # ifdef RTLD_NOW
12546 # define LT_DLLAZY_OR_NOW RTLD_NOW
12547 # else
12548 # ifdef DL_NOW
12549 # define LT_DLLAZY_OR_NOW DL_NOW
12550 # else
12551 # define LT_DLLAZY_OR_NOW 0
12552 # endif
12553 # endif
12554 # endif
12555 # endif
12556 #endif
12558 /* When -fvisbility=hidden is used, assume the code has been annotated
12559 correspondingly for the symbols needed. */
12560 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12561 void fnord () __attribute__((visibility("default")));
12562 #endif
12564 void fnord () { int i=42; }
12565 int main ()
12567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12568 int status = $lt_dlunknown;
12570 if (self)
12572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12573 else
12575 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12576 else puts (dlerror ());
12578 /* dlclose (self); */
12580 else
12581 puts (dlerror ());
12583 return status;
12585 _LT_EOF
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12587 (eval $ac_link) 2>&5
12588 ac_status=$?
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12591 (./conftest; exit; ) >&5 2>/dev/null
12592 lt_status=$?
12593 case x$lt_status in
12594 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12595 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12596 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12597 esac
12598 else :
12599 # compilation failed
12600 lt_cv_dlopen_self=no
12603 rm -fr conftest*
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12608 $as_echo "$lt_cv_dlopen_self" >&6; }
12610 if test "x$lt_cv_dlopen_self" = xyes; then
12611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12613 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12614 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 if test "$cross_compiling" = yes; then :
12618 lt_cv_dlopen_self_static=cross
12619 else
12620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12621 lt_status=$lt_dlunknown
12622 cat > conftest.$ac_ext <<_LT_EOF
12623 #line 12623 "configure"
12624 #include "confdefs.h"
12626 #if HAVE_DLFCN_H
12627 #include <dlfcn.h>
12628 #endif
12630 #include <stdio.h>
12632 #ifdef RTLD_GLOBAL
12633 # define LT_DLGLOBAL RTLD_GLOBAL
12634 #else
12635 # ifdef DL_GLOBAL
12636 # define LT_DLGLOBAL DL_GLOBAL
12637 # else
12638 # define LT_DLGLOBAL 0
12639 # endif
12640 #endif
12642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12643 find out it does not work in some platform. */
12644 #ifndef LT_DLLAZY_OR_NOW
12645 # ifdef RTLD_LAZY
12646 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12647 # else
12648 # ifdef DL_LAZY
12649 # define LT_DLLAZY_OR_NOW DL_LAZY
12650 # else
12651 # ifdef RTLD_NOW
12652 # define LT_DLLAZY_OR_NOW RTLD_NOW
12653 # else
12654 # ifdef DL_NOW
12655 # define LT_DLLAZY_OR_NOW DL_NOW
12656 # else
12657 # define LT_DLLAZY_OR_NOW 0
12658 # endif
12659 # endif
12660 # endif
12661 # endif
12662 #endif
12664 /* When -fvisbility=hidden is used, assume the code has been annotated
12665 correspondingly for the symbols needed. */
12666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12667 void fnord () __attribute__((visibility("default")));
12668 #endif
12670 void fnord () { int i=42; }
12671 int main ()
12673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12674 int status = $lt_dlunknown;
12676 if (self)
12678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12679 else
12681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682 else puts (dlerror ());
12684 /* dlclose (self); */
12686 else
12687 puts (dlerror ());
12689 return status;
12691 _LT_EOF
12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12693 (eval $ac_link) 2>&5
12694 ac_status=$?
12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12697 (./conftest; exit; ) >&5 2>/dev/null
12698 lt_status=$?
12699 case x$lt_status in
12700 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12701 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12702 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12703 esac
12704 else :
12705 # compilation failed
12706 lt_cv_dlopen_self_static=no
12709 rm -fr conftest*
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12714 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12717 CPPFLAGS="$save_CPPFLAGS"
12718 LDFLAGS="$save_LDFLAGS"
12719 LIBS="$save_LIBS"
12721 esac
12723 case $lt_cv_dlopen_self in
12724 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12725 *) enable_dlopen_self=unknown ;;
12726 esac
12728 case $lt_cv_dlopen_self_static in
12729 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12730 *) enable_dlopen_self_static=unknown ;;
12731 esac
12750 striplib=
12751 old_striplib=
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12753 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12754 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12755 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12756 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758 $as_echo "yes" >&6; }
12759 else
12760 # FIXME - insert some real tests, host_os isn't really good enough
12761 case $host_os in
12762 darwin*)
12763 if test -n "$STRIP" ; then
12764 striplib="$STRIP -x"
12765 old_striplib="$STRIP -S"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12767 $as_echo "yes" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12777 esac
12791 # Report which library types will actually be built
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12793 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12795 $as_echo "$can_build_shared" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12798 $as_echo_n "checking whether to build shared libraries... " >&6; }
12799 test "$can_build_shared" = "no" && enable_shared=no
12801 # On AIX, shared libraries and static libraries use the same namespace, and
12802 # are all built from PIC.
12803 case $host_os in
12804 aix3*)
12805 test "$enable_shared" = yes && enable_static=no
12806 if test -n "$RANLIB"; then
12807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12808 postinstall_cmds='$RANLIB $lib'
12812 aix[4-9]*)
12813 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12814 test "$enable_shared" = yes && enable_static=no
12817 esac
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12819 $as_echo "$enable_shared" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12822 $as_echo_n "checking whether to build static libraries... " >&6; }
12823 # Make sure either enable_shared or enable_static is yes.
12824 test "$enable_shared" = yes || enable_static=yes
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12826 $as_echo "$enable_static" >&6; }
12832 ac_ext=c
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12838 CC="$lt_save_CC"
12852 ac_config_commands="$ac_config_commands libtool"
12857 # Only expand once:
12863 case $host in
12864 *-cygwin* | *-mingw*)
12865 # 'host' will be top-level target in the case of a target lib,
12866 # we must compare to with_cross_host to decide if this is a native
12867 # or cross-compiler and select where to install dlls appropriately.
12868 if test -n "$with_cross_host" &&
12869 test x"$with_cross_host" != x"no"; then
12870 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12871 else
12872 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12876 lt_host_flags=
12878 esac
12884 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12886 # We need gfortran to compile parts of the library
12887 #AC_PROG_FC(gfortran)
12888 FC="$GFORTRAN"
12889 ac_ext=${ac_fc_srcext-f}
12890 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12891 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12893 if test -n "$ac_tool_prefix"; then
12894 for ac_prog in gfortran
12896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if test "${ac_cv_prog_FC+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$FC"; then
12904 ac_cv_prog_FC="$FC" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12913 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12923 FC=$ac_cv_prog_FC
12924 if test -n "$FC"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12926 $as_echo "$FC" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12933 test -n "$FC" && break
12934 done
12936 if test -z "$FC"; then
12937 ac_ct_FC=$FC
12938 for ac_prog in gfortran
12940 # Extract the first word of "$ac_prog", so it can be a program name with args.
12941 set dummy $ac_prog; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 if test -n "$ac_ct_FC"; then
12948 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12957 ac_cv_prog_ac_ct_FC="$ac_prog"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12961 done
12962 done
12963 IFS=$as_save_IFS
12967 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12968 if test -n "$ac_ct_FC"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12970 $as_echo "$ac_ct_FC" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12977 test -n "$ac_ct_FC" && break
12978 done
12980 if test "x$ac_ct_FC" = x; then
12981 FC=""
12982 else
12983 case $cross_compiling:$ac_tool_warned in
12984 yes:)
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12987 ac_tool_warned=yes ;;
12988 esac
12989 FC=$ac_ct_FC
12994 # Provide some information about the compiler.
12995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12996 set X $ac_compile
12997 ac_compiler=$2
12998 for ac_option in --version -v -V -qversion; do
12999 { { ac_try="$ac_compiler $ac_option >&5"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003 esac
13004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13005 $as_echo "$ac_try_echo"; } >&5
13006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13007 ac_status=$?
13008 if test -s conftest.err; then
13009 sed '10a\
13010 ... rest of stderr output deleted ...
13011 10q' conftest.err >conftest.er1
13012 cat conftest.er1 >&5
13013 rm -f conftest.er1 conftest.err
13015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016 test $ac_status = 0; }
13017 done
13018 rm -f a.out
13020 # If we don't use `.F' as extension, the preprocessor is not run on the
13021 # input file. (Note that this only needs to work for GNU compilers.)
13022 ac_save_ext=$ac_ext
13023 ac_ext=F
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13025 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13026 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 cat > conftest.$ac_ext <<_ACEOF
13030 program main
13031 #ifndef __GNUC__
13032 choke me
13033 #endif
13036 _ACEOF
13037 if ac_fn_fc_try_compile "$LINENO"; then :
13038 ac_compiler_gnu=yes
13039 else
13040 ac_compiler_gnu=no
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13047 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13048 ac_ext=$ac_save_ext
13049 ac_test_FCFLAGS=${FCFLAGS+set}
13050 ac_save_FCFLAGS=$FCFLAGS
13051 FCFLAGS=
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13053 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13054 if test "${ac_cv_prog_fc_g+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 FCFLAGS=-g
13058 cat > conftest.$ac_ext <<_ACEOF
13059 program main
13062 _ACEOF
13063 if ac_fn_fc_try_compile "$LINENO"; then :
13064 ac_cv_prog_fc_g=yes
13065 else
13066 ac_cv_prog_fc_g=no
13068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13072 $as_echo "$ac_cv_prog_fc_g" >&6; }
13073 if test "$ac_test_FCFLAGS" = set; then
13074 FCFLAGS=$ac_save_FCFLAGS
13075 elif test $ac_cv_prog_fc_g = yes; then
13076 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13077 FCFLAGS="-g -O2"
13078 else
13079 FCFLAGS="-g"
13081 else
13082 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13083 FCFLAGS="-O2"
13084 else
13085 FCFLAGS=
13089 ac_ext=c
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13095 ac_ext=${ac_fc_srcext-f}
13096 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13097 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13101 if test -z "$FC" || test "X$FC" = "Xno"; then
13102 _lt_disable_FC=yes
13105 archive_cmds_need_lc_FC=no
13106 allow_undefined_flag_FC=
13107 always_export_symbols_FC=no
13108 archive_expsym_cmds_FC=
13109 export_dynamic_flag_spec_FC=
13110 hardcode_direct_FC=no
13111 hardcode_direct_absolute_FC=no
13112 hardcode_libdir_flag_spec_FC=
13113 hardcode_libdir_flag_spec_ld_FC=
13114 hardcode_libdir_separator_FC=
13115 hardcode_minus_L_FC=no
13116 hardcode_automatic_FC=no
13117 inherit_rpath_FC=no
13118 module_cmds_FC=
13119 module_expsym_cmds_FC=
13120 link_all_deplibs_FC=unknown
13121 old_archive_cmds_FC=$old_archive_cmds
13122 reload_flag_FC=$reload_flag
13123 reload_cmds_FC=$reload_cmds
13124 no_undefined_flag_FC=
13125 whole_archive_flag_spec_FC=
13126 enable_shared_with_static_runtimes_FC=no
13128 # Source file extension for fc test sources.
13129 ac_ext=${ac_fc_srcext-f}
13131 # Object file extension for compiled fc test sources.
13132 objext=o
13133 objext_FC=$objext
13135 # No sense in running all these tests if we already determined that
13136 # the FC compiler isn't working. Some variables (like enable_shared)
13137 # are currently assumed to apply to all compilers on this platform,
13138 # and will be corrupted by setting them based on a non-working compiler.
13139 if test "$_lt_disable_FC" != yes; then
13140 # Code to be used in simple compile tests
13141 lt_simple_compile_test_code="\
13142 subroutine t
13143 return
13147 # Code to be used in simple link tests
13148 lt_simple_link_test_code="\
13149 program t
13153 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13160 # If no C compiler was specified, use CC.
13161 LTCC=${LTCC-"$CC"}
13163 # If no C compiler flags were specified, use CFLAGS.
13164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13166 # Allow CC to be a program name with arguments.
13167 compiler=$CC
13170 # save warnings/boilerplate of simple test code
13171 ac_outfile=conftest.$ac_objext
13172 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13174 _lt_compiler_boilerplate=`cat conftest.err`
13175 $RM conftest*
13177 ac_outfile=conftest.$ac_objext
13178 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13180 _lt_linker_boilerplate=`cat conftest.err`
13181 $RM -r conftest*
13184 # Allow CC to be a program name with arguments.
13185 lt_save_CC="$CC"
13186 lt_save_GCC=$GCC
13187 CC=${FC-"f95"}
13188 compiler=$CC
13189 GCC=$ac_cv_fc_compiler_gnu
13191 compiler_FC=$CC
13192 for cc_temp in $compiler""; do
13193 case $cc_temp in
13194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13196 \-*) ;;
13197 *) break;;
13198 esac
13199 done
13200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13203 if test -n "$compiler"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13205 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13207 $as_echo "$can_build_shared" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13210 $as_echo_n "checking whether to build shared libraries... " >&6; }
13211 test "$can_build_shared" = "no" && enable_shared=no
13213 # On AIX, shared libraries and static libraries use the same namespace, and
13214 # are all built from PIC.
13215 case $host_os in
13216 aix3*)
13217 test "$enable_shared" = yes && enable_static=no
13218 if test -n "$RANLIB"; then
13219 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13220 postinstall_cmds='$RANLIB $lib'
13223 aix[4-9]*)
13224 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13225 test "$enable_shared" = yes && enable_static=no
13228 esac
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13230 $as_echo "$enable_shared" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13233 $as_echo_n "checking whether to build static libraries... " >&6; }
13234 # Make sure either enable_shared or enable_static is yes.
13235 test "$enable_shared" = yes || enable_static=yes
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13237 $as_echo "$enable_static" >&6; }
13239 GCC_FC="$ac_cv_fc_compiler_gnu"
13240 LD_FC="$LD"
13242 ## CAVEAT EMPTOR:
13243 ## There is no encapsulation within the following macros, do not change
13244 ## the running order or otherwise move them around unless you know exactly
13245 ## what you are doing...
13246 # Dependencies to place before and after the object being linked:
13247 predep_objects_FC=
13248 postdep_objects_FC=
13249 predeps_FC=
13250 postdeps_FC=
13251 compiler_lib_search_path_FC=
13253 cat > conftest.$ac_ext <<_LT_EOF
13254 subroutine foo
13255 implicit none
13256 integer a
13258 return
13260 _LT_EOF
13262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13263 (eval $ac_compile) 2>&5
13264 ac_status=$?
13265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13266 test $ac_status = 0; }; then
13267 # Parse the compiler output and extract the necessary
13268 # objects, libraries and library flags.
13270 # Sentinel used to keep track of whether or not we are before
13271 # the conftest object file.
13272 pre_test_object_deps_done=no
13274 for p in `eval "$output_verbose_link_cmd"`; do
13275 case $p in
13277 -L* | -R* | -l*)
13278 # Some compilers place space between "-{L,R}" and the path.
13279 # Remove the space.
13280 if test $p = "-L" ||
13281 test $p = "-R"; then
13282 prev=$p
13283 continue
13284 else
13285 prev=
13288 if test "$pre_test_object_deps_done" = no; then
13289 case $p in
13290 -L* | -R*)
13291 # Internal compiler library paths should come after those
13292 # provided the user. The postdeps already come after the
13293 # user supplied libs so there is no need to process them.
13294 if test -z "$compiler_lib_search_path_FC"; then
13295 compiler_lib_search_path_FC="${prev}${p}"
13296 else
13297 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13300 # The "-l" case would never come before the object being
13301 # linked, so don't bother handling this case.
13302 esac
13303 else
13304 if test -z "$postdeps_FC"; then
13305 postdeps_FC="${prev}${p}"
13306 else
13307 postdeps_FC="${postdeps_FC} ${prev}${p}"
13312 *.$objext)
13313 # This assumes that the test object file only shows up
13314 # once in the compiler output.
13315 if test "$p" = "conftest.$objext"; then
13316 pre_test_object_deps_done=yes
13317 continue
13320 if test "$pre_test_object_deps_done" = no; then
13321 if test -z "$predep_objects_FC"; then
13322 predep_objects_FC="$p"
13323 else
13324 predep_objects_FC="$predep_objects_FC $p"
13326 else
13327 if test -z "$postdep_objects_FC"; then
13328 postdep_objects_FC="$p"
13329 else
13330 postdep_objects_FC="$postdep_objects_FC $p"
13335 *) ;; # Ignore the rest.
13337 esac
13338 done
13340 # Clean up.
13341 rm -f a.out a.exe
13342 else
13343 echo "libtool.m4: error: problem compiling FC test program"
13346 $RM -f confest.$objext
13348 # PORTME: override above test on systems where it is broken
13351 case " $postdeps_FC " in
13352 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13353 esac
13354 compiler_lib_search_dirs_FC=
13355 if test -n "${compiler_lib_search_path_FC}"; then
13356 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13389 lt_prog_compiler_wl_FC=
13390 lt_prog_compiler_pic_FC=
13391 lt_prog_compiler_static_FC=
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13394 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13396 if test "$GCC" = yes; then
13397 lt_prog_compiler_wl_FC='-Wl,'
13398 lt_prog_compiler_static_FC='-static'
13400 case $host_os in
13401 aix*)
13402 # All AIX code is PIC.
13403 if test "$host_cpu" = ia64; then
13404 # AIX 5 now supports IA64 processor
13405 lt_prog_compiler_static_FC='-Bstatic'
13407 lt_prog_compiler_pic_FC='-fPIC'
13410 amigaos*)
13411 case $host_cpu in
13412 powerpc)
13413 # see comment about AmigaOS4 .so support
13414 lt_prog_compiler_pic_FC='-fPIC'
13416 m68k)
13417 # FIXME: we need at least 68020 code to build shared libraries, but
13418 # adding the `-m68020' flag to GCC prevents building anything better,
13419 # like `-m68040'.
13420 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13422 esac
13425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13426 # PIC is the default for these OSes.
13429 mingw* | cygwin* | pw32* | os2* | cegcc*)
13430 # This hack is so that the source file can tell whether it is being
13431 # built for inclusion in a dll (and should export symbols for example).
13432 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13433 # (--disable-auto-import) libraries
13434 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13437 darwin* | rhapsody*)
13438 # PIC is the default on this platform
13439 # Common symbols not allowed in MH_DYLIB files
13440 lt_prog_compiler_pic_FC='-fno-common'
13443 haiku*)
13444 # PIC is the default for Haiku.
13445 # The "-static" flag exists, but is broken.
13446 lt_prog_compiler_static_FC=
13449 hpux*)
13450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13452 # sets the default TLS model and affects inlining.
13453 case $host_cpu in
13454 hppa*64*)
13455 # +Z the default
13458 lt_prog_compiler_pic_FC='-fPIC'
13460 esac
13463 interix[3-9]*)
13464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13465 # Instead, we relocate shared libraries at runtime.
13468 msdosdjgpp*)
13469 # Just because we use GCC doesn't mean we suddenly get shared libraries
13470 # on systems that don't support them.
13471 lt_prog_compiler_can_build_shared_FC=no
13472 enable_shared=no
13475 *nto* | *qnx*)
13476 # QNX uses GNU C++, but need to define -shared option too, otherwise
13477 # it will coredump.
13478 lt_prog_compiler_pic_FC='-fPIC -shared'
13481 sysv4*MP*)
13482 if test -d /usr/nec; then
13483 lt_prog_compiler_pic_FC=-Kconform_pic
13488 lt_prog_compiler_pic_FC='-fPIC'
13490 esac
13492 case $cc_basename in
13493 nvcc*) # Cuda Compiler Driver 2.2
13494 lt_prog_compiler_wl_FC='-Xlinker '
13495 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13497 esac
13498 else
13499 # PORTME Check for flag to pass linker flags through the system compiler.
13500 case $host_os in
13501 aix*)
13502 lt_prog_compiler_wl_FC='-Wl,'
13503 if test "$host_cpu" = ia64; then
13504 # AIX 5 now supports IA64 processor
13505 lt_prog_compiler_static_FC='-Bstatic'
13506 else
13507 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13511 mingw* | cygwin* | pw32* | os2* | cegcc*)
13512 # This hack is so that the source file can tell whether it is being
13513 # built for inclusion in a dll (and should export symbols for example).
13514 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13517 hpux9* | hpux10* | hpux11*)
13518 lt_prog_compiler_wl_FC='-Wl,'
13519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13520 # not for PA HP-UX.
13521 case $host_cpu in
13522 hppa*64*|ia64*)
13523 # +Z the default
13526 lt_prog_compiler_pic_FC='+Z'
13528 esac
13529 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13530 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13533 irix5* | irix6* | nonstopux*)
13534 lt_prog_compiler_wl_FC='-Wl,'
13535 # PIC (with -KPIC) is the default.
13536 lt_prog_compiler_static_FC='-non_shared'
13539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13540 case $cc_basename in
13541 # old Intel for x86_64 which still supported -KPIC.
13542 ecc*)
13543 lt_prog_compiler_wl_FC='-Wl,'
13544 lt_prog_compiler_pic_FC='-KPIC'
13545 lt_prog_compiler_static_FC='-static'
13547 # icc used to be incompatible with GCC.
13548 # ICC 10 doesn't accept -KPIC any more.
13549 icc* | ifort*)
13550 lt_prog_compiler_wl_FC='-Wl,'
13551 lt_prog_compiler_pic_FC='-fPIC'
13552 lt_prog_compiler_static_FC='-static'
13554 # Lahey Fortran 8.1.
13555 lf95*)
13556 lt_prog_compiler_wl_FC='-Wl,'
13557 lt_prog_compiler_pic_FC='--shared'
13558 lt_prog_compiler_static_FC='--static'
13560 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13561 # Portland Group compilers (*not* the Pentium gcc compiler,
13562 # which looks to be a dead project)
13563 lt_prog_compiler_wl_FC='-Wl,'
13564 lt_prog_compiler_pic_FC='-fpic'
13565 lt_prog_compiler_static_FC='-Bstatic'
13567 ccc*)
13568 lt_prog_compiler_wl_FC='-Wl,'
13569 # All Alpha code is PIC.
13570 lt_prog_compiler_static_FC='-non_shared'
13572 xl* | bgxl* | bgf* | mpixl*)
13573 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13574 lt_prog_compiler_wl_FC='-Wl,'
13575 lt_prog_compiler_pic_FC='-qpic'
13576 lt_prog_compiler_static_FC='-qstaticlink'
13579 case `$CC -V 2>&1 | sed 5q` in
13580 *Sun\ F* | *Sun*Fortran*)
13581 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13582 lt_prog_compiler_pic_FC='-KPIC'
13583 lt_prog_compiler_static_FC='-Bstatic'
13584 lt_prog_compiler_wl_FC=''
13586 *Sun\ C*)
13587 # Sun C 5.9
13588 lt_prog_compiler_pic_FC='-KPIC'
13589 lt_prog_compiler_static_FC='-Bstatic'
13590 lt_prog_compiler_wl_FC='-Wl,'
13592 esac
13594 esac
13597 newsos6)
13598 lt_prog_compiler_pic_FC='-KPIC'
13599 lt_prog_compiler_static_FC='-Bstatic'
13602 *nto* | *qnx*)
13603 # QNX uses GNU C++, but need to define -shared option too, otherwise
13604 # it will coredump.
13605 lt_prog_compiler_pic_FC='-fPIC -shared'
13608 osf3* | osf4* | osf5*)
13609 lt_prog_compiler_wl_FC='-Wl,'
13610 # All OSF/1 code is PIC.
13611 lt_prog_compiler_static_FC='-non_shared'
13614 rdos*)
13615 lt_prog_compiler_static_FC='-non_shared'
13618 solaris*)
13619 lt_prog_compiler_pic_FC='-KPIC'
13620 lt_prog_compiler_static_FC='-Bstatic'
13621 case $cc_basename in
13622 f77* | f90* | f95*)
13623 lt_prog_compiler_wl_FC='-Qoption ld ';;
13625 lt_prog_compiler_wl_FC='-Wl,';;
13626 esac
13629 sunos4*)
13630 lt_prog_compiler_wl_FC='-Qoption ld '
13631 lt_prog_compiler_pic_FC='-PIC'
13632 lt_prog_compiler_static_FC='-Bstatic'
13635 sysv4 | sysv4.2uw2* | sysv4.3*)
13636 lt_prog_compiler_wl_FC='-Wl,'
13637 lt_prog_compiler_pic_FC='-KPIC'
13638 lt_prog_compiler_static_FC='-Bstatic'
13641 sysv4*MP*)
13642 if test -d /usr/nec ;then
13643 lt_prog_compiler_pic_FC='-Kconform_pic'
13644 lt_prog_compiler_static_FC='-Bstatic'
13648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13649 lt_prog_compiler_wl_FC='-Wl,'
13650 lt_prog_compiler_pic_FC='-KPIC'
13651 lt_prog_compiler_static_FC='-Bstatic'
13654 unicos*)
13655 lt_prog_compiler_wl_FC='-Wl,'
13656 lt_prog_compiler_can_build_shared_FC=no
13659 uts4*)
13660 lt_prog_compiler_pic_FC='-pic'
13661 lt_prog_compiler_static_FC='-Bstatic'
13665 lt_prog_compiler_can_build_shared_FC=no
13667 esac
13670 case $host_os in
13671 # For platforms which do not support PIC, -DPIC is meaningless:
13672 *djgpp*)
13673 lt_prog_compiler_pic_FC=
13676 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13678 esac
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13680 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13685 # Check to make sure the PIC flag actually works.
13687 if test -n "$lt_prog_compiler_pic_FC"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13690 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 lt_cv_prog_compiler_pic_works_FC=no
13694 ac_outfile=conftest.$ac_objext
13695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13696 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13697 # Insert the option either (1) after the last *FLAGS variable, or
13698 # (2) before a word containing "conftest.", or (3) at the end.
13699 # Note that $ac_compile itself does not contain backslashes and begins
13700 # with a dollar sign (not a hyphen), so the echo should work correctly.
13701 # The option is referenced via a variable to avoid confusing sed.
13702 lt_compile=`echo "$ac_compile" | $SED \
13703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13705 -e 's:$: $lt_compiler_flag:'`
13706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13707 (eval "$lt_compile" 2>conftest.err)
13708 ac_status=$?
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 if (exit $ac_status) && test -s "$ac_outfile"; then
13712 # The compiler can only warn and ignore the option if not recognized
13713 # So say no if there are warnings other than the usual output.
13714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13717 lt_cv_prog_compiler_pic_works_FC=yes
13720 $RM conftest*
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13724 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13726 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13727 case $lt_prog_compiler_pic_FC in
13728 "" | " "*) ;;
13729 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13730 esac
13731 else
13732 lt_prog_compiler_pic_FC=
13733 lt_prog_compiler_can_build_shared_FC=no
13741 # Check to make sure the static flag actually works.
13743 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13745 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13746 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 lt_cv_prog_compiler_static_works_FC=no
13750 save_LDFLAGS="$LDFLAGS"
13751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13754 # The linker can only warn and ignore the option if not recognized
13755 # So say no if there are warnings
13756 if test -s conftest.err; then
13757 # Append any errors to the config.log.
13758 cat conftest.err 1>&5
13759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13761 if diff conftest.exp conftest.er2 >/dev/null; then
13762 lt_cv_prog_compiler_static_works_FC=yes
13764 else
13765 lt_cv_prog_compiler_static_works_FC=yes
13768 $RM -r conftest*
13769 LDFLAGS="$save_LDFLAGS"
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13773 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13775 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13777 else
13778 lt_prog_compiler_static_FC=
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13786 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 lt_cv_prog_compiler_c_o_FC=no
13790 $RM -r conftest 2>/dev/null
13791 mkdir conftest
13792 cd conftest
13793 mkdir out
13794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13796 lt_compiler_flag="-o out/conftest2.$ac_objext"
13797 # Insert the option either (1) after the last *FLAGS variable, or
13798 # (2) before a word containing "conftest.", or (3) at the end.
13799 # Note that $ac_compile itself does not contain backslashes and begins
13800 # with a dollar sign (not a hyphen), so the echo should work correctly.
13801 lt_compile=`echo "$ac_compile" | $SED \
13802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13804 -e 's:$: $lt_compiler_flag:'`
13805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13806 (eval "$lt_compile" 2>out/conftest.err)
13807 ac_status=$?
13808 cat out/conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13811 then
13812 # The compiler can only warn and ignore the option if not recognized
13813 # So say no if there are warnings
13814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13817 lt_cv_prog_compiler_c_o_FC=yes
13820 chmod u+w . 2>&5
13821 $RM conftest*
13822 # SGI C++ compiler will create directory out/ii_files/ for
13823 # template instantiation
13824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13825 $RM out/* && rmdir out
13826 cd ..
13827 $RM -r conftest
13828 $RM conftest*
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13832 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13838 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 lt_cv_prog_compiler_c_o_FC=no
13842 $RM -r conftest 2>/dev/null
13843 mkdir conftest
13844 cd conftest
13845 mkdir out
13846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13848 lt_compiler_flag="-o out/conftest2.$ac_objext"
13849 # Insert the option either (1) after the last *FLAGS variable, or
13850 # (2) before a word containing "conftest.", or (3) at the end.
13851 # Note that $ac_compile itself does not contain backslashes and begins
13852 # with a dollar sign (not a hyphen), so the echo should work correctly.
13853 lt_compile=`echo "$ac_compile" | $SED \
13854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13856 -e 's:$: $lt_compiler_flag:'`
13857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13858 (eval "$lt_compile" 2>out/conftest.err)
13859 ac_status=$?
13860 cat out/conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13863 then
13864 # The compiler can only warn and ignore the option if not recognized
13865 # So say no if there are warnings
13866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13869 lt_cv_prog_compiler_c_o_FC=yes
13872 chmod u+w . 2>&5
13873 $RM conftest*
13874 # SGI C++ compiler will create directory out/ii_files/ for
13875 # template instantiation
13876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13877 $RM out/* && rmdir out
13878 cd ..
13879 $RM -r conftest
13880 $RM conftest*
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13884 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13889 hard_links="nottested"
13890 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13891 # do not overwrite the value of need_locks provided by the user
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13893 $as_echo_n "checking if we can lock with hard links... " >&6; }
13894 hard_links=yes
13895 $RM conftest*
13896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13897 touch conftest.a
13898 ln conftest.a conftest.b 2>&5 || hard_links=no
13899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13901 $as_echo "$hard_links" >&6; }
13902 if test "$hard_links" = no; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13904 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13905 need_locks=warn
13907 else
13908 need_locks=no
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13914 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13916 runpath_var=
13917 allow_undefined_flag_FC=
13918 always_export_symbols_FC=no
13919 archive_cmds_FC=
13920 archive_expsym_cmds_FC=
13921 compiler_needs_object_FC=no
13922 enable_shared_with_static_runtimes_FC=no
13923 export_dynamic_flag_spec_FC=
13924 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13925 hardcode_automatic_FC=no
13926 hardcode_direct_FC=no
13927 hardcode_direct_absolute_FC=no
13928 hardcode_libdir_flag_spec_FC=
13929 hardcode_libdir_flag_spec_ld_FC=
13930 hardcode_libdir_separator_FC=
13931 hardcode_minus_L_FC=no
13932 hardcode_shlibpath_var_FC=unsupported
13933 inherit_rpath_FC=no
13934 link_all_deplibs_FC=unknown
13935 module_cmds_FC=
13936 module_expsym_cmds_FC=
13937 old_archive_from_new_cmds_FC=
13938 old_archive_from_expsyms_cmds_FC=
13939 thread_safe_flag_spec_FC=
13940 whole_archive_flag_spec_FC=
13941 # include_expsyms should be a list of space-separated symbols to be *always*
13942 # included in the symbol list
13943 include_expsyms_FC=
13944 # exclude_expsyms can be an extended regexp of symbols to exclude
13945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13947 # as well as any symbol that contains `d'.
13948 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13950 # platforms (ab)use it in PIC code, but their linkers get confused if
13951 # the symbol is explicitly referenced. Since portable code cannot
13952 # rely on this symbol name, it's probably fine to never include it in
13953 # preloaded symbol tables.
13954 # Exclude shared library initialization/finalization symbols.
13955 extract_expsyms_cmds=
13957 case $host_os in
13958 cygwin* | mingw* | pw32* | cegcc*)
13959 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13960 # When not using gcc, we currently assume that we are using
13961 # Microsoft Visual C++.
13962 if test "$GCC" != yes; then
13963 with_gnu_ld=no
13966 interix*)
13967 # we just hope/assume this is gcc and not c89 (= MSVC++)
13968 with_gnu_ld=yes
13970 openbsd*)
13971 with_gnu_ld=no
13973 esac
13975 ld_shlibs_FC=yes
13977 # On some targets, GNU ld is compatible enough with the native linker
13978 # that we're better off using the native interface for both.
13979 lt_use_gnu_ld_interface=no
13980 if test "$with_gnu_ld" = yes; then
13981 case $host_os in
13982 aix*)
13983 # The AIX port of GNU ld has always aspired to compatibility
13984 # with the native linker. However, as the warning in the GNU ld
13985 # block says, versions before 2.19.5* couldn't really create working
13986 # shared libraries, regardless of the interface used.
13987 case `$LD -v 2>&1` in
13988 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13989 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13990 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13992 lt_use_gnu_ld_interface=yes
13994 esac
13997 lt_use_gnu_ld_interface=yes
13999 esac
14002 if test "$lt_use_gnu_ld_interface" = yes; then
14003 # If archive_cmds runs LD, not CC, wlarc should be empty
14004 wlarc='${wl}'
14006 # Set some defaults for GNU ld with shared library support. These
14007 # are reset later if shared libraries are not supported. Putting them
14008 # here allows them to be overridden if necessary.
14009 runpath_var=LD_RUN_PATH
14010 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14011 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14012 # ancient GNU ld didn't support --whole-archive et. al.
14013 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14014 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14015 else
14016 whole_archive_flag_spec_FC=
14018 supports_anon_versioning=no
14019 case `$LD -v 2>&1` in
14020 *GNU\ gold*) supports_anon_versioning=yes ;;
14021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14024 *\ 2.11.*) ;; # other 2.11 versions
14025 *) supports_anon_versioning=yes ;;
14026 esac
14028 # See if GNU ld supports shared libraries.
14029 case $host_os in
14030 aix[3-9]*)
14031 # On AIX/PPC, the GNU linker is very broken
14032 if test "$host_cpu" != ia64; then
14033 ld_shlibs_FC=no
14034 cat <<_LT_EOF 1>&2
14036 *** Warning: the GNU linker, at least up to release 2.19, is reported
14037 *** to be unable to reliably create shared libraries on AIX.
14038 *** Therefore, libtool is disabling shared libraries support. If you
14039 *** really care for shared libraries, you may want to install binutils
14040 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14041 *** You will then need to restart the configuration process.
14043 _LT_EOF
14047 amigaos*)
14048 case $host_cpu in
14049 powerpc)
14050 # see comment about AmigaOS4 .so support
14051 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 archive_expsym_cmds_FC=''
14054 m68k)
14055 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)'
14056 hardcode_libdir_flag_spec_FC='-L$libdir'
14057 hardcode_minus_L_FC=yes
14059 esac
14062 beos*)
14063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14064 allow_undefined_flag_FC=unsupported
14065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14066 # support --undefined. This deserves some investigation. FIXME
14067 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 else
14069 ld_shlibs_FC=no
14073 cygwin* | mingw* | pw32* | cegcc*)
14074 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14075 # as there is no search path for DLLs.
14076 hardcode_libdir_flag_spec_FC='-L$libdir'
14077 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14078 allow_undefined_flag_FC=unsupported
14079 always_export_symbols_FC=no
14080 enable_shared_with_static_runtimes_FC=yes
14081 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14083 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14084 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14085 # If the export-symbols file already is a .def file (1st line
14086 # is EXPORTS), use it as is; otherwise, prepend...
14087 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14088 cp $export_symbols $output_objdir/$soname.def;
14089 else
14090 echo EXPORTS > $output_objdir/$soname.def;
14091 cat $export_symbols >> $output_objdir/$soname.def;
14093 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14094 else
14095 ld_shlibs_FC=no
14099 haiku*)
14100 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14101 link_all_deplibs_FC=yes
14104 interix[3-9]*)
14105 hardcode_direct_FC=no
14106 hardcode_shlibpath_var_FC=no
14107 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14108 export_dynamic_flag_spec_FC='${wl}-E'
14109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14110 # Instead, shared libraries are loaded at an image base (0x10000000 by
14111 # default) and relocated if they conflict, which is a slow very memory
14112 # consuming and fragmenting process. To avoid this, we pick a random,
14113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14115 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'
14116 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'
14119 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14120 tmp_diet=no
14121 if test "$host_os" = linux-dietlibc; then
14122 case $cc_basename in
14123 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14124 esac
14126 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14127 && test "$tmp_diet" = no
14128 then
14129 tmp_addflag=' $pic_flag'
14130 tmp_sharedflag='-shared'
14131 case $cc_basename,$host_cpu in
14132 pgcc*) # Portland Group C compiler
14133 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'
14134 tmp_addflag=' $pic_flag'
14136 pgf77* | pgf90* | pgf95* | pgfortran*)
14137 # Portland Group f77 and f90 compilers
14138 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'
14139 tmp_addflag=' $pic_flag -Mnomain' ;;
14140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14141 tmp_addflag=' -i_dynamic' ;;
14142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14143 tmp_addflag=' -i_dynamic -nofor_main' ;;
14144 ifc* | ifort*) # Intel Fortran compiler
14145 tmp_addflag=' -nofor_main' ;;
14146 lf95*) # Lahey Fortran 8.1
14147 whole_archive_flag_spec_FC=
14148 tmp_sharedflag='--shared' ;;
14149 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14150 tmp_sharedflag='-qmkshrobj'
14151 tmp_addflag= ;;
14152 nvcc*) # Cuda Compiler Driver 2.2
14153 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'
14154 compiler_needs_object_FC=yes
14156 esac
14157 case `$CC -V 2>&1 | sed 5q` in
14158 *Sun\ C*) # Sun C 5.9
14159 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'
14160 compiler_needs_object_FC=yes
14161 tmp_sharedflag='-G' ;;
14162 *Sun\ F*) # Sun Fortran 8.3
14163 tmp_sharedflag='-G' ;;
14164 esac
14165 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167 if test "x$supports_anon_versioning" = xyes; then
14168 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14170 echo "local: *; };" >> $output_objdir/$libname.ver~
14171 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14174 case $cc_basename in
14175 xlf* | bgf* | bgxlf* | mpixlf*)
14176 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14177 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14178 hardcode_libdir_flag_spec_FC=
14179 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14180 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14181 if test "x$supports_anon_versioning" = xyes; then
14182 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14184 echo "local: *; };" >> $output_objdir/$libname.ver~
14185 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14188 esac
14189 else
14190 ld_shlibs_FC=no
14194 netbsd*)
14195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14196 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14197 wlarc=
14198 else
14199 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14200 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14204 solaris*)
14205 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14206 ld_shlibs_FC=no
14207 cat <<_LT_EOF 1>&2
14209 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14210 *** create shared libraries on Solaris systems. Therefore, libtool
14211 *** is disabling shared libraries support. We urge you to upgrade GNU
14212 *** binutils to release 2.9.1 or newer. Another option is to modify
14213 *** your PATH or compiler configuration so that the native linker is
14214 *** used, and then restart.
14216 _LT_EOF
14217 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14218 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14220 else
14221 ld_shlibs_FC=no
14225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14226 case `$LD -v 2>&1` in
14227 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14228 ld_shlibs_FC=no
14229 cat <<_LT_EOF 1>&2
14231 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14232 *** reliably create shared libraries on SCO systems. Therefore, libtool
14233 *** is disabling shared libraries support. We urge you to upgrade GNU
14234 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14235 *** your PATH or compiler configuration so that the native linker is
14236 *** used, and then restart.
14238 _LT_EOF
14241 # For security reasons, it is highly recommended that you always
14242 # use absolute paths for naming shared libraries, and exclude the
14243 # DT_RUNPATH tag from executables and libraries. But doing so
14244 # requires that you compile everything twice, which is a pain.
14245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14246 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14247 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14248 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14249 else
14250 ld_shlibs_FC=no
14253 esac
14256 sunos4*)
14257 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14258 wlarc=
14259 hardcode_direct_FC=yes
14260 hardcode_shlibpath_var_FC=no
14264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14265 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14267 else
14268 ld_shlibs_FC=no
14271 esac
14273 if test "$ld_shlibs_FC" = no; then
14274 runpath_var=
14275 hardcode_libdir_flag_spec_FC=
14276 export_dynamic_flag_spec_FC=
14277 whole_archive_flag_spec_FC=
14279 else
14280 # PORTME fill in a description of your system's linker (not GNU ld)
14281 case $host_os in
14282 aix3*)
14283 allow_undefined_flag_FC=unsupported
14284 always_export_symbols_FC=yes
14285 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'
14286 # Note: this linker hardcodes the directories in LIBPATH if there
14287 # are no directories specified by -L.
14288 hardcode_minus_L_FC=yes
14289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14290 # Neither direct hardcoding nor static linking is supported with a
14291 # broken collect2.
14292 hardcode_direct_FC=unsupported
14296 aix[4-9]*)
14297 if test "$host_cpu" = ia64; then
14298 # On IA64, the linker does run time linking by default, so we don't
14299 # have to do anything special.
14300 aix_use_runtimelinking=no
14301 exp_sym_flag='-Bexport'
14302 no_entry_flag=""
14303 else
14304 # If we're using GNU nm, then we don't want the "-C" option.
14305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14306 # Also, AIX nm treats weak defined symbols like other global
14307 # defined symbols, whereas GNU nm marks them as "W".
14308 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14309 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'
14310 else
14311 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14313 aix_use_runtimelinking=no
14315 # Test if we are trying to use run time linking or normal
14316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14317 # need to do runtime linking.
14318 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14319 for ld_flag in $LDFLAGS; do
14320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14321 aix_use_runtimelinking=yes
14322 break
14324 done
14326 esac
14328 exp_sym_flag='-bexport'
14329 no_entry_flag='-bnoentry'
14332 # When large executables or shared objects are built, AIX ld can
14333 # have problems creating the table of contents. If linking a library
14334 # or program results in "error TOC overflow" add -mminimal-toc to
14335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14338 archive_cmds_FC=''
14339 hardcode_direct_FC=yes
14340 hardcode_direct_absolute_FC=yes
14341 hardcode_libdir_separator_FC=':'
14342 link_all_deplibs_FC=yes
14343 file_list_spec_FC='${wl}-f,'
14345 if test "$GCC" = yes; then
14346 case $host_os in aix4.[012]|aix4.[012].*)
14347 # We only want to do this on AIX 4.2 and lower, the check
14348 # below for broken collect2 doesn't work under 4.3+
14349 collect2name=`${CC} -print-prog-name=collect2`
14350 if test -f "$collect2name" &&
14351 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14352 then
14353 # We have reworked collect2
14355 else
14356 # We have old collect2
14357 hardcode_direct_FC=unsupported
14358 # It fails to find uninstalled libraries when the uninstalled
14359 # path is not listed in the libpath. Setting hardcode_minus_L
14360 # to unsupported forces relinking
14361 hardcode_minus_L_FC=yes
14362 hardcode_libdir_flag_spec_FC='-L$libdir'
14363 hardcode_libdir_separator_FC=
14366 esac
14367 shared_flag='-shared'
14368 if test "$aix_use_runtimelinking" = yes; then
14369 shared_flag="$shared_flag "'${wl}-G'
14371 else
14372 # not using gcc
14373 if test "$host_cpu" = ia64; then
14374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14375 # chokes on -Wl,-G. The following line is correct:
14376 shared_flag='-G'
14377 else
14378 if test "$aix_use_runtimelinking" = yes; then
14379 shared_flag='${wl}-G'
14380 else
14381 shared_flag='${wl}-bM:SRE'
14386 export_dynamic_flag_spec_FC='${wl}-bexpall'
14387 # It seems that -bexpall does not export symbols beginning with
14388 # underscore (_), so it is better to generate a list of symbols to export.
14389 always_export_symbols_FC=yes
14390 if test "$aix_use_runtimelinking" = yes; then
14391 # Warning - without using the other runtime loading flags (-brtl),
14392 # -berok will link without error, but may produce a broken library.
14393 allow_undefined_flag_FC='-berok'
14394 # Determine the default libpath from the value encoded in an
14395 # empty executable.
14396 if test x$gcc_no_link = xyes; then
14397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14399 cat > conftest.$ac_ext <<_ACEOF
14400 program main
14403 _ACEOF
14404 if ac_fn_fc_try_link "$LINENO"; then :
14406 lt_aix_libpath_sed='
14407 /Import File Strings/,/^$/ {
14408 /^0/ {
14409 s/^0 *\(.*\)$/\1/
14413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14414 # Check for a 64-bit object if we didn't find anything.
14415 if test -z "$aix_libpath"; then
14416 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14423 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14424 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"
14425 else
14426 if test "$host_cpu" = ia64; then
14427 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14428 allow_undefined_flag_FC="-z nodefs"
14429 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"
14430 else
14431 # Determine the default libpath from the value encoded in an
14432 # empty executable.
14433 if test x$gcc_no_link = xyes; then
14434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14436 cat > conftest.$ac_ext <<_ACEOF
14437 program main
14440 _ACEOF
14441 if ac_fn_fc_try_link "$LINENO"; then :
14443 lt_aix_libpath_sed='
14444 /Import File Strings/,/^$/ {
14445 /^0/ {
14446 s/^0 *\(.*\)$/\1/
14450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14451 # Check for a 64-bit object if we didn't find anything.
14452 if test -z "$aix_libpath"; then
14453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14456 rm -f core conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
14458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14460 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14461 # Warning - without using the other run time loading flags,
14462 # -berok will link without error, but may produce a broken library.
14463 no_undefined_flag_FC=' ${wl}-bernotok'
14464 allow_undefined_flag_FC=' ${wl}-berok'
14465 if test "$with_gnu_ld" = yes; then
14466 # We only use this code for GNU lds that support --whole-archive.
14467 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14468 else
14469 # Exported symbols can be pulled into shared objects from archives
14470 whole_archive_flag_spec_FC='$convenience'
14472 archive_cmds_need_lc_FC=yes
14473 # This is similar to how AIX traditionally builds its shared libraries.
14474 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'
14479 amigaos*)
14480 case $host_cpu in
14481 powerpc)
14482 # see comment about AmigaOS4 .so support
14483 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14484 archive_expsym_cmds_FC=''
14486 m68k)
14487 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)'
14488 hardcode_libdir_flag_spec_FC='-L$libdir'
14489 hardcode_minus_L_FC=yes
14491 esac
14494 bsdi[45]*)
14495 export_dynamic_flag_spec_FC=-rdynamic
14498 cygwin* | mingw* | pw32* | cegcc*)
14499 # When not using gcc, we currently assume that we are using
14500 # Microsoft Visual C++.
14501 # hardcode_libdir_flag_spec is actually meaningless, as there is
14502 # no search path for DLLs.
14503 hardcode_libdir_flag_spec_FC=' '
14504 allow_undefined_flag_FC=unsupported
14505 # Tell ltmain to make .lib files, not .a files.
14506 libext=lib
14507 # Tell ltmain to make .dll files, not .so files.
14508 shrext_cmds=".dll"
14509 # FIXME: Setting linknames here is a bad hack.
14510 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14511 # The linker will automatically build a .lib file if we build a DLL.
14512 old_archive_from_new_cmds_FC='true'
14513 # FIXME: Should let the user specify the lib program.
14514 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14515 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14516 enable_shared_with_static_runtimes_FC=yes
14519 darwin* | rhapsody*)
14522 archive_cmds_need_lc_FC=no
14523 hardcode_direct_FC=no
14524 hardcode_automatic_FC=yes
14525 hardcode_shlibpath_var_FC=unsupported
14526 if test "$lt_cv_ld_force_load" = "yes"; then
14527 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\"`'
14528 else
14529 whole_archive_flag_spec_FC=''
14531 link_all_deplibs_FC=yes
14532 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14533 case $cc_basename in
14534 ifort*) _lt_dar_can_shared=yes ;;
14535 *) _lt_dar_can_shared=$GCC ;;
14536 esac
14537 if test "$_lt_dar_can_shared" = "yes"; then
14538 output_verbose_link_cmd=func_echo_all
14539 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}"
14540 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14541 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}"
14542 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}"
14544 else
14545 ld_shlibs_FC=no
14550 dgux*)
14551 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14552 hardcode_libdir_flag_spec_FC='-L$libdir'
14553 hardcode_shlibpath_var_FC=no
14556 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14557 # support. Future versions do this automatically, but an explicit c++rt0.o
14558 # does not break anything, and helps significantly (at the cost of a little
14559 # extra space).
14560 freebsd2.2*)
14561 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14562 hardcode_libdir_flag_spec_FC='-R$libdir'
14563 hardcode_direct_FC=yes
14564 hardcode_shlibpath_var_FC=no
14567 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14568 freebsd2.*)
14569 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14570 hardcode_direct_FC=yes
14571 hardcode_minus_L_FC=yes
14572 hardcode_shlibpath_var_FC=no
14575 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14576 freebsd* | dragonfly*)
14577 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14578 hardcode_libdir_flag_spec_FC='-R$libdir'
14579 hardcode_direct_FC=yes
14580 hardcode_shlibpath_var_FC=no
14583 hpux9*)
14584 if test "$GCC" = yes; then
14585 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'
14586 else
14587 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'
14589 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14590 hardcode_libdir_separator_FC=:
14591 hardcode_direct_FC=yes
14593 # hardcode_minus_L: Not really in the search PATH,
14594 # but as the default location of the library.
14595 hardcode_minus_L_FC=yes
14596 export_dynamic_flag_spec_FC='${wl}-E'
14599 hpux10*)
14600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14601 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14602 else
14603 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14605 if test "$with_gnu_ld" = no; then
14606 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14607 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14608 hardcode_libdir_separator_FC=:
14609 hardcode_direct_FC=yes
14610 hardcode_direct_absolute_FC=yes
14611 export_dynamic_flag_spec_FC='${wl}-E'
14612 # hardcode_minus_L: Not really in the search PATH,
14613 # but as the default location of the library.
14614 hardcode_minus_L_FC=yes
14618 hpux11*)
14619 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14620 case $host_cpu in
14621 hppa*64*)
14622 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14624 ia64*)
14625 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14628 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14630 esac
14631 else
14632 case $host_cpu in
14633 hppa*64*)
14634 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14636 ia64*)
14637 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14640 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14642 esac
14644 if test "$with_gnu_ld" = no; then
14645 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14646 hardcode_libdir_separator_FC=:
14648 case $host_cpu in
14649 hppa*64*|ia64*)
14650 hardcode_direct_FC=no
14651 hardcode_shlibpath_var_FC=no
14654 hardcode_direct_FC=yes
14655 hardcode_direct_absolute_FC=yes
14656 export_dynamic_flag_spec_FC='${wl}-E'
14658 # hardcode_minus_L: Not really in the search PATH,
14659 # but as the default location of the library.
14660 hardcode_minus_L_FC=yes
14662 esac
14666 irix5* | irix6* | nonstopux*)
14667 if test "$GCC" = yes; then
14668 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'
14669 # Try to use the -exported_symbol ld option, if it does not
14670 # work, assume that -exports_file does not work either and
14671 # implicitly export all symbols.
14672 save_LDFLAGS="$LDFLAGS"
14673 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14674 if test x$gcc_no_link = xyes; then
14675 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14677 cat > conftest.$ac_ext <<_ACEOF
14678 int foo(void) {}
14679 _ACEOF
14680 if ac_fn_fc_try_link "$LINENO"; then :
14681 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'
14684 rm -f core conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LDFLAGS="$save_LDFLAGS"
14687 else
14688 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'
14689 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'
14691 archive_cmds_need_lc_FC='no'
14692 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14693 hardcode_libdir_separator_FC=:
14694 inherit_rpath_FC=yes
14695 link_all_deplibs_FC=yes
14698 netbsd*)
14699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14700 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14701 else
14702 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14704 hardcode_libdir_flag_spec_FC='-R$libdir'
14705 hardcode_direct_FC=yes
14706 hardcode_shlibpath_var_FC=no
14709 newsos6)
14710 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14711 hardcode_direct_FC=yes
14712 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14713 hardcode_libdir_separator_FC=:
14714 hardcode_shlibpath_var_FC=no
14717 *nto* | *qnx*)
14720 openbsd*)
14721 if test -f /usr/libexec/ld.so; then
14722 hardcode_direct_FC=yes
14723 hardcode_shlibpath_var_FC=no
14724 hardcode_direct_absolute_FC=yes
14725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14726 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14727 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14728 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14729 export_dynamic_flag_spec_FC='${wl}-E'
14730 else
14731 case $host_os in
14732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14733 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec_FC='-R$libdir'
14737 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14738 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14740 esac
14742 else
14743 ld_shlibs_FC=no
14747 os2*)
14748 hardcode_libdir_flag_spec_FC='-L$libdir'
14749 hardcode_minus_L_FC=yes
14750 allow_undefined_flag_FC=unsupported
14751 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'
14752 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14755 osf3*)
14756 if test "$GCC" = yes; then
14757 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14758 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'
14759 else
14760 allow_undefined_flag_FC=' -expect_unresolved \*'
14761 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'
14763 archive_cmds_need_lc_FC='no'
14764 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14765 hardcode_libdir_separator_FC=:
14768 osf4* | osf5*) # as osf3* with the addition of -msym flag
14769 if test "$GCC" = yes; then
14770 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14771 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'
14772 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14773 else
14774 allow_undefined_flag_FC=' -expect_unresolved \*'
14775 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'
14776 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~
14777 $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'
14779 # Both c and cxx compiler support -rpath directly
14780 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14782 archive_cmds_need_lc_FC='no'
14783 hardcode_libdir_separator_FC=:
14786 solaris*)
14787 no_undefined_flag_FC=' -z defs'
14788 if test "$GCC" = yes; then
14789 wlarc='${wl}'
14790 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14792 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14793 else
14794 case `$CC -V 2>&1` in
14795 *"Compilers 5.0"*)
14796 wlarc=''
14797 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14798 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14802 wlarc='${wl}'
14803 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14805 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14807 esac
14809 hardcode_libdir_flag_spec_FC='-R$libdir'
14810 hardcode_shlibpath_var_FC=no
14811 case $host_os in
14812 solaris2.[0-5] | solaris2.[0-5].*) ;;
14814 # The compiler driver will combine and reorder linker options,
14815 # but understands `-z linker_flag'. GCC discards it without `$wl',
14816 # but is careful enough not to reorder.
14817 # Supported since Solaris 2.6 (maybe 2.5.1?)
14818 if test "$GCC" = yes; then
14819 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14820 else
14821 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14824 esac
14825 link_all_deplibs_FC=yes
14828 sunos4*)
14829 if test "x$host_vendor" = xsequent; then
14830 # Use $CC to link under sequent, because it throws in some extra .o
14831 # files that make .init and .fini sections work.
14832 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14833 else
14834 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_libdir_flag_spec_FC='-L$libdir'
14837 hardcode_direct_FC=yes
14838 hardcode_minus_L_FC=yes
14839 hardcode_shlibpath_var_FC=no
14842 sysv4)
14843 case $host_vendor in
14844 sni)
14845 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14846 hardcode_direct_FC=yes # is this really true???
14848 siemens)
14849 ## LD is ld it makes a PLAMLIB
14850 ## CC just makes a GrossModule.
14851 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14852 reload_cmds_FC='$CC -r -o $output$reload_objs'
14853 hardcode_direct_FC=no
14855 motorola)
14856 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14859 esac
14860 runpath_var='LD_RUN_PATH'
14861 hardcode_shlibpath_var_FC=no
14864 sysv4.3*)
14865 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_shlibpath_var_FC=no
14867 export_dynamic_flag_spec_FC='-Bexport'
14870 sysv4*MP*)
14871 if test -d /usr/nec; then
14872 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 hardcode_shlibpath_var_FC=no
14874 runpath_var=LD_RUN_PATH
14875 hardcode_runpath_var=yes
14876 ld_shlibs_FC=yes
14880 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14881 no_undefined_flag_FC='${wl}-z,text'
14882 archive_cmds_need_lc_FC=no
14883 hardcode_shlibpath_var_FC=no
14884 runpath_var='LD_RUN_PATH'
14886 if test "$GCC" = yes; then
14887 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14889 else
14890 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14895 sysv5* | sco3.2v5* | sco5v6*)
14896 # Note: We can NOT use -z defs as we might desire, because we do not
14897 # link with -lc, and that would cause any symbols used from libc to
14898 # always be unresolved, which means just about no library would
14899 # ever link correctly. If we're not using GNU ld we use -z text
14900 # though, which does catch some bad symbols but isn't as heavy-handed
14901 # as -z defs.
14902 no_undefined_flag_FC='${wl}-z,text'
14903 allow_undefined_flag_FC='${wl}-z,nodefs'
14904 archive_cmds_need_lc_FC=no
14905 hardcode_shlibpath_var_FC=no
14906 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14907 hardcode_libdir_separator_FC=':'
14908 link_all_deplibs_FC=yes
14909 export_dynamic_flag_spec_FC='${wl}-Bexport'
14910 runpath_var='LD_RUN_PATH'
14912 if test "$GCC" = yes; then
14913 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915 else
14916 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 uts4*)
14922 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_FC='-L$libdir'
14924 hardcode_shlibpath_var_FC=no
14928 ld_shlibs_FC=no
14930 esac
14932 if test x$host_vendor = xsni; then
14933 case $host in
14934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14935 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14937 esac
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14942 $as_echo "$ld_shlibs_FC" >&6; }
14943 test "$ld_shlibs_FC" = no && can_build_shared=no
14945 with_gnu_ld_FC=$with_gnu_ld
14953 # Do we need to explicitly link libc?
14955 case "x$archive_cmds_need_lc_FC" in
14956 x|xyes)
14957 # Assume -lc should be added
14958 archive_cmds_need_lc_FC=yes
14960 if test "$enable_shared" = yes && test "$GCC" = yes; then
14961 case $archive_cmds_FC in
14962 *'~'*)
14963 # FIXME: we may have to deal with multi-command sequences.
14965 '$CC '*)
14966 # Test whether the compiler implicitly links with -lc since on some
14967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14968 # to ld, don't add -lc before -lgcc.
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14970 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14971 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 $RM conftest*
14975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14978 (eval $ac_compile) 2>&5
14979 ac_status=$?
14980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; } 2>conftest.err; then
14982 soname=conftest
14983 lib=conftest
14984 libobjs=conftest.$ac_objext
14985 deplibs=
14986 wl=$lt_prog_compiler_wl_FC
14987 pic_flag=$lt_prog_compiler_pic_FC
14988 compiler_flags=-v
14989 linker_flags=-v
14990 verstring=
14991 output_objdir=.
14992 libname=conftest
14993 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14994 allow_undefined_flag_FC=
14995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14996 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14997 ac_status=$?
14998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14999 test $ac_status = 0; }
15000 then
15001 lt_cv_archive_cmds_need_lc_FC=no
15002 else
15003 lt_cv_archive_cmds_need_lc_FC=yes
15005 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15006 else
15007 cat conftest.err 1>&5
15009 $RM conftest*
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15013 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15014 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15016 esac
15019 esac
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15085 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15087 library_names_spec=
15088 libname_spec='lib$name'
15089 soname_spec=
15090 shrext_cmds=".so"
15091 postinstall_cmds=
15092 postuninstall_cmds=
15093 finish_cmds=
15094 finish_eval=
15095 shlibpath_var=
15096 shlibpath_overrides_runpath=unknown
15097 version_type=none
15098 dynamic_linker="$host_os ld.so"
15099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15100 need_lib_prefix=unknown
15101 hardcode_into_libs=no
15103 # when you set need_version to no, make sure it does not cause -set_version
15104 # flags to be left without arguments
15105 need_version=unknown
15107 case $host_os in
15108 aix3*)
15109 version_type=linux
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15111 shlibpath_var=LIBPATH
15113 # AIX 3 has no versioning support, so we append a major version to the name.
15114 soname_spec='${libname}${release}${shared_ext}$major'
15117 aix[4-9]*)
15118 version_type=linux
15119 need_lib_prefix=no
15120 need_version=no
15121 hardcode_into_libs=yes
15122 if test "$host_cpu" = ia64; then
15123 # AIX 5 supports IA64
15124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 else
15127 # With GCC up to 2.95.x, collect2 would create an import file
15128 # for dependence libraries. The import file would start with
15129 # the line `#! .'. This would cause the generated library to
15130 # depend on `.', always an invalid library. This was fixed in
15131 # development snapshots of GCC prior to 3.0.
15132 case $host_os in
15133 aix4 | aix4.[01] | aix4.[01].*)
15134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15135 echo ' yes '
15136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15138 else
15139 can_build_shared=no
15142 esac
15143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15144 # soname into executable. Probably we can add versioning support to
15145 # collect2, so additional links can be useful in future.
15146 if test "$aix_use_runtimelinking" = yes; then
15147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15148 # instead of lib<name>.a to let people know that these are not
15149 # typical AIX shared libraries.
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 else
15152 # We preserve .a as extension for shared libraries through AIX4.2
15153 # and later when we are not doing run time linking.
15154 library_names_spec='${libname}${release}.a $libname.a'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15157 shlibpath_var=LIBPATH
15161 amigaos*)
15162 case $host_cpu in
15163 powerpc)
15164 # Since July 2007 AmigaOS4 officially supports .so libraries.
15165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 m68k)
15169 library_names_spec='$libname.ixlibrary $libname.a'
15170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15171 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'
15173 esac
15176 beos*)
15177 library_names_spec='${libname}${shared_ext}'
15178 dynamic_linker="$host_os ld.so"
15179 shlibpath_var=LIBRARY_PATH
15182 bsdi[45]*)
15183 version_type=linux
15184 need_version=no
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15191 # the default ld.so.conf also contains /usr/contrib/lib and
15192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15193 # libtool to hard-code these into programs
15196 cygwin* | mingw* | pw32* | cegcc*)
15197 version_type=windows
15198 shrext_cmds=".dll"
15199 need_version=no
15200 need_lib_prefix=no
15202 case $GCC,$host_os in
15203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15204 library_names_spec='$libname.dll.a'
15205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15206 postinstall_cmds='base_file=`basename \${file}`~
15207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15208 dldir=$destdir/`dirname \$dlpath`~
15209 test -d \$dldir || mkdir -p \$dldir~
15210 $install_prog $dir/$dlname \$dldir/$dlname~
15211 chmod a+x \$dldir/$dlname~
15212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15216 dlpath=$dir/\$dldll~
15217 $RM \$dlpath'
15218 shlibpath_overrides_runpath=yes
15220 case $host_os in
15221 cygwin*)
15222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226 mingw* | cegcc*)
15227 # MinGW DLLs use traditional 'lib' prefix
15228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15230 pw32*)
15231 # pw32 DLLs use 'pw' prefix rather than 'lib'
15232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234 esac
15238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15240 esac
15241 dynamic_linker='Win32 ld.exe'
15242 # FIXME: first we should search . and the directory the executable is in
15243 shlibpath_var=PATH
15246 darwin* | rhapsody*)
15247 dynamic_linker="$host_os dyld"
15248 version_type=darwin
15249 need_lib_prefix=no
15250 need_version=no
15251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15252 soname_spec='${libname}${release}${major}$shared_ext'
15253 shlibpath_overrides_runpath=yes
15254 shlibpath_var=DYLD_LIBRARY_PATH
15255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15260 dgux*)
15261 version_type=linux
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15269 freebsd* | dragonfly*)
15270 # DragonFly does not have aout. When/if they implement a new
15271 # versioning mechanism, adjust this.
15272 if test -x /usr/bin/objformat; then
15273 objformat=`/usr/bin/objformat`
15274 else
15275 case $host_os in
15276 freebsd[23].*) objformat=aout ;;
15277 *) objformat=elf ;;
15278 esac
15280 version_type=freebsd-$objformat
15281 case $version_type in
15282 freebsd-elf*)
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15284 need_version=no
15285 need_lib_prefix=no
15287 freebsd-*)
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15289 need_version=yes
15291 esac
15292 shlibpath_var=LD_LIBRARY_PATH
15293 case $host_os in
15294 freebsd2.*)
15295 shlibpath_overrides_runpath=yes
15297 freebsd3.[01]* | freebsdelf3.[01]*)
15298 shlibpath_overrides_runpath=yes
15299 hardcode_into_libs=yes
15301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15303 shlibpath_overrides_runpath=no
15304 hardcode_into_libs=yes
15306 *) # from 4.6 on, and DragonFly
15307 shlibpath_overrides_runpath=yes
15308 hardcode_into_libs=yes
15310 esac
15313 gnu*)
15314 version_type=linux
15315 need_lib_prefix=no
15316 need_version=no
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15320 hardcode_into_libs=yes
15323 haiku*)
15324 version_type=linux
15325 need_lib_prefix=no
15326 need_version=no
15327 dynamic_linker="$host_os runtime_loader"
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 shlibpath_var=LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15332 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15333 hardcode_into_libs=yes
15336 hpux9* | hpux10* | hpux11*)
15337 # Give a soname corresponding to the major version so that dld.sl refuses to
15338 # link against other versions.
15339 version_type=sunos
15340 need_lib_prefix=no
15341 need_version=no
15342 case $host_cpu in
15343 ia64*)
15344 shrext_cmds='.so'
15345 hardcode_into_libs=yes
15346 dynamic_linker="$host_os dld.so"
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 if test "X$HPUX_IA64_MODE" = X32; then
15352 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15353 else
15354 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15358 hppa*64*)
15359 shrext_cmds='.sl'
15360 hardcode_into_libs=yes
15361 dynamic_linker="$host_os dld.sl"
15362 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15370 shrext_cmds='.sl'
15371 dynamic_linker="$host_os dld.sl"
15372 shlibpath_var=SHLIB_PATH
15373 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15377 esac
15378 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15379 postinstall_cmds='chmod 555 $lib'
15380 # or fails outright, so override atomically:
15381 install_override_mode=555
15384 interix[3-9]*)
15385 version_type=linux
15386 need_lib_prefix=no
15387 need_version=no
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 shlibpath_overrides_runpath=no
15393 hardcode_into_libs=yes
15396 irix5* | irix6* | nonstopux*)
15397 case $host_os in
15398 nonstopux*) version_type=nonstopux ;;
15400 if test "$lt_cv_prog_gnu_ld" = yes; then
15401 version_type=linux
15402 else
15403 version_type=irix
15404 fi ;;
15405 esac
15406 need_lib_prefix=no
15407 need_version=no
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15410 case $host_os in
15411 irix5* | nonstopux*)
15412 libsuff= shlibsuff=
15415 case $LD in # libtool.m4 will add one of these switches to LD
15416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15417 libsuff= shlibsuff= libmagic=32-bit;;
15418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15419 libsuff=32 shlibsuff=N32 libmagic=N32;;
15420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15422 *) libsuff= shlibsuff= libmagic=never-match;;
15423 esac
15425 esac
15426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15427 shlibpath_overrides_runpath=no
15428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15430 hardcode_into_libs=yes
15433 # No shared lib support for Linux oldld, aout, or coff.
15434 linux*oldld* | linux*aout* | linux*coff*)
15435 dynamic_linker=no
15438 # This must be Linux ELF.
15439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15440 version_type=linux
15441 need_lib_prefix=no
15442 need_version=no
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=no
15449 # Some binutils ld are patched to set DT_RUNPATH
15450 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 lt_cv_shlibpath_overrides_runpath=no
15454 save_LDFLAGS=$LDFLAGS
15455 save_libdir=$libdir
15456 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15457 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15458 if test x$gcc_no_link = xyes; then
15459 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15461 cat > conftest.$ac_ext <<_ACEOF
15462 program main
15465 _ACEOF
15466 if ac_fn_fc_try_link "$LINENO"; then :
15467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15468 lt_cv_shlibpath_overrides_runpath=yes
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473 LDFLAGS=$save_LDFLAGS
15474 libdir=$save_libdir
15478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15480 # This implies no fast_install, which is unacceptable.
15481 # Some rework will be needed to allow for fast_install
15482 # before this can be enabled.
15483 hardcode_into_libs=yes
15485 # Append ld.so.conf contents to the search path
15486 if test -f /etc/ld.so.conf; then
15487 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' ' '`
15488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15491 # We used to test for /lib/ld.so.1 and disable shared libraries on
15492 # powerpc, because MkLinux only supported shared libraries with the
15493 # GNU dynamic linker. Since this was broken with cross compilers,
15494 # most powerpc-linux boxes support dynamic linking these days and
15495 # people can always --disable-shared, the test was removed, and we
15496 # assume the GNU/Linux dynamic linker is in use.
15497 dynamic_linker='GNU/Linux ld.so'
15500 netbsd*)
15501 version_type=sunos
15502 need_lib_prefix=no
15503 need_version=no
15504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15507 dynamic_linker='NetBSD (a.out) ld.so'
15508 else
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 dynamic_linker='NetBSD ld.elf_so'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 hardcode_into_libs=yes
15518 newsos6)
15519 version_type=linux
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15525 *nto* | *qnx*)
15526 version_type=qnx
15527 need_lib_prefix=no
15528 need_version=no
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=no
15533 hardcode_into_libs=yes
15534 dynamic_linker='ldqnx.so'
15537 openbsd*)
15538 version_type=sunos
15539 sys_lib_dlsearch_path_spec="/usr/lib"
15540 need_lib_prefix=no
15541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15542 case $host_os in
15543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15544 *) need_version=no ;;
15545 esac
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15550 case $host_os in
15551 openbsd2.[89] | openbsd2.[89].*)
15552 shlibpath_overrides_runpath=no
15555 shlibpath_overrides_runpath=yes
15557 esac
15558 else
15559 shlibpath_overrides_runpath=yes
15563 os2*)
15564 libname_spec='$name'
15565 shrext_cmds=".dll"
15566 need_lib_prefix=no
15567 library_names_spec='$libname${shared_ext} $libname.a'
15568 dynamic_linker='OS/2 ld.exe'
15569 shlibpath_var=LIBPATH
15572 osf3* | osf4* | osf5*)
15573 version_type=osf
15574 need_lib_prefix=no
15575 need_version=no
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15583 rdos*)
15584 dynamic_linker=no
15587 solaris*)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15595 hardcode_into_libs=yes
15596 # ldd complains unless libraries are executable
15597 postinstall_cmds='chmod +x $lib'
15600 sunos4*)
15601 version_type=sunos
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 if test "$with_gnu_ld" = yes; then
15607 need_lib_prefix=no
15609 need_version=yes
15612 sysv4 | sysv4.3*)
15613 version_type=linux
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 case $host_vendor in
15618 sni)
15619 shlibpath_overrides_runpath=no
15620 need_lib_prefix=no
15621 runpath_var=LD_RUN_PATH
15623 siemens)
15624 need_lib_prefix=no
15626 motorola)
15627 need_lib_prefix=no
15628 need_version=no
15629 shlibpath_overrides_runpath=no
15630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15632 esac
15635 sysv4*MP*)
15636 if test -d /usr/nec ;then
15637 version_type=linux
15638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15639 soname_spec='$libname${shared_ext}.$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15645 version_type=freebsd-elf
15646 need_lib_prefix=no
15647 need_version=no
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=yes
15652 hardcode_into_libs=yes
15653 if test "$with_gnu_ld" = yes; then
15654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15655 else
15656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15657 case $host_os in
15658 sco3.2v5*)
15659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15661 esac
15663 sys_lib_dlsearch_path_spec='/usr/lib'
15666 tpf*)
15667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15668 version_type=linux
15669 need_lib_prefix=no
15670 need_version=no
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 shlibpath_overrides_runpath=no
15674 hardcode_into_libs=yes
15677 uts4*)
15678 version_type=linux
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 shlibpath_var=LD_LIBRARY_PATH
15685 dynamic_linker=no
15687 esac
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15689 $as_echo "$dynamic_linker" >&6; }
15690 test "$dynamic_linker" = no && can_build_shared=no
15692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15693 if test "$GCC" = yes; then
15694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15697 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15698 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15700 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15701 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15743 hardcode_action_FC=
15744 if test -n "$hardcode_libdir_flag_spec_FC" ||
15745 test -n "$runpath_var_FC" ||
15746 test "X$hardcode_automatic_FC" = "Xyes" ; then
15748 # We can hardcode non-existent directories.
15749 if test "$hardcode_direct_FC" != no &&
15750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15751 # have to relink, otherwise we might link with an installed library
15752 # when we should be linking with a yet-to-be-installed one
15753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15754 test "$hardcode_minus_L_FC" != no; then
15755 # Linking always hardcodes the temporary library directory.
15756 hardcode_action_FC=relink
15757 else
15758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15759 hardcode_action_FC=immediate
15761 else
15762 # We cannot hardcode anything, or else we can only hardcode existing
15763 # directories.
15764 hardcode_action_FC=unsupported
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15767 $as_echo "$hardcode_action_FC" >&6; }
15769 if test "$hardcode_action_FC" = relink ||
15770 test "$inherit_rpath_FC" = yes; then
15771 # Fast installation is not supported
15772 enable_fast_install=no
15773 elif test "$shlibpath_overrides_runpath" = yes ||
15774 test "$enable_shared" = no; then
15775 # Fast installation is not necessary
15776 enable_fast_install=needless
15785 fi # test -n "$compiler"
15787 GCC=$lt_save_GCC
15788 CC="$lt_save_CC"
15789 fi # test "$_lt_disable_FC" != yes
15791 ac_ext=c
15792 ac_cpp='$CPP $CPPFLAGS'
15793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15799 # extra LD Flags which are required for targets
15800 case "${host}" in
15801 *-darwin*)
15802 # Darwin needs -single_module when linking libgfortran
15803 extra_ldflags_libgfortran=-Wl,-single_module
15805 esac
15808 # We need a working compiler at that point, otherwise give a clear
15809 # error message and bail out.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15812 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15813 ac_ext=${ac_fc_srcext-f}
15814 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15815 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15818 cat > conftest.$ac_ext <<_ACEOF
15820 program foo
15821 real, parameter :: bar = sin (12.34 / 2.5)
15822 end program foo
15823 _ACEOF
15824 if ac_fn_fc_try_compile "$LINENO"; then :
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826 $as_echo "yes" >&6; }
15827 else
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 ac_ext=c
15835 ac_cpp='$CPP $CPPFLAGS'
15836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15842 # Check whether --enable-largefile was given.
15843 if test "${enable_largefile+set}" = set; then :
15844 enableval=$enable_largefile;
15847 if test "$enable_largefile" != no; then
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15850 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15851 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 ac_cv_sys_largefile_CC=no
15855 if test "$GCC" != yes; then
15856 ac_save_CC=$CC
15857 while :; do
15858 # IRIX 6.2 and later do not support large files by default,
15859 # so use the C compiler's -n32 option if that helps.
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 #include <sys/types.h>
15863 /* Check that off_t can represent 2**63 - 1 correctly.
15864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15865 since some C++ compilers masquerading as C compilers
15866 incorrectly reject 9223372036854775807. */
15867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15869 && LARGE_OFF_T % 2147483647 == 1)
15870 ? 1 : -1];
15872 main ()
15876 return 0;
15878 _ACEOF
15879 if ac_fn_c_try_compile "$LINENO"; then :
15880 break
15882 rm -f core conftest.err conftest.$ac_objext
15883 CC="$CC -n32"
15884 if ac_fn_c_try_compile "$LINENO"; then :
15885 ac_cv_sys_largefile_CC=' -n32'; break
15887 rm -f core conftest.err conftest.$ac_objext
15888 break
15889 done
15890 CC=$ac_save_CC
15891 rm -f conftest.$ac_ext
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15895 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15896 if test "$ac_cv_sys_largefile_CC" != no; then
15897 CC=$CC$ac_cv_sys_largefile_CC
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15901 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15902 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 while :; do
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908 #include <sys/types.h>
15909 /* Check that off_t can represent 2**63 - 1 correctly.
15910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15911 since some C++ compilers masquerading as C compilers
15912 incorrectly reject 9223372036854775807. */
15913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15915 && LARGE_OFF_T % 2147483647 == 1)
15916 ? 1 : -1];
15918 main ()
15922 return 0;
15924 _ACEOF
15925 if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_sys_file_offset_bits=no; break
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931 #define _FILE_OFFSET_BITS 64
15932 #include <sys/types.h>
15933 /* Check that off_t can represent 2**63 - 1 correctly.
15934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15935 since some C++ compilers masquerading as C compilers
15936 incorrectly reject 9223372036854775807. */
15937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15939 && LARGE_OFF_T % 2147483647 == 1)
15940 ? 1 : -1];
15942 main ()
15946 return 0;
15948 _ACEOF
15949 if ac_fn_c_try_compile "$LINENO"; then :
15950 ac_cv_sys_file_offset_bits=64; break
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 ac_cv_sys_file_offset_bits=unknown
15954 break
15955 done
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15958 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15959 case $ac_cv_sys_file_offset_bits in #(
15960 no | unknown) ;;
15962 cat >>confdefs.h <<_ACEOF
15963 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15964 _ACEOF
15966 esac
15967 rm -rf conftest*
15968 if test $ac_cv_sys_file_offset_bits = unknown; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15970 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15971 if test "${ac_cv_sys_large_files+set}" = set; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 while :; do
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 #include <sys/types.h>
15978 /* Check that off_t can represent 2**63 - 1 correctly.
15979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15980 since some C++ compilers masquerading as C compilers
15981 incorrectly reject 9223372036854775807. */
15982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15984 && LARGE_OFF_T % 2147483647 == 1)
15985 ? 1 : -1];
15987 main ()
15991 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"; then :
15995 ac_cv_sys_large_files=no; break
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #define _LARGE_FILES 1
16001 #include <sys/types.h>
16002 /* Check that off_t can represent 2**63 - 1 correctly.
16003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16004 since some C++ compilers masquerading as C compilers
16005 incorrectly reject 9223372036854775807. */
16006 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16008 && LARGE_OFF_T % 2147483647 == 1)
16009 ? 1 : -1];
16011 main ()
16015 return 0;
16017 _ACEOF
16018 if ac_fn_c_try_compile "$LINENO"; then :
16019 ac_cv_sys_large_files=1; break
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 ac_cv_sys_large_files=unknown
16023 break
16024 done
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16027 $as_echo "$ac_cv_sys_large_files" >&6; }
16028 case $ac_cv_sys_large_files in #(
16029 no | unknown) ;;
16031 cat >>confdefs.h <<_ACEOF
16032 #define _LARGE_FILES $ac_cv_sys_large_files
16033 _ACEOF
16035 esac
16036 rm -rf conftest*
16041 # Types
16042 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16043 if test "x$ac_cv_type_off_t" = x""yes; then :
16045 else
16047 cat >>confdefs.h <<_ACEOF
16048 #define off_t long int
16049 _ACEOF
16054 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16055 if test "x$ac_cv_type_intptr_t" = x""yes; then :
16057 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16059 else
16060 for ac_type in 'int' 'long int' 'long long int'; do
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 $ac_includes_default
16065 main ()
16067 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16068 test_array [0] = 0
16071 return 0;
16073 _ACEOF
16074 if ac_fn_c_try_compile "$LINENO"; then :
16076 cat >>confdefs.h <<_ACEOF
16077 #define intptr_t $ac_type
16078 _ACEOF
16080 ac_type=
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 test -z "$ac_type" && break
16084 done
16089 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16090 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16092 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16094 else
16095 for ac_type in 'unsigned int' 'unsigned long int' \
16096 'unsigned long long int'; do
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099 $ac_includes_default
16101 main ()
16103 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16104 test_array [0] = 0
16107 return 0;
16109 _ACEOF
16110 if ac_fn_c_try_compile "$LINENO"; then :
16112 cat >>confdefs.h <<_ACEOF
16113 #define uintptr_t $ac_type
16114 _ACEOF
16116 ac_type=
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 test -z "$ac_type" && break
16120 done
16124 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16125 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16127 cat >>confdefs.h <<_ACEOF
16128 #define HAVE_PTRDIFF_T 1
16129 _ACEOF
16135 # check header files (we assume C89 is available, so don't check for that)
16139 for ac_header in $ac_header_list
16140 do :
16141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16144 eval as_val=\$$as_ac_Header
16145 if test "x$as_val" = x""yes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16148 _ACEOF
16152 done
16190 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16192 acx_cv_header_stdint=stddef.h
16193 acx_cv_header_stdint_kind="(already complete)"
16194 for i in stdint.h $inttype_headers; do
16195 unset ac_cv_type_uintptr_t
16196 unset ac_cv_type_uintmax_t
16197 unset ac_cv_type_int_least32_t
16198 unset ac_cv_type_int_fast32_t
16199 unset ac_cv_type_uint64_t
16200 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16201 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16202 #include <$i>
16204 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16205 acx_cv_header_stdint=$i
16206 else
16207 continue
16210 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16211 #include <$i>
16213 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16215 else
16216 acx_cv_header_stdint_kind="(mostly complete)"
16219 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16220 #include <$i>
16222 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16224 else
16225 acx_cv_header_stdint_kind="(mostly complete)"
16228 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16229 #include <$i>
16231 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16233 else
16234 acx_cv_header_stdint_kind="(mostly complete)"
16237 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16238 #include <$i>
16240 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16242 else
16243 acx_cv_header_stdint_kind="(lacks uint64_t)"
16246 break
16247 done
16248 if test "$acx_cv_header_stdint" = stddef.h; then
16249 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16250 for i in stdint.h $inttype_headers; do
16251 unset ac_cv_type_uintptr_t
16252 unset ac_cv_type_uint32_t
16253 unset ac_cv_type_uint64_t
16254 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16255 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16256 #include <$i>
16258 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16259 acx_cv_header_stdint=$i
16260 else
16261 continue
16264 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16265 #include <$i>
16267 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16271 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16272 #include <$i>
16274 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16278 break
16279 done
16281 if test "$acx_cv_header_stdint" = stddef.h; then
16282 acx_cv_header_stdint_kind="(u_intXX_t style)"
16283 for i in sys/types.h $inttype_headers; do
16284 unset ac_cv_type_u_int32_t
16285 unset ac_cv_type_u_int64_t
16286 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16287 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16288 #include <$i>
16290 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16291 acx_cv_header_stdint=$i
16292 else
16293 continue
16296 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16297 #include <$i>
16299 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16303 break
16304 done
16306 if test "$acx_cv_header_stdint" = stddef.h; then
16307 acx_cv_header_stdint_kind="(using manual detection)"
16310 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16311 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16312 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16313 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16314 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16316 # ----------------- Summarize what we found so far
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16319 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16321 case `$as_basename -- gstdint.h ||
16322 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16323 Xgstdint.h : 'X\(//\)$' \| \
16324 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16325 $as_echo X/gstdint.h |
16326 sed '/^.*\/\([^/][^/]*\)\/*$/{
16327 s//\1/
16330 /^X\/\(\/\/\)$/{
16331 s//\1/
16334 /^X\/\(\/\).*/{
16335 s//\1/
16338 s/.*/./; q'` in
16339 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16340 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16341 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16342 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16343 *) ;;
16344 esac
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16347 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16349 # ----------------- done included file, check C basic types --------
16351 # Lacking an uintptr_t? Test size of void *
16352 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16353 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16356 # This bug is HP SR number 8606223364.
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16358 $as_echo_n "checking size of void *... " >&6; }
16359 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16364 else
16365 if test "$ac_cv_type_void_p" = yes; then
16366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16368 { as_fn_set_status 77
16369 as_fn_error "cannot compute sizeof (void *)
16370 See \`config.log' for more details." "$LINENO" 5; }; }
16371 else
16372 ac_cv_sizeof_void_p=0
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16378 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16382 cat >>confdefs.h <<_ACEOF
16383 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16384 _ACEOF
16387 esac
16389 # Lacking an uint64_t? Test size of long
16390 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16391 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16394 # This bug is HP SR number 8606223364.
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16396 $as_echo_n "checking size of long... " >&6; }
16397 if test "${ac_cv_sizeof_long+set}" = set; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16402 else
16403 if test "$ac_cv_type_long" = yes; then
16404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16406 { as_fn_set_status 77
16407 as_fn_error "cannot compute sizeof (long)
16408 See \`config.log' for more details." "$LINENO" 5; }; }
16409 else
16410 ac_cv_sizeof_long=0
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16416 $as_echo "$ac_cv_sizeof_long" >&6; }
16420 cat >>confdefs.h <<_ACEOF
16421 #define SIZEOF_LONG $ac_cv_sizeof_long
16422 _ACEOF
16425 esac
16427 if test $acx_cv_header_stdint = stddef.h; then
16428 # Lacking a good header? Test size of everything and deduce all types.
16429 # The cast to long int works around a bug in the HP C Compiler
16430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16432 # This bug is HP SR number 8606223364.
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16434 $as_echo_n "checking size of int... " >&6; }
16435 if test "${ac_cv_sizeof_int+set}" = set; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16440 else
16441 if test "$ac_cv_type_int" = yes; then
16442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16444 { as_fn_set_status 77
16445 as_fn_error "cannot compute sizeof (int)
16446 See \`config.log' for more details." "$LINENO" 5; }; }
16447 else
16448 ac_cv_sizeof_int=0
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16454 $as_echo "$ac_cv_sizeof_int" >&6; }
16458 cat >>confdefs.h <<_ACEOF
16459 #define SIZEOF_INT $ac_cv_sizeof_int
16460 _ACEOF
16463 # The cast to long int works around a bug in the HP C Compiler
16464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16466 # This bug is HP SR number 8606223364.
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16468 $as_echo_n "checking size of short... " >&6; }
16469 if test "${ac_cv_sizeof_short+set}" = set; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16474 else
16475 if test "$ac_cv_type_short" = yes; then
16476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16478 { as_fn_set_status 77
16479 as_fn_error "cannot compute sizeof (short)
16480 See \`config.log' for more details." "$LINENO" 5; }; }
16481 else
16482 ac_cv_sizeof_short=0
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16488 $as_echo "$ac_cv_sizeof_short" >&6; }
16492 cat >>confdefs.h <<_ACEOF
16493 #define SIZEOF_SHORT $ac_cv_sizeof_short
16494 _ACEOF
16497 # The cast to long int works around a bug in the HP C Compiler
16498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16500 # This bug is HP SR number 8606223364.
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16502 $as_echo_n "checking size of char... " >&6; }
16503 if test "${ac_cv_sizeof_char+set}" = set; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16508 else
16509 if test "$ac_cv_type_char" = yes; then
16510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16512 { as_fn_set_status 77
16513 as_fn_error "cannot compute sizeof (char)
16514 See \`config.log' for more details." "$LINENO" 5; }; }
16515 else
16516 ac_cv_sizeof_char=0
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16522 $as_echo "$ac_cv_sizeof_char" >&6; }
16526 cat >>confdefs.h <<_ACEOF
16527 #define SIZEOF_CHAR $ac_cv_sizeof_char
16528 _ACEOF
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16533 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16534 case "$ac_cv_sizeof_char" in
16535 1) acx_cv_type_int8_t=char ;;
16536 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16537 esac
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16539 $as_echo "$acx_cv_type_int8_t" >&6; }
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16542 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16543 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16544 2:*) acx_cv_type_int16_t=int ;;
16545 *:2) acx_cv_type_int16_t=short ;;
16546 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16547 esac
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16549 $as_echo "$acx_cv_type_int16_t" >&6; }
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16552 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16553 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16554 4:*) acx_cv_type_int32_t=int ;;
16555 *:4) acx_cv_type_int32_t=long ;;
16556 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16557 esac
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16559 $as_echo "$acx_cv_type_int32_t" >&6; }
16562 # These tests are here to make the output prettier
16564 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16565 case "$ac_cv_sizeof_long" in
16566 8) acx_cv_type_int64_t=long ;;
16567 esac
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16569 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16571 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16574 # Now we can use the above types
16576 if test "$ac_cv_type_uintptr_t" != yes; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16578 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16579 case $ac_cv_sizeof_void_p in
16580 2) acx_cv_type_intptr_t=int16_t ;;
16581 4) acx_cv_type_intptr_t=int32_t ;;
16582 8) acx_cv_type_intptr_t=int64_t ;;
16583 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16584 esac
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16586 $as_echo "$acx_cv_type_intptr_t" >&6; }
16589 # ----------------- done all checks, emit header -------------
16590 ac_config_commands="$ac_config_commands gstdint.h"
16595 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16596 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16598 cat >>confdefs.h <<_ACEOF
16599 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16600 _ACEOF
16604 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16605 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16609 _ACEOF
16613 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16614 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_STRUCT_STAT_ST_RDEV 1
16618 _ACEOF
16624 case "${host}--x${with_newlib}" in
16625 mips*--xyes)
16626 hardwire_newlib=1;;
16627 nvptx*--xyes)
16628 hardwire_newlib=1;;
16629 esac
16631 # Check for library functions.
16632 if test "${hardwire_newlib:-0}" -eq 1; then
16633 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16634 # may not work correctly, because the compiler may not be able to
16635 # link executables.
16637 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16640 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16643 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16646 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16649 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16652 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16655 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16658 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16661 # At some point, we should differentiate between architectures
16662 # like x86, which have long double versions, and alpha/powerpc/etc.,
16663 # which don't. For the time being, punt.
16664 if test x"long_double_math_on_this_cpu" = x"yes"; then
16666 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16669 else
16673 for ac_func in $ac_func_list
16674 do :
16675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16677 eval as_val=\$$as_ac_var
16678 if test "x$as_val" = x""yes; then :
16679 cat >>confdefs.h <<_ACEOF
16680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16681 _ACEOF
16684 done
16789 # Check strerror_r, cannot be above as versions with two and three arguments exist
16791 ac_save_CFLAGS="$CFLAGS"
16792 CFLAGS="-Wimplicit-function-declaration -Werror"
16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h. */
16795 #define _GNU_SOURCE 1
16796 #include <string.h>
16797 #include <locale.h>
16799 main ()
16801 char s[128]; strerror_r(5, s, 128);
16803 return 0;
16805 _ACEOF
16806 if ac_fn_c_try_compile "$LINENO"; then :
16808 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 CFLAGS="$ac_save_CFLAGS"
16814 ac_save_CFLAGS="$CFLAGS"
16815 CFLAGS="-Wimplicit-function-declaration -Werror"
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #define _GNU_SOURCE 1
16819 #include <string.h>
16820 #include <locale.h>
16822 main ()
16824 char s[128]; strerror_r(5, s);
16826 return 0;
16828 _ACEOF
16829 if ac_fn_c_try_compile "$LINENO"; then :
16831 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835 CFLAGS="$ac_save_CFLAGS"
16838 # Check for C99 (and other IEEE) math functions
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16840 $as_echo_n "checking for sin in -lm... " >&6; }
16841 if test "${ac_cv_lib_m_sin+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16844 ac_check_lib_save_LIBS=$LIBS
16845 LIBS="-lm $LIBS"
16846 if test x$gcc_no_link = xyes; then
16847 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16852 /* Override any GCC internal prototype to avoid an error.
16853 Use char because int might match the return type of a GCC
16854 builtin and then its argument prototype would still apply. */
16855 #ifdef __cplusplus
16856 extern "C"
16857 #endif
16858 char sin ();
16860 main ()
16862 return sin ();
16864 return 0;
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"; then :
16868 ac_cv_lib_m_sin=yes
16869 else
16870 ac_cv_lib_m_sin=no
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16874 LIBS=$ac_check_lib_save_LIBS
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16877 $as_echo "$ac_cv_lib_m_sin" >&6; }
16878 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_LIBM 1
16881 _ACEOF
16883 LIBS="-lm $LIBS"
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16894 $as_echo_n "checking for acosf... " >&6; }
16895 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898 if test x$gcc_no_link = xyes; then
16899 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16904 #ifdef HAVE_COMPLEX_H
16905 #include <complex.h>
16906 #endif
16907 #ifdef HAVE_MATH_H
16908 #include <math.h>
16909 #endif
16911 int (*ptr)() = (int (*)())acosf;
16914 main ()
16916 return 0;
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 gcc_cv_math_func_acosf=yes
16922 else
16923 gcc_cv_math_func_acosf=no
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16929 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16930 if test $gcc_cv_math_func_acosf = yes; then
16932 cat >>confdefs.h <<_ACEOF
16933 #define HAVE_ACOSF 1
16934 _ACEOF
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16942 $as_echo_n "checking for acos... " >&6; }
16943 if test "${gcc_cv_math_func_acos+set}" = set; then :
16944 $as_echo_n "(cached) " >&6
16945 else
16946 if test x$gcc_no_link = xyes; then
16947 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16952 #ifdef HAVE_COMPLEX_H
16953 #include <complex.h>
16954 #endif
16955 #ifdef HAVE_MATH_H
16956 #include <math.h>
16957 #endif
16959 int (*ptr)() = (int (*)())acos;
16962 main ()
16964 return 0;
16967 _ACEOF
16968 if ac_fn_c_try_link "$LINENO"; then :
16969 gcc_cv_math_func_acos=yes
16970 else
16971 gcc_cv_math_func_acos=no
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16977 $as_echo "$gcc_cv_math_func_acos" >&6; }
16978 if test $gcc_cv_math_func_acos = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_ACOS 1
16982 _ACEOF
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16990 $as_echo_n "checking for acosl... " >&6; }
16991 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 if test x$gcc_no_link = xyes; then
16995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
17000 #ifdef HAVE_COMPLEX_H
17001 #include <complex.h>
17002 #endif
17003 #ifdef HAVE_MATH_H
17004 #include <math.h>
17005 #endif
17007 int (*ptr)() = (int (*)())acosl;
17010 main ()
17012 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 gcc_cv_math_func_acosl=yes
17018 else
17019 gcc_cv_math_func_acosl=no
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17025 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17026 if test $gcc_cv_math_func_acosl = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029 #define HAVE_ACOSL 1
17030 _ACEOF
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17038 $as_echo_n "checking for acoshf... " >&6; }
17039 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
17040 $as_echo_n "(cached) " >&6
17041 else
17042 if test x$gcc_no_link = xyes; then
17043 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17048 #ifdef HAVE_COMPLEX_H
17049 #include <complex.h>
17050 #endif
17051 #ifdef HAVE_MATH_H
17052 #include <math.h>
17053 #endif
17055 int (*ptr)() = (int (*)())acoshf;
17058 main ()
17060 return 0;
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065 gcc_cv_math_func_acoshf=yes
17066 else
17067 gcc_cv_math_func_acoshf=no
17069 rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17073 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17074 if test $gcc_cv_math_func_acoshf = yes; then
17076 cat >>confdefs.h <<_ACEOF
17077 #define HAVE_ACOSHF 1
17078 _ACEOF
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17086 $as_echo_n "checking for acosh... " >&6; }
17087 if test "${gcc_cv_math_func_acosh+set}" = set; then :
17088 $as_echo_n "(cached) " >&6
17089 else
17090 if test x$gcc_no_link = xyes; then
17091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17096 #ifdef HAVE_COMPLEX_H
17097 #include <complex.h>
17098 #endif
17099 #ifdef HAVE_MATH_H
17100 #include <math.h>
17101 #endif
17103 int (*ptr)() = (int (*)())acosh;
17106 main ()
17108 return 0;
17111 _ACEOF
17112 if ac_fn_c_try_link "$LINENO"; then :
17113 gcc_cv_math_func_acosh=yes
17114 else
17115 gcc_cv_math_func_acosh=no
17117 rm -f core conftest.err conftest.$ac_objext \
17118 conftest$ac_exeext conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17121 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17122 if test $gcc_cv_math_func_acosh = yes; then
17124 cat >>confdefs.h <<_ACEOF
17125 #define HAVE_ACOSH 1
17126 _ACEOF
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17134 $as_echo_n "checking for acoshl... " >&6; }
17135 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17136 $as_echo_n "(cached) " >&6
17137 else
17138 if test x$gcc_no_link = xyes; then
17139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17144 #ifdef HAVE_COMPLEX_H
17145 #include <complex.h>
17146 #endif
17147 #ifdef HAVE_MATH_H
17148 #include <math.h>
17149 #endif
17151 int (*ptr)() = (int (*)())acoshl;
17154 main ()
17156 return 0;
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161 gcc_cv_math_func_acoshl=yes
17162 else
17163 gcc_cv_math_func_acoshl=no
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17169 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17170 if test $gcc_cv_math_func_acoshl = yes; then
17172 cat >>confdefs.h <<_ACEOF
17173 #define HAVE_ACOSHL 1
17174 _ACEOF
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17182 $as_echo_n "checking for asinf... " >&6; }
17183 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 if test x$gcc_no_link = xyes; then
17187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17192 #ifdef HAVE_COMPLEX_H
17193 #include <complex.h>
17194 #endif
17195 #ifdef HAVE_MATH_H
17196 #include <math.h>
17197 #endif
17199 int (*ptr)() = (int (*)())asinf;
17202 main ()
17204 return 0;
17207 _ACEOF
17208 if ac_fn_c_try_link "$LINENO"; then :
17209 gcc_cv_math_func_asinf=yes
17210 else
17211 gcc_cv_math_func_asinf=no
17213 rm -f core conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17217 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17218 if test $gcc_cv_math_func_asinf = yes; then
17220 cat >>confdefs.h <<_ACEOF
17221 #define HAVE_ASINF 1
17222 _ACEOF
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17230 $as_echo_n "checking for asin... " >&6; }
17231 if test "${gcc_cv_math_func_asin+set}" = set; then :
17232 $as_echo_n "(cached) " >&6
17233 else
17234 if test x$gcc_no_link = xyes; then
17235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17240 #ifdef HAVE_COMPLEX_H
17241 #include <complex.h>
17242 #endif
17243 #ifdef HAVE_MATH_H
17244 #include <math.h>
17245 #endif
17247 int (*ptr)() = (int (*)())asin;
17250 main ()
17252 return 0;
17255 _ACEOF
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 gcc_cv_math_func_asin=yes
17258 else
17259 gcc_cv_math_func_asin=no
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17265 $as_echo "$gcc_cv_math_func_asin" >&6; }
17266 if test $gcc_cv_math_func_asin = yes; then
17268 cat >>confdefs.h <<_ACEOF
17269 #define HAVE_ASIN 1
17270 _ACEOF
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17278 $as_echo_n "checking for asinl... " >&6; }
17279 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17282 if test x$gcc_no_link = xyes; then
17283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17288 #ifdef HAVE_COMPLEX_H
17289 #include <complex.h>
17290 #endif
17291 #ifdef HAVE_MATH_H
17292 #include <math.h>
17293 #endif
17295 int (*ptr)() = (int (*)())asinl;
17298 main ()
17300 return 0;
17303 _ACEOF
17304 if ac_fn_c_try_link "$LINENO"; then :
17305 gcc_cv_math_func_asinl=yes
17306 else
17307 gcc_cv_math_func_asinl=no
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17313 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17314 if test $gcc_cv_math_func_asinl = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_ASINL 1
17318 _ACEOF
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17326 $as_echo_n "checking for asinhf... " >&6; }
17327 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330 if test x$gcc_no_link = xyes; then
17331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17336 #ifdef HAVE_COMPLEX_H
17337 #include <complex.h>
17338 #endif
17339 #ifdef HAVE_MATH_H
17340 #include <math.h>
17341 #endif
17343 int (*ptr)() = (int (*)())asinhf;
17346 main ()
17348 return 0;
17351 _ACEOF
17352 if ac_fn_c_try_link "$LINENO"; then :
17353 gcc_cv_math_func_asinhf=yes
17354 else
17355 gcc_cv_math_func_asinhf=no
17357 rm -f core conftest.err conftest.$ac_objext \
17358 conftest$ac_exeext conftest.$ac_ext
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17361 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17362 if test $gcc_cv_math_func_asinhf = yes; then
17364 cat >>confdefs.h <<_ACEOF
17365 #define HAVE_ASINHF 1
17366 _ACEOF
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17374 $as_echo_n "checking for asinh... " >&6; }
17375 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17376 $as_echo_n "(cached) " >&6
17377 else
17378 if test x$gcc_no_link = xyes; then
17379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17384 #ifdef HAVE_COMPLEX_H
17385 #include <complex.h>
17386 #endif
17387 #ifdef HAVE_MATH_H
17388 #include <math.h>
17389 #endif
17391 int (*ptr)() = (int (*)())asinh;
17394 main ()
17396 return 0;
17399 _ACEOF
17400 if ac_fn_c_try_link "$LINENO"; then :
17401 gcc_cv_math_func_asinh=yes
17402 else
17403 gcc_cv_math_func_asinh=no
17405 rm -f core conftest.err conftest.$ac_objext \
17406 conftest$ac_exeext conftest.$ac_ext
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17409 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17410 if test $gcc_cv_math_func_asinh = yes; then
17412 cat >>confdefs.h <<_ACEOF
17413 #define HAVE_ASINH 1
17414 _ACEOF
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17422 $as_echo_n "checking for asinhl... " >&6; }
17423 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426 if test x$gcc_no_link = xyes; then
17427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h. */
17432 #ifdef HAVE_COMPLEX_H
17433 #include <complex.h>
17434 #endif
17435 #ifdef HAVE_MATH_H
17436 #include <math.h>
17437 #endif
17439 int (*ptr)() = (int (*)())asinhl;
17442 main ()
17444 return 0;
17447 _ACEOF
17448 if ac_fn_c_try_link "$LINENO"; then :
17449 gcc_cv_math_func_asinhl=yes
17450 else
17451 gcc_cv_math_func_asinhl=no
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17457 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17458 if test $gcc_cv_math_func_asinhl = yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define HAVE_ASINHL 1
17462 _ACEOF
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17470 $as_echo_n "checking for atan2f... " >&6; }
17471 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17472 $as_echo_n "(cached) " >&6
17473 else
17474 if test x$gcc_no_link = xyes; then
17475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17480 #ifdef HAVE_COMPLEX_H
17481 #include <complex.h>
17482 #endif
17483 #ifdef HAVE_MATH_H
17484 #include <math.h>
17485 #endif
17487 int (*ptr)() = (int (*)())atan2f;
17490 main ()
17492 return 0;
17495 _ACEOF
17496 if ac_fn_c_try_link "$LINENO"; then :
17497 gcc_cv_math_func_atan2f=yes
17498 else
17499 gcc_cv_math_func_atan2f=no
17501 rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17505 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17506 if test $gcc_cv_math_func_atan2f = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define HAVE_ATAN2F 1
17510 _ACEOF
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17518 $as_echo_n "checking for atan2... " >&6; }
17519 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17520 $as_echo_n "(cached) " >&6
17521 else
17522 if test x$gcc_no_link = xyes; then
17523 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h. */
17528 #ifdef HAVE_COMPLEX_H
17529 #include <complex.h>
17530 #endif
17531 #ifdef HAVE_MATH_H
17532 #include <math.h>
17533 #endif
17535 int (*ptr)() = (int (*)())atan2;
17538 main ()
17540 return 0;
17543 _ACEOF
17544 if ac_fn_c_try_link "$LINENO"; then :
17545 gcc_cv_math_func_atan2=yes
17546 else
17547 gcc_cv_math_func_atan2=no
17549 rm -f core conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17553 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17554 if test $gcc_cv_math_func_atan2 = yes; then
17556 cat >>confdefs.h <<_ACEOF
17557 #define HAVE_ATAN2 1
17558 _ACEOF
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17566 $as_echo_n "checking for atan2l... " >&6; }
17567 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17568 $as_echo_n "(cached) " >&6
17569 else
17570 if test x$gcc_no_link = xyes; then
17571 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17576 #ifdef HAVE_COMPLEX_H
17577 #include <complex.h>
17578 #endif
17579 #ifdef HAVE_MATH_H
17580 #include <math.h>
17581 #endif
17583 int (*ptr)() = (int (*)())atan2l;
17586 main ()
17588 return 0;
17591 _ACEOF
17592 if ac_fn_c_try_link "$LINENO"; then :
17593 gcc_cv_math_func_atan2l=yes
17594 else
17595 gcc_cv_math_func_atan2l=no
17597 rm -f core conftest.err conftest.$ac_objext \
17598 conftest$ac_exeext conftest.$ac_ext
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17601 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17602 if test $gcc_cv_math_func_atan2l = yes; then
17604 cat >>confdefs.h <<_ACEOF
17605 #define HAVE_ATAN2L 1
17606 _ACEOF
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17614 $as_echo_n "checking for atanf... " >&6; }
17615 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17618 if test x$gcc_no_link = xyes; then
17619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17624 #ifdef HAVE_COMPLEX_H
17625 #include <complex.h>
17626 #endif
17627 #ifdef HAVE_MATH_H
17628 #include <math.h>
17629 #endif
17631 int (*ptr)() = (int (*)())atanf;
17634 main ()
17636 return 0;
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"; then :
17641 gcc_cv_math_func_atanf=yes
17642 else
17643 gcc_cv_math_func_atanf=no
17645 rm -f core conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17649 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17650 if test $gcc_cv_math_func_atanf = yes; then
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_ATANF 1
17654 _ACEOF
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17662 $as_echo_n "checking for atan... " >&6; }
17663 if test "${gcc_cv_math_func_atan+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 if test x$gcc_no_link = xyes; then
17667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17672 #ifdef HAVE_COMPLEX_H
17673 #include <complex.h>
17674 #endif
17675 #ifdef HAVE_MATH_H
17676 #include <math.h>
17677 #endif
17679 int (*ptr)() = (int (*)())atan;
17682 main ()
17684 return 0;
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 gcc_cv_math_func_atan=yes
17690 else
17691 gcc_cv_math_func_atan=no
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17697 $as_echo "$gcc_cv_math_func_atan" >&6; }
17698 if test $gcc_cv_math_func_atan = yes; then
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_ATAN 1
17702 _ACEOF
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17710 $as_echo_n "checking for atanl... " >&6; }
17711 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17713 else
17714 if test x$gcc_no_link = xyes; then
17715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17720 #ifdef HAVE_COMPLEX_H
17721 #include <complex.h>
17722 #endif
17723 #ifdef HAVE_MATH_H
17724 #include <math.h>
17725 #endif
17727 int (*ptr)() = (int (*)())atanl;
17730 main ()
17732 return 0;
17735 _ACEOF
17736 if ac_fn_c_try_link "$LINENO"; then :
17737 gcc_cv_math_func_atanl=yes
17738 else
17739 gcc_cv_math_func_atanl=no
17741 rm -f core conftest.err conftest.$ac_objext \
17742 conftest$ac_exeext conftest.$ac_ext
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17745 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17746 if test $gcc_cv_math_func_atanl = yes; then
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_ATANL 1
17750 _ACEOF
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17758 $as_echo_n "checking for atanhf... " >&6; }
17759 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 if test x$gcc_no_link = xyes; then
17763 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h. */
17768 #ifdef HAVE_COMPLEX_H
17769 #include <complex.h>
17770 #endif
17771 #ifdef HAVE_MATH_H
17772 #include <math.h>
17773 #endif
17775 int (*ptr)() = (int (*)())atanhf;
17778 main ()
17780 return 0;
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 gcc_cv_math_func_atanhf=yes
17786 else
17787 gcc_cv_math_func_atanhf=no
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17793 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17794 if test $gcc_cv_math_func_atanhf = yes; then
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_ATANHF 1
17798 _ACEOF
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17806 $as_echo_n "checking for atanh... " >&6; }
17807 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17808 $as_echo_n "(cached) " >&6
17809 else
17810 if test x$gcc_no_link = xyes; then
17811 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 #ifdef HAVE_COMPLEX_H
17817 #include <complex.h>
17818 #endif
17819 #ifdef HAVE_MATH_H
17820 #include <math.h>
17821 #endif
17823 int (*ptr)() = (int (*)())atanh;
17826 main ()
17828 return 0;
17831 _ACEOF
17832 if ac_fn_c_try_link "$LINENO"; then :
17833 gcc_cv_math_func_atanh=yes
17834 else
17835 gcc_cv_math_func_atanh=no
17837 rm -f core conftest.err conftest.$ac_objext \
17838 conftest$ac_exeext conftest.$ac_ext
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17841 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17842 if test $gcc_cv_math_func_atanh = yes; then
17844 cat >>confdefs.h <<_ACEOF
17845 #define HAVE_ATANH 1
17846 _ACEOF
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17854 $as_echo_n "checking for atanhl... " >&6; }
17855 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17857 else
17858 if test x$gcc_no_link = xyes; then
17859 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 #ifdef HAVE_COMPLEX_H
17865 #include <complex.h>
17866 #endif
17867 #ifdef HAVE_MATH_H
17868 #include <math.h>
17869 #endif
17871 int (*ptr)() = (int (*)())atanhl;
17874 main ()
17876 return 0;
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881 gcc_cv_math_func_atanhl=yes
17882 else
17883 gcc_cv_math_func_atanhl=no
17885 rm -f core conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17889 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17890 if test $gcc_cv_math_func_atanhl = yes; then
17892 cat >>confdefs.h <<_ACEOF
17893 #define HAVE_ATANHL 1
17894 _ACEOF
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17902 $as_echo_n "checking for cargf... " >&6; }
17903 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17904 $as_echo_n "(cached) " >&6
17905 else
17906 if test x$gcc_no_link = xyes; then
17907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17912 #ifdef HAVE_COMPLEX_H
17913 #include <complex.h>
17914 #endif
17915 #ifdef HAVE_MATH_H
17916 #include <math.h>
17917 #endif
17919 int (*ptr)() = (int (*)())cargf;
17922 main ()
17924 return 0;
17927 _ACEOF
17928 if ac_fn_c_try_link "$LINENO"; then :
17929 gcc_cv_math_func_cargf=yes
17930 else
17931 gcc_cv_math_func_cargf=no
17933 rm -f core conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17937 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17938 if test $gcc_cv_math_func_cargf = yes; then
17940 cat >>confdefs.h <<_ACEOF
17941 #define HAVE_CARGF 1
17942 _ACEOF
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17950 $as_echo_n "checking for carg... " >&6; }
17951 if test "${gcc_cv_math_func_carg+set}" = set; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 if test x$gcc_no_link = xyes; then
17955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 #ifdef HAVE_COMPLEX_H
17961 #include <complex.h>
17962 #endif
17963 #ifdef HAVE_MATH_H
17964 #include <math.h>
17965 #endif
17967 int (*ptr)() = (int (*)())carg;
17970 main ()
17972 return 0;
17975 _ACEOF
17976 if ac_fn_c_try_link "$LINENO"; then :
17977 gcc_cv_math_func_carg=yes
17978 else
17979 gcc_cv_math_func_carg=no
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17985 $as_echo "$gcc_cv_math_func_carg" >&6; }
17986 if test $gcc_cv_math_func_carg = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define HAVE_CARG 1
17990 _ACEOF
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17998 $as_echo_n "checking for cargl... " >&6; }
17999 if test "${gcc_cv_math_func_cargl+set}" = set; then :
18000 $as_echo_n "(cached) " >&6
18001 else
18002 if test x$gcc_no_link = xyes; then
18003 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18008 #ifdef HAVE_COMPLEX_H
18009 #include <complex.h>
18010 #endif
18011 #ifdef HAVE_MATH_H
18012 #include <math.h>
18013 #endif
18015 int (*ptr)() = (int (*)())cargl;
18018 main ()
18020 return 0;
18023 _ACEOF
18024 if ac_fn_c_try_link "$LINENO"; then :
18025 gcc_cv_math_func_cargl=yes
18026 else
18027 gcc_cv_math_func_cargl=no
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18033 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18034 if test $gcc_cv_math_func_cargl = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_CARGL 1
18038 _ACEOF
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18046 $as_echo_n "checking for ceilf... " >&6; }
18047 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
18048 $as_echo_n "(cached) " >&6
18049 else
18050 if test x$gcc_no_link = xyes; then
18051 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18056 #ifdef HAVE_COMPLEX_H
18057 #include <complex.h>
18058 #endif
18059 #ifdef HAVE_MATH_H
18060 #include <math.h>
18061 #endif
18063 int (*ptr)() = (int (*)())ceilf;
18066 main ()
18068 return 0;
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"; then :
18073 gcc_cv_math_func_ceilf=yes
18074 else
18075 gcc_cv_math_func_ceilf=no
18077 rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18081 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18082 if test $gcc_cv_math_func_ceilf = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_CEILF 1
18086 _ACEOF
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18094 $as_echo_n "checking for ceil... " >&6; }
18095 if test "${gcc_cv_math_func_ceil+set}" = set; then :
18096 $as_echo_n "(cached) " >&6
18097 else
18098 if test x$gcc_no_link = xyes; then
18099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18104 #ifdef HAVE_COMPLEX_H
18105 #include <complex.h>
18106 #endif
18107 #ifdef HAVE_MATH_H
18108 #include <math.h>
18109 #endif
18111 int (*ptr)() = (int (*)())ceil;
18114 main ()
18116 return 0;
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121 gcc_cv_math_func_ceil=yes
18122 else
18123 gcc_cv_math_func_ceil=no
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18129 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18130 if test $gcc_cv_math_func_ceil = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define HAVE_CEIL 1
18134 _ACEOF
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18142 $as_echo_n "checking for ceill... " >&6; }
18143 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18144 $as_echo_n "(cached) " >&6
18145 else
18146 if test x$gcc_no_link = xyes; then
18147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18152 #ifdef HAVE_COMPLEX_H
18153 #include <complex.h>
18154 #endif
18155 #ifdef HAVE_MATH_H
18156 #include <math.h>
18157 #endif
18159 int (*ptr)() = (int (*)())ceill;
18162 main ()
18164 return 0;
18167 _ACEOF
18168 if ac_fn_c_try_link "$LINENO"; then :
18169 gcc_cv_math_func_ceill=yes
18170 else
18171 gcc_cv_math_func_ceill=no
18173 rm -f core conftest.err conftest.$ac_objext \
18174 conftest$ac_exeext conftest.$ac_ext
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18177 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18178 if test $gcc_cv_math_func_ceill = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define HAVE_CEILL 1
18182 _ACEOF
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18190 $as_echo_n "checking for copysignf... " >&6; }
18191 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18192 $as_echo_n "(cached) " >&6
18193 else
18194 if test x$gcc_no_link = xyes; then
18195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18200 #ifdef HAVE_COMPLEX_H
18201 #include <complex.h>
18202 #endif
18203 #ifdef HAVE_MATH_H
18204 #include <math.h>
18205 #endif
18207 int (*ptr)() = (int (*)())copysignf;
18210 main ()
18212 return 0;
18215 _ACEOF
18216 if ac_fn_c_try_link "$LINENO"; then :
18217 gcc_cv_math_func_copysignf=yes
18218 else
18219 gcc_cv_math_func_copysignf=no
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18225 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18226 if test $gcc_cv_math_func_copysignf = yes; then
18228 cat >>confdefs.h <<_ACEOF
18229 #define HAVE_COPYSIGNF 1
18230 _ACEOF
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18238 $as_echo_n "checking for copysign... " >&6; }
18239 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18240 $as_echo_n "(cached) " >&6
18241 else
18242 if test x$gcc_no_link = xyes; then
18243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18248 #ifdef HAVE_COMPLEX_H
18249 #include <complex.h>
18250 #endif
18251 #ifdef HAVE_MATH_H
18252 #include <math.h>
18253 #endif
18255 int (*ptr)() = (int (*)())copysign;
18258 main ()
18260 return 0;
18263 _ACEOF
18264 if ac_fn_c_try_link "$LINENO"; then :
18265 gcc_cv_math_func_copysign=yes
18266 else
18267 gcc_cv_math_func_copysign=no
18269 rm -f core conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18273 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18274 if test $gcc_cv_math_func_copysign = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_COPYSIGN 1
18278 _ACEOF
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18286 $as_echo_n "checking for copysignl... " >&6; }
18287 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18289 else
18290 if test x$gcc_no_link = xyes; then
18291 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18296 #ifdef HAVE_COMPLEX_H
18297 #include <complex.h>
18298 #endif
18299 #ifdef HAVE_MATH_H
18300 #include <math.h>
18301 #endif
18303 int (*ptr)() = (int (*)())copysignl;
18306 main ()
18308 return 0;
18311 _ACEOF
18312 if ac_fn_c_try_link "$LINENO"; then :
18313 gcc_cv_math_func_copysignl=yes
18314 else
18315 gcc_cv_math_func_copysignl=no
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18321 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18322 if test $gcc_cv_math_func_copysignl = yes; then
18324 cat >>confdefs.h <<_ACEOF
18325 #define HAVE_COPYSIGNL 1
18326 _ACEOF
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18334 $as_echo_n "checking for cosf... " >&6; }
18335 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18336 $as_echo_n "(cached) " >&6
18337 else
18338 if test x$gcc_no_link = xyes; then
18339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 #ifdef HAVE_COMPLEX_H
18345 #include <complex.h>
18346 #endif
18347 #ifdef HAVE_MATH_H
18348 #include <math.h>
18349 #endif
18351 int (*ptr)() = (int (*)())cosf;
18354 main ()
18356 return 0;
18359 _ACEOF
18360 if ac_fn_c_try_link "$LINENO"; then :
18361 gcc_cv_math_func_cosf=yes
18362 else
18363 gcc_cv_math_func_cosf=no
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18369 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18370 if test $gcc_cv_math_func_cosf = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define HAVE_COSF 1
18374 _ACEOF
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18382 $as_echo_n "checking for cos... " >&6; }
18383 if test "${gcc_cv_math_func_cos+set}" = set; then :
18384 $as_echo_n "(cached) " >&6
18385 else
18386 if test x$gcc_no_link = xyes; then
18387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18392 #ifdef HAVE_COMPLEX_H
18393 #include <complex.h>
18394 #endif
18395 #ifdef HAVE_MATH_H
18396 #include <math.h>
18397 #endif
18399 int (*ptr)() = (int (*)())cos;
18402 main ()
18404 return 0;
18407 _ACEOF
18408 if ac_fn_c_try_link "$LINENO"; then :
18409 gcc_cv_math_func_cos=yes
18410 else
18411 gcc_cv_math_func_cos=no
18413 rm -f core conftest.err conftest.$ac_objext \
18414 conftest$ac_exeext conftest.$ac_ext
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18417 $as_echo "$gcc_cv_math_func_cos" >&6; }
18418 if test $gcc_cv_math_func_cos = yes; then
18420 cat >>confdefs.h <<_ACEOF
18421 #define HAVE_COS 1
18422 _ACEOF
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18430 $as_echo_n "checking for cosl... " >&6; }
18431 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18432 $as_echo_n "(cached) " >&6
18433 else
18434 if test x$gcc_no_link = xyes; then
18435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18440 #ifdef HAVE_COMPLEX_H
18441 #include <complex.h>
18442 #endif
18443 #ifdef HAVE_MATH_H
18444 #include <math.h>
18445 #endif
18447 int (*ptr)() = (int (*)())cosl;
18450 main ()
18452 return 0;
18455 _ACEOF
18456 if ac_fn_c_try_link "$LINENO"; then :
18457 gcc_cv_math_func_cosl=yes
18458 else
18459 gcc_cv_math_func_cosl=no
18461 rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18465 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18466 if test $gcc_cv_math_func_cosl = yes; then
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_COSL 1
18470 _ACEOF
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18478 $as_echo_n "checking for ccosf... " >&6; }
18479 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18480 $as_echo_n "(cached) " >&6
18481 else
18482 if test x$gcc_no_link = xyes; then
18483 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18488 #ifdef HAVE_COMPLEX_H
18489 #include <complex.h>
18490 #endif
18491 #ifdef HAVE_MATH_H
18492 #include <math.h>
18493 #endif
18495 int (*ptr)() = (int (*)())ccosf;
18498 main ()
18500 return 0;
18503 _ACEOF
18504 if ac_fn_c_try_link "$LINENO"; then :
18505 gcc_cv_math_func_ccosf=yes
18506 else
18507 gcc_cv_math_func_ccosf=no
18509 rm -f core conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18513 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18514 if test $gcc_cv_math_func_ccosf = yes; then
18516 cat >>confdefs.h <<_ACEOF
18517 #define HAVE_CCOSF 1
18518 _ACEOF
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18526 $as_echo_n "checking for ccos... " >&6; }
18527 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18528 $as_echo_n "(cached) " >&6
18529 else
18530 if test x$gcc_no_link = xyes; then
18531 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18536 #ifdef HAVE_COMPLEX_H
18537 #include <complex.h>
18538 #endif
18539 #ifdef HAVE_MATH_H
18540 #include <math.h>
18541 #endif
18543 int (*ptr)() = (int (*)())ccos;
18546 main ()
18548 return 0;
18551 _ACEOF
18552 if ac_fn_c_try_link "$LINENO"; then :
18553 gcc_cv_math_func_ccos=yes
18554 else
18555 gcc_cv_math_func_ccos=no
18557 rm -f core conftest.err conftest.$ac_objext \
18558 conftest$ac_exeext conftest.$ac_ext
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18561 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18562 if test $gcc_cv_math_func_ccos = yes; then
18564 cat >>confdefs.h <<_ACEOF
18565 #define HAVE_CCOS 1
18566 _ACEOF
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18574 $as_echo_n "checking for ccosl... " >&6; }
18575 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 if test x$gcc_no_link = xyes; then
18579 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18584 #ifdef HAVE_COMPLEX_H
18585 #include <complex.h>
18586 #endif
18587 #ifdef HAVE_MATH_H
18588 #include <math.h>
18589 #endif
18591 int (*ptr)() = (int (*)())ccosl;
18594 main ()
18596 return 0;
18599 _ACEOF
18600 if ac_fn_c_try_link "$LINENO"; then :
18601 gcc_cv_math_func_ccosl=yes
18602 else
18603 gcc_cv_math_func_ccosl=no
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext conftest.$ac_ext
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18609 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18610 if test $gcc_cv_math_func_ccosl = yes; then
18612 cat >>confdefs.h <<_ACEOF
18613 #define HAVE_CCOSL 1
18614 _ACEOF
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18622 $as_echo_n "checking for coshf... " >&6; }
18623 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18624 $as_echo_n "(cached) " >&6
18625 else
18626 if test x$gcc_no_link = xyes; then
18627 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18632 #ifdef HAVE_COMPLEX_H
18633 #include <complex.h>
18634 #endif
18635 #ifdef HAVE_MATH_H
18636 #include <math.h>
18637 #endif
18639 int (*ptr)() = (int (*)())coshf;
18642 main ()
18644 return 0;
18647 _ACEOF
18648 if ac_fn_c_try_link "$LINENO"; then :
18649 gcc_cv_math_func_coshf=yes
18650 else
18651 gcc_cv_math_func_coshf=no
18653 rm -f core conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18657 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18658 if test $gcc_cv_math_func_coshf = yes; then
18660 cat >>confdefs.h <<_ACEOF
18661 #define HAVE_COSHF 1
18662 _ACEOF
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18670 $as_echo_n "checking for cosh... " >&6; }
18671 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18672 $as_echo_n "(cached) " >&6
18673 else
18674 if test x$gcc_no_link = xyes; then
18675 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678 /* end confdefs.h. */
18680 #ifdef HAVE_COMPLEX_H
18681 #include <complex.h>
18682 #endif
18683 #ifdef HAVE_MATH_H
18684 #include <math.h>
18685 #endif
18687 int (*ptr)() = (int (*)())cosh;
18690 main ()
18692 return 0;
18695 _ACEOF
18696 if ac_fn_c_try_link "$LINENO"; then :
18697 gcc_cv_math_func_cosh=yes
18698 else
18699 gcc_cv_math_func_cosh=no
18701 rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18705 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18706 if test $gcc_cv_math_func_cosh = yes; then
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_COSH 1
18710 _ACEOF
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18718 $as_echo_n "checking for coshl... " >&6; }
18719 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18720 $as_echo_n "(cached) " >&6
18721 else
18722 if test x$gcc_no_link = xyes; then
18723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18728 #ifdef HAVE_COMPLEX_H
18729 #include <complex.h>
18730 #endif
18731 #ifdef HAVE_MATH_H
18732 #include <math.h>
18733 #endif
18735 int (*ptr)() = (int (*)())coshl;
18738 main ()
18740 return 0;
18743 _ACEOF
18744 if ac_fn_c_try_link "$LINENO"; then :
18745 gcc_cv_math_func_coshl=yes
18746 else
18747 gcc_cv_math_func_coshl=no
18749 rm -f core conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18753 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18754 if test $gcc_cv_math_func_coshl = yes; then
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_COSHL 1
18758 _ACEOF
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18766 $as_echo_n "checking for ccoshf... " >&6; }
18767 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 if test x$gcc_no_link = xyes; then
18771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18776 #ifdef HAVE_COMPLEX_H
18777 #include <complex.h>
18778 #endif
18779 #ifdef HAVE_MATH_H
18780 #include <math.h>
18781 #endif
18783 int (*ptr)() = (int (*)())ccoshf;
18786 main ()
18788 return 0;
18791 _ACEOF
18792 if ac_fn_c_try_link "$LINENO"; then :
18793 gcc_cv_math_func_ccoshf=yes
18794 else
18795 gcc_cv_math_func_ccoshf=no
18797 rm -f core conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18801 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18802 if test $gcc_cv_math_func_ccoshf = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define HAVE_CCOSHF 1
18806 _ACEOF
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18814 $as_echo_n "checking for ccosh... " >&6; }
18815 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 if test x$gcc_no_link = xyes; then
18819 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 #ifdef HAVE_COMPLEX_H
18825 #include <complex.h>
18826 #endif
18827 #ifdef HAVE_MATH_H
18828 #include <math.h>
18829 #endif
18831 int (*ptr)() = (int (*)())ccosh;
18834 main ()
18836 return 0;
18839 _ACEOF
18840 if ac_fn_c_try_link "$LINENO"; then :
18841 gcc_cv_math_func_ccosh=yes
18842 else
18843 gcc_cv_math_func_ccosh=no
18845 rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18849 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18850 if test $gcc_cv_math_func_ccosh = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853 #define HAVE_CCOSH 1
18854 _ACEOF
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18862 $as_echo_n "checking for ccoshl... " >&6; }
18863 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18864 $as_echo_n "(cached) " >&6
18865 else
18866 if test x$gcc_no_link = xyes; then
18867 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18872 #ifdef HAVE_COMPLEX_H
18873 #include <complex.h>
18874 #endif
18875 #ifdef HAVE_MATH_H
18876 #include <math.h>
18877 #endif
18879 int (*ptr)() = (int (*)())ccoshl;
18882 main ()
18884 return 0;
18887 _ACEOF
18888 if ac_fn_c_try_link "$LINENO"; then :
18889 gcc_cv_math_func_ccoshl=yes
18890 else
18891 gcc_cv_math_func_ccoshl=no
18893 rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18897 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18898 if test $gcc_cv_math_func_ccoshl = yes; then
18900 cat >>confdefs.h <<_ACEOF
18901 #define HAVE_CCOSHL 1
18902 _ACEOF
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18910 $as_echo_n "checking for expf... " >&6; }
18911 if test "${gcc_cv_math_func_expf+set}" = set; then :
18912 $as_echo_n "(cached) " >&6
18913 else
18914 if test x$gcc_no_link = xyes; then
18915 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18920 #ifdef HAVE_COMPLEX_H
18921 #include <complex.h>
18922 #endif
18923 #ifdef HAVE_MATH_H
18924 #include <math.h>
18925 #endif
18927 int (*ptr)() = (int (*)())expf;
18930 main ()
18932 return 0;
18935 _ACEOF
18936 if ac_fn_c_try_link "$LINENO"; then :
18937 gcc_cv_math_func_expf=yes
18938 else
18939 gcc_cv_math_func_expf=no
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18945 $as_echo "$gcc_cv_math_func_expf" >&6; }
18946 if test $gcc_cv_math_func_expf = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define HAVE_EXPF 1
18950 _ACEOF
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18958 $as_echo_n "checking for exp... " >&6; }
18959 if test "${gcc_cv_math_func_exp+set}" = set; then :
18960 $as_echo_n "(cached) " >&6
18961 else
18962 if test x$gcc_no_link = xyes; then
18963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18968 #ifdef HAVE_COMPLEX_H
18969 #include <complex.h>
18970 #endif
18971 #ifdef HAVE_MATH_H
18972 #include <math.h>
18973 #endif
18975 int (*ptr)() = (int (*)())exp;
18978 main ()
18980 return 0;
18983 _ACEOF
18984 if ac_fn_c_try_link "$LINENO"; then :
18985 gcc_cv_math_func_exp=yes
18986 else
18987 gcc_cv_math_func_exp=no
18989 rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18993 $as_echo "$gcc_cv_math_func_exp" >&6; }
18994 if test $gcc_cv_math_func_exp = yes; then
18996 cat >>confdefs.h <<_ACEOF
18997 #define HAVE_EXP 1
18998 _ACEOF
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19006 $as_echo_n "checking for expl... " >&6; }
19007 if test "${gcc_cv_math_func_expl+set}" = set; then :
19008 $as_echo_n "(cached) " >&6
19009 else
19010 if test x$gcc_no_link = xyes; then
19011 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19016 #ifdef HAVE_COMPLEX_H
19017 #include <complex.h>
19018 #endif
19019 #ifdef HAVE_MATH_H
19020 #include <math.h>
19021 #endif
19023 int (*ptr)() = (int (*)())expl;
19026 main ()
19028 return 0;
19031 _ACEOF
19032 if ac_fn_c_try_link "$LINENO"; then :
19033 gcc_cv_math_func_expl=yes
19034 else
19035 gcc_cv_math_func_expl=no
19037 rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19041 $as_echo "$gcc_cv_math_func_expl" >&6; }
19042 if test $gcc_cv_math_func_expl = yes; then
19044 cat >>confdefs.h <<_ACEOF
19045 #define HAVE_EXPL 1
19046 _ACEOF
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19054 $as_echo_n "checking for cexpf... " >&6; }
19055 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
19056 $as_echo_n "(cached) " >&6
19057 else
19058 if test x$gcc_no_link = xyes; then
19059 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h. */
19064 #ifdef HAVE_COMPLEX_H
19065 #include <complex.h>
19066 #endif
19067 #ifdef HAVE_MATH_H
19068 #include <math.h>
19069 #endif
19071 int (*ptr)() = (int (*)())cexpf;
19074 main ()
19076 return 0;
19079 _ACEOF
19080 if ac_fn_c_try_link "$LINENO"; then :
19081 gcc_cv_math_func_cexpf=yes
19082 else
19083 gcc_cv_math_func_cexpf=no
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19089 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19090 if test $gcc_cv_math_func_cexpf = yes; then
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_CEXPF 1
19094 _ACEOF
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19102 $as_echo_n "checking for cexp... " >&6; }
19103 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19104 $as_echo_n "(cached) " >&6
19105 else
19106 if test x$gcc_no_link = xyes; then
19107 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19112 #ifdef HAVE_COMPLEX_H
19113 #include <complex.h>
19114 #endif
19115 #ifdef HAVE_MATH_H
19116 #include <math.h>
19117 #endif
19119 int (*ptr)() = (int (*)())cexp;
19122 main ()
19124 return 0;
19127 _ACEOF
19128 if ac_fn_c_try_link "$LINENO"; then :
19129 gcc_cv_math_func_cexp=yes
19130 else
19131 gcc_cv_math_func_cexp=no
19133 rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19137 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19138 if test $gcc_cv_math_func_cexp = yes; then
19140 cat >>confdefs.h <<_ACEOF
19141 #define HAVE_CEXP 1
19142 _ACEOF
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19150 $as_echo_n "checking for cexpl... " >&6; }
19151 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19152 $as_echo_n "(cached) " >&6
19153 else
19154 if test x$gcc_no_link = xyes; then
19155 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19160 #ifdef HAVE_COMPLEX_H
19161 #include <complex.h>
19162 #endif
19163 #ifdef HAVE_MATH_H
19164 #include <math.h>
19165 #endif
19167 int (*ptr)() = (int (*)())cexpl;
19170 main ()
19172 return 0;
19175 _ACEOF
19176 if ac_fn_c_try_link "$LINENO"; then :
19177 gcc_cv_math_func_cexpl=yes
19178 else
19179 gcc_cv_math_func_cexpl=no
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19185 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19186 if test $gcc_cv_math_func_cexpl = yes; then
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_CEXPL 1
19190 _ACEOF
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19198 $as_echo_n "checking for fabsf... " >&6; }
19199 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19200 $as_echo_n "(cached) " >&6
19201 else
19202 if test x$gcc_no_link = xyes; then
19203 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19208 #ifdef HAVE_COMPLEX_H
19209 #include <complex.h>
19210 #endif
19211 #ifdef HAVE_MATH_H
19212 #include <math.h>
19213 #endif
19215 int (*ptr)() = (int (*)())fabsf;
19218 main ()
19220 return 0;
19223 _ACEOF
19224 if ac_fn_c_try_link "$LINENO"; then :
19225 gcc_cv_math_func_fabsf=yes
19226 else
19227 gcc_cv_math_func_fabsf=no
19229 rm -f core conftest.err conftest.$ac_objext \
19230 conftest$ac_exeext conftest.$ac_ext
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19233 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19234 if test $gcc_cv_math_func_fabsf = yes; then
19236 cat >>confdefs.h <<_ACEOF
19237 #define HAVE_FABSF 1
19238 _ACEOF
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19246 $as_echo_n "checking for fabs... " >&6; }
19247 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19248 $as_echo_n "(cached) " >&6
19249 else
19250 if test x$gcc_no_link = xyes; then
19251 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19256 #ifdef HAVE_COMPLEX_H
19257 #include <complex.h>
19258 #endif
19259 #ifdef HAVE_MATH_H
19260 #include <math.h>
19261 #endif
19263 int (*ptr)() = (int (*)())fabs;
19266 main ()
19268 return 0;
19271 _ACEOF
19272 if ac_fn_c_try_link "$LINENO"; then :
19273 gcc_cv_math_func_fabs=yes
19274 else
19275 gcc_cv_math_func_fabs=no
19277 rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19281 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19282 if test $gcc_cv_math_func_fabs = yes; then
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_FABS 1
19286 _ACEOF
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19294 $as_echo_n "checking for fabsl... " >&6; }
19295 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19296 $as_echo_n "(cached) " >&6
19297 else
19298 if test x$gcc_no_link = xyes; then
19299 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19304 #ifdef HAVE_COMPLEX_H
19305 #include <complex.h>
19306 #endif
19307 #ifdef HAVE_MATH_H
19308 #include <math.h>
19309 #endif
19311 int (*ptr)() = (int (*)())fabsl;
19314 main ()
19316 return 0;
19319 _ACEOF
19320 if ac_fn_c_try_link "$LINENO"; then :
19321 gcc_cv_math_func_fabsl=yes
19322 else
19323 gcc_cv_math_func_fabsl=no
19325 rm -f core conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19329 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19330 if test $gcc_cv_math_func_fabsl = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333 #define HAVE_FABSL 1
19334 _ACEOF
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19342 $as_echo_n "checking for cabsf... " >&6; }
19343 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 if test x$gcc_no_link = xyes; then
19347 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19352 #ifdef HAVE_COMPLEX_H
19353 #include <complex.h>
19354 #endif
19355 #ifdef HAVE_MATH_H
19356 #include <math.h>
19357 #endif
19359 int (*ptr)() = (int (*)())cabsf;
19362 main ()
19364 return 0;
19367 _ACEOF
19368 if ac_fn_c_try_link "$LINENO"; then :
19369 gcc_cv_math_func_cabsf=yes
19370 else
19371 gcc_cv_math_func_cabsf=no
19373 rm -f core conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19377 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19378 if test $gcc_cv_math_func_cabsf = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define HAVE_CABSF 1
19382 _ACEOF
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19390 $as_echo_n "checking for cabs... " >&6; }
19391 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19392 $as_echo_n "(cached) " >&6
19393 else
19394 if test x$gcc_no_link = xyes; then
19395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 #ifdef HAVE_COMPLEX_H
19401 #include <complex.h>
19402 #endif
19403 #ifdef HAVE_MATH_H
19404 #include <math.h>
19405 #endif
19407 int (*ptr)() = (int (*)())cabs;
19410 main ()
19412 return 0;
19415 _ACEOF
19416 if ac_fn_c_try_link "$LINENO"; then :
19417 gcc_cv_math_func_cabs=yes
19418 else
19419 gcc_cv_math_func_cabs=no
19421 rm -f core conftest.err conftest.$ac_objext \
19422 conftest$ac_exeext conftest.$ac_ext
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19425 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19426 if test $gcc_cv_math_func_cabs = yes; then
19428 cat >>confdefs.h <<_ACEOF
19429 #define HAVE_CABS 1
19430 _ACEOF
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19438 $as_echo_n "checking for cabsl... " >&6; }
19439 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442 if test x$gcc_no_link = xyes; then
19443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19448 #ifdef HAVE_COMPLEX_H
19449 #include <complex.h>
19450 #endif
19451 #ifdef HAVE_MATH_H
19452 #include <math.h>
19453 #endif
19455 int (*ptr)() = (int (*)())cabsl;
19458 main ()
19460 return 0;
19463 _ACEOF
19464 if ac_fn_c_try_link "$LINENO"; then :
19465 gcc_cv_math_func_cabsl=yes
19466 else
19467 gcc_cv_math_func_cabsl=no
19469 rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19473 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19474 if test $gcc_cv_math_func_cabsl = yes; then
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_CABSL 1
19478 _ACEOF
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19486 $as_echo_n "checking for floorf... " >&6; }
19487 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19488 $as_echo_n "(cached) " >&6
19489 else
19490 if test x$gcc_no_link = xyes; then
19491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19496 #ifdef HAVE_COMPLEX_H
19497 #include <complex.h>
19498 #endif
19499 #ifdef HAVE_MATH_H
19500 #include <math.h>
19501 #endif
19503 int (*ptr)() = (int (*)())floorf;
19506 main ()
19508 return 0;
19511 _ACEOF
19512 if ac_fn_c_try_link "$LINENO"; then :
19513 gcc_cv_math_func_floorf=yes
19514 else
19515 gcc_cv_math_func_floorf=no
19517 rm -f core conftest.err conftest.$ac_objext \
19518 conftest$ac_exeext conftest.$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19521 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19522 if test $gcc_cv_math_func_floorf = yes; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_FLOORF 1
19526 _ACEOF
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19534 $as_echo_n "checking for floor... " >&6; }
19535 if test "${gcc_cv_math_func_floor+set}" = set; then :
19536 $as_echo_n "(cached) " >&6
19537 else
19538 if test x$gcc_no_link = xyes; then
19539 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19544 #ifdef HAVE_COMPLEX_H
19545 #include <complex.h>
19546 #endif
19547 #ifdef HAVE_MATH_H
19548 #include <math.h>
19549 #endif
19551 int (*ptr)() = (int (*)())floor;
19554 main ()
19556 return 0;
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561 gcc_cv_math_func_floor=yes
19562 else
19563 gcc_cv_math_func_floor=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19569 $as_echo "$gcc_cv_math_func_floor" >&6; }
19570 if test $gcc_cv_math_func_floor = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573 #define HAVE_FLOOR 1
19574 _ACEOF
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19582 $as_echo_n "checking for floorl... " >&6; }
19583 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19584 $as_echo_n "(cached) " >&6
19585 else
19586 if test x$gcc_no_link = xyes; then
19587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h. */
19592 #ifdef HAVE_COMPLEX_H
19593 #include <complex.h>
19594 #endif
19595 #ifdef HAVE_MATH_H
19596 #include <math.h>
19597 #endif
19599 int (*ptr)() = (int (*)())floorl;
19602 main ()
19604 return 0;
19607 _ACEOF
19608 if ac_fn_c_try_link "$LINENO"; then :
19609 gcc_cv_math_func_floorl=yes
19610 else
19611 gcc_cv_math_func_floorl=no
19613 rm -f core conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19617 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19618 if test $gcc_cv_math_func_floorl = yes; then
19620 cat >>confdefs.h <<_ACEOF
19621 #define HAVE_FLOORL 1
19622 _ACEOF
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19630 $as_echo_n "checking for fmodf... " >&6; }
19631 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19634 if test x$gcc_no_link = xyes; then
19635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19640 #ifdef HAVE_COMPLEX_H
19641 #include <complex.h>
19642 #endif
19643 #ifdef HAVE_MATH_H
19644 #include <math.h>
19645 #endif
19647 int (*ptr)() = (int (*)())fmodf;
19650 main ()
19652 return 0;
19655 _ACEOF
19656 if ac_fn_c_try_link "$LINENO"; then :
19657 gcc_cv_math_func_fmodf=yes
19658 else
19659 gcc_cv_math_func_fmodf=no
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19665 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19666 if test $gcc_cv_math_func_fmodf = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_FMODF 1
19670 _ACEOF
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19678 $as_echo_n "checking for fmod... " >&6; }
19679 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19680 $as_echo_n "(cached) " >&6
19681 else
19682 if test x$gcc_no_link = xyes; then
19683 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686 /* end confdefs.h. */
19688 #ifdef HAVE_COMPLEX_H
19689 #include <complex.h>
19690 #endif
19691 #ifdef HAVE_MATH_H
19692 #include <math.h>
19693 #endif
19695 int (*ptr)() = (int (*)())fmod;
19698 main ()
19700 return 0;
19703 _ACEOF
19704 if ac_fn_c_try_link "$LINENO"; then :
19705 gcc_cv_math_func_fmod=yes
19706 else
19707 gcc_cv_math_func_fmod=no
19709 rm -f core conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19713 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19714 if test $gcc_cv_math_func_fmod = yes; then
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_FMOD 1
19718 _ACEOF
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19726 $as_echo_n "checking for fmodl... " >&6; }
19727 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19728 $as_echo_n "(cached) " >&6
19729 else
19730 if test x$gcc_no_link = xyes; then
19731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19736 #ifdef HAVE_COMPLEX_H
19737 #include <complex.h>
19738 #endif
19739 #ifdef HAVE_MATH_H
19740 #include <math.h>
19741 #endif
19743 int (*ptr)() = (int (*)())fmodl;
19746 main ()
19748 return 0;
19751 _ACEOF
19752 if ac_fn_c_try_link "$LINENO"; then :
19753 gcc_cv_math_func_fmodl=yes
19754 else
19755 gcc_cv_math_func_fmodl=no
19757 rm -f core conftest.err conftest.$ac_objext \
19758 conftest$ac_exeext conftest.$ac_ext
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19761 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19762 if test $gcc_cv_math_func_fmodl = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_FMODL 1
19766 _ACEOF
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19774 $as_echo_n "checking for frexpf... " >&6; }
19775 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19776 $as_echo_n "(cached) " >&6
19777 else
19778 if test x$gcc_no_link = xyes; then
19779 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h. */
19784 #ifdef HAVE_COMPLEX_H
19785 #include <complex.h>
19786 #endif
19787 #ifdef HAVE_MATH_H
19788 #include <math.h>
19789 #endif
19791 int (*ptr)() = (int (*)())frexpf;
19794 main ()
19796 return 0;
19799 _ACEOF
19800 if ac_fn_c_try_link "$LINENO"; then :
19801 gcc_cv_math_func_frexpf=yes
19802 else
19803 gcc_cv_math_func_frexpf=no
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19809 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19810 if test $gcc_cv_math_func_frexpf = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_FREXPF 1
19814 _ACEOF
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19822 $as_echo_n "checking for frexp... " >&6; }
19823 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19824 $as_echo_n "(cached) " >&6
19825 else
19826 if test x$gcc_no_link = xyes; then
19827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19832 #ifdef HAVE_COMPLEX_H
19833 #include <complex.h>
19834 #endif
19835 #ifdef HAVE_MATH_H
19836 #include <math.h>
19837 #endif
19839 int (*ptr)() = (int (*)())frexp;
19842 main ()
19844 return 0;
19847 _ACEOF
19848 if ac_fn_c_try_link "$LINENO"; then :
19849 gcc_cv_math_func_frexp=yes
19850 else
19851 gcc_cv_math_func_frexp=no
19853 rm -f core conftest.err conftest.$ac_objext \
19854 conftest$ac_exeext conftest.$ac_ext
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19857 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19858 if test $gcc_cv_math_func_frexp = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_FREXP 1
19862 _ACEOF
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19870 $as_echo_n "checking for frexpl... " >&6; }
19871 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19872 $as_echo_n "(cached) " >&6
19873 else
19874 if test x$gcc_no_link = xyes; then
19875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19880 #ifdef HAVE_COMPLEX_H
19881 #include <complex.h>
19882 #endif
19883 #ifdef HAVE_MATH_H
19884 #include <math.h>
19885 #endif
19887 int (*ptr)() = (int (*)())frexpl;
19890 main ()
19892 return 0;
19895 _ACEOF
19896 if ac_fn_c_try_link "$LINENO"; then :
19897 gcc_cv_math_func_frexpl=yes
19898 else
19899 gcc_cv_math_func_frexpl=no
19901 rm -f core conftest.err conftest.$ac_objext \
19902 conftest$ac_exeext conftest.$ac_ext
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19905 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19906 if test $gcc_cv_math_func_frexpl = yes; then
19908 cat >>confdefs.h <<_ACEOF
19909 #define HAVE_FREXPL 1
19910 _ACEOF
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19918 $as_echo_n "checking for hypotf... " >&6; }
19919 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19920 $as_echo_n "(cached) " >&6
19921 else
19922 if test x$gcc_no_link = xyes; then
19923 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926 /* end confdefs.h. */
19928 #ifdef HAVE_COMPLEX_H
19929 #include <complex.h>
19930 #endif
19931 #ifdef HAVE_MATH_H
19932 #include <math.h>
19933 #endif
19935 int (*ptr)() = (int (*)())hypotf;
19938 main ()
19940 return 0;
19943 _ACEOF
19944 if ac_fn_c_try_link "$LINENO"; then :
19945 gcc_cv_math_func_hypotf=yes
19946 else
19947 gcc_cv_math_func_hypotf=no
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19953 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19954 if test $gcc_cv_math_func_hypotf = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_HYPOTF 1
19958 _ACEOF
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19966 $as_echo_n "checking for hypot... " >&6; }
19967 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19968 $as_echo_n "(cached) " >&6
19969 else
19970 if test x$gcc_no_link = xyes; then
19971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19976 #ifdef HAVE_COMPLEX_H
19977 #include <complex.h>
19978 #endif
19979 #ifdef HAVE_MATH_H
19980 #include <math.h>
19981 #endif
19983 int (*ptr)() = (int (*)())hypot;
19986 main ()
19988 return 0;
19991 _ACEOF
19992 if ac_fn_c_try_link "$LINENO"; then :
19993 gcc_cv_math_func_hypot=yes
19994 else
19995 gcc_cv_math_func_hypot=no
19997 rm -f core conftest.err conftest.$ac_objext \
19998 conftest$ac_exeext conftest.$ac_ext
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20001 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20002 if test $gcc_cv_math_func_hypot = yes; then
20004 cat >>confdefs.h <<_ACEOF
20005 #define HAVE_HYPOT 1
20006 _ACEOF
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20014 $as_echo_n "checking for hypotl... " >&6; }
20015 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
20016 $as_echo_n "(cached) " >&6
20017 else
20018 if test x$gcc_no_link = xyes; then
20019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20024 #ifdef HAVE_COMPLEX_H
20025 #include <complex.h>
20026 #endif
20027 #ifdef HAVE_MATH_H
20028 #include <math.h>
20029 #endif
20031 int (*ptr)() = (int (*)())hypotl;
20034 main ()
20036 return 0;
20039 _ACEOF
20040 if ac_fn_c_try_link "$LINENO"; then :
20041 gcc_cv_math_func_hypotl=yes
20042 else
20043 gcc_cv_math_func_hypotl=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20049 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20050 if test $gcc_cv_math_func_hypotl = yes; then
20052 cat >>confdefs.h <<_ACEOF
20053 #define HAVE_HYPOTL 1
20054 _ACEOF
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20062 $as_echo_n "checking for ldexpf... " >&6; }
20063 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 if test x$gcc_no_link = xyes; then
20067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20072 #ifdef HAVE_COMPLEX_H
20073 #include <complex.h>
20074 #endif
20075 #ifdef HAVE_MATH_H
20076 #include <math.h>
20077 #endif
20079 int (*ptr)() = (int (*)())ldexpf;
20082 main ()
20084 return 0;
20087 _ACEOF
20088 if ac_fn_c_try_link "$LINENO"; then :
20089 gcc_cv_math_func_ldexpf=yes
20090 else
20091 gcc_cv_math_func_ldexpf=no
20093 rm -f core conftest.err conftest.$ac_objext \
20094 conftest$ac_exeext conftest.$ac_ext
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20097 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20098 if test $gcc_cv_math_func_ldexpf = yes; then
20100 cat >>confdefs.h <<_ACEOF
20101 #define HAVE_LDEXPF 1
20102 _ACEOF
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20110 $as_echo_n "checking for ldexp... " >&6; }
20111 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20114 if test x$gcc_no_link = xyes; then
20115 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20120 #ifdef HAVE_COMPLEX_H
20121 #include <complex.h>
20122 #endif
20123 #ifdef HAVE_MATH_H
20124 #include <math.h>
20125 #endif
20127 int (*ptr)() = (int (*)())ldexp;
20130 main ()
20132 return 0;
20135 _ACEOF
20136 if ac_fn_c_try_link "$LINENO"; then :
20137 gcc_cv_math_func_ldexp=yes
20138 else
20139 gcc_cv_math_func_ldexp=no
20141 rm -f core conftest.err conftest.$ac_objext \
20142 conftest$ac_exeext conftest.$ac_ext
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20145 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20146 if test $gcc_cv_math_func_ldexp = yes; then
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_LDEXP 1
20150 _ACEOF
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20158 $as_echo_n "checking for ldexpl... " >&6; }
20159 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 if test x$gcc_no_link = xyes; then
20163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h. */
20168 #ifdef HAVE_COMPLEX_H
20169 #include <complex.h>
20170 #endif
20171 #ifdef HAVE_MATH_H
20172 #include <math.h>
20173 #endif
20175 int (*ptr)() = (int (*)())ldexpl;
20178 main ()
20180 return 0;
20183 _ACEOF
20184 if ac_fn_c_try_link "$LINENO"; then :
20185 gcc_cv_math_func_ldexpl=yes
20186 else
20187 gcc_cv_math_func_ldexpl=no
20189 rm -f core conftest.err conftest.$ac_objext \
20190 conftest$ac_exeext conftest.$ac_ext
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20193 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20194 if test $gcc_cv_math_func_ldexpl = yes; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define HAVE_LDEXPL 1
20198 _ACEOF
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20206 $as_echo_n "checking for logf... " >&6; }
20207 if test "${gcc_cv_math_func_logf+set}" = set; then :
20208 $as_echo_n "(cached) " >&6
20209 else
20210 if test x$gcc_no_link = xyes; then
20211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20216 #ifdef HAVE_COMPLEX_H
20217 #include <complex.h>
20218 #endif
20219 #ifdef HAVE_MATH_H
20220 #include <math.h>
20221 #endif
20223 int (*ptr)() = (int (*)())logf;
20226 main ()
20228 return 0;
20231 _ACEOF
20232 if ac_fn_c_try_link "$LINENO"; then :
20233 gcc_cv_math_func_logf=yes
20234 else
20235 gcc_cv_math_func_logf=no
20237 rm -f core conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext conftest.$ac_ext
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20241 $as_echo "$gcc_cv_math_func_logf" >&6; }
20242 if test $gcc_cv_math_func_logf = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define HAVE_LOGF 1
20246 _ACEOF
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20254 $as_echo_n "checking for log... " >&6; }
20255 if test "${gcc_cv_math_func_log+set}" = set; then :
20256 $as_echo_n "(cached) " >&6
20257 else
20258 if test x$gcc_no_link = xyes; then
20259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20264 #ifdef HAVE_COMPLEX_H
20265 #include <complex.h>
20266 #endif
20267 #ifdef HAVE_MATH_H
20268 #include <math.h>
20269 #endif
20271 int (*ptr)() = (int (*)())log;
20274 main ()
20276 return 0;
20279 _ACEOF
20280 if ac_fn_c_try_link "$LINENO"; then :
20281 gcc_cv_math_func_log=yes
20282 else
20283 gcc_cv_math_func_log=no
20285 rm -f core conftest.err conftest.$ac_objext \
20286 conftest$ac_exeext conftest.$ac_ext
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20289 $as_echo "$gcc_cv_math_func_log" >&6; }
20290 if test $gcc_cv_math_func_log = yes; then
20292 cat >>confdefs.h <<_ACEOF
20293 #define HAVE_LOG 1
20294 _ACEOF
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20302 $as_echo_n "checking for logl... " >&6; }
20303 if test "${gcc_cv_math_func_logl+set}" = set; then :
20304 $as_echo_n "(cached) " >&6
20305 else
20306 if test x$gcc_no_link = xyes; then
20307 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20310 /* end confdefs.h. */
20312 #ifdef HAVE_COMPLEX_H
20313 #include <complex.h>
20314 #endif
20315 #ifdef HAVE_MATH_H
20316 #include <math.h>
20317 #endif
20319 int (*ptr)() = (int (*)())logl;
20322 main ()
20324 return 0;
20327 _ACEOF
20328 if ac_fn_c_try_link "$LINENO"; then :
20329 gcc_cv_math_func_logl=yes
20330 else
20331 gcc_cv_math_func_logl=no
20333 rm -f core conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20337 $as_echo "$gcc_cv_math_func_logl" >&6; }
20338 if test $gcc_cv_math_func_logl = yes; then
20340 cat >>confdefs.h <<_ACEOF
20341 #define HAVE_LOGL 1
20342 _ACEOF
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20350 $as_echo_n "checking for clogf... " >&6; }
20351 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 if test x$gcc_no_link = xyes; then
20355 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20360 #ifdef HAVE_COMPLEX_H
20361 #include <complex.h>
20362 #endif
20363 #ifdef HAVE_MATH_H
20364 #include <math.h>
20365 #endif
20367 int (*ptr)() = (int (*)())clogf;
20370 main ()
20372 return 0;
20375 _ACEOF
20376 if ac_fn_c_try_link "$LINENO"; then :
20377 gcc_cv_math_func_clogf=yes
20378 else
20379 gcc_cv_math_func_clogf=no
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20385 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20386 if test $gcc_cv_math_func_clogf = yes; then
20388 cat >>confdefs.h <<_ACEOF
20389 #define HAVE_CLOGF 1
20390 _ACEOF
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20398 $as_echo_n "checking for clog... " >&6; }
20399 if test "${gcc_cv_math_func_clog+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 if test x$gcc_no_link = xyes; then
20403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20408 #ifdef HAVE_COMPLEX_H
20409 #include <complex.h>
20410 #endif
20411 #ifdef HAVE_MATH_H
20412 #include <math.h>
20413 #endif
20415 int (*ptr)() = (int (*)())clog;
20418 main ()
20420 return 0;
20423 _ACEOF
20424 if ac_fn_c_try_link "$LINENO"; then :
20425 gcc_cv_math_func_clog=yes
20426 else
20427 gcc_cv_math_func_clog=no
20429 rm -f core conftest.err conftest.$ac_objext \
20430 conftest$ac_exeext conftest.$ac_ext
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20433 $as_echo "$gcc_cv_math_func_clog" >&6; }
20434 if test $gcc_cv_math_func_clog = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_CLOG 1
20438 _ACEOF
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20446 $as_echo_n "checking for clogl... " >&6; }
20447 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20448 $as_echo_n "(cached) " >&6
20449 else
20450 if test x$gcc_no_link = xyes; then
20451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20456 #ifdef HAVE_COMPLEX_H
20457 #include <complex.h>
20458 #endif
20459 #ifdef HAVE_MATH_H
20460 #include <math.h>
20461 #endif
20463 int (*ptr)() = (int (*)())clogl;
20466 main ()
20468 return 0;
20471 _ACEOF
20472 if ac_fn_c_try_link "$LINENO"; then :
20473 gcc_cv_math_func_clogl=yes
20474 else
20475 gcc_cv_math_func_clogl=no
20477 rm -f core conftest.err conftest.$ac_objext \
20478 conftest$ac_exeext conftest.$ac_ext
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20481 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20482 if test $gcc_cv_math_func_clogl = yes; then
20484 cat >>confdefs.h <<_ACEOF
20485 #define HAVE_CLOGL 1
20486 _ACEOF
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20494 $as_echo_n "checking for log10f... " >&6; }
20495 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20496 $as_echo_n "(cached) " >&6
20497 else
20498 if test x$gcc_no_link = xyes; then
20499 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20504 #ifdef HAVE_COMPLEX_H
20505 #include <complex.h>
20506 #endif
20507 #ifdef HAVE_MATH_H
20508 #include <math.h>
20509 #endif
20511 int (*ptr)() = (int (*)())log10f;
20514 main ()
20516 return 0;
20519 _ACEOF
20520 if ac_fn_c_try_link "$LINENO"; then :
20521 gcc_cv_math_func_log10f=yes
20522 else
20523 gcc_cv_math_func_log10f=no
20525 rm -f core conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20529 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20530 if test $gcc_cv_math_func_log10f = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_LOG10F 1
20534 _ACEOF
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20542 $as_echo_n "checking for log10... " >&6; }
20543 if test "${gcc_cv_math_func_log10+set}" = set; then :
20544 $as_echo_n "(cached) " >&6
20545 else
20546 if test x$gcc_no_link = xyes; then
20547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550 /* end confdefs.h. */
20552 #ifdef HAVE_COMPLEX_H
20553 #include <complex.h>
20554 #endif
20555 #ifdef HAVE_MATH_H
20556 #include <math.h>
20557 #endif
20559 int (*ptr)() = (int (*)())log10;
20562 main ()
20564 return 0;
20567 _ACEOF
20568 if ac_fn_c_try_link "$LINENO"; then :
20569 gcc_cv_math_func_log10=yes
20570 else
20571 gcc_cv_math_func_log10=no
20573 rm -f core conftest.err conftest.$ac_objext \
20574 conftest$ac_exeext conftest.$ac_ext
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20577 $as_echo "$gcc_cv_math_func_log10" >&6; }
20578 if test $gcc_cv_math_func_log10 = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_LOG10 1
20582 _ACEOF
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20590 $as_echo_n "checking for log10l... " >&6; }
20591 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20592 $as_echo_n "(cached) " >&6
20593 else
20594 if test x$gcc_no_link = xyes; then
20595 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h. */
20600 #ifdef HAVE_COMPLEX_H
20601 #include <complex.h>
20602 #endif
20603 #ifdef HAVE_MATH_H
20604 #include <math.h>
20605 #endif
20607 int (*ptr)() = (int (*)())log10l;
20610 main ()
20612 return 0;
20615 _ACEOF
20616 if ac_fn_c_try_link "$LINENO"; then :
20617 gcc_cv_math_func_log10l=yes
20618 else
20619 gcc_cv_math_func_log10l=no
20621 rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20625 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20626 if test $gcc_cv_math_func_log10l = yes; then
20628 cat >>confdefs.h <<_ACEOF
20629 #define HAVE_LOG10L 1
20630 _ACEOF
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20638 $as_echo_n "checking for clog10f... " >&6; }
20639 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20640 $as_echo_n "(cached) " >&6
20641 else
20642 if test x$gcc_no_link = xyes; then
20643 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h. */
20648 #ifdef HAVE_COMPLEX_H
20649 #include <complex.h>
20650 #endif
20651 #ifdef HAVE_MATH_H
20652 #include <math.h>
20653 #endif
20655 int (*ptr)() = (int (*)())clog10f;
20658 main ()
20660 return 0;
20663 _ACEOF
20664 if ac_fn_c_try_link "$LINENO"; then :
20665 gcc_cv_math_func_clog10f=yes
20666 else
20667 gcc_cv_math_func_clog10f=no
20669 rm -f core conftest.err conftest.$ac_objext \
20670 conftest$ac_exeext conftest.$ac_ext
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20673 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20674 if test $gcc_cv_math_func_clog10f = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_CLOG10F 1
20678 _ACEOF
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20686 $as_echo_n "checking for clog10... " >&6; }
20687 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20688 $as_echo_n "(cached) " >&6
20689 else
20690 if test x$gcc_no_link = xyes; then
20691 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h. */
20696 #ifdef HAVE_COMPLEX_H
20697 #include <complex.h>
20698 #endif
20699 #ifdef HAVE_MATH_H
20700 #include <math.h>
20701 #endif
20703 int (*ptr)() = (int (*)())clog10;
20706 main ()
20708 return 0;
20711 _ACEOF
20712 if ac_fn_c_try_link "$LINENO"; then :
20713 gcc_cv_math_func_clog10=yes
20714 else
20715 gcc_cv_math_func_clog10=no
20717 rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20721 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20722 if test $gcc_cv_math_func_clog10 = yes; then
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_CLOG10 1
20726 _ACEOF
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20734 $as_echo_n "checking for clog10l... " >&6; }
20735 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20737 else
20738 if test x$gcc_no_link = xyes; then
20739 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742 /* end confdefs.h. */
20744 #ifdef HAVE_COMPLEX_H
20745 #include <complex.h>
20746 #endif
20747 #ifdef HAVE_MATH_H
20748 #include <math.h>
20749 #endif
20751 int (*ptr)() = (int (*)())clog10l;
20754 main ()
20756 return 0;
20759 _ACEOF
20760 if ac_fn_c_try_link "$LINENO"; then :
20761 gcc_cv_math_func_clog10l=yes
20762 else
20763 gcc_cv_math_func_clog10l=no
20765 rm -f core conftest.err conftest.$ac_objext \
20766 conftest$ac_exeext conftest.$ac_ext
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20769 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20770 if test $gcc_cv_math_func_clog10l = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_CLOG10L 1
20774 _ACEOF
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20782 $as_echo_n "checking for nextafterf... " >&6; }
20783 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20784 $as_echo_n "(cached) " >&6
20785 else
20786 if test x$gcc_no_link = xyes; then
20787 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20792 #ifdef HAVE_COMPLEX_H
20793 #include <complex.h>
20794 #endif
20795 #ifdef HAVE_MATH_H
20796 #include <math.h>
20797 #endif
20799 int (*ptr)() = (int (*)())nextafterf;
20802 main ()
20804 return 0;
20807 _ACEOF
20808 if ac_fn_c_try_link "$LINENO"; then :
20809 gcc_cv_math_func_nextafterf=yes
20810 else
20811 gcc_cv_math_func_nextafterf=no
20813 rm -f core conftest.err conftest.$ac_objext \
20814 conftest$ac_exeext conftest.$ac_ext
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20817 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20818 if test $gcc_cv_math_func_nextafterf = yes; then
20820 cat >>confdefs.h <<_ACEOF
20821 #define HAVE_NEXTAFTERF 1
20822 _ACEOF
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20830 $as_echo_n "checking for nextafter... " >&6; }
20831 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20833 else
20834 if test x$gcc_no_link = xyes; then
20835 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20840 #ifdef HAVE_COMPLEX_H
20841 #include <complex.h>
20842 #endif
20843 #ifdef HAVE_MATH_H
20844 #include <math.h>
20845 #endif
20847 int (*ptr)() = (int (*)())nextafter;
20850 main ()
20852 return 0;
20855 _ACEOF
20856 if ac_fn_c_try_link "$LINENO"; then :
20857 gcc_cv_math_func_nextafter=yes
20858 else
20859 gcc_cv_math_func_nextafter=no
20861 rm -f core conftest.err conftest.$ac_objext \
20862 conftest$ac_exeext conftest.$ac_ext
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20865 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20866 if test $gcc_cv_math_func_nextafter = yes; then
20868 cat >>confdefs.h <<_ACEOF
20869 #define HAVE_NEXTAFTER 1
20870 _ACEOF
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20878 $as_echo_n "checking for nextafterl... " >&6; }
20879 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20881 else
20882 if test x$gcc_no_link = xyes; then
20883 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886 /* end confdefs.h. */
20888 #ifdef HAVE_COMPLEX_H
20889 #include <complex.h>
20890 #endif
20891 #ifdef HAVE_MATH_H
20892 #include <math.h>
20893 #endif
20895 int (*ptr)() = (int (*)())nextafterl;
20898 main ()
20900 return 0;
20903 _ACEOF
20904 if ac_fn_c_try_link "$LINENO"; then :
20905 gcc_cv_math_func_nextafterl=yes
20906 else
20907 gcc_cv_math_func_nextafterl=no
20909 rm -f core conftest.err conftest.$ac_objext \
20910 conftest$ac_exeext conftest.$ac_ext
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20913 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20914 if test $gcc_cv_math_func_nextafterl = yes; then
20916 cat >>confdefs.h <<_ACEOF
20917 #define HAVE_NEXTAFTERL 1
20918 _ACEOF
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20926 $as_echo_n "checking for powf... " >&6; }
20927 if test "${gcc_cv_math_func_powf+set}" = set; then :
20928 $as_echo_n "(cached) " >&6
20929 else
20930 if test x$gcc_no_link = xyes; then
20931 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20934 /* end confdefs.h. */
20936 #ifdef HAVE_COMPLEX_H
20937 #include <complex.h>
20938 #endif
20939 #ifdef HAVE_MATH_H
20940 #include <math.h>
20941 #endif
20943 int (*ptr)() = (int (*)())powf;
20946 main ()
20948 return 0;
20951 _ACEOF
20952 if ac_fn_c_try_link "$LINENO"; then :
20953 gcc_cv_math_func_powf=yes
20954 else
20955 gcc_cv_math_func_powf=no
20957 rm -f core conftest.err conftest.$ac_objext \
20958 conftest$ac_exeext conftest.$ac_ext
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20961 $as_echo "$gcc_cv_math_func_powf" >&6; }
20962 if test $gcc_cv_math_func_powf = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_POWF 1
20966 _ACEOF
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20974 $as_echo_n "checking for pow... " >&6; }
20975 if test "${gcc_cv_math_func_pow+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 if test x$gcc_no_link = xyes; then
20979 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20984 #ifdef HAVE_COMPLEX_H
20985 #include <complex.h>
20986 #endif
20987 #ifdef HAVE_MATH_H
20988 #include <math.h>
20989 #endif
20991 int (*ptr)() = (int (*)())pow;
20994 main ()
20996 return 0;
20999 _ACEOF
21000 if ac_fn_c_try_link "$LINENO"; then :
21001 gcc_cv_math_func_pow=yes
21002 else
21003 gcc_cv_math_func_pow=no
21005 rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21009 $as_echo "$gcc_cv_math_func_pow" >&6; }
21010 if test $gcc_cv_math_func_pow = yes; then
21012 cat >>confdefs.h <<_ACEOF
21013 #define HAVE_POW 1
21014 _ACEOF
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21022 $as_echo_n "checking for cpowf... " >&6; }
21023 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21025 else
21026 if test x$gcc_no_link = xyes; then
21027 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21032 #ifdef HAVE_COMPLEX_H
21033 #include <complex.h>
21034 #endif
21035 #ifdef HAVE_MATH_H
21036 #include <math.h>
21037 #endif
21039 int (*ptr)() = (int (*)())cpowf;
21042 main ()
21044 return 0;
21047 _ACEOF
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 gcc_cv_math_func_cpowf=yes
21050 else
21051 gcc_cv_math_func_cpowf=no
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21057 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21058 if test $gcc_cv_math_func_cpowf = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_CPOWF 1
21062 _ACEOF
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21070 $as_echo_n "checking for cpow... " >&6; }
21071 if test "${gcc_cv_math_func_cpow+set}" = set; then :
21072 $as_echo_n "(cached) " >&6
21073 else
21074 if test x$gcc_no_link = xyes; then
21075 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21080 #ifdef HAVE_COMPLEX_H
21081 #include <complex.h>
21082 #endif
21083 #ifdef HAVE_MATH_H
21084 #include <math.h>
21085 #endif
21087 int (*ptr)() = (int (*)())cpow;
21090 main ()
21092 return 0;
21095 _ACEOF
21096 if ac_fn_c_try_link "$LINENO"; then :
21097 gcc_cv_math_func_cpow=yes
21098 else
21099 gcc_cv_math_func_cpow=no
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21105 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21106 if test $gcc_cv_math_func_cpow = yes; then
21108 cat >>confdefs.h <<_ACEOF
21109 #define HAVE_CPOW 1
21110 _ACEOF
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21118 $as_echo_n "checking for cpowl... " >&6; }
21119 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21120 $as_echo_n "(cached) " >&6
21121 else
21122 if test x$gcc_no_link = xyes; then
21123 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21126 /* end confdefs.h. */
21128 #ifdef HAVE_COMPLEX_H
21129 #include <complex.h>
21130 #endif
21131 #ifdef HAVE_MATH_H
21132 #include <math.h>
21133 #endif
21135 int (*ptr)() = (int (*)())cpowl;
21138 main ()
21140 return 0;
21143 _ACEOF
21144 if ac_fn_c_try_link "$LINENO"; then :
21145 gcc_cv_math_func_cpowl=yes
21146 else
21147 gcc_cv_math_func_cpowl=no
21149 rm -f core conftest.err conftest.$ac_objext \
21150 conftest$ac_exeext conftest.$ac_ext
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21153 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21154 if test $gcc_cv_math_func_cpowl = yes; then
21156 cat >>confdefs.h <<_ACEOF
21157 #define HAVE_CPOWL 1
21158 _ACEOF
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21166 $as_echo_n "checking for roundf... " >&6; }
21167 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21168 $as_echo_n "(cached) " >&6
21169 else
21170 if test x$gcc_no_link = xyes; then
21171 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174 /* end confdefs.h. */
21176 #ifdef HAVE_COMPLEX_H
21177 #include <complex.h>
21178 #endif
21179 #ifdef HAVE_MATH_H
21180 #include <math.h>
21181 #endif
21183 int (*ptr)() = (int (*)())roundf;
21186 main ()
21188 return 0;
21191 _ACEOF
21192 if ac_fn_c_try_link "$LINENO"; then :
21193 gcc_cv_math_func_roundf=yes
21194 else
21195 gcc_cv_math_func_roundf=no
21197 rm -f core conftest.err conftest.$ac_objext \
21198 conftest$ac_exeext conftest.$ac_ext
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21201 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21202 if test $gcc_cv_math_func_roundf = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_ROUNDF 1
21206 _ACEOF
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21214 $as_echo_n "checking for round... " >&6; }
21215 if test "${gcc_cv_math_func_round+set}" = set; then :
21216 $as_echo_n "(cached) " >&6
21217 else
21218 if test x$gcc_no_link = xyes; then
21219 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21222 /* end confdefs.h. */
21224 #ifdef HAVE_COMPLEX_H
21225 #include <complex.h>
21226 #endif
21227 #ifdef HAVE_MATH_H
21228 #include <math.h>
21229 #endif
21231 int (*ptr)() = (int (*)())round;
21234 main ()
21236 return 0;
21239 _ACEOF
21240 if ac_fn_c_try_link "$LINENO"; then :
21241 gcc_cv_math_func_round=yes
21242 else
21243 gcc_cv_math_func_round=no
21245 rm -f core conftest.err conftest.$ac_objext \
21246 conftest$ac_exeext conftest.$ac_ext
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21249 $as_echo "$gcc_cv_math_func_round" >&6; }
21250 if test $gcc_cv_math_func_round = yes; then
21252 cat >>confdefs.h <<_ACEOF
21253 #define HAVE_ROUND 1
21254 _ACEOF
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21262 $as_echo_n "checking for roundl... " >&6; }
21263 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21264 $as_echo_n "(cached) " >&6
21265 else
21266 if test x$gcc_no_link = xyes; then
21267 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h. */
21272 #ifdef HAVE_COMPLEX_H
21273 #include <complex.h>
21274 #endif
21275 #ifdef HAVE_MATH_H
21276 #include <math.h>
21277 #endif
21279 int (*ptr)() = (int (*)())roundl;
21282 main ()
21284 return 0;
21287 _ACEOF
21288 if ac_fn_c_try_link "$LINENO"; then :
21289 gcc_cv_math_func_roundl=yes
21290 else
21291 gcc_cv_math_func_roundl=no
21293 rm -f core conftest.err conftest.$ac_objext \
21294 conftest$ac_exeext conftest.$ac_ext
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21297 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21298 if test $gcc_cv_math_func_roundl = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define HAVE_ROUNDL 1
21302 _ACEOF
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21310 $as_echo_n "checking for lroundf... " >&6; }
21311 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21314 if test x$gcc_no_link = xyes; then
21315 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h. */
21320 #ifdef HAVE_COMPLEX_H
21321 #include <complex.h>
21322 #endif
21323 #ifdef HAVE_MATH_H
21324 #include <math.h>
21325 #endif
21327 int (*ptr)() = (int (*)())lroundf;
21330 main ()
21332 return 0;
21335 _ACEOF
21336 if ac_fn_c_try_link "$LINENO"; then :
21337 gcc_cv_math_func_lroundf=yes
21338 else
21339 gcc_cv_math_func_lroundf=no
21341 rm -f core conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext conftest.$ac_ext
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21345 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21346 if test $gcc_cv_math_func_lroundf = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349 #define HAVE_LROUNDF 1
21350 _ACEOF
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21358 $as_echo_n "checking for lround... " >&6; }
21359 if test "${gcc_cv_math_func_lround+set}" = set; then :
21360 $as_echo_n "(cached) " >&6
21361 else
21362 if test x$gcc_no_link = xyes; then
21363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h. */
21368 #ifdef HAVE_COMPLEX_H
21369 #include <complex.h>
21370 #endif
21371 #ifdef HAVE_MATH_H
21372 #include <math.h>
21373 #endif
21375 int (*ptr)() = (int (*)())lround;
21378 main ()
21380 return 0;
21383 _ACEOF
21384 if ac_fn_c_try_link "$LINENO"; then :
21385 gcc_cv_math_func_lround=yes
21386 else
21387 gcc_cv_math_func_lround=no
21389 rm -f core conftest.err conftest.$ac_objext \
21390 conftest$ac_exeext conftest.$ac_ext
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21393 $as_echo "$gcc_cv_math_func_lround" >&6; }
21394 if test $gcc_cv_math_func_lround = yes; then
21396 cat >>confdefs.h <<_ACEOF
21397 #define HAVE_LROUND 1
21398 _ACEOF
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21406 $as_echo_n "checking for lroundl... " >&6; }
21407 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21409 else
21410 if test x$gcc_no_link = xyes; then
21411 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21416 #ifdef HAVE_COMPLEX_H
21417 #include <complex.h>
21418 #endif
21419 #ifdef HAVE_MATH_H
21420 #include <math.h>
21421 #endif
21423 int (*ptr)() = (int (*)())lroundl;
21426 main ()
21428 return 0;
21431 _ACEOF
21432 if ac_fn_c_try_link "$LINENO"; then :
21433 gcc_cv_math_func_lroundl=yes
21434 else
21435 gcc_cv_math_func_lroundl=no
21437 rm -f core conftest.err conftest.$ac_objext \
21438 conftest$ac_exeext conftest.$ac_ext
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21441 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21442 if test $gcc_cv_math_func_lroundl = yes; then
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_LROUNDL 1
21446 _ACEOF
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21454 $as_echo_n "checking for llroundf... " >&6; }
21455 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21458 if test x$gcc_no_link = xyes; then
21459 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21464 #ifdef HAVE_COMPLEX_H
21465 #include <complex.h>
21466 #endif
21467 #ifdef HAVE_MATH_H
21468 #include <math.h>
21469 #endif
21471 int (*ptr)() = (int (*)())llroundf;
21474 main ()
21476 return 0;
21479 _ACEOF
21480 if ac_fn_c_try_link "$LINENO"; then :
21481 gcc_cv_math_func_llroundf=yes
21482 else
21483 gcc_cv_math_func_llroundf=no
21485 rm -f core conftest.err conftest.$ac_objext \
21486 conftest$ac_exeext conftest.$ac_ext
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21489 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21490 if test $gcc_cv_math_func_llroundf = yes; then
21492 cat >>confdefs.h <<_ACEOF
21493 #define HAVE_LLROUNDF 1
21494 _ACEOF
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21502 $as_echo_n "checking for llround... " >&6; }
21503 if test "${gcc_cv_math_func_llround+set}" = set; then :
21504 $as_echo_n "(cached) " >&6
21505 else
21506 if test x$gcc_no_link = xyes; then
21507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21510 /* end confdefs.h. */
21512 #ifdef HAVE_COMPLEX_H
21513 #include <complex.h>
21514 #endif
21515 #ifdef HAVE_MATH_H
21516 #include <math.h>
21517 #endif
21519 int (*ptr)() = (int (*)())llround;
21522 main ()
21524 return 0;
21527 _ACEOF
21528 if ac_fn_c_try_link "$LINENO"; then :
21529 gcc_cv_math_func_llround=yes
21530 else
21531 gcc_cv_math_func_llround=no
21533 rm -f core conftest.err conftest.$ac_objext \
21534 conftest$ac_exeext conftest.$ac_ext
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21537 $as_echo "$gcc_cv_math_func_llround" >&6; }
21538 if test $gcc_cv_math_func_llround = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 #define HAVE_LLROUND 1
21542 _ACEOF
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21550 $as_echo_n "checking for llroundl... " >&6; }
21551 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21554 if test x$gcc_no_link = xyes; then
21555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h. */
21560 #ifdef HAVE_COMPLEX_H
21561 #include <complex.h>
21562 #endif
21563 #ifdef HAVE_MATH_H
21564 #include <math.h>
21565 #endif
21567 int (*ptr)() = (int (*)())llroundl;
21570 main ()
21572 return 0;
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 gcc_cv_math_func_llroundl=yes
21578 else
21579 gcc_cv_math_func_llroundl=no
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21585 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21586 if test $gcc_cv_math_func_llroundl = yes; then
21588 cat >>confdefs.h <<_ACEOF
21589 #define HAVE_LLROUNDL 1
21590 _ACEOF
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21598 $as_echo_n "checking for scalbnf... " >&6; }
21599 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21600 $as_echo_n "(cached) " >&6
21601 else
21602 if test x$gcc_no_link = xyes; then
21603 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21608 #ifdef HAVE_COMPLEX_H
21609 #include <complex.h>
21610 #endif
21611 #ifdef HAVE_MATH_H
21612 #include <math.h>
21613 #endif
21615 int (*ptr)() = (int (*)())scalbnf;
21618 main ()
21620 return 0;
21623 _ACEOF
21624 if ac_fn_c_try_link "$LINENO"; then :
21625 gcc_cv_math_func_scalbnf=yes
21626 else
21627 gcc_cv_math_func_scalbnf=no
21629 rm -f core conftest.err conftest.$ac_objext \
21630 conftest$ac_exeext conftest.$ac_ext
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21633 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21634 if test $gcc_cv_math_func_scalbnf = yes; then
21636 cat >>confdefs.h <<_ACEOF
21637 #define HAVE_SCALBNF 1
21638 _ACEOF
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21646 $as_echo_n "checking for scalbn... " >&6; }
21647 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21648 $as_echo_n "(cached) " >&6
21649 else
21650 if test x$gcc_no_link = xyes; then
21651 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21654 /* end confdefs.h. */
21656 #ifdef HAVE_COMPLEX_H
21657 #include <complex.h>
21658 #endif
21659 #ifdef HAVE_MATH_H
21660 #include <math.h>
21661 #endif
21663 int (*ptr)() = (int (*)())scalbn;
21666 main ()
21668 return 0;
21671 _ACEOF
21672 if ac_fn_c_try_link "$LINENO"; then :
21673 gcc_cv_math_func_scalbn=yes
21674 else
21675 gcc_cv_math_func_scalbn=no
21677 rm -f core conftest.err conftest.$ac_objext \
21678 conftest$ac_exeext conftest.$ac_ext
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21681 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21682 if test $gcc_cv_math_func_scalbn = yes; then
21684 cat >>confdefs.h <<_ACEOF
21685 #define HAVE_SCALBN 1
21686 _ACEOF
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21694 $as_echo_n "checking for scalbnl... " >&6; }
21695 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21696 $as_echo_n "(cached) " >&6
21697 else
21698 if test x$gcc_no_link = xyes; then
21699 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21704 #ifdef HAVE_COMPLEX_H
21705 #include <complex.h>
21706 #endif
21707 #ifdef HAVE_MATH_H
21708 #include <math.h>
21709 #endif
21711 int (*ptr)() = (int (*)())scalbnl;
21714 main ()
21716 return 0;
21719 _ACEOF
21720 if ac_fn_c_try_link "$LINENO"; then :
21721 gcc_cv_math_func_scalbnl=yes
21722 else
21723 gcc_cv_math_func_scalbnl=no
21725 rm -f core conftest.err conftest.$ac_objext \
21726 conftest$ac_exeext conftest.$ac_ext
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21729 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21730 if test $gcc_cv_math_func_scalbnl = yes; then
21732 cat >>confdefs.h <<_ACEOF
21733 #define HAVE_SCALBNL 1
21734 _ACEOF
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21742 $as_echo_n "checking for sinf... " >&6; }
21743 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21745 else
21746 if test x$gcc_no_link = xyes; then
21747 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21752 #ifdef HAVE_COMPLEX_H
21753 #include <complex.h>
21754 #endif
21755 #ifdef HAVE_MATH_H
21756 #include <math.h>
21757 #endif
21759 int (*ptr)() = (int (*)())sinf;
21762 main ()
21764 return 0;
21767 _ACEOF
21768 if ac_fn_c_try_link "$LINENO"; then :
21769 gcc_cv_math_func_sinf=yes
21770 else
21771 gcc_cv_math_func_sinf=no
21773 rm -f core conftest.err conftest.$ac_objext \
21774 conftest$ac_exeext conftest.$ac_ext
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21777 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21778 if test $gcc_cv_math_func_sinf = yes; then
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_SINF 1
21782 _ACEOF
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21790 $as_echo_n "checking for sin... " >&6; }
21791 if test "${gcc_cv_math_func_sin+set}" = set; then :
21792 $as_echo_n "(cached) " >&6
21793 else
21794 if test x$gcc_no_link = xyes; then
21795 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21800 #ifdef HAVE_COMPLEX_H
21801 #include <complex.h>
21802 #endif
21803 #ifdef HAVE_MATH_H
21804 #include <math.h>
21805 #endif
21807 int (*ptr)() = (int (*)())sin;
21810 main ()
21812 return 0;
21815 _ACEOF
21816 if ac_fn_c_try_link "$LINENO"; then :
21817 gcc_cv_math_func_sin=yes
21818 else
21819 gcc_cv_math_func_sin=no
21821 rm -f core conftest.err conftest.$ac_objext \
21822 conftest$ac_exeext conftest.$ac_ext
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21825 $as_echo "$gcc_cv_math_func_sin" >&6; }
21826 if test $gcc_cv_math_func_sin = yes; then
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_SIN 1
21830 _ACEOF
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21838 $as_echo_n "checking for sinl... " >&6; }
21839 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21841 else
21842 if test x$gcc_no_link = xyes; then
21843 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21848 #ifdef HAVE_COMPLEX_H
21849 #include <complex.h>
21850 #endif
21851 #ifdef HAVE_MATH_H
21852 #include <math.h>
21853 #endif
21855 int (*ptr)() = (int (*)())sinl;
21858 main ()
21860 return 0;
21863 _ACEOF
21864 if ac_fn_c_try_link "$LINENO"; then :
21865 gcc_cv_math_func_sinl=yes
21866 else
21867 gcc_cv_math_func_sinl=no
21869 rm -f core conftest.err conftest.$ac_objext \
21870 conftest$ac_exeext conftest.$ac_ext
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21873 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21874 if test $gcc_cv_math_func_sinl = yes; then
21876 cat >>confdefs.h <<_ACEOF
21877 #define HAVE_SINL 1
21878 _ACEOF
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21886 $as_echo_n "checking for csinf... " >&6; }
21887 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21889 else
21890 if test x$gcc_no_link = xyes; then
21891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h. */
21896 #ifdef HAVE_COMPLEX_H
21897 #include <complex.h>
21898 #endif
21899 #ifdef HAVE_MATH_H
21900 #include <math.h>
21901 #endif
21903 int (*ptr)() = (int (*)())csinf;
21906 main ()
21908 return 0;
21911 _ACEOF
21912 if ac_fn_c_try_link "$LINENO"; then :
21913 gcc_cv_math_func_csinf=yes
21914 else
21915 gcc_cv_math_func_csinf=no
21917 rm -f core conftest.err conftest.$ac_objext \
21918 conftest$ac_exeext conftest.$ac_ext
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21921 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21922 if test $gcc_cv_math_func_csinf = yes; then
21924 cat >>confdefs.h <<_ACEOF
21925 #define HAVE_CSINF 1
21926 _ACEOF
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21934 $as_echo_n "checking for csin... " >&6; }
21935 if test "${gcc_cv_math_func_csin+set}" = set; then :
21936 $as_echo_n "(cached) " >&6
21937 else
21938 if test x$gcc_no_link = xyes; then
21939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21944 #ifdef HAVE_COMPLEX_H
21945 #include <complex.h>
21946 #endif
21947 #ifdef HAVE_MATH_H
21948 #include <math.h>
21949 #endif
21951 int (*ptr)() = (int (*)())csin;
21954 main ()
21956 return 0;
21959 _ACEOF
21960 if ac_fn_c_try_link "$LINENO"; then :
21961 gcc_cv_math_func_csin=yes
21962 else
21963 gcc_cv_math_func_csin=no
21965 rm -f core conftest.err conftest.$ac_objext \
21966 conftest$ac_exeext conftest.$ac_ext
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21969 $as_echo "$gcc_cv_math_func_csin" >&6; }
21970 if test $gcc_cv_math_func_csin = yes; then
21972 cat >>confdefs.h <<_ACEOF
21973 #define HAVE_CSIN 1
21974 _ACEOF
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21982 $as_echo_n "checking for csinl... " >&6; }
21983 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 if test x$gcc_no_link = xyes; then
21987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21992 #ifdef HAVE_COMPLEX_H
21993 #include <complex.h>
21994 #endif
21995 #ifdef HAVE_MATH_H
21996 #include <math.h>
21997 #endif
21999 int (*ptr)() = (int (*)())csinl;
22002 main ()
22004 return 0;
22007 _ACEOF
22008 if ac_fn_c_try_link "$LINENO"; then :
22009 gcc_cv_math_func_csinl=yes
22010 else
22011 gcc_cv_math_func_csinl=no
22013 rm -f core conftest.err conftest.$ac_objext \
22014 conftest$ac_exeext conftest.$ac_ext
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22017 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22018 if test $gcc_cv_math_func_csinl = yes; then
22020 cat >>confdefs.h <<_ACEOF
22021 #define HAVE_CSINL 1
22022 _ACEOF
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22030 $as_echo_n "checking for sinhf... " >&6; }
22031 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 if test x$gcc_no_link = xyes; then
22035 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h. */
22040 #ifdef HAVE_COMPLEX_H
22041 #include <complex.h>
22042 #endif
22043 #ifdef HAVE_MATH_H
22044 #include <math.h>
22045 #endif
22047 int (*ptr)() = (int (*)())sinhf;
22050 main ()
22052 return 0;
22055 _ACEOF
22056 if ac_fn_c_try_link "$LINENO"; then :
22057 gcc_cv_math_func_sinhf=yes
22058 else
22059 gcc_cv_math_func_sinhf=no
22061 rm -f core conftest.err conftest.$ac_objext \
22062 conftest$ac_exeext conftest.$ac_ext
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22065 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22066 if test $gcc_cv_math_func_sinhf = yes; then
22068 cat >>confdefs.h <<_ACEOF
22069 #define HAVE_SINHF 1
22070 _ACEOF
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22078 $as_echo_n "checking for sinh... " >&6; }
22079 if test "${gcc_cv_math_func_sinh+set}" = set; then :
22080 $as_echo_n "(cached) " >&6
22081 else
22082 if test x$gcc_no_link = xyes; then
22083 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086 /* end confdefs.h. */
22088 #ifdef HAVE_COMPLEX_H
22089 #include <complex.h>
22090 #endif
22091 #ifdef HAVE_MATH_H
22092 #include <math.h>
22093 #endif
22095 int (*ptr)() = (int (*)())sinh;
22098 main ()
22100 return 0;
22103 _ACEOF
22104 if ac_fn_c_try_link "$LINENO"; then :
22105 gcc_cv_math_func_sinh=yes
22106 else
22107 gcc_cv_math_func_sinh=no
22109 rm -f core conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22113 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22114 if test $gcc_cv_math_func_sinh = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_SINH 1
22118 _ACEOF
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22126 $as_echo_n "checking for sinhl... " >&6; }
22127 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22128 $as_echo_n "(cached) " >&6
22129 else
22130 if test x$gcc_no_link = xyes; then
22131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h. */
22136 #ifdef HAVE_COMPLEX_H
22137 #include <complex.h>
22138 #endif
22139 #ifdef HAVE_MATH_H
22140 #include <math.h>
22141 #endif
22143 int (*ptr)() = (int (*)())sinhl;
22146 main ()
22148 return 0;
22151 _ACEOF
22152 if ac_fn_c_try_link "$LINENO"; then :
22153 gcc_cv_math_func_sinhl=yes
22154 else
22155 gcc_cv_math_func_sinhl=no
22157 rm -f core conftest.err conftest.$ac_objext \
22158 conftest$ac_exeext conftest.$ac_ext
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22161 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22162 if test $gcc_cv_math_func_sinhl = yes; then
22164 cat >>confdefs.h <<_ACEOF
22165 #define HAVE_SINHL 1
22166 _ACEOF
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22174 $as_echo_n "checking for csinhf... " >&6; }
22175 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22176 $as_echo_n "(cached) " >&6
22177 else
22178 if test x$gcc_no_link = xyes; then
22179 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22182 /* end confdefs.h. */
22184 #ifdef HAVE_COMPLEX_H
22185 #include <complex.h>
22186 #endif
22187 #ifdef HAVE_MATH_H
22188 #include <math.h>
22189 #endif
22191 int (*ptr)() = (int (*)())csinhf;
22194 main ()
22196 return 0;
22199 _ACEOF
22200 if ac_fn_c_try_link "$LINENO"; then :
22201 gcc_cv_math_func_csinhf=yes
22202 else
22203 gcc_cv_math_func_csinhf=no
22205 rm -f core conftest.err conftest.$ac_objext \
22206 conftest$ac_exeext conftest.$ac_ext
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22209 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22210 if test $gcc_cv_math_func_csinhf = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define HAVE_CSINHF 1
22214 _ACEOF
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22222 $as_echo_n "checking for csinh... " >&6; }
22223 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 if test x$gcc_no_link = xyes; then
22227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22232 #ifdef HAVE_COMPLEX_H
22233 #include <complex.h>
22234 #endif
22235 #ifdef HAVE_MATH_H
22236 #include <math.h>
22237 #endif
22239 int (*ptr)() = (int (*)())csinh;
22242 main ()
22244 return 0;
22247 _ACEOF
22248 if ac_fn_c_try_link "$LINENO"; then :
22249 gcc_cv_math_func_csinh=yes
22250 else
22251 gcc_cv_math_func_csinh=no
22253 rm -f core conftest.err conftest.$ac_objext \
22254 conftest$ac_exeext conftest.$ac_ext
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22257 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22258 if test $gcc_cv_math_func_csinh = yes; then
22260 cat >>confdefs.h <<_ACEOF
22261 #define HAVE_CSINH 1
22262 _ACEOF
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22270 $as_echo_n "checking for csinhl... " >&6; }
22271 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22273 else
22274 if test x$gcc_no_link = xyes; then
22275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22280 #ifdef HAVE_COMPLEX_H
22281 #include <complex.h>
22282 #endif
22283 #ifdef HAVE_MATH_H
22284 #include <math.h>
22285 #endif
22287 int (*ptr)() = (int (*)())csinhl;
22290 main ()
22292 return 0;
22295 _ACEOF
22296 if ac_fn_c_try_link "$LINENO"; then :
22297 gcc_cv_math_func_csinhl=yes
22298 else
22299 gcc_cv_math_func_csinhl=no
22301 rm -f core conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22305 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22306 if test $gcc_cv_math_func_csinhl = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define HAVE_CSINHL 1
22310 _ACEOF
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22318 $as_echo_n "checking for sqrtf... " >&6; }
22319 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22321 else
22322 if test x$gcc_no_link = xyes; then
22323 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h. */
22328 #ifdef HAVE_COMPLEX_H
22329 #include <complex.h>
22330 #endif
22331 #ifdef HAVE_MATH_H
22332 #include <math.h>
22333 #endif
22335 int (*ptr)() = (int (*)())sqrtf;
22338 main ()
22340 return 0;
22343 _ACEOF
22344 if ac_fn_c_try_link "$LINENO"; then :
22345 gcc_cv_math_func_sqrtf=yes
22346 else
22347 gcc_cv_math_func_sqrtf=no
22349 rm -f core conftest.err conftest.$ac_objext \
22350 conftest$ac_exeext conftest.$ac_ext
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22353 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22354 if test $gcc_cv_math_func_sqrtf = yes; then
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_SQRTF 1
22358 _ACEOF
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22366 $as_echo_n "checking for sqrt... " >&6; }
22367 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22368 $as_echo_n "(cached) " >&6
22369 else
22370 if test x$gcc_no_link = xyes; then
22371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h. */
22376 #ifdef HAVE_COMPLEX_H
22377 #include <complex.h>
22378 #endif
22379 #ifdef HAVE_MATH_H
22380 #include <math.h>
22381 #endif
22383 int (*ptr)() = (int (*)())sqrt;
22386 main ()
22388 return 0;
22391 _ACEOF
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 gcc_cv_math_func_sqrt=yes
22394 else
22395 gcc_cv_math_func_sqrt=no
22397 rm -f core conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext conftest.$ac_ext
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22401 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22402 if test $gcc_cv_math_func_sqrt = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_SQRT 1
22406 _ACEOF
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22414 $as_echo_n "checking for sqrtl... " >&6; }
22415 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22417 else
22418 if test x$gcc_no_link = xyes; then
22419 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h. */
22424 #ifdef HAVE_COMPLEX_H
22425 #include <complex.h>
22426 #endif
22427 #ifdef HAVE_MATH_H
22428 #include <math.h>
22429 #endif
22431 int (*ptr)() = (int (*)())sqrtl;
22434 main ()
22436 return 0;
22439 _ACEOF
22440 if ac_fn_c_try_link "$LINENO"; then :
22441 gcc_cv_math_func_sqrtl=yes
22442 else
22443 gcc_cv_math_func_sqrtl=no
22445 rm -f core conftest.err conftest.$ac_objext \
22446 conftest$ac_exeext conftest.$ac_ext
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22449 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22450 if test $gcc_cv_math_func_sqrtl = yes; then
22452 cat >>confdefs.h <<_ACEOF
22453 #define HAVE_SQRTL 1
22454 _ACEOF
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22462 $as_echo_n "checking for csqrtf... " >&6; }
22463 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22465 else
22466 if test x$gcc_no_link = xyes; then
22467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470 /* end confdefs.h. */
22472 #ifdef HAVE_COMPLEX_H
22473 #include <complex.h>
22474 #endif
22475 #ifdef HAVE_MATH_H
22476 #include <math.h>
22477 #endif
22479 int (*ptr)() = (int (*)())csqrtf;
22482 main ()
22484 return 0;
22487 _ACEOF
22488 if ac_fn_c_try_link "$LINENO"; then :
22489 gcc_cv_math_func_csqrtf=yes
22490 else
22491 gcc_cv_math_func_csqrtf=no
22493 rm -f core conftest.err conftest.$ac_objext \
22494 conftest$ac_exeext conftest.$ac_ext
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22497 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22498 if test $gcc_cv_math_func_csqrtf = yes; then
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_CSQRTF 1
22502 _ACEOF
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22510 $as_echo_n "checking for csqrt... " >&6; }
22511 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22514 if test x$gcc_no_link = xyes; then
22515 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22520 #ifdef HAVE_COMPLEX_H
22521 #include <complex.h>
22522 #endif
22523 #ifdef HAVE_MATH_H
22524 #include <math.h>
22525 #endif
22527 int (*ptr)() = (int (*)())csqrt;
22530 main ()
22532 return 0;
22535 _ACEOF
22536 if ac_fn_c_try_link "$LINENO"; then :
22537 gcc_cv_math_func_csqrt=yes
22538 else
22539 gcc_cv_math_func_csqrt=no
22541 rm -f core conftest.err conftest.$ac_objext \
22542 conftest$ac_exeext conftest.$ac_ext
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22545 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22546 if test $gcc_cv_math_func_csqrt = yes; then
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_CSQRT 1
22550 _ACEOF
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22558 $as_echo_n "checking for csqrtl... " >&6; }
22559 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22561 else
22562 if test x$gcc_no_link = xyes; then
22563 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h. */
22568 #ifdef HAVE_COMPLEX_H
22569 #include <complex.h>
22570 #endif
22571 #ifdef HAVE_MATH_H
22572 #include <math.h>
22573 #endif
22575 int (*ptr)() = (int (*)())csqrtl;
22578 main ()
22580 return 0;
22583 _ACEOF
22584 if ac_fn_c_try_link "$LINENO"; then :
22585 gcc_cv_math_func_csqrtl=yes
22586 else
22587 gcc_cv_math_func_csqrtl=no
22589 rm -f core conftest.err conftest.$ac_objext \
22590 conftest$ac_exeext conftest.$ac_ext
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22593 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22594 if test $gcc_cv_math_func_csqrtl = yes; then
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_CSQRTL 1
22598 _ACEOF
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22606 $as_echo_n "checking for tanf... " >&6; }
22607 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 if test x$gcc_no_link = xyes; then
22611 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614 /* end confdefs.h. */
22616 #ifdef HAVE_COMPLEX_H
22617 #include <complex.h>
22618 #endif
22619 #ifdef HAVE_MATH_H
22620 #include <math.h>
22621 #endif
22623 int (*ptr)() = (int (*)())tanf;
22626 main ()
22628 return 0;
22631 _ACEOF
22632 if ac_fn_c_try_link "$LINENO"; then :
22633 gcc_cv_math_func_tanf=yes
22634 else
22635 gcc_cv_math_func_tanf=no
22637 rm -f core conftest.err conftest.$ac_objext \
22638 conftest$ac_exeext conftest.$ac_ext
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22641 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22642 if test $gcc_cv_math_func_tanf = yes; then
22644 cat >>confdefs.h <<_ACEOF
22645 #define HAVE_TANF 1
22646 _ACEOF
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22654 $as_echo_n "checking for tan... " >&6; }
22655 if test "${gcc_cv_math_func_tan+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22657 else
22658 if test x$gcc_no_link = xyes; then
22659 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h. */
22664 #ifdef HAVE_COMPLEX_H
22665 #include <complex.h>
22666 #endif
22667 #ifdef HAVE_MATH_H
22668 #include <math.h>
22669 #endif
22671 int (*ptr)() = (int (*)())tan;
22674 main ()
22676 return 0;
22679 _ACEOF
22680 if ac_fn_c_try_link "$LINENO"; then :
22681 gcc_cv_math_func_tan=yes
22682 else
22683 gcc_cv_math_func_tan=no
22685 rm -f core conftest.err conftest.$ac_objext \
22686 conftest$ac_exeext conftest.$ac_ext
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22689 $as_echo "$gcc_cv_math_func_tan" >&6; }
22690 if test $gcc_cv_math_func_tan = yes; then
22692 cat >>confdefs.h <<_ACEOF
22693 #define HAVE_TAN 1
22694 _ACEOF
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22702 $as_echo_n "checking for tanl... " >&6; }
22703 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 if test x$gcc_no_link = xyes; then
22707 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22712 #ifdef HAVE_COMPLEX_H
22713 #include <complex.h>
22714 #endif
22715 #ifdef HAVE_MATH_H
22716 #include <math.h>
22717 #endif
22719 int (*ptr)() = (int (*)())tanl;
22722 main ()
22724 return 0;
22727 _ACEOF
22728 if ac_fn_c_try_link "$LINENO"; then :
22729 gcc_cv_math_func_tanl=yes
22730 else
22731 gcc_cv_math_func_tanl=no
22733 rm -f core conftest.err conftest.$ac_objext \
22734 conftest$ac_exeext conftest.$ac_ext
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22737 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22738 if test $gcc_cv_math_func_tanl = yes; then
22740 cat >>confdefs.h <<_ACEOF
22741 #define HAVE_TANL 1
22742 _ACEOF
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22750 $as_echo_n "checking for ctanf... " >&6; }
22751 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22752 $as_echo_n "(cached) " >&6
22753 else
22754 if test x$gcc_no_link = xyes; then
22755 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22760 #ifdef HAVE_COMPLEX_H
22761 #include <complex.h>
22762 #endif
22763 #ifdef HAVE_MATH_H
22764 #include <math.h>
22765 #endif
22767 int (*ptr)() = (int (*)())ctanf;
22770 main ()
22772 return 0;
22775 _ACEOF
22776 if ac_fn_c_try_link "$LINENO"; then :
22777 gcc_cv_math_func_ctanf=yes
22778 else
22779 gcc_cv_math_func_ctanf=no
22781 rm -f core conftest.err conftest.$ac_objext \
22782 conftest$ac_exeext conftest.$ac_ext
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22785 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22786 if test $gcc_cv_math_func_ctanf = yes; then
22788 cat >>confdefs.h <<_ACEOF
22789 #define HAVE_CTANF 1
22790 _ACEOF
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22798 $as_echo_n "checking for ctan... " >&6; }
22799 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22801 else
22802 if test x$gcc_no_link = xyes; then
22803 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h. */
22808 #ifdef HAVE_COMPLEX_H
22809 #include <complex.h>
22810 #endif
22811 #ifdef HAVE_MATH_H
22812 #include <math.h>
22813 #endif
22815 int (*ptr)() = (int (*)())ctan;
22818 main ()
22820 return 0;
22823 _ACEOF
22824 if ac_fn_c_try_link "$LINENO"; then :
22825 gcc_cv_math_func_ctan=yes
22826 else
22827 gcc_cv_math_func_ctan=no
22829 rm -f core conftest.err conftest.$ac_objext \
22830 conftest$ac_exeext conftest.$ac_ext
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22833 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22834 if test $gcc_cv_math_func_ctan = yes; then
22836 cat >>confdefs.h <<_ACEOF
22837 #define HAVE_CTAN 1
22838 _ACEOF
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22846 $as_echo_n "checking for ctanl... " >&6; }
22847 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22848 $as_echo_n "(cached) " >&6
22849 else
22850 if test x$gcc_no_link = xyes; then
22851 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854 /* end confdefs.h. */
22856 #ifdef HAVE_COMPLEX_H
22857 #include <complex.h>
22858 #endif
22859 #ifdef HAVE_MATH_H
22860 #include <math.h>
22861 #endif
22863 int (*ptr)() = (int (*)())ctanl;
22866 main ()
22868 return 0;
22871 _ACEOF
22872 if ac_fn_c_try_link "$LINENO"; then :
22873 gcc_cv_math_func_ctanl=yes
22874 else
22875 gcc_cv_math_func_ctanl=no
22877 rm -f core conftest.err conftest.$ac_objext \
22878 conftest$ac_exeext conftest.$ac_ext
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22881 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22882 if test $gcc_cv_math_func_ctanl = yes; then
22884 cat >>confdefs.h <<_ACEOF
22885 #define HAVE_CTANL 1
22886 _ACEOF
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22894 $as_echo_n "checking for tanhf... " >&6; }
22895 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22896 $as_echo_n "(cached) " >&6
22897 else
22898 if test x$gcc_no_link = xyes; then
22899 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22902 /* end confdefs.h. */
22904 #ifdef HAVE_COMPLEX_H
22905 #include <complex.h>
22906 #endif
22907 #ifdef HAVE_MATH_H
22908 #include <math.h>
22909 #endif
22911 int (*ptr)() = (int (*)())tanhf;
22914 main ()
22916 return 0;
22919 _ACEOF
22920 if ac_fn_c_try_link "$LINENO"; then :
22921 gcc_cv_math_func_tanhf=yes
22922 else
22923 gcc_cv_math_func_tanhf=no
22925 rm -f core conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22929 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22930 if test $gcc_cv_math_func_tanhf = yes; then
22932 cat >>confdefs.h <<_ACEOF
22933 #define HAVE_TANHF 1
22934 _ACEOF
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22942 $as_echo_n "checking for tanh... " >&6; }
22943 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22945 else
22946 if test x$gcc_no_link = xyes; then
22947 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22950 /* end confdefs.h. */
22952 #ifdef HAVE_COMPLEX_H
22953 #include <complex.h>
22954 #endif
22955 #ifdef HAVE_MATH_H
22956 #include <math.h>
22957 #endif
22959 int (*ptr)() = (int (*)())tanh;
22962 main ()
22964 return 0;
22967 _ACEOF
22968 if ac_fn_c_try_link "$LINENO"; then :
22969 gcc_cv_math_func_tanh=yes
22970 else
22971 gcc_cv_math_func_tanh=no
22973 rm -f core conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22977 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22978 if test $gcc_cv_math_func_tanh = yes; then
22980 cat >>confdefs.h <<_ACEOF
22981 #define HAVE_TANH 1
22982 _ACEOF
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22990 $as_echo_n "checking for tanhl... " >&6; }
22991 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22992 $as_echo_n "(cached) " >&6
22993 else
22994 if test x$gcc_no_link = xyes; then
22995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998 /* end confdefs.h. */
23000 #ifdef HAVE_COMPLEX_H
23001 #include <complex.h>
23002 #endif
23003 #ifdef HAVE_MATH_H
23004 #include <math.h>
23005 #endif
23007 int (*ptr)() = (int (*)())tanhl;
23010 main ()
23012 return 0;
23015 _ACEOF
23016 if ac_fn_c_try_link "$LINENO"; then :
23017 gcc_cv_math_func_tanhl=yes
23018 else
23019 gcc_cv_math_func_tanhl=no
23021 rm -f core conftest.err conftest.$ac_objext \
23022 conftest$ac_exeext conftest.$ac_ext
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23025 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23026 if test $gcc_cv_math_func_tanhl = yes; then
23028 cat >>confdefs.h <<_ACEOF
23029 #define HAVE_TANHL 1
23030 _ACEOF
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23038 $as_echo_n "checking for ctanhf... " >&6; }
23039 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
23040 $as_echo_n "(cached) " >&6
23041 else
23042 if test x$gcc_no_link = xyes; then
23043 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23048 #ifdef HAVE_COMPLEX_H
23049 #include <complex.h>
23050 #endif
23051 #ifdef HAVE_MATH_H
23052 #include <math.h>
23053 #endif
23055 int (*ptr)() = (int (*)())ctanhf;
23058 main ()
23060 return 0;
23063 _ACEOF
23064 if ac_fn_c_try_link "$LINENO"; then :
23065 gcc_cv_math_func_ctanhf=yes
23066 else
23067 gcc_cv_math_func_ctanhf=no
23069 rm -f core conftest.err conftest.$ac_objext \
23070 conftest$ac_exeext conftest.$ac_ext
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23073 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23074 if test $gcc_cv_math_func_ctanhf = yes; then
23076 cat >>confdefs.h <<_ACEOF
23077 #define HAVE_CTANHF 1
23078 _ACEOF
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23086 $as_echo_n "checking for ctanh... " >&6; }
23087 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
23088 $as_echo_n "(cached) " >&6
23089 else
23090 if test x$gcc_no_link = xyes; then
23091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23096 #ifdef HAVE_COMPLEX_H
23097 #include <complex.h>
23098 #endif
23099 #ifdef HAVE_MATH_H
23100 #include <math.h>
23101 #endif
23103 int (*ptr)() = (int (*)())ctanh;
23106 main ()
23108 return 0;
23111 _ACEOF
23112 if ac_fn_c_try_link "$LINENO"; then :
23113 gcc_cv_math_func_ctanh=yes
23114 else
23115 gcc_cv_math_func_ctanh=no
23117 rm -f core conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23121 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23122 if test $gcc_cv_math_func_ctanh = yes; then
23124 cat >>confdefs.h <<_ACEOF
23125 #define HAVE_CTANH 1
23126 _ACEOF
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23134 $as_echo_n "checking for ctanhl... " >&6; }
23135 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23137 else
23138 if test x$gcc_no_link = xyes; then
23139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h. */
23144 #ifdef HAVE_COMPLEX_H
23145 #include <complex.h>
23146 #endif
23147 #ifdef HAVE_MATH_H
23148 #include <math.h>
23149 #endif
23151 int (*ptr)() = (int (*)())ctanhl;
23154 main ()
23156 return 0;
23159 _ACEOF
23160 if ac_fn_c_try_link "$LINENO"; then :
23161 gcc_cv_math_func_ctanhl=yes
23162 else
23163 gcc_cv_math_func_ctanhl=no
23165 rm -f core conftest.err conftest.$ac_objext \
23166 conftest$ac_exeext conftest.$ac_ext
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23169 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23170 if test $gcc_cv_math_func_ctanhl = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define HAVE_CTANHL 1
23174 _ACEOF
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23182 $as_echo_n "checking for truncf... " >&6; }
23183 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 if test x$gcc_no_link = xyes; then
23187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h. */
23192 #ifdef HAVE_COMPLEX_H
23193 #include <complex.h>
23194 #endif
23195 #ifdef HAVE_MATH_H
23196 #include <math.h>
23197 #endif
23199 int (*ptr)() = (int (*)())truncf;
23202 main ()
23204 return 0;
23207 _ACEOF
23208 if ac_fn_c_try_link "$LINENO"; then :
23209 gcc_cv_math_func_truncf=yes
23210 else
23211 gcc_cv_math_func_truncf=no
23213 rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23217 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23218 if test $gcc_cv_math_func_truncf = yes; then
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_TRUNCF 1
23222 _ACEOF
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23230 $as_echo_n "checking for trunc... " >&6; }
23231 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23233 else
23234 if test x$gcc_no_link = xyes; then
23235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23238 /* end confdefs.h. */
23240 #ifdef HAVE_COMPLEX_H
23241 #include <complex.h>
23242 #endif
23243 #ifdef HAVE_MATH_H
23244 #include <math.h>
23245 #endif
23247 int (*ptr)() = (int (*)())trunc;
23250 main ()
23252 return 0;
23255 _ACEOF
23256 if ac_fn_c_try_link "$LINENO"; then :
23257 gcc_cv_math_func_trunc=yes
23258 else
23259 gcc_cv_math_func_trunc=no
23261 rm -f core conftest.err conftest.$ac_objext \
23262 conftest$ac_exeext conftest.$ac_ext
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23265 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23266 if test $gcc_cv_math_func_trunc = yes; then
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_TRUNC 1
23270 _ACEOF
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23278 $as_echo_n "checking for truncl... " >&6; }
23279 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23280 $as_echo_n "(cached) " >&6
23281 else
23282 if test x$gcc_no_link = xyes; then
23283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23286 /* end confdefs.h. */
23288 #ifdef HAVE_COMPLEX_H
23289 #include <complex.h>
23290 #endif
23291 #ifdef HAVE_MATH_H
23292 #include <math.h>
23293 #endif
23295 int (*ptr)() = (int (*)())truncl;
23298 main ()
23300 return 0;
23303 _ACEOF
23304 if ac_fn_c_try_link "$LINENO"; then :
23305 gcc_cv_math_func_truncl=yes
23306 else
23307 gcc_cv_math_func_truncl=no
23309 rm -f core conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23313 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23314 if test $gcc_cv_math_func_truncl = yes; then
23316 cat >>confdefs.h <<_ACEOF
23317 #define HAVE_TRUNCL 1
23318 _ACEOF
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23326 $as_echo_n "checking for erff... " >&6; }
23327 if test "${gcc_cv_math_func_erff+set}" = set; then :
23328 $as_echo_n "(cached) " >&6
23329 else
23330 if test x$gcc_no_link = xyes; then
23331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23334 /* end confdefs.h. */
23336 #ifdef HAVE_COMPLEX_H
23337 #include <complex.h>
23338 #endif
23339 #ifdef HAVE_MATH_H
23340 #include <math.h>
23341 #endif
23343 int (*ptr)() = (int (*)())erff;
23346 main ()
23348 return 0;
23351 _ACEOF
23352 if ac_fn_c_try_link "$LINENO"; then :
23353 gcc_cv_math_func_erff=yes
23354 else
23355 gcc_cv_math_func_erff=no
23357 rm -f core conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23361 $as_echo "$gcc_cv_math_func_erff" >&6; }
23362 if test $gcc_cv_math_func_erff = yes; then
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_ERFF 1
23366 _ACEOF
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23374 $as_echo_n "checking for erf... " >&6; }
23375 if test "${gcc_cv_math_func_erf+set}" = set; then :
23376 $as_echo_n "(cached) " >&6
23377 else
23378 if test x$gcc_no_link = xyes; then
23379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382 /* end confdefs.h. */
23384 #ifdef HAVE_COMPLEX_H
23385 #include <complex.h>
23386 #endif
23387 #ifdef HAVE_MATH_H
23388 #include <math.h>
23389 #endif
23391 int (*ptr)() = (int (*)())erf;
23394 main ()
23396 return 0;
23399 _ACEOF
23400 if ac_fn_c_try_link "$LINENO"; then :
23401 gcc_cv_math_func_erf=yes
23402 else
23403 gcc_cv_math_func_erf=no
23405 rm -f core conftest.err conftest.$ac_objext \
23406 conftest$ac_exeext conftest.$ac_ext
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23409 $as_echo "$gcc_cv_math_func_erf" >&6; }
23410 if test $gcc_cv_math_func_erf = yes; then
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_ERF 1
23414 _ACEOF
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23422 $as_echo_n "checking for erfcf... " >&6; }
23423 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23425 else
23426 if test x$gcc_no_link = xyes; then
23427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23430 /* end confdefs.h. */
23432 #ifdef HAVE_COMPLEX_H
23433 #include <complex.h>
23434 #endif
23435 #ifdef HAVE_MATH_H
23436 #include <math.h>
23437 #endif
23439 int (*ptr)() = (int (*)())erfcf;
23442 main ()
23444 return 0;
23447 _ACEOF
23448 if ac_fn_c_try_link "$LINENO"; then :
23449 gcc_cv_math_func_erfcf=yes
23450 else
23451 gcc_cv_math_func_erfcf=no
23453 rm -f core conftest.err conftest.$ac_objext \
23454 conftest$ac_exeext conftest.$ac_ext
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23457 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23458 if test $gcc_cv_math_func_erfcf = yes; then
23460 cat >>confdefs.h <<_ACEOF
23461 #define HAVE_ERFCF 1
23462 _ACEOF
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23470 $as_echo_n "checking for erfc... " >&6; }
23471 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23472 $as_echo_n "(cached) " >&6
23473 else
23474 if test x$gcc_no_link = xyes; then
23475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23480 #ifdef HAVE_COMPLEX_H
23481 #include <complex.h>
23482 #endif
23483 #ifdef HAVE_MATH_H
23484 #include <math.h>
23485 #endif
23487 int (*ptr)() = (int (*)())erfc;
23490 main ()
23492 return 0;
23495 _ACEOF
23496 if ac_fn_c_try_link "$LINENO"; then :
23497 gcc_cv_math_func_erfc=yes
23498 else
23499 gcc_cv_math_func_erfc=no
23501 rm -f core conftest.err conftest.$ac_objext \
23502 conftest$ac_exeext conftest.$ac_ext
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23505 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23506 if test $gcc_cv_math_func_erfc = yes; then
23508 cat >>confdefs.h <<_ACEOF
23509 #define HAVE_ERFC 1
23510 _ACEOF
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23518 $as_echo_n "checking for erfcl... " >&6; }
23519 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23520 $as_echo_n "(cached) " >&6
23521 else
23522 if test x$gcc_no_link = xyes; then
23523 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h. */
23528 #ifdef HAVE_COMPLEX_H
23529 #include <complex.h>
23530 #endif
23531 #ifdef HAVE_MATH_H
23532 #include <math.h>
23533 #endif
23535 int (*ptr)() = (int (*)())erfcl;
23538 main ()
23540 return 0;
23543 _ACEOF
23544 if ac_fn_c_try_link "$LINENO"; then :
23545 gcc_cv_math_func_erfcl=yes
23546 else
23547 gcc_cv_math_func_erfcl=no
23549 rm -f core conftest.err conftest.$ac_objext \
23550 conftest$ac_exeext conftest.$ac_ext
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23553 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23554 if test $gcc_cv_math_func_erfcl = yes; then
23556 cat >>confdefs.h <<_ACEOF
23557 #define HAVE_ERFCL 1
23558 _ACEOF
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23566 $as_echo_n "checking for j0f... " >&6; }
23567 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23569 else
23570 if test x$gcc_no_link = xyes; then
23571 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23574 /* end confdefs.h. */
23576 #ifdef HAVE_COMPLEX_H
23577 #include <complex.h>
23578 #endif
23579 #ifdef HAVE_MATH_H
23580 #include <math.h>
23581 #endif
23583 int (*ptr)() = (int (*)())j0f;
23586 main ()
23588 return 0;
23591 _ACEOF
23592 if ac_fn_c_try_link "$LINENO"; then :
23593 gcc_cv_math_func_j0f=yes
23594 else
23595 gcc_cv_math_func_j0f=no
23597 rm -f core conftest.err conftest.$ac_objext \
23598 conftest$ac_exeext conftest.$ac_ext
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23601 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23602 if test $gcc_cv_math_func_j0f = yes; then
23604 cat >>confdefs.h <<_ACEOF
23605 #define HAVE_J0F 1
23606 _ACEOF
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23614 $as_echo_n "checking for j0... " >&6; }
23615 if test "${gcc_cv_math_func_j0+set}" = set; then :
23616 $as_echo_n "(cached) " >&6
23617 else
23618 if test x$gcc_no_link = xyes; then
23619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h. */
23624 #ifdef HAVE_COMPLEX_H
23625 #include <complex.h>
23626 #endif
23627 #ifdef HAVE_MATH_H
23628 #include <math.h>
23629 #endif
23631 int (*ptr)() = (int (*)())j0;
23634 main ()
23636 return 0;
23639 _ACEOF
23640 if ac_fn_c_try_link "$LINENO"; then :
23641 gcc_cv_math_func_j0=yes
23642 else
23643 gcc_cv_math_func_j0=no
23645 rm -f core conftest.err conftest.$ac_objext \
23646 conftest$ac_exeext conftest.$ac_ext
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23649 $as_echo "$gcc_cv_math_func_j0" >&6; }
23650 if test $gcc_cv_math_func_j0 = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define HAVE_J0 1
23654 _ACEOF
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23662 $as_echo_n "checking for j1f... " >&6; }
23663 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23664 $as_echo_n "(cached) " >&6
23665 else
23666 if test x$gcc_no_link = xyes; then
23667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23672 #ifdef HAVE_COMPLEX_H
23673 #include <complex.h>
23674 #endif
23675 #ifdef HAVE_MATH_H
23676 #include <math.h>
23677 #endif
23679 int (*ptr)() = (int (*)())j1f;
23682 main ()
23684 return 0;
23687 _ACEOF
23688 if ac_fn_c_try_link "$LINENO"; then :
23689 gcc_cv_math_func_j1f=yes
23690 else
23691 gcc_cv_math_func_j1f=no
23693 rm -f core conftest.err conftest.$ac_objext \
23694 conftest$ac_exeext conftest.$ac_ext
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23697 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23698 if test $gcc_cv_math_func_j1f = yes; then
23700 cat >>confdefs.h <<_ACEOF
23701 #define HAVE_J1F 1
23702 _ACEOF
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23710 $as_echo_n "checking for j1... " >&6; }
23711 if test "${gcc_cv_math_func_j1+set}" = set; then :
23712 $as_echo_n "(cached) " >&6
23713 else
23714 if test x$gcc_no_link = xyes; then
23715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23720 #ifdef HAVE_COMPLEX_H
23721 #include <complex.h>
23722 #endif
23723 #ifdef HAVE_MATH_H
23724 #include <math.h>
23725 #endif
23727 int (*ptr)() = (int (*)())j1;
23730 main ()
23732 return 0;
23735 _ACEOF
23736 if ac_fn_c_try_link "$LINENO"; then :
23737 gcc_cv_math_func_j1=yes
23738 else
23739 gcc_cv_math_func_j1=no
23741 rm -f core conftest.err conftest.$ac_objext \
23742 conftest$ac_exeext conftest.$ac_ext
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23745 $as_echo "$gcc_cv_math_func_j1" >&6; }
23746 if test $gcc_cv_math_func_j1 = yes; then
23748 cat >>confdefs.h <<_ACEOF
23749 #define HAVE_J1 1
23750 _ACEOF
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23758 $as_echo_n "checking for jnf... " >&6; }
23759 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23760 $as_echo_n "(cached) " >&6
23761 else
23762 if test x$gcc_no_link = xyes; then
23763 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23766 /* end confdefs.h. */
23768 #ifdef HAVE_COMPLEX_H
23769 #include <complex.h>
23770 #endif
23771 #ifdef HAVE_MATH_H
23772 #include <math.h>
23773 #endif
23775 int (*ptr)() = (int (*)())jnf;
23778 main ()
23780 return 0;
23783 _ACEOF
23784 if ac_fn_c_try_link "$LINENO"; then :
23785 gcc_cv_math_func_jnf=yes
23786 else
23787 gcc_cv_math_func_jnf=no
23789 rm -f core conftest.err conftest.$ac_objext \
23790 conftest$ac_exeext conftest.$ac_ext
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23793 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23794 if test $gcc_cv_math_func_jnf = yes; then
23796 cat >>confdefs.h <<_ACEOF
23797 #define HAVE_JNF 1
23798 _ACEOF
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23806 $as_echo_n "checking for jn... " >&6; }
23807 if test "${gcc_cv_math_func_jn+set}" = set; then :
23808 $as_echo_n "(cached) " >&6
23809 else
23810 if test x$gcc_no_link = xyes; then
23811 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23814 /* end confdefs.h. */
23816 #ifdef HAVE_COMPLEX_H
23817 #include <complex.h>
23818 #endif
23819 #ifdef HAVE_MATH_H
23820 #include <math.h>
23821 #endif
23823 int (*ptr)() = (int (*)())jn;
23826 main ()
23828 return 0;
23831 _ACEOF
23832 if ac_fn_c_try_link "$LINENO"; then :
23833 gcc_cv_math_func_jn=yes
23834 else
23835 gcc_cv_math_func_jn=no
23837 rm -f core conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23841 $as_echo "$gcc_cv_math_func_jn" >&6; }
23842 if test $gcc_cv_math_func_jn = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_JN 1
23846 _ACEOF
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23854 $as_echo_n "checking for jnl... " >&6; }
23855 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23856 $as_echo_n "(cached) " >&6
23857 else
23858 if test x$gcc_no_link = xyes; then
23859 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23862 /* end confdefs.h. */
23864 #ifdef HAVE_COMPLEX_H
23865 #include <complex.h>
23866 #endif
23867 #ifdef HAVE_MATH_H
23868 #include <math.h>
23869 #endif
23871 int (*ptr)() = (int (*)())jnl;
23874 main ()
23876 return 0;
23879 _ACEOF
23880 if ac_fn_c_try_link "$LINENO"; then :
23881 gcc_cv_math_func_jnl=yes
23882 else
23883 gcc_cv_math_func_jnl=no
23885 rm -f core conftest.err conftest.$ac_objext \
23886 conftest$ac_exeext conftest.$ac_ext
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23889 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23890 if test $gcc_cv_math_func_jnl = yes; then
23892 cat >>confdefs.h <<_ACEOF
23893 #define HAVE_JNL 1
23894 _ACEOF
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23902 $as_echo_n "checking for y0f... " >&6; }
23903 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23904 $as_echo_n "(cached) " >&6
23905 else
23906 if test x$gcc_no_link = xyes; then
23907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23910 /* end confdefs.h. */
23912 #ifdef HAVE_COMPLEX_H
23913 #include <complex.h>
23914 #endif
23915 #ifdef HAVE_MATH_H
23916 #include <math.h>
23917 #endif
23919 int (*ptr)() = (int (*)())y0f;
23922 main ()
23924 return 0;
23927 _ACEOF
23928 if ac_fn_c_try_link "$LINENO"; then :
23929 gcc_cv_math_func_y0f=yes
23930 else
23931 gcc_cv_math_func_y0f=no
23933 rm -f core conftest.err conftest.$ac_objext \
23934 conftest$ac_exeext conftest.$ac_ext
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23937 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23938 if test $gcc_cv_math_func_y0f = yes; then
23940 cat >>confdefs.h <<_ACEOF
23941 #define HAVE_Y0F 1
23942 _ACEOF
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23950 $as_echo_n "checking for y0... " >&6; }
23951 if test "${gcc_cv_math_func_y0+set}" = set; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 if test x$gcc_no_link = xyes; then
23955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23958 /* end confdefs.h. */
23960 #ifdef HAVE_COMPLEX_H
23961 #include <complex.h>
23962 #endif
23963 #ifdef HAVE_MATH_H
23964 #include <math.h>
23965 #endif
23967 int (*ptr)() = (int (*)())y0;
23970 main ()
23972 return 0;
23975 _ACEOF
23976 if ac_fn_c_try_link "$LINENO"; then :
23977 gcc_cv_math_func_y0=yes
23978 else
23979 gcc_cv_math_func_y0=no
23981 rm -f core conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23985 $as_echo "$gcc_cv_math_func_y0" >&6; }
23986 if test $gcc_cv_math_func_y0 = yes; then
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_Y0 1
23990 _ACEOF
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23998 $as_echo_n "checking for y1f... " >&6; }
23999 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24000 $as_echo_n "(cached) " >&6
24001 else
24002 if test x$gcc_no_link = xyes; then
24003 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24006 /* end confdefs.h. */
24008 #ifdef HAVE_COMPLEX_H
24009 #include <complex.h>
24010 #endif
24011 #ifdef HAVE_MATH_H
24012 #include <math.h>
24013 #endif
24015 int (*ptr)() = (int (*)())y1f;
24018 main ()
24020 return 0;
24023 _ACEOF
24024 if ac_fn_c_try_link "$LINENO"; then :
24025 gcc_cv_math_func_y1f=yes
24026 else
24027 gcc_cv_math_func_y1f=no
24029 rm -f core conftest.err conftest.$ac_objext \
24030 conftest$ac_exeext conftest.$ac_ext
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24033 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24034 if test $gcc_cv_math_func_y1f = yes; then
24036 cat >>confdefs.h <<_ACEOF
24037 #define HAVE_Y1F 1
24038 _ACEOF
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24046 $as_echo_n "checking for y1... " >&6; }
24047 if test "${gcc_cv_math_func_y1+set}" = set; then :
24048 $as_echo_n "(cached) " >&6
24049 else
24050 if test x$gcc_no_link = xyes; then
24051 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 /* end confdefs.h. */
24056 #ifdef HAVE_COMPLEX_H
24057 #include <complex.h>
24058 #endif
24059 #ifdef HAVE_MATH_H
24060 #include <math.h>
24061 #endif
24063 int (*ptr)() = (int (*)())y1;
24066 main ()
24068 return 0;
24071 _ACEOF
24072 if ac_fn_c_try_link "$LINENO"; then :
24073 gcc_cv_math_func_y1=yes
24074 else
24075 gcc_cv_math_func_y1=no
24077 rm -f core conftest.err conftest.$ac_objext \
24078 conftest$ac_exeext conftest.$ac_ext
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24081 $as_echo "$gcc_cv_math_func_y1" >&6; }
24082 if test $gcc_cv_math_func_y1 = yes; then
24084 cat >>confdefs.h <<_ACEOF
24085 #define HAVE_Y1 1
24086 _ACEOF
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24094 $as_echo_n "checking for ynf... " >&6; }
24095 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24097 else
24098 if test x$gcc_no_link = xyes; then
24099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102 /* end confdefs.h. */
24104 #ifdef HAVE_COMPLEX_H
24105 #include <complex.h>
24106 #endif
24107 #ifdef HAVE_MATH_H
24108 #include <math.h>
24109 #endif
24111 int (*ptr)() = (int (*)())ynf;
24114 main ()
24116 return 0;
24119 _ACEOF
24120 if ac_fn_c_try_link "$LINENO"; then :
24121 gcc_cv_math_func_ynf=yes
24122 else
24123 gcc_cv_math_func_ynf=no
24125 rm -f core conftest.err conftest.$ac_objext \
24126 conftest$ac_exeext conftest.$ac_ext
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24129 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24130 if test $gcc_cv_math_func_ynf = yes; then
24132 cat >>confdefs.h <<_ACEOF
24133 #define HAVE_YNF 1
24134 _ACEOF
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24142 $as_echo_n "checking for yn... " >&6; }
24143 if test "${gcc_cv_math_func_yn+set}" = set; then :
24144 $as_echo_n "(cached) " >&6
24145 else
24146 if test x$gcc_no_link = xyes; then
24147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24152 #ifdef HAVE_COMPLEX_H
24153 #include <complex.h>
24154 #endif
24155 #ifdef HAVE_MATH_H
24156 #include <math.h>
24157 #endif
24159 int (*ptr)() = (int (*)())yn;
24162 main ()
24164 return 0;
24167 _ACEOF
24168 if ac_fn_c_try_link "$LINENO"; then :
24169 gcc_cv_math_func_yn=yes
24170 else
24171 gcc_cv_math_func_yn=no
24173 rm -f core conftest.err conftest.$ac_objext \
24174 conftest$ac_exeext conftest.$ac_ext
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24177 $as_echo "$gcc_cv_math_func_yn" >&6; }
24178 if test $gcc_cv_math_func_yn = yes; then
24180 cat >>confdefs.h <<_ACEOF
24181 #define HAVE_YN 1
24182 _ACEOF
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24190 $as_echo_n "checking for ynl... " >&6; }
24191 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 if test x$gcc_no_link = xyes; then
24195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198 /* end confdefs.h. */
24200 #ifdef HAVE_COMPLEX_H
24201 #include <complex.h>
24202 #endif
24203 #ifdef HAVE_MATH_H
24204 #include <math.h>
24205 #endif
24207 int (*ptr)() = (int (*)())ynl;
24210 main ()
24212 return 0;
24215 _ACEOF
24216 if ac_fn_c_try_link "$LINENO"; then :
24217 gcc_cv_math_func_ynl=yes
24218 else
24219 gcc_cv_math_func_ynl=no
24221 rm -f core conftest.err conftest.$ac_objext \
24222 conftest$ac_exeext conftest.$ac_ext
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24225 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24226 if test $gcc_cv_math_func_ynl = yes; then
24228 cat >>confdefs.h <<_ACEOF
24229 #define HAVE_YNL 1
24230 _ACEOF
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24238 $as_echo_n "checking for tgamma... " >&6; }
24239 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24241 else
24242 if test x$gcc_no_link = xyes; then
24243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h. */
24248 #ifdef HAVE_COMPLEX_H
24249 #include <complex.h>
24250 #endif
24251 #ifdef HAVE_MATH_H
24252 #include <math.h>
24253 #endif
24255 int (*ptr)() = (int (*)())tgamma;
24258 main ()
24260 return 0;
24263 _ACEOF
24264 if ac_fn_c_try_link "$LINENO"; then :
24265 gcc_cv_math_func_tgamma=yes
24266 else
24267 gcc_cv_math_func_tgamma=no
24269 rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24273 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24274 if test $gcc_cv_math_func_tgamma = yes; then
24276 cat >>confdefs.h <<_ACEOF
24277 #define HAVE_TGAMMA 1
24278 _ACEOF
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24286 $as_echo_n "checking for tgammaf... " >&6; }
24287 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 if test x$gcc_no_link = xyes; then
24291 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 /* end confdefs.h. */
24296 #ifdef HAVE_COMPLEX_H
24297 #include <complex.h>
24298 #endif
24299 #ifdef HAVE_MATH_H
24300 #include <math.h>
24301 #endif
24303 int (*ptr)() = (int (*)())tgammaf;
24306 main ()
24308 return 0;
24311 _ACEOF
24312 if ac_fn_c_try_link "$LINENO"; then :
24313 gcc_cv_math_func_tgammaf=yes
24314 else
24315 gcc_cv_math_func_tgammaf=no
24317 rm -f core conftest.err conftest.$ac_objext \
24318 conftest$ac_exeext conftest.$ac_ext
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24321 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24322 if test $gcc_cv_math_func_tgammaf = yes; then
24324 cat >>confdefs.h <<_ACEOF
24325 #define HAVE_TGAMMAF 1
24326 _ACEOF
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24334 $as_echo_n "checking for lgamma... " >&6; }
24335 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24336 $as_echo_n "(cached) " >&6
24337 else
24338 if test x$gcc_no_link = xyes; then
24339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h. */
24344 #ifdef HAVE_COMPLEX_H
24345 #include <complex.h>
24346 #endif
24347 #ifdef HAVE_MATH_H
24348 #include <math.h>
24349 #endif
24351 int (*ptr)() = (int (*)())lgamma;
24354 main ()
24356 return 0;
24359 _ACEOF
24360 if ac_fn_c_try_link "$LINENO"; then :
24361 gcc_cv_math_func_lgamma=yes
24362 else
24363 gcc_cv_math_func_lgamma=no
24365 rm -f core conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24369 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24370 if test $gcc_cv_math_func_lgamma = yes; then
24372 cat >>confdefs.h <<_ACEOF
24373 #define HAVE_LGAMMA 1
24374 _ACEOF
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24382 $as_echo_n "checking for lgammaf... " >&6; }
24383 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24385 else
24386 if test x$gcc_no_link = xyes; then
24387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h. */
24392 #ifdef HAVE_COMPLEX_H
24393 #include <complex.h>
24394 #endif
24395 #ifdef HAVE_MATH_H
24396 #include <math.h>
24397 #endif
24399 int (*ptr)() = (int (*)())lgammaf;
24402 main ()
24404 return 0;
24407 _ACEOF
24408 if ac_fn_c_try_link "$LINENO"; then :
24409 gcc_cv_math_func_lgammaf=yes
24410 else
24411 gcc_cv_math_func_lgammaf=no
24413 rm -f core conftest.err conftest.$ac_objext \
24414 conftest$ac_exeext conftest.$ac_ext
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24417 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24418 if test $gcc_cv_math_func_lgammaf = yes; then
24420 cat >>confdefs.h <<_ACEOF
24421 #define HAVE_LGAMMAF 1
24422 _ACEOF
24427 # Check for GFORTRAN_C99_1.1 funcs
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24432 $as_echo_n "checking for cacos... " >&6; }
24433 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 if test x$gcc_no_link = xyes; then
24437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h. */
24442 #ifdef HAVE_COMPLEX_H
24443 #include <complex.h>
24444 #endif
24445 #ifdef HAVE_MATH_H
24446 #include <math.h>
24447 #endif
24449 int (*ptr)() = (int (*)())cacos;
24452 main ()
24454 return 0;
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 gcc_cv_math_func_cacos=yes
24460 else
24461 gcc_cv_math_func_cacos=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24467 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24468 if test $gcc_cv_math_func_cacos = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_CACOS 1
24472 _ACEOF
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24480 $as_echo_n "checking for cacosf... " >&6; }
24481 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24482 $as_echo_n "(cached) " >&6
24483 else
24484 if test x$gcc_no_link = xyes; then
24485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488 /* end confdefs.h. */
24490 #ifdef HAVE_COMPLEX_H
24491 #include <complex.h>
24492 #endif
24493 #ifdef HAVE_MATH_H
24494 #include <math.h>
24495 #endif
24497 int (*ptr)() = (int (*)())cacosf;
24500 main ()
24502 return 0;
24505 _ACEOF
24506 if ac_fn_c_try_link "$LINENO"; then :
24507 gcc_cv_math_func_cacosf=yes
24508 else
24509 gcc_cv_math_func_cacosf=no
24511 rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24515 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24516 if test $gcc_cv_math_func_cacosf = yes; then
24518 cat >>confdefs.h <<_ACEOF
24519 #define HAVE_CACOSF 1
24520 _ACEOF
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24528 $as_echo_n "checking for cacosh... " >&6; }
24529 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 if test x$gcc_no_link = xyes; then
24533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24538 #ifdef HAVE_COMPLEX_H
24539 #include <complex.h>
24540 #endif
24541 #ifdef HAVE_MATH_H
24542 #include <math.h>
24543 #endif
24545 int (*ptr)() = (int (*)())cacosh;
24548 main ()
24550 return 0;
24553 _ACEOF
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 gcc_cv_math_func_cacosh=yes
24556 else
24557 gcc_cv_math_func_cacosh=no
24559 rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24563 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24564 if test $gcc_cv_math_func_cacosh = yes; then
24566 cat >>confdefs.h <<_ACEOF
24567 #define HAVE_CACOSH 1
24568 _ACEOF
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24576 $as_echo_n "checking for cacoshf... " >&6; }
24577 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 if test x$gcc_no_link = xyes; then
24581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24584 /* end confdefs.h. */
24586 #ifdef HAVE_COMPLEX_H
24587 #include <complex.h>
24588 #endif
24589 #ifdef HAVE_MATH_H
24590 #include <math.h>
24591 #endif
24593 int (*ptr)() = (int (*)())cacoshf;
24596 main ()
24598 return 0;
24601 _ACEOF
24602 if ac_fn_c_try_link "$LINENO"; then :
24603 gcc_cv_math_func_cacoshf=yes
24604 else
24605 gcc_cv_math_func_cacoshf=no
24607 rm -f core conftest.err conftest.$ac_objext \
24608 conftest$ac_exeext conftest.$ac_ext
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24611 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24612 if test $gcc_cv_math_func_cacoshf = yes; then
24614 cat >>confdefs.h <<_ACEOF
24615 #define HAVE_CACOSHF 1
24616 _ACEOF
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24624 $as_echo_n "checking for cacoshl... " >&6; }
24625 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24627 else
24628 if test x$gcc_no_link = xyes; then
24629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632 /* end confdefs.h. */
24634 #ifdef HAVE_COMPLEX_H
24635 #include <complex.h>
24636 #endif
24637 #ifdef HAVE_MATH_H
24638 #include <math.h>
24639 #endif
24641 int (*ptr)() = (int (*)())cacoshl;
24644 main ()
24646 return 0;
24649 _ACEOF
24650 if ac_fn_c_try_link "$LINENO"; then :
24651 gcc_cv_math_func_cacoshl=yes
24652 else
24653 gcc_cv_math_func_cacoshl=no
24655 rm -f core conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24659 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24660 if test $gcc_cv_math_func_cacoshl = yes; then
24662 cat >>confdefs.h <<_ACEOF
24663 #define HAVE_CACOSHL 1
24664 _ACEOF
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24672 $as_echo_n "checking for cacosl... " >&6; }
24673 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 if test x$gcc_no_link = xyes; then
24677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24680 /* end confdefs.h. */
24682 #ifdef HAVE_COMPLEX_H
24683 #include <complex.h>
24684 #endif
24685 #ifdef HAVE_MATH_H
24686 #include <math.h>
24687 #endif
24689 int (*ptr)() = (int (*)())cacosl;
24692 main ()
24694 return 0;
24697 _ACEOF
24698 if ac_fn_c_try_link "$LINENO"; then :
24699 gcc_cv_math_func_cacosl=yes
24700 else
24701 gcc_cv_math_func_cacosl=no
24703 rm -f core conftest.err conftest.$ac_objext \
24704 conftest$ac_exeext conftest.$ac_ext
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24707 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24708 if test $gcc_cv_math_func_cacosl = yes; then
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_CACOSL 1
24712 _ACEOF
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24720 $as_echo_n "checking for casin... " >&6; }
24721 if test "${gcc_cv_math_func_casin+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 if test x$gcc_no_link = xyes; then
24725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24728 /* end confdefs.h. */
24730 #ifdef HAVE_COMPLEX_H
24731 #include <complex.h>
24732 #endif
24733 #ifdef HAVE_MATH_H
24734 #include <math.h>
24735 #endif
24737 int (*ptr)() = (int (*)())casin;
24740 main ()
24742 return 0;
24745 _ACEOF
24746 if ac_fn_c_try_link "$LINENO"; then :
24747 gcc_cv_math_func_casin=yes
24748 else
24749 gcc_cv_math_func_casin=no
24751 rm -f core conftest.err conftest.$ac_objext \
24752 conftest$ac_exeext conftest.$ac_ext
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24755 $as_echo "$gcc_cv_math_func_casin" >&6; }
24756 if test $gcc_cv_math_func_casin = yes; then
24758 cat >>confdefs.h <<_ACEOF
24759 #define HAVE_CASIN 1
24760 _ACEOF
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24768 $as_echo_n "checking for casinf... " >&6; }
24769 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24771 else
24772 if test x$gcc_no_link = xyes; then
24773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24776 /* end confdefs.h. */
24778 #ifdef HAVE_COMPLEX_H
24779 #include <complex.h>
24780 #endif
24781 #ifdef HAVE_MATH_H
24782 #include <math.h>
24783 #endif
24785 int (*ptr)() = (int (*)())casinf;
24788 main ()
24790 return 0;
24793 _ACEOF
24794 if ac_fn_c_try_link "$LINENO"; then :
24795 gcc_cv_math_func_casinf=yes
24796 else
24797 gcc_cv_math_func_casinf=no
24799 rm -f core conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24803 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24804 if test $gcc_cv_math_func_casinf = yes; then
24806 cat >>confdefs.h <<_ACEOF
24807 #define HAVE_CASINF 1
24808 _ACEOF
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24816 $as_echo_n "checking for casinh... " >&6; }
24817 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24818 $as_echo_n "(cached) " >&6
24819 else
24820 if test x$gcc_no_link = xyes; then
24821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24824 /* end confdefs.h. */
24826 #ifdef HAVE_COMPLEX_H
24827 #include <complex.h>
24828 #endif
24829 #ifdef HAVE_MATH_H
24830 #include <math.h>
24831 #endif
24833 int (*ptr)() = (int (*)())casinh;
24836 main ()
24838 return 0;
24841 _ACEOF
24842 if ac_fn_c_try_link "$LINENO"; then :
24843 gcc_cv_math_func_casinh=yes
24844 else
24845 gcc_cv_math_func_casinh=no
24847 rm -f core conftest.err conftest.$ac_objext \
24848 conftest$ac_exeext conftest.$ac_ext
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24851 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24852 if test $gcc_cv_math_func_casinh = yes; then
24854 cat >>confdefs.h <<_ACEOF
24855 #define HAVE_CASINH 1
24856 _ACEOF
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24864 $as_echo_n "checking for casinhf... " >&6; }
24865 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 if test x$gcc_no_link = xyes; then
24869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h. */
24874 #ifdef HAVE_COMPLEX_H
24875 #include <complex.h>
24876 #endif
24877 #ifdef HAVE_MATH_H
24878 #include <math.h>
24879 #endif
24881 int (*ptr)() = (int (*)())casinhf;
24884 main ()
24886 return 0;
24889 _ACEOF
24890 if ac_fn_c_try_link "$LINENO"; then :
24891 gcc_cv_math_func_casinhf=yes
24892 else
24893 gcc_cv_math_func_casinhf=no
24895 rm -f core conftest.err conftest.$ac_objext \
24896 conftest$ac_exeext conftest.$ac_ext
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24899 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24900 if test $gcc_cv_math_func_casinhf = yes; then
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_CASINHF 1
24904 _ACEOF
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24912 $as_echo_n "checking for casinhl... " >&6; }
24913 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24915 else
24916 if test x$gcc_no_link = xyes; then
24917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24920 /* end confdefs.h. */
24922 #ifdef HAVE_COMPLEX_H
24923 #include <complex.h>
24924 #endif
24925 #ifdef HAVE_MATH_H
24926 #include <math.h>
24927 #endif
24929 int (*ptr)() = (int (*)())casinhl;
24932 main ()
24934 return 0;
24937 _ACEOF
24938 if ac_fn_c_try_link "$LINENO"; then :
24939 gcc_cv_math_func_casinhl=yes
24940 else
24941 gcc_cv_math_func_casinhl=no
24943 rm -f core conftest.err conftest.$ac_objext \
24944 conftest$ac_exeext conftest.$ac_ext
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24947 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24948 if test $gcc_cv_math_func_casinhl = yes; then
24950 cat >>confdefs.h <<_ACEOF
24951 #define HAVE_CASINHL 1
24952 _ACEOF
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24960 $as_echo_n "checking for casinl... " >&6; }
24961 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 if test x$gcc_no_link = xyes; then
24965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h. */
24970 #ifdef HAVE_COMPLEX_H
24971 #include <complex.h>
24972 #endif
24973 #ifdef HAVE_MATH_H
24974 #include <math.h>
24975 #endif
24977 int (*ptr)() = (int (*)())casinl;
24980 main ()
24982 return 0;
24985 _ACEOF
24986 if ac_fn_c_try_link "$LINENO"; then :
24987 gcc_cv_math_func_casinl=yes
24988 else
24989 gcc_cv_math_func_casinl=no
24991 rm -f core conftest.err conftest.$ac_objext \
24992 conftest$ac_exeext conftest.$ac_ext
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24995 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24996 if test $gcc_cv_math_func_casinl = yes; then
24998 cat >>confdefs.h <<_ACEOF
24999 #define HAVE_CASINL 1
25000 _ACEOF
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25008 $as_echo_n "checking for catan... " >&6; }
25009 if test "${gcc_cv_math_func_catan+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 if test x$gcc_no_link = xyes; then
25013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016 /* end confdefs.h. */
25018 #ifdef HAVE_COMPLEX_H
25019 #include <complex.h>
25020 #endif
25021 #ifdef HAVE_MATH_H
25022 #include <math.h>
25023 #endif
25025 int (*ptr)() = (int (*)())catan;
25028 main ()
25030 return 0;
25033 _ACEOF
25034 if ac_fn_c_try_link "$LINENO"; then :
25035 gcc_cv_math_func_catan=yes
25036 else
25037 gcc_cv_math_func_catan=no
25039 rm -f core conftest.err conftest.$ac_objext \
25040 conftest$ac_exeext conftest.$ac_ext
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25043 $as_echo "$gcc_cv_math_func_catan" >&6; }
25044 if test $gcc_cv_math_func_catan = yes; then
25046 cat >>confdefs.h <<_ACEOF
25047 #define HAVE_CATAN 1
25048 _ACEOF
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25056 $as_echo_n "checking for catanf... " >&6; }
25057 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25058 $as_echo_n "(cached) " >&6
25059 else
25060 if test x$gcc_no_link = xyes; then
25061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25064 /* end confdefs.h. */
25066 #ifdef HAVE_COMPLEX_H
25067 #include <complex.h>
25068 #endif
25069 #ifdef HAVE_MATH_H
25070 #include <math.h>
25071 #endif
25073 int (*ptr)() = (int (*)())catanf;
25076 main ()
25078 return 0;
25081 _ACEOF
25082 if ac_fn_c_try_link "$LINENO"; then :
25083 gcc_cv_math_func_catanf=yes
25084 else
25085 gcc_cv_math_func_catanf=no
25087 rm -f core conftest.err conftest.$ac_objext \
25088 conftest$ac_exeext conftest.$ac_ext
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25091 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25092 if test $gcc_cv_math_func_catanf = yes; then
25094 cat >>confdefs.h <<_ACEOF
25095 #define HAVE_CATANF 1
25096 _ACEOF
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25104 $as_echo_n "checking for catanh... " >&6; }
25105 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25106 $as_echo_n "(cached) " >&6
25107 else
25108 if test x$gcc_no_link = xyes; then
25109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25114 #ifdef HAVE_COMPLEX_H
25115 #include <complex.h>
25116 #endif
25117 #ifdef HAVE_MATH_H
25118 #include <math.h>
25119 #endif
25121 int (*ptr)() = (int (*)())catanh;
25124 main ()
25126 return 0;
25129 _ACEOF
25130 if ac_fn_c_try_link "$LINENO"; then :
25131 gcc_cv_math_func_catanh=yes
25132 else
25133 gcc_cv_math_func_catanh=no
25135 rm -f core conftest.err conftest.$ac_objext \
25136 conftest$ac_exeext conftest.$ac_ext
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25139 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25140 if test $gcc_cv_math_func_catanh = yes; then
25142 cat >>confdefs.h <<_ACEOF
25143 #define HAVE_CATANH 1
25144 _ACEOF
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25152 $as_echo_n "checking for catanhf... " >&6; }
25153 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25155 else
25156 if test x$gcc_no_link = xyes; then
25157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160 /* end confdefs.h. */
25162 #ifdef HAVE_COMPLEX_H
25163 #include <complex.h>
25164 #endif
25165 #ifdef HAVE_MATH_H
25166 #include <math.h>
25167 #endif
25169 int (*ptr)() = (int (*)())catanhf;
25172 main ()
25174 return 0;
25177 _ACEOF
25178 if ac_fn_c_try_link "$LINENO"; then :
25179 gcc_cv_math_func_catanhf=yes
25180 else
25181 gcc_cv_math_func_catanhf=no
25183 rm -f core conftest.err conftest.$ac_objext \
25184 conftest$ac_exeext conftest.$ac_ext
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25187 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25188 if test $gcc_cv_math_func_catanhf = yes; then
25190 cat >>confdefs.h <<_ACEOF
25191 #define HAVE_CATANHF 1
25192 _ACEOF
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25200 $as_echo_n "checking for catanhl... " >&6; }
25201 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 if test x$gcc_no_link = xyes; then
25205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25208 /* end confdefs.h. */
25210 #ifdef HAVE_COMPLEX_H
25211 #include <complex.h>
25212 #endif
25213 #ifdef HAVE_MATH_H
25214 #include <math.h>
25215 #endif
25217 int (*ptr)() = (int (*)())catanhl;
25220 main ()
25222 return 0;
25225 _ACEOF
25226 if ac_fn_c_try_link "$LINENO"; then :
25227 gcc_cv_math_func_catanhl=yes
25228 else
25229 gcc_cv_math_func_catanhl=no
25231 rm -f core conftest.err conftest.$ac_objext \
25232 conftest$ac_exeext conftest.$ac_ext
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25235 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25236 if test $gcc_cv_math_func_catanhl = yes; then
25238 cat >>confdefs.h <<_ACEOF
25239 #define HAVE_CATANHL 1
25240 _ACEOF
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25248 $as_echo_n "checking for catanl... " >&6; }
25249 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25252 if test x$gcc_no_link = xyes; then
25253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25258 #ifdef HAVE_COMPLEX_H
25259 #include <complex.h>
25260 #endif
25261 #ifdef HAVE_MATH_H
25262 #include <math.h>
25263 #endif
25265 int (*ptr)() = (int (*)())catanl;
25268 main ()
25270 return 0;
25273 _ACEOF
25274 if ac_fn_c_try_link "$LINENO"; then :
25275 gcc_cv_math_func_catanl=yes
25276 else
25277 gcc_cv_math_func_catanl=no
25279 rm -f core conftest.err conftest.$ac_objext \
25280 conftest$ac_exeext conftest.$ac_ext
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25283 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25284 if test $gcc_cv_math_func_catanl = yes; then
25286 cat >>confdefs.h <<_ACEOF
25287 #define HAVE_CATANL 1
25288 _ACEOF
25293 # On AIX, clog is present in libm as __clog
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25295 $as_echo_n "checking for __clog in -lm... " >&6; }
25296 if test "${ac_cv_lib_m___clog+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25298 else
25299 ac_check_lib_save_LIBS=$LIBS
25300 LIBS="-lm $LIBS"
25301 if test x$gcc_no_link = xyes; then
25302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char __clog ();
25315 main ()
25317 return __clog ();
25319 return 0;
25321 _ACEOF
25322 if ac_fn_c_try_link "$LINENO"; then :
25323 ac_cv_lib_m___clog=yes
25324 else
25325 ac_cv_lib_m___clog=no
25327 rm -f core conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25332 $as_echo "$ac_cv_lib_m___clog" >&6; }
25333 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25335 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25340 # Check whether the system has a working stat()
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25343 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25344 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25348 if test "$cross_compiling" = yes; then :
25350 case "${target}" in
25351 *mingw*) libgfor_cv_have_working_stat=no ;;
25352 *) libgfor_cv_have_working_stat=yes;;
25353 esac
25354 else
25355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25356 /* end confdefs.h. */
25358 #include <stdio.h>
25359 #include <sys/types.h>
25360 #include <sys/stat.h>
25361 #include <unistd.h>
25363 int main ()
25365 FILE *f, *g;
25366 struct stat st1, st2;
25368 f = fopen ("foo", "w");
25369 g = fopen ("bar", "w");
25370 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25371 return 1;
25372 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25373 return 1;
25374 fclose(f);
25375 fclose(g);
25376 return 0;
25378 _ACEOF
25379 if ac_fn_c_try_run "$LINENO"; then :
25380 libgfor_cv_have_working_stat=yes
25381 else
25382 libgfor_cv_have_working_stat=no
25384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25385 conftest.$ac_objext conftest.beam conftest.$ac_ext
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25390 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25391 if test x"$libgfor_cv_have_working_stat" = xyes; then
25393 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25397 # Check whether __mingw_snprintf() is present
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25400 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25401 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25403 else
25405 if test x$gcc_no_link = xyes; then
25406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25411 #include <stdio.h>
25412 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25415 main ()
25418 __mingw_snprintf (NULL, 0, "%d\n", 1);
25421 return 0;
25423 _ACEOF
25424 if ac_fn_c_try_link "$LINENO"; then :
25425 eval "libgfor_cv_have_mingw_snprintf=yes"
25426 else
25427 eval "libgfor_cv_have_mingw_snprintf=no"
25429 rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25434 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25435 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25437 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25442 # Check whether libquadmath should be used
25443 # Check whether --enable-libquadmath-support was given.
25444 if test "${enable_libquadmath_support+set}" = set; then :
25445 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25446 else
25447 ENABLE_LIBQUADMATH_SUPPORT=yes
25450 enable_libquadmath_support=
25451 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25452 enable_libquadmath_support=no
25455 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25457 LIBQUADSPEC=
25459 if test "x$enable_libquadmath_support" != xno; then
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25462 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25463 if test "${libgfor_cv_have_float128+set}" = set; then :
25464 $as_echo_n "(cached) " >&6
25465 else
25467 if test x$gcc_no_link = xyes; then
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25471 typedef _Complex float __attribute__((mode(TC))) __complex128;
25473 __float128 foo (__float128 x)
25476 __complex128 z1, z2;
25478 z1 = x;
25479 z2 = x / 7.Q;
25480 z2 /= z1;
25482 return (__float128) z2;
25485 __float128 bar (__float128 x)
25487 return x * __builtin_huge_valq ();
25491 main ()
25494 foo (1.2Q);
25495 bar (1.2Q);
25498 return 0;
25500 _ACEOF
25501 if ac_fn_c_try_compile "$LINENO"; then :
25503 libgfor_cv_have_float128=yes
25505 else
25507 libgfor_cv_have_float128=no
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 else
25512 if test x$gcc_no_link = xyes; then
25513 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25516 /* end confdefs.h. */
25518 typedef _Complex float __attribute__((mode(TC))) __complex128;
25520 __float128 foo (__float128 x)
25523 __complex128 z1, z2;
25525 z1 = x;
25526 z2 = x / 7.Q;
25527 z2 /= z1;
25529 return (__float128) z2;
25532 __float128 bar (__float128 x)
25534 return x * __builtin_huge_valq ();
25538 main ()
25541 foo (1.2Q);
25542 bar (1.2Q);
25545 return 0;
25547 _ACEOF
25548 if ac_fn_c_try_link "$LINENO"; then :
25550 libgfor_cv_have_float128=yes
25552 else
25554 libgfor_cv_have_float128=no
25557 rm -f core conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext conftest.$ac_ext
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25562 $as_echo "$libgfor_cv_have_float128" >&6; }
25564 if test "x$libgfor_cv_have_float128" = xyes; then
25566 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25569 ac_xsave_c_werror_flag=$ac_c_werror_flag
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25571 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25572 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25574 else
25576 # Test for native Solaris options first.
25577 # No whitespace after -z to pass it through -Wl.
25578 libgfor_cv_as_needed_option="-zignore"
25579 libgfor_cv_no_as_needed_option="-zrecord"
25580 save_LDFLAGS="$LDFLAGS"
25581 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25582 libgfor_cv_have_as_needed=no
25584 ac_c_werror_flag=yes
25585 if test x$gcc_no_link = xyes; then
25586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h. */
25592 main ()
25596 return 0;
25598 _ACEOF
25599 if ac_fn_c_try_link "$LINENO"; then :
25600 libgfor_cv_have_as_needed=yes
25601 else
25602 libgfor_cv_have_as_needed=no
25604 rm -f core conftest.err conftest.$ac_objext \
25605 conftest$ac_exeext conftest.$ac_ext
25606 LDFLAGS="$save_LDFLAGS"
25607 if test "x$libgfor_cv_have_as_needed" = xno; then
25608 libgfor_cv_as_needed_option="--as-needed"
25609 libgfor_cv_no_as_needed_option="--no-as-needed"
25610 save_LDFLAGS="$LDFLAGS"
25611 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25612 libgfor_cv_have_as_needed=no
25614 ac_c_werror_flag=yes
25615 if test x$gcc_no_link = xyes; then
25616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25619 /* end confdefs.h. */
25622 main ()
25626 return 0;
25628 _ACEOF
25629 if ac_fn_c_try_link "$LINENO"; then :
25630 libgfor_cv_have_as_needed=yes
25631 else
25632 libgfor_cv_have_as_needed=no
25634 rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25636 LDFLAGS="$save_LDFLAGS"
25638 ac_c_werror_flag=$ac_xsave_c_werror_flag
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25642 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25644 if test "x$libgfor_cv_have_as_needed" = xyes; then
25645 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25646 else
25647 LIBQUADSPEC="-lquadmath"
25649 if test -f ../libquadmath/libquadmath.la; then
25650 LIBQUADLIB=../libquadmath/libquadmath.la
25651 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25652 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25653 else
25654 LIBQUADLIB="-lquadmath"
25655 LIBQUADLIB_DEP=
25656 LIBQUADINCLUDE=
25659 else
25660 # for --disable-quadmath
25661 LIBQUADLIB=
25662 LIBQUADLIB_DEP=
25663 LIBQUADINCLUDE=
25671 if test "x$libgfor_cv_have_float128" = xyes; then
25672 LIBGFOR_BUILD_QUAD_TRUE=
25673 LIBGFOR_BUILD_QUAD_FALSE='#'
25674 else
25675 LIBGFOR_BUILD_QUAD_TRUE='#'
25676 LIBGFOR_BUILD_QUAD_FALSE=
25681 # Check for GNU libc feenableexcept
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25683 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25684 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25687 ac_check_lib_save_LIBS=$LIBS
25688 LIBS="-lm $LIBS"
25689 if test x$gcc_no_link = xyes; then
25690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h. */
25695 /* Override any GCC internal prototype to avoid an error.
25696 Use char because int might match the return type of a GCC
25697 builtin and then its argument prototype would still apply. */
25698 #ifdef __cplusplus
25699 extern "C"
25700 #endif
25701 char feenableexcept ();
25703 main ()
25705 return feenableexcept ();
25707 return 0;
25709 _ACEOF
25710 if ac_fn_c_try_link "$LINENO"; then :
25711 ac_cv_lib_m_feenableexcept=yes
25712 else
25713 ac_cv_lib_m_feenableexcept=no
25715 rm -f core conftest.err conftest.$ac_objext \
25716 conftest$ac_exeext conftest.$ac_ext
25717 LIBS=$ac_check_lib_save_LIBS
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25720 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25721 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25722 have_feenableexcept=yes
25723 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25728 # At least for glibc, clock_gettime is in librt. But don't
25729 # pull that in if it still doesn't give us the function we want. This
25730 # test is copied from libgomp, and modified to not link in -lrt as
25731 # libgfortran calls clock_gettime via a weak reference if it's found
25732 # in librt.
25733 if test "$ac_cv_func_clock_gettime" = no; then
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25735 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25736 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25737 $as_echo_n "(cached) " >&6
25738 else
25739 ac_check_lib_save_LIBS=$LIBS
25740 LIBS="-lrt $LIBS"
25741 if test x$gcc_no_link = xyes; then
25742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745 /* end confdefs.h. */
25747 /* Override any GCC internal prototype to avoid an error.
25748 Use char because int might match the return type of a GCC
25749 builtin and then its argument prototype would still apply. */
25750 #ifdef __cplusplus
25751 extern "C"
25752 #endif
25753 char clock_gettime ();
25755 main ()
25757 return clock_gettime ();
25759 return 0;
25761 _ACEOF
25762 if ac_fn_c_try_link "$LINENO"; then :
25763 ac_cv_lib_rt_clock_gettime=yes
25764 else
25765 ac_cv_lib_rt_clock_gettime=no
25767 rm -f core conftest.err conftest.$ac_objext \
25768 conftest$ac_exeext conftest.$ac_ext
25769 LIBS=$ac_check_lib_save_LIBS
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25772 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25773 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25775 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25781 # Check for SysV fpsetmask
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25784 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25785 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25787 else
25789 if test x$gcc_no_link = xyes; then
25790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25793 /* end confdefs.h. */
25795 #if HAVE_FLOATINGPOINT_H
25796 # include <floatingpoint.h>
25797 #endif /* HAVE_FLOATINGPOINT_H */
25798 #if HAVE_IEEEFP_H
25799 # include <ieeefp.h>
25800 #endif /* HAVE_IEEEFP_H */
25802 main ()
25804 fpsetmask(0);
25806 return 0;
25808 _ACEOF
25809 if ac_fn_c_try_link "$LINENO"; then :
25810 eval "libgfor_cv_have_fpsetmask=yes"
25811 else
25812 eval "libgfor_cv_have_fpsetmask=no"
25814 rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext conftest.$ac_ext
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25819 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25820 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25821 have_fpsetmask=yes
25823 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25827 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25828 #ifdef HAVE_IEEEFP_H
25829 #include <ieeefp.h>
25830 #endif
25831 #include <math.h>
25834 if test "x$ac_cv_type_fp_except" = x""yes; then :
25836 cat >>confdefs.h <<_ACEOF
25837 #define HAVE_FP_EXCEPT 1
25838 _ACEOF
25842 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25843 #ifdef HAVE_IEEEFP_H
25844 #include <ieeefp.h>
25845 #endif
25846 #include <math.h>
25849 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25851 cat >>confdefs.h <<_ACEOF
25852 #define HAVE_FP_EXCEPT_T 1
25853 _ACEOF
25858 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25859 #ifdef HAVE_IEEEFP_H
25860 #include <ieeefp.h>
25861 #endif
25862 #include <math.h>
25865 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25867 cat >>confdefs.h <<_ACEOF
25868 #define HAVE_FP_RND 1
25869 _ACEOF
25873 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25874 #ifdef HAVE_IEEEFP_H
25875 #include <ieeefp.h>
25876 #endif
25877 #include <math.h>
25880 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25882 cat >>confdefs.h <<_ACEOF
25883 #define HAVE_FP_RND_T 1
25884 _ACEOF
25890 # Check whether we have fpsetsticky or fpresetsticky
25891 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25892 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25893 have_fpsetsticky=yes
25894 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25898 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25899 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25900 have_fpresetsticky=yes
25901 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25906 # Check for AIX fp_trap and fp_enable
25907 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25908 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25909 have_fp_trap=yes
25910 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25914 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25915 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25916 have_fp_enable=yes
25917 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25922 # Check if _SOFT_FLOAT is defined
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25925 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25926 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25927 $as_echo_n "(cached) " >&6
25928 else
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h. */
25933 main ()
25936 #ifdef _SOFT_FLOAT
25937 int ok;
25938 #else
25939 choke me
25940 #endif
25943 return 0;
25945 _ACEOF
25946 if ac_fn_c_try_compile "$LINENO"; then :
25947 ac_cv_defined__SOFT_FLOAT=yes
25948 else
25949 ac_cv_defined__SOFT_FLOAT=no
25951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25954 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25955 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25956 have_soft_float=yes
25959 # Runs configure.host to set up necessary host-dependent shell variables.
25960 # We then display a message about it, and propagate them through the
25961 # build chain.
25962 . ${srcdir}/configure.host
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25964 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25966 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25967 FPU_HOST_HEADER=config/${fpu_host}.h
25970 # Whether we will build the IEEE modules
25971 if test x${ieee_support} = xyes; then
25972 IEEE_SUPPORT_TRUE=
25973 IEEE_SUPPORT_FALSE='#'
25974 else
25975 IEEE_SUPPORT_TRUE='#'
25976 IEEE_SUPPORT_FALSE=
25981 # Some targets require additional compiler options for IEEE compatibility.
25982 IEEE_FLAGS="${ieee_flags}"
25986 # Check for POSIX getpwuid_r
25988 # There are two versions of getpwuid_r, the POSIX one with 5
25989 # arguments, and another one with 4 arguments used by at least HP-UX
25990 # 10.2.
25991 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25993 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25994 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25995 $as_echo_n "(cached) " >&6
25996 else
25998 if test x$gcc_no_link = xyes; then
25999 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h. */
26004 #include <stdio.h>
26005 #include <sys/types.h>
26006 #include <pwd.h>
26008 main ()
26011 getpwuid_r(0, NULL, NULL, 0, NULL);
26014 return 0;
26016 _ACEOF
26017 if ac_fn_c_try_link "$LINENO"; then :
26018 libgfor_cv_posix_getpwuid_r="yes"
26019 else
26020 libgfor_cv_posix_getpwuid_r="no"
26022 rm -f core conftest.err conftest.$ac_objext \
26023 conftest$ac_exeext conftest.$ac_ext
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26026 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26028 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26030 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26035 # Check out attribute support.
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26038 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26039 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26040 $as_echo_n "(cached) " >&6
26041 else
26043 save_CFLAGS="$CFLAGS"
26044 CFLAGS="$CFLAGS -Werror"
26045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046 /* end confdefs.h. */
26047 void __attribute__((visibility("hidden"))) foo(void) { }
26049 main ()
26053 return 0;
26055 _ACEOF
26056 if ac_fn_c_try_compile "$LINENO"; then :
26057 libgfor_cv_have_attribute_visibility=yes
26058 else
26059 libgfor_cv_have_attribute_visibility=no
26061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 CFLAGS="$save_CFLAGS"
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26065 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26066 if test $libgfor_cv_have_attribute_visibility = yes; then
26068 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26073 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26074 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26075 $as_echo_n "(cached) " >&6
26076 else
26078 if test x$gcc_no_link = xyes; then
26079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26082 /* end confdefs.h. */
26084 void foo(void) { }
26085 extern void bar(void) __attribute__((alias("foo")));
26087 main ()
26089 bar();
26091 return 0;
26093 _ACEOF
26094 if ac_fn_c_try_link "$LINENO"; then :
26095 libgfor_cv_have_attribute_alias=yes
26096 else
26097 libgfor_cv_have_attribute_alias=no
26099 rm -f core conftest.err conftest.$ac_objext \
26100 conftest$ac_exeext conftest.$ac_ext
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26103 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26104 if test $libgfor_cv_have_attribute_alias = yes; then
26106 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26110 # Check out sync builtins support.
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26113 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26114 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26116 else
26118 if test x$gcc_no_link = xyes; then
26119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26122 /* end confdefs.h. */
26123 int foovar = 0;
26125 main ()
26128 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26129 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26131 return 0;
26133 _ACEOF
26134 if ac_fn_c_try_link "$LINENO"; then :
26135 libgfor_cv_have_sync_fetch_and_add=yes
26136 else
26137 libgfor_cv_have_sync_fetch_and_add=no
26139 rm -f core conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext conftest.$ac_ext
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26143 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26144 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26146 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26150 # Check out #pragma weak.
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26153 $as_echo_n "checking whether pragma weak works... " >&6; }
26154 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26155 $as_echo_n "(cached) " >&6
26156 else
26158 gfor_save_CFLAGS="$CFLAGS"
26159 CFLAGS="$CFLAGS -Wunknown-pragmas"
26160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26161 /* end confdefs.h. */
26163 void foo (void);
26164 #pragma weak foo
26167 main ()
26169 if (foo) foo ();
26171 return 0;
26173 _ACEOF
26174 if ac_fn_c_try_compile "$LINENO"; then :
26175 libgfor_cv_have_pragma_weak=yes
26176 else
26177 libgfor_cv_have_pragma_weak=no
26179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26182 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26183 if test $libgfor_cv_have_pragma_weak = yes; then
26185 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26188 case "$host" in
26189 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26191 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26194 esac
26196 # Check out weakref support.
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26199 $as_echo_n "checking whether the target supports weakref... " >&6; }
26200 if test "${libgfor_cv_have_weakref+set}" = set; then :
26201 $as_echo_n "(cached) " >&6
26202 else
26204 save_CFLAGS="$CFLAGS"
26205 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26206 if test x$gcc_no_link = xyes; then
26207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210 /* end confdefs.h. */
26212 static int mytoto (int) __attribute__((__weakref__("toto")));
26215 main ()
26217 return (mytoto != 0);
26219 return 0;
26221 _ACEOF
26222 if ac_fn_c_try_link "$LINENO"; then :
26223 libgfor_cv_have_weakref=yes
26224 else
26225 libgfor_cv_have_weakref=no
26227 rm -f core conftest.err conftest.$ac_objext \
26228 conftest$ac_exeext conftest.$ac_ext
26229 CFLAGS="$save_CFLAGS"
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26232 $as_echo "$libgfor_cv_have_weakref" >&6; }
26233 if test $libgfor_cv_have_weakref = yes; then
26235 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26239 # Various other checks on target
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26242 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26243 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26244 $as_echo_n "(cached) " >&6
26245 else
26247 if test "$cross_compiling" = yes; then :
26249 case "${target}" in
26250 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26251 *) libgfor_cv_have_unlink_open_file=yes;;
26252 esac
26253 else
26254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26255 /* end confdefs.h. */
26257 #include <errno.h>
26258 #include <fcntl.h>
26259 #include <unistd.h>
26260 #include <sys/stat.h>
26262 int main ()
26264 int fd;
26266 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26267 if (fd <= 0)
26268 return 0;
26269 if (unlink ("testfile") == -1)
26270 return 1;
26271 write (fd, "This is a test\n", 15);
26272 close (fd);
26274 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26275 return 0;
26276 else
26277 return 1;
26279 _ACEOF
26280 if ac_fn_c_try_run "$LINENO"; then :
26281 libgfor_cv_have_unlink_open_file=yes
26282 else
26283 libgfor_cv_have_unlink_open_file=no
26285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26286 conftest.$ac_objext conftest.beam conftest.$ac_ext
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26291 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26292 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26294 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26298 # Check whether line terminator is LF or CRLF
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26301 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26302 if test "${libgfor_cv_have_crlf+set}" = set; then :
26303 $as_echo_n "(cached) " >&6
26304 else
26306 if test "$cross_compiling" = yes; then :
26308 case "${target}" in
26309 *mingw*) libgfor_cv_have_crlf=yes ;;
26310 *) libgfor_cv_have_crlf=no;;
26311 esac
26312 else
26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h. */
26316 /* This test program should exit with status 0 if system uses a CRLF as
26317 line terminator, and status 1 otherwise.
26318 Since it is used to check for mingw systems, and should return 0 in any
26319 other case, in case of a failure we will not use CRLF. */
26320 #include <sys/stat.h>
26321 #include <stdlib.h>
26322 #include <fcntl.h>
26323 #include <stdio.h>
26325 int main ()
26327 #ifndef O_BINARY
26328 exit(1);
26329 #else
26330 int fd, bytes;
26331 char buff[5];
26333 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26334 if (fd < 0)
26335 exit(1);
26336 if (write (fd, "\n", 1) < 0)
26337 perror ("write");
26339 close (fd);
26341 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26342 exit(1);
26343 bytes = read (fd, buff, 5);
26344 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26345 exit(0);
26346 else
26347 exit(1);
26348 #endif
26350 _ACEOF
26351 if ac_fn_c_try_run "$LINENO"; then :
26352 libgfor_cv_have_crlf=yes
26353 else
26354 libgfor_cv_have_crlf=no
26356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26357 conftest.$ac_objext conftest.beam conftest.$ac_ext
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26362 $as_echo "$libgfor_cv_have_crlf" >&6; }
26363 if test x"$libgfor_cv_have_crlf" = xyes; then
26365 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26369 # Check whether we support AVX extensions
26371 ac_save_CFLAGS="$CFLAGS"
26372 CFLAGS="-O2 -mavx"
26373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26374 /* end confdefs.h. */
26376 void _mm256_zeroall (void)
26378 __builtin_ia32_vzeroall ();
26381 main ()
26385 return 0;
26387 _ACEOF
26388 if ac_fn_c_try_compile "$LINENO"; then :
26390 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394 CFLAGS="$ac_save_CFLAGS"
26397 # Check wether we support AVX2 extensions
26399 ac_save_CFLAGS="$CFLAGS"
26400 CFLAGS="-O2 -mavx2"
26401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402 /* end confdefs.h. */
26404 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26405 __v4di
26406 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26408 return __builtin_ia32_andnotsi256 (__X, __Y);
26411 main ()
26415 return 0;
26417 _ACEOF
26418 if ac_fn_c_try_compile "$LINENO"; then :
26420 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 CFLAGS="$ac_save_CFLAGS"
26427 # Check wether we support AVX512f extensions
26429 ac_save_CFLAGS="$CFLAGS"
26430 CFLAGS="-O2 -mavx512f"
26431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432 /* end confdefs.h. */
26434 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26435 __m512d _mm512_add (__m512d a)
26437 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26438 /* For -m64/-mx32 also verify that code will work even if
26439 the target uses call saved zmm16+ and needs to emit
26440 unwind info for them (e.g. on mingw). See PR79127. */
26441 #ifdef __x86_64__
26442 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26443 #endif
26444 return b;
26447 main ()
26451 return 0;
26453 _ACEOF
26454 if ac_fn_c_try_compile "$LINENO"; then :
26456 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26460 CFLAGS="$ac_save_CFLAGS"
26463 # Check for FMA3 extensions
26465 ac_save_CFLAGS="$CFLAGS"
26466 CFLAGS="-O2 -mfma -mno-fma4"
26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h. */
26470 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26471 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26472 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26474 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26475 (__v4sf)__B,
26476 (__v4sf)__C);
26479 main ()
26483 return 0;
26485 _ACEOF
26486 if ac_fn_c_try_compile "$LINENO"; then :
26488 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492 CFLAGS="$ac_save_CFLAGS"
26495 # Check for FMA4 extensions
26497 ac_save_CFLAGS="$CFLAGS"
26498 CFLAGS="-O2 -mfma4 -mno-fma"
26499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26500 /* end confdefs.h. */
26502 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26503 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26504 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26506 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26507 (__v4sf)__B,
26508 (__v4sf)__C);
26511 main ()
26515 return 0;
26517 _ACEOF
26518 if ac_fn_c_try_compile "$LINENO"; then :
26520 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524 CFLAGS="$ac_save_CFLAGS"
26527 # Check if AVX128 works
26529 ac_save_CFLAGS="$CFLAGS"
26530 CFLAGS="-O2 -mavx -mprefer-avx128"
26531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h. */
26534 void foo()
26538 main ()
26542 return 0;
26544 _ACEOF
26545 if ac_fn_c_try_compile "$LINENO"; then :
26547 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26549 if true; then
26550 HAVE_AVX128_TRUE=
26551 HAVE_AVX128_FALSE='#'
26552 else
26553 HAVE_AVX128_TRUE='#'
26554 HAVE_AVX128_FALSE=
26557 else
26558 if false; then
26559 HAVE_AVX128_TRUE=
26560 HAVE_AVX128_FALSE='#'
26561 else
26562 HAVE_AVX128_TRUE='#'
26563 HAVE_AVX128_FALSE=
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 CFLAGS="$ac_save_CFLAGS"
26571 # Determine what GCC version number to use in filesystem paths.
26573 get_gcc_base_ver="cat"
26575 # Check whether --with-gcc-major-version-only was given.
26576 if test "${with_gcc_major_version_only+set}" = set; then :
26577 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26578 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
26586 cat >confcache <<\_ACEOF
26587 # This file is a shell script that caches the results of configure
26588 # tests run on this system so they can be shared between configure
26589 # scripts and configure runs, see configure's option --config-cache.
26590 # It is not useful on other systems. If it contains results you don't
26591 # want to keep, you may remove or edit it.
26593 # config.status only pays attention to the cache file if you give it
26594 # the --recheck option to rerun configure.
26596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26598 # following values.
26600 _ACEOF
26602 # The following way of writing the cache mishandles newlines in values,
26603 # but we know of no workaround that is simple, portable, and efficient.
26604 # So, we kill variables containing newlines.
26605 # Ultrix sh set writes to stderr and can't be redirected directly,
26606 # and sets the high bit in the cache file unless we assign to the vars.
26608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26609 eval ac_val=\$$ac_var
26610 case $ac_val in #(
26611 *${as_nl}*)
26612 case $ac_var in #(
26613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26615 esac
26616 case $ac_var in #(
26617 _ | IFS | as_nl) ;; #(
26618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26619 *) { eval $ac_var=; unset $ac_var;} ;;
26620 esac ;;
26621 esac
26622 done
26624 (set) 2>&1 |
26625 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26626 *${as_nl}ac_space=\ *)
26627 # `set' does not quote correctly, so add quotes: double-quote
26628 # substitution turns \\\\ into \\, and sed turns \\ into \.
26629 sed -n \
26630 "s/'/'\\\\''/g;
26631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26632 ;; #(
26634 # `set' quotes correctly as required by POSIX, so do not add quotes.
26635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26637 esac |
26638 sort
26640 sed '
26641 /^ac_cv_env_/b end
26642 t clear
26643 :clear
26644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26645 t end
26646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26647 :end' >>confcache
26648 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26649 if test -w "$cache_file"; then
26650 test "x$cache_file" != "x/dev/null" &&
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26652 $as_echo "$as_me: updating cache $cache_file" >&6;}
26653 cat confcache >$cache_file
26654 else
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26656 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26659 rm -f confcache
26661 if test ${multilib} = yes; then
26662 multilib_arg="--enable-multilib"
26663 else
26664 multilib_arg=
26667 # Write our Makefile and spec file.
26668 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26670 cat >confcache <<\_ACEOF
26671 # This file is a shell script that caches the results of configure
26672 # tests run on this system so they can be shared between configure
26673 # scripts and configure runs, see configure's option --config-cache.
26674 # It is not useful on other systems. If it contains results you don't
26675 # want to keep, you may remove or edit it.
26677 # config.status only pays attention to the cache file if you give it
26678 # the --recheck option to rerun configure.
26680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26682 # following values.
26684 _ACEOF
26686 # The following way of writing the cache mishandles newlines in values,
26687 # but we know of no workaround that is simple, portable, and efficient.
26688 # So, we kill variables containing newlines.
26689 # Ultrix sh set writes to stderr and can't be redirected directly,
26690 # and sets the high bit in the cache file unless we assign to the vars.
26692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26693 eval ac_val=\$$ac_var
26694 case $ac_val in #(
26695 *${as_nl}*)
26696 case $ac_var in #(
26697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26699 esac
26700 case $ac_var in #(
26701 _ | IFS | as_nl) ;; #(
26702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26703 *) { eval $ac_var=; unset $ac_var;} ;;
26704 esac ;;
26705 esac
26706 done
26708 (set) 2>&1 |
26709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26710 *${as_nl}ac_space=\ *)
26711 # `set' does not quote correctly, so add quotes: double-quote
26712 # substitution turns \\\\ into \\, and sed turns \\ into \.
26713 sed -n \
26714 "s/'/'\\\\''/g;
26715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26716 ;; #(
26718 # `set' quotes correctly as required by POSIX, so do not add quotes.
26719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26721 esac |
26722 sort
26724 sed '
26725 /^ac_cv_env_/b end
26726 t clear
26727 :clear
26728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26729 t end
26730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26731 :end' >>confcache
26732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26733 if test -w "$cache_file"; then
26734 test "x$cache_file" != "x/dev/null" &&
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26736 $as_echo "$as_me: updating cache $cache_file" >&6;}
26737 cat confcache >$cache_file
26738 else
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26740 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26743 rm -f confcache
26745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26746 # Let make expand exec_prefix.
26747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26749 DEFS=-DHAVE_CONFIG_H
26751 ac_libobjs=
26752 ac_ltlibobjs=
26753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26754 # 1. Remove the extension, and $U if already installed.
26755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26756 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26758 # will be set to the directory where LIBOBJS objects are built.
26759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26761 done
26762 LIBOBJS=$ac_libobjs
26764 LTLIBOBJS=$ac_ltlibobjs
26767 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26768 as_fn_error "conditional \"onestep\" was never defined.
26769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26771 if test -n "$EXEEXT"; then
26772 am__EXEEXT_TRUE=
26773 am__EXEEXT_FALSE='#'
26774 else
26775 am__EXEEXT_TRUE='#'
26776 am__EXEEXT_FALSE=
26779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26780 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26783 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26784 as_fn_error "conditional \"AMDEP\" was never defined.
26785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26788 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26791 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26792 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26795 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26796 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26799 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26800 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26803 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26804 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26807 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26808 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26811 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26812 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26815 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26816 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26819 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26820 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26823 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26824 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26827 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26828 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26832 : ${CONFIG_STATUS=./config.status}
26833 ac_write_fail=0
26834 ac_clean_files_save=$ac_clean_files
26835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26837 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26838 as_write_fail=0
26839 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26840 #! $SHELL
26841 # Generated by $as_me.
26842 # Run this file to recreate the current configuration.
26843 # Compiler output produced by configure, useful for debugging
26844 # configure, is in config.log if it exists.
26846 debug=false
26847 ac_cs_recheck=false
26848 ac_cs_silent=false
26850 SHELL=\${CONFIG_SHELL-$SHELL}
26851 export SHELL
26852 _ASEOF
26853 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26854 ## -------------------- ##
26855 ## M4sh Initialization. ##
26856 ## -------------------- ##
26858 # Be more Bourne compatible
26859 DUALCASE=1; export DUALCASE # for MKS sh
26860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26861 emulate sh
26862 NULLCMD=:
26863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26864 # is contrary to our usage. Disable this feature.
26865 alias -g '${1+"$@"}'='"$@"'
26866 setopt NO_GLOB_SUBST
26867 else
26868 case `(set -o) 2>/dev/null` in #(
26869 *posix*) :
26870 set -o posix ;; #(
26871 *) :
26873 esac
26877 as_nl='
26879 export as_nl
26880 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26881 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26882 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26884 # Prefer a ksh shell builtin over an external printf program on Solaris,
26885 # but without wasting forks for bash or zsh.
26886 if test -z "$BASH_VERSION$ZSH_VERSION" \
26887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26888 as_echo='print -r --'
26889 as_echo_n='print -rn --'
26890 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26891 as_echo='printf %s\n'
26892 as_echo_n='printf %s'
26893 else
26894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26896 as_echo_n='/usr/ucb/echo -n'
26897 else
26898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26899 as_echo_n_body='eval
26900 arg=$1;
26901 case $arg in #(
26902 *"$as_nl"*)
26903 expr "X$arg" : "X\\(.*\\)$as_nl";
26904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26905 esac;
26906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26908 export as_echo_n_body
26909 as_echo_n='sh -c $as_echo_n_body as_echo'
26911 export as_echo_body
26912 as_echo='sh -c $as_echo_body as_echo'
26915 # The user is always right.
26916 if test "${PATH_SEPARATOR+set}" != set; then
26917 PATH_SEPARATOR=:
26918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26920 PATH_SEPARATOR=';'
26925 # IFS
26926 # We need space, tab and new line, in precisely that order. Quoting is
26927 # there to prevent editors from complaining about space-tab.
26928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26929 # splitting by setting IFS to empty value.)
26930 IFS=" "" $as_nl"
26932 # Find who we are. Look in the path if we contain no directory separator.
26933 case $0 in #((
26934 *[\\/]* ) as_myself=$0 ;;
26935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936 for as_dir in $PATH
26938 IFS=$as_save_IFS
26939 test -z "$as_dir" && as_dir=.
26940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26941 done
26942 IFS=$as_save_IFS
26945 esac
26946 # We did not find ourselves, most probably we were run as `sh COMMAND'
26947 # in which case we are not to be found in the path.
26948 if test "x$as_myself" = x; then
26949 as_myself=$0
26951 if test ! -f "$as_myself"; then
26952 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26953 exit 1
26956 # Unset variables that we do not need and which cause bugs (e.g. in
26957 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26958 # suppresses any "Segmentation fault" message there. '((' could
26959 # trigger a bug in pdksh 5.2.14.
26960 for as_var in BASH_ENV ENV MAIL MAILPATH
26961 do eval test x\${$as_var+set} = xset \
26962 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26963 done
26964 PS1='$ '
26965 PS2='> '
26966 PS4='+ '
26968 # NLS nuisances.
26969 LC_ALL=C
26970 export LC_ALL
26971 LANGUAGE=C
26972 export LANGUAGE
26974 # CDPATH.
26975 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26978 # as_fn_error ERROR [LINENO LOG_FD]
26979 # ---------------------------------
26980 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26981 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26982 # script with status $?, using 1 if that was 0.
26983 as_fn_error ()
26985 as_status=$?; test $as_status -eq 0 && as_status=1
26986 if test "$3"; then
26987 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26988 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26990 $as_echo "$as_me: error: $1" >&2
26991 as_fn_exit $as_status
26992 } # as_fn_error
26995 # as_fn_set_status STATUS
26996 # -----------------------
26997 # Set $? to STATUS, without forking.
26998 as_fn_set_status ()
27000 return $1
27001 } # as_fn_set_status
27003 # as_fn_exit STATUS
27004 # -----------------
27005 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27006 as_fn_exit ()
27008 set +e
27009 as_fn_set_status $1
27010 exit $1
27011 } # as_fn_exit
27013 # as_fn_unset VAR
27014 # ---------------
27015 # Portably unset VAR.
27016 as_fn_unset ()
27018 { eval $1=; unset $1;}
27020 as_unset=as_fn_unset
27021 # as_fn_append VAR VALUE
27022 # ----------------------
27023 # Append the text in VALUE to the end of the definition contained in VAR. Take
27024 # advantage of any shell optimizations that allow amortized linear growth over
27025 # repeated appends, instead of the typical quadratic growth present in naive
27026 # implementations.
27027 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27028 eval 'as_fn_append ()
27030 eval $1+=\$2
27032 else
27033 as_fn_append ()
27035 eval $1=\$$1\$2
27037 fi # as_fn_append
27039 # as_fn_arith ARG...
27040 # ------------------
27041 # Perform arithmetic evaluation on the ARGs, and store the result in the
27042 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27043 # must be portable across $(()) and expr.
27044 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27045 eval 'as_fn_arith ()
27047 as_val=$(( $* ))
27049 else
27050 as_fn_arith ()
27052 as_val=`expr "$@" || test $? -eq 1`
27054 fi # as_fn_arith
27057 if expr a : '\(a\)' >/dev/null 2>&1 &&
27058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27059 as_expr=expr
27060 else
27061 as_expr=false
27064 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27065 as_basename=basename
27066 else
27067 as_basename=false
27070 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27071 as_dirname=dirname
27072 else
27073 as_dirname=false
27076 as_me=`$as_basename -- "$0" ||
27077 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27078 X"$0" : 'X\(//\)$' \| \
27079 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27080 $as_echo X/"$0" |
27081 sed '/^.*\/\([^/][^/]*\)\/*$/{
27082 s//\1/
27085 /^X\/\(\/\/\)$/{
27086 s//\1/
27089 /^X\/\(\/\).*/{
27090 s//\1/
27093 s/.*/./; q'`
27095 # Avoid depending upon Character Ranges.
27096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27099 as_cr_digits='0123456789'
27100 as_cr_alnum=$as_cr_Letters$as_cr_digits
27102 ECHO_C= ECHO_N= ECHO_T=
27103 case `echo -n x` in #(((((
27104 -n*)
27105 case `echo 'xy\c'` in
27106 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27107 xy) ECHO_C='\c';;
27108 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27109 ECHO_T=' ';;
27110 esac;;
27112 ECHO_N='-n';;
27113 esac
27115 rm -f conf$$ conf$$.exe conf$$.file
27116 if test -d conf$$.dir; then
27117 rm -f conf$$.dir/conf$$.file
27118 else
27119 rm -f conf$$.dir
27120 mkdir conf$$.dir 2>/dev/null
27122 if (echo >conf$$.file) 2>/dev/null; then
27123 if ln -s conf$$.file conf$$ 2>/dev/null; then
27124 as_ln_s='ln -s'
27125 # ... but there are two gotchas:
27126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27128 # In both cases, we have to default to `cp -p'.
27129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27130 as_ln_s='cp -p'
27131 elif ln conf$$.file conf$$ 2>/dev/null; then
27132 as_ln_s=ln
27133 else
27134 as_ln_s='cp -p'
27136 else
27137 as_ln_s='cp -p'
27139 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27140 rmdir conf$$.dir 2>/dev/null
27143 # as_fn_mkdir_p
27144 # -------------
27145 # Create "$as_dir" as a directory, including parents if necessary.
27146 as_fn_mkdir_p ()
27149 case $as_dir in #(
27150 -*) as_dir=./$as_dir;;
27151 esac
27152 test -d "$as_dir" || eval $as_mkdir_p || {
27153 as_dirs=
27154 while :; do
27155 case $as_dir in #(
27156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27157 *) as_qdir=$as_dir;;
27158 esac
27159 as_dirs="'$as_qdir' $as_dirs"
27160 as_dir=`$as_dirname -- "$as_dir" ||
27161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27162 X"$as_dir" : 'X\(//\)[^/]' \| \
27163 X"$as_dir" : 'X\(//\)$' \| \
27164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27165 $as_echo X"$as_dir" |
27166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27167 s//\1/
27170 /^X\(\/\/\)[^/].*/{
27171 s//\1/
27174 /^X\(\/\/\)$/{
27175 s//\1/
27178 /^X\(\/\).*/{
27179 s//\1/
27182 s/.*/./; q'`
27183 test -d "$as_dir" && break
27184 done
27185 test -z "$as_dirs" || eval "mkdir $as_dirs"
27186 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27189 } # as_fn_mkdir_p
27190 if mkdir -p . 2>/dev/null; then
27191 as_mkdir_p='mkdir -p "$as_dir"'
27192 else
27193 test -d ./-p && rmdir ./-p
27194 as_mkdir_p=false
27197 if test -x / >/dev/null 2>&1; then
27198 as_test_x='test -x'
27199 else
27200 if ls -dL / >/dev/null 2>&1; then
27201 as_ls_L_option=L
27202 else
27203 as_ls_L_option=
27205 as_test_x='
27206 eval sh -c '\''
27207 if test -d "$1"; then
27208 test -d "$1/.";
27209 else
27210 case $1 in #(
27211 -*)set "./$1";;
27212 esac;
27213 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27214 ???[sx]*):;;*)false;;esac;fi
27215 '\'' sh
27218 as_executable_p=$as_test_x
27220 # Sed expression to map a string onto a valid CPP name.
27221 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27223 # Sed expression to map a string onto a valid variable name.
27224 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27227 exec 6>&1
27228 ## ----------------------------------- ##
27229 ## Main body of $CONFIG_STATUS script. ##
27230 ## ----------------------------------- ##
27231 _ASEOF
27232 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27235 # Save the log message, to keep $0 and so on meaningful, and to
27236 # report actual input values of CONFIG_FILES etc. instead of their
27237 # values after options handling.
27238 ac_log="
27239 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27240 generated by GNU Autoconf 2.64. Invocation command line was
27242 CONFIG_FILES = $CONFIG_FILES
27243 CONFIG_HEADERS = $CONFIG_HEADERS
27244 CONFIG_LINKS = $CONFIG_LINKS
27245 CONFIG_COMMANDS = $CONFIG_COMMANDS
27246 $ $0 $@
27248 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27251 _ACEOF
27253 case $ac_config_files in *"
27254 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27255 esac
27257 case $ac_config_headers in *"
27258 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27259 esac
27262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27263 # Files that config.status was made for.
27264 config_files="$ac_config_files"
27265 config_headers="$ac_config_headers"
27266 config_commands="$ac_config_commands"
27268 _ACEOF
27270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27271 ac_cs_usage="\
27272 \`$as_me' instantiates files and other configuration actions
27273 from templates according to the current configuration. Unless the files
27274 and actions are specified as TAGs, all are instantiated by default.
27276 Usage: $0 [OPTION]... [TAG]...
27278 -h, --help print this help, then exit
27279 -V, --version print version number and configuration settings, then exit
27280 -q, --quiet, --silent
27281 do not print progress messages
27282 -d, --debug don't remove temporary files
27283 --recheck update $as_me by reconfiguring in the same conditions
27284 --file=FILE[:TEMPLATE]
27285 instantiate the configuration file FILE
27286 --header=FILE[:TEMPLATE]
27287 instantiate the configuration header FILE
27289 Configuration files:
27290 $config_files
27292 Configuration headers:
27293 $config_headers
27295 Configuration commands:
27296 $config_commands
27298 Report bugs to the package provider.
27299 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27300 General help using GNU software: <http://www.gnu.org/gethelp/>."
27302 _ACEOF
27303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27304 ac_cs_version="\\
27305 GNU Fortran Runtime Library config.status 0.3
27306 configured by $0, generated by GNU Autoconf 2.64,
27307 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27309 Copyright (C) 2009 Free Software Foundation, Inc.
27310 This config.status script is free software; the Free Software Foundation
27311 gives unlimited permission to copy, distribute and modify it."
27313 ac_pwd='$ac_pwd'
27314 srcdir='$srcdir'
27315 INSTALL='$INSTALL'
27316 MKDIR_P='$MKDIR_P'
27317 AWK='$AWK'
27318 test -n "\$AWK" || AWK=awk
27319 _ACEOF
27321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27322 # The default lists apply if the user does not specify any file.
27323 ac_need_defaults=:
27324 while test $# != 0
27326 case $1 in
27327 --*=*)
27328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27330 ac_shift=:
27333 ac_option=$1
27334 ac_optarg=$2
27335 ac_shift=shift
27337 esac
27339 case $ac_option in
27340 # Handling of the options.
27341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27342 ac_cs_recheck=: ;;
27343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27344 $as_echo "$ac_cs_version"; exit ;;
27345 --debug | --debu | --deb | --de | --d | -d )
27346 debug=: ;;
27347 --file | --fil | --fi | --f )
27348 $ac_shift
27349 case $ac_optarg in
27350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27351 esac
27352 as_fn_append CONFIG_FILES " '$ac_optarg'"
27353 ac_need_defaults=false;;
27354 --header | --heade | --head | --hea )
27355 $ac_shift
27356 case $ac_optarg in
27357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27358 esac
27359 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27360 ac_need_defaults=false;;
27361 --he | --h)
27362 # Conflict between --help and --header
27363 as_fn_error "ambiguous option: \`$1'
27364 Try \`$0 --help' for more information.";;
27365 --help | --hel | -h )
27366 $as_echo "$ac_cs_usage"; exit ;;
27367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27369 ac_cs_silent=: ;;
27371 # This is an error.
27372 -*) as_fn_error "unrecognized option: \`$1'
27373 Try \`$0 --help' for more information." ;;
27375 *) as_fn_append ac_config_targets " $1"
27376 ac_need_defaults=false ;;
27378 esac
27379 shift
27380 done
27382 ac_configure_extra_args=
27384 if $ac_cs_silent; then
27385 exec 6>/dev/null
27386 ac_configure_extra_args="$ac_configure_extra_args --silent"
27389 _ACEOF
27390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27391 if \$ac_cs_recheck; then
27392 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27393 shift
27394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27395 CONFIG_SHELL='$SHELL'
27396 export CONFIG_SHELL
27397 exec "\$@"
27400 _ACEOF
27401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27402 exec 5>>config.log
27404 echo
27405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27406 ## Running $as_me. ##
27407 _ASBOX
27408 $as_echo "$ac_log"
27409 } >&5
27411 _ACEOF
27412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27414 # INIT-COMMANDS
27417 srcdir="$srcdir"
27418 host="$host"
27419 target="$target"
27420 with_multisubdir="$with_multisubdir"
27421 with_multisrctop="$with_multisrctop"
27422 with_target_subdir="$with_target_subdir"
27423 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27424 multi_basedir="$multi_basedir"
27425 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27426 CC="$CC"
27427 CXX="$CXX"
27428 GFORTRAN="$GFORTRAN"
27429 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27432 # The HP-UX ksh and POSIX shell print the target directory to stdout
27433 # if CDPATH is set.
27434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27436 sed_quote_subst='$sed_quote_subst'
27437 double_quote_subst='$double_quote_subst'
27438 delay_variable_subst='$delay_variable_subst'
27439 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27440 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27441 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27442 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27443 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27444 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27445 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27446 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27447 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27448 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27449 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27450 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27451 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27452 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27453 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27454 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27455 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27456 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27457 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27458 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27459 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27460 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27461 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27462 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27463 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27464 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27465 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27466 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27467 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27468 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27469 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27470 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27471 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27472 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27473 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27474 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27475 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27476 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27477 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27478 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27479 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27480 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27481 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27482 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27483 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27484 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27485 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27486 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27487 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"`'
27488 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27489 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27490 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27491 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27492 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27493 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27494 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27495 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27496 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27497 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27498 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27499 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27500 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27501 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27502 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27503 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27504 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27505 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27506 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27507 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27508 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27509 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27510 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27511 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27512 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27513 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27514 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27515 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27516 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27517 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27518 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27519 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27520 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27521 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27522 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27523 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27524 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27525 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27526 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27527 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27528 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27529 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27530 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27531 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27532 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27533 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27534 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27535 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27536 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27537 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27538 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27539 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27540 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27541 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27542 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27543 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27544 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27545 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27546 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27547 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27548 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27549 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27550 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27551 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27552 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27553 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27554 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27555 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27556 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27557 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27558 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27559 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27560 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27561 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27562 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27563 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27564 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27565 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27566 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27567 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27568 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27569 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27570 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27571 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27572 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27573 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27574 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27575 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27576 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27577 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27578 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27579 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27580 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27581 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27582 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27583 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27584 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27585 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27586 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27587 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27588 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27589 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27590 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27591 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27592 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27593 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27594 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27595 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27596 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27597 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27598 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27599 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27600 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27601 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27602 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27603 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27604 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27605 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27606 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27607 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27608 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27609 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27610 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27611 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27612 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27613 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27615 LTCC='$LTCC'
27616 LTCFLAGS='$LTCFLAGS'
27617 compiler='$compiler_DEFAULT'
27619 # A function that is used when there is no print builtin or printf.
27620 func_fallback_echo ()
27622 eval 'cat <<_LTECHO_EOF
27624 _LTECHO_EOF'
27627 # Quote evaled strings.
27628 for var in SED \
27629 GREP \
27630 EGREP \
27631 FGREP \
27632 SHELL \
27633 ECHO \
27634 LD \
27635 NM \
27636 LN_S \
27637 lt_SP2NL \
27638 lt_NL2SP \
27639 reload_flag \
27640 OBJDUMP \
27641 deplibs_check_method \
27642 file_magic_cmd \
27643 AR \
27644 AR_FLAGS \
27645 STRIP \
27646 RANLIB \
27647 CC \
27648 CFLAGS \
27649 compiler \
27650 lt_cv_sys_global_symbol_pipe \
27651 lt_cv_sys_global_symbol_to_cdecl \
27652 lt_cv_sys_global_symbol_to_c_name_address \
27653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27654 lt_prog_compiler_no_builtin_flag \
27655 lt_prog_compiler_wl \
27656 lt_prog_compiler_pic \
27657 lt_prog_compiler_static \
27658 lt_cv_prog_compiler_c_o \
27659 need_locks \
27660 DSYMUTIL \
27661 NMEDIT \
27662 LIPO \
27663 OTOOL \
27664 OTOOL64 \
27665 shrext_cmds \
27666 export_dynamic_flag_spec \
27667 whole_archive_flag_spec \
27668 compiler_needs_object \
27669 with_gnu_ld \
27670 allow_undefined_flag \
27671 no_undefined_flag \
27672 hardcode_libdir_flag_spec \
27673 hardcode_libdir_flag_spec_ld \
27674 hardcode_libdir_separator \
27675 fix_srcfile_path \
27676 exclude_expsyms \
27677 include_expsyms \
27678 file_list_spec \
27679 variables_saved_for_relink \
27680 libname_spec \
27681 library_names_spec \
27682 soname_spec \
27683 install_override_mode \
27684 finish_eval \
27685 old_striplib \
27686 striplib \
27687 compiler_lib_search_dirs \
27688 predep_objects \
27689 postdep_objects \
27690 predeps \
27691 postdeps \
27692 compiler_lib_search_path \
27693 LD_FC \
27694 reload_flag_FC \
27695 compiler_FC \
27696 lt_prog_compiler_no_builtin_flag_FC \
27697 lt_prog_compiler_wl_FC \
27698 lt_prog_compiler_pic_FC \
27699 lt_prog_compiler_static_FC \
27700 lt_cv_prog_compiler_c_o_FC \
27701 export_dynamic_flag_spec_FC \
27702 whole_archive_flag_spec_FC \
27703 compiler_needs_object_FC \
27704 with_gnu_ld_FC \
27705 allow_undefined_flag_FC \
27706 no_undefined_flag_FC \
27707 hardcode_libdir_flag_spec_FC \
27708 hardcode_libdir_flag_spec_ld_FC \
27709 hardcode_libdir_separator_FC \
27710 fix_srcfile_path_FC \
27711 exclude_expsyms_FC \
27712 include_expsyms_FC \
27713 file_list_spec_FC \
27714 compiler_lib_search_dirs_FC \
27715 predep_objects_FC \
27716 postdep_objects_FC \
27717 predeps_FC \
27718 postdeps_FC \
27719 compiler_lib_search_path_FC; do
27720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27721 *[\\\\\\\`\\"\\\$]*)
27722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27727 esac
27728 done
27730 # Double-quote double-evaled strings.
27731 for var in reload_cmds \
27732 old_postinstall_cmds \
27733 old_postuninstall_cmds \
27734 old_archive_cmds \
27735 extract_expsyms_cmds \
27736 old_archive_from_new_cmds \
27737 old_archive_from_expsyms_cmds \
27738 archive_cmds \
27739 archive_expsym_cmds \
27740 module_cmds \
27741 module_expsym_cmds \
27742 export_symbols_cmds \
27743 prelink_cmds \
27744 postinstall_cmds \
27745 postuninstall_cmds \
27746 finish_cmds \
27747 sys_lib_search_path_spec \
27748 sys_lib_dlsearch_path_spec \
27749 reload_cmds_FC \
27750 old_archive_cmds_FC \
27751 old_archive_from_new_cmds_FC \
27752 old_archive_from_expsyms_cmds_FC \
27753 archive_cmds_FC \
27754 archive_expsym_cmds_FC \
27755 module_cmds_FC \
27756 module_expsym_cmds_FC \
27757 export_symbols_cmds_FC \
27758 prelink_cmds_FC; do
27759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27760 *[\\\\\\\`\\"\\\$]*)
27761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27766 esac
27767 done
27769 ac_aux_dir='$ac_aux_dir'
27770 xsi_shell='$xsi_shell'
27771 lt_shell_append='$lt_shell_append'
27773 # See if we are running on zsh, and set the options which allow our
27774 # commands through without removal of \ escapes INIT.
27775 if test -n "\${ZSH_VERSION+set}" ; then
27776 setopt NO_GLOB_SUBST
27780 PACKAGE='$PACKAGE'
27781 VERSION='$VERSION'
27782 TIMESTAMP='$TIMESTAMP'
27783 RM='$RM'
27784 ofile='$ofile'
27791 GCC="$GCC"
27792 CC="$CC"
27793 acx_cv_header_stdint="$acx_cv_header_stdint"
27794 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27795 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27796 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27797 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27798 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27799 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27800 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27801 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27802 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27803 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27804 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27805 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27806 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27809 _ACEOF
27811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27813 # Handling of arguments.
27814 for ac_config_target in $ac_config_targets
27816 case $ac_config_target in
27817 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27818 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27819 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27820 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27821 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27823 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27825 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27826 esac
27827 done
27830 # If the user did not use the arguments to specify the items to instantiate,
27831 # then the envvar interface is used. Set only those that are not.
27832 # We use the long form for the default assignment because of an extremely
27833 # bizarre bug on SunOS 4.1.3.
27834 if $ac_need_defaults; then
27835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27840 # Have a temporary directory for convenience. Make it in the build tree
27841 # simply because there is no reason against having it here, and in addition,
27842 # creating and moving files from /tmp can sometimes cause problems.
27843 # Hook for its removal unless debugging.
27844 # Note that there is a small window in which the directory will not be cleaned:
27845 # after its creation but before its name has been assigned to `$tmp'.
27846 $debug ||
27848 tmp=
27849 trap 'exit_status=$?
27850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27852 trap 'as_fn_exit 1' 1 2 13 15
27854 # Create a (secure) tmp directory for tmp files.
27857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27858 test -n "$tmp" && test -d "$tmp"
27859 } ||
27861 tmp=./conf$$-$RANDOM
27862 (umask 077 && mkdir "$tmp")
27863 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27865 # Set up the scripts for CONFIG_FILES section.
27866 # No need to generate them if there are no CONFIG_FILES.
27867 # This happens for instance with `./config.status config.h'.
27868 if test -n "$CONFIG_FILES"; then
27871 ac_cr=`echo X | tr X '\015'`
27872 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27873 # But we know of no other shell where ac_cr would be empty at this
27874 # point, so we can use a bashism as a fallback.
27875 if test "x$ac_cr" = x; then
27876 eval ac_cr=\$\'\\r\'
27878 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27879 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27880 ac_cs_awk_cr='\r'
27881 else
27882 ac_cs_awk_cr=$ac_cr
27885 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27886 _ACEOF
27890 echo "cat >conf$$subs.awk <<_ACEOF" &&
27891 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27892 echo "_ACEOF"
27893 } >conf$$subs.sh ||
27894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27895 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27896 ac_delim='%!_!# '
27897 for ac_last_try in false false false false false :; do
27898 . ./conf$$subs.sh ||
27899 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27901 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27902 if test $ac_delim_n = $ac_delim_num; then
27903 break
27904 elif $ac_last_try; then
27905 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27906 else
27907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27909 done
27910 rm -f conf$$subs.sh
27912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27913 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27914 _ACEOF
27915 sed -n '
27917 s/^/S["/; s/!.*/"]=/
27920 s/^[^!]*!//
27921 :repl
27922 t repl
27923 s/'"$ac_delim"'$//
27924 t delim
27927 s/\(.\{148\}\).*/\1/
27928 t more1
27929 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27932 b repl
27933 :more1
27934 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27937 s/.\{148\}//
27938 t nl
27939 :delim
27941 s/\(.\{148\}\).*/\1/
27942 t more2
27943 s/["\\]/\\&/g; s/^/"/; s/$/"/
27946 :more2
27947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27950 s/.\{148\}//
27951 t delim
27952 ' <conf$$subs.awk | sed '
27953 /^[^""]/{
27955 s/\n//
27957 ' >>$CONFIG_STATUS || ac_write_fail=1
27958 rm -f conf$$subs.awk
27959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27960 _ACAWK
27961 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27962 for (key in S) S_is_set[key] = 1
27963 FS = "\a"
27967 line = $ 0
27968 nfields = split(line, field, "@")
27969 substed = 0
27970 len = length(field[1])
27971 for (i = 2; i < nfields; i++) {
27972 key = field[i]
27973 keylen = length(key)
27974 if (S_is_set[key]) {
27975 value = S[key]
27976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27977 len += length(value) + length(field[++i])
27978 substed = 1
27979 } else
27980 len += 1 + keylen
27983 print line
27986 _ACAWK
27987 _ACEOF
27988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27989 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27990 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27991 else
27993 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27994 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27995 _ACEOF
27997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27999 # trailing colons and then remove the whole line if VPATH becomes empty
28000 # (actually we leave an empty line to preserve line numbers).
28001 if test "x$srcdir" = x.; then
28002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28003 s/:*\$(srcdir):*/:/
28004 s/:*\${srcdir}:*/:/
28005 s/:*@srcdir@:*/:/
28006 s/^\([^=]*=[ ]*\):*/\1/
28007 s/:*$//
28008 s/^[^=]*=[ ]*$//
28012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28013 fi # test -n "$CONFIG_FILES"
28015 # Set up the scripts for CONFIG_HEADERS section.
28016 # No need to generate them if there are no CONFIG_HEADERS.
28017 # This happens for instance with `./config.status Makefile'.
28018 if test -n "$CONFIG_HEADERS"; then
28019 cat >"$tmp/defines.awk" <<\_ACAWK ||
28020 BEGIN {
28021 _ACEOF
28023 # Transform confdefs.h into an awk script `defines.awk', embedded as
28024 # here-document in config.status, that substitutes the proper values into
28025 # config.h.in to produce config.h.
28027 # Create a delimiter string that does not exist in confdefs.h, to ease
28028 # handling of long lines.
28029 ac_delim='%!_!# '
28030 for ac_last_try in false false :; do
28031 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28032 if test -z "$ac_t"; then
28033 break
28034 elif $ac_last_try; then
28035 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28036 else
28037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28039 done
28041 # For the awk script, D is an array of macro values keyed by name,
28042 # likewise P contains macro parameters if any. Preserve backslash
28043 # newline sequences.
28045 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28046 sed -n '
28047 s/.\{148\}/&'"$ac_delim"'/g
28048 t rset
28049 :rset
28050 s/^[ ]*#[ ]*define[ ][ ]*/ /
28051 t def
28053 :def
28054 s/\\$//
28055 t bsnl
28056 s/["\\]/\\&/g
28057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28058 D["\1"]=" \3"/p
28059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28061 :bsnl
28062 s/["\\]/\\&/g
28063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28064 D["\1"]=" \3\\\\\\n"\\/p
28065 t cont
28066 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28067 t cont
28069 :cont
28071 s/.\{148\}/&'"$ac_delim"'/g
28072 t clear
28073 :clear
28074 s/\\$//
28075 t bsnlc
28076 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28078 :bsnlc
28079 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28080 b cont
28081 ' <confdefs.h | sed '
28082 s/'"$ac_delim"'/"\\\
28083 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28086 for (key in D) D_is_set[key] = 1
28087 FS = "\a"
28089 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28090 line = \$ 0
28091 split(line, arg, " ")
28092 if (arg[1] == "#") {
28093 defundef = arg[2]
28094 mac1 = arg[3]
28095 } else {
28096 defundef = substr(arg[1], 2)
28097 mac1 = arg[2]
28099 split(mac1, mac2, "(") #)
28100 macro = mac2[1]
28101 prefix = substr(line, 1, index(line, defundef) - 1)
28102 if (D_is_set[macro]) {
28103 # Preserve the white space surrounding the "#".
28104 print prefix "define", macro P[macro] D[macro]
28105 next
28106 } else {
28107 # Replace #undef with comments. This is necessary, for example,
28108 # in the case of _POSIX_SOURCE, which is predefined and required
28109 # on some systems where configure will not decide to define it.
28110 if (defundef == "undef") {
28111 print "/*", prefix defundef, macro, "*/"
28112 next
28116 { print }
28117 _ACAWK
28118 _ACEOF
28119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28120 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28121 fi # test -n "$CONFIG_HEADERS"
28124 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28125 shift
28126 for ac_tag
28128 case $ac_tag in
28129 :[FHLC]) ac_mode=$ac_tag; continue;;
28130 esac
28131 case $ac_mode$ac_tag in
28132 :[FHL]*:*);;
28133 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28134 :[FH]-) ac_tag=-:-;;
28135 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28136 esac
28137 ac_save_IFS=$IFS
28138 IFS=:
28139 set x $ac_tag
28140 IFS=$ac_save_IFS
28141 shift
28142 ac_file=$1
28143 shift
28145 case $ac_mode in
28146 :L) ac_source=$1;;
28147 :[FH])
28148 ac_file_inputs=
28149 for ac_f
28151 case $ac_f in
28152 -) ac_f="$tmp/stdin";;
28153 *) # Look for the file first in the build tree, then in the source tree
28154 # (if the path is not absolute). The absolute path cannot be DOS-style,
28155 # because $ac_f cannot contain `:'.
28156 test -f "$ac_f" ||
28157 case $ac_f in
28158 [\\/$]*) false;;
28159 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28160 esac ||
28161 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28162 esac
28163 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28164 as_fn_append ac_file_inputs " '$ac_f'"
28165 done
28167 # Let's still pretend it is `configure' which instantiates (i.e., don't
28168 # use $as_me), people would be surprised to read:
28169 # /* config.h. Generated by config.status. */
28170 configure_input='Generated from '`
28171 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28172 `' by configure.'
28173 if test x"$ac_file" != x-; then
28174 configure_input="$ac_file. $configure_input"
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28176 $as_echo "$as_me: creating $ac_file" >&6;}
28178 # Neutralize special characters interpreted by sed in replacement strings.
28179 case $configure_input in #(
28180 *\&* | *\|* | *\\* )
28181 ac_sed_conf_input=`$as_echo "$configure_input" |
28182 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28183 *) ac_sed_conf_input=$configure_input;;
28184 esac
28186 case $ac_tag in
28187 *:-:* | *:-) cat >"$tmp/stdin" \
28188 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28189 esac
28191 esac
28193 ac_dir=`$as_dirname -- "$ac_file" ||
28194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28195 X"$ac_file" : 'X\(//\)[^/]' \| \
28196 X"$ac_file" : 'X\(//\)$' \| \
28197 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28198 $as_echo X"$ac_file" |
28199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28200 s//\1/
28203 /^X\(\/\/\)[^/].*/{
28204 s//\1/
28207 /^X\(\/\/\)$/{
28208 s//\1/
28211 /^X\(\/\).*/{
28212 s//\1/
28215 s/.*/./; q'`
28216 as_dir="$ac_dir"; as_fn_mkdir_p
28217 ac_builddir=.
28219 case "$ac_dir" in
28220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28223 # A ".." for each directory in $ac_dir_suffix.
28224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28225 case $ac_top_builddir_sub in
28226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28228 esac ;;
28229 esac
28230 ac_abs_top_builddir=$ac_pwd
28231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28232 # for backward compatibility:
28233 ac_top_builddir=$ac_top_build_prefix
28235 case $srcdir in
28236 .) # We are building in place.
28237 ac_srcdir=.
28238 ac_top_srcdir=$ac_top_builddir_sub
28239 ac_abs_top_srcdir=$ac_pwd ;;
28240 [\\/]* | ?:[\\/]* ) # Absolute name.
28241 ac_srcdir=$srcdir$ac_dir_suffix;
28242 ac_top_srcdir=$srcdir
28243 ac_abs_top_srcdir=$srcdir ;;
28244 *) # Relative name.
28245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28246 ac_top_srcdir=$ac_top_build_prefix$srcdir
28247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28248 esac
28249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28252 case $ac_mode in
28255 # CONFIG_FILE
28258 case $INSTALL in
28259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28261 esac
28262 ac_MKDIR_P=$MKDIR_P
28263 case $MKDIR_P in
28264 [\\/$]* | ?:[\\/]* ) ;;
28265 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28266 esac
28267 _ACEOF
28269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28270 # If the template does not know about datarootdir, expand it.
28271 # FIXME: This hack should be removed a few years after 2.60.
28272 ac_datarootdir_hack=; ac_datarootdir_seen=
28273 ac_sed_dataroot='
28274 /datarootdir/ {
28278 /@datadir@/p
28279 /@docdir@/p
28280 /@infodir@/p
28281 /@localedir@/p
28282 /@mandir@/p'
28283 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28284 *datarootdir*) ac_datarootdir_seen=yes;;
28285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28287 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28288 _ACEOF
28289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28290 ac_datarootdir_hack='
28291 s&@datadir@&$datadir&g
28292 s&@docdir@&$docdir&g
28293 s&@infodir@&$infodir&g
28294 s&@localedir@&$localedir&g
28295 s&@mandir@&$mandir&g
28296 s&\\\${datarootdir}&$datarootdir&g' ;;
28297 esac
28298 _ACEOF
28300 # Neutralize VPATH when `$srcdir' = `.'.
28301 # Shell code in configure.ac might set extrasub.
28302 # FIXME: do we really want to maintain this feature?
28303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28304 ac_sed_extra="$ac_vpsub
28305 $extrasub
28306 _ACEOF
28307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28310 s|@configure_input@|$ac_sed_conf_input|;t t
28311 s&@top_builddir@&$ac_top_builddir_sub&;t t
28312 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28313 s&@srcdir@&$ac_srcdir&;t t
28314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28315 s&@top_srcdir@&$ac_top_srcdir&;t t
28316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28317 s&@builddir@&$ac_builddir&;t t
28318 s&@abs_builddir@&$ac_abs_builddir&;t t
28319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28320 s&@INSTALL@&$ac_INSTALL&;t t
28321 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28322 $ac_datarootdir_hack
28324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28325 || as_fn_error "could not create $ac_file" "$LINENO" 5
28327 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28328 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28329 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28331 which seems to be undefined. Please make sure it is defined." >&5
28332 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28333 which seems to be undefined. Please make sure it is defined." >&2;}
28335 rm -f "$tmp/stdin"
28336 case $ac_file in
28337 -) cat "$tmp/out" && rm -f "$tmp/out";;
28338 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28339 esac \
28340 || as_fn_error "could not create $ac_file" "$LINENO" 5
28344 # CONFIG_HEADER
28346 if test x"$ac_file" != x-; then
28348 $as_echo "/* $configure_input */" \
28349 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28350 } >"$tmp/config.h" \
28351 || as_fn_error "could not create $ac_file" "$LINENO" 5
28352 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28354 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28355 else
28356 rm -f "$ac_file"
28357 mv "$tmp/config.h" "$ac_file" \
28358 || as_fn_error "could not create $ac_file" "$LINENO" 5
28360 else
28361 $as_echo "/* $configure_input */" \
28362 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28363 || as_fn_error "could not create -" "$LINENO" 5
28365 # Compute "$ac_file"'s index in $config_headers.
28366 _am_arg="$ac_file"
28367 _am_stamp_count=1
28368 for _am_header in $config_headers :; do
28369 case $_am_header in
28370 $_am_arg | $_am_arg:* )
28371 break ;;
28373 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28374 esac
28375 done
28376 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28377 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28378 X"$_am_arg" : 'X\(//\)[^/]' \| \
28379 X"$_am_arg" : 'X\(//\)$' \| \
28380 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28381 $as_echo X"$_am_arg" |
28382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28383 s//\1/
28386 /^X\(\/\/\)[^/].*/{
28387 s//\1/
28390 /^X\(\/\/\)$/{
28391 s//\1/
28394 /^X\(\/\).*/{
28395 s//\1/
28398 s/.*/./; q'`/stamp-h$_am_stamp_count
28401 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28402 $as_echo "$as_me: executing $ac_file commands" >&6;}
28404 esac
28407 case $ac_file$ac_mode in
28408 "default-1":C)
28409 # Only add multilib support code if we just rebuilt the top-level
28410 # Makefile.
28411 case " $CONFIG_FILES " in
28412 *" Makefile "*)
28413 ac_file=Makefile . ${multi_basedir}/config-ml.in
28415 esac ;;
28416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28417 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28418 # are listed without --file. Let's play safe and only enable the eval
28419 # if we detect the quoting.
28420 case $CONFIG_FILES in
28421 *\'*) eval set x "$CONFIG_FILES" ;;
28422 *) set x $CONFIG_FILES ;;
28423 esac
28424 shift
28425 for mf
28427 # Strip MF so we end up with the name of the file.
28428 mf=`echo "$mf" | sed -e 's/:.*$//'`
28429 # Check whether this is an Automake generated Makefile or not.
28430 # We used to match only the files named `Makefile.in', but
28431 # some people rename them; so instead we look at the file content.
28432 # Grep'ing the first line is not enough: some people post-process
28433 # each Makefile.in and add a new line on top of each file to say so.
28434 # Grep'ing the whole file is not good either: AIX grep has a line
28435 # limit of 2048, but all sed's we know have understand at least 4000.
28436 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28437 dirpart=`$as_dirname -- "$mf" ||
28438 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28439 X"$mf" : 'X\(//\)[^/]' \| \
28440 X"$mf" : 'X\(//\)$' \| \
28441 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28442 $as_echo X"$mf" |
28443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28444 s//\1/
28447 /^X\(\/\/\)[^/].*/{
28448 s//\1/
28451 /^X\(\/\/\)$/{
28452 s//\1/
28455 /^X\(\/\).*/{
28456 s//\1/
28459 s/.*/./; q'`
28460 else
28461 continue
28463 # Extract the definition of DEPDIR, am__include, and am__quote
28464 # from the Makefile without running `make'.
28465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28466 test -z "$DEPDIR" && continue
28467 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28468 test -z "am__include" && continue
28469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28470 # When using ansi2knr, U may be empty or an underscore; expand it
28471 U=`sed -n 's/^U = //p' < "$mf"`
28472 # Find all dependency output files, they are included files with
28473 # $(DEPDIR) in their names. We invoke sed twice because it is the
28474 # simplest approach to changing $(DEPDIR) to its actual value in the
28475 # expansion.
28476 for file in `sed -n "
28477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28479 # Make sure the directory exists.
28480 test -f "$dirpart/$file" && continue
28481 fdir=`$as_dirname -- "$file" ||
28482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28483 X"$file" : 'X\(//\)[^/]' \| \
28484 X"$file" : 'X\(//\)$' \| \
28485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28486 $as_echo X"$file" |
28487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28488 s//\1/
28491 /^X\(\/\/\)[^/].*/{
28492 s//\1/
28495 /^X\(\/\/\)$/{
28496 s//\1/
28499 /^X\(\/\).*/{
28500 s//\1/
28503 s/.*/./; q'`
28504 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28505 # echo "creating $dirpart/$file"
28506 echo '# dummy' > "$dirpart/$file"
28507 done
28508 done
28511 "libtool":C)
28513 # See if we are running on zsh, and set the options which allow our
28514 # commands through without removal of \ escapes.
28515 if test -n "${ZSH_VERSION+set}" ; then
28516 setopt NO_GLOB_SUBST
28519 cfgfile="${ofile}T"
28520 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28521 $RM "$cfgfile"
28523 cat <<_LT_EOF >> "$cfgfile"
28524 #! $SHELL
28526 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28527 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28531 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28532 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28533 # Written by Gordon Matzigkeit, 1996
28535 # This file is part of GNU Libtool.
28537 # GNU Libtool is free software; you can redistribute it and/or
28538 # modify it under the terms of the GNU General Public License as
28539 # published by the Free Software Foundation; either version 2 of
28540 # the License, or (at your option) any later version.
28542 # As a special exception to the GNU General Public License,
28543 # if you distribute this file as part of a program or library that
28544 # is built using GNU Libtool, you may include this file under the
28545 # same distribution terms that you use for the rest of that program.
28547 # GNU Libtool is distributed in the hope that it will be useful,
28548 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28550 # GNU General Public License for more details.
28552 # You should have received a copy of the GNU General Public License
28553 # along with GNU Libtool; see the file COPYING. If not, a copy
28554 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28555 # obtained by writing to the Free Software Foundation, Inc.,
28556 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28559 # The names of the tagged configurations supported by this script.
28560 available_tags="FC "
28562 # ### BEGIN LIBTOOL CONFIG
28564 # A sed program that does not truncate output.
28565 SED=$lt_SED
28567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28568 Xsed="\$SED -e 1s/^X//"
28570 # A grep program that handles long lines.
28571 GREP=$lt_GREP
28573 # An ERE matcher.
28574 EGREP=$lt_EGREP
28576 # A literal string matcher.
28577 FGREP=$lt_FGREP
28579 # Shell to use when invoking shell scripts.
28580 SHELL=$lt_SHELL
28582 # An echo program that protects backslashes.
28583 ECHO=$lt_ECHO
28585 # Which release of libtool.m4 was used?
28586 macro_version=$macro_version
28587 macro_revision=$macro_revision
28589 # Whether or not to build shared libraries.
28590 build_libtool_libs=$enable_shared
28592 # Whether or not to build static libraries.
28593 build_old_libs=$enable_static
28595 # What type of objects to build.
28596 pic_mode=$pic_mode
28598 # Whether or not to optimize for fast installation.
28599 fast_install=$enable_fast_install
28601 # The host system.
28602 host_alias=$host_alias
28603 host=$host
28604 host_os=$host_os
28606 # The build system.
28607 build_alias=$build_alias
28608 build=$build
28609 build_os=$build_os
28611 # A BSD- or MS-compatible name lister.
28612 NM=$lt_NM
28614 # Whether we need soft or hard links.
28615 LN_S=$lt_LN_S
28617 # What is the maximum length of a command?
28618 max_cmd_len=$max_cmd_len
28620 # Object file suffix (normally "o").
28621 objext=$ac_objext
28623 # Executable file suffix (normally "").
28624 exeext=$exeext
28626 # whether the shell understands "unset".
28627 lt_unset=$lt_unset
28629 # turn spaces into newlines.
28630 SP2NL=$lt_lt_SP2NL
28632 # turn newlines into spaces.
28633 NL2SP=$lt_lt_NL2SP
28635 # An object symbol dumper.
28636 OBJDUMP=$lt_OBJDUMP
28638 # Method to check whether dependent libraries are shared objects.
28639 deplibs_check_method=$lt_deplibs_check_method
28641 # Command to use when deplibs_check_method == "file_magic".
28642 file_magic_cmd=$lt_file_magic_cmd
28644 # The archiver.
28645 AR=$lt_AR
28646 AR_FLAGS=$lt_AR_FLAGS
28648 # A symbol stripping program.
28649 STRIP=$lt_STRIP
28651 # Commands used to install an old-style archive.
28652 RANLIB=$lt_RANLIB
28653 old_postinstall_cmds=$lt_old_postinstall_cmds
28654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28656 # Whether to use a lock for old archive extraction.
28657 lock_old_archive_extraction=$lock_old_archive_extraction
28659 # A C compiler.
28660 LTCC=$lt_CC
28662 # LTCC compiler flags.
28663 LTCFLAGS=$lt_CFLAGS
28665 # Take the output of nm and produce a listing of raw symbols and C names.
28666 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28668 # Transform the output of nm in a proper C declaration.
28669 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28671 # Transform the output of nm in a C name address pair.
28672 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28674 # Transform the output of nm in a C name address pair when lib prefix is needed.
28675 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28677 # The name of the directory that contains temporary libtool files.
28678 objdir=$objdir
28680 # Used to examine libraries when file_magic_cmd begins with "file".
28681 MAGIC_CMD=$MAGIC_CMD
28683 # Must we lock files when doing compilation?
28684 need_locks=$lt_need_locks
28686 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28687 DSYMUTIL=$lt_DSYMUTIL
28689 # Tool to change global to local symbols on Mac OS X.
28690 NMEDIT=$lt_NMEDIT
28692 # Tool to manipulate fat objects and archives on Mac OS X.
28693 LIPO=$lt_LIPO
28695 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28696 OTOOL=$lt_OTOOL
28698 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28699 OTOOL64=$lt_OTOOL64
28701 # Old archive suffix (normally "a").
28702 libext=$libext
28704 # Shared library suffix (normally ".so").
28705 shrext_cmds=$lt_shrext_cmds
28707 # The commands to extract the exported symbol list from a shared archive.
28708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28710 # Variables whose values should be saved in libtool wrapper scripts and
28711 # restored at link time.
28712 variables_saved_for_relink=$lt_variables_saved_for_relink
28714 # Do we need the "lib" prefix for modules?
28715 need_lib_prefix=$need_lib_prefix
28717 # Do we need a version for libraries?
28718 need_version=$need_version
28720 # Library versioning type.
28721 version_type=$version_type
28723 # Shared library runtime path variable.
28724 runpath_var=$runpath_var
28726 # Shared library path variable.
28727 shlibpath_var=$shlibpath_var
28729 # Is shlibpath searched before the hard-coded library search path?
28730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28732 # Format of library name prefix.
28733 libname_spec=$lt_libname_spec
28735 # List of archive names. First name is the real one, the rest are links.
28736 # The last name is the one that the linker finds with -lNAME
28737 library_names_spec=$lt_library_names_spec
28739 # The coded name of the library, if different from the real name.
28740 soname_spec=$lt_soname_spec
28742 # Permission mode override for installation of shared libraries.
28743 install_override_mode=$lt_install_override_mode
28745 # Command to use after installation of a shared archive.
28746 postinstall_cmds=$lt_postinstall_cmds
28748 # Command to use after uninstallation of a shared archive.
28749 postuninstall_cmds=$lt_postuninstall_cmds
28751 # Commands used to finish a libtool library installation in a directory.
28752 finish_cmds=$lt_finish_cmds
28754 # As "finish_cmds", except a single script fragment to be evaled but
28755 # not shown.
28756 finish_eval=$lt_finish_eval
28758 # Whether we should hardcode library paths into libraries.
28759 hardcode_into_libs=$hardcode_into_libs
28761 # Compile-time system search path for libraries.
28762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28764 # Run-time system search path for libraries.
28765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28767 # Whether dlopen is supported.
28768 dlopen_support=$enable_dlopen
28770 # Whether dlopen of programs is supported.
28771 dlopen_self=$enable_dlopen_self
28773 # Whether dlopen of statically linked programs is supported.
28774 dlopen_self_static=$enable_dlopen_self_static
28776 # Commands to strip libraries.
28777 old_striplib=$lt_old_striplib
28778 striplib=$lt_striplib
28781 # The linker used to build libraries.
28782 LD=$lt_LD
28784 # How to create reloadable object files.
28785 reload_flag=$lt_reload_flag
28786 reload_cmds=$lt_reload_cmds
28788 # Commands used to build an old-style archive.
28789 old_archive_cmds=$lt_old_archive_cmds
28791 # A language specific compiler.
28792 CC=$lt_compiler
28794 # Is the compiler the GNU compiler?
28795 with_gcc=$GCC
28797 # Compiler flag to turn off builtin functions.
28798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28800 # How to pass a linker flag through the compiler.
28801 wl=$lt_lt_prog_compiler_wl
28803 # Additional compiler flags for building library objects.
28804 pic_flag=$lt_lt_prog_compiler_pic
28806 # Compiler flag to prevent dynamic linking.
28807 link_static_flag=$lt_lt_prog_compiler_static
28809 # Does compiler simultaneously support -c and -o options?
28810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28812 # Whether or not to add -lc for building shared libraries.
28813 build_libtool_need_lc=$archive_cmds_need_lc
28815 # Whether or not to disallow shared libs when runtime libs are static.
28816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28818 # Compiler flag to allow reflexive dlopens.
28819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28821 # Compiler flag to generate shared objects directly from archives.
28822 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28824 # Whether the compiler copes with passing no objects directly.
28825 compiler_needs_object=$lt_compiler_needs_object
28827 # Create an old-style archive from a shared archive.
28828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28830 # Create a temporary old-style archive to link instead of a shared archive.
28831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28833 # Commands used to build a shared archive.
28834 archive_cmds=$lt_archive_cmds
28835 archive_expsym_cmds=$lt_archive_expsym_cmds
28837 # Commands used to build a loadable module if different from building
28838 # a shared archive.
28839 module_cmds=$lt_module_cmds
28840 module_expsym_cmds=$lt_module_expsym_cmds
28842 # Whether we are building with GNU ld or not.
28843 with_gnu_ld=$lt_with_gnu_ld
28845 # Flag that allows shared libraries with undefined symbols to be built.
28846 allow_undefined_flag=$lt_allow_undefined_flag
28848 # Flag that enforces no undefined symbols.
28849 no_undefined_flag=$lt_no_undefined_flag
28851 # Flag to hardcode \$libdir into a binary during linking.
28852 # This must work even if \$libdir does not exist
28853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28855 # If ld is used when linking, flag to hardcode \$libdir into a binary
28856 # during linking. This must work even if \$libdir does not exist.
28857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28859 # Whether we need a single "-rpath" flag with a separated argument.
28860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28863 # DIR into the resulting binary.
28864 hardcode_direct=$hardcode_direct
28866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28867 # DIR into the resulting binary and the resulting library dependency is
28868 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28869 # library is relocated.
28870 hardcode_direct_absolute=$hardcode_direct_absolute
28872 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28873 # into the resulting binary.
28874 hardcode_minus_L=$hardcode_minus_L
28876 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28877 # into the resulting binary.
28878 hardcode_shlibpath_var=$hardcode_shlibpath_var
28880 # Set to "yes" if building a shared library automatically hardcodes DIR
28881 # into the library and all subsequent libraries and executables linked
28882 # against it.
28883 hardcode_automatic=$hardcode_automatic
28885 # Set to yes if linker adds runtime paths of dependent libraries
28886 # to runtime path list.
28887 inherit_rpath=$inherit_rpath
28889 # Whether libtool must link a program against all its dependency libraries.
28890 link_all_deplibs=$link_all_deplibs
28892 # Fix the shell variable \$srcfile for the compiler.
28893 fix_srcfile_path=$lt_fix_srcfile_path
28895 # Set to "yes" if exported symbols are required.
28896 always_export_symbols=$always_export_symbols
28898 # The commands to list exported symbols.
28899 export_symbols_cmds=$lt_export_symbols_cmds
28901 # Symbols that should not be listed in the preloaded symbols.
28902 exclude_expsyms=$lt_exclude_expsyms
28904 # Symbols that must always be exported.
28905 include_expsyms=$lt_include_expsyms
28907 # Commands necessary for linking programs (against libraries) with templates.
28908 prelink_cmds=$lt_prelink_cmds
28910 # Specify filename containing input files.
28911 file_list_spec=$lt_file_list_spec
28913 # How to hardcode a shared library path into an executable.
28914 hardcode_action=$hardcode_action
28916 # The directories searched by this compiler when creating a shared library.
28917 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28919 # Dependencies to place before and after the objects being linked to
28920 # create a shared library.
28921 predep_objects=$lt_predep_objects
28922 postdep_objects=$lt_postdep_objects
28923 predeps=$lt_predeps
28924 postdeps=$lt_postdeps
28926 # The library search path used internally by the compiler when linking
28927 # a shared library.
28928 compiler_lib_search_path=$lt_compiler_lib_search_path
28930 # ### END LIBTOOL CONFIG
28932 _LT_EOF
28934 case $host_os in
28935 aix3*)
28936 cat <<\_LT_EOF >> "$cfgfile"
28937 # AIX sometimes has problems with the GCC collect2 program. For some
28938 # reason, if we set the COLLECT_NAMES environment variable, the problems
28939 # vanish in a puff of smoke.
28940 if test "X${COLLECT_NAMES+set}" != Xset; then
28941 COLLECT_NAMES=
28942 export COLLECT_NAMES
28944 _LT_EOF
28946 esac
28949 ltmain="$ac_aux_dir/ltmain.sh"
28952 # We use sed instead of cat because bash on DJGPP gets confused if
28953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28954 # text mode, it properly converts lines to CR/LF. This bash problem
28955 # is reportedly fixed, but why not run on old versions too?
28956 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28957 || (rm -f "$cfgfile"; exit 1)
28959 case $xsi_shell in
28960 yes)
28961 cat << \_LT_EOF >> "$cfgfile"
28963 # func_dirname file append nondir_replacement
28964 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28965 # otherwise set result to NONDIR_REPLACEMENT.
28966 func_dirname ()
28968 case ${1} in
28969 */*) func_dirname_result="${1%/*}${2}" ;;
28970 * ) func_dirname_result="${3}" ;;
28971 esac
28974 # func_basename file
28975 func_basename ()
28977 func_basename_result="${1##*/}"
28980 # func_dirname_and_basename file append nondir_replacement
28981 # perform func_basename and func_dirname in a single function
28982 # call:
28983 # dirname: Compute the dirname of FILE. If nonempty,
28984 # add APPEND to the result, otherwise set result
28985 # to NONDIR_REPLACEMENT.
28986 # value returned in "$func_dirname_result"
28987 # basename: Compute filename of FILE.
28988 # value retuned in "$func_basename_result"
28989 # Implementation must be kept synchronized with func_dirname
28990 # and func_basename. For efficiency, we do not delegate to
28991 # those functions but instead duplicate the functionality here.
28992 func_dirname_and_basename ()
28994 case ${1} in
28995 */*) func_dirname_result="${1%/*}${2}" ;;
28996 * ) func_dirname_result="${3}" ;;
28997 esac
28998 func_basename_result="${1##*/}"
29001 # func_stripname prefix suffix name
29002 # strip PREFIX and SUFFIX off of NAME.
29003 # PREFIX and SUFFIX must not contain globbing or regex special
29004 # characters, hashes, percent signs, but SUFFIX may contain a leading
29005 # dot (in which case that matches only a dot).
29006 func_stripname ()
29008 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29009 # positional parameters, so assign one to ordinary parameter first.
29010 func_stripname_result=${3}
29011 func_stripname_result=${func_stripname_result#"${1}"}
29012 func_stripname_result=${func_stripname_result%"${2}"}
29015 # func_opt_split
29016 func_opt_split ()
29018 func_opt_split_opt=${1%%=*}
29019 func_opt_split_arg=${1#*=}
29022 # func_lo2o object
29023 func_lo2o ()
29025 case ${1} in
29026 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29027 *) func_lo2o_result=${1} ;;
29028 esac
29031 # func_xform libobj-or-source
29032 func_xform ()
29034 func_xform_result=${1%.*}.lo
29037 # func_arith arithmetic-term...
29038 func_arith ()
29040 func_arith_result=$(( $* ))
29043 # func_len string
29044 # STRING may not start with a hyphen.
29045 func_len ()
29047 func_len_result=${#1}
29050 _LT_EOF
29052 *) # Bourne compatible functions.
29053 cat << \_LT_EOF >> "$cfgfile"
29055 # func_dirname file append nondir_replacement
29056 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29057 # otherwise set result to NONDIR_REPLACEMENT.
29058 func_dirname ()
29060 # Extract subdirectory from the argument.
29061 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29062 if test "X$func_dirname_result" = "X${1}"; then
29063 func_dirname_result="${3}"
29064 else
29065 func_dirname_result="$func_dirname_result${2}"
29069 # func_basename file
29070 func_basename ()
29072 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29076 # func_stripname prefix suffix name
29077 # strip PREFIX and SUFFIX off of NAME.
29078 # PREFIX and SUFFIX must not contain globbing or regex special
29079 # characters, hashes, percent signs, but SUFFIX may contain a leading
29080 # dot (in which case that matches only a dot).
29081 # func_strip_suffix prefix name
29082 func_stripname ()
29084 case ${2} in
29085 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29086 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29087 esac
29090 # sed scripts:
29091 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29092 my_sed_long_arg='1s/^-[^=]*=//'
29094 # func_opt_split
29095 func_opt_split ()
29097 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29098 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29101 # func_lo2o object
29102 func_lo2o ()
29104 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29107 # func_xform libobj-or-source
29108 func_xform ()
29110 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29113 # func_arith arithmetic-term...
29114 func_arith ()
29116 func_arith_result=`expr "$@"`
29119 # func_len string
29120 # STRING may not start with a hyphen.
29121 func_len ()
29123 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29126 _LT_EOF
29127 esac
29129 case $lt_shell_append in
29130 yes)
29131 cat << \_LT_EOF >> "$cfgfile"
29133 # func_append var value
29134 # Append VALUE to the end of shell variable VAR.
29135 func_append ()
29137 eval "$1+=\$2"
29139 _LT_EOF
29142 cat << \_LT_EOF >> "$cfgfile"
29144 # func_append var value
29145 # Append VALUE to the end of shell variable VAR.
29146 func_append ()
29148 eval "$1=\$$1\$2"
29151 _LT_EOF
29153 esac
29156 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29157 || (rm -f "$cfgfile"; exit 1)
29159 mv -f "$cfgfile" "$ofile" ||
29160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29161 chmod +x "$ofile"
29164 cat <<_LT_EOF >> "$ofile"
29166 # ### BEGIN LIBTOOL TAG CONFIG: FC
29168 # The linker used to build libraries.
29169 LD=$lt_LD_FC
29171 # How to create reloadable object files.
29172 reload_flag=$lt_reload_flag_FC
29173 reload_cmds=$lt_reload_cmds_FC
29175 # Commands used to build an old-style archive.
29176 old_archive_cmds=$lt_old_archive_cmds_FC
29178 # A language specific compiler.
29179 CC=$lt_compiler_FC
29181 # Is the compiler the GNU compiler?
29182 with_gcc=$GCC_FC
29184 # Compiler flag to turn off builtin functions.
29185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29187 # How to pass a linker flag through the compiler.
29188 wl=$lt_lt_prog_compiler_wl_FC
29190 # Additional compiler flags for building library objects.
29191 pic_flag=$lt_lt_prog_compiler_pic_FC
29193 # Compiler flag to prevent dynamic linking.
29194 link_static_flag=$lt_lt_prog_compiler_static_FC
29196 # Does compiler simultaneously support -c and -o options?
29197 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29199 # Whether or not to add -lc for building shared libraries.
29200 build_libtool_need_lc=$archive_cmds_need_lc_FC
29202 # Whether or not to disallow shared libs when runtime libs are static.
29203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29205 # Compiler flag to allow reflexive dlopens.
29206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29208 # Compiler flag to generate shared objects directly from archives.
29209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29211 # Whether the compiler copes with passing no objects directly.
29212 compiler_needs_object=$lt_compiler_needs_object_FC
29214 # Create an old-style archive from a shared archive.
29215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29217 # Create a temporary old-style archive to link instead of a shared archive.
29218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29220 # Commands used to build a shared archive.
29221 archive_cmds=$lt_archive_cmds_FC
29222 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29224 # Commands used to build a loadable module if different from building
29225 # a shared archive.
29226 module_cmds=$lt_module_cmds_FC
29227 module_expsym_cmds=$lt_module_expsym_cmds_FC
29229 # Whether we are building with GNU ld or not.
29230 with_gnu_ld=$lt_with_gnu_ld_FC
29232 # Flag that allows shared libraries with undefined symbols to be built.
29233 allow_undefined_flag=$lt_allow_undefined_flag_FC
29235 # Flag that enforces no undefined symbols.
29236 no_undefined_flag=$lt_no_undefined_flag_FC
29238 # Flag to hardcode \$libdir into a binary during linking.
29239 # This must work even if \$libdir does not exist
29240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29242 # If ld is used when linking, flag to hardcode \$libdir into a binary
29243 # during linking. This must work even if \$libdir does not exist.
29244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29246 # Whether we need a single "-rpath" flag with a separated argument.
29247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29249 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29250 # DIR into the resulting binary.
29251 hardcode_direct=$hardcode_direct_FC
29253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29254 # DIR into the resulting binary and the resulting library dependency is
29255 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29256 # library is relocated.
29257 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29259 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29260 # into the resulting binary.
29261 hardcode_minus_L=$hardcode_minus_L_FC
29263 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29264 # into the resulting binary.
29265 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29267 # Set to "yes" if building a shared library automatically hardcodes DIR
29268 # into the library and all subsequent libraries and executables linked
29269 # against it.
29270 hardcode_automatic=$hardcode_automatic_FC
29272 # Set to yes if linker adds runtime paths of dependent libraries
29273 # to runtime path list.
29274 inherit_rpath=$inherit_rpath_FC
29276 # Whether libtool must link a program against all its dependency libraries.
29277 link_all_deplibs=$link_all_deplibs_FC
29279 # Fix the shell variable \$srcfile for the compiler.
29280 fix_srcfile_path=$lt_fix_srcfile_path_FC
29282 # Set to "yes" if exported symbols are required.
29283 always_export_symbols=$always_export_symbols_FC
29285 # The commands to list exported symbols.
29286 export_symbols_cmds=$lt_export_symbols_cmds_FC
29288 # Symbols that should not be listed in the preloaded symbols.
29289 exclude_expsyms=$lt_exclude_expsyms_FC
29291 # Symbols that must always be exported.
29292 include_expsyms=$lt_include_expsyms_FC
29294 # Commands necessary for linking programs (against libraries) with templates.
29295 prelink_cmds=$lt_prelink_cmds_FC
29297 # Specify filename containing input files.
29298 file_list_spec=$lt_file_list_spec_FC
29300 # How to hardcode a shared library path into an executable.
29301 hardcode_action=$hardcode_action_FC
29303 # The directories searched by this compiler when creating a shared library.
29304 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29306 # Dependencies to place before and after the objects being linked to
29307 # create a shared library.
29308 predep_objects=$lt_predep_objects_FC
29309 postdep_objects=$lt_postdep_objects_FC
29310 predeps=$lt_predeps_FC
29311 postdeps=$lt_postdeps_FC
29313 # The library search path used internally by the compiler when linking
29314 # a shared library.
29315 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29317 # ### END LIBTOOL TAG CONFIG: FC
29318 _LT_EOF
29321 "gstdint.h":C)
29322 if test "$GCC" = yes; then
29323 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29324 else
29325 echo "/* generated for $CC */" > tmp-stdint.h
29328 sed 's/^ *//' >> tmp-stdint.h <<EOF
29330 #ifndef GCC_GENERATED_STDINT_H
29331 #define GCC_GENERATED_STDINT_H 1
29333 #include <sys/types.h>
29336 if test "$acx_cv_header_stdint" != stdint.h; then
29337 echo "#include <stddef.h>" >> tmp-stdint.h
29339 if test "$acx_cv_header_stdint" != stddef.h; then
29340 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29343 sed 's/^ *//' >> tmp-stdint.h <<EOF
29344 /* glibc uses these symbols as guards to prevent redefinitions. */
29345 #ifdef __int8_t_defined
29346 #define _INT8_T
29347 #define _INT16_T
29348 #define _INT32_T
29349 #endif
29350 #ifdef __uint32_t_defined
29351 #define _UINT32_T
29352 #endif
29356 # ----------------- done header, emit basic int types -------------
29357 if test "$acx_cv_header_stdint" = stddef.h; then
29358 sed 's/^ *//' >> tmp-stdint.h <<EOF
29360 #ifndef _UINT8_T
29361 #define _UINT8_T
29362 #ifndef __uint8_t_defined
29363 #define __uint8_t_defined
29364 #ifndef uint8_t
29365 typedef unsigned $acx_cv_type_int8_t uint8_t;
29366 #endif
29367 #endif
29368 #endif
29370 #ifndef _UINT16_T
29371 #define _UINT16_T
29372 #ifndef __uint16_t_defined
29373 #define __uint16_t_defined
29374 #ifndef uint16_t
29375 typedef unsigned $acx_cv_type_int16_t uint16_t;
29376 #endif
29377 #endif
29378 #endif
29380 #ifndef _UINT32_T
29381 #define _UINT32_T
29382 #ifndef __uint32_t_defined
29383 #define __uint32_t_defined
29384 #ifndef uint32_t
29385 typedef unsigned $acx_cv_type_int32_t uint32_t;
29386 #endif
29387 #endif
29388 #endif
29390 #ifndef _INT8_T
29391 #define _INT8_T
29392 #ifndef __int8_t_defined
29393 #define __int8_t_defined
29394 #ifndef int8_t
29395 typedef $acx_cv_type_int8_t int8_t;
29396 #endif
29397 #endif
29398 #endif
29400 #ifndef _INT16_T
29401 #define _INT16_T
29402 #ifndef __int16_t_defined
29403 #define __int16_t_defined
29404 #ifndef int16_t
29405 typedef $acx_cv_type_int16_t int16_t;
29406 #endif
29407 #endif
29408 #endif
29410 #ifndef _INT32_T
29411 #define _INT32_T
29412 #ifndef __int32_t_defined
29413 #define __int32_t_defined
29414 #ifndef int32_t
29415 typedef $acx_cv_type_int32_t int32_t;
29416 #endif
29417 #endif
29418 #endif
29420 elif test "$ac_cv_type_u_int32_t" = yes; then
29421 sed 's/^ *//' >> tmp-stdint.h <<EOF
29423 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29424 #ifndef _INT8_T
29425 #define _INT8_T
29426 #endif
29427 #ifndef _INT16_T
29428 #define _INT16_T
29429 #endif
29430 #ifndef _INT32_T
29431 #define _INT32_T
29432 #endif
29434 #ifndef _UINT8_T
29435 #define _UINT8_T
29436 #ifndef __uint8_t_defined
29437 #define __uint8_t_defined
29438 #ifndef uint8_t
29439 typedef u_int8_t uint8_t;
29440 #endif
29441 #endif
29442 #endif
29444 #ifndef _UINT16_T
29445 #define _UINT16_T
29446 #ifndef __uint16_t_defined
29447 #define __uint16_t_defined
29448 #ifndef uint16_t
29449 typedef u_int16_t uint16_t;
29450 #endif
29451 #endif
29452 #endif
29454 #ifndef _UINT32_T
29455 #define _UINT32_T
29456 #ifndef __uint32_t_defined
29457 #define __uint32_t_defined
29458 #ifndef uint32_t
29459 typedef u_int32_t uint32_t;
29460 #endif
29461 #endif
29462 #endif
29464 else
29465 sed 's/^ *//' >> tmp-stdint.h <<EOF
29467 /* Some systems have guard macros to prevent redefinitions, define them. */
29468 #ifndef _INT8_T
29469 #define _INT8_T
29470 #endif
29471 #ifndef _INT16_T
29472 #define _INT16_T
29473 #endif
29474 #ifndef _INT32_T
29475 #define _INT32_T
29476 #endif
29477 #ifndef _UINT8_T
29478 #define _UINT8_T
29479 #endif
29480 #ifndef _UINT16_T
29481 #define _UINT16_T
29482 #endif
29483 #ifndef _UINT32_T
29484 #define _UINT32_T
29485 #endif
29489 # ------------- done basic int types, emit int64_t types ------------
29490 if test "$ac_cv_type_uint64_t" = yes; then
29491 sed 's/^ *//' >> tmp-stdint.h <<EOF
29493 /* system headers have good uint64_t and int64_t */
29494 #ifndef _INT64_T
29495 #define _INT64_T
29496 #endif
29497 #ifndef _UINT64_T
29498 #define _UINT64_T
29499 #endif
29501 elif test "$ac_cv_type_u_int64_t" = yes; then
29502 sed 's/^ *//' >> tmp-stdint.h <<EOF
29504 /* system headers have an u_int64_t (and int64_t) */
29505 #ifndef _INT64_T
29506 #define _INT64_T
29507 #endif
29508 #ifndef _UINT64_T
29509 #define _UINT64_T
29510 #ifndef __uint64_t_defined
29511 #define __uint64_t_defined
29512 #ifndef uint64_t
29513 typedef u_int64_t uint64_t;
29514 #endif
29515 #endif
29516 #endif
29518 elif test -n "$acx_cv_type_int64_t"; then
29519 sed 's/^ *//' >> tmp-stdint.h <<EOF
29521 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29522 #ifndef _INT64_T
29523 #define _INT64_T
29524 #ifndef int64_t
29525 typedef $acx_cv_type_int64_t int64_t;
29526 #endif
29527 #endif
29528 #ifndef _UINT64_T
29529 #define _UINT64_T
29530 #ifndef __uint64_t_defined
29531 #define __uint64_t_defined
29532 #ifndef uint64_t
29533 typedef unsigned $acx_cv_type_int64_t uint64_t;
29534 #endif
29535 #endif
29536 #endif
29538 else
29539 sed 's/^ *//' >> tmp-stdint.h <<EOF
29541 /* some common heuristics for int64_t, using compiler-specific tests */
29542 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29543 #ifndef _INT64_T
29544 #define _INT64_T
29545 #ifndef __int64_t_defined
29546 #ifndef int64_t
29547 typedef long long int64_t;
29548 #endif
29549 #endif
29550 #endif
29551 #ifndef _UINT64_T
29552 #define _UINT64_T
29553 #ifndef uint64_t
29554 typedef unsigned long long uint64_t;
29555 #endif
29556 #endif
29558 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29559 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29560 does not implement __extension__. But that compiler doesn't define
29561 __GNUC_MINOR__. */
29562 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29563 # define __extension__
29564 # endif
29566 # ifndef _INT64_T
29567 # define _INT64_T
29568 # ifndef int64_t
29569 __extension__ typedef long long int64_t;
29570 # endif
29571 # endif
29572 # ifndef _UINT64_T
29573 # define _UINT64_T
29574 # ifndef uint64_t
29575 __extension__ typedef unsigned long long uint64_t;
29576 # endif
29577 # endif
29579 #elif !defined __STRICT_ANSI__
29580 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29582 # ifndef _INT64_T
29583 # define _INT64_T
29584 # ifndef int64_t
29585 typedef __int64 int64_t;
29586 # endif
29587 # endif
29588 # ifndef _UINT64_T
29589 # define _UINT64_T
29590 # ifndef uint64_t
29591 typedef unsigned __int64 uint64_t;
29592 # endif
29593 # endif
29594 # endif /* compiler */
29596 #endif /* ANSI version */
29600 # ------------- done int64_t types, emit intptr types ------------
29601 if test "$ac_cv_type_uintptr_t" != yes; then
29602 sed 's/^ *//' >> tmp-stdint.h <<EOF
29604 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29605 #ifndef __uintptr_t_defined
29606 #ifndef uintptr_t
29607 typedef u$acx_cv_type_intptr_t uintptr_t;
29608 #endif
29609 #endif
29610 #ifndef __intptr_t_defined
29611 #ifndef intptr_t
29612 typedef $acx_cv_type_intptr_t intptr_t;
29613 #endif
29614 #endif
29618 # ------------- done intptr types, emit int_least types ------------
29619 if test "$ac_cv_type_int_least32_t" != yes; then
29620 sed 's/^ *//' >> tmp-stdint.h <<EOF
29622 /* Define int_least types */
29623 typedef int8_t int_least8_t;
29624 typedef int16_t int_least16_t;
29625 typedef int32_t int_least32_t;
29626 #ifdef _INT64_T
29627 typedef int64_t int_least64_t;
29628 #endif
29630 typedef uint8_t uint_least8_t;
29631 typedef uint16_t uint_least16_t;
29632 typedef uint32_t uint_least32_t;
29633 #ifdef _UINT64_T
29634 typedef uint64_t uint_least64_t;
29635 #endif
29639 # ------------- done intptr types, emit int_fast types ------------
29640 if test "$ac_cv_type_int_fast32_t" != yes; then
29641 sed 's/^ *//' >> tmp-stdint.h <<EOF
29643 /* Define int_fast types. short is often slow */
29644 typedef int8_t int_fast8_t;
29645 typedef int int_fast16_t;
29646 typedef int32_t int_fast32_t;
29647 #ifdef _INT64_T
29648 typedef int64_t int_fast64_t;
29649 #endif
29651 typedef uint8_t uint_fast8_t;
29652 typedef unsigned int uint_fast16_t;
29653 typedef uint32_t uint_fast32_t;
29654 #ifdef _UINT64_T
29655 typedef uint64_t uint_fast64_t;
29656 #endif
29660 if test "$ac_cv_type_uintmax_t" != yes; then
29661 sed 's/^ *//' >> tmp-stdint.h <<EOF
29663 /* Define intmax based on what we found */
29664 #ifndef intmax_t
29665 #ifdef _INT64_T
29666 typedef int64_t intmax_t;
29667 #else
29668 typedef long intmax_t;
29669 #endif
29670 #endif
29671 #ifndef uintmax_t
29672 #ifdef _UINT64_T
29673 typedef uint64_t uintmax_t;
29674 #else
29675 typedef unsigned long uintmax_t;
29676 #endif
29677 #endif
29681 sed 's/^ *//' >> tmp-stdint.h <<EOF
29683 #endif /* GCC_GENERATED_STDINT_H */
29686 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29687 rm -f tmp-stdint.h
29688 else
29689 mv -f tmp-stdint.h gstdint.h
29694 esac
29695 done # for ac_tag
29698 as_fn_exit 0
29699 _ACEOF
29700 ac_clean_files=$ac_clean_files_save
29702 test $ac_write_fail = 0 ||
29703 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29706 # configure is writing to config.log, and then calls config.status.
29707 # config.status does its own redirection, appending to config.log.
29708 # Unfortunately, on DOS this fails, as config.log is still kept open
29709 # by configure, so config.status won't be able to write to it; its
29710 # output is simply discarded. So we exec the FD to /dev/null,
29711 # effectively closing config.log, so it can be properly (re)opened and
29712 # appended to by config.status. When coming back to configure, we
29713 # need to make the FD available again.
29714 if test "$no_create" != yes; then
29715 ac_cs_success=:
29716 ac_config_status_args=
29717 test "$silent" = yes &&
29718 ac_config_status_args="$ac_config_status_args --quiet"
29719 exec 5>/dev/null
29720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29721 exec 5>>config.log
29722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29723 # would make configure fail if this is the last instruction.
29724 $ac_cs_success || as_fn_exit $?
29726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}