* dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
[official-gcc.git] / libgfortran / configure
blob87c83cab73a9364037b965f974bd60a91732e269
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_symvers
777 with_gnu_ld
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 enable_libtool_lock
783 enable_largefile
784 enable_libquadmath_support
785 with_gcc_major_version_only
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
797 FCFLAGS'
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
848 ac_prev=
849 ac_dashdash=
850 for ac_option
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
859 case $ac_option in
860 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *) ac_optarg=yes ;;
862 esac
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
868 ac_dashdash=yes ;;
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
887 --config-cache | -C)
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1132 -with-* | --with-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information."
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 esac
1205 done
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1253 If a cross compiler is detected then cross compile mode will be used." >&2
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1291 /^X\(\/\/\)$/{
1292 s//\1/
1295 /^X\(\/\).*/{
1296 s//\1/
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1304 else
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405 _ACEOF
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1411 esac
1412 cat <<\_ACEOF
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-version-specific-runtime-libs
1419 specify that runtime libraries should be installed
1420 in a compiler-specific directory
1421 --enable-intermodule build the library in one step
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
1424 --enable-multilib build many library versions (default)
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --disable-symvers disable symbol versioning for libgfortran
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --disable-largefile omit support for large files
1434 --disable-libquadmath-support
1435 disable libquadmath support for Fortran
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-build-libsubdir=DIR Directory where to find libraries for build system
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-pic try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-gcc-major-version-only
1445 use only GCC major number in filesystem paths
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456 FC Fortran compiler command
1457 FCFLAGS Fortran compiler flags
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to the package provider.
1463 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1464 General help using GNU software: <http://www.gnu.org/gethelp/>.
1465 _ACEOF
1466 ac_status=$?
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 GNU Fortran Runtime Library configure 0.3
1528 generated by GNU Autoconf 2.64
1530 Copyright (C) 2009 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=1
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } >/dev/null && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 return $ac_retval
1614 } # ac_fn_c_try_cpp
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1620 # accordingly.
1621 ac_fn_c_check_header_mongrel ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 else
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644 else
1645 ac_header_compiler=no
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660 else
1661 ac_header_preproc=no
1663 rm -f conftest.err conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 esac
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691 $as_echo_n "(cached) " >&6
1692 else
1693 eval "$3=\$ac_header_compiler"
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 } # ac_fn_c_check_header_mongrel
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1707 ac_fn_c_try_run ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_retval=$ac_status
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_c_try_run
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_c_check_header_compile
1776 # ac_fn_c_try_link LINENO
1777 # -----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_link ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
1803 $as_test_x conftest$ac_exeext
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=1
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 return $ac_retval
1820 } # ac_fn_c_try_link
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 if test x$gcc_no_link = xyes; then
1834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1853 #undef $2
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1870 main ()
1872 return $2 ();
1874 return 0;
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 } # ac_fn_c_check_func
1892 # ac_fn_fc_try_compile LINENO
1893 # ---------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_fc_try_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_fc_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1928 } # ac_fn_fc_try_compile
1930 # ac_fn_fc_try_link LINENO
1931 # ------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_fc_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_fc_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 $as_test_x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 return $ac_retval
1974 } # ac_fn_fc_try_link
1976 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1977 # -------------------------------------------
1978 # Tests whether TYPE exists after having included INCLUDES, setting cache
1979 # variable VAR accordingly.
1980 ac_fn_c_check_type ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 eval "$3=no"
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 if (sizeof ($2))
1996 return 0;
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 main ()
2008 if (sizeof (($2)))
2009 return 0;
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2016 else
2017 eval "$3=yes"
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 } # ac_fn_c_check_type
2030 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2031 # --------------------------------------------
2032 # Tries to find the compile-time value of EXPR in a program that includes
2033 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2034 # computed
2035 ac_fn_c_compute_int ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if test "$cross_compiling" = yes; then
2039 # Depending upon the size, compute the lo and hi bounds.
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main ()
2046 static int test_array [1 - 2 * !(($2) >= 0)];
2047 test_array [0] = 0
2050 return 0;
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_lo=0 ac_mid=0
2055 while :; do
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2060 main ()
2062 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2063 test_array [0] = 0
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid; break
2071 else
2072 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073 if test $ac_lo -le $ac_mid; then
2074 ac_lo= ac_hi=
2075 break
2077 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) < 0)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=-1 ac_mid=-1
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=$ac_mid; break
2113 else
2114 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115 if test $ac_mid -le $ac_hi; then
2116 ac_lo= ac_hi=
2117 break
2119 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 ac_lo= ac_hi=
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 main ()
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0
2142 return 0;
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=$ac_mid
2147 else
2148 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 done
2152 case $ac_lo in #((
2153 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 '') ac_retval=1 ;;
2155 esac
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2160 static long int longval () { return $2; }
2161 static unsigned long int ulongval () { return $2; }
2162 #include <stdio.h>
2163 #include <stdlib.h>
2165 main ()
2168 FILE *f = fopen ("conftest.val", "w");
2169 if (! f)
2170 return 1;
2171 if (($2) < 0)
2173 long int i = longval ();
2174 if (i != ($2))
2175 return 1;
2176 fprintf (f, "%ld", i);
2178 else
2180 unsigned long int i = ulongval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%lu", i);
2185 /* Do not output a trailing newline, as this causes \r\n confusion
2186 on some platforms. */
2187 return ferror (f) || fclose (f) != 0;
2190 return 0;
2192 _ACEOF
2193 if ac_fn_c_try_run "$LINENO"; then :
2194 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 else
2196 ac_retval=1
2198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199 conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 rm -f conftest.val
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204 return $ac_retval
2206 } # ac_fn_c_compute_int
2208 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209 # ----------------------------------------------------
2210 # Tries to find if the field MEMBER exists in type AGGR, after including
2211 # INCLUDES, setting cache variable VAR accordingly.
2212 ac_fn_c_check_member ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216 $as_echo_n "checking for $2.$3... " >&6; }
2217 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 main ()
2226 static $2 ac_aggr;
2227 if (ac_aggr.$3)
2228 return 0;
2230 return 0;
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234 eval "$4=yes"
2235 else
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2240 main ()
2242 static $2 ac_aggr;
2243 if (sizeof ac_aggr.$3)
2244 return 0;
2246 return 0;
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 eval "$4=yes"
2251 else
2252 eval "$4=no"
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 eval ac_res=\$$4
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 } # ac_fn_c_check_member
2264 cat >config.log <<_ACEOF
2265 This file contains any messages produced by compilers while
2266 running configure, to aid debugging if configure makes a mistake.
2268 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2269 generated by GNU Autoconf 2.64. Invocation command line was
2271 $ $0 $@
2273 _ACEOF
2274 exec 5>>config.log
2276 cat <<_ASUNAME
2277 ## --------- ##
2278 ## Platform. ##
2279 ## --------- ##
2281 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2282 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2283 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2284 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2285 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2287 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2288 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2290 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2291 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2292 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2293 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2294 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2295 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2296 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298 _ASUNAME
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 $as_echo "PATH: $as_dir"
2306 done
2307 IFS=$as_save_IFS
2309 } >&5
2311 cat >&5 <<_ACEOF
2314 ## ----------- ##
2315 ## Core tests. ##
2316 ## ----------- ##
2318 _ACEOF
2321 # Keep a trace of the command line.
2322 # Strip out --no-create and --no-recursion so they do not pile up.
2323 # Strip out --silent because we don't want to record it for future runs.
2324 # Also quote any args containing shell meta-characters.
2325 # Make two passes to allow for proper duplicate-argument suppression.
2326 ac_configure_args=
2327 ac_configure_args0=
2328 ac_configure_args1=
2329 ac_must_keep_next=false
2330 for ac_pass in 1 2
2332 for ac_arg
2334 case $ac_arg in
2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2337 | -silent | --silent | --silen | --sile | --sil)
2338 continue ;;
2339 *\'*)
2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 esac
2342 case $ac_pass in
2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345 as_fn_append ac_configure_args1 " '$ac_arg'"
2346 if test $ac_must_keep_next = true; then
2347 ac_must_keep_next=false # Got value, back to normal.
2348 else
2349 case $ac_arg in
2350 *=* | --config-cache | -C | -disable-* | --disable-* \
2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2353 | -with-* | --with-* | -without-* | --without-* | --x)
2354 case "$ac_configure_args0 " in
2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 esac
2358 -* ) ac_must_keep_next=true ;;
2359 esac
2361 as_fn_append ac_configure_args " '$ac_arg'"
2363 esac
2364 done
2365 done
2366 { ac_configure_args0=; unset ac_configure_args0;}
2367 { ac_configure_args1=; unset ac_configure_args1;}
2369 # When interrupted or exit'd, cleanup temporary files, and complete
2370 # config.log. We remove comments because anyway the quotes in there
2371 # would cause problems or look ugly.
2372 # WARNING: Use '\'' to represent an apostrophe within the trap.
2373 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2374 trap 'exit_status=$?
2375 # Save into config.log some information that might help in debugging.
2377 echo
2379 cat <<\_ASBOX
2380 ## ---------------- ##
2381 ## Cache variables. ##
2382 ## ---------------- ##
2383 _ASBOX
2384 echo
2385 # The following way of writing the cache mishandles newlines in values,
2387 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in #(
2390 *${as_nl}*)
2391 case $ac_var in #(
2392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394 esac
2395 case $ac_var in #(
2396 _ | IFS | as_nl) ;; #(
2397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398 *) { eval $ac_var=; unset $ac_var;} ;;
2399 esac ;;
2400 esac
2401 done
2402 (set) 2>&1 |
2403 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404 *${as_nl}ac_space=\ *)
2405 sed -n \
2406 "s/'\''/'\''\\\\'\'''\''/g;
2407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408 ;; #(
2410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412 esac |
2413 sort
2415 echo
2417 cat <<\_ASBOX
2418 ## ----------------- ##
2419 ## Output variables. ##
2420 ## ----------------- ##
2421 _ASBOX
2422 echo
2423 for ac_var in $ac_subst_vars
2425 eval ac_val=\$$ac_var
2426 case $ac_val in
2427 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 esac
2429 $as_echo "$ac_var='\''$ac_val'\''"
2430 done | sort
2431 echo
2433 if test -n "$ac_subst_files"; then
2434 cat <<\_ASBOX
2435 ## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##
2438 _ASBOX
2439 echo
2440 for ac_var in $ac_subst_files
2442 eval ac_val=\$$ac_var
2443 case $ac_val in
2444 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 esac
2446 $as_echo "$ac_var='\''$ac_val'\''"
2447 done | sort
2448 echo
2451 if test -s confdefs.h; then
2452 cat <<\_ASBOX
2453 ## ----------- ##
2454 ## confdefs.h. ##
2455 ## ----------- ##
2456 _ASBOX
2457 echo
2458 cat confdefs.h
2459 echo
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2464 } >&5
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 exit $exit_status
2469 for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2477 $as_echo "/* confdefs.h */" > confdefs.h
2479 # Predefined preprocessor variables.
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511 ac_site_file1=$CONFIG_SITE
2512 elif test "x$prefix" != xNONE; then
2513 ac_site_file1=$prefix/share/config.site
2514 ac_site_file2=$prefix/etc/config.site
2515 else
2516 ac_site_file1=$ac_default_prefix/share/config.site
2517 ac_site_file2=$ac_default_prefix/etc/config.site
2519 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2521 test "x$ac_site_file" = xNONE && continue
2522 if test -r "$ac_site_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525 sed 's/^/| /' "$ac_site_file" >&5
2526 . "$ac_site_file"
2528 done
2530 if test -r "$cache_file"; then
2531 # Some versions of bash will fail to source /dev/null (special
2532 # files actually), so we avoid doing that.
2533 if test -f "$cache_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 case $cache_file in
2537 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538 *) . "./$cache_file";;
2539 esac
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 >$cache_file
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_header_list " sys/time.h"
2549 as_fn_append ac_header_list " sys/times.h"
2550 as_fn_append ac_header_list " sys/resource.h"
2551 as_fn_append ac_header_list " sys/types.h"
2552 as_fn_append ac_header_list " sys/stat.h"
2553 as_fn_append ac_header_list " sys/wait.h"
2554 as_fn_append ac_header_list " floatingpoint.h"
2555 as_fn_append ac_header_list " ieeefp.h"
2556 as_fn_append ac_header_list " fenv.h"
2557 as_fn_append ac_header_list " fptrap.h"
2558 as_fn_append ac_header_list " fpxcp.h"
2559 as_fn_append ac_header_list " pwd.h"
2560 as_fn_append ac_header_list " complex.h"
2561 as_fn_append ac_header_list " xlocale.h"
2562 as_fn_append ac_func_list " getrusage"
2563 as_fn_append ac_func_list " times"
2564 as_fn_append ac_func_list " mkstemp"
2565 as_fn_append ac_func_list " strtof"
2566 as_fn_append ac_func_list " strtold"
2567 as_fn_append ac_func_list " snprintf"
2568 as_fn_append ac_func_list " ftruncate"
2569 as_fn_append ac_func_list " chsize"
2570 as_fn_append ac_func_list " chdir"
2571 as_fn_append ac_func_list " getlogin"
2572 as_fn_append ac_func_list " gethostname"
2573 as_fn_append ac_func_list " kill"
2574 as_fn_append ac_func_list " link"
2575 as_fn_append ac_func_list " symlink"
2576 as_fn_append ac_func_list " sleep"
2577 as_fn_append ac_func_list " ttyname"
2578 as_fn_append ac_func_list " alarm"
2579 as_fn_append ac_func_list " access"
2580 as_fn_append ac_func_list " fork"
2581 as_fn_append ac_func_list " setmode"
2582 as_fn_append ac_func_list " fcntl"
2583 as_fn_append ac_func_list " gettimeofday"
2584 as_fn_append ac_func_list " stat"
2585 as_fn_append ac_func_list " fstat"
2586 as_fn_append ac_func_list " lstat"
2587 as_fn_append ac_func_list " getpwuid"
2588 as_fn_append ac_func_list " vsnprintf"
2589 as_fn_append ac_func_list " dup"
2590 as_fn_append ac_func_list " getcwd"
2591 as_fn_append ac_func_list " localtime_r"
2592 as_fn_append ac_func_list " gmtime_r"
2593 as_fn_append ac_func_list " getpwuid_r"
2594 as_fn_append ac_func_list " ttyname_r"
2595 as_fn_append ac_func_list " clock_gettime"
2596 as_fn_append ac_func_list " getgid"
2597 as_fn_append ac_func_list " getpid"
2598 as_fn_append ac_func_list " getuid"
2599 as_fn_append ac_func_list " geteuid"
2600 as_fn_append ac_func_list " umask"
2601 as_fn_append ac_func_list " getegid"
2602 as_fn_append ac_func_list " secure_getenv"
2603 as_fn_append ac_func_list " __secure_getenv"
2604 as_fn_append ac_func_list " mkostemp"
2605 as_fn_append ac_func_list " strnlen"
2606 as_fn_append ac_func_list " strndup"
2607 as_fn_append ac_func_list " newlocale"
2608 as_fn_append ac_func_list " freelocale"
2609 as_fn_append ac_func_list " uselocale"
2610 as_fn_append ac_func_list " strerror_l"
2611 as_fn_append ac_header_list " math.h"
2612 # Check that the precious variables saved in the cache have kept the same
2613 # value.
2614 ac_cache_corrupted=false
2615 for ac_var in $ac_precious_vars; do
2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2617 eval ac_new_set=\$ac_env_${ac_var}_set
2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2619 eval ac_new_val=\$ac_env_${ac_var}_value
2620 case $ac_old_set,$ac_new_set in
2621 set,)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,set)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,);;
2631 if test "x$ac_old_val" != "x$ac_new_val"; then
2632 # differences in whitespace do not lead to failure.
2633 ac_old_val_w=`echo x $ac_old_val`
2634 ac_new_val_w=`echo x $ac_new_val`
2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638 ac_cache_corrupted=:
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642 eval $ac_var=\$ac_old_val
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2645 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2647 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 fi;;
2649 esac
2650 # Pass precious variables to config.status.
2651 if test "$ac_new_set" = set; then
2652 case $ac_new_val in
2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654 *) ac_arg=$ac_var=$ac_new_val ;;
2655 esac
2656 case " $ac_configure_args " in
2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2659 esac
2661 done
2662 if $ac_cache_corrupted; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2667 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683 ac_config_headers="$ac_config_headers config.h"
2685 ac_aux_dir=
2686 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2687 for ac_t in install-sh install.sh shtool; do
2688 if test -f "$ac_dir/$ac_t"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/$ac_t -c"
2691 break 2
2693 done
2694 done
2695 if test -z "$ac_aux_dir"; then
2696 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2699 # These three variables are undocumented and unsupported,
2700 # and are intended to be withdrawn in a future Autoconf release.
2701 # They can cause serious problems if a builder's source tree is in a directory
2702 # whose full name contains unusual characters.
2703 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2704 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2705 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2708 # Make sure we can run config.sub.
2709 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2710 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2713 $as_echo_n "checking build system type... " >&6; }
2714 if test "${ac_cv_build+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 ac_build_alias=$build_alias
2718 test "x$ac_build_alias" = x &&
2719 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2720 test "x$ac_build_alias" = x &&
2721 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2723 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2727 $as_echo "$ac_cv_build" >&6; }
2728 case $ac_cv_build in
2729 *-*-*) ;;
2730 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2731 esac
2732 build=$ac_cv_build
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_build
2735 shift
2736 build_cpu=$1
2737 build_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 build_os=$*
2742 IFS=$ac_save_IFS
2743 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2746 case ${build_alias} in
2747 "") build_noncanonical=${build} ;;
2748 *) build_noncanonical=${build_alias} ;;
2749 esac
2751 case ${host_alias} in
2752 "") host_noncanonical=${build_noncanonical} ;;
2753 *) host_noncanonical=${host_alias} ;;
2754 esac
2756 case ${target_alias} in
2757 "") target_noncanonical=${host_noncanonical} ;;
2758 *) target_noncanonical=${target_alias} ;;
2759 esac
2762 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2763 # have matching libraries, they should use host libraries: Makefile.tpl
2764 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2765 # However, they still use the build modules, because the corresponding
2766 # host modules (e.g. bison) are only built for the host when bootstrap
2767 # finishes. So:
2768 # - build_subdir is where we find build modules, and never changes.
2769 # - build_libsubdir is where we find build libraries, and can be overridden.
2771 # Prefix 'build-' so this never conflicts with target_subdir.
2772 build_subdir="build-${build_noncanonical}"
2774 # Check whether --with-build-libsubdir was given.
2775 if test "${with_build_libsubdir+set}" = set; then :
2776 withval=$with_build_libsubdir; build_libsubdir="$withval"
2777 else
2778 build_libsubdir="$build_subdir"
2781 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2782 if ( test $srcdir = . && test -d gcc ) \
2783 || test -d $srcdir/../host-${host_noncanonical}; then
2784 host_subdir="host-${host_noncanonical}"
2785 else
2786 host_subdir=.
2788 # No prefix.
2789 target_subdir=${target_noncanonical}
2792 # -------
2793 # Options
2794 # -------
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2797 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2798 # Check whether --enable-version-specific-runtime-libs was given.
2799 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2800 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2801 yes) version_specific_libs=yes ;;
2802 no) version_specific_libs=no ;;
2803 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2804 esac
2805 else
2806 version_specific_libs=no
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2810 $as_echo "$version_specific_libs" >&6; }
2812 # Build with intermodule optimisations
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2814 $as_echo_n "checking for --enable-intermodule... " >&6; }
2815 # Check whether --enable-intermodule was given.
2816 if test "${enable_intermodule+set}" = set; then :
2817 enableval=$enable_intermodule; case "$enable_intermodule" in
2818 yes) onestep="-onestep";;
2819 *) onestep="";;
2820 esac
2821 else
2822 onestep=""
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2826 $as_echo "$enable_intermodule" >&6; }
2827 if test x$onestep = x-onestep; then
2828 onestep_TRUE=
2829 onestep_FALSE='#'
2830 else
2831 onestep_TRUE='#'
2832 onestep_FALSE=
2837 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2839 # You will slowly go insane if you do not grok the following fact: when
2840 # building this library, the top-level /target/ becomes the library's /host/.
2842 # configure then causes --target to default to --host, exactly like any
2843 # other package using autoconf. Therefore, 'target' and 'host' will
2844 # always be the same. This makes sense both for native and cross compilers
2845 # just think about it for a little while. :-)
2847 # Also, if this library is being configured as part of a cross compiler, the
2848 # top-level configure script will pass the "real" host as $with_cross_host.
2850 # Do not delete or change the following two lines. For why, see
2851 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2853 $as_echo_n "checking host system type... " >&6; }
2854 if test "${ac_cv_host+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test "x$host_alias" = x; then
2858 ac_cv_host=$ac_cv_build
2859 else
2860 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2861 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2866 $as_echo "$ac_cv_host" >&6; }
2867 case $ac_cv_host in
2868 *-*-*) ;;
2869 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2870 esac
2871 host=$ac_cv_host
2872 ac_save_IFS=$IFS; IFS='-'
2873 set x $ac_cv_host
2874 shift
2875 host_cpu=$1
2876 host_vendor=$2
2877 shift; shift
2878 # Remember, the first character of IFS is used to create $*,
2879 # except with old shells:
2880 host_os=$*
2881 IFS=$ac_save_IFS
2882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2886 $as_echo_n "checking target system type... " >&6; }
2887 if test "${ac_cv_target+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test "x$target_alias" = x; then
2891 ac_cv_target=$ac_cv_host
2892 else
2893 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2894 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2899 $as_echo "$ac_cv_target" >&6; }
2900 case $ac_cv_target in
2901 *-*-*) ;;
2902 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2903 esac
2904 target=$ac_cv_target
2905 ac_save_IFS=$IFS; IFS='-'
2906 set x $ac_cv_target
2907 shift
2908 target_cpu=$1
2909 target_vendor=$2
2910 shift; shift
2911 # Remember, the first character of IFS is used to create $*,
2912 # except with old shells:
2913 target_os=$*
2914 IFS=$ac_save_IFS
2915 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2918 # The aliases save the names the user supplied, while $host etc.
2919 # will get canonicalized.
2920 test -n "$target_alias" &&
2921 test "$program_prefix$program_suffix$program_transform_name" = \
2922 NONENONEs,x,x, &&
2923 program_prefix=${target_alias}-
2928 target_alias=${target_alias-$host_alias}
2931 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2932 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2933 # 1.9.6: minimum required version
2934 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2935 # of other PACKAGE_* variables will, however, and there's nothing
2936 # we can do about that; they come from AC_INIT).
2937 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2938 # file in the top srcdir, etc, etc), so stop complaining.
2939 # no-dist: we don't want 'dist' and related rules.
2940 # -Wall: turns on all automake warnings...
2941 # -Wno-portability: ...except this one, since GNU make is required.
2942 am__api_version='1.11'
2944 # Find a good install program. We prefer a C program (faster),
2945 # so one script is as good as another. But avoid the broken or
2946 # incompatible versions:
2947 # SysV /etc/install, /usr/sbin/install
2948 # SunOS /usr/etc/install
2949 # IRIX /sbin/install
2950 # AIX /bin/install
2951 # AmigaOS /C/install, which installs bootblocks on floppy discs
2952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955 # OS/2's system install, which has a completely different semantic
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 # Reject install programs that cannot install multiple files.
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2959 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2960 if test -z "$INSTALL"; then
2961 if test "${ac_cv_path_install+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 # Account for people who put trailing slashes in PATH elements.
2970 case $as_dir/ in #((
2971 ./ | .// | /[cC]/* | \
2972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2973 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2974 /usr/ucb/* ) ;;
2976 # OSF1 and SCO ODT 3.0 have their own names for install.
2977 # Don't use installbsd from OSF since it installs stuff as root
2978 # by default.
2979 for ac_prog in ginstall scoinst install; do
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2982 if test $ac_prog = install &&
2983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984 # AIX install. It has an incompatible calling convention.
2986 elif test $ac_prog = install &&
2987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2988 # program-specific install script used by HP pwplus--don't use.
2990 else
2991 rm -rf conftest.one conftest.two conftest.dir
2992 echo one > conftest.one
2993 echo two > conftest.two
2994 mkdir conftest.dir
2995 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2996 test -s conftest.one && test -s conftest.two &&
2997 test -s conftest.dir/conftest.one &&
2998 test -s conftest.dir/conftest.two
2999 then
3000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3001 break 3
3005 done
3006 done
3008 esac
3010 done
3011 IFS=$as_save_IFS
3013 rm -rf conftest.one conftest.two conftest.dir
3016 if test "${ac_cv_path_install+set}" = set; then
3017 INSTALL=$ac_cv_path_install
3018 else
3019 # As a last resort, use the slow shell script. Don't cache a
3020 # value for INSTALL within a source directory, because that will
3021 # break other packages using the cache if that directory is
3022 # removed, or if the value is a relative name.
3023 INSTALL=$ac_install_sh
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3027 $as_echo "$INSTALL" >&6; }
3029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3030 # It thinks the first close brace ends the variable substitution.
3031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3033 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3035 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3038 $as_echo_n "checking whether build environment is sane... " >&6; }
3039 # Just in case
3040 sleep 1
3041 echo timestamp > conftest.file
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name. Accept space and tab only in the latter.
3044 am_lf='
3046 case `pwd` in
3047 *[\\\"\#\$\&\'\`$am_lf]*)
3048 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3049 esac
3050 case $srcdir in
3051 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3052 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3053 esac
3055 # Do `set' in a subshell so we don't clobber the current shell's
3056 # arguments. Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3059 # directory).
3060 if (
3061 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3062 if test "$*" = "X"; then
3063 # -L didn't work.
3064 set X `ls -t "$srcdir/configure" conftest.file`
3066 rm -f conftest.file
3067 if test "$*" != "X $srcdir/configure conftest.file" \
3068 && test "$*" != "X conftest.file $srcdir/configure"; then
3070 # If neither matched, then we have a broken ls. This can happen
3071 # if, for instance, CONFIG_SHELL is bash and it inherits a
3072 # broken ls alias from the environment. This has actually
3073 # happened. Such a system could not be considered "sane".
3074 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3075 alias in your environment" "$LINENO" 5
3078 test "$2" = conftest.file
3080 then
3081 # Ok.
3083 else
3084 as_fn_error "newly created file is older than distributed files!
3085 Check your system clock" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 $as_echo "yes" >&6; }
3089 test "$program_prefix" != NONE &&
3090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3091 # Use a double $ so make ignores it.
3092 test "$program_suffix" != NONE &&
3093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3094 # Double any \ or $.
3095 # By default was `s,x,x', remove it if useless.
3096 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3097 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3099 # expand $ac_aux_dir to an absolute path
3100 am_aux_dir=`cd $ac_aux_dir && pwd`
3102 if test x"${MISSING+set}" != xset; then
3103 case $am_aux_dir in
3104 *\ * | *\ *)
3105 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3107 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3108 esac
3110 # Use eval to expand $SHELL
3111 if eval "$MISSING --run true"; then
3112 am_missing_run="$MISSING --run "
3113 else
3114 am_missing_run=
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3116 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3119 if test x"${install_sh}" != xset; then
3120 case $am_aux_dir in
3121 *\ * | *\ *)
3122 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3124 install_sh="\${SHELL} $am_aux_dir/install-sh"
3125 esac
3128 # Installed binaries are usually stripped using `strip' when the user
3129 # run `make install-strip'. However `strip' might not be the right
3130 # tool to use in cross-compilation environments, therefore Automake
3131 # will honor the `STRIP' environment variable to overrule this program.
3132 if test "$cross_compiling" != no; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}strip; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_STRIP+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$STRIP"; then
3142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3155 done
3156 done
3157 IFS=$as_save_IFS
3161 STRIP=$ac_cv_prog_STRIP
3162 if test -n "$STRIP"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3164 $as_echo "$STRIP" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3172 if test -z "$ac_cv_prog_STRIP"; then
3173 ac_ct_STRIP=$STRIP
3174 # Extract the first word of "strip", so it can be a program name with args.
3175 set dummy strip; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$ac_ct_STRIP"; then
3182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_STRIP="strip"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3197 IFS=$as_save_IFS
3201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3202 if test -n "$ac_ct_STRIP"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3204 $as_echo "$ac_ct_STRIP" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3210 if test "x$ac_ct_STRIP" = x; then
3211 STRIP=":"
3212 else
3213 case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219 STRIP=$ac_ct_STRIP
3221 else
3222 STRIP="$ac_cv_prog_STRIP"
3226 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3229 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3230 if test -z "$MKDIR_P"; then
3231 if test "${ac_cv_path_mkdir+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_prog in mkdir gmkdir; do
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3242 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3243 'mkdir (GNU coreutils) '* | \
3244 'mkdir (coreutils) '* | \
3245 'mkdir (fileutils) '4.1*)
3246 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3247 break 3;;
3248 esac
3249 done
3250 done
3251 done
3252 IFS=$as_save_IFS
3256 if test "${ac_cv_path_mkdir+set}" = set; then
3257 MKDIR_P="$ac_cv_path_mkdir -p"
3258 else
3259 # As a last resort, use the slow shell script. Don't cache a
3260 # value for MKDIR_P within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the value is a relative name.
3263 test -d ./--version && rmdir ./--version
3264 MKDIR_P="$ac_install_sh -d"
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3268 $as_echo "$MKDIR_P" >&6; }
3270 mkdir_p="$MKDIR_P"
3271 case $mkdir_p in
3272 [\\/$]* | ?:[\\/]*) ;;
3273 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3274 esac
3276 for ac_prog in gawk mawk nawk awk
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if test "${ac_cv_prog_AWK+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$AWK"; then
3286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_AWK="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3305 AWK=$ac_cv_prog_AWK
3306 if test -n "$AWK"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3308 $as_echo "$AWK" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$AWK" && break
3316 done
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3320 set x ${MAKE-make}
3321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3322 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat >conftest.make <<\_ACEOF
3326 SHELL = /bin/sh
3327 all:
3328 @echo '@@@%%%=$(MAKE)=@@@%%%'
3329 _ACEOF
3330 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3332 *@@@%%%=?*=@@@%%%*)
3333 eval ac_cv_prog_make_${ac_make}_set=yes;;
3335 eval ac_cv_prog_make_${ac_make}_set=no;;
3336 esac
3337 rm -f conftest.make
3339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 SET_MAKE=
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 SET_MAKE="MAKE=${MAKE-make}"
3349 rm -rf .tst 2>/dev/null
3350 mkdir .tst 2>/dev/null
3351 if test -d .tst; then
3352 am__leading_dot=.
3353 else
3354 am__leading_dot=_
3356 rmdir .tst 2>/dev/null
3358 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3359 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3360 # is not polluted with repeated "-I."
3361 am__isrc=' -I$(srcdir)'
3362 # test to see if srcdir already configured
3363 if test -f $srcdir/config.status; then
3364 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3368 # test whether we have cygpath
3369 if test -z "$CYGPATH_W"; then
3370 if (cygpath --version) >/dev/null 2>/dev/null; then
3371 CYGPATH_W='cygpath -w'
3372 else
3373 CYGPATH_W=echo
3378 # Define the identity of the package.
3379 PACKAGE='libgfortran'
3380 VERSION='0.3'
3383 # Some tools Automake needs.
3385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3399 # We need awk for the "check" target. The system "awk" is bad on
3400 # some platforms.
3401 # Always define AMTAR for backward compatibility. Yes, it's still used
3402 # in the wild :-( We should find a proper way to deprecate it ...
3403 AMTAR='$${TAR-tar}'
3405 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3415 # Check whether --enable-maintainer-mode was given.
3416 if test "${enable_maintainer_mode+set}" = set; then :
3417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3418 else
3419 USE_MAINTAINER_MODE=no
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3424 if test $USE_MAINTAINER_MODE = yes; then
3425 MAINTAINER_MODE_TRUE=
3426 MAINTAINER_MODE_FALSE='#'
3427 else
3428 MAINTAINER_MODE_TRUE='#'
3429 MAINTAINER_MODE_FALSE=
3432 MAINT=$MAINTAINER_MODE_TRUE
3435 # Default to --enable-multilib
3436 # Check whether --enable-multilib was given.
3437 if test "${enable_multilib+set}" = set; then :
3438 enableval=$enable_multilib; case "$enableval" in
3439 yes) multilib=yes ;;
3440 no) multilib=no ;;
3441 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3442 esac
3443 else
3444 multilib=yes
3448 # We may get other options which we leave undocumented:
3449 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3450 # See config-ml.in if you want the gory details.
3452 if test "$srcdir" = "."; then
3453 if test "$with_target_subdir" != "."; then
3454 multi_basedir="$srcdir/$with_multisrctop../.."
3455 else
3456 multi_basedir="$srcdir/$with_multisrctop.."
3458 else
3459 multi_basedir="$srcdir/.."
3463 # Even if the default multilib is not a cross compilation,
3464 # it may be that some of the other multilibs are.
3465 if test $cross_compiling = no && test $multilib = yes \
3466 && test "x${with_multisubdir}" != x ; then
3467 cross_compiling=maybe
3470 ac_config_commands="$ac_config_commands default-1"
3473 # Handy for debugging:
3474 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3476 # Are we being configured with some form of cross compiler?
3477 # NB: We don't actually need to know this just now, but when, say, a test
3478 # suite is included, we'll have to know.
3479 if test "$build" != "$host"; then
3480 LIBGFOR_IS_NATIVE=false
3482 else
3483 LIBGFOR_IS_NATIVE=true
3486 DEPDIR="${am__leading_dot}deps"
3488 ac_config_commands="$ac_config_commands depfiles"
3491 am_make=${MAKE-make}
3492 cat > confinc << 'END'
3493 am__doit:
3494 @echo this is the am__doit target
3495 .PHONY: am__doit
3497 # If we don't find an include directive, just comment out the code.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3499 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3500 am__include="#"
3501 am__quote=
3502 _am_result=none
3503 # First try GNU make style include.
3504 echo "include confinc" > confmf
3505 # Ignore all kinds of additional output from `make'.
3506 case `$am_make -s -f confmf 2> /dev/null` in #(
3507 *the\ am__doit\ target*)
3508 am__include=include
3509 am__quote=
3510 _am_result=GNU
3512 esac
3513 # Now try BSD make style include.
3514 if test "$am__include" = "#"; then
3515 echo '.include "confinc"' > confmf
3516 case `$am_make -s -f confmf 2> /dev/null` in #(
3517 *the\ am__doit\ target*)
3518 am__include=.include
3519 am__quote="\""
3520 _am_result=BSD
3522 esac
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3527 $as_echo "$_am_result" >&6; }
3528 rm -f confinc confmf
3530 # Check whether --enable-dependency-tracking was given.
3531 if test "${enable_dependency_tracking+set}" = set; then :
3532 enableval=$enable_dependency_tracking;
3535 if test "x$enable_dependency_tracking" != xno; then
3536 am_depcomp="$ac_aux_dir/depcomp"
3537 AMDEPBACKSLASH='\'
3538 am__nodep='_no'
3540 if test "x$enable_dependency_tracking" != xno; then
3541 AMDEP_TRUE=
3542 AMDEP_FALSE='#'
3543 else
3544 AMDEP_TRUE='#'
3545 AMDEP_FALSE=
3549 ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test -n "$ac_tool_prefix"; then
3555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3556 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 CC=$ac_cv_prog_CC
3583 if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3593 if test -z "$ac_cv_prog_CC"; then
3594 ac_ct_CC=$CC
3595 # Extract the first word of "gcc", so it can be a program name with args.
3596 set dummy gcc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -n "$ac_ct_CC"; then
3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_ac_ct_CC="gcc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3616 done
3617 done
3618 IFS=$as_save_IFS
3622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623 if test -n "$ac_ct_CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625 $as_echo "$ac_ct_CC" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CC=$ac_ct_CC
3642 else
3643 CC="$ac_cv_prog_CC"
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3649 set dummy ${ac_tool_prefix}cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_CC="${ac_tool_prefix}cc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3687 if test -z "$CC"; then
3688 # Extract the first word of "cc", so it can be a program name with args.
3689 set dummy cc; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 ac_prog_rejected=no
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3707 ac_prog_rejected=yes
3708 continue
3710 ac_cv_prog_CC="cc"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3714 done
3715 done
3716 IFS=$as_save_IFS
3718 if test $ac_prog_rejected = yes; then
3719 # We found a bogon in the path, so make sure we never use it.
3720 set dummy $ac_cv_prog_CC
3721 shift
3722 if test $# != 0; then
3723 # We chose a different compiler from the bogus one.
3724 # However, it has the same basename, so the bogon will be chosen
3725 # first if we set CC to just the basename; use the full file name.
3726 shift
3727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3732 CC=$ac_cv_prog_CC
3733 if test -n "$CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735 $as_echo "$CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3743 if test -z "$CC"; then
3744 if test -n "$ac_tool_prefix"; then
3745 for ac_prog in cl.exe
3747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3784 test -n "$CC" && break
3785 done
3787 if test -z "$CC"; then
3788 ac_ct_CC=$CC
3789 for ac_prog in cl.exe
3791 # Extract the first word of "$ac_prog", so it can be a program name with args.
3792 set dummy $ac_prog; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 if test -n "$ac_ct_CC"; then
3799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_ac_ct_CC="$ac_prog"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3812 done
3813 done
3814 IFS=$as_save_IFS
3818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3819 if test -n "$ac_ct_CC"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3821 $as_echo "$ac_ct_CC" >&6; }
3822 else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3828 test -n "$ac_ct_CC" && break
3829 done
3831 if test "x$ac_ct_CC" = x; then
3832 CC=""
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840 CC=$ac_ct_CC
3847 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error "no acceptable C compiler found in \$PATH
3850 See \`config.log' for more details." "$LINENO" 5; }
3852 # Provide some information about the compiler.
3853 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3854 set X $ac_compile
3855 ac_compiler=$2
3856 for ac_option in --version -v -V -qversion; do
3857 { { ac_try="$ac_compiler $ac_option >&5"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3865 ac_status=$?
3866 if test -s conftest.err; then
3867 sed '10a\
3868 ... rest of stderr output deleted ...
3869 10q' conftest.err >conftest.er1
3870 cat conftest.er1 >&5
3871 rm -f conftest.er1 conftest.err
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }
3875 done
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 # FIXME: Cleanup?
3889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3890 (eval $ac_link) 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 gcc_no_link=no
3895 else
3896 gcc_no_link=yes
3898 if test x$gcc_no_link = xyes; then
3899 # Setting cross_compile will disable run tests; it will
3900 # also disable AC_CHECK_FILE but that's generally
3901 # correct if we can't link.
3902 cross_compiling=yes
3903 EXEEXT=
3904 else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 main ()
3913 return 0;
3915 _ACEOF
3916 ac_clean_files_save=$ac_clean_files
3917 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3918 # Try to create an executable without -o first, disregard a.out.
3919 # It will help us diagnose broken compilers, and finding out an intuition
3920 # of exeext.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922 $as_echo_n "checking for C compiler default output file name... " >&6; }
3923 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3925 # The possible output files:
3926 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3928 ac_rmfiles=
3929 for ac_file in $ac_files
3931 case $ac_file in
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3933 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3934 esac
3935 done
3936 rm -f $ac_rmfiles
3938 if { { ac_try="$ac_link_default"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link_default") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3950 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3951 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3952 # so that the user can short-circuit this test for compilers unknown to
3953 # Autoconf.
3954 for ac_file in $ac_files ''
3956 test -f "$ac_file" || continue
3957 case $ac_file in
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3960 [ab].out )
3961 # We found the default executable, but exeext='' is most
3962 # certainly right.
3963 break;;
3964 *.* )
3965 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3966 then :; else
3967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 # We set ac_cv_exeext here because the later test for it is not
3970 # safe: cross compilers may not add the suffix if given an `-o'
3971 # argument, so we may need to know it at that point already.
3972 # Even if this section looks crufty: it has the advantage of
3973 # actually working.
3974 break;;
3976 break;;
3977 esac
3978 done
3979 test "$ac_cv_exeext" = no && ac_cv_exeext=
3981 else
3982 ac_file=''
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3985 $as_echo "$ac_file" >&6; }
3986 if test -z "$ac_file"; then :
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 { as_fn_set_status 77
3993 as_fn_error "C compiler cannot create executables
3994 See \`config.log' for more details." "$LINENO" 5; }; }
3996 ac_exeext=$ac_cv_exeext
3998 # Check that the compiler produces executables we can run. If not, either
3999 # the compiler is broken, or we cross compile.
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4001 $as_echo_n "checking whether the C compiler works... " >&6; }
4002 # If not cross compiling, check that we can run a simple program.
4003 if test "$cross_compiling" != yes; then
4004 if { ac_try='./$ac_file'
4005 { { case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_try") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; }; then
4015 cross_compiling=no
4016 else
4017 if test "$cross_compiling" = maybe; then
4018 cross_compiling=yes
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot run C compiled programs.
4023 If you meant to cross compile, use \`--host'.
4024 See \`config.log' for more details." "$LINENO" 5; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 $as_echo "yes" >&6; }
4031 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4032 ac_clean_files=$ac_clean_files_save
4033 # Check that the compiler produces executables we can run. If not, either
4034 # the compiler is broken, or we cross compile.
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4036 $as_echo_n "checking whether we are cross compiling... " >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4038 $as_echo "$cross_compiling" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4041 $as_echo_n "checking for suffix of executables... " >&6; }
4042 if { { ac_try="$ac_link"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }; then :
4053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4055 # work properly (i.e., refer to `conftest.exe'), while it won't with
4056 # `rm'.
4057 for ac_file in conftest.exe conftest conftest.*; do
4058 test -f "$ac_file" || continue
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 break;;
4063 * ) break;;
4064 esac
4065 done
4066 else
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error "cannot compute suffix of executables: cannot compile and link
4070 See \`config.log' for more details." "$LINENO" 5; }
4072 rm -f conftest$ac_cv_exeext
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4074 $as_echo "$ac_cv_exeext" >&6; }
4076 rm -f conftest.$ac_ext
4077 EXEEXT=$ac_cv_exeext
4078 ac_exeext=$EXEEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4081 $as_echo_n "checking for suffix of object files... " >&6; }
4082 if test "${ac_cv_objext+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 main ()
4093 return 0;
4095 _ACEOF
4096 rm -f conftest.o conftest.obj
4097 if { { ac_try="$ac_compile"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compile") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 for ac_file in conftest.o conftest.obj conftest.*; do
4109 test -f "$ac_file" || continue;
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4113 break;;
4114 esac
4115 done
4116 else
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error "cannot compute suffix of object files: cannot compile
4123 See \`config.log' for more details." "$LINENO" 5; }
4125 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4128 $as_echo "$ac_cv_objext" >&6; }
4129 OBJEXT=$ac_cv_objext
4130 ac_objext=$OBJEXT
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4133 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4140 main ()
4142 #ifndef __GNUC__
4143 choke me
4144 #endif
4147 return 0;
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_compiler_gnu=yes
4152 else
4153 ac_compiler_gnu=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4161 if test $ac_compiler_gnu = yes; then
4162 GCC=yes
4163 else
4164 GCC=
4166 ac_test_CFLAGS=${CFLAGS+set}
4167 ac_save_CFLAGS=$CFLAGS
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4170 if test "${ac_cv_prog_cc_g+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_save_c_werror_flag=$ac_c_werror_flag
4174 ac_c_werror_flag=yes
4175 ac_cv_prog_cc_g=no
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4181 main ()
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4190 else
4191 CFLAGS=""
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4196 main ()
4200 return 0;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4205 else
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 CFLAGS="-g"
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4212 main ()
4216 return 0;
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_g=yes
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
4231 if test "$ac_test_CFLAGS" = set; then
4232 CFLAGS=$ac_save_CFLAGS
4233 elif test $ac_cv_prog_cc_g = yes; then
4234 if test "$GCC" = yes; then
4235 CFLAGS="-g -O2"
4236 else
4237 CFLAGS="-g"
4239 else
4240 if test "$GCC" = yes; then
4241 CFLAGS="-O2"
4242 else
4243 CFLAGS=
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_cv_prog_cc_c89=no
4252 ac_save_CC=$CC
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <stdarg.h>
4256 #include <stdio.h>
4257 #include <sys/types.h>
4258 #include <sys/stat.h>
4259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4260 struct buf { int x; };
4261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4262 static char *e (p, i)
4263 char **p;
4264 int i;
4266 return p[i];
4268 static char *f (char * (*g) (char **, int), char **p, ...)
4270 char *s;
4271 va_list v;
4272 va_start (v,p);
4273 s = g (p, va_arg (v,int));
4274 va_end (v);
4275 return s;
4278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4279 function prototypes and stuff, but not '\xHH' hex character constants.
4280 These don't provoke an error unfortunately, instead are silently treated
4281 as 'x'. The following induces an error, until -std is added to get
4282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4283 array size at least. It's necessary to write '\x00'==0 to get something
4284 that's true only with -std. */
4285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4288 inside strings and character constants. */
4289 #define FOO(x) 'x'
4290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4292 int test (int i, double x);
4293 struct s1 {int (*f) (int a);};
4294 struct s2 {int (*f) (double a);};
4295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4296 int argc;
4297 char **argv;
4299 main ()
4301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4303 return 0;
4305 _ACEOF
4306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 CC="$ac_save_CC $ac_arg"
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311 ac_cv_prog_cc_c89=$ac_arg
4313 rm -f core conftest.err conftest.$ac_objext
4314 test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 done
4316 rm -f conftest.$ac_ext
4317 CC=$ac_save_CC
4320 # AC_CACHE_VAL
4321 case "x$ac_cv_prog_cc_c89" in
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324 $as_echo "none needed" >&6; } ;;
4325 xno)
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4327 $as_echo "unsupported" >&6; } ;;
4329 CC="$CC $ac_cv_prog_cc_c89"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4331 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4332 esac
4333 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 depcc="$CC" am_compiler_list=
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4346 $as_echo_n "checking dependency style of $depcc... " >&6; }
4347 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4351 # We make a subdir and do the tests there. Otherwise we can end up
4352 # making bogus files that we don't know about and never remove. For
4353 # instance it was reported that on HP-UX the gcc test will end up
4354 # making a dummy file named `D' -- because `-MD' means `put the output
4355 # in D'.
4356 rm -rf conftest.dir
4357 mkdir conftest.dir
4358 # Copy depcomp to subdir because otherwise we won't find it if we're
4359 # using a relative directory.
4360 cp "$am_depcomp" conftest.dir
4361 cd conftest.dir
4362 # We will build objects and dependencies in a subdirectory because
4363 # it helps to detect inapplicable dependency modes. For instance
4364 # both Tru64's cc and ICC support -MD to output dependencies as a
4365 # side effect of compilation, but ICC will put the dependencies in
4366 # the current directory while Tru64 will put them in the object
4367 # directory.
4368 mkdir sub
4370 am_cv_CC_dependencies_compiler_type=none
4371 if test "$am_compiler_list" = ""; then
4372 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4374 am__universal=false
4375 case " $depcc " in #(
4376 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4377 esac
4379 for depmode in $am_compiler_list; do
4380 # Setup a source with many dependencies, because some compilers
4381 # like to wrap large dependency lists on column 80 (with \), and
4382 # we should not choose a depcomp mode which is confused by this.
4384 # We need to recreate these files for each test, as the compiler may
4385 # overwrite some of them when testing with obscure command lines.
4386 # This happens at least with the AIX C compiler.
4387 : > sub/conftest.c
4388 for i in 1 2 3 4 5 6; do
4389 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4391 # Solaris 8's {/usr,}/bin/sh.
4392 touch sub/conftst$i.h
4393 done
4394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4396 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4397 # mode. It turns out that the SunPro C++ compiler does not properly
4398 # handle `-M -o', and we need to detect this. Also, some Intel
4399 # versions had trouble with output in subdirs
4400 am__obj=sub/conftest.${OBJEXT-o}
4401 am__minus_obj="-o $am__obj"
4402 case $depmode in
4403 gcc)
4404 # This depmode causes a compiler race in universal mode.
4405 test "$am__universal" = false || continue
4407 nosideeffect)
4408 # after this tag, mechanisms are not by side-effect, so they'll
4409 # only be used when explicitly requested
4410 if test "x$enable_dependency_tracking" = xyes; then
4411 continue
4412 else
4413 break
4416 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4417 # This compiler won't grok `-c -o', but also, the minuso test has
4418 # not run yet. These depmodes are late enough in the game, and
4419 # so weak that their functioning should not be impacted.
4420 am__obj=conftest.${OBJEXT-o}
4421 am__minus_obj=
4423 none) break ;;
4424 esac
4425 if depmode=$depmode \
4426 source=sub/conftest.c object=$am__obj \
4427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4428 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4429 >/dev/null 2>conftest.err &&
4430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4432 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4434 # icc doesn't choke on unknown options, it will just issue warnings
4435 # or remarks (even with -Werror). So we grep stderr for any message
4436 # that says an option was ignored or not supported.
4437 # When given -MP, icc 7.0 and 7.1 complain thusly:
4438 # icc: Command line warning: ignoring option '-M'; no argument required
4439 # The diagnosis changed in icc 8.0:
4440 # icc: Command line remark: option '-MP' not supported
4441 if (grep 'ignoring option' conftest.err ||
4442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4443 am_cv_CC_dependencies_compiler_type=$depmode
4444 break
4447 done
4449 cd ..
4450 rm -rf conftest.dir
4451 else
4452 am_cv_CC_dependencies_compiler_type=none
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4457 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4458 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4461 test "x$enable_dependency_tracking" != xno \
4462 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4463 am__fastdepCC_TRUE=
4464 am__fastdepCC_FALSE='#'
4465 else
4466 am__fastdepCC_TRUE='#'
4467 am__fastdepCC_FALSE=
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4478 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4479 # On Suns, sometimes $CPP names a directory.
4480 if test -n "$CPP" && test -d "$CPP"; then
4481 CPP=
4483 if test -z "$CPP"; then
4484 if test "${ac_cv_prog_CPP+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 # Double quotes because CPP needs to be expanded
4488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4490 ac_preproc_ok=false
4491 for ac_c_preproc_warn_flag in '' yes
4493 # Use a header file that comes with gcc, so configuring glibc
4494 # with a fresh cross-compiler works.
4495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4496 # <limits.h> exists even on freestanding compilers.
4497 # On the NeXT, cc -E runs the code through the compiler's parser,
4498 # not just through cpp. "Syntax error" is here to catch this case.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #ifdef __STDC__
4502 # include <limits.h>
4503 #else
4504 # include <assert.h>
4505 #endif
4506 Syntax error
4507 _ACEOF
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4510 else
4511 # Broken: fails on valid input.
4512 continue
4514 rm -f conftest.err conftest.$ac_ext
4516 # OK, works on sane cases. Now check whether nonexistent headers
4517 # can be detected and how.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <ac_nonexistent.h>
4521 _ACEOF
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523 # Broken: success on invalid input.
4524 continue
4525 else
4526 # Passes both tests.
4527 ac_preproc_ok=:
4528 break
4530 rm -f conftest.err conftest.$ac_ext
4532 done
4533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4534 rm -f conftest.err conftest.$ac_ext
4535 if $ac_preproc_ok; then :
4536 break
4539 done
4540 ac_cv_prog_CPP=$CPP
4543 CPP=$ac_cv_prog_CPP
4544 else
4545 ac_cv_prog_CPP=$CPP
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4548 $as_echo "$CPP" >&6; }
4549 ac_preproc_ok=false
4550 for ac_c_preproc_warn_flag in '' yes
4552 # Use a header file that comes with gcc, so configuring glibc
4553 # with a fresh cross-compiler works.
4554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4555 # <limits.h> exists even on freestanding compilers.
4556 # On the NeXT, cc -E runs the code through the compiler's parser,
4557 # not just through cpp. "Syntax error" is here to catch this case.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #ifdef __STDC__
4561 # include <limits.h>
4562 #else
4563 # include <assert.h>
4564 #endif
4565 Syntax error
4566 _ACEOF
4567 if ac_fn_c_try_cpp "$LINENO"; then :
4569 else
4570 # Broken: fails on valid input.
4571 continue
4573 rm -f conftest.err conftest.$ac_ext
4575 # OK, works on sane cases. Now check whether nonexistent headers
4576 # can be detected and how.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579 #include <ac_nonexistent.h>
4580 _ACEOF
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4582 # Broken: success on invalid input.
4583 continue
4584 else
4585 # Passes both tests.
4586 ac_preproc_ok=:
4587 break
4589 rm -f conftest.err conftest.$ac_ext
4591 done
4592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4593 rm -f conftest.err conftest.$ac_ext
4594 if $ac_preproc_ok; then :
4596 else
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4600 See \`config.log' for more details." "$LINENO" 5; }
4603 ac_ext=c
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4611 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4612 if test "${ac_cv_path_GREP+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -z "$GREP"; then
4616 ac_path_GREP_found=false
4617 # Loop through the user's path and test for each of PROGNAME-LIST
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_prog in grep ggrep; do
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4627 # Check for GNU ac_path_GREP and select it if it is found.
4628 # Check for GNU $ac_path_GREP
4629 case `"$ac_path_GREP" --version 2>&1` in
4630 *GNU*)
4631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4633 ac_count=0
4634 $as_echo_n 0123456789 >"conftest.in"
4635 while :
4637 cat "conftest.in" "conftest.in" >"conftest.tmp"
4638 mv "conftest.tmp" "conftest.in"
4639 cp "conftest.in" "conftest.nl"
4640 $as_echo 'GREP' >> "conftest.nl"
4641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643 as_fn_arith $ac_count + 1 && ac_count=$as_val
4644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4645 # Best one so far, save it but keep looking for a better one
4646 ac_cv_path_GREP="$ac_path_GREP"
4647 ac_path_GREP_max=$ac_count
4649 # 10*(2^10) chars as input seems more than enough
4650 test $ac_count -gt 10 && break
4651 done
4652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 esac
4655 $ac_path_GREP_found && break 3
4656 done
4657 done
4658 done
4659 IFS=$as_save_IFS
4660 if test -z "$ac_cv_path_GREP"; then
4661 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663 else
4664 ac_cv_path_GREP=$GREP
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4669 $as_echo "$ac_cv_path_GREP" >&6; }
4670 GREP="$ac_cv_path_GREP"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4674 $as_echo_n "checking for egrep... " >&6; }
4675 if test "${ac_cv_path_EGREP+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4679 then ac_cv_path_EGREP="$GREP -E"
4680 else
4681 if test -z "$EGREP"; then
4682 ac_path_EGREP_found=false
4683 # Loop through the user's path and test for each of PROGNAME-LIST
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_prog in egrep; do
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4692 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4693 # Check for GNU ac_path_EGREP and select it if it is found.
4694 # Check for GNU $ac_path_EGREP
4695 case `"$ac_path_EGREP" --version 2>&1` in
4696 *GNU*)
4697 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4699 ac_count=0
4700 $as_echo_n 0123456789 >"conftest.in"
4701 while :
4703 cat "conftest.in" "conftest.in" >"conftest.tmp"
4704 mv "conftest.tmp" "conftest.in"
4705 cp "conftest.in" "conftest.nl"
4706 $as_echo 'EGREP' >> "conftest.nl"
4707 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4709 as_fn_arith $ac_count + 1 && ac_count=$as_val
4710 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4711 # Best one so far, save it but keep looking for a better one
4712 ac_cv_path_EGREP="$ac_path_EGREP"
4713 ac_path_EGREP_max=$ac_count
4715 # 10*(2^10) chars as input seems more than enough
4716 test $ac_count -gt 10 && break
4717 done
4718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 esac
4721 $ac_path_EGREP_found && break 3
4722 done
4723 done
4724 done
4725 IFS=$as_save_IFS
4726 if test -z "$ac_cv_path_EGREP"; then
4727 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729 else
4730 ac_cv_path_EGREP=$EGREP
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4736 $as_echo "$ac_cv_path_EGREP" >&6; }
4737 EGREP="$ac_cv_path_EGREP"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4741 $as_echo_n "checking for ANSI C header files... " >&6; }
4742 if test "${ac_cv_header_stdc+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <stdlib.h>
4748 #include <stdarg.h>
4749 #include <string.h>
4750 #include <float.h>
4753 main ()
4757 return 0;
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_header_stdc=yes
4762 else
4763 ac_cv_header_stdc=no
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 if test $ac_cv_header_stdc = yes; then
4768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #include <string.h>
4773 _ACEOF
4774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4775 $EGREP "memchr" >/dev/null 2>&1; then :
4777 else
4778 ac_cv_header_stdc=no
4780 rm -f conftest*
4784 if test $ac_cv_header_stdc = yes; then
4785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <stdlib.h>
4790 _ACEOF
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 $EGREP "free" >/dev/null 2>&1; then :
4794 else
4795 ac_cv_header_stdc=no
4797 rm -f conftest*
4801 if test $ac_cv_header_stdc = yes; then
4802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4803 if test "$cross_compiling" = yes; then :
4805 else
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808 #include <ctype.h>
4809 #include <stdlib.h>
4810 #if ((' ' & 0x0FF) == 0x020)
4811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4813 #else
4814 # define ISLOWER(c) \
4815 (('a' <= (c) && (c) <= 'i') \
4816 || ('j' <= (c) && (c) <= 'r') \
4817 || ('s' <= (c) && (c) <= 'z'))
4818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4819 #endif
4821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4823 main ()
4825 int i;
4826 for (i = 0; i < 256; i++)
4827 if (XOR (islower (i), ISLOWER (i))
4828 || toupper (i) != TOUPPER (i))
4829 return 2;
4830 return 0;
4832 _ACEOF
4833 if ac_fn_c_try_run "$LINENO"; then :
4835 else
4836 ac_cv_header_stdc=no
4838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839 conftest.$ac_objext conftest.beam conftest.$ac_ext
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4845 $as_echo "$ac_cv_header_stdc" >&6; }
4846 if test $ac_cv_header_stdc = yes; then
4848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4854 inttypes.h stdint.h unistd.h
4855 do :
4856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4857 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4859 eval as_val=\$$as_ac_Header
4860 if test "x$as_val" = x""yes; then :
4861 cat >>confdefs.h <<_ACEOF
4862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4863 _ACEOF
4867 done
4871 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4872 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4873 MINIX=yes
4874 else
4875 MINIX=
4879 if test "$MINIX" = yes; then
4881 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4884 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4887 $as_echo "#define _MINIX 1" >>confdefs.h
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4893 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4894 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4900 # define __EXTENSIONS__ 1
4901 $ac_includes_default
4903 main ()
4907 return 0;
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 ac_cv_safe_to_define___extensions__=yes
4912 else
4913 ac_cv_safe_to_define___extensions__=no
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4918 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4919 test $ac_cv_safe_to_define___extensions__ = yes &&
4920 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4922 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4924 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4926 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4928 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4932 # Calculate toolexeclibdir
4933 # Also toolexecdir, though it's only used in toolexeclibdir
4934 case ${version_specific_libs} in
4935 yes)
4936 # Need the gcc compiler version to know where to install libraries
4937 # and header files if --enable-version-specific-runtime-libs option
4938 # is selected.
4939 toolexecdir='$(libdir)/gcc/$(target_alias)'
4940 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4943 if test -n "$with_cross_host" &&
4944 test x"$with_cross_host" != x"no"; then
4945 # Install a library built with a cross compiler in tooldir, not libdir.
4946 toolexecdir='$(exec_prefix)/$(target_alias)'
4947 toolexeclibdir='$(toolexecdir)/lib'
4948 else
4949 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4950 toolexeclibdir='$(libdir)'
4952 multi_os_directory=`$CC -print-multi-os-directory`
4953 case $multi_os_directory in
4954 .) ;; # Avoid trailing /.
4955 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4956 esac
4958 esac
4962 # Create a spec file, so that compile/link tests don't fail
4963 test -f libgfortran.spec || touch libgfortran.spec
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 # Check the compiler.
4972 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4973 # We must force CC to /not/ be precious variables; otherwise
4974 # the wrong, non-multilib-adjusted value will be used in multilibs.
4975 # As a side effect, we have to subst CFLAGS ourselves.
4979 ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_CC+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$CC"; then
4993 ac_cv_prog_CC="$CC" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 CC=$ac_cv_prog_CC
5013 if test -n "$CC"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5015 $as_echo "$CC" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5023 if test -z "$ac_cv_prog_CC"; then
5024 ac_ct_CC=$CC
5025 # Extract the first word of "gcc", so it can be a program name with args.
5026 set dummy gcc; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$ac_ct_CC"; then
5033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_ac_ct_CC="gcc"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5053 if test -n "$ac_ct_CC"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5055 $as_echo "$ac_ct_CC" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5061 if test "x$ac_ct_CC" = x; then
5062 CC=""
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065 yes:)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070 CC=$ac_ct_CC
5072 else
5073 CC="$ac_cv_prog_CC"
5076 if test -z "$CC"; then
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}cc; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_CC+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$CC"; then
5086 ac_cv_prog_CC="$CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_CC="${ac_tool_prefix}cc"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 CC=$ac_cv_prog_CC
5106 if test -n "$CC"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5108 $as_echo "$CC" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5117 if test -z "$CC"; then
5118 # Extract the first word of "cc", so it can be a program name with args.
5119 set dummy cc; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_CC+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$CC"; then
5126 ac_cv_prog_CC="$CC" # Let the user override the test.
5127 else
5128 ac_prog_rejected=no
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5137 ac_prog_rejected=yes
5138 continue
5140 ac_cv_prog_CC="cc"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5146 IFS=$as_save_IFS
5148 if test $ac_prog_rejected = yes; then
5149 # We found a bogon in the path, so make sure we never use it.
5150 set dummy $ac_cv_prog_CC
5151 shift
5152 if test $# != 0; then
5153 # We chose a different compiler from the bogus one.
5154 # However, it has the same basename, so the bogon will be chosen
5155 # first if we set CC to just the basename; use the full file name.
5156 shift
5157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5162 CC=$ac_cv_prog_CC
5163 if test -n "$CC"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5165 $as_echo "$CC" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5173 if test -z "$CC"; then
5174 if test -n "$ac_tool_prefix"; then
5175 for ac_prog in cl.exe
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_prog_CC+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$CC"; then
5185 ac_cv_prog_CC="$CC" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5204 CC=$ac_cv_prog_CC
5205 if test -n "$CC"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5207 $as_echo "$CC" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 test -n "$CC" && break
5215 done
5217 if test -z "$CC"; then
5218 ac_ct_CC=$CC
5219 for ac_prog in cl.exe
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$ac_ct_CC"; then
5229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_ac_ct_CC="$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5244 IFS=$as_save_IFS
5248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5249 if test -n "$ac_ct_CC"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5251 $as_echo "$ac_ct_CC" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5258 test -n "$ac_ct_CC" && break
5259 done
5261 if test "x$ac_ct_CC" = x; then
5262 CC=""
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270 CC=$ac_ct_CC
5277 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5279 as_fn_error "no acceptable C compiler found in \$PATH
5280 See \`config.log' for more details." "$LINENO" 5; }
5282 # Provide some information about the compiler.
5283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5284 set X $ac_compile
5285 ac_compiler=$2
5286 for ac_option in --version -v -V -qversion; do
5287 { { ac_try="$ac_compiler $ac_option >&5"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5293 $as_echo "$ac_try_echo"; } >&5
5294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5295 ac_status=$?
5296 if test -s conftest.err; then
5297 sed '10a\
5298 ... rest of stderr output deleted ...
5299 10q' conftest.err >conftest.er1
5300 cat conftest.er1 >&5
5301 rm -f conftest.er1 conftest.err
5303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5304 test $ac_status = 0; }
5305 done
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5308 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5309 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5316 main ()
5318 #ifndef __GNUC__
5319 choke me
5320 #endif
5323 return 0;
5325 _ACEOF
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_compiler_gnu=yes
5328 else
5329 ac_compiler_gnu=no
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5336 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5337 if test $ac_compiler_gnu = yes; then
5338 GCC=yes
5339 else
5340 GCC=
5342 ac_test_CFLAGS=${CFLAGS+set}
5343 ac_save_CFLAGS=$CFLAGS
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5345 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5346 if test "${ac_cv_prog_cc_g+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 ac_save_c_werror_flag=$ac_c_werror_flag
5350 ac_c_werror_flag=yes
5351 ac_cv_prog_cc_g=no
5352 CFLAGS="-g"
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5357 main ()
5361 return 0;
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_prog_cc_g=yes
5366 else
5367 CFLAGS=""
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5372 main ()
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5381 else
5382 ac_c_werror_flag=$ac_save_c_werror_flag
5383 CFLAGS="-g"
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5388 main ()
5392 return 0;
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_prog_cc_g=yes
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 ac_c_werror_flag=$ac_save_c_werror_flag
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5406 $as_echo "$ac_cv_prog_cc_g" >&6; }
5407 if test "$ac_test_CFLAGS" = set; then
5408 CFLAGS=$ac_save_CFLAGS
5409 elif test $ac_cv_prog_cc_g = yes; then
5410 if test "$GCC" = yes; then
5411 CFLAGS="-g -O2"
5412 else
5413 CFLAGS="-g"
5415 else
5416 if test "$GCC" = yes; then
5417 CFLAGS="-O2"
5418 else
5419 CFLAGS=
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5423 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5424 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 ac_cv_prog_cc_c89=no
5428 ac_save_CC=$CC
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <stdarg.h>
5432 #include <stdio.h>
5433 #include <sys/types.h>
5434 #include <sys/stat.h>
5435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5436 struct buf { int x; };
5437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5438 static char *e (p, i)
5439 char **p;
5440 int i;
5442 return p[i];
5444 static char *f (char * (*g) (char **, int), char **p, ...)
5446 char *s;
5447 va_list v;
5448 va_start (v,p);
5449 s = g (p, va_arg (v,int));
5450 va_end (v);
5451 return s;
5454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5455 function prototypes and stuff, but not '\xHH' hex character constants.
5456 These don't provoke an error unfortunately, instead are silently treated
5457 as 'x'. The following induces an error, until -std is added to get
5458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5459 array size at least. It's necessary to write '\x00'==0 to get something
5460 that's true only with -std. */
5461 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5463 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5464 inside strings and character constants. */
5465 #define FOO(x) 'x'
5466 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5468 int test (int i, double x);
5469 struct s1 {int (*f) (int a);};
5470 struct s2 {int (*f) (double a);};
5471 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5472 int argc;
5473 char **argv;
5475 main ()
5477 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5479 return 0;
5481 _ACEOF
5482 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5483 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5485 CC="$ac_save_CC $ac_arg"
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_prog_cc_c89=$ac_arg
5489 rm -f core conftest.err conftest.$ac_objext
5490 test "x$ac_cv_prog_cc_c89" != "xno" && break
5491 done
5492 rm -f conftest.$ac_ext
5493 CC=$ac_save_CC
5496 # AC_CACHE_VAL
5497 case "x$ac_cv_prog_cc_c89" in
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5500 $as_echo "none needed" >&6; } ;;
5501 xno)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5503 $as_echo "unsupported" >&6; } ;;
5505 CC="$CC $ac_cv_prog_cc_c89"
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5507 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5508 esac
5509 if test "x$ac_cv_prog_cc_c89" != xno; then :
5513 ac_ext=c
5514 ac_cpp='$CPP $CPPFLAGS'
5515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519 depcc="$CC" am_compiler_list=
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5522 $as_echo_n "checking dependency style of $depcc... " >&6; }
5523 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5527 # We make a subdir and do the tests there. Otherwise we can end up
5528 # making bogus files that we don't know about and never remove. For
5529 # instance it was reported that on HP-UX the gcc test will end up
5530 # making a dummy file named `D' -- because `-MD' means `put the output
5531 # in D'.
5532 rm -rf conftest.dir
5533 mkdir conftest.dir
5534 # Copy depcomp to subdir because otherwise we won't find it if we're
5535 # using a relative directory.
5536 cp "$am_depcomp" conftest.dir
5537 cd conftest.dir
5538 # We will build objects and dependencies in a subdirectory because
5539 # it helps to detect inapplicable dependency modes. For instance
5540 # both Tru64's cc and ICC support -MD to output dependencies as a
5541 # side effect of compilation, but ICC will put the dependencies in
5542 # the current directory while Tru64 will put them in the object
5543 # directory.
5544 mkdir sub
5546 am_cv_CC_dependencies_compiler_type=none
5547 if test "$am_compiler_list" = ""; then
5548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5550 am__universal=false
5551 case " $depcc " in #(
5552 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5553 esac
5555 for depmode in $am_compiler_list; do
5556 # Setup a source with many dependencies, because some compilers
5557 # like to wrap large dependency lists on column 80 (with \), and
5558 # we should not choose a depcomp mode which is confused by this.
5560 # We need to recreate these files for each test, as the compiler may
5561 # overwrite some of them when testing with obscure command lines.
5562 # This happens at least with the AIX C compiler.
5563 : > sub/conftest.c
5564 for i in 1 2 3 4 5 6; do
5565 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5566 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5567 # Solaris 8's {/usr,}/bin/sh.
5568 touch sub/conftst$i.h
5569 done
5570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5573 # mode. It turns out that the SunPro C++ compiler does not properly
5574 # handle `-M -o', and we need to detect this. Also, some Intel
5575 # versions had trouble with output in subdirs
5576 am__obj=sub/conftest.${OBJEXT-o}
5577 am__minus_obj="-o $am__obj"
5578 case $depmode in
5579 gcc)
5580 # This depmode causes a compiler race in universal mode.
5581 test "$am__universal" = false || continue
5583 nosideeffect)
5584 # after this tag, mechanisms are not by side-effect, so they'll
5585 # only be used when explicitly requested
5586 if test "x$enable_dependency_tracking" = xyes; then
5587 continue
5588 else
5589 break
5592 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5593 # This compiler won't grok `-c -o', but also, the minuso test has
5594 # not run yet. These depmodes are late enough in the game, and
5595 # so weak that their functioning should not be impacted.
5596 am__obj=conftest.${OBJEXT-o}
5597 am__minus_obj=
5599 none) break ;;
5600 esac
5601 if depmode=$depmode \
5602 source=sub/conftest.c object=$am__obj \
5603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5604 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5605 >/dev/null 2>conftest.err &&
5606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5608 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5610 # icc doesn't choke on unknown options, it will just issue warnings
5611 # or remarks (even with -Werror). So we grep stderr for any message
5612 # that says an option was ignored or not supported.
5613 # When given -MP, icc 7.0 and 7.1 complain thusly:
5614 # icc: Command line warning: ignoring option '-M'; no argument required
5615 # The diagnosis changed in icc 8.0:
5616 # icc: Command line remark: option '-MP' not supported
5617 if (grep 'ignoring option' conftest.err ||
5618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5619 am_cv_CC_dependencies_compiler_type=$depmode
5620 break
5623 done
5625 cd ..
5626 rm -rf conftest.dir
5627 else
5628 am_cv_CC_dependencies_compiler_type=none
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5633 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5634 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5637 test "x$enable_dependency_tracking" != xno \
5638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5639 am__fastdepCC_TRUE=
5640 am__fastdepCC_FALSE='#'
5641 else
5642 am__fastdepCC_TRUE='#'
5643 am__fastdepCC_FALSE=
5651 if test "x$CC" != xcc; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5653 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5656 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5658 set dummy $CC; ac_cc=`$as_echo "$2" |
5659 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5660 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5667 main ()
5671 return 0;
5673 _ACEOF
5674 # Make sure it works both with $CC and with simple cc.
5675 # We do the test twice because some compilers refuse to overwrite an
5676 # existing .o file with -o, though they will create one.
5677 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5678 rm -f conftest2.*
5679 if { { case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5684 $as_echo "$ac_try_echo"; } >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; } &&
5689 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5694 $as_echo "$ac_try_echo"; } >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; };
5699 then
5700 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5701 if test "x$CC" != xcc; then
5702 # Test first that cc exists at all.
5703 if { ac_try='cc -c conftest.$ac_ext >&5'
5704 { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 $as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; }; }; then
5714 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5715 rm -f conftest2.*
5716 if { { case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5721 $as_echo "$ac_try_echo"; } >&5
5722 (eval "$ac_try") 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; } &&
5726 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5731 $as_echo "$ac_try_echo"; } >&5
5732 (eval "$ac_try") 2>&5
5733 ac_status=$?
5734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735 test $ac_status = 0; };
5736 then
5737 # cc works too.
5739 else
5740 # cc exists but doesn't like -o.
5741 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5745 else
5746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5748 rm -f core conftest*
5751 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5753 $as_echo "yes" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5758 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5762 # FIXME: we rely on the cache variable name because
5763 # there is no other way.
5764 set dummy $CC
5765 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5766 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5767 if test "$am_t" != yes; then
5768 # Losing compiler, so override with the script.
5769 # FIXME: It is wrong to rewrite CC.
5770 # But if we don't then we get into trouble of one sort or another.
5771 # A longer-term fix would be to have automake use am__CC in this case,
5772 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5773 CC="$am_aux_dir/compile $CC"
5778 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5779 if test "x$GCC" = "xyes"; then
5780 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5781 ## We like to use C11 and C99 routines when available. This makes
5782 ## sure that
5783 ## __STDC_VERSION__ is set such that libc includes make them available.
5784 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5785 ## Compile the following tests with the same system header contents
5786 ## that we'll encounter when compiling our own source files.
5787 CFLAGS="-std=gnu11 $CFLAGS"
5793 # Check for symbol versioning (copied from libssp).
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5795 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5796 # Check whether --enable-symvers was given.
5797 if test "${enable_symvers+set}" = set; then :
5798 enableval=$enable_symvers; gfortran_use_symver=$enableval
5799 else
5800 gfortran_use_symver=yes
5803 if test "x$gfortran_use_symver" != xno; then
5804 save_LDFLAGS="$LDFLAGS"
5805 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5806 cat > conftest.map <<EOF
5807 FOO_1.0 {
5808 global: *foo*; bar; local: *;
5811 if test x$gcc_no_link = xyes; then
5812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 int foo;
5818 main ()
5822 return 0;
5824 _ACEOF
5825 if ac_fn_c_try_link "$LINENO"; then :
5826 gfortran_use_symver=gnu
5827 else
5828 gfortran_use_symver=no
5830 rm -f core conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 if test x$gfortran_use_symver = xno; then
5833 case "$target_os" in
5834 solaris2*)
5835 LDFLAGS="$save_LDFLAGS"
5836 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5837 # Sun ld cannot handle wildcards and treats all entries as undefined.
5838 cat > conftest.map <<EOF
5839 FOO_1.0 {
5840 global: foo; local: *;
5843 if test x$gcc_no_link = xyes; then
5844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int foo;
5850 main ()
5854 return 0;
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"; then :
5858 gfortran_use_symver=sun
5859 else
5860 gfortran_use_symver=no
5862 rm -f core conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
5865 esac
5867 LDFLAGS="$save_LDFLAGS"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5870 $as_echo "$gfortran_use_symver" >&6; }
5871 if test "x$gfortran_use_symver" != xno; then
5872 LIBGFOR_USE_SYMVER_TRUE=
5873 LIBGFOR_USE_SYMVER_FALSE='#'
5874 else
5875 LIBGFOR_USE_SYMVER_TRUE='#'
5876 LIBGFOR_USE_SYMVER_FALSE=
5879 if test "x$gfortran_use_symver" = xgnu; then
5880 LIBGFOR_USE_SYMVER_GNU_TRUE=
5881 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5882 else
5883 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5884 LIBGFOR_USE_SYMVER_GNU_FALSE=
5887 if test "x$gfortran_use_symver" = xsun; then
5888 LIBGFOR_USE_SYMVER_SUN_TRUE=
5889 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5890 else
5891 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5892 LIBGFOR_USE_SYMVER_SUN_FALSE=
5896 # For GPU offloading, not everything in libfortran can be supported.
5897 # Currently, the only target that has this problem is nvptx. The
5898 # following is a (partial) list of features that are unsupportable on
5899 # this particular target:
5900 # * Constructors
5901 # * alloca
5902 # * C library support for I/O, with printf as the one notable exception
5903 # * C library support for other features such as signal, environment
5904 # variables, time functions
5906 if test "x${target_cpu}" = xnvptx; then
5907 LIBGFOR_MINIMAL_TRUE=
5908 LIBGFOR_MINIMAL_FALSE='#'
5909 else
5910 LIBGFOR_MINIMAL_TRUE='#'
5911 LIBGFOR_MINIMAL_FALSE=
5915 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5916 # similarly to how libstdc++ does it
5917 ac_test_CFLAGS="${CFLAGS+set}"
5918 ac_save_CFLAGS="$CFLAGS"
5920 # Check for -ffunction-sections -fdata-sections
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5922 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5923 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5928 main ()
5930 int foo;
5932 return 0;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 ac_fdsections=yes
5937 else
5938 ac_fdsections=no
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 if test "$ac_test_CFLAGS" = set; then
5942 CFLAGS="$ac_save_CFLAGS"
5943 else
5944 # this is the suspicious part
5945 CFLAGS=""
5947 if test x"$ac_fdsections" = x"yes"; then
5948 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5951 $as_echo "$ac_fdsections" >&6; }
5954 # Check linker hardware capability support.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5956 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5957 if test "${ac_cv_path_SED+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5961 for ac_i in 1 2 3 4 5 6 7; do
5962 ac_script="$ac_script$as_nl$ac_script"
5963 done
5964 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5965 { ac_script=; unset ac_script;}
5966 if test -z "$SED"; then
5967 ac_path_SED_found=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_prog in sed gsed; do
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5977 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5978 # Check for GNU ac_path_SED and select it if it is found.
5979 # Check for GNU $ac_path_SED
5980 case `"$ac_path_SED" --version 2>&1` in
5981 *GNU*)
5982 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5984 ac_count=0
5985 $as_echo_n 0123456789 >"conftest.in"
5986 while :
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo '' >> "conftest.nl"
5992 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5994 as_fn_arith $ac_count + 1 && ac_count=$as_val
5995 if test $ac_count -gt ${ac_path_SED_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_SED="$ac_path_SED"
5998 ac_path_SED_max=$ac_count
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6002 done
6003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6004 esac
6006 $ac_path_SED_found && break 3
6007 done
6008 done
6009 done
6010 IFS=$as_save_IFS
6011 if test -z "$ac_cv_path_SED"; then
6012 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6014 else
6015 ac_cv_path_SED=$SED
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6020 $as_echo "$ac_cv_path_SED" >&6; }
6021 SED="$ac_cv_path_SED"
6022 rm -f conftest.sed
6024 test -z "$SED" && SED=sed
6025 Xsed="$SED -e 1s/^X//"
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6038 $as_echo_n "checking for fgrep... " >&6; }
6039 if test "${ac_cv_path_FGREP+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6043 then ac_cv_path_FGREP="$GREP -F"
6044 else
6045 if test -z "$FGREP"; then
6046 ac_path_FGREP_found=false
6047 # Loop through the user's path and test for each of PROGNAME-LIST
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_prog in fgrep; do
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6056 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6057 # Check for GNU ac_path_FGREP and select it if it is found.
6058 # Check for GNU $ac_path_FGREP
6059 case `"$ac_path_FGREP" --version 2>&1` in
6060 *GNU*)
6061 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6063 ac_count=0
6064 $as_echo_n 0123456789 >"conftest.in"
6065 while :
6067 cat "conftest.in" "conftest.in" >"conftest.tmp"
6068 mv "conftest.tmp" "conftest.in"
6069 cp "conftest.in" "conftest.nl"
6070 $as_echo 'FGREP' >> "conftest.nl"
6071 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073 as_fn_arith $ac_count + 1 && ac_count=$as_val
6074 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6075 # Best one so far, save it but keep looking for a better one
6076 ac_cv_path_FGREP="$ac_path_FGREP"
6077 ac_path_FGREP_max=$ac_count
6079 # 10*(2^10) chars as input seems more than enough
6080 test $ac_count -gt 10 && break
6081 done
6082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 esac
6085 $ac_path_FGREP_found && break 3
6086 done
6087 done
6088 done
6089 IFS=$as_save_IFS
6090 if test -z "$ac_cv_path_FGREP"; then
6091 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6093 else
6094 ac_cv_path_FGREP=$FGREP
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6100 $as_echo "$ac_cv_path_FGREP" >&6; }
6101 FGREP="$ac_cv_path_FGREP"
6104 test -z "$GREP" && GREP=grep
6122 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6127 $as_echo_n "checking how to print strings... " >&6; }
6128 # Test print first, because it will be a builtin if present.
6129 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='print -r --'
6132 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6133 ECHO='printf %s\n'
6134 else
6135 # Use this function as a fallback that always works.
6136 func_fallback_echo ()
6138 eval 'cat <<_LTECHO_EOF
6140 _LTECHO_EOF'
6142 ECHO='func_fallback_echo'
6145 # func_echo_all arg...
6146 # Invoke $ECHO with all args, space-separated.
6147 func_echo_all ()
6149 $ECHO ""
6152 case "$ECHO" in
6153 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6154 $as_echo "printf" >&6; } ;;
6155 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6156 $as_echo "print -r" >&6; } ;;
6157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6158 $as_echo "cat" >&6; } ;;
6159 esac
6176 # Check whether --with-gnu-ld was given.
6177 if test "${with_gnu_ld+set}" = set; then :
6178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6179 else
6180 with_gnu_ld=no
6183 ac_prog=ld
6184 if test "$GCC" = yes; then
6185 # Check if gcc -print-prog-name=ld gives a path.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6187 $as_echo_n "checking for ld used by $CC... " >&6; }
6188 case $host in
6189 *-*-mingw*)
6190 # gcc leaves a trailing carriage return which upsets mingw
6191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6194 esac
6195 case $ac_prog in
6196 # Accept absolute paths.
6197 [\\/]* | ?:[\\/]*)
6198 re_direlt='/[^/][^/]*/\.\./'
6199 # Canonicalize the pathname of ld
6200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6203 done
6204 test -z "$LD" && LD="$ac_prog"
6207 # If it fails, then pretend we aren't using GCC.
6208 ac_prog=ld
6211 # If it is relative, then search for the first ld in PATH.
6212 with_gnu_ld=unknown
6214 esac
6215 elif test "$with_gnu_ld" = yes; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6217 $as_echo_n "checking for GNU ld... " >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6220 $as_echo_n "checking for non-GNU ld... " >&6; }
6222 if test "${lt_cv_path_LD+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if test -z "$LD"; then
6226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6227 for ac_dir in $PATH; do
6228 IFS="$lt_save_ifs"
6229 test -z "$ac_dir" && ac_dir=.
6230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6231 lt_cv_path_LD="$ac_dir/$ac_prog"
6232 # Check to see if the program is GNU ld. I'd rather use --version,
6233 # but apparently some variants of GNU ld only accept -v.
6234 # Break only if it was the GNU/non-GNU ld that we prefer.
6235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6236 *GNU* | *'with BFD'*)
6237 test "$with_gnu_ld" != no && break
6240 test "$with_gnu_ld" != yes && break
6242 esac
6244 done
6245 IFS="$lt_save_ifs"
6246 else
6247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6251 LD="$lt_cv_path_LD"
6252 if test -n "$LD"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6254 $as_echo "$LD" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6259 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6262 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6266 case `$LD -v 2>&1 </dev/null` in
6267 *GNU* | *'with BFD'*)
6268 lt_cv_prog_gnu_ld=yes
6271 lt_cv_prog_gnu_ld=no
6273 esac
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6277 with_gnu_ld=$lt_cv_prog_gnu_ld
6288 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6291 ac_save_LDFLAGS="$LDFLAGS"
6292 LDFLAGS="$LFLAGS -mclear-hwcap"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6295 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6296 if test x$gcc_no_link = xyes; then
6297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 main ()
6305 return 0;
6307 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_hwcap_ldflags=yes
6312 else
6313 ac_hwcap_ldflags=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6317 if test "$ac_hwcap_ldflags" = "yes"; then
6318 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6321 $as_echo "$ac_hwcap_ldflags" >&6; }
6323 LDFLAGS="$ac_save_LDFLAGS"
6327 if test $ac_hwcap_ldflags != no; then
6328 HAVE_HWCAP_TRUE=
6329 HAVE_HWCAP_FALSE='#'
6330 else
6331 HAVE_HWCAP_TRUE='#'
6332 HAVE_HWCAP_FALSE=
6337 # Find other programs we need.
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}as; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if test "${ac_cv_prog_AS+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$AS"; then
6347 ac_cv_prog_AS="$AS" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_AS="${ac_tool_prefix}as"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 AS=$ac_cv_prog_AS
6367 if test -n "$AS"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6369 $as_echo "$AS" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6377 if test -z "$ac_cv_prog_AS"; then
6378 ac_ct_AS=$AS
6379 # Extract the first word of "as", so it can be a program name with args.
6380 set dummy as; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$ac_ct_AS"; then
6387 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_AS="as"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6407 if test -n "$ac_ct_AS"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6409 $as_echo "$ac_ct_AS" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6415 if test "x$ac_ct_AS" = x; then
6416 AS=""
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6423 esac
6424 AS=$ac_ct_AS
6426 else
6427 AS="$ac_cv_prog_AS"
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ar; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_AR+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$AR"; then
6439 ac_cv_prog_AR="$AR" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_AR="${ac_tool_prefix}ar"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 AR=$ac_cv_prog_AR
6459 if test -n "$AR"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6461 $as_echo "$AR" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6469 if test -z "$ac_cv_prog_AR"; then
6470 ac_ct_AR=$AR
6471 # Extract the first word of "ar", so it can be a program name with args.
6472 set dummy ar; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_AR"; then
6479 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_ac_ct_AR="ar"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6492 done
6493 done
6494 IFS=$as_save_IFS
6498 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6499 if test -n "$ac_ct_AR"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6501 $as_echo "$ac_ct_AR" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6507 if test "x$ac_ct_AR" = x; then
6508 AR=""
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516 AR=$ac_ct_AR
6518 else
6519 AR="$ac_cv_prog_AR"
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$RANLIB"; then
6531 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6544 done
6545 done
6546 IFS=$as_save_IFS
6550 RANLIB=$ac_cv_prog_RANLIB
6551 if test -n "$RANLIB"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6553 $as_echo "$RANLIB" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6561 if test -z "$ac_cv_prog_RANLIB"; then
6562 ac_ct_RANLIB=$RANLIB
6563 # Extract the first word of "ranlib", so it can be a program name with args.
6564 set dummy ranlib; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$ac_ct_RANLIB"; then
6571 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_ac_ct_RANLIB="ranlib"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6584 done
6585 done
6586 IFS=$as_save_IFS
6590 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6591 if test -n "$ac_ct_RANLIB"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6593 $as_echo "$ac_ct_RANLIB" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6599 if test "x$ac_ct_RANLIB" = x; then
6600 RANLIB="ranlib-not-found-in-path-error"
6601 else
6602 case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6607 esac
6608 RANLIB=$ac_ct_RANLIB
6610 else
6611 RANLIB="$ac_cv_prog_RANLIB"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6616 set x ${MAKE-make}
6617 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6618 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat >conftest.make <<\_ACEOF
6622 SHELL = /bin/sh
6623 all:
6624 @echo '@@@%%%=$(MAKE)=@@@%%%'
6625 _ACEOF
6626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6628 *@@@%%%=?*=@@@%%%*)
6629 eval ac_cv_prog_make_${ac_make}_set=yes;;
6631 eval ac_cv_prog_make_${ac_make}_set=no;;
6632 esac
6633 rm -f conftest.make
6635 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6638 SET_MAKE=
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 SET_MAKE="MAKE=${MAKE-make}"
6647 # Configure libtool
6648 #AC_MSG_NOTICE([====== Starting libtool configuration])
6649 enable_dlopen=yes
6653 case `pwd` in
6654 *\ * | *\ *)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6656 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6657 esac
6661 macro_version='2.2.7a'
6662 macro_revision='1.3134'
6676 ltmain="$ac_aux_dir/ltmain.sh"
6678 # Backslashify metacharacters that are still active within
6679 # double-quoted strings.
6680 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6682 # Same as above, but do not quote variable references.
6683 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6685 # Sed substitution to delay expansion of an escaped shell variable in a
6686 # double_quote_subst'ed string.
6687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6689 # Sed substitution to delay expansion of an escaped single quote.
6690 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6692 # Sed substitution to avoid accidental globbing in evaled expressions
6693 no_glob_subst='s/\*/\\\*/g'
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6696 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6697 if test "${lt_cv_path_NM+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$NM"; then
6701 # Let the user override the test.
6702 lt_cv_path_NM="$NM"
6703 else
6704 lt_nm_to_check="${ac_tool_prefix}nm"
6705 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6706 lt_nm_to_check="$lt_nm_to_check nm"
6708 for lt_tmp_nm in $lt_nm_to_check; do
6709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6710 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6711 IFS="$lt_save_ifs"
6712 test -z "$ac_dir" && ac_dir=.
6713 tmp_nm="$ac_dir/$lt_tmp_nm"
6714 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6715 # Check to see if the nm accepts a BSD-compat flag.
6716 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6717 # nm: unknown option "B" ignored
6718 # Tru64's nm complains that /dev/null is an invalid object file
6719 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6720 */dev/null* | *'Invalid file or object type'*)
6721 lt_cv_path_NM="$tmp_nm -B"
6722 break
6725 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6726 */dev/null*)
6727 lt_cv_path_NM="$tmp_nm -p"
6728 break
6731 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6732 continue # so that we can try to find one that supports BSD flags
6734 esac
6736 esac
6738 done
6739 IFS="$lt_save_ifs"
6740 done
6741 : ${lt_cv_path_NM=no}
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6745 $as_echo "$lt_cv_path_NM" >&6; }
6746 if test "$lt_cv_path_NM" != "no"; then
6747 NM="$lt_cv_path_NM"
6748 else
6749 # Didn't find any BSD compatible name lister, look for dumpbin.
6750 if test -n "$DUMPBIN"; then :
6751 # Let the user override the test.
6752 else
6753 if test -n "$ac_tool_prefix"; then
6754 for ac_prog in dumpbin "link -dump"
6756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$DUMPBIN"; then
6764 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6777 done
6778 done
6779 IFS=$as_save_IFS
6783 DUMPBIN=$ac_cv_prog_DUMPBIN
6784 if test -n "$DUMPBIN"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6786 $as_echo "$DUMPBIN" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6793 test -n "$DUMPBIN" && break
6794 done
6796 if test -z "$DUMPBIN"; then
6797 ac_ct_DUMPBIN=$DUMPBIN
6798 for ac_prog in dumpbin "link -dump"
6800 # Extract the first word of "$ac_prog", so it can be a program name with args.
6801 set dummy $ac_prog; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$ac_ct_DUMPBIN"; then
6808 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6828 if test -n "$ac_ct_DUMPBIN"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6830 $as_echo "$ac_ct_DUMPBIN" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6837 test -n "$ac_ct_DUMPBIN" && break
6838 done
6840 if test "x$ac_ct_DUMPBIN" = x; then
6841 DUMPBIN=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 DUMPBIN=$ac_ct_DUMPBIN
6853 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6854 *COFF*)
6855 DUMPBIN="$DUMPBIN -symbols"
6858 DUMPBIN=:
6860 esac
6863 if test "$DUMPBIN" != ":"; then
6864 NM="$DUMPBIN"
6867 test -z "$NM" && NM=nm
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6875 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6876 if test "${lt_cv_nm_interface+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 lt_cv_nm_interface="BSD nm"
6880 echo "int some_variable = 0;" > conftest.$ac_ext
6881 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6882 (eval "$ac_compile" 2>conftest.err)
6883 cat conftest.err >&5
6884 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6885 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6886 cat conftest.err >&5
6887 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6888 cat conftest.out >&5
6889 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6890 lt_cv_nm_interface="MS dumpbin"
6892 rm -f conftest*
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6895 $as_echo "$lt_cv_nm_interface" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6898 $as_echo_n "checking whether ln -s works... " >&6; }
6899 LN_S=$as_ln_s
6900 if test "$LN_S" = "ln -s"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6902 $as_echo "yes" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6905 $as_echo "no, using $LN_S" >&6; }
6908 # find the maximum length of command line arguments
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6910 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6915 teststring="ABCD"
6917 case $build_os in
6918 msdosdjgpp*)
6919 # On DJGPP, this test can blow up pretty badly due to problems in libc
6920 # (any single argument exceeding 2000 bytes causes a buffer overrun
6921 # during glob expansion). Even if it were fixed, the result of this
6922 # check would be larger than it should be.
6923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6926 gnu*)
6927 # Under GNU Hurd, this test is not required because there is
6928 # no limit to the length of command line arguments.
6929 # Libtool will interpret -1 as no limit whatsoever
6930 lt_cv_sys_max_cmd_len=-1;
6933 cygwin* | mingw* | cegcc*)
6934 # On Win9x/ME, this test blows up -- it succeeds, but takes
6935 # about 5 minutes as the teststring grows exponentially.
6936 # Worse, since 9x/ME are not pre-emptively multitasking,
6937 # you end up with a "frozen" computer, even though with patience
6938 # the test eventually succeeds (with a max line length of 256k).
6939 # Instead, let's just punt: use the minimum linelength reported by
6940 # all of the supported platforms: 8192 (on NT/2K/XP).
6941 lt_cv_sys_max_cmd_len=8192;
6944 mint*)
6945 # On MiNT this can take a long time and run out of memory.
6946 lt_cv_sys_max_cmd_len=8192;
6949 amigaos*)
6950 # On AmigaOS with pdksh, this test takes hours, literally.
6951 # So we just punt and use a minimum line length of 8192.
6952 lt_cv_sys_max_cmd_len=8192;
6955 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6956 # This has been around since 386BSD, at least. Likely further.
6957 if test -x /sbin/sysctl; then
6958 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6959 elif test -x /usr/sbin/sysctl; then
6960 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6961 else
6962 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6964 # And add a safety zone
6965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6969 interix*)
6970 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6971 lt_cv_sys_max_cmd_len=196608
6974 osf*)
6975 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6976 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6977 # nice to cause kernel panics so lets avoid the loop below.
6978 # First set a reasonable default.
6979 lt_cv_sys_max_cmd_len=16384
6981 if test -x /sbin/sysconfig; then
6982 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6983 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6984 esac
6987 sco3.2v5*)
6988 lt_cv_sys_max_cmd_len=102400
6990 sysv5* | sco5v6* | sysv4.2uw2*)
6991 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6992 if test -n "$kargmax"; then
6993 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6994 else
6995 lt_cv_sys_max_cmd_len=32768
6999 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7000 if test -n "$lt_cv_sys_max_cmd_len"; then
7001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7003 else
7004 # Make teststring a little bigger before we do anything with it.
7005 # a 1K string should be a reasonable start.
7006 for i in 1 2 3 4 5 6 7 8 ; do
7007 teststring=$teststring$teststring
7008 done
7009 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7010 # If test is not a shell built-in, we'll probably end up computing a
7011 # maximum length that is only half of the actual maximum length, but
7012 # we can't tell.
7013 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7014 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7015 test $i != 17 # 1/2 MB should be enough
7017 i=`expr $i + 1`
7018 teststring=$teststring$teststring
7019 done
7020 # Only check the string length outside the loop.
7021 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7022 teststring=
7023 # Add a significant safety factor because C++ compilers can tack on
7024 # massive amounts of additional arguments before passing them to the
7025 # linker. It appears as though 1/2 is a usable value.
7026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7029 esac
7033 if test -n $lt_cv_sys_max_cmd_len ; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7035 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7038 $as_echo "none" >&6; }
7040 max_cmd_len=$lt_cv_sys_max_cmd_len
7047 : ${CP="cp -f"}
7048 : ${MV="mv -f"}
7049 : ${RM="rm -f"}
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7052 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7053 # Try some XSI features
7054 xsi_shell=no
7055 ( _lt_dummy="a/b/c"
7056 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7057 = c,a/b,, \
7058 && eval 'test $(( 1 + 1 )) -eq 2 \
7059 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7060 && xsi_shell=yes
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7062 $as_echo "$xsi_shell" >&6; }
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7066 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7067 lt_shell_append=no
7068 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7069 >/dev/null 2>&1 \
7070 && lt_shell_append=yes
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7072 $as_echo "$lt_shell_append" >&6; }
7075 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7076 lt_unset=unset
7077 else
7078 lt_unset=false
7085 # test EBCDIC or ASCII
7086 case `echo X|tr X '\101'` in
7087 A) # ASCII based system
7088 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7089 lt_SP2NL='tr \040 \012'
7090 lt_NL2SP='tr \015\012 \040\040'
7092 *) # EBCDIC based system
7093 lt_SP2NL='tr \100 \n'
7094 lt_NL2SP='tr \r\n \100\100'
7096 esac
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7107 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7108 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 lt_cv_ld_reload_flag='-r'
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7114 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7115 reload_flag=$lt_cv_ld_reload_flag
7116 case $reload_flag in
7117 "" | " "*) ;;
7118 *) reload_flag=" $reload_flag" ;;
7119 esac
7120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7121 case $host_os in
7122 darwin*)
7123 if test "$GCC" = yes; then
7124 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7125 else
7126 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7129 esac
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$OBJDUMP"; then
7148 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 OBJDUMP=$ac_cv_prog_OBJDUMP
7168 if test -n "$OBJDUMP"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7170 $as_echo "$OBJDUMP" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 if test -z "$ac_cv_prog_OBJDUMP"; then
7179 ac_ct_OBJDUMP=$OBJDUMP
7180 # Extract the first word of "objdump", so it can be a program name with args.
7181 set dummy objdump; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_OBJDUMP"; then
7188 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7203 IFS=$as_save_IFS
7207 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7208 if test -n "$ac_ct_OBJDUMP"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7210 $as_echo "$ac_ct_OBJDUMP" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7216 if test "x$ac_ct_OBJDUMP" = x; then
7217 OBJDUMP="false"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 OBJDUMP=$ac_ct_OBJDUMP
7227 else
7228 OBJDUMP="$ac_cv_prog_OBJDUMP"
7231 test -z "$OBJDUMP" && OBJDUMP=objdump
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7242 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7243 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 lt_cv_file_magic_cmd='$MAGIC_CMD'
7247 lt_cv_file_magic_test_file=
7248 lt_cv_deplibs_check_method='unknown'
7249 # Need to set the preceding variable on all platforms that support
7250 # interlibrary dependencies.
7251 # 'none' -- dependencies not supported.
7252 # `unknown' -- same as none, but documents that we really don't know.
7253 # 'pass_all' -- all dependencies passed with no checks.
7254 # 'test_compile' -- check by making test program.
7255 # 'file_magic [[regex]]' -- check by looking for files in library path
7256 # which responds to the $file_magic_cmd with a given extended regex.
7257 # If you have `file' or equivalent on your system and you're not sure
7258 # whether `pass_all' will *always* work, you probably want this one.
7260 case $host_os in
7261 aix[4-9]*)
7262 lt_cv_deplibs_check_method=pass_all
7265 beos*)
7266 lt_cv_deplibs_check_method=pass_all
7269 bsdi[45]*)
7270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7271 lt_cv_file_magic_cmd='/usr/bin/file -L'
7272 lt_cv_file_magic_test_file=/shlib/libc.so
7275 cygwin*)
7276 # func_win32_libid is a shell function defined in ltmain.sh
7277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7278 lt_cv_file_magic_cmd='func_win32_libid'
7281 mingw* | pw32*)
7282 # Base MSYS/MinGW do not provide the 'file' command needed by
7283 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7284 # unless we find 'file', for example because we are cross-compiling.
7285 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7286 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7288 lt_cv_file_magic_cmd='func_win32_libid'
7289 else
7290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7291 lt_cv_file_magic_cmd='$OBJDUMP -f'
7295 cegcc*)
7296 # use the weaker test based on 'objdump'. See mingw*.
7297 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7298 lt_cv_file_magic_cmd='$OBJDUMP -f'
7301 darwin* | rhapsody*)
7302 lt_cv_deplibs_check_method=pass_all
7305 freebsd* | dragonfly*)
7306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7307 case $host_cpu in
7308 i*86 )
7309 # Not sure whether the presence of OpenBSD here was a mistake.
7310 # Let's accept both of them until this is cleared up.
7311 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7312 lt_cv_file_magic_cmd=/usr/bin/file
7313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7315 esac
7316 else
7317 lt_cv_deplibs_check_method=pass_all
7321 gnu*)
7322 lt_cv_deplibs_check_method=pass_all
7325 haiku*)
7326 lt_cv_deplibs_check_method=pass_all
7329 hpux10.20* | hpux11*)
7330 lt_cv_file_magic_cmd=/usr/bin/file
7331 case $host_cpu in
7332 ia64*)
7333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7336 hppa*64*)
7337 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]'
7338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7344 esac
7347 interix[3-9]*)
7348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7352 irix5* | irix6* | nonstopux*)
7353 case $LD in
7354 *-32|*"-32 ") libmagic=32-bit;;
7355 *-n32|*"-n32 ") libmagic=N32;;
7356 *-64|*"-64 ") libmagic=64-bit;;
7357 *) libmagic=never-match;;
7358 esac
7359 lt_cv_deplibs_check_method=pass_all
7362 # This must be Linux ELF.
7363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7364 lt_cv_deplibs_check_method=pass_all
7367 netbsd*)
7368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7370 else
7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7375 newos6*)
7376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7377 lt_cv_file_magic_cmd=/usr/bin/file
7378 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7381 *nto* | *qnx*)
7382 lt_cv_deplibs_check_method=pass_all
7385 openbsd*)
7386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7388 else
7389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7393 osf3* | osf4* | osf5*)
7394 lt_cv_deplibs_check_method=pass_all
7397 rdos*)
7398 lt_cv_deplibs_check_method=pass_all
7401 solaris*)
7402 lt_cv_deplibs_check_method=pass_all
7405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7406 lt_cv_deplibs_check_method=pass_all
7409 sysv4 | sysv4.3*)
7410 case $host_vendor in
7411 motorola)
7412 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]'
7413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7415 ncr)
7416 lt_cv_deplibs_check_method=pass_all
7418 sequent)
7419 lt_cv_file_magic_cmd='/bin/file'
7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7422 sni)
7423 lt_cv_file_magic_cmd='/bin/file'
7424 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7425 lt_cv_file_magic_test_file=/lib/libc.so
7427 siemens)
7428 lt_cv_deplibs_check_method=pass_all
7431 lt_cv_deplibs_check_method=pass_all
7433 esac
7436 tpf*)
7437 lt_cv_deplibs_check_method=pass_all
7439 esac
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7443 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7444 file_magic_cmd=$lt_cv_file_magic_cmd
7445 deplibs_check_method=$lt_cv_deplibs_check_method
7446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}ar; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_prog_AR+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$AR"; then
7468 ac_cv_prog_AR="$AR" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_AR="${ac_tool_prefix}ar"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7481 done
7482 done
7483 IFS=$as_save_IFS
7487 AR=$ac_cv_prog_AR
7488 if test -n "$AR"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7490 $as_echo "$AR" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7498 if test -z "$ac_cv_prog_AR"; then
7499 ac_ct_AR=$AR
7500 # Extract the first word of "ar", so it can be a program name with args.
7501 set dummy ar; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$ac_ct_AR"; then
7508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_ac_ct_AR="ar"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7528 if test -n "$ac_ct_AR"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7530 $as_echo "$ac_ct_AR" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7536 if test "x$ac_ct_AR" = x; then
7537 AR="false"
7538 else
7539 case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545 AR=$ac_ct_AR
7547 else
7548 AR="$ac_cv_prog_AR"
7551 test -z "$AR" && AR=ar
7552 test -z "$AR_FLAGS" && AR_FLAGS=cru
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}strip; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_STRIP+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$STRIP"; then
7573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7586 done
7587 done
7588 IFS=$as_save_IFS
7592 STRIP=$ac_cv_prog_STRIP
7593 if test -n "$STRIP"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7595 $as_echo "$STRIP" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7603 if test -z "$ac_cv_prog_STRIP"; then
7604 ac_ct_STRIP=$STRIP
7605 # Extract the first word of "strip", so it can be a program name with args.
7606 set dummy strip; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$ac_ct_STRIP"; then
7613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_ac_ct_STRIP="strip"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7626 done
7627 done
7628 IFS=$as_save_IFS
7632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7633 if test -n "$ac_ct_STRIP"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7635 $as_echo "$ac_ct_STRIP" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7641 if test "x$ac_ct_STRIP" = x; then
7642 STRIP=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 STRIP=$ac_ct_STRIP
7652 else
7653 STRIP="$ac_cv_prog_STRIP"
7656 test -z "$STRIP" && STRIP=:
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 if test -n "$RANLIB"; then
7672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7685 done
7686 done
7687 IFS=$as_save_IFS
7691 RANLIB=$ac_cv_prog_RANLIB
7692 if test -n "$RANLIB"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7694 $as_echo "$RANLIB" >&6; }
7695 else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7702 if test -z "$ac_cv_prog_RANLIB"; then
7703 ac_ct_RANLIB=$RANLIB
7704 # Extract the first word of "ranlib", so it can be a program name with args.
7705 set dummy ranlib; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$ac_ct_RANLIB"; then
7712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_ac_ct_RANLIB="ranlib"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7732 if test -n "$ac_ct_RANLIB"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7734 $as_echo "$ac_ct_RANLIB" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7740 if test "x$ac_ct_RANLIB" = x; then
7741 RANLIB=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744 yes:)
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747 ac_tool_warned=yes ;;
7748 esac
7749 RANLIB=$ac_ct_RANLIB
7751 else
7752 RANLIB="$ac_cv_prog_RANLIB"
7755 test -z "$RANLIB" && RANLIB=:
7762 # Determine commands to create old-style static archives.
7763 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7764 old_postinstall_cmds='chmod 644 $oldlib'
7765 old_postuninstall_cmds=
7767 if test -n "$RANLIB"; then
7768 case $host_os in
7769 openbsd*)
7770 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7773 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7775 esac
7776 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7779 case $host_os in
7780 darwin*)
7781 lock_old_archive_extraction=yes ;;
7783 lock_old_archive_extraction=no ;;
7784 esac
7824 # If no C compiler was specified, use CC.
7825 LTCC=${LTCC-"$CC"}
7827 # If no C compiler flags were specified, use CFLAGS.
7828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7830 # Allow CC to be a program name with arguments.
7831 compiler=$CC
7834 # Check for command to grab the raw symbol name followed by C symbol from nm.
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7836 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7837 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7841 # These are sane defaults that work on at least a few old systems.
7842 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7844 # Character class describing NM global symbol codes.
7845 symcode='[BCDEGRST]'
7847 # Regexp to match symbols that can be accessed directly from C.
7848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7850 # Define system-specific variables.
7851 case $host_os in
7852 aix*)
7853 symcode='[BCDT]'
7855 cygwin* | mingw* | pw32* | cegcc*)
7856 symcode='[ABCDGISTW]'
7858 hpux*)
7859 if test "$host_cpu" = ia64; then
7860 symcode='[ABCDEGRST]'
7863 irix* | nonstopux*)
7864 symcode='[BCDEGRST]'
7866 osf*)
7867 symcode='[BCDEGQRST]'
7869 solaris*)
7870 symcode='[BDRT]'
7872 sco3.2v5*)
7873 symcode='[DT]'
7875 sysv4.2uw2*)
7876 symcode='[DT]'
7878 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7879 symcode='[ABDT]'
7881 sysv4)
7882 symcode='[DFNSTU]'
7884 esac
7886 # If we're using GNU nm, then use its standard symbol codes.
7887 case `$NM -V 2>&1` in
7888 *GNU* | *'with BFD'*)
7889 symcode='[ABCDGIRSTW]' ;;
7890 esac
7892 # Transform an extracted symbol line into a proper C declaration.
7893 # Some systems (esp. on ia64) link data and code symbols differently,
7894 # so use this general approach.
7895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7897 # Transform an extracted symbol line into symbol name and symbol address
7898 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7899 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'"
7901 # Handle CRLF in mingw tool chain
7902 opt_cr=
7903 case $build_os in
7904 mingw*)
7905 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7907 esac
7909 # Try without a prefix underscore, then with it.
7910 for ac_symprfx in "" "_"; do
7912 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7913 symxfrm="\\1 $ac_symprfx\\2 \\2"
7915 # Write the raw and C identifiers.
7916 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7917 # Fake it for dumpbin and say T for any non-static function
7918 # and D for any global variable.
7919 # Also find C++ and __fastcall symbols from MSVC++,
7920 # which start with @ or ?.
7921 lt_cv_sys_global_symbol_pipe="$AWK '"\
7922 " {last_section=section; section=\$ 3};"\
7923 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7924 " \$ 0!~/External *\|/{next};"\
7925 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7926 " {if(hide[section]) next};"\
7927 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7928 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7929 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7930 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7931 " ' prfx=^$ac_symprfx"
7932 else
7933 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7936 # Check to see that the pipe works correctly.
7937 pipe_works=no
7939 rm -f conftest*
7940 cat > conftest.$ac_ext <<_LT_EOF
7941 #ifdef __cplusplus
7942 extern "C" {
7943 #endif
7944 char nm_test_var;
7945 void nm_test_func(void);
7946 void nm_test_func(void){}
7947 #ifdef __cplusplus
7949 #endif
7950 int main(){nm_test_var='a';nm_test_func();return(0);}
7951 _LT_EOF
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7954 (eval $ac_compile) 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 # Now try to grab the symbols.
7959 nlist=conftest.nm
7960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7961 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7962 ac_status=$?
7963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964 test $ac_status = 0; } && test -s "$nlist"; then
7965 # Try sorting and uniquifying the output.
7966 if sort "$nlist" | uniq > "$nlist"T; then
7967 mv -f "$nlist"T "$nlist"
7968 else
7969 rm -f "$nlist"T
7972 # Make sure that we snagged all the symbols we need.
7973 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7974 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7975 cat <<_LT_EOF > conftest.$ac_ext
7976 #ifdef __cplusplus
7977 extern "C" {
7978 #endif
7980 _LT_EOF
7981 # Now generate the symbol file.
7982 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7984 cat <<_LT_EOF >> conftest.$ac_ext
7986 /* The mapping between symbol names and symbols. */
7987 const struct {
7988 const char *name;
7989 void *address;
7991 lt__PROGRAM__LTX_preloaded_symbols[] =
7993 { "@PROGRAM@", (void *) 0 },
7994 _LT_EOF
7995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7996 cat <<\_LT_EOF >> conftest.$ac_ext
7997 {0, (void *) 0}
8000 /* This works around a problem in FreeBSD linker */
8001 #ifdef FREEBSD_WORKAROUND
8002 static const void *lt_preloaded_setup() {
8003 return lt__PROGRAM__LTX_preloaded_symbols;
8005 #endif
8007 #ifdef __cplusplus
8009 #endif
8010 _LT_EOF
8011 # Now try linking the two files.
8012 mv conftest.$ac_objext conftstm.$ac_objext
8013 lt_save_LIBS="$LIBS"
8014 lt_save_CFLAGS="$CFLAGS"
8015 LIBS="conftstm.$ac_objext"
8016 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8018 (eval $ac_link) 2>&5
8019 ac_status=$?
8020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8022 pipe_works=yes
8024 LIBS="$lt_save_LIBS"
8025 CFLAGS="$lt_save_CFLAGS"
8026 else
8027 echo "cannot find nm_test_func in $nlist" >&5
8029 else
8030 echo "cannot find nm_test_var in $nlist" >&5
8032 else
8033 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8035 else
8036 echo "$progname: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 rm -rf conftest* conftst*
8041 # Do not use the global_symbol_pipe unless it works.
8042 if test "$pipe_works" = yes; then
8043 break
8044 else
8045 lt_cv_sys_global_symbol_pipe=
8047 done
8051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8052 lt_cv_sys_global_symbol_to_cdecl=
8054 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8056 $as_echo "failed" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8059 $as_echo "ok" >&6; }
8083 # Check whether --enable-libtool-lock was given.
8084 if test "${enable_libtool_lock+set}" = set; then :
8085 enableval=$enable_libtool_lock;
8088 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8090 # Some flags need to be propagated to the compiler or linker for good
8091 # libtool support.
8092 case $host in
8093 ia64-*-hpux*)
8094 # Find out which ABI we are using.
8095 echo 'int i;' > conftest.$ac_ext
8096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8097 (eval $ac_compile) 2>&5
8098 ac_status=$?
8099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8100 test $ac_status = 0; }; then
8101 case `/usr/bin/file conftest.$ac_objext` in
8102 *ELF-32*)
8103 HPUX_IA64_MODE="32"
8105 *ELF-64*)
8106 HPUX_IA64_MODE="64"
8108 esac
8110 rm -rf conftest*
8112 *-*-irix6*)
8113 # Find out which ABI we are using.
8114 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8116 (eval $ac_compile) 2>&5
8117 ac_status=$?
8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119 test $ac_status = 0; }; then
8120 if test "$lt_cv_prog_gnu_ld" = yes; then
8121 case `/usr/bin/file conftest.$ac_objext` in
8122 *32-bit*)
8123 LD="${LD-ld} -melf32bsmip"
8125 *N32*)
8126 LD="${LD-ld} -melf32bmipn32"
8128 *64-bit*)
8129 LD="${LD-ld} -melf64bmip"
8131 esac
8132 else
8133 case `/usr/bin/file conftest.$ac_objext` in
8134 *32-bit*)
8135 LD="${LD-ld} -32"
8137 *N32*)
8138 LD="${LD-ld} -n32"
8140 *64-bit*)
8141 LD="${LD-ld} -64"
8143 esac
8146 rm -rf conftest*
8149 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8150 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8151 # Find out which ABI we are using.
8152 echo 'int i;' > conftest.$ac_ext
8153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154 (eval $ac_compile) 2>&5
8155 ac_status=$?
8156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157 test $ac_status = 0; }; then
8158 case `/usr/bin/file conftest.o` in
8159 *32-bit*)
8160 case $host in
8161 x86_64-*kfreebsd*-gnu)
8162 LD="${LD-ld} -m elf_i386_fbsd"
8164 x86_64-*linux*)
8165 case `/usr/bin/file conftest.o` in
8166 *x86-64*)
8167 LD="${LD-ld} -m elf32_x86_64"
8170 LD="${LD-ld} -m elf_i386"
8172 esac
8174 powerpc64le-*linux*)
8175 LD="${LD-ld} -m elf32lppclinux"
8177 powerpc64-*linux*)
8178 LD="${LD-ld} -m elf32ppclinux"
8180 s390x-*linux*)
8181 LD="${LD-ld} -m elf_s390"
8183 sparc64-*linux*)
8184 LD="${LD-ld} -m elf32_sparc"
8186 esac
8188 *64-bit*)
8189 case $host in
8190 x86_64-*kfreebsd*-gnu)
8191 LD="${LD-ld} -m elf_x86_64_fbsd"
8193 x86_64-*linux*)
8194 LD="${LD-ld} -m elf_x86_64"
8196 powerpcle-*linux*)
8197 LD="${LD-ld} -m elf64lppc"
8199 powerpc-*linux*)
8200 LD="${LD-ld} -m elf64ppc"
8202 s390*-*linux*|s390*-*tpf*)
8203 LD="${LD-ld} -m elf64_s390"
8205 sparc*-*linux*)
8206 LD="${LD-ld} -m elf64_sparc"
8208 esac
8210 esac
8212 rm -rf conftest*
8215 *-*-sco3.2v5*)
8216 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8217 SAVE_CFLAGS="$CFLAGS"
8218 CFLAGS="$CFLAGS -belf"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8220 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8221 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230 if test x$gcc_no_link = xyes; then
8231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8237 main ()
8241 return 0;
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245 lt_cv_cc_needs_belf=yes
8246 else
8247 lt_cv_cc_needs_belf=no
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 ac_ext=c
8252 ac_cpp='$CPP $CPPFLAGS'
8253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8259 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8260 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8261 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8262 CFLAGS="$SAVE_CFLAGS"
8265 sparc*-*solaris*)
8266 # Find out which ABI we are using.
8267 echo 'int i;' > conftest.$ac_ext
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8269 (eval $ac_compile) 2>&5
8270 ac_status=$?
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; }; then
8273 case `/usr/bin/file conftest.o` in
8274 *64-bit*)
8275 case $lt_cv_prog_gnu_ld in
8276 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8278 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8279 LD="${LD-ld} -64"
8282 esac
8284 esac
8286 rm -rf conftest*
8288 esac
8290 need_locks="$enable_libtool_lock"
8293 case $host_os in
8294 rhapsody* | darwin*)
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$DSYMUTIL"; then
8304 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8317 done
8318 done
8319 IFS=$as_save_IFS
8323 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8324 if test -n "$DSYMUTIL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8326 $as_echo "$DSYMUTIL" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 if test -z "$ac_cv_prog_DSYMUTIL"; then
8335 ac_ct_DSYMUTIL=$DSYMUTIL
8336 # Extract the first word of "dsymutil", so it can be a program name with args.
8337 set dummy dsymutil; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$ac_ct_DSYMUTIL"; then
8344 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8357 done
8358 done
8359 IFS=$as_save_IFS
8363 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8364 if test -n "$ac_ct_DSYMUTIL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8366 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8372 if test "x$ac_ct_DSYMUTIL" = x; then
8373 DSYMUTIL=":"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 DSYMUTIL=$ac_ct_DSYMUTIL
8383 else
8384 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8387 if test -n "$ac_tool_prefix"; then
8388 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$NMEDIT"; then
8396 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8409 done
8410 done
8411 IFS=$as_save_IFS
8415 NMEDIT=$ac_cv_prog_NMEDIT
8416 if test -n "$NMEDIT"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8418 $as_echo "$NMEDIT" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 if test -z "$ac_cv_prog_NMEDIT"; then
8427 ac_ct_NMEDIT=$NMEDIT
8428 # Extract the first word of "nmedit", so it can be a program name with args.
8429 set dummy nmedit; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$ac_ct_NMEDIT"; then
8436 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8455 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8456 if test -n "$ac_ct_NMEDIT"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8458 $as_echo "$ac_ct_NMEDIT" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8464 if test "x$ac_ct_NMEDIT" = x; then
8465 NMEDIT=":"
8466 else
8467 case $cross_compiling:$ac_tool_warned in
8468 yes:)
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8472 esac
8473 NMEDIT=$ac_ct_NMEDIT
8475 else
8476 NMEDIT="$ac_cv_prog_NMEDIT"
8479 if test -n "$ac_tool_prefix"; then
8480 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8481 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if test "${ac_cv_prog_LIPO+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 if test -n "$LIPO"; then
8488 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8497 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8501 done
8502 done
8503 IFS=$as_save_IFS
8507 LIPO=$ac_cv_prog_LIPO
8508 if test -n "$LIPO"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8510 $as_echo "$LIPO" >&6; }
8511 else
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8518 if test -z "$ac_cv_prog_LIPO"; then
8519 ac_ct_LIPO=$LIPO
8520 # Extract the first word of "lipo", so it can be a program name with args.
8521 set dummy lipo; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$ac_ct_LIPO"; then
8528 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_ac_ct_LIPO="lipo"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8543 IFS=$as_save_IFS
8547 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8548 if test -n "$ac_ct_LIPO"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8550 $as_echo "$ac_ct_LIPO" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8556 if test "x$ac_ct_LIPO" = x; then
8557 LIPO=":"
8558 else
8559 case $cross_compiling:$ac_tool_warned in
8560 yes:)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8563 ac_tool_warned=yes ;;
8564 esac
8565 LIPO=$ac_ct_LIPO
8567 else
8568 LIPO="$ac_cv_prog_LIPO"
8571 if test -n "$ac_tool_prefix"; then
8572 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8573 set dummy ${ac_tool_prefix}otool; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 if test -n "$OTOOL"; then
8580 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8593 done
8594 done
8595 IFS=$as_save_IFS
8599 OTOOL=$ac_cv_prog_OTOOL
8600 if test -n "$OTOOL"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8602 $as_echo "$OTOOL" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8610 if test -z "$ac_cv_prog_OTOOL"; then
8611 ac_ct_OTOOL=$OTOOL
8612 # Extract the first word of "otool", so it can be a program name with args.
8613 set dummy otool; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$ac_ct_OTOOL"; then
8620 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_prog_ac_ct_OTOOL="otool"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8633 done
8634 done
8635 IFS=$as_save_IFS
8639 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8640 if test -n "$ac_ct_OTOOL"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8642 $as_echo "$ac_ct_OTOOL" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8648 if test "x$ac_ct_OTOOL" = x; then
8649 OTOOL=":"
8650 else
8651 case $cross_compiling:$ac_tool_warned in
8652 yes:)
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8655 ac_tool_warned=yes ;;
8656 esac
8657 OTOOL=$ac_ct_OTOOL
8659 else
8660 OTOOL="$ac_cv_prog_OTOOL"
8663 if test -n "$ac_tool_prefix"; then
8664 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8665 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 if test -n "$OTOOL64"; then
8672 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8685 done
8686 done
8687 IFS=$as_save_IFS
8691 OTOOL64=$ac_cv_prog_OTOOL64
8692 if test -n "$OTOOL64"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8694 $as_echo "$OTOOL64" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8702 if test -z "$ac_cv_prog_OTOOL64"; then
8703 ac_ct_OTOOL64=$OTOOL64
8704 # Extract the first word of "otool64", so it can be a program name with args.
8705 set dummy otool64; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$ac_ct_OTOOL64"; then
8712 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_prog_ac_ct_OTOOL64="otool64"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8727 IFS=$as_save_IFS
8731 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8732 if test -n "$ac_ct_OTOOL64"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8734 $as_echo "$ac_ct_OTOOL64" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8740 if test "x$ac_ct_OTOOL64" = x; then
8741 OTOOL64=":"
8742 else
8743 case $cross_compiling:$ac_tool_warned in
8744 yes:)
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8747 ac_tool_warned=yes ;;
8748 esac
8749 OTOOL64=$ac_ct_OTOOL64
8751 else
8752 OTOOL64="$ac_cv_prog_OTOOL64"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8782 $as_echo_n "checking for -single_module linker flag... " >&6; }
8783 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 lt_cv_apple_cc_single_mod=no
8787 if test -z "${LT_MULTI_MODULE}"; then
8788 # By default we will add the -single_module flag. You can override
8789 # by either setting the environment variable LT_MULTI_MODULE
8790 # non-empty at configure time, or by adding -multi_module to the
8791 # link flags.
8792 rm -rf libconftest.dylib*
8793 echo "int foo(void){return 1;}" > conftest.c
8794 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8795 -dynamiclib -Wl,-single_module conftest.c" >&5
8796 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8797 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8798 _lt_result=$?
8799 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8800 lt_cv_apple_cc_single_mod=yes
8801 else
8802 cat conftest.err >&5
8804 rm -rf libconftest.dylib*
8805 rm -f conftest.*
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8809 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8811 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8812 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 lt_cv_ld_exported_symbols_list=no
8816 save_LDFLAGS=$LDFLAGS
8817 echo "_main" > conftest.sym
8818 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8819 if test x$gcc_no_link = xyes; then
8820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8826 main ()
8830 return 0;
8832 _ACEOF
8833 if ac_fn_c_try_link "$LINENO"; then :
8834 lt_cv_ld_exported_symbols_list=yes
8835 else
8836 lt_cv_ld_exported_symbols_list=no
8838 rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 LDFLAGS="$save_LDFLAGS"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8844 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8846 $as_echo_n "checking for -force_load linker flag... " >&6; }
8847 if test "${lt_cv_ld_force_load+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 lt_cv_ld_force_load=no
8851 cat > conftest.c << _LT_EOF
8852 int forced_loaded() { return 2;}
8853 _LT_EOF
8854 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8855 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8856 echo "$AR cru libconftest.a conftest.o" >&5
8857 $AR cru libconftest.a conftest.o 2>&5
8858 cat > conftest.c << _LT_EOF
8859 int main() { return 0;}
8860 _LT_EOF
8861 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8862 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8863 _lt_result=$?
8864 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8865 lt_cv_ld_force_load=yes
8866 else
8867 cat conftest.err >&5
8869 rm -f conftest.err libconftest.a conftest conftest.c
8870 rm -rf conftest.dSYM
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8874 $as_echo "$lt_cv_ld_force_load" >&6; }
8875 case $host_os in
8876 rhapsody* | darwin1.[012])
8877 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8878 darwin1.*)
8879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8880 darwin*) # darwin 5.x on
8881 # if running on 10.5 or later, the deployment target defaults
8882 # to the OS version, if on x86, and 10.4, the deployment
8883 # target defaults to 10.4. Don't you love it?
8884 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8885 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8886 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8887 10.[012][,.]*)
8888 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8889 10.*)
8890 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8891 esac
8893 esac
8894 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8895 _lt_dar_single_mod='$single_module'
8897 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8898 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8899 else
8900 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8902 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8903 _lt_dsymutil='~$DSYMUTIL $lib || :'
8904 else
8905 _lt_dsymutil=
8908 esac
8910 for ac_header in dlfcn.h
8911 do :
8912 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8914 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_DLFCN_H 1
8917 _ACEOF
8921 done
8927 # Set options
8932 enable_win32_dll=no
8935 # Check whether --enable-shared was given.
8936 if test "${enable_shared+set}" = set; then :
8937 enableval=$enable_shared; p=${PACKAGE-default}
8938 case $enableval in
8939 yes) enable_shared=yes ;;
8940 no) enable_shared=no ;;
8942 enable_shared=no
8943 # Look at the argument we got. We use all the common list separators.
8944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8945 for pkg in $enableval; do
8946 IFS="$lt_save_ifs"
8947 if test "X$pkg" = "X$p"; then
8948 enable_shared=yes
8950 done
8951 IFS="$lt_save_ifs"
8953 esac
8954 else
8955 enable_shared=yes
8966 # Check whether --enable-static was given.
8967 if test "${enable_static+set}" = set; then :
8968 enableval=$enable_static; p=${PACKAGE-default}
8969 case $enableval in
8970 yes) enable_static=yes ;;
8971 no) enable_static=no ;;
8973 enable_static=no
8974 # Look at the argument we got. We use all the common list separators.
8975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976 for pkg in $enableval; do
8977 IFS="$lt_save_ifs"
8978 if test "X$pkg" = "X$p"; then
8979 enable_static=yes
8981 done
8982 IFS="$lt_save_ifs"
8984 esac
8985 else
8986 enable_static=yes
8998 # Check whether --with-pic was given.
8999 if test "${with_pic+set}" = set; then :
9000 withval=$with_pic; pic_mode="$withval"
9001 else
9002 pic_mode=default
9006 test -z "$pic_mode" && pic_mode=default
9014 # Check whether --enable-fast-install was given.
9015 if test "${enable_fast_install+set}" = set; then :
9016 enableval=$enable_fast_install; p=${PACKAGE-default}
9017 case $enableval in
9018 yes) enable_fast_install=yes ;;
9019 no) enable_fast_install=no ;;
9021 enable_fast_install=no
9022 # Look at the argument we got. We use all the common list separators.
9023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9024 for pkg in $enableval; do
9025 IFS="$lt_save_ifs"
9026 if test "X$pkg" = "X$p"; then
9027 enable_fast_install=yes
9029 done
9030 IFS="$lt_save_ifs"
9032 esac
9033 else
9034 enable_fast_install=yes
9047 # This can be used to rebuild libtool when needed
9048 LIBTOOL_DEPS="$ltmain"
9050 # Always use our own libtool.
9051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9078 test -z "$LN_S" && LN_S="ln -s"
9093 if test -n "${ZSH_VERSION+set}" ; then
9094 setopt NO_GLOB_SUBST
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9098 $as_echo_n "checking for objdir... " >&6; }
9099 if test "${lt_cv_objdir+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 rm -f .libs 2>/dev/null
9103 mkdir .libs 2>/dev/null
9104 if test -d .libs; then
9105 lt_cv_objdir=.libs
9106 else
9107 # MS-DOS does not allow filenames that begin with a dot.
9108 lt_cv_objdir=_libs
9110 rmdir .libs 2>/dev/null
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9113 $as_echo "$lt_cv_objdir" >&6; }
9114 objdir=$lt_cv_objdir
9120 cat >>confdefs.h <<_ACEOF
9121 #define LT_OBJDIR "$lt_cv_objdir/"
9122 _ACEOF
9127 case $host_os in
9128 aix3*)
9129 # AIX sometimes has problems with the GCC collect2 program. For some
9130 # reason, if we set the COLLECT_NAMES environment variable, the problems
9131 # vanish in a puff of smoke.
9132 if test "X${COLLECT_NAMES+set}" != Xset; then
9133 COLLECT_NAMES=
9134 export COLLECT_NAMES
9137 esac
9139 # Global variables:
9140 ofile=libtool
9141 can_build_shared=yes
9143 # All known linkers require a `.a' archive for static linking (except MSVC,
9144 # which needs '.lib').
9145 libext=a
9147 with_gnu_ld="$lt_cv_prog_gnu_ld"
9149 old_CC="$CC"
9150 old_CFLAGS="$CFLAGS"
9152 # Set sane defaults for various variables
9153 test -z "$CC" && CC=cc
9154 test -z "$LTCC" && LTCC=$CC
9155 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9156 test -z "$LD" && LD=ld
9157 test -z "$ac_objext" && ac_objext=o
9159 for cc_temp in $compiler""; do
9160 case $cc_temp in
9161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9163 \-*) ;;
9164 *) break;;
9165 esac
9166 done
9167 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9170 # Only perform the check for file, if the check method requires it
9171 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9172 case $deplibs_check_method in
9173 file_magic*)
9174 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9176 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9177 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 case $MAGIC_CMD in
9181 [\\/*] | ?:[\\/]*)
9182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9185 lt_save_MAGIC_CMD="$MAGIC_CMD"
9186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9188 for ac_dir in $ac_dummy; do
9189 IFS="$lt_save_ifs"
9190 test -z "$ac_dir" && ac_dir=.
9191 if test -f $ac_dir/${ac_tool_prefix}file; then
9192 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9193 if test -n "$file_magic_test_file"; then
9194 case $deplibs_check_method in
9195 "file_magic "*)
9196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9199 $EGREP "$file_magic_regex" > /dev/null; then
9201 else
9202 cat <<_LT_EOF 1>&2
9204 *** Warning: the command libtool uses to detect shared libraries,
9205 *** $file_magic_cmd, produces output that libtool cannot recognize.
9206 *** The result is that libtool may fail to recognize shared libraries
9207 *** as such. This will affect the creation of libtool libraries that
9208 *** depend on shared libraries, but programs linked with such libtool
9209 *** libraries will work regardless of this problem. Nevertheless, you
9210 *** may want to report the problem to your system manager and/or to
9211 *** bug-libtool@gnu.org
9213 _LT_EOF
9214 fi ;;
9215 esac
9217 break
9219 done
9220 IFS="$lt_save_ifs"
9221 MAGIC_CMD="$lt_save_MAGIC_CMD"
9223 esac
9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227 if test -n "$MAGIC_CMD"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9229 $as_echo "$MAGIC_CMD" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9239 if test -z "$lt_cv_path_MAGIC_CMD"; then
9240 if test -n "$ac_tool_prefix"; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9242 $as_echo_n "checking for file... " >&6; }
9243 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 case $MAGIC_CMD in
9247 [\\/*] | ?:[\\/]*)
9248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9251 lt_save_MAGIC_CMD="$MAGIC_CMD"
9252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9254 for ac_dir in $ac_dummy; do
9255 IFS="$lt_save_ifs"
9256 test -z "$ac_dir" && ac_dir=.
9257 if test -f $ac_dir/file; then
9258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9259 if test -n "$file_magic_test_file"; then
9260 case $deplibs_check_method in
9261 "file_magic "*)
9262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9265 $EGREP "$file_magic_regex" > /dev/null; then
9267 else
9268 cat <<_LT_EOF 1>&2
9270 *** Warning: the command libtool uses to detect shared libraries,
9271 *** $file_magic_cmd, produces output that libtool cannot recognize.
9272 *** The result is that libtool may fail to recognize shared libraries
9273 *** as such. This will affect the creation of libtool libraries that
9274 *** depend on shared libraries, but programs linked with such libtool
9275 *** libraries will work regardless of this problem. Nevertheless, you
9276 *** may want to report the problem to your system manager and/or to
9277 *** bug-libtool@gnu.org
9279 _LT_EOF
9280 fi ;;
9281 esac
9283 break
9285 done
9286 IFS="$lt_save_ifs"
9287 MAGIC_CMD="$lt_save_MAGIC_CMD"
9289 esac
9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293 if test -n "$MAGIC_CMD"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9295 $as_echo "$MAGIC_CMD" >&6; }
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9302 else
9303 MAGIC_CMD=:
9309 esac
9311 # Use C for the default configuration in the libtool script
9313 lt_save_CC="$CC"
9314 ac_ext=c
9315 ac_cpp='$CPP $CPPFLAGS'
9316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321 # Source file extension for C test sources.
9322 ac_ext=c
9324 # Object file extension for compiled C test sources.
9325 objext=o
9326 objext=$objext
9328 # Code to be used in simple compile tests
9329 lt_simple_compile_test_code="int some_variable = 0;"
9331 # Code to be used in simple link tests
9332 lt_simple_link_test_code='int main(){return(0);}'
9340 # If no C compiler was specified, use CC.
9341 LTCC=${LTCC-"$CC"}
9343 # If no C compiler flags were specified, use CFLAGS.
9344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9346 # Allow CC to be a program name with arguments.
9347 compiler=$CC
9349 # Save the default compiler, since it gets overwritten when the other
9350 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9351 compiler_DEFAULT=$CC
9353 # save warnings/boilerplate of simple test code
9354 ac_outfile=conftest.$ac_objext
9355 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9356 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9357 _lt_compiler_boilerplate=`cat conftest.err`
9358 $RM conftest*
9360 ac_outfile=conftest.$ac_objext
9361 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9362 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9363 _lt_linker_boilerplate=`cat conftest.err`
9364 $RM -r conftest*
9367 ## CAVEAT EMPTOR:
9368 ## There is no encapsulation within the following macros, do not change
9369 ## the running order or otherwise move them around unless you know exactly
9370 ## what you are doing...
9371 if test -n "$compiler"; then
9373 lt_prog_compiler_no_builtin_flag=
9375 if test "$GCC" = yes; then
9376 case $cc_basename in
9377 nvcc*)
9378 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9380 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9381 esac
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9384 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9385 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 lt_cv_prog_compiler_rtti_exceptions=no
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9391 lt_compiler_flag="-fno-rtti -fno-exceptions"
9392 # Insert the option either (1) after the last *FLAGS variable, or
9393 # (2) before a word containing "conftest.", or (3) at the end.
9394 # Note that $ac_compile itself does not contain backslashes and begins
9395 # with a dollar sign (not a hyphen), so the echo should work correctly.
9396 # The option is referenced via a variable to avoid confusing sed.
9397 lt_compile=`echo "$ac_compile" | $SED \
9398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9400 -e 's:$: $lt_compiler_flag:'`
9401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9402 (eval "$lt_compile" 2>conftest.err)
9403 ac_status=$?
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 if (exit $ac_status) && test -s "$ac_outfile"; then
9407 # The compiler can only warn and ignore the option if not recognized
9408 # So say no if there are warnings other than the usual output.
9409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9412 lt_cv_prog_compiler_rtti_exceptions=yes
9415 $RM conftest*
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9419 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9421 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9422 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9423 else
9434 lt_prog_compiler_wl=
9435 lt_prog_compiler_pic=
9436 lt_prog_compiler_static=
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9439 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9441 if test "$GCC" = yes; then
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_static='-static'
9445 case $host_os in
9446 aix*)
9447 # All AIX code is PIC.
9448 if test "$host_cpu" = ia64; then
9449 # AIX 5 now supports IA64 processor
9450 lt_prog_compiler_static='-Bstatic'
9452 lt_prog_compiler_pic='-fPIC'
9455 amigaos*)
9456 case $host_cpu in
9457 powerpc)
9458 # see comment about AmigaOS4 .so support
9459 lt_prog_compiler_pic='-fPIC'
9461 m68k)
9462 # FIXME: we need at least 68020 code to build shared libraries, but
9463 # adding the `-m68020' flag to GCC prevents building anything better,
9464 # like `-m68040'.
9465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9467 esac
9470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9471 # PIC is the default for these OSes.
9474 mingw* | cygwin* | pw32* | os2* | cegcc*)
9475 # This hack is so that the source file can tell whether it is being
9476 # built for inclusion in a dll (and should export symbols for example).
9477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9478 # (--disable-auto-import) libraries
9479 lt_prog_compiler_pic='-DDLL_EXPORT'
9482 darwin* | rhapsody*)
9483 # PIC is the default on this platform
9484 # Common symbols not allowed in MH_DYLIB files
9485 lt_prog_compiler_pic='-fno-common'
9488 haiku*)
9489 # PIC is the default for Haiku.
9490 # The "-static" flag exists, but is broken.
9491 lt_prog_compiler_static=
9494 hpux*)
9495 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9496 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9497 # sets the default TLS model and affects inlining.
9498 case $host_cpu in
9499 hppa*64*)
9500 # +Z the default
9503 lt_prog_compiler_pic='-fPIC'
9505 esac
9508 interix[3-9]*)
9509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9510 # Instead, we relocate shared libraries at runtime.
9513 msdosdjgpp*)
9514 # Just because we use GCC doesn't mean we suddenly get shared libraries
9515 # on systems that don't support them.
9516 lt_prog_compiler_can_build_shared=no
9517 enable_shared=no
9520 *nto* | *qnx*)
9521 # QNX uses GNU C++, but need to define -shared option too, otherwise
9522 # it will coredump.
9523 lt_prog_compiler_pic='-fPIC -shared'
9526 sysv4*MP*)
9527 if test -d /usr/nec; then
9528 lt_prog_compiler_pic=-Kconform_pic
9533 lt_prog_compiler_pic='-fPIC'
9535 esac
9537 case $cc_basename in
9538 nvcc*) # Cuda Compiler Driver 2.2
9539 lt_prog_compiler_wl='-Xlinker '
9540 lt_prog_compiler_pic='-Xcompiler -fPIC'
9542 esac
9543 else
9544 # PORTME Check for flag to pass linker flags through the system compiler.
9545 case $host_os in
9546 aix*)
9547 lt_prog_compiler_wl='-Wl,'
9548 if test "$host_cpu" = ia64; then
9549 # AIX 5 now supports IA64 processor
9550 lt_prog_compiler_static='-Bstatic'
9551 else
9552 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9556 mingw* | cygwin* | pw32* | os2* | cegcc*)
9557 # This hack is so that the source file can tell whether it is being
9558 # built for inclusion in a dll (and should export symbols for example).
9559 lt_prog_compiler_pic='-DDLL_EXPORT'
9562 hpux9* | hpux10* | hpux11*)
9563 lt_prog_compiler_wl='-Wl,'
9564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9565 # not for PA HP-UX.
9566 case $host_cpu in
9567 hppa*64*|ia64*)
9568 # +Z the default
9571 lt_prog_compiler_pic='+Z'
9573 esac
9574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9575 lt_prog_compiler_static='${wl}-a ${wl}archive'
9578 irix5* | irix6* | nonstopux*)
9579 lt_prog_compiler_wl='-Wl,'
9580 # PIC (with -KPIC) is the default.
9581 lt_prog_compiler_static='-non_shared'
9584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9585 case $cc_basename in
9586 # old Intel for x86_64 which still supported -KPIC.
9587 ecc*)
9588 lt_prog_compiler_wl='-Wl,'
9589 lt_prog_compiler_pic='-KPIC'
9590 lt_prog_compiler_static='-static'
9592 # icc used to be incompatible with GCC.
9593 # ICC 10 doesn't accept -KPIC any more.
9594 icc* | ifort*)
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-fPIC'
9597 lt_prog_compiler_static='-static'
9599 # Lahey Fortran 8.1.
9600 lf95*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='--shared'
9603 lt_prog_compiler_static='--static'
9605 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9606 # Portland Group compilers (*not* the Pentium gcc compiler,
9607 # which looks to be a dead project)
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-fpic'
9610 lt_prog_compiler_static='-Bstatic'
9612 ccc*)
9613 lt_prog_compiler_wl='-Wl,'
9614 # All Alpha code is PIC.
9615 lt_prog_compiler_static='-non_shared'
9617 xl* | bgxl* | bgf* | mpixl*)
9618 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-qpic'
9621 lt_prog_compiler_static='-qstaticlink'
9624 case `$CC -V 2>&1 | sed 5q` in
9625 *Sun\ F* | *Sun*Fortran*)
9626 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 lt_prog_compiler_wl=''
9631 *Sun\ C*)
9632 # Sun C 5.9
9633 lt_prog_compiler_pic='-KPIC'
9634 lt_prog_compiler_static='-Bstatic'
9635 lt_prog_compiler_wl='-Wl,'
9637 esac
9639 esac
9642 newsos6)
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9647 *nto* | *qnx*)
9648 # QNX uses GNU C++, but need to define -shared option too, otherwise
9649 # it will coredump.
9650 lt_prog_compiler_pic='-fPIC -shared'
9653 osf3* | osf4* | osf5*)
9654 lt_prog_compiler_wl='-Wl,'
9655 # All OSF/1 code is PIC.
9656 lt_prog_compiler_static='-non_shared'
9659 rdos*)
9660 lt_prog_compiler_static='-non_shared'
9663 solaris*)
9664 lt_prog_compiler_pic='-KPIC'
9665 lt_prog_compiler_static='-Bstatic'
9666 case $cc_basename in
9667 f77* | f90* | f95*)
9668 lt_prog_compiler_wl='-Qoption ld ';;
9670 lt_prog_compiler_wl='-Wl,';;
9671 esac
9674 sunos4*)
9675 lt_prog_compiler_wl='-Qoption ld '
9676 lt_prog_compiler_pic='-PIC'
9677 lt_prog_compiler_static='-Bstatic'
9680 sysv4 | sysv4.2uw2* | sysv4.3*)
9681 lt_prog_compiler_wl='-Wl,'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-Bstatic'
9686 sysv4*MP*)
9687 if test -d /usr/nec ;then
9688 lt_prog_compiler_pic='-Kconform_pic'
9689 lt_prog_compiler_static='-Bstatic'
9693 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-KPIC'
9696 lt_prog_compiler_static='-Bstatic'
9699 unicos*)
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_can_build_shared=no
9704 uts4*)
9705 lt_prog_compiler_pic='-pic'
9706 lt_prog_compiler_static='-Bstatic'
9710 lt_prog_compiler_can_build_shared=no
9712 esac
9715 case $host_os in
9716 # For platforms which do not support PIC, -DPIC is meaningless:
9717 *djgpp*)
9718 lt_prog_compiler_pic=
9721 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9723 esac
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9725 $as_echo "$lt_prog_compiler_pic" >&6; }
9733 # Check to make sure the PIC flag actually works.
9735 if test -n "$lt_prog_compiler_pic"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9738 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 lt_cv_prog_compiler_pic_works=no
9742 ac_outfile=conftest.$ac_objext
9743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9745 # Insert the option either (1) after the last *FLAGS variable, or
9746 # (2) before a word containing "conftest.", or (3) at the end.
9747 # Note that $ac_compile itself does not contain backslashes and begins
9748 # with a dollar sign (not a hyphen), so the echo should work correctly.
9749 # The option is referenced via a variable to avoid confusing sed.
9750 lt_compile=`echo "$ac_compile" | $SED \
9751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753 -e 's:$: $lt_compiler_flag:'`
9754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9755 (eval "$lt_compile" 2>conftest.err)
9756 ac_status=$?
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 if (exit $ac_status) && test -s "$ac_outfile"; then
9760 # The compiler can only warn and ignore the option if not recognized
9761 # So say no if there are warnings other than the usual output.
9762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9765 lt_cv_prog_compiler_pic_works=yes
9768 $RM conftest*
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9774 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9775 case $lt_prog_compiler_pic in
9776 "" | " "*) ;;
9777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9778 esac
9779 else
9780 lt_prog_compiler_pic=
9781 lt_prog_compiler_can_build_shared=no
9792 # Check to make sure the static flag actually works.
9794 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9797 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 lt_cv_prog_compiler_static_works=no
9801 save_LDFLAGS="$LDFLAGS"
9802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9805 # The linker can only warn and ignore the option if not recognized
9806 # So say no if there are warnings
9807 if test -s conftest.err; then
9808 # Append any errors to the config.log.
9809 cat conftest.err 1>&5
9810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812 if diff conftest.exp conftest.er2 >/dev/null; then
9813 lt_cv_prog_compiler_static_works=yes
9815 else
9816 lt_cv_prog_compiler_static_works=yes
9819 $RM -r conftest*
9820 LDFLAGS="$save_LDFLAGS"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9824 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9826 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9828 else
9829 lt_prog_compiler_static=
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9840 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 lt_cv_prog_compiler_c_o=no
9844 $RM -r conftest 2>/dev/null
9845 mkdir conftest
9846 cd conftest
9847 mkdir out
9848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850 lt_compiler_flag="-o out/conftest2.$ac_objext"
9851 # Insert the option either (1) after the last *FLAGS variable, or
9852 # (2) before a word containing "conftest.", or (3) at the end.
9853 # Note that $ac_compile itself does not contain backslashes and begins
9854 # with a dollar sign (not a hyphen), so the echo should work correctly.
9855 lt_compile=`echo "$ac_compile" | $SED \
9856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9858 -e 's:$: $lt_compiler_flag:'`
9859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9860 (eval "$lt_compile" 2>out/conftest.err)
9861 ac_status=$?
9862 cat out/conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9865 then
9866 # The compiler can only warn and ignore the option if not recognized
9867 # So say no if there are warnings
9868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9871 lt_cv_prog_compiler_c_o=yes
9874 chmod u+w . 2>&5
9875 $RM conftest*
9876 # SGI C++ compiler will create directory out/ii_files/ for
9877 # template instantiation
9878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9879 $RM out/* && rmdir out
9880 cd ..
9881 $RM -r conftest
9882 $RM conftest*
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9895 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 lt_cv_prog_compiler_c_o=no
9899 $RM -r conftest 2>/dev/null
9900 mkdir conftest
9901 cd conftest
9902 mkdir out
9903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9905 lt_compiler_flag="-o out/conftest2.$ac_objext"
9906 # Insert the option either (1) after the last *FLAGS variable, or
9907 # (2) before a word containing "conftest.", or (3) at the end.
9908 # Note that $ac_compile itself does not contain backslashes and begins
9909 # with a dollar sign (not a hyphen), so the echo should work correctly.
9910 lt_compile=`echo "$ac_compile" | $SED \
9911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9913 -e 's:$: $lt_compiler_flag:'`
9914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9915 (eval "$lt_compile" 2>out/conftest.err)
9916 ac_status=$?
9917 cat out/conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9920 then
9921 # The compiler can only warn and ignore the option if not recognized
9922 # So say no if there are warnings
9923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9926 lt_cv_prog_compiler_c_o=yes
9929 chmod u+w . 2>&5
9930 $RM conftest*
9931 # SGI C++ compiler will create directory out/ii_files/ for
9932 # template instantiation
9933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9934 $RM out/* && rmdir out
9935 cd ..
9936 $RM -r conftest
9937 $RM conftest*
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9946 hard_links="nottested"
9947 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9948 # do not overwrite the value of need_locks provided by the user
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9950 $as_echo_n "checking if we can lock with hard links... " >&6; }
9951 hard_links=yes
9952 $RM conftest*
9953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9954 touch conftest.a
9955 ln conftest.a conftest.b 2>&5 || hard_links=no
9956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9958 $as_echo "$hard_links" >&6; }
9959 if test "$hard_links" = no; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9962 need_locks=warn
9964 else
9965 need_locks=no
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9974 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9976 runpath_var=
9977 allow_undefined_flag=
9978 always_export_symbols=no
9979 archive_cmds=
9980 archive_expsym_cmds=
9981 compiler_needs_object=no
9982 enable_shared_with_static_runtimes=no
9983 export_dynamic_flag_spec=
9984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9985 hardcode_automatic=no
9986 hardcode_direct=no
9987 hardcode_direct_absolute=no
9988 hardcode_libdir_flag_spec=
9989 hardcode_libdir_flag_spec_ld=
9990 hardcode_libdir_separator=
9991 hardcode_minus_L=no
9992 hardcode_shlibpath_var=unsupported
9993 inherit_rpath=no
9994 link_all_deplibs=unknown
9995 module_cmds=
9996 module_expsym_cmds=
9997 old_archive_from_new_cmds=
9998 old_archive_from_expsyms_cmds=
9999 thread_safe_flag_spec=
10000 whole_archive_flag_spec=
10001 # include_expsyms should be a list of space-separated symbols to be *always*
10002 # included in the symbol list
10003 include_expsyms=
10004 # exclude_expsyms can be an extended regexp of symbols to exclude
10005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10007 # as well as any symbol that contains `d'.
10008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10010 # platforms (ab)use it in PIC code, but their linkers get confused if
10011 # the symbol is explicitly referenced. Since portable code cannot
10012 # rely on this symbol name, it's probably fine to never include it in
10013 # preloaded symbol tables.
10014 # Exclude shared library initialization/finalization symbols.
10015 extract_expsyms_cmds=
10017 case $host_os in
10018 cygwin* | mingw* | pw32* | cegcc*)
10019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10020 # When not using gcc, we currently assume that we are using
10021 # Microsoft Visual C++.
10022 if test "$GCC" != yes; then
10023 with_gnu_ld=no
10026 interix*)
10027 # we just hope/assume this is gcc and not c89 (= MSVC++)
10028 with_gnu_ld=yes
10030 openbsd*)
10031 with_gnu_ld=no
10033 esac
10035 ld_shlibs=yes
10037 # On some targets, GNU ld is compatible enough with the native linker
10038 # that we're better off using the native interface for both.
10039 lt_use_gnu_ld_interface=no
10040 if test "$with_gnu_ld" = yes; then
10041 case $host_os in
10042 aix*)
10043 # The AIX port of GNU ld has always aspired to compatibility
10044 # with the native linker. However, as the warning in the GNU ld
10045 # block says, versions before 2.19.5* couldn't really create working
10046 # shared libraries, regardless of the interface used.
10047 case `$LD -v 2>&1` in
10048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10052 lt_use_gnu_ld_interface=yes
10054 esac
10057 lt_use_gnu_ld_interface=yes
10059 esac
10062 if test "$lt_use_gnu_ld_interface" = yes; then
10063 # If archive_cmds runs LD, not CC, wlarc should be empty
10064 wlarc='${wl}'
10066 # Set some defaults for GNU ld with shared library support. These
10067 # are reset later if shared libraries are not supported. Putting them
10068 # here allows them to be overridden if necessary.
10069 runpath_var=LD_RUN_PATH
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 export_dynamic_flag_spec='${wl}--export-dynamic'
10072 # ancient GNU ld didn't support --whole-archive et. al.
10073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10074 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10075 else
10076 whole_archive_flag_spec=
10078 supports_anon_versioning=no
10079 case `$LD -v 2>&1` in
10080 *GNU\ gold*) supports_anon_versioning=yes ;;
10081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10084 *\ 2.11.*) ;; # other 2.11 versions
10085 *) supports_anon_versioning=yes ;;
10086 esac
10088 # See if GNU ld supports shared libraries.
10089 case $host_os in
10090 aix[3-9]*)
10091 # On AIX/PPC, the GNU linker is very broken
10092 if test "$host_cpu" != ia64; then
10093 ld_shlibs=no
10094 cat <<_LT_EOF 1>&2
10096 *** Warning: the GNU linker, at least up to release 2.19, is reported
10097 *** to be unable to reliably create shared libraries on AIX.
10098 *** Therefore, libtool is disabling shared libraries support. If you
10099 *** really care for shared libraries, you may want to install binutils
10100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10101 *** You will then need to restart the configuration process.
10103 _LT_EOF
10107 amigaos*)
10108 case $host_cpu in
10109 powerpc)
10110 # see comment about AmigaOS4 .so support
10111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 archive_expsym_cmds=''
10114 m68k)
10115 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)'
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_minus_L=yes
10119 esac
10122 beos*)
10123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124 allow_undefined_flag=unsupported
10125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10126 # support --undefined. This deserves some investigation. FIXME
10127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 else
10129 ld_shlibs=no
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10135 # as there is no search path for DLLs.
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 export_dynamic_flag_spec='${wl}--export-all-symbols'
10138 allow_undefined_flag=unsupported
10139 always_export_symbols=no
10140 enable_shared_with_static_runtimes=yes
10141 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10145 # If the export-symbols file already is a .def file (1st line
10146 # is EXPORTS), use it as is; otherwise, prepend...
10147 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10148 cp $export_symbols $output_objdir/$soname.def;
10149 else
10150 echo EXPORTS > $output_objdir/$soname.def;
10151 cat $export_symbols >> $output_objdir/$soname.def;
10153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 else
10155 ld_shlibs=no
10159 haiku*)
10160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10161 link_all_deplibs=yes
10164 interix[3-9]*)
10165 hardcode_direct=no
10166 hardcode_shlibpath_var=no
10167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10168 export_dynamic_flag_spec='${wl}-E'
10169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10170 # Instead, shared libraries are loaded at an image base (0x10000000 by
10171 # default) and relocated if they conflict, which is a slow very memory
10172 # consuming and fragmenting process. To avoid this, we pick a random,
10173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10176 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'
10179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10180 tmp_diet=no
10181 if test "$host_os" = linux-dietlibc; then
10182 case $cc_basename in
10183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10184 esac
10186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10187 && test "$tmp_diet" = no
10188 then
10189 tmp_addflag=' $pic_flag'
10190 tmp_sharedflag='-shared'
10191 case $cc_basename,$host_cpu in
10192 pgcc*) # Portland Group C compiler
10193 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'
10194 tmp_addflag=' $pic_flag'
10196 pgf77* | pgf90* | pgf95* | pgfortran*)
10197 # Portland Group f77 and f90 compilers
10198 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'
10199 tmp_addflag=' $pic_flag -Mnomain' ;;
10200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10201 tmp_addflag=' -i_dynamic' ;;
10202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10203 tmp_addflag=' -i_dynamic -nofor_main' ;;
10204 ifc* | ifort*) # Intel Fortran compiler
10205 tmp_addflag=' -nofor_main' ;;
10206 lf95*) # Lahey Fortran 8.1
10207 whole_archive_flag_spec=
10208 tmp_sharedflag='--shared' ;;
10209 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10210 tmp_sharedflag='-qmkshrobj'
10211 tmp_addflag= ;;
10212 nvcc*) # Cuda Compiler Driver 2.2
10213 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'
10214 compiler_needs_object=yes
10216 esac
10217 case `$CC -V 2>&1 | sed 5q` in
10218 *Sun\ C*) # Sun C 5.9
10219 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'
10220 compiler_needs_object=yes
10221 tmp_sharedflag='-G' ;;
10222 *Sun\ F*) # Sun Fortran 8.3
10223 tmp_sharedflag='-G' ;;
10224 esac
10225 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227 if test "x$supports_anon_versioning" = xyes; then
10228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10230 echo "local: *; };" >> $output_objdir/$libname.ver~
10231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10234 case $cc_basename in
10235 xlf* | bgf* | bgxlf* | mpixlf*)
10236 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10237 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10238 hardcode_libdir_flag_spec=
10239 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10240 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10241 if test "x$supports_anon_versioning" = xyes; then
10242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10244 echo "local: *; };" >> $output_objdir/$libname.ver~
10245 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10248 esac
10249 else
10250 ld_shlibs=no
10254 netbsd*)
10255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10256 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10257 wlarc=
10258 else
10259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10264 solaris*)
10265 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10266 ld_shlibs=no
10267 cat <<_LT_EOF 1>&2
10269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10270 *** create shared libraries on Solaris systems. Therefore, libtool
10271 *** is disabling shared libraries support. We urge you to upgrade GNU
10272 *** binutils to release 2.9.1 or newer. Another option is to modify
10273 *** your PATH or compiler configuration so that the native linker is
10274 *** used, and then restart.
10276 _LT_EOF
10277 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10280 else
10281 ld_shlibs=no
10285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10286 case `$LD -v 2>&1` in
10287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10288 ld_shlibs=no
10289 cat <<_LT_EOF 1>&2
10291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10292 *** reliably create shared libraries on SCO systems. Therefore, libtool
10293 *** is disabling shared libraries support. We urge you to upgrade GNU
10294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10295 *** your PATH or compiler configuration so that the native linker is
10296 *** used, and then restart.
10298 _LT_EOF
10301 # For security reasons, it is highly recommended that you always
10302 # use absolute paths for naming shared libraries, and exclude the
10303 # DT_RUNPATH tag from executables and libraries. But doing so
10304 # requires that you compile everything twice, which is a pain.
10305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10309 else
10310 ld_shlibs=no
10313 esac
10316 sunos4*)
10317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10318 wlarc=
10319 hardcode_direct=yes
10320 hardcode_shlibpath_var=no
10324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10327 else
10328 ld_shlibs=no
10331 esac
10333 if test "$ld_shlibs" = no; then
10334 runpath_var=
10335 hardcode_libdir_flag_spec=
10336 export_dynamic_flag_spec=
10337 whole_archive_flag_spec=
10339 else
10340 # PORTME fill in a description of your system's linker (not GNU ld)
10341 case $host_os in
10342 aix3*)
10343 allow_undefined_flag=unsupported
10344 always_export_symbols=yes
10345 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'
10346 # Note: this linker hardcodes the directories in LIBPATH if there
10347 # are no directories specified by -L.
10348 hardcode_minus_L=yes
10349 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10350 # Neither direct hardcoding nor static linking is supported with a
10351 # broken collect2.
10352 hardcode_direct=unsupported
10356 aix[4-9]*)
10357 if test "$host_cpu" = ia64; then
10358 # On IA64, the linker does run time linking by default, so we don't
10359 # have to do anything special.
10360 aix_use_runtimelinking=no
10361 exp_sym_flag='-Bexport'
10362 no_entry_flag=""
10363 else
10364 # If we're using GNU nm, then we don't want the "-C" option.
10365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10366 # Also, AIX nm treats weak defined symbols like other global
10367 # defined symbols, whereas GNU nm marks them as "W".
10368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10369 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'
10370 else
10371 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'
10373 aix_use_runtimelinking=no
10375 # Test if we are trying to use run time linking or normal
10376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10377 # need to do runtime linking.
10378 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10379 for ld_flag in $LDFLAGS; do
10380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10381 aix_use_runtimelinking=yes
10382 break
10384 done
10386 esac
10388 exp_sym_flag='-bexport'
10389 no_entry_flag='-bnoentry'
10392 # When large executables or shared objects are built, AIX ld can
10393 # have problems creating the table of contents. If linking a library
10394 # or program results in "error TOC overflow" add -mminimal-toc to
10395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10398 archive_cmds=''
10399 hardcode_direct=yes
10400 hardcode_direct_absolute=yes
10401 hardcode_libdir_separator=':'
10402 link_all_deplibs=yes
10403 file_list_spec='${wl}-f,'
10405 if test "$GCC" = yes; then
10406 case $host_os in aix4.[012]|aix4.[012].*)
10407 # We only want to do this on AIX 4.2 and lower, the check
10408 # below for broken collect2 doesn't work under 4.3+
10409 collect2name=`${CC} -print-prog-name=collect2`
10410 if test -f "$collect2name" &&
10411 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10412 then
10413 # We have reworked collect2
10415 else
10416 # We have old collect2
10417 hardcode_direct=unsupported
10418 # It fails to find uninstalled libraries when the uninstalled
10419 # path is not listed in the libpath. Setting hardcode_minus_L
10420 # to unsupported forces relinking
10421 hardcode_minus_L=yes
10422 hardcode_libdir_flag_spec='-L$libdir'
10423 hardcode_libdir_separator=
10426 esac
10427 shared_flag='-shared'
10428 if test "$aix_use_runtimelinking" = yes; then
10429 shared_flag="$shared_flag "'${wl}-G'
10431 else
10432 # not using gcc
10433 if test "$host_cpu" = ia64; then
10434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10435 # chokes on -Wl,-G. The following line is correct:
10436 shared_flag='-G'
10437 else
10438 if test "$aix_use_runtimelinking" = yes; then
10439 shared_flag='${wl}-G'
10440 else
10441 shared_flag='${wl}-bM:SRE'
10446 export_dynamic_flag_spec='${wl}-bexpall'
10447 # It seems that -bexpall does not export symbols beginning with
10448 # underscore (_), so it is better to generate a list of symbols to export.
10449 always_export_symbols=yes
10450 if test "$aix_use_runtimelinking" = yes; then
10451 # Warning - without using the other runtime loading flags (-brtl),
10452 # -berok will link without error, but may produce a broken library.
10453 allow_undefined_flag='-berok'
10454 # Determine the default libpath from the value encoded in an
10455 # empty executable.
10456 if test x$gcc_no_link = xyes; then
10457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10463 main ()
10467 return 0;
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10472 lt_aix_libpath_sed='
10473 /Import File Strings/,/^$/ {
10474 /^0/ {
10475 s/^0 *\(.*\)$/\1/
10479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10480 # Check for a 64-bit object if we didn't find anything.
10481 if test -z "$aix_libpath"; then
10482 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10490 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"
10491 else
10492 if test "$host_cpu" = ia64; then
10493 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10494 allow_undefined_flag="-z nodefs"
10495 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"
10496 else
10497 # Determine the default libpath from the value encoded in an
10498 # empty executable.
10499 if test x$gcc_no_link = xyes; then
10500 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10506 main ()
10510 return 0;
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10515 lt_aix_libpath_sed='
10516 /Import File Strings/,/^$/ {
10517 /^0/ {
10518 s/^0 *\(.*\)$/\1/
10522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10523 # Check for a 64-bit object if we didn't find anything.
10524 if test -z "$aix_libpath"; then
10525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10528 rm -f core conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10533 # Warning - without using the other run time loading flags,
10534 # -berok will link without error, but may produce a broken library.
10535 no_undefined_flag=' ${wl}-bernotok'
10536 allow_undefined_flag=' ${wl}-berok'
10537 if test "$with_gnu_ld" = yes; then
10538 # We only use this code for GNU lds that support --whole-archive.
10539 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10540 else
10541 # Exported symbols can be pulled into shared objects from archives
10542 whole_archive_flag_spec='$convenience'
10544 archive_cmds_need_lc=yes
10545 # This is similar to how AIX traditionally builds its shared libraries.
10546 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'
10551 amigaos*)
10552 case $host_cpu in
10553 powerpc)
10554 # see comment about AmigaOS4 .so support
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556 archive_expsym_cmds=''
10558 m68k)
10559 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)'
10560 hardcode_libdir_flag_spec='-L$libdir'
10561 hardcode_minus_L=yes
10563 esac
10566 bsdi[45]*)
10567 export_dynamic_flag_spec=-rdynamic
10570 cygwin* | mingw* | pw32* | cegcc*)
10571 # When not using gcc, we currently assume that we are using
10572 # Microsoft Visual C++.
10573 # hardcode_libdir_flag_spec is actually meaningless, as there is
10574 # no search path for DLLs.
10575 hardcode_libdir_flag_spec=' '
10576 allow_undefined_flag=unsupported
10577 # Tell ltmain to make .lib files, not .a files.
10578 libext=lib
10579 # Tell ltmain to make .dll files, not .so files.
10580 shrext_cmds=".dll"
10581 # FIXME: Setting linknames here is a bad hack.
10582 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10583 # The linker will automatically build a .lib file if we build a DLL.
10584 old_archive_from_new_cmds='true'
10585 # FIXME: Should let the user specify the lib program.
10586 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10587 fix_srcfile_path='`cygpath -w "$srcfile"`'
10588 enable_shared_with_static_runtimes=yes
10591 darwin* | rhapsody*)
10594 archive_cmds_need_lc=no
10595 hardcode_direct=no
10596 hardcode_automatic=yes
10597 hardcode_shlibpath_var=unsupported
10598 if test "$lt_cv_ld_force_load" = "yes"; then
10599 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\"`'
10600 else
10601 whole_archive_flag_spec=''
10603 link_all_deplibs=yes
10604 allow_undefined_flag="$_lt_dar_allow_undefined"
10605 case $cc_basename in
10606 ifort*) _lt_dar_can_shared=yes ;;
10607 *) _lt_dar_can_shared=$GCC ;;
10608 esac
10609 if test "$_lt_dar_can_shared" = "yes"; then
10610 output_verbose_link_cmd=func_echo_all
10611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10613 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}"
10614 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}"
10616 else
10617 ld_shlibs=no
10622 dgux*)
10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_shlibpath_var=no
10628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10629 # support. Future versions do this automatically, but an explicit c++rt0.o
10630 # does not break anything, and helps significantly (at the cost of a little
10631 # extra space).
10632 freebsd2.2*)
10633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10634 hardcode_libdir_flag_spec='-R$libdir'
10635 hardcode_direct=yes
10636 hardcode_shlibpath_var=no
10639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10640 freebsd2.*)
10641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_direct=yes
10643 hardcode_minus_L=yes
10644 hardcode_shlibpath_var=no
10647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10648 freebsd* | dragonfly*)
10649 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10650 hardcode_libdir_flag_spec='-R$libdir'
10651 hardcode_direct=yes
10652 hardcode_shlibpath_var=no
10655 hpux9*)
10656 if test "$GCC" = yes; then
10657 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'
10658 else
10659 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'
10661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10662 hardcode_libdir_separator=:
10663 hardcode_direct=yes
10665 # hardcode_minus_L: Not really in the search PATH,
10666 # but as the default location of the library.
10667 hardcode_minus_L=yes
10668 export_dynamic_flag_spec='${wl}-E'
10671 hpux10*)
10672 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10673 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 else
10675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677 if test "$with_gnu_ld" = no; then
10678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10679 hardcode_libdir_flag_spec_ld='+b $libdir'
10680 hardcode_libdir_separator=:
10681 hardcode_direct=yes
10682 hardcode_direct_absolute=yes
10683 export_dynamic_flag_spec='${wl}-E'
10684 # hardcode_minus_L: Not really in the search PATH,
10685 # but as the default location of the library.
10686 hardcode_minus_L=yes
10690 hpux11*)
10691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10692 case $host_cpu in
10693 hppa*64*)
10694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10696 ia64*)
10697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702 esac
10703 else
10704 case $host_cpu in
10705 hppa*64*)
10706 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 ia64*)
10709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713 # Older versions of the 11.00 compiler do not understand -b yet
10714 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10716 $as_echo_n "checking if $CC understands -b... " >&6; }
10717 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 lt_cv_prog_compiler__b=no
10721 save_LDFLAGS="$LDFLAGS"
10722 LDFLAGS="$LDFLAGS -b"
10723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10725 # The linker can only warn and ignore the option if not recognized
10726 # So say no if there are warnings
10727 if test -s conftest.err; then
10728 # Append any errors to the config.log.
10729 cat conftest.err 1>&5
10730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10732 if diff conftest.exp conftest.er2 >/dev/null; then
10733 lt_cv_prog_compiler__b=yes
10735 else
10736 lt_cv_prog_compiler__b=yes
10739 $RM -r conftest*
10740 LDFLAGS="$save_LDFLAGS"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10744 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10746 if test x"$lt_cv_prog_compiler__b" = xyes; then
10747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10748 else
10749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10753 esac
10755 if test "$with_gnu_ld" = no; then
10756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10757 hardcode_libdir_separator=:
10759 case $host_cpu in
10760 hppa*64*|ia64*)
10761 hardcode_direct=no
10762 hardcode_shlibpath_var=no
10765 hardcode_direct=yes
10766 hardcode_direct_absolute=yes
10767 export_dynamic_flag_spec='${wl}-E'
10769 # hardcode_minus_L: Not really in the search PATH,
10770 # but as the default location of the library.
10771 hardcode_minus_L=yes
10773 esac
10777 irix5* | irix6* | nonstopux*)
10778 if test "$GCC" = yes; then
10779 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'
10780 # Try to use the -exported_symbol ld option, if it does not
10781 # work, assume that -exports_file does not work either and
10782 # implicitly export all symbols.
10783 save_LDFLAGS="$LDFLAGS"
10784 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10785 if test x$gcc_no_link = xyes; then
10786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 int foo(void) {}
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 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'
10796 rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LDFLAGS="$save_LDFLAGS"
10799 else
10800 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'
10801 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'
10803 archive_cmds_need_lc='no'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 hardcode_libdir_separator=:
10806 inherit_rpath=yes
10807 link_all_deplibs=yes
10810 netbsd*)
10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10813 else
10814 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10816 hardcode_libdir_flag_spec='-R$libdir'
10817 hardcode_direct=yes
10818 hardcode_shlibpath_var=no
10821 newsos6)
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_direct=yes
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator=:
10826 hardcode_shlibpath_var=no
10829 *nto* | *qnx*)
10832 openbsd*)
10833 if test -f /usr/libexec/ld.so; then
10834 hardcode_direct=yes
10835 hardcode_shlibpath_var=no
10836 hardcode_direct_absolute=yes
10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841 export_dynamic_flag_spec='${wl}-E'
10842 else
10843 case $host_os in
10844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846 hardcode_libdir_flag_spec='-R$libdir'
10849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10852 esac
10854 else
10855 ld_shlibs=no
10859 os2*)
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_minus_L=yes
10862 allow_undefined_flag=unsupported
10863 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'
10864 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10867 osf3*)
10868 if test "$GCC" = yes; then
10869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870 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'
10871 else
10872 allow_undefined_flag=' -expect_unresolved \*'
10873 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'
10875 archive_cmds_need_lc='no'
10876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877 hardcode_libdir_separator=:
10880 osf4* | osf5*) # as osf3* with the addition of -msym flag
10881 if test "$GCC" = yes; then
10882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883 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'
10884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885 else
10886 allow_undefined_flag=' -expect_unresolved \*'
10887 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'
10888 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~
10889 $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'
10891 # Both c and cxx compiler support -rpath directly
10892 hardcode_libdir_flag_spec='-rpath $libdir'
10894 archive_cmds_need_lc='no'
10895 hardcode_libdir_separator=:
10898 solaris*)
10899 no_undefined_flag=' -z defs'
10900 if test "$GCC" = yes; then
10901 wlarc='${wl}'
10902 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905 else
10906 case `$CC -V 2>&1` in
10907 *"Compilers 5.0"*)
10908 wlarc=''
10909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10914 wlarc='${wl}'
10915 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10919 esac
10921 hardcode_libdir_flag_spec='-R$libdir'
10922 hardcode_shlibpath_var=no
10923 case $host_os in
10924 solaris2.[0-5] | solaris2.[0-5].*) ;;
10926 # The compiler driver will combine and reorder linker options,
10927 # but understands `-z linker_flag'. GCC discards it without `$wl',
10928 # but is careful enough not to reorder.
10929 # Supported since Solaris 2.6 (maybe 2.5.1?)
10930 if test "$GCC" = yes; then
10931 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10932 else
10933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10936 esac
10937 link_all_deplibs=yes
10940 sunos4*)
10941 if test "x$host_vendor" = xsequent; then
10942 # Use $CC to link under sequent, because it throws in some extra .o
10943 # files that make .init and .fini sections work.
10944 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945 else
10946 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10948 hardcode_libdir_flag_spec='-L$libdir'
10949 hardcode_direct=yes
10950 hardcode_minus_L=yes
10951 hardcode_shlibpath_var=no
10954 sysv4)
10955 case $host_vendor in
10956 sni)
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_direct=yes # is this really true???
10960 siemens)
10961 ## LD is ld it makes a PLAMLIB
10962 ## CC just makes a GrossModule.
10963 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964 reload_cmds='$CC -r -o $output$reload_objs'
10965 hardcode_direct=no
10967 motorola)
10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10971 esac
10972 runpath_var='LD_RUN_PATH'
10973 hardcode_shlibpath_var=no
10976 sysv4.3*)
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_shlibpath_var=no
10979 export_dynamic_flag_spec='-Bexport'
10982 sysv4*MP*)
10983 if test -d /usr/nec; then
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_shlibpath_var=no
10986 runpath_var=LD_RUN_PATH
10987 hardcode_runpath_var=yes
10988 ld_shlibs=yes
10992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993 no_undefined_flag='${wl}-z,text'
10994 archive_cmds_need_lc=no
10995 hardcode_shlibpath_var=no
10996 runpath_var='LD_RUN_PATH'
10998 if test "$GCC" = yes; then
10999 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 else
11002 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 sysv5* | sco3.2v5* | sco5v6*)
11008 # Note: We can NOT use -z defs as we might desire, because we do not
11009 # link with -lc, and that would cause any symbols used from libc to
11010 # always be unresolved, which means just about no library would
11011 # ever link correctly. If we're not using GNU ld we use -z text
11012 # though, which does catch some bad symbols but isn't as heavy-handed
11013 # as -z defs.
11014 no_undefined_flag='${wl}-z,text'
11015 allow_undefined_flag='${wl}-z,nodefs'
11016 archive_cmds_need_lc=no
11017 hardcode_shlibpath_var=no
11018 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019 hardcode_libdir_separator=':'
11020 link_all_deplibs=yes
11021 export_dynamic_flag_spec='${wl}-Bexport'
11022 runpath_var='LD_RUN_PATH'
11024 if test "$GCC" = yes; then
11025 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 else
11028 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 uts4*)
11034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035 hardcode_libdir_flag_spec='-L$libdir'
11036 hardcode_shlibpath_var=no
11040 ld_shlibs=no
11042 esac
11044 if test x$host_vendor = xsni; then
11045 case $host in
11046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047 export_dynamic_flag_spec='${wl}-Blargedynsym'
11049 esac
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11054 $as_echo "$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11057 with_gnu_ld=$with_gnu_ld
11074 # Do we need to explicitly link libc?
11076 case "x$archive_cmds_need_lc" in
11077 x|xyes)
11078 # Assume -lc should be added
11079 archive_cmds_need_lc=yes
11081 if test "$enable_shared" = yes && test "$GCC" = yes; then
11082 case $archive_cmds in
11083 *'~'*)
11084 # FIXME: we may have to deal with multi-command sequences.
11086 '$CC '*)
11087 # Test whether the compiler implicitly links with -lc since on some
11088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089 # to ld, don't add -lc before -lgcc.
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11091 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11092 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 $RM conftest*
11096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11099 (eval $ac_compile) 2>&5
11100 ac_status=$?
11101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102 test $ac_status = 0; } 2>conftest.err; then
11103 soname=conftest
11104 lib=conftest
11105 libobjs=conftest.$ac_objext
11106 deplibs=
11107 wl=$lt_prog_compiler_wl
11108 pic_flag=$lt_prog_compiler_pic
11109 compiler_flags=-v
11110 linker_flags=-v
11111 verstring=
11112 output_objdir=.
11113 libname=conftest
11114 lt_save_allow_undefined_flag=$allow_undefined_flag
11115 allow_undefined_flag=
11116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11118 ac_status=$?
11119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; }
11121 then
11122 lt_cv_archive_cmds_need_lc=no
11123 else
11124 lt_cv_archive_cmds_need_lc=yes
11126 allow_undefined_flag=$lt_save_allow_undefined_flag
11127 else
11128 cat conftest.err 1>&5
11130 $RM conftest*
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11134 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11135 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11137 esac
11140 esac
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11299 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11301 if test "$GCC" = yes; then
11302 case $host_os in
11303 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304 *) lt_awk_arg="/^libraries:/" ;;
11305 esac
11306 case $host_os in
11307 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11308 *) lt_sed_strip_eq="s,=/,/,g" ;;
11309 esac
11310 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11311 case $lt_search_path_spec in
11312 *\;*)
11313 # if the path contains ";" then we assume it to be the separator
11314 # otherwise default to the standard path separator (i.e. ":") - it is
11315 # assumed that no part of a normal pathname contains ";" but that should
11316 # okay in the real world where ";" in dirpaths is itself problematic.
11317 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11320 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11322 esac
11323 # Ok, now we have the path, separated by spaces, we can step through it
11324 # and add multilib dir if necessary.
11325 lt_tmp_lt_search_path_spec=
11326 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11327 for lt_sys_path in $lt_search_path_spec; do
11328 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11330 else
11331 test -d "$lt_sys_path" && \
11332 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11334 done
11335 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11336 BEGIN {RS=" "; FS="/|\n";} {
11337 lt_foo="";
11338 lt_count=0;
11339 for (lt_i = NF; lt_i > 0; lt_i--) {
11340 if ($lt_i != "" && $lt_i != ".") {
11341 if ($lt_i == "..") {
11342 lt_count++;
11343 } else {
11344 if (lt_count == 0) {
11345 lt_foo="/" $lt_i lt_foo;
11346 } else {
11347 lt_count--;
11352 if (lt_foo != "") { lt_freq[lt_foo]++; }
11353 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11355 # AWK program above erroneously prepends '/' to C:/dos/paths
11356 # for these hosts.
11357 case $host_os in
11358 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11359 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11360 esac
11361 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11362 else
11363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11365 library_names_spec=
11366 libname_spec='lib$name'
11367 soname_spec=
11368 shrext_cmds=".so"
11369 postinstall_cmds=
11370 postuninstall_cmds=
11371 finish_cmds=
11372 finish_eval=
11373 shlibpath_var=
11374 shlibpath_overrides_runpath=unknown
11375 version_type=none
11376 dynamic_linker="$host_os ld.so"
11377 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11378 need_lib_prefix=unknown
11379 hardcode_into_libs=no
11381 # when you set need_version to no, make sure it does not cause -set_version
11382 # flags to be left without arguments
11383 need_version=unknown
11385 case $host_os in
11386 aix3*)
11387 version_type=linux
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11389 shlibpath_var=LIBPATH
11391 # AIX 3 has no versioning support, so we append a major version to the name.
11392 soname_spec='${libname}${release}${shared_ext}$major'
11395 aix[4-9]*)
11396 version_type=linux
11397 need_lib_prefix=no
11398 need_version=no
11399 hardcode_into_libs=yes
11400 if test "$host_cpu" = ia64; then
11401 # AIX 5 supports IA64
11402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 else
11405 # With GCC up to 2.95.x, collect2 would create an import file
11406 # for dependence libraries. The import file would start with
11407 # the line `#! .'. This would cause the generated library to
11408 # depend on `.', always an invalid library. This was fixed in
11409 # development snapshots of GCC prior to 3.0.
11410 case $host_os in
11411 aix4 | aix4.[01] | aix4.[01].*)
11412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11413 echo ' yes '
11414 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11416 else
11417 can_build_shared=no
11420 esac
11421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11422 # soname into executable. Probably we can add versioning support to
11423 # collect2, so additional links can be useful in future.
11424 if test "$aix_use_runtimelinking" = yes; then
11425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11426 # instead of lib<name>.a to let people know that these are not
11427 # typical AIX shared libraries.
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 else
11430 # We preserve .a as extension for shared libraries through AIX4.2
11431 # and later when we are not doing run time linking.
11432 library_names_spec='${libname}${release}.a $libname.a'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LIBPATH
11439 amigaos*)
11440 case $host_cpu in
11441 powerpc)
11442 # Since July 2007 AmigaOS4 officially supports .so libraries.
11443 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 m68k)
11447 library_names_spec='$libname.ixlibrary $libname.a'
11448 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11449 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'
11451 esac
11454 beos*)
11455 library_names_spec='${libname}${shared_ext}'
11456 dynamic_linker="$host_os ld.so"
11457 shlibpath_var=LIBRARY_PATH
11460 bsdi[45]*)
11461 version_type=linux
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469 # the default ld.so.conf also contains /usr/contrib/lib and
11470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471 # libtool to hard-code these into programs
11474 cygwin* | mingw* | pw32* | cegcc*)
11475 version_type=windows
11476 shrext_cmds=".dll"
11477 need_version=no
11478 need_lib_prefix=no
11480 case $GCC,$host_os in
11481 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11482 library_names_spec='$libname.dll.a'
11483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484 postinstall_cmds='base_file=`basename \${file}`~
11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11486 dldir=$destdir/`dirname \$dlpath`~
11487 test -d \$dldir || mkdir -p \$dldir~
11488 $install_prog $dir/$dlname \$dldir/$dlname~
11489 chmod a+x \$dldir/$dlname~
11490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11494 dlpath=$dir/\$dldll~
11495 $RM \$dlpath'
11496 shlibpath_overrides_runpath=yes
11498 case $host_os in
11499 cygwin*)
11500 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11501 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11505 mingw* | cegcc*)
11506 # MinGW DLLs use traditional 'lib' prefix
11507 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509 pw32*)
11510 # pw32 DLLs use 'pw' prefix rather than 'lib'
11511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513 esac
11517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11519 esac
11520 dynamic_linker='Win32 ld.exe'
11521 # FIXME: first we should search . and the directory the executable is in
11522 shlibpath_var=PATH
11525 darwin* | rhapsody*)
11526 dynamic_linker="$host_os dyld"
11527 version_type=darwin
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11531 soname_spec='${libname}${release}${major}$shared_ext'
11532 shlibpath_overrides_runpath=yes
11533 shlibpath_var=DYLD_LIBRARY_PATH
11534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540 dgux*)
11541 version_type=linux
11542 need_lib_prefix=no
11543 need_version=no
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11549 freebsd* | dragonfly*)
11550 # DragonFly does not have aout. When/if they implement a new
11551 # versioning mechanism, adjust this.
11552 if test -x /usr/bin/objformat; then
11553 objformat=`/usr/bin/objformat`
11554 else
11555 case $host_os in
11556 freebsd[23].*) objformat=aout ;;
11557 *) objformat=elf ;;
11558 esac
11560 version_type=freebsd-$objformat
11561 case $version_type in
11562 freebsd-elf*)
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 need_version=no
11565 need_lib_prefix=no
11567 freebsd-*)
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569 need_version=yes
11571 esac
11572 shlibpath_var=LD_LIBRARY_PATH
11573 case $host_os in
11574 freebsd2.*)
11575 shlibpath_overrides_runpath=yes
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11586 *) # from 4.6 on, and DragonFly
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11590 esac
11593 gnu*)
11594 version_type=linux
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 hardcode_into_libs=yes
11603 haiku*)
11604 version_type=linux
11605 need_lib_prefix=no
11606 need_version=no
11607 dynamic_linker="$host_os runtime_loader"
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LIBRARY_PATH
11611 shlibpath_overrides_runpath=yes
11612 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11613 hardcode_into_libs=yes
11616 hpux9* | hpux10* | hpux11*)
11617 # Give a soname corresponding to the major version so that dld.sl refuses to
11618 # link against other versions.
11619 version_type=sunos
11620 need_lib_prefix=no
11621 need_version=no
11622 case $host_cpu in
11623 ia64*)
11624 shrext_cmds='.so'
11625 hardcode_into_libs=yes
11626 dynamic_linker="$host_os dld.so"
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 if test "X$HPUX_IA64_MODE" = X32; then
11632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11633 else
11634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 hppa*64*)
11639 shrext_cmds='.sl'
11640 hardcode_into_libs=yes
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11650 shrext_cmds='.sl'
11651 dynamic_linker="$host_os dld.sl"
11652 shlibpath_var=SHLIB_PATH
11653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11657 esac
11658 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11659 postinstall_cmds='chmod 555 $lib'
11660 # or fails outright, so override atomically:
11661 install_override_mode=555
11664 interix[3-9]*)
11665 version_type=linux
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11676 irix5* | irix6* | nonstopux*)
11677 case $host_os in
11678 nonstopux*) version_type=nonstopux ;;
11680 if test "$lt_cv_prog_gnu_ld" = yes; then
11681 version_type=linux
11682 else
11683 version_type=irix
11684 fi ;;
11685 esac
11686 need_lib_prefix=no
11687 need_version=no
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11690 case $host_os in
11691 irix5* | nonstopux*)
11692 libsuff= shlibsuff=
11695 case $LD in # libtool.m4 will add one of these switches to LD
11696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11697 libsuff= shlibsuff= libmagic=32-bit;;
11698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11699 libsuff=32 shlibsuff=N32 libmagic=N32;;
11700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11702 *) libsuff= shlibsuff= libmagic=never-match;;
11703 esac
11705 esac
11706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11707 shlibpath_overrides_runpath=no
11708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11710 hardcode_into_libs=yes
11713 # No shared lib support for Linux oldld, aout, or coff.
11714 linux*oldld* | linux*aout* | linux*coff*)
11715 dynamic_linker=no
11718 # This must be Linux ELF.
11719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11720 version_type=linux
11721 need_lib_prefix=no
11722 need_version=no
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 soname_spec='${libname}${release}${shared_ext}$major'
11725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=no
11729 # Some binutils ld are patched to set DT_RUNPATH
11730 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 lt_cv_shlibpath_overrides_runpath=no
11734 save_LDFLAGS=$LDFLAGS
11735 save_libdir=$libdir
11736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11738 if test x$gcc_no_link = xyes; then
11739 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11745 main ()
11749 return 0;
11751 _ACEOF
11752 if ac_fn_c_try_link "$LINENO"; then :
11753 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11754 lt_cv_shlibpath_overrides_runpath=yes
11757 rm -f core conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11759 LDFLAGS=$save_LDFLAGS
11760 libdir=$save_libdir
11764 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11766 # This implies no fast_install, which is unacceptable.
11767 # Some rework will be needed to allow for fast_install
11768 # before this can be enabled.
11769 hardcode_into_libs=yes
11771 # Append ld.so.conf contents to the search path
11772 if test -f /etc/ld.so.conf; then
11773 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' ' '`
11774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11777 # We used to test for /lib/ld.so.1 and disable shared libraries on
11778 # powerpc, because MkLinux only supported shared libraries with the
11779 # GNU dynamic linker. Since this was broken with cross compilers,
11780 # most powerpc-linux boxes support dynamic linking these days and
11781 # people can always --disable-shared, the test was removed, and we
11782 # assume the GNU/Linux dynamic linker is in use.
11783 dynamic_linker='GNU/Linux ld.so'
11786 netbsd*)
11787 version_type=sunos
11788 need_lib_prefix=no
11789 need_version=no
11790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793 dynamic_linker='NetBSD (a.out) ld.so'
11794 else
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 dynamic_linker='NetBSD ld.elf_so'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801 hardcode_into_libs=yes
11804 newsos6)
11805 version_type=linux
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=yes
11811 *nto* | *qnx*)
11812 version_type=qnx
11813 need_lib_prefix=no
11814 need_version=no
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=no
11819 hardcode_into_libs=yes
11820 dynamic_linker='ldqnx.so'
11823 openbsd*)
11824 version_type=sunos
11825 sys_lib_dlsearch_path_spec="/usr/lib"
11826 need_lib_prefix=no
11827 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11828 case $host_os in
11829 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11830 *) need_version=no ;;
11831 esac
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11836 case $host_os in
11837 openbsd2.[89] | openbsd2.[89].*)
11838 shlibpath_overrides_runpath=no
11841 shlibpath_overrides_runpath=yes
11843 esac
11844 else
11845 shlibpath_overrides_runpath=yes
11849 os2*)
11850 libname_spec='$name'
11851 shrext_cmds=".dll"
11852 need_lib_prefix=no
11853 library_names_spec='$libname${shared_ext} $libname.a'
11854 dynamic_linker='OS/2 ld.exe'
11855 shlibpath_var=LIBPATH
11858 osf3* | osf4* | osf5*)
11859 version_type=osf
11860 need_lib_prefix=no
11861 need_version=no
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11869 rdos*)
11870 dynamic_linker=no
11873 solaris*)
11874 version_type=linux
11875 need_lib_prefix=no
11876 need_version=no
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 hardcode_into_libs=yes
11882 # ldd complains unless libraries are executable
11883 postinstall_cmds='chmod +x $lib'
11886 sunos4*)
11887 version_type=sunos
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 if test "$with_gnu_ld" = yes; then
11893 need_lib_prefix=no
11895 need_version=yes
11898 sysv4 | sysv4.3*)
11899 version_type=linux
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 case $host_vendor in
11904 sni)
11905 shlibpath_overrides_runpath=no
11906 need_lib_prefix=no
11907 runpath_var=LD_RUN_PATH
11909 siemens)
11910 need_lib_prefix=no
11912 motorola)
11913 need_lib_prefix=no
11914 need_version=no
11915 shlibpath_overrides_runpath=no
11916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11918 esac
11921 sysv4*MP*)
11922 if test -d /usr/nec ;then
11923 version_type=linux
11924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925 soname_spec='$libname${shared_ext}.$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931 version_type=freebsd-elf
11932 need_lib_prefix=no
11933 need_version=no
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935 soname_spec='${libname}${release}${shared_ext}$major'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=yes
11938 hardcode_into_libs=yes
11939 if test "$with_gnu_ld" = yes; then
11940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11941 else
11942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11943 case $host_os in
11944 sco3.2v5*)
11945 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11947 esac
11949 sys_lib_dlsearch_path_spec='/usr/lib'
11952 tpf*)
11953 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11954 version_type=linux
11955 need_lib_prefix=no
11956 need_version=no
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 shlibpath_overrides_runpath=no
11960 hardcode_into_libs=yes
11963 uts4*)
11964 version_type=linux
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966 soname_spec='${libname}${release}${shared_ext}$major'
11967 shlibpath_var=LD_LIBRARY_PATH
11971 dynamic_linker=no
11973 esac
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11975 $as_echo "$dynamic_linker" >&6; }
11976 test "$dynamic_linker" = no && can_build_shared=no
11978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979 if test "$GCC" = yes; then
11980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11983 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12082 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12083 hardcode_action=
12084 if test -n "$hardcode_libdir_flag_spec" ||
12085 test -n "$runpath_var" ||
12086 test "X$hardcode_automatic" = "Xyes" ; then
12088 # We can hardcode non-existent directories.
12089 if test "$hardcode_direct" != no &&
12090 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12091 # have to relink, otherwise we might link with an installed library
12092 # when we should be linking with a yet-to-be-installed one
12093 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12094 test "$hardcode_minus_L" != no; then
12095 # Linking always hardcodes the temporary library directory.
12096 hardcode_action=relink
12097 else
12098 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12099 hardcode_action=immediate
12101 else
12102 # We cannot hardcode anything, or else we can only hardcode existing
12103 # directories.
12104 hardcode_action=unsupported
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12107 $as_echo "$hardcode_action" >&6; }
12109 if test "$hardcode_action" = relink ||
12110 test "$inherit_rpath" = yes; then
12111 # Fast installation is not supported
12112 enable_fast_install=no
12113 elif test "$shlibpath_overrides_runpath" = yes ||
12114 test "$enable_shared" = no; then
12115 # Fast installation is not necessary
12116 enable_fast_install=needless
12124 if test "x$enable_dlopen" != xyes; then
12125 enable_dlopen=unknown
12126 enable_dlopen_self=unknown
12127 enable_dlopen_self_static=unknown
12128 else
12129 lt_cv_dlopen=no
12130 lt_cv_dlopen_libs=
12132 case $host_os in
12133 beos*)
12134 lt_cv_dlopen="load_add_on"
12135 lt_cv_dlopen_libs=
12136 lt_cv_dlopen_self=yes
12139 mingw* | pw32* | cegcc*)
12140 lt_cv_dlopen="LoadLibrary"
12141 lt_cv_dlopen_libs=
12144 cygwin*)
12145 lt_cv_dlopen="dlopen"
12146 lt_cv_dlopen_libs=
12149 darwin*)
12150 # if libdl is installed we need to link against it
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12152 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-ldl $LIBS"
12158 if test x$gcc_no_link = xyes; then
12159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12172 main ()
12174 return dlopen ();
12176 return 0;
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dl_dlopen=yes
12181 else
12182 ac_cv_lib_dl_dlopen=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12192 else
12194 lt_cv_dlopen="dyld"
12195 lt_cv_dlopen_libs=
12196 lt_cv_dlopen_self=yes
12203 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12204 if test "x$ac_cv_func_shl_load" = x""yes; then :
12205 lt_cv_dlopen="shl_load"
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12208 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12209 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldld $LIBS"
12214 if test x$gcc_no_link = xyes; then
12215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char shl_load ();
12228 main ()
12230 return shl_load ();
12232 return 0;
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_dld_shl_load=yes
12237 else
12238 ac_cv_lib_dld_shl_load=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12246 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12247 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12248 else
12249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = x""yes; then :
12251 lt_cv_dlopen="dlopen"
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-ldl $LIBS"
12260 if test x$gcc_no_link = xyes; then
12261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char dlopen ();
12274 main ()
12276 return dlopen ();
12278 return 0;
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282 ac_cv_lib_dl_dlopen=yes
12283 else
12284 ac_cv_lib_dl_dlopen=no
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12291 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12292 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12296 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12297 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-lsvld $LIBS"
12302 if test x$gcc_no_link = xyes; then
12303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311 #ifdef __cplusplus
12312 extern "C"
12313 #endif
12314 char dlopen ();
12316 main ()
12318 return dlopen ();
12320 return 0;
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 ac_cv_lib_svld_dlopen=yes
12325 else
12326 ac_cv_lib_svld_dlopen=no
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12333 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12334 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12338 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-ldld $LIBS"
12344 if test x$gcc_no_link = xyes; then
12345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12350 /* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
12353 #ifdef __cplusplus
12354 extern "C"
12355 #endif
12356 char dld_link ();
12358 main ()
12360 return dld_link ();
12362 return 0;
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_lib_dld_dld_link=yes
12367 else
12368 ac_cv_lib_dld_dld_link=no
12370 rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12375 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12376 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12377 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12396 esac
12398 if test "x$lt_cv_dlopen" != xno; then
12399 enable_dlopen=yes
12400 else
12401 enable_dlopen=no
12404 case $lt_cv_dlopen in
12405 dlopen)
12406 save_CPPFLAGS="$CPPFLAGS"
12407 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12409 save_LDFLAGS="$LDFLAGS"
12410 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12412 save_LIBS="$LIBS"
12413 LIBS="$lt_cv_dlopen_libs $LIBS"
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12416 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12417 if test "${lt_cv_dlopen_self+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test "$cross_compiling" = yes; then :
12421 lt_cv_dlopen_self=cross
12422 else
12423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12424 lt_status=$lt_dlunknown
12425 cat > conftest.$ac_ext <<_LT_EOF
12426 #line 12426 "configure"
12427 #include "confdefs.h"
12429 #if HAVE_DLFCN_H
12430 #include <dlfcn.h>
12431 #endif
12433 #include <stdio.h>
12435 #ifdef RTLD_GLOBAL
12436 # define LT_DLGLOBAL RTLD_GLOBAL
12437 #else
12438 # ifdef DL_GLOBAL
12439 # define LT_DLGLOBAL DL_GLOBAL
12440 # else
12441 # define LT_DLGLOBAL 0
12442 # endif
12443 #endif
12445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12446 find out it does not work in some platform. */
12447 #ifndef LT_DLLAZY_OR_NOW
12448 # ifdef RTLD_LAZY
12449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12450 # else
12451 # ifdef DL_LAZY
12452 # define LT_DLLAZY_OR_NOW DL_LAZY
12453 # else
12454 # ifdef RTLD_NOW
12455 # define LT_DLLAZY_OR_NOW RTLD_NOW
12456 # else
12457 # ifdef DL_NOW
12458 # define LT_DLLAZY_OR_NOW DL_NOW
12459 # else
12460 # define LT_DLLAZY_OR_NOW 0
12461 # endif
12462 # endif
12463 # endif
12464 # endif
12465 #endif
12467 /* When -fvisbility=hidden is used, assume the code has been annotated
12468 correspondingly for the symbols needed. */
12469 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12470 void fnord () __attribute__((visibility("default")));
12471 #endif
12473 void fnord () { int i=42; }
12474 int main ()
12476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12477 int status = $lt_dlunknown;
12479 if (self)
12481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12482 else
12484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12485 else puts (dlerror ());
12487 /* dlclose (self); */
12489 else
12490 puts (dlerror ());
12492 return status;
12494 _LT_EOF
12495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12496 (eval $ac_link) 2>&5
12497 ac_status=$?
12498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12499 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12500 (./conftest; exit; ) >&5 2>/dev/null
12501 lt_status=$?
12502 case x$lt_status in
12503 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12504 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12505 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12506 esac
12507 else :
12508 # compilation failed
12509 lt_cv_dlopen_self=no
12512 rm -fr conftest*
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12517 $as_echo "$lt_cv_dlopen_self" >&6; }
12519 if test "x$lt_cv_dlopen_self" = xyes; then
12520 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12522 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12523 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test "$cross_compiling" = yes; then :
12527 lt_cv_dlopen_self_static=cross
12528 else
12529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12530 lt_status=$lt_dlunknown
12531 cat > conftest.$ac_ext <<_LT_EOF
12532 #line 12532 "configure"
12533 #include "confdefs.h"
12535 #if HAVE_DLFCN_H
12536 #include <dlfcn.h>
12537 #endif
12539 #include <stdio.h>
12541 #ifdef RTLD_GLOBAL
12542 # define LT_DLGLOBAL RTLD_GLOBAL
12543 #else
12544 # ifdef DL_GLOBAL
12545 # define LT_DLGLOBAL DL_GLOBAL
12546 # else
12547 # define LT_DLGLOBAL 0
12548 # endif
12549 #endif
12551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12552 find out it does not work in some platform. */
12553 #ifndef LT_DLLAZY_OR_NOW
12554 # ifdef RTLD_LAZY
12555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12556 # else
12557 # ifdef DL_LAZY
12558 # define LT_DLLAZY_OR_NOW DL_LAZY
12559 # else
12560 # ifdef RTLD_NOW
12561 # define LT_DLLAZY_OR_NOW RTLD_NOW
12562 # else
12563 # ifdef DL_NOW
12564 # define LT_DLLAZY_OR_NOW DL_NOW
12565 # else
12566 # define LT_DLLAZY_OR_NOW 0
12567 # endif
12568 # endif
12569 # endif
12570 # endif
12571 #endif
12573 /* When -fvisbility=hidden is used, assume the code has been annotated
12574 correspondingly for the symbols needed. */
12575 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12576 void fnord () __attribute__((visibility("default")));
12577 #endif
12579 void fnord () { int i=42; }
12580 int main ()
12582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12583 int status = $lt_dlunknown;
12585 if (self)
12587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12588 else
12590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12591 else puts (dlerror ());
12593 /* dlclose (self); */
12595 else
12596 puts (dlerror ());
12598 return status;
12600 _LT_EOF
12601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12602 (eval $ac_link) 2>&5
12603 ac_status=$?
12604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12606 (./conftest; exit; ) >&5 2>/dev/null
12607 lt_status=$?
12608 case x$lt_status in
12609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12611 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12612 esac
12613 else :
12614 # compilation failed
12615 lt_cv_dlopen_self_static=no
12618 rm -fr conftest*
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12623 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12626 CPPFLAGS="$save_CPPFLAGS"
12627 LDFLAGS="$save_LDFLAGS"
12628 LIBS="$save_LIBS"
12630 esac
12632 case $lt_cv_dlopen_self in
12633 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12634 *) enable_dlopen_self=unknown ;;
12635 esac
12637 case $lt_cv_dlopen_self_static in
12638 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12639 *) enable_dlopen_self_static=unknown ;;
12640 esac
12659 striplib=
12660 old_striplib=
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12662 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12663 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12664 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12665 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12667 $as_echo "yes" >&6; }
12668 else
12669 # FIXME - insert some real tests, host_os isn't really good enough
12670 case $host_os in
12671 darwin*)
12672 if test -n "$STRIP" ; then
12673 striplib="$STRIP -x"
12674 old_striplib="$STRIP -S"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12676 $as_echo "yes" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12686 esac
12700 # Report which library types will actually be built
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12702 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12704 $as_echo "$can_build_shared" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12707 $as_echo_n "checking whether to build shared libraries... " >&6; }
12708 test "$can_build_shared" = "no" && enable_shared=no
12710 # On AIX, shared libraries and static libraries use the same namespace, and
12711 # are all built from PIC.
12712 case $host_os in
12713 aix3*)
12714 test "$enable_shared" = yes && enable_static=no
12715 if test -n "$RANLIB"; then
12716 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12717 postinstall_cmds='$RANLIB $lib'
12721 aix[4-9]*)
12722 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12723 test "$enable_shared" = yes && enable_static=no
12726 esac
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12728 $as_echo "$enable_shared" >&6; }
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12731 $as_echo_n "checking whether to build static libraries... " >&6; }
12732 # Make sure either enable_shared or enable_static is yes.
12733 test "$enable_shared" = yes || enable_static=yes
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12735 $as_echo "$enable_static" >&6; }
12741 ac_ext=c
12742 ac_cpp='$CPP $CPPFLAGS'
12743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747 CC="$lt_save_CC"
12761 ac_config_commands="$ac_config_commands libtool"
12766 # Only expand once:
12772 case $host in
12773 *-cygwin* | *-mingw*)
12774 # 'host' will be top-level target in the case of a target lib,
12775 # we must compare to with_cross_host to decide if this is a native
12776 # or cross-compiler and select where to install dlls appropriately.
12777 if test -n "$with_cross_host" &&
12778 test x"$with_cross_host" != x"no"; then
12779 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12780 else
12781 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12785 lt_host_flags=
12787 esac
12793 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12795 # We need gfortran to compile parts of the library
12796 #AC_PROG_FC(gfortran)
12797 FC="$GFORTRAN"
12798 ac_ext=${ac_fc_srcext-f}
12799 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12800 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12802 if test -n "$ac_tool_prefix"; then
12803 for ac_prog in gfortran
12805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_prog_FC+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test -n "$FC"; then
12813 ac_cv_prog_FC="$FC" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12832 FC=$ac_cv_prog_FC
12833 if test -n "$FC"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12835 $as_echo "$FC" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12842 test -n "$FC" && break
12843 done
12845 if test -z "$FC"; then
12846 ac_ct_FC=$FC
12847 for ac_prog in gfortran
12849 # Extract the first word of "$ac_prog", so it can be a program name with args.
12850 set dummy $ac_prog; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$ac_ct_FC"; then
12857 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_FC="$ac_prog"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12876 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12877 if test -n "$ac_ct_FC"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12879 $as_echo "$ac_ct_FC" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12886 test -n "$ac_ct_FC" && break
12887 done
12889 if test "x$ac_ct_FC" = x; then
12890 FC=""
12891 else
12892 case $cross_compiling:$ac_tool_warned in
12893 yes:)
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12896 ac_tool_warned=yes ;;
12897 esac
12898 FC=$ac_ct_FC
12903 # Provide some information about the compiler.
12904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12905 set X $ac_compile
12906 ac_compiler=$2
12907 for ac_option in --version -v -V -qversion; do
12908 { { ac_try="$ac_compiler $ac_option >&5"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12914 $as_echo "$ac_try_echo"; } >&5
12915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12916 ac_status=$?
12917 if test -s conftest.err; then
12918 sed '10a\
12919 ... rest of stderr output deleted ...
12920 10q' conftest.err >conftest.er1
12921 cat conftest.er1 >&5
12922 rm -f conftest.er1 conftest.err
12924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925 test $ac_status = 0; }
12926 done
12927 rm -f a.out
12929 # If we don't use `.F' as extension, the preprocessor is not run on the
12930 # input file. (Note that this only needs to work for GNU compilers.)
12931 ac_save_ext=$ac_ext
12932 ac_ext=F
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12934 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12935 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 cat > conftest.$ac_ext <<_ACEOF
12939 program main
12940 #ifndef __GNUC__
12941 choke me
12942 #endif
12945 _ACEOF
12946 if ac_fn_fc_try_compile "$LINENO"; then :
12947 ac_compiler_gnu=yes
12948 else
12949 ac_compiler_gnu=no
12951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12956 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12957 ac_ext=$ac_save_ext
12958 ac_test_FCFLAGS=${FCFLAGS+set}
12959 ac_save_FCFLAGS=$FCFLAGS
12960 FCFLAGS=
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12962 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12963 if test "${ac_cv_prog_fc_g+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 FCFLAGS=-g
12967 cat > conftest.$ac_ext <<_ACEOF
12968 program main
12971 _ACEOF
12972 if ac_fn_fc_try_compile "$LINENO"; then :
12973 ac_cv_prog_fc_g=yes
12974 else
12975 ac_cv_prog_fc_g=no
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12981 $as_echo "$ac_cv_prog_fc_g" >&6; }
12982 if test "$ac_test_FCFLAGS" = set; then
12983 FCFLAGS=$ac_save_FCFLAGS
12984 elif test $ac_cv_prog_fc_g = yes; then
12985 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12986 FCFLAGS="-g -O2"
12987 else
12988 FCFLAGS="-g"
12990 else
12991 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12992 FCFLAGS="-O2"
12993 else
12994 FCFLAGS=
12998 ac_ext=c
12999 ac_cpp='$CPP $CPPFLAGS'
13000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13004 ac_ext=${ac_fc_srcext-f}
13005 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13006 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13010 if test -z "$FC" || test "X$FC" = "Xno"; then
13011 _lt_disable_FC=yes
13014 archive_cmds_need_lc_FC=no
13015 allow_undefined_flag_FC=
13016 always_export_symbols_FC=no
13017 archive_expsym_cmds_FC=
13018 export_dynamic_flag_spec_FC=
13019 hardcode_direct_FC=no
13020 hardcode_direct_absolute_FC=no
13021 hardcode_libdir_flag_spec_FC=
13022 hardcode_libdir_flag_spec_ld_FC=
13023 hardcode_libdir_separator_FC=
13024 hardcode_minus_L_FC=no
13025 hardcode_automatic_FC=no
13026 inherit_rpath_FC=no
13027 module_cmds_FC=
13028 module_expsym_cmds_FC=
13029 link_all_deplibs_FC=unknown
13030 old_archive_cmds_FC=$old_archive_cmds
13031 reload_flag_FC=$reload_flag
13032 reload_cmds_FC=$reload_cmds
13033 no_undefined_flag_FC=
13034 whole_archive_flag_spec_FC=
13035 enable_shared_with_static_runtimes_FC=no
13037 # Source file extension for fc test sources.
13038 ac_ext=${ac_fc_srcext-f}
13040 # Object file extension for compiled fc test sources.
13041 objext=o
13042 objext_FC=$objext
13044 # No sense in running all these tests if we already determined that
13045 # the FC compiler isn't working. Some variables (like enable_shared)
13046 # are currently assumed to apply to all compilers on this platform,
13047 # and will be corrupted by setting them based on a non-working compiler.
13048 if test "$_lt_disable_FC" != yes; then
13049 # Code to be used in simple compile tests
13050 lt_simple_compile_test_code="\
13051 subroutine t
13052 return
13056 # Code to be used in simple link tests
13057 lt_simple_link_test_code="\
13058 program t
13062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13069 # If no C compiler was specified, use CC.
13070 LTCC=${LTCC-"$CC"}
13072 # If no C compiler flags were specified, use CFLAGS.
13073 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13075 # Allow CC to be a program name with arguments.
13076 compiler=$CC
13079 # save warnings/boilerplate of simple test code
13080 ac_outfile=conftest.$ac_objext
13081 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13082 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13083 _lt_compiler_boilerplate=`cat conftest.err`
13084 $RM conftest*
13086 ac_outfile=conftest.$ac_objext
13087 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13088 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13089 _lt_linker_boilerplate=`cat conftest.err`
13090 $RM -r conftest*
13093 # Allow CC to be a program name with arguments.
13094 lt_save_CC="$CC"
13095 lt_save_GCC=$GCC
13096 CC=${FC-"f95"}
13097 compiler=$CC
13098 GCC=$ac_cv_fc_compiler_gnu
13100 compiler_FC=$CC
13101 for cc_temp in $compiler""; do
13102 case $cc_temp in
13103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105 \-*) ;;
13106 *) break;;
13107 esac
13108 done
13109 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13112 if test -n "$compiler"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13116 $as_echo "$can_build_shared" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13119 $as_echo_n "checking whether to build shared libraries... " >&6; }
13120 test "$can_build_shared" = "no" && enable_shared=no
13122 # On AIX, shared libraries and static libraries use the same namespace, and
13123 # are all built from PIC.
13124 case $host_os in
13125 aix3*)
13126 test "$enable_shared" = yes && enable_static=no
13127 if test -n "$RANLIB"; then
13128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13129 postinstall_cmds='$RANLIB $lib'
13132 aix[4-9]*)
13133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13134 test "$enable_shared" = yes && enable_static=no
13137 esac
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13139 $as_echo "$enable_shared" >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13142 $as_echo_n "checking whether to build static libraries... " >&6; }
13143 # Make sure either enable_shared or enable_static is yes.
13144 test "$enable_shared" = yes || enable_static=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13146 $as_echo "$enable_static" >&6; }
13148 GCC_FC="$ac_cv_fc_compiler_gnu"
13149 LD_FC="$LD"
13151 ## CAVEAT EMPTOR:
13152 ## There is no encapsulation within the following macros, do not change
13153 ## the running order or otherwise move them around unless you know exactly
13154 ## what you are doing...
13155 # Dependencies to place before and after the object being linked:
13156 predep_objects_FC=
13157 postdep_objects_FC=
13158 predeps_FC=
13159 postdeps_FC=
13160 compiler_lib_search_path_FC=
13162 cat > conftest.$ac_ext <<_LT_EOF
13163 subroutine foo
13164 implicit none
13165 integer a
13167 return
13169 _LT_EOF
13171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13172 (eval $ac_compile) 2>&5
13173 ac_status=$?
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }; then
13176 # Parse the compiler output and extract the necessary
13177 # objects, libraries and library flags.
13179 # Sentinel used to keep track of whether or not we are before
13180 # the conftest object file.
13181 pre_test_object_deps_done=no
13183 for p in `eval "$output_verbose_link_cmd"`; do
13184 case $p in
13186 -L* | -R* | -l*)
13187 # Some compilers place space between "-{L,R}" and the path.
13188 # Remove the space.
13189 if test $p = "-L" ||
13190 test $p = "-R"; then
13191 prev=$p
13192 continue
13193 else
13194 prev=
13197 if test "$pre_test_object_deps_done" = no; then
13198 case $p in
13199 -L* | -R*)
13200 # Internal compiler library paths should come after those
13201 # provided the user. The postdeps already come after the
13202 # user supplied libs so there is no need to process them.
13203 if test -z "$compiler_lib_search_path_FC"; then
13204 compiler_lib_search_path_FC="${prev}${p}"
13205 else
13206 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13209 # The "-l" case would never come before the object being
13210 # linked, so don't bother handling this case.
13211 esac
13212 else
13213 if test -z "$postdeps_FC"; then
13214 postdeps_FC="${prev}${p}"
13215 else
13216 postdeps_FC="${postdeps_FC} ${prev}${p}"
13221 *.$objext)
13222 # This assumes that the test object file only shows up
13223 # once in the compiler output.
13224 if test "$p" = "conftest.$objext"; then
13225 pre_test_object_deps_done=yes
13226 continue
13229 if test "$pre_test_object_deps_done" = no; then
13230 if test -z "$predep_objects_FC"; then
13231 predep_objects_FC="$p"
13232 else
13233 predep_objects_FC="$predep_objects_FC $p"
13235 else
13236 if test -z "$postdep_objects_FC"; then
13237 postdep_objects_FC="$p"
13238 else
13239 postdep_objects_FC="$postdep_objects_FC $p"
13244 *) ;; # Ignore the rest.
13246 esac
13247 done
13249 # Clean up.
13250 rm -f a.out a.exe
13251 else
13252 echo "libtool.m4: error: problem compiling FC test program"
13255 $RM -f confest.$objext
13257 # PORTME: override above test on systems where it is broken
13260 case " $postdeps_FC " in
13261 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13262 esac
13263 compiler_lib_search_dirs_FC=
13264 if test -n "${compiler_lib_search_path_FC}"; then
13265 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13298 lt_prog_compiler_wl_FC=
13299 lt_prog_compiler_pic_FC=
13300 lt_prog_compiler_static_FC=
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13303 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13305 if test "$GCC" = yes; then
13306 lt_prog_compiler_wl_FC='-Wl,'
13307 lt_prog_compiler_static_FC='-static'
13309 case $host_os in
13310 aix*)
13311 # All AIX code is PIC.
13312 if test "$host_cpu" = ia64; then
13313 # AIX 5 now supports IA64 processor
13314 lt_prog_compiler_static_FC='-Bstatic'
13316 lt_prog_compiler_pic_FC='-fPIC'
13319 amigaos*)
13320 case $host_cpu in
13321 powerpc)
13322 # see comment about AmigaOS4 .so support
13323 lt_prog_compiler_pic_FC='-fPIC'
13325 m68k)
13326 # FIXME: we need at least 68020 code to build shared libraries, but
13327 # adding the `-m68020' flag to GCC prevents building anything better,
13328 # like `-m68040'.
13329 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13331 esac
13334 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13335 # PIC is the default for these OSes.
13338 mingw* | cygwin* | pw32* | os2* | cegcc*)
13339 # This hack is so that the source file can tell whether it is being
13340 # built for inclusion in a dll (and should export symbols for example).
13341 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13342 # (--disable-auto-import) libraries
13343 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13346 darwin* | rhapsody*)
13347 # PIC is the default on this platform
13348 # Common symbols not allowed in MH_DYLIB files
13349 lt_prog_compiler_pic_FC='-fno-common'
13352 haiku*)
13353 # PIC is the default for Haiku.
13354 # The "-static" flag exists, but is broken.
13355 lt_prog_compiler_static_FC=
13358 hpux*)
13359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13361 # sets the default TLS model and affects inlining.
13362 case $host_cpu in
13363 hppa*64*)
13364 # +Z the default
13367 lt_prog_compiler_pic_FC='-fPIC'
13369 esac
13372 interix[3-9]*)
13373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13374 # Instead, we relocate shared libraries at runtime.
13377 msdosdjgpp*)
13378 # Just because we use GCC doesn't mean we suddenly get shared libraries
13379 # on systems that don't support them.
13380 lt_prog_compiler_can_build_shared_FC=no
13381 enable_shared=no
13384 *nto* | *qnx*)
13385 # QNX uses GNU C++, but need to define -shared option too, otherwise
13386 # it will coredump.
13387 lt_prog_compiler_pic_FC='-fPIC -shared'
13390 sysv4*MP*)
13391 if test -d /usr/nec; then
13392 lt_prog_compiler_pic_FC=-Kconform_pic
13397 lt_prog_compiler_pic_FC='-fPIC'
13399 esac
13401 case $cc_basename in
13402 nvcc*) # Cuda Compiler Driver 2.2
13403 lt_prog_compiler_wl_FC='-Xlinker '
13404 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13406 esac
13407 else
13408 # PORTME Check for flag to pass linker flags through the system compiler.
13409 case $host_os in
13410 aix*)
13411 lt_prog_compiler_wl_FC='-Wl,'
13412 if test "$host_cpu" = ia64; then
13413 # AIX 5 now supports IA64 processor
13414 lt_prog_compiler_static_FC='-Bstatic'
13415 else
13416 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13420 mingw* | cygwin* | pw32* | os2* | cegcc*)
13421 # This hack is so that the source file can tell whether it is being
13422 # built for inclusion in a dll (and should export symbols for example).
13423 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13426 hpux9* | hpux10* | hpux11*)
13427 lt_prog_compiler_wl_FC='-Wl,'
13428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13429 # not for PA HP-UX.
13430 case $host_cpu in
13431 hppa*64*|ia64*)
13432 # +Z the default
13435 lt_prog_compiler_pic_FC='+Z'
13437 esac
13438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13439 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13442 irix5* | irix6* | nonstopux*)
13443 lt_prog_compiler_wl_FC='-Wl,'
13444 # PIC (with -KPIC) is the default.
13445 lt_prog_compiler_static_FC='-non_shared'
13448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13449 case $cc_basename in
13450 # old Intel for x86_64 which still supported -KPIC.
13451 ecc*)
13452 lt_prog_compiler_wl_FC='-Wl,'
13453 lt_prog_compiler_pic_FC='-KPIC'
13454 lt_prog_compiler_static_FC='-static'
13456 # icc used to be incompatible with GCC.
13457 # ICC 10 doesn't accept -KPIC any more.
13458 icc* | ifort*)
13459 lt_prog_compiler_wl_FC='-Wl,'
13460 lt_prog_compiler_pic_FC='-fPIC'
13461 lt_prog_compiler_static_FC='-static'
13463 # Lahey Fortran 8.1.
13464 lf95*)
13465 lt_prog_compiler_wl_FC='-Wl,'
13466 lt_prog_compiler_pic_FC='--shared'
13467 lt_prog_compiler_static_FC='--static'
13469 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13470 # Portland Group compilers (*not* the Pentium gcc compiler,
13471 # which looks to be a dead project)
13472 lt_prog_compiler_wl_FC='-Wl,'
13473 lt_prog_compiler_pic_FC='-fpic'
13474 lt_prog_compiler_static_FC='-Bstatic'
13476 ccc*)
13477 lt_prog_compiler_wl_FC='-Wl,'
13478 # All Alpha code is PIC.
13479 lt_prog_compiler_static_FC='-non_shared'
13481 xl* | bgxl* | bgf* | mpixl*)
13482 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13483 lt_prog_compiler_wl_FC='-Wl,'
13484 lt_prog_compiler_pic_FC='-qpic'
13485 lt_prog_compiler_static_FC='-qstaticlink'
13488 case `$CC -V 2>&1 | sed 5q` in
13489 *Sun\ F* | *Sun*Fortran*)
13490 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13491 lt_prog_compiler_pic_FC='-KPIC'
13492 lt_prog_compiler_static_FC='-Bstatic'
13493 lt_prog_compiler_wl_FC=''
13495 *Sun\ C*)
13496 # Sun C 5.9
13497 lt_prog_compiler_pic_FC='-KPIC'
13498 lt_prog_compiler_static_FC='-Bstatic'
13499 lt_prog_compiler_wl_FC='-Wl,'
13501 esac
13503 esac
13506 newsos6)
13507 lt_prog_compiler_pic_FC='-KPIC'
13508 lt_prog_compiler_static_FC='-Bstatic'
13511 *nto* | *qnx*)
13512 # QNX uses GNU C++, but need to define -shared option too, otherwise
13513 # it will coredump.
13514 lt_prog_compiler_pic_FC='-fPIC -shared'
13517 osf3* | osf4* | osf5*)
13518 lt_prog_compiler_wl_FC='-Wl,'
13519 # All OSF/1 code is PIC.
13520 lt_prog_compiler_static_FC='-non_shared'
13523 rdos*)
13524 lt_prog_compiler_static_FC='-non_shared'
13527 solaris*)
13528 lt_prog_compiler_pic_FC='-KPIC'
13529 lt_prog_compiler_static_FC='-Bstatic'
13530 case $cc_basename in
13531 f77* | f90* | f95*)
13532 lt_prog_compiler_wl_FC='-Qoption ld ';;
13534 lt_prog_compiler_wl_FC='-Wl,';;
13535 esac
13538 sunos4*)
13539 lt_prog_compiler_wl_FC='-Qoption ld '
13540 lt_prog_compiler_pic_FC='-PIC'
13541 lt_prog_compiler_static_FC='-Bstatic'
13544 sysv4 | sysv4.2uw2* | sysv4.3*)
13545 lt_prog_compiler_wl_FC='-Wl,'
13546 lt_prog_compiler_pic_FC='-KPIC'
13547 lt_prog_compiler_static_FC='-Bstatic'
13550 sysv4*MP*)
13551 if test -d /usr/nec ;then
13552 lt_prog_compiler_pic_FC='-Kconform_pic'
13553 lt_prog_compiler_static_FC='-Bstatic'
13557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13558 lt_prog_compiler_wl_FC='-Wl,'
13559 lt_prog_compiler_pic_FC='-KPIC'
13560 lt_prog_compiler_static_FC='-Bstatic'
13563 unicos*)
13564 lt_prog_compiler_wl_FC='-Wl,'
13565 lt_prog_compiler_can_build_shared_FC=no
13568 uts4*)
13569 lt_prog_compiler_pic_FC='-pic'
13570 lt_prog_compiler_static_FC='-Bstatic'
13574 lt_prog_compiler_can_build_shared_FC=no
13576 esac
13579 case $host_os in
13580 # For platforms which do not support PIC, -DPIC is meaningless:
13581 *djgpp*)
13582 lt_prog_compiler_pic_FC=
13585 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13587 esac
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13589 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13594 # Check to make sure the PIC flag actually works.
13596 if test -n "$lt_prog_compiler_pic_FC"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13599 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 lt_cv_prog_compiler_pic_works_FC=no
13603 ac_outfile=conftest.$ac_objext
13604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13605 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13606 # Insert the option either (1) after the last *FLAGS variable, or
13607 # (2) before a word containing "conftest.", or (3) at the end.
13608 # Note that $ac_compile itself does not contain backslashes and begins
13609 # with a dollar sign (not a hyphen), so the echo should work correctly.
13610 # The option is referenced via a variable to avoid confusing sed.
13611 lt_compile=`echo "$ac_compile" | $SED \
13612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13614 -e 's:$: $lt_compiler_flag:'`
13615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13616 (eval "$lt_compile" 2>conftest.err)
13617 ac_status=$?
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 if (exit $ac_status) && test -s "$ac_outfile"; then
13621 # The compiler can only warn and ignore the option if not recognized
13622 # So say no if there are warnings other than the usual output.
13623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13626 lt_cv_prog_compiler_pic_works_FC=yes
13629 $RM conftest*
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13633 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13635 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13636 case $lt_prog_compiler_pic_FC in
13637 "" | " "*) ;;
13638 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13639 esac
13640 else
13641 lt_prog_compiler_pic_FC=
13642 lt_prog_compiler_can_build_shared_FC=no
13650 # Check to make sure the static flag actually works.
13652 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13655 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 lt_cv_prog_compiler_static_works_FC=no
13659 save_LDFLAGS="$LDFLAGS"
13660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13663 # The linker can only warn and ignore the option if not recognized
13664 # So say no if there are warnings
13665 if test -s conftest.err; then
13666 # Append any errors to the config.log.
13667 cat conftest.err 1>&5
13668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13670 if diff conftest.exp conftest.er2 >/dev/null; then
13671 lt_cv_prog_compiler_static_works_FC=yes
13673 else
13674 lt_cv_prog_compiler_static_works_FC=yes
13677 $RM -r conftest*
13678 LDFLAGS="$save_LDFLAGS"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13682 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13684 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13686 else
13687 lt_prog_compiler_static_FC=
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13695 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 lt_cv_prog_compiler_c_o_FC=no
13699 $RM -r conftest 2>/dev/null
13700 mkdir conftest
13701 cd conftest
13702 mkdir out
13703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13705 lt_compiler_flag="-o out/conftest2.$ac_objext"
13706 # Insert the option either (1) after the last *FLAGS variable, or
13707 # (2) before a word containing "conftest.", or (3) at the end.
13708 # Note that $ac_compile itself does not contain backslashes and begins
13709 # with a dollar sign (not a hyphen), so the echo should work correctly.
13710 lt_compile=`echo "$ac_compile" | $SED \
13711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713 -e 's:$: $lt_compiler_flag:'`
13714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13715 (eval "$lt_compile" 2>out/conftest.err)
13716 ac_status=$?
13717 cat out/conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13720 then
13721 # The compiler can only warn and ignore the option if not recognized
13722 # So say no if there are warnings
13723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13726 lt_cv_prog_compiler_c_o_FC=yes
13729 chmod u+w . 2>&5
13730 $RM conftest*
13731 # SGI C++ compiler will create directory out/ii_files/ for
13732 # template instantiation
13733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13734 $RM out/* && rmdir out
13735 cd ..
13736 $RM -r conftest
13737 $RM conftest*
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13741 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13747 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 lt_cv_prog_compiler_c_o_FC=no
13751 $RM -r conftest 2>/dev/null
13752 mkdir conftest
13753 cd conftest
13754 mkdir out
13755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13757 lt_compiler_flag="-o out/conftest2.$ac_objext"
13758 # Insert the option either (1) after the last *FLAGS variable, or
13759 # (2) before a word containing "conftest.", or (3) at the end.
13760 # Note that $ac_compile itself does not contain backslashes and begins
13761 # with a dollar sign (not a hyphen), so the echo should work correctly.
13762 lt_compile=`echo "$ac_compile" | $SED \
13763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13765 -e 's:$: $lt_compiler_flag:'`
13766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13767 (eval "$lt_compile" 2>out/conftest.err)
13768 ac_status=$?
13769 cat out/conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13772 then
13773 # The compiler can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler_c_o_FC=yes
13781 chmod u+w . 2>&5
13782 $RM conftest*
13783 # SGI C++ compiler will create directory out/ii_files/ for
13784 # template instantiation
13785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13786 $RM out/* && rmdir out
13787 cd ..
13788 $RM -r conftest
13789 $RM conftest*
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13793 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13798 hard_links="nottested"
13799 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13800 # do not overwrite the value of need_locks provided by the user
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13802 $as_echo_n "checking if we can lock with hard links... " >&6; }
13803 hard_links=yes
13804 $RM conftest*
13805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13806 touch conftest.a
13807 ln conftest.a conftest.b 2>&5 || hard_links=no
13808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13810 $as_echo "$hard_links" >&6; }
13811 if test "$hard_links" = no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13814 need_locks=warn
13816 else
13817 need_locks=no
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13825 runpath_var=
13826 allow_undefined_flag_FC=
13827 always_export_symbols_FC=no
13828 archive_cmds_FC=
13829 archive_expsym_cmds_FC=
13830 compiler_needs_object_FC=no
13831 enable_shared_with_static_runtimes_FC=no
13832 export_dynamic_flag_spec_FC=
13833 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13834 hardcode_automatic_FC=no
13835 hardcode_direct_FC=no
13836 hardcode_direct_absolute_FC=no
13837 hardcode_libdir_flag_spec_FC=
13838 hardcode_libdir_flag_spec_ld_FC=
13839 hardcode_libdir_separator_FC=
13840 hardcode_minus_L_FC=no
13841 hardcode_shlibpath_var_FC=unsupported
13842 inherit_rpath_FC=no
13843 link_all_deplibs_FC=unknown
13844 module_cmds_FC=
13845 module_expsym_cmds_FC=
13846 old_archive_from_new_cmds_FC=
13847 old_archive_from_expsyms_cmds_FC=
13848 thread_safe_flag_spec_FC=
13849 whole_archive_flag_spec_FC=
13850 # include_expsyms should be a list of space-separated symbols to be *always*
13851 # included in the symbol list
13852 include_expsyms_FC=
13853 # exclude_expsyms can be an extended regexp of symbols to exclude
13854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13856 # as well as any symbol that contains `d'.
13857 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13859 # platforms (ab)use it in PIC code, but their linkers get confused if
13860 # the symbol is explicitly referenced. Since portable code cannot
13861 # rely on this symbol name, it's probably fine to never include it in
13862 # preloaded symbol tables.
13863 # Exclude shared library initialization/finalization symbols.
13864 extract_expsyms_cmds=
13866 case $host_os in
13867 cygwin* | mingw* | pw32* | cegcc*)
13868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13869 # When not using gcc, we currently assume that we are using
13870 # Microsoft Visual C++.
13871 if test "$GCC" != yes; then
13872 with_gnu_ld=no
13875 interix*)
13876 # we just hope/assume this is gcc and not c89 (= MSVC++)
13877 with_gnu_ld=yes
13879 openbsd*)
13880 with_gnu_ld=no
13882 esac
13884 ld_shlibs_FC=yes
13886 # On some targets, GNU ld is compatible enough with the native linker
13887 # that we're better off using the native interface for both.
13888 lt_use_gnu_ld_interface=no
13889 if test "$with_gnu_ld" = yes; then
13890 case $host_os in
13891 aix*)
13892 # The AIX port of GNU ld has always aspired to compatibility
13893 # with the native linker. However, as the warning in the GNU ld
13894 # block says, versions before 2.19.5* couldn't really create working
13895 # shared libraries, regardless of the interface used.
13896 case `$LD -v 2>&1` in
13897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13901 lt_use_gnu_ld_interface=yes
13903 esac
13906 lt_use_gnu_ld_interface=yes
13908 esac
13911 if test "$lt_use_gnu_ld_interface" = yes; then
13912 # If archive_cmds runs LD, not CC, wlarc should be empty
13913 wlarc='${wl}'
13915 # Set some defaults for GNU ld with shared library support. These
13916 # are reset later if shared libraries are not supported. Putting them
13917 # here allows them to be overridden if necessary.
13918 runpath_var=LD_RUN_PATH
13919 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13920 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13921 # ancient GNU ld didn't support --whole-archive et. al.
13922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13923 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13924 else
13925 whole_archive_flag_spec_FC=
13927 supports_anon_versioning=no
13928 case `$LD -v 2>&1` in
13929 *GNU\ gold*) supports_anon_versioning=yes ;;
13930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13933 *\ 2.11.*) ;; # other 2.11 versions
13934 *) supports_anon_versioning=yes ;;
13935 esac
13937 # See if GNU ld supports shared libraries.
13938 case $host_os in
13939 aix[3-9]*)
13940 # On AIX/PPC, the GNU linker is very broken
13941 if test "$host_cpu" != ia64; then
13942 ld_shlibs_FC=no
13943 cat <<_LT_EOF 1>&2
13945 *** Warning: the GNU linker, at least up to release 2.19, is reported
13946 *** to be unable to reliably create shared libraries on AIX.
13947 *** Therefore, libtool is disabling shared libraries support. If you
13948 *** really care for shared libraries, you may want to install binutils
13949 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13950 *** You will then need to restart the configuration process.
13952 _LT_EOF
13956 amigaos*)
13957 case $host_cpu in
13958 powerpc)
13959 # see comment about AmigaOS4 .so support
13960 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961 archive_expsym_cmds_FC=''
13963 m68k)
13964 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)'
13965 hardcode_libdir_flag_spec_FC='-L$libdir'
13966 hardcode_minus_L_FC=yes
13968 esac
13971 beos*)
13972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13973 allow_undefined_flag_FC=unsupported
13974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13975 # support --undefined. This deserves some investigation. FIXME
13976 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13977 else
13978 ld_shlibs_FC=no
13982 cygwin* | mingw* | pw32* | cegcc*)
13983 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13984 # as there is no search path for DLLs.
13985 hardcode_libdir_flag_spec_FC='-L$libdir'
13986 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13987 allow_undefined_flag_FC=unsupported
13988 always_export_symbols_FC=no
13989 enable_shared_with_static_runtimes_FC=yes
13990 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13993 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13994 # If the export-symbols file already is a .def file (1st line
13995 # is EXPORTS), use it as is; otherwise, prepend...
13996 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13997 cp $export_symbols $output_objdir/$soname.def;
13998 else
13999 echo EXPORTS > $output_objdir/$soname.def;
14000 cat $export_symbols >> $output_objdir/$soname.def;
14002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14003 else
14004 ld_shlibs_FC=no
14008 haiku*)
14009 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010 link_all_deplibs_FC=yes
14013 interix[3-9]*)
14014 hardcode_direct_FC=no
14015 hardcode_shlibpath_var_FC=no
14016 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14017 export_dynamic_flag_spec_FC='${wl}-E'
14018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14019 # Instead, shared libraries are loaded at an image base (0x10000000 by
14020 # default) and relocated if they conflict, which is a slow very memory
14021 # consuming and fragmenting process. To avoid this, we pick a random,
14022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14024 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'
14025 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'
14028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14029 tmp_diet=no
14030 if test "$host_os" = linux-dietlibc; then
14031 case $cc_basename in
14032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14033 esac
14035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14036 && test "$tmp_diet" = no
14037 then
14038 tmp_addflag=' $pic_flag'
14039 tmp_sharedflag='-shared'
14040 case $cc_basename,$host_cpu in
14041 pgcc*) # Portland Group C compiler
14042 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'
14043 tmp_addflag=' $pic_flag'
14045 pgf77* | pgf90* | pgf95* | pgfortran*)
14046 # Portland Group f77 and f90 compilers
14047 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'
14048 tmp_addflag=' $pic_flag -Mnomain' ;;
14049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14050 tmp_addflag=' -i_dynamic' ;;
14051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14052 tmp_addflag=' -i_dynamic -nofor_main' ;;
14053 ifc* | ifort*) # Intel Fortran compiler
14054 tmp_addflag=' -nofor_main' ;;
14055 lf95*) # Lahey Fortran 8.1
14056 whole_archive_flag_spec_FC=
14057 tmp_sharedflag='--shared' ;;
14058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14059 tmp_sharedflag='-qmkshrobj'
14060 tmp_addflag= ;;
14061 nvcc*) # Cuda Compiler Driver 2.2
14062 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'
14063 compiler_needs_object_FC=yes
14065 esac
14066 case `$CC -V 2>&1 | sed 5q` in
14067 *Sun\ C*) # Sun C 5.9
14068 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'
14069 compiler_needs_object_FC=yes
14070 tmp_sharedflag='-G' ;;
14071 *Sun\ F*) # Sun Fortran 8.3
14072 tmp_sharedflag='-G' ;;
14073 esac
14074 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076 if test "x$supports_anon_versioning" = xyes; then
14077 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14079 echo "local: *; };" >> $output_objdir/$libname.ver~
14080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14083 case $cc_basename in
14084 xlf* | bgf* | bgxlf* | mpixlf*)
14085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14086 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14087 hardcode_libdir_flag_spec_FC=
14088 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14089 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14090 if test "x$supports_anon_versioning" = xyes; then
14091 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14093 echo "local: *; };" >> $output_objdir/$libname.ver~
14094 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14097 esac
14098 else
14099 ld_shlibs_FC=no
14103 netbsd*)
14104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14105 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14106 wlarc=
14107 else
14108 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14113 solaris*)
14114 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14115 ld_shlibs_FC=no
14116 cat <<_LT_EOF 1>&2
14118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14119 *** create shared libraries on Solaris systems. Therefore, libtool
14120 *** is disabling shared libraries support. We urge you to upgrade GNU
14121 *** binutils to release 2.9.1 or newer. Another option is to modify
14122 *** your PATH or compiler configuration so that the native linker is
14123 *** used, and then restart.
14125 _LT_EOF
14126 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14127 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14128 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14129 else
14130 ld_shlibs_FC=no
14134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14135 case `$LD -v 2>&1` in
14136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14137 ld_shlibs_FC=no
14138 cat <<_LT_EOF 1>&2
14140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14141 *** reliably create shared libraries on SCO systems. Therefore, libtool
14142 *** is disabling shared libraries support. We urge you to upgrade GNU
14143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14144 *** your PATH or compiler configuration so that the native linker is
14145 *** used, and then restart.
14147 _LT_EOF
14150 # For security reasons, it is highly recommended that you always
14151 # use absolute paths for naming shared libraries, and exclude the
14152 # DT_RUNPATH tag from executables and libraries. But doing so
14153 # requires that you compile everything twice, which is a pain.
14154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14155 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14156 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14158 else
14159 ld_shlibs_FC=no
14162 esac
14165 sunos4*)
14166 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14167 wlarc=
14168 hardcode_direct_FC=yes
14169 hardcode_shlibpath_var_FC=no
14173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14174 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14176 else
14177 ld_shlibs_FC=no
14180 esac
14182 if test "$ld_shlibs_FC" = no; then
14183 runpath_var=
14184 hardcode_libdir_flag_spec_FC=
14185 export_dynamic_flag_spec_FC=
14186 whole_archive_flag_spec_FC=
14188 else
14189 # PORTME fill in a description of your system's linker (not GNU ld)
14190 case $host_os in
14191 aix3*)
14192 allow_undefined_flag_FC=unsupported
14193 always_export_symbols_FC=yes
14194 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'
14195 # Note: this linker hardcodes the directories in LIBPATH if there
14196 # are no directories specified by -L.
14197 hardcode_minus_L_FC=yes
14198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14199 # Neither direct hardcoding nor static linking is supported with a
14200 # broken collect2.
14201 hardcode_direct_FC=unsupported
14205 aix[4-9]*)
14206 if test "$host_cpu" = ia64; then
14207 # On IA64, the linker does run time linking by default, so we don't
14208 # have to do anything special.
14209 aix_use_runtimelinking=no
14210 exp_sym_flag='-Bexport'
14211 no_entry_flag=""
14212 else
14213 # If we're using GNU nm, then we don't want the "-C" option.
14214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14215 # Also, AIX nm treats weak defined symbols like other global
14216 # defined symbols, whereas GNU nm marks them as "W".
14217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14218 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'
14219 else
14220 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'
14222 aix_use_runtimelinking=no
14224 # Test if we are trying to use run time linking or normal
14225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14226 # need to do runtime linking.
14227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14228 for ld_flag in $LDFLAGS; do
14229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14230 aix_use_runtimelinking=yes
14231 break
14233 done
14235 esac
14237 exp_sym_flag='-bexport'
14238 no_entry_flag='-bnoentry'
14241 # When large executables or shared objects are built, AIX ld can
14242 # have problems creating the table of contents. If linking a library
14243 # or program results in "error TOC overflow" add -mminimal-toc to
14244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14247 archive_cmds_FC=''
14248 hardcode_direct_FC=yes
14249 hardcode_direct_absolute_FC=yes
14250 hardcode_libdir_separator_FC=':'
14251 link_all_deplibs_FC=yes
14252 file_list_spec_FC='${wl}-f,'
14254 if test "$GCC" = yes; then
14255 case $host_os in aix4.[012]|aix4.[012].*)
14256 # We only want to do this on AIX 4.2 and lower, the check
14257 # below for broken collect2 doesn't work under 4.3+
14258 collect2name=`${CC} -print-prog-name=collect2`
14259 if test -f "$collect2name" &&
14260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14261 then
14262 # We have reworked collect2
14264 else
14265 # We have old collect2
14266 hardcode_direct_FC=unsupported
14267 # It fails to find uninstalled libraries when the uninstalled
14268 # path is not listed in the libpath. Setting hardcode_minus_L
14269 # to unsupported forces relinking
14270 hardcode_minus_L_FC=yes
14271 hardcode_libdir_flag_spec_FC='-L$libdir'
14272 hardcode_libdir_separator_FC=
14275 esac
14276 shared_flag='-shared'
14277 if test "$aix_use_runtimelinking" = yes; then
14278 shared_flag="$shared_flag "'${wl}-G'
14280 else
14281 # not using gcc
14282 if test "$host_cpu" = ia64; then
14283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14284 # chokes on -Wl,-G. The following line is correct:
14285 shared_flag='-G'
14286 else
14287 if test "$aix_use_runtimelinking" = yes; then
14288 shared_flag='${wl}-G'
14289 else
14290 shared_flag='${wl}-bM:SRE'
14295 export_dynamic_flag_spec_FC='${wl}-bexpall'
14296 # It seems that -bexpall does not export symbols beginning with
14297 # underscore (_), so it is better to generate a list of symbols to export.
14298 always_export_symbols_FC=yes
14299 if test "$aix_use_runtimelinking" = yes; then
14300 # Warning - without using the other runtime loading flags (-brtl),
14301 # -berok will link without error, but may produce a broken library.
14302 allow_undefined_flag_FC='-berok'
14303 # Determine the default libpath from the value encoded in an
14304 # empty executable.
14305 if test x$gcc_no_link = xyes; then
14306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14308 cat > conftest.$ac_ext <<_ACEOF
14309 program main
14312 _ACEOF
14313 if ac_fn_fc_try_link "$LINENO"; then :
14315 lt_aix_libpath_sed='
14316 /Import File Strings/,/^$/ {
14317 /^0/ {
14318 s/^0 *\(.*\)$/\1/
14322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14323 # Check for a 64-bit object if we didn't find anything.
14324 if test -z "$aix_libpath"; then
14325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14332 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14333 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"
14334 else
14335 if test "$host_cpu" = ia64; then
14336 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14337 allow_undefined_flag_FC="-z nodefs"
14338 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"
14339 else
14340 # Determine the default libpath from the value encoded in an
14341 # empty executable.
14342 if test x$gcc_no_link = xyes; then
14343 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14345 cat > conftest.$ac_ext <<_ACEOF
14346 program main
14349 _ACEOF
14350 if ac_fn_fc_try_link "$LINENO"; then :
14352 lt_aix_libpath_sed='
14353 /Import File Strings/,/^$/ {
14354 /^0/ {
14355 s/^0 *\(.*\)$/\1/
14359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14360 # Check for a 64-bit object if we didn't find anything.
14361 if test -z "$aix_libpath"; then
14362 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14369 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14370 # Warning - without using the other run time loading flags,
14371 # -berok will link without error, but may produce a broken library.
14372 no_undefined_flag_FC=' ${wl}-bernotok'
14373 allow_undefined_flag_FC=' ${wl}-berok'
14374 if test "$with_gnu_ld" = yes; then
14375 # We only use this code for GNU lds that support --whole-archive.
14376 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14377 else
14378 # Exported symbols can be pulled into shared objects from archives
14379 whole_archive_flag_spec_FC='$convenience'
14381 archive_cmds_need_lc_FC=yes
14382 # This is similar to how AIX traditionally builds its shared libraries.
14383 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'
14388 amigaos*)
14389 case $host_cpu in
14390 powerpc)
14391 # see comment about AmigaOS4 .so support
14392 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393 archive_expsym_cmds_FC=''
14395 m68k)
14396 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)'
14397 hardcode_libdir_flag_spec_FC='-L$libdir'
14398 hardcode_minus_L_FC=yes
14400 esac
14403 bsdi[45]*)
14404 export_dynamic_flag_spec_FC=-rdynamic
14407 cygwin* | mingw* | pw32* | cegcc*)
14408 # When not using gcc, we currently assume that we are using
14409 # Microsoft Visual C++.
14410 # hardcode_libdir_flag_spec is actually meaningless, as there is
14411 # no search path for DLLs.
14412 hardcode_libdir_flag_spec_FC=' '
14413 allow_undefined_flag_FC=unsupported
14414 # Tell ltmain to make .lib files, not .a files.
14415 libext=lib
14416 # Tell ltmain to make .dll files, not .so files.
14417 shrext_cmds=".dll"
14418 # FIXME: Setting linknames here is a bad hack.
14419 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14420 # The linker will automatically build a .lib file if we build a DLL.
14421 old_archive_from_new_cmds_FC='true'
14422 # FIXME: Should let the user specify the lib program.
14423 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14424 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14425 enable_shared_with_static_runtimes_FC=yes
14428 darwin* | rhapsody*)
14431 archive_cmds_need_lc_FC=no
14432 hardcode_direct_FC=no
14433 hardcode_automatic_FC=yes
14434 hardcode_shlibpath_var_FC=unsupported
14435 if test "$lt_cv_ld_force_load" = "yes"; then
14436 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\"`'
14437 else
14438 whole_archive_flag_spec_FC=''
14440 link_all_deplibs_FC=yes
14441 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14442 case $cc_basename in
14443 ifort*) _lt_dar_can_shared=yes ;;
14444 *) _lt_dar_can_shared=$GCC ;;
14445 esac
14446 if test "$_lt_dar_can_shared" = "yes"; then
14447 output_verbose_link_cmd=func_echo_all
14448 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}"
14449 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14450 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}"
14451 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}"
14453 else
14454 ld_shlibs_FC=no
14459 dgux*)
14460 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14461 hardcode_libdir_flag_spec_FC='-L$libdir'
14462 hardcode_shlibpath_var_FC=no
14465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14466 # support. Future versions do this automatically, but an explicit c++rt0.o
14467 # does not break anything, and helps significantly (at the cost of a little
14468 # extra space).
14469 freebsd2.2*)
14470 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14471 hardcode_libdir_flag_spec_FC='-R$libdir'
14472 hardcode_direct_FC=yes
14473 hardcode_shlibpath_var_FC=no
14476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14477 freebsd2.*)
14478 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14479 hardcode_direct_FC=yes
14480 hardcode_minus_L_FC=yes
14481 hardcode_shlibpath_var_FC=no
14484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14485 freebsd* | dragonfly*)
14486 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14487 hardcode_libdir_flag_spec_FC='-R$libdir'
14488 hardcode_direct_FC=yes
14489 hardcode_shlibpath_var_FC=no
14492 hpux9*)
14493 if test "$GCC" = yes; then
14494 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'
14495 else
14496 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'
14498 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14499 hardcode_libdir_separator_FC=:
14500 hardcode_direct_FC=yes
14502 # hardcode_minus_L: Not really in the search PATH,
14503 # but as the default location of the library.
14504 hardcode_minus_L_FC=yes
14505 export_dynamic_flag_spec_FC='${wl}-E'
14508 hpux10*)
14509 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14510 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14511 else
14512 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14514 if test "$with_gnu_ld" = no; then
14515 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14516 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14517 hardcode_libdir_separator_FC=:
14518 hardcode_direct_FC=yes
14519 hardcode_direct_absolute_FC=yes
14520 export_dynamic_flag_spec_FC='${wl}-E'
14521 # hardcode_minus_L: Not really in the search PATH,
14522 # but as the default location of the library.
14523 hardcode_minus_L_FC=yes
14527 hpux11*)
14528 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14529 case $host_cpu in
14530 hppa*64*)
14531 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 ia64*)
14534 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14539 esac
14540 else
14541 case $host_cpu in
14542 hppa*64*)
14543 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 ia64*)
14546 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14549 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14551 esac
14553 if test "$with_gnu_ld" = no; then
14554 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14555 hardcode_libdir_separator_FC=:
14557 case $host_cpu in
14558 hppa*64*|ia64*)
14559 hardcode_direct_FC=no
14560 hardcode_shlibpath_var_FC=no
14563 hardcode_direct_FC=yes
14564 hardcode_direct_absolute_FC=yes
14565 export_dynamic_flag_spec_FC='${wl}-E'
14567 # hardcode_minus_L: Not really in the search PATH,
14568 # but as the default location of the library.
14569 hardcode_minus_L_FC=yes
14571 esac
14575 irix5* | irix6* | nonstopux*)
14576 if test "$GCC" = yes; then
14577 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'
14578 # Try to use the -exported_symbol ld option, if it does not
14579 # work, assume that -exports_file does not work either and
14580 # implicitly export all symbols.
14581 save_LDFLAGS="$LDFLAGS"
14582 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14583 if test x$gcc_no_link = xyes; then
14584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14586 cat > conftest.$ac_ext <<_ACEOF
14587 int foo(void) {}
14588 _ACEOF
14589 if ac_fn_fc_try_link "$LINENO"; then :
14590 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'
14593 rm -f core conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
14595 LDFLAGS="$save_LDFLAGS"
14596 else
14597 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'
14598 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'
14600 archive_cmds_need_lc_FC='no'
14601 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14602 hardcode_libdir_separator_FC=:
14603 inherit_rpath_FC=yes
14604 link_all_deplibs_FC=yes
14607 netbsd*)
14608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14609 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14610 else
14611 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14613 hardcode_libdir_flag_spec_FC='-R$libdir'
14614 hardcode_direct_FC=yes
14615 hardcode_shlibpath_var_FC=no
14618 newsos6)
14619 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620 hardcode_direct_FC=yes
14621 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator_FC=:
14623 hardcode_shlibpath_var_FC=no
14626 *nto* | *qnx*)
14629 openbsd*)
14630 if test -f /usr/libexec/ld.so; then
14631 hardcode_direct_FC=yes
14632 hardcode_shlibpath_var_FC=no
14633 hardcode_direct_absolute_FC=yes
14634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14635 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14636 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14637 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14638 export_dynamic_flag_spec_FC='${wl}-E'
14639 else
14640 case $host_os in
14641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14642 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_libdir_flag_spec_FC='-R$libdir'
14646 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14647 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14649 esac
14651 else
14652 ld_shlibs_FC=no
14656 os2*)
14657 hardcode_libdir_flag_spec_FC='-L$libdir'
14658 hardcode_minus_L_FC=yes
14659 allow_undefined_flag_FC=unsupported
14660 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'
14661 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14664 osf3*)
14665 if test "$GCC" = yes; then
14666 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14667 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'
14668 else
14669 allow_undefined_flag_FC=' -expect_unresolved \*'
14670 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'
14672 archive_cmds_need_lc_FC='no'
14673 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14674 hardcode_libdir_separator_FC=:
14677 osf4* | osf5*) # as osf3* with the addition of -msym flag
14678 if test "$GCC" = yes; then
14679 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14680 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'
14681 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14682 else
14683 allow_undefined_flag_FC=' -expect_unresolved \*'
14684 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'
14685 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~
14686 $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'
14688 # Both c and cxx compiler support -rpath directly
14689 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14691 archive_cmds_need_lc_FC='no'
14692 hardcode_libdir_separator_FC=:
14695 solaris*)
14696 no_undefined_flag_FC=' -z defs'
14697 if test "$GCC" = yes; then
14698 wlarc='${wl}'
14699 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14700 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14701 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14702 else
14703 case `$CC -V 2>&1` in
14704 *"Compilers 5.0"*)
14705 wlarc=''
14706 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14711 wlarc='${wl}'
14712 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14713 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14714 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14716 esac
14718 hardcode_libdir_flag_spec_FC='-R$libdir'
14719 hardcode_shlibpath_var_FC=no
14720 case $host_os in
14721 solaris2.[0-5] | solaris2.[0-5].*) ;;
14723 # The compiler driver will combine and reorder linker options,
14724 # but understands `-z linker_flag'. GCC discards it without `$wl',
14725 # but is careful enough not to reorder.
14726 # Supported since Solaris 2.6 (maybe 2.5.1?)
14727 if test "$GCC" = yes; then
14728 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14729 else
14730 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14733 esac
14734 link_all_deplibs_FC=yes
14737 sunos4*)
14738 if test "x$host_vendor" = xsequent; then
14739 # Use $CC to link under sequent, because it throws in some extra .o
14740 # files that make .init and .fini sections work.
14741 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14742 else
14743 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14745 hardcode_libdir_flag_spec_FC='-L$libdir'
14746 hardcode_direct_FC=yes
14747 hardcode_minus_L_FC=yes
14748 hardcode_shlibpath_var_FC=no
14751 sysv4)
14752 case $host_vendor in
14753 sni)
14754 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_direct_FC=yes # is this really true???
14757 siemens)
14758 ## LD is ld it makes a PLAMLIB
14759 ## CC just makes a GrossModule.
14760 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14761 reload_cmds_FC='$CC -r -o $output$reload_objs'
14762 hardcode_direct_FC=no
14764 motorola)
14765 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14766 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14768 esac
14769 runpath_var='LD_RUN_PATH'
14770 hardcode_shlibpath_var_FC=no
14773 sysv4.3*)
14774 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775 hardcode_shlibpath_var_FC=no
14776 export_dynamic_flag_spec_FC='-Bexport'
14779 sysv4*MP*)
14780 if test -d /usr/nec; then
14781 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14782 hardcode_shlibpath_var_FC=no
14783 runpath_var=LD_RUN_PATH
14784 hardcode_runpath_var=yes
14785 ld_shlibs_FC=yes
14789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14790 no_undefined_flag_FC='${wl}-z,text'
14791 archive_cmds_need_lc_FC=no
14792 hardcode_shlibpath_var_FC=no
14793 runpath_var='LD_RUN_PATH'
14795 if test "$GCC" = yes; then
14796 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14797 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 else
14799 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14800 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 sysv5* | sco3.2v5* | sco5v6*)
14805 # Note: We can NOT use -z defs as we might desire, because we do not
14806 # link with -lc, and that would cause any symbols used from libc to
14807 # always be unresolved, which means just about no library would
14808 # ever link correctly. If we're not using GNU ld we use -z text
14809 # though, which does catch some bad symbols but isn't as heavy-handed
14810 # as -z defs.
14811 no_undefined_flag_FC='${wl}-z,text'
14812 allow_undefined_flag_FC='${wl}-z,nodefs'
14813 archive_cmds_need_lc_FC=no
14814 hardcode_shlibpath_var_FC=no
14815 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14816 hardcode_libdir_separator_FC=':'
14817 link_all_deplibs_FC=yes
14818 export_dynamic_flag_spec_FC='${wl}-Bexport'
14819 runpath_var='LD_RUN_PATH'
14821 if test "$GCC" = yes; then
14822 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 else
14825 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 uts4*)
14831 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14832 hardcode_libdir_flag_spec_FC='-L$libdir'
14833 hardcode_shlibpath_var_FC=no
14837 ld_shlibs_FC=no
14839 esac
14841 if test x$host_vendor = xsni; then
14842 case $host in
14843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14844 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14846 esac
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14851 $as_echo "$ld_shlibs_FC" >&6; }
14852 test "$ld_shlibs_FC" = no && can_build_shared=no
14854 with_gnu_ld_FC=$with_gnu_ld
14862 # Do we need to explicitly link libc?
14864 case "x$archive_cmds_need_lc_FC" in
14865 x|xyes)
14866 # Assume -lc should be added
14867 archive_cmds_need_lc_FC=yes
14869 if test "$enable_shared" = yes && test "$GCC" = yes; then
14870 case $archive_cmds_FC in
14871 *'~'*)
14872 # FIXME: we may have to deal with multi-command sequences.
14874 '$CC '*)
14875 # Test whether the compiler implicitly links with -lc since on some
14876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14877 # to ld, don't add -lc before -lgcc.
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14880 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 $RM conftest*
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14887 (eval $ac_compile) 2>&5
14888 ac_status=$?
14889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14890 test $ac_status = 0; } 2>conftest.err; then
14891 soname=conftest
14892 lib=conftest
14893 libobjs=conftest.$ac_objext
14894 deplibs=
14895 wl=$lt_prog_compiler_wl_FC
14896 pic_flag=$lt_prog_compiler_pic_FC
14897 compiler_flags=-v
14898 linker_flags=-v
14899 verstring=
14900 output_objdir=.
14901 libname=conftest
14902 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14903 allow_undefined_flag_FC=
14904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14905 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14906 ac_status=$?
14907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14908 test $ac_status = 0; }
14909 then
14910 lt_cv_archive_cmds_need_lc_FC=no
14911 else
14912 lt_cv_archive_cmds_need_lc_FC=yes
14914 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14915 else
14916 cat conftest.err 1>&5
14918 $RM conftest*
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14922 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14923 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14925 esac
14928 esac
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14996 library_names_spec=
14997 libname_spec='lib$name'
14998 soname_spec=
14999 shrext_cmds=".so"
15000 postinstall_cmds=
15001 postuninstall_cmds=
15002 finish_cmds=
15003 finish_eval=
15004 shlibpath_var=
15005 shlibpath_overrides_runpath=unknown
15006 version_type=none
15007 dynamic_linker="$host_os ld.so"
15008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15009 need_lib_prefix=unknown
15010 hardcode_into_libs=no
15012 # when you set need_version to no, make sure it does not cause -set_version
15013 # flags to be left without arguments
15014 need_version=unknown
15016 case $host_os in
15017 aix3*)
15018 version_type=linux
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15020 shlibpath_var=LIBPATH
15022 # AIX 3 has no versioning support, so we append a major version to the name.
15023 soname_spec='${libname}${release}${shared_ext}$major'
15026 aix[4-9]*)
15027 version_type=linux
15028 need_lib_prefix=no
15029 need_version=no
15030 hardcode_into_libs=yes
15031 if test "$host_cpu" = ia64; then
15032 # AIX 5 supports IA64
15033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 else
15036 # With GCC up to 2.95.x, collect2 would create an import file
15037 # for dependence libraries. The import file would start with
15038 # the line `#! .'. This would cause the generated library to
15039 # depend on `.', always an invalid library. This was fixed in
15040 # development snapshots of GCC prior to 3.0.
15041 case $host_os in
15042 aix4 | aix4.[01] | aix4.[01].*)
15043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15044 echo ' yes '
15045 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15047 else
15048 can_build_shared=no
15051 esac
15052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15053 # soname into executable. Probably we can add versioning support to
15054 # collect2, so additional links can be useful in future.
15055 if test "$aix_use_runtimelinking" = yes; then
15056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15057 # instead of lib<name>.a to let people know that these are not
15058 # typical AIX shared libraries.
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 else
15061 # We preserve .a as extension for shared libraries through AIX4.2
15062 # and later when we are not doing run time linking.
15063 library_names_spec='${libname}${release}.a $libname.a'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15066 shlibpath_var=LIBPATH
15070 amigaos*)
15071 case $host_cpu in
15072 powerpc)
15073 # Since July 2007 AmigaOS4 officially supports .so libraries.
15074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077 m68k)
15078 library_names_spec='$libname.ixlibrary $libname.a'
15079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15080 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'
15082 esac
15085 beos*)
15086 library_names_spec='${libname}${shared_ext}'
15087 dynamic_linker="$host_os ld.so"
15088 shlibpath_var=LIBRARY_PATH
15091 bsdi[45]*)
15092 version_type=linux
15093 need_version=no
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15100 # the default ld.so.conf also contains /usr/contrib/lib and
15101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15102 # libtool to hard-code these into programs
15105 cygwin* | mingw* | pw32* | cegcc*)
15106 version_type=windows
15107 shrext_cmds=".dll"
15108 need_version=no
15109 need_lib_prefix=no
15111 case $GCC,$host_os in
15112 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15113 library_names_spec='$libname.dll.a'
15114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15115 postinstall_cmds='base_file=`basename \${file}`~
15116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15117 dldir=$destdir/`dirname \$dlpath`~
15118 test -d \$dldir || mkdir -p \$dldir~
15119 $install_prog $dir/$dlname \$dldir/$dlname~
15120 chmod a+x \$dldir/$dlname~
15121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15125 dlpath=$dir/\$dldll~
15126 $RM \$dlpath'
15127 shlibpath_overrides_runpath=yes
15129 case $host_os in
15130 cygwin*)
15131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15135 mingw* | cegcc*)
15136 # MinGW DLLs use traditional 'lib' prefix
15137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15139 pw32*)
15140 # pw32 DLLs use 'pw' prefix rather than 'lib'
15141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15143 esac
15147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15149 esac
15150 dynamic_linker='Win32 ld.exe'
15151 # FIXME: first we should search . and the directory the executable is in
15152 shlibpath_var=PATH
15155 darwin* | rhapsody*)
15156 dynamic_linker="$host_os dyld"
15157 version_type=darwin
15158 need_lib_prefix=no
15159 need_version=no
15160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15161 soname_spec='${libname}${release}${major}$shared_ext'
15162 shlibpath_overrides_runpath=yes
15163 shlibpath_var=DYLD_LIBRARY_PATH
15164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15169 dgux*)
15170 version_type=linux
15171 need_lib_prefix=no
15172 need_version=no
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 shlibpath_var=LD_LIBRARY_PATH
15178 freebsd* | dragonfly*)
15179 # DragonFly does not have aout. When/if they implement a new
15180 # versioning mechanism, adjust this.
15181 if test -x /usr/bin/objformat; then
15182 objformat=`/usr/bin/objformat`
15183 else
15184 case $host_os in
15185 freebsd[23].*) objformat=aout ;;
15186 *) objformat=elf ;;
15187 esac
15189 version_type=freebsd-$objformat
15190 case $version_type in
15191 freebsd-elf*)
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15193 need_version=no
15194 need_lib_prefix=no
15196 freebsd-*)
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15198 need_version=yes
15200 esac
15201 shlibpath_var=LD_LIBRARY_PATH
15202 case $host_os in
15203 freebsd2.*)
15204 shlibpath_overrides_runpath=yes
15206 freebsd3.[01]* | freebsdelf3.[01]*)
15207 shlibpath_overrides_runpath=yes
15208 hardcode_into_libs=yes
15210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15212 shlibpath_overrides_runpath=no
15213 hardcode_into_libs=yes
15215 *) # from 4.6 on, and DragonFly
15216 shlibpath_overrides_runpath=yes
15217 hardcode_into_libs=yes
15219 esac
15222 gnu*)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 hardcode_into_libs=yes
15232 haiku*)
15233 version_type=linux
15234 need_lib_prefix=no
15235 need_version=no
15236 dynamic_linker="$host_os runtime_loader"
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LIBRARY_PATH
15240 shlibpath_overrides_runpath=yes
15241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15242 hardcode_into_libs=yes
15245 hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 case $host_cpu in
15252 ia64*)
15253 shrext_cmds='.so'
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262 else
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15267 hppa*64*)
15268 shrext_cmds='.sl'
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15279 shrext_cmds='.sl'
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15286 esac
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15288 postinstall_cmds='chmod 555 $lib'
15289 # or fails outright, so override atomically:
15290 install_override_mode=555
15293 interix[3-9]*)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15305 irix5* | irix6* | nonstopux*)
15306 case $host_os in
15307 nonstopux*) version_type=nonstopux ;;
15309 if test "$lt_cv_prog_gnu_ld" = yes; then
15310 version_type=linux
15311 else
15312 version_type=irix
15313 fi ;;
15314 esac
15315 need_lib_prefix=no
15316 need_version=no
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 case $host_os in
15320 irix5* | nonstopux*)
15321 libsuff= shlibsuff=
15324 case $LD in # libtool.m4 will add one of these switches to LD
15325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15326 libsuff= shlibsuff= libmagic=32-bit;;
15327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15328 libsuff=32 shlibsuff=N32 libmagic=N32;;
15329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15331 *) libsuff= shlibsuff= libmagic=never-match;;
15332 esac
15334 esac
15335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15336 shlibpath_overrides_runpath=no
15337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15339 hardcode_into_libs=yes
15342 # No shared lib support for Linux oldld, aout, or coff.
15343 linux*oldld* | linux*aout* | linux*coff*)
15344 dynamic_linker=no
15347 # This must be Linux ELF.
15348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15349 version_type=linux
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15358 # Some binutils ld are patched to set DT_RUNPATH
15359 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 lt_cv_shlibpath_overrides_runpath=no
15363 save_LDFLAGS=$LDFLAGS
15364 save_libdir=$libdir
15365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15367 if test x$gcc_no_link = xyes; then
15368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15370 cat > conftest.$ac_ext <<_ACEOF
15371 program main
15374 _ACEOF
15375 if ac_fn_fc_try_link "$LINENO"; then :
15376 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15377 lt_cv_shlibpath_overrides_runpath=yes
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 LDFLAGS=$save_LDFLAGS
15383 libdir=$save_libdir
15387 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15389 # This implies no fast_install, which is unacceptable.
15390 # Some rework will be needed to allow for fast_install
15391 # before this can be enabled.
15392 hardcode_into_libs=yes
15394 # Append ld.so.conf contents to the search path
15395 if test -f /etc/ld.so.conf; then
15396 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' ' '`
15397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15400 # We used to test for /lib/ld.so.1 and disable shared libraries on
15401 # powerpc, because MkLinux only supported shared libraries with the
15402 # GNU dynamic linker. Since this was broken with cross compilers,
15403 # most powerpc-linux boxes support dynamic linking these days and
15404 # people can always --disable-shared, the test was removed, and we
15405 # assume the GNU/Linux dynamic linker is in use.
15406 dynamic_linker='GNU/Linux ld.so'
15409 netbsd*)
15410 version_type=sunos
15411 need_lib_prefix=no
15412 need_version=no
15413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15416 dynamic_linker='NetBSD (a.out) ld.so'
15417 else
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 dynamic_linker='NetBSD ld.elf_so'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=yes
15424 hardcode_into_libs=yes
15427 newsos6)
15428 version_type=linux
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=yes
15434 *nto* | *qnx*)
15435 version_type=qnx
15436 need_lib_prefix=no
15437 need_version=no
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 hardcode_into_libs=yes
15443 dynamic_linker='ldqnx.so'
15446 openbsd*)
15447 version_type=sunos
15448 sys_lib_dlsearch_path_spec="/usr/lib"
15449 need_lib_prefix=no
15450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15451 case $host_os in
15452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15453 *) need_version=no ;;
15454 esac
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15459 case $host_os in
15460 openbsd2.[89] | openbsd2.[89].*)
15461 shlibpath_overrides_runpath=no
15464 shlibpath_overrides_runpath=yes
15466 esac
15467 else
15468 shlibpath_overrides_runpath=yes
15472 os2*)
15473 libname_spec='$name'
15474 shrext_cmds=".dll"
15475 need_lib_prefix=no
15476 library_names_spec='$libname${shared_ext} $libname.a'
15477 dynamic_linker='OS/2 ld.exe'
15478 shlibpath_var=LIBPATH
15481 osf3* | osf4* | osf5*)
15482 version_type=osf
15483 need_lib_prefix=no
15484 need_version=no
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15492 rdos*)
15493 dynamic_linker=no
15496 solaris*)
15497 version_type=linux
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=yes
15504 hardcode_into_libs=yes
15505 # ldd complains unless libraries are executable
15506 postinstall_cmds='chmod +x $lib'
15509 sunos4*)
15510 version_type=sunos
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 if test "$with_gnu_ld" = yes; then
15516 need_lib_prefix=no
15518 need_version=yes
15521 sysv4 | sysv4.3*)
15522 version_type=linux
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524 soname_spec='${libname}${release}${shared_ext}$major'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 case $host_vendor in
15527 sni)
15528 shlibpath_overrides_runpath=no
15529 need_lib_prefix=no
15530 runpath_var=LD_RUN_PATH
15532 siemens)
15533 need_lib_prefix=no
15535 motorola)
15536 need_lib_prefix=no
15537 need_version=no
15538 shlibpath_overrides_runpath=no
15539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15541 esac
15544 sysv4*MP*)
15545 if test -d /usr/nec ;then
15546 version_type=linux
15547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15548 soname_spec='$libname${shared_ext}.$major'
15549 shlibpath_var=LD_LIBRARY_PATH
15553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15554 version_type=freebsd-elf
15555 need_lib_prefix=no
15556 need_version=no
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes
15561 hardcode_into_libs=yes
15562 if test "$with_gnu_ld" = yes; then
15563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15564 else
15565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15566 case $host_os in
15567 sco3.2v5*)
15568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15570 esac
15572 sys_lib_dlsearch_path_spec='/usr/lib'
15575 tpf*)
15576 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15577 version_type=linux
15578 need_lib_prefix=no
15579 need_version=no
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=no
15583 hardcode_into_libs=yes
15586 uts4*)
15587 version_type=linux
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 shlibpath_var=LD_LIBRARY_PATH
15594 dynamic_linker=no
15596 esac
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15598 $as_echo "$dynamic_linker" >&6; }
15599 test "$dynamic_linker" = no && can_build_shared=no
15601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15602 if test "$GCC" = yes; then
15603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15606 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15607 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15609 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15610 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15651 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15652 hardcode_action_FC=
15653 if test -n "$hardcode_libdir_flag_spec_FC" ||
15654 test -n "$runpath_var_FC" ||
15655 test "X$hardcode_automatic_FC" = "Xyes" ; then
15657 # We can hardcode non-existent directories.
15658 if test "$hardcode_direct_FC" != no &&
15659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15660 # have to relink, otherwise we might link with an installed library
15661 # when we should be linking with a yet-to-be-installed one
15662 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15663 test "$hardcode_minus_L_FC" != no; then
15664 # Linking always hardcodes the temporary library directory.
15665 hardcode_action_FC=relink
15666 else
15667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15668 hardcode_action_FC=immediate
15670 else
15671 # We cannot hardcode anything, or else we can only hardcode existing
15672 # directories.
15673 hardcode_action_FC=unsupported
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15676 $as_echo "$hardcode_action_FC" >&6; }
15678 if test "$hardcode_action_FC" = relink ||
15679 test "$inherit_rpath_FC" = yes; then
15680 # Fast installation is not supported
15681 enable_fast_install=no
15682 elif test "$shlibpath_overrides_runpath" = yes ||
15683 test "$enable_shared" = no; then
15684 # Fast installation is not necessary
15685 enable_fast_install=needless
15694 fi # test -n "$compiler"
15696 GCC=$lt_save_GCC
15697 CC="$lt_save_CC"
15698 fi # test "$_lt_disable_FC" != yes
15700 ac_ext=c
15701 ac_cpp='$CPP $CPPFLAGS'
15702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15708 # extra LD Flags which are required for targets
15709 case "${host}" in
15710 *-darwin*)
15711 # Darwin needs -single_module when linking libgfortran
15712 extra_ldflags_libgfortran=-Wl,-single_module
15714 esac
15717 # We need a working compiler at that point, otherwise give a clear
15718 # error message and bail out.
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15721 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15722 ac_ext=${ac_fc_srcext-f}
15723 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15724 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15725 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15727 cat > conftest.$ac_ext <<_ACEOF
15729 program foo
15730 real, parameter :: bar = sin (12.34 / 2.5)
15731 end program foo
15732 _ACEOF
15733 if ac_fn_fc_try_compile "$LINENO"; then :
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15735 $as_echo "yes" >&6; }
15736 else
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738 $as_echo "no" >&6; }
15739 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 ac_ext=c
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15751 # Check whether --enable-largefile was given.
15752 if test "${enable_largefile+set}" = set; then :
15753 enableval=$enable_largefile;
15756 if test "$enable_largefile" != no; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15759 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15760 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15761 $as_echo_n "(cached) " >&6
15762 else
15763 ac_cv_sys_largefile_CC=no
15764 if test "$GCC" != yes; then
15765 ac_save_CC=$CC
15766 while :; do
15767 # IRIX 6.2 and later do not support large files by default,
15768 # so use the C compiler's -n32 option if that helps.
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 #include <sys/types.h>
15772 /* Check that off_t can represent 2**63 - 1 correctly.
15773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15774 since some C++ compilers masquerading as C compilers
15775 incorrectly reject 9223372036854775807. */
15776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15778 && LARGE_OFF_T % 2147483647 == 1)
15779 ? 1 : -1];
15781 main ()
15785 return 0;
15787 _ACEOF
15788 if ac_fn_c_try_compile "$LINENO"; then :
15789 break
15791 rm -f core conftest.err conftest.$ac_objext
15792 CC="$CC -n32"
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794 ac_cv_sys_largefile_CC=' -n32'; break
15796 rm -f core conftest.err conftest.$ac_objext
15797 break
15798 done
15799 CC=$ac_save_CC
15800 rm -f conftest.$ac_ext
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15804 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15805 if test "$ac_cv_sys_largefile_CC" != no; then
15806 CC=$CC$ac_cv_sys_largefile_CC
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15810 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15811 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15812 $as_echo_n "(cached) " >&6
15813 else
15814 while :; do
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817 #include <sys/types.h>
15818 /* Check that off_t can represent 2**63 - 1 correctly.
15819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15820 since some C++ compilers masquerading as C compilers
15821 incorrectly reject 9223372036854775807. */
15822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15824 && LARGE_OFF_T % 2147483647 == 1)
15825 ? 1 : -1];
15827 main ()
15831 return 0;
15833 _ACEOF
15834 if ac_fn_c_try_compile "$LINENO"; then :
15835 ac_cv_sys_file_offset_bits=no; break
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15840 #define _FILE_OFFSET_BITS 64
15841 #include <sys/types.h>
15842 /* Check that off_t can represent 2**63 - 1 correctly.
15843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15844 since some C++ compilers masquerading as C compilers
15845 incorrectly reject 9223372036854775807. */
15846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15848 && LARGE_OFF_T % 2147483647 == 1)
15849 ? 1 : -1];
15851 main ()
15855 return 0;
15857 _ACEOF
15858 if ac_fn_c_try_compile "$LINENO"; then :
15859 ac_cv_sys_file_offset_bits=64; break
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862 ac_cv_sys_file_offset_bits=unknown
15863 break
15864 done
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15867 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15868 case $ac_cv_sys_file_offset_bits in #(
15869 no | unknown) ;;
15871 cat >>confdefs.h <<_ACEOF
15872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15873 _ACEOF
15875 esac
15876 rm -rf conftest*
15877 if test $ac_cv_sys_file_offset_bits = unknown; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15879 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15880 if test "${ac_cv_sys_large_files+set}" = set; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 while :; do
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 #include <sys/types.h>
15887 /* Check that off_t can represent 2**63 - 1 correctly.
15888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15889 since some C++ compilers masquerading as C compilers
15890 incorrectly reject 9223372036854775807. */
15891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15893 && LARGE_OFF_T % 2147483647 == 1)
15894 ? 1 : -1];
15896 main ()
15900 return 0;
15902 _ACEOF
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904 ac_cv_sys_large_files=no; break
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 #define _LARGE_FILES 1
15910 #include <sys/types.h>
15911 /* Check that off_t can represent 2**63 - 1 correctly.
15912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15913 since some C++ compilers masquerading as C compilers
15914 incorrectly reject 9223372036854775807. */
15915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15917 && LARGE_OFF_T % 2147483647 == 1)
15918 ? 1 : -1];
15920 main ()
15924 return 0;
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928 ac_cv_sys_large_files=1; break
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 ac_cv_sys_large_files=unknown
15932 break
15933 done
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15936 $as_echo "$ac_cv_sys_large_files" >&6; }
15937 case $ac_cv_sys_large_files in #(
15938 no | unknown) ;;
15940 cat >>confdefs.h <<_ACEOF
15941 #define _LARGE_FILES $ac_cv_sys_large_files
15942 _ACEOF
15944 esac
15945 rm -rf conftest*
15950 # Types
15951 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15952 if test "x$ac_cv_type_off_t" = x""yes; then :
15954 else
15956 cat >>confdefs.h <<_ACEOF
15957 #define off_t long int
15958 _ACEOF
15963 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15964 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15966 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15968 else
15969 for ac_type in 'int' 'long int' 'long long int'; do
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 $ac_includes_default
15974 main ()
15976 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15977 test_array [0] = 0
15980 return 0;
15982 _ACEOF
15983 if ac_fn_c_try_compile "$LINENO"; then :
15985 cat >>confdefs.h <<_ACEOF
15986 #define intptr_t $ac_type
15987 _ACEOF
15989 ac_type=
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 test -z "$ac_type" && break
15993 done
15998 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15999 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16001 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16003 else
16004 for ac_type in 'unsigned int' 'unsigned long int' \
16005 'unsigned long long int'; do
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008 $ac_includes_default
16010 main ()
16012 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16013 test_array [0] = 0
16016 return 0;
16018 _ACEOF
16019 if ac_fn_c_try_compile "$LINENO"; then :
16021 cat >>confdefs.h <<_ACEOF
16022 #define uintptr_t $ac_type
16023 _ACEOF
16025 ac_type=
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 test -z "$ac_type" && break
16029 done
16033 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16034 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_PTRDIFF_T 1
16038 _ACEOF
16044 # check header files (we assume C89 is available, so don't check for that)
16048 for ac_header in $ac_header_list
16049 do :
16050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16053 eval as_val=\$$as_ac_Header
16054 if test "x$as_val" = x""yes; then :
16055 cat >>confdefs.h <<_ACEOF
16056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 _ACEOF
16061 done
16097 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16099 acx_cv_header_stdint=stddef.h
16100 acx_cv_header_stdint_kind="(already complete)"
16101 for i in stdint.h $inttype_headers; do
16102 unset ac_cv_type_uintptr_t
16103 unset ac_cv_type_uintmax_t
16104 unset ac_cv_type_int_least32_t
16105 unset ac_cv_type_int_fast32_t
16106 unset ac_cv_type_uint64_t
16107 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16108 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16109 #include <$i>
16111 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16112 acx_cv_header_stdint=$i
16113 else
16114 continue
16117 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16118 #include <$i>
16120 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16122 else
16123 acx_cv_header_stdint_kind="(mostly complete)"
16126 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16127 #include <$i>
16129 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16131 else
16132 acx_cv_header_stdint_kind="(mostly complete)"
16135 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16136 #include <$i>
16138 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16140 else
16141 acx_cv_header_stdint_kind="(mostly complete)"
16144 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16145 #include <$i>
16147 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16149 else
16150 acx_cv_header_stdint_kind="(lacks uint64_t)"
16153 break
16154 done
16155 if test "$acx_cv_header_stdint" = stddef.h; then
16156 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16157 for i in stdint.h $inttype_headers; do
16158 unset ac_cv_type_uintptr_t
16159 unset ac_cv_type_uint32_t
16160 unset ac_cv_type_uint64_t
16161 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16162 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16163 #include <$i>
16165 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16166 acx_cv_header_stdint=$i
16167 else
16168 continue
16171 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16172 #include <$i>
16174 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16178 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16179 #include <$i>
16181 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16185 break
16186 done
16188 if test "$acx_cv_header_stdint" = stddef.h; then
16189 acx_cv_header_stdint_kind="(u_intXX_t style)"
16190 for i in sys/types.h $inttype_headers; do
16191 unset ac_cv_type_u_int32_t
16192 unset ac_cv_type_u_int64_t
16193 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16194 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16195 #include <$i>
16197 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16198 acx_cv_header_stdint=$i
16199 else
16200 continue
16203 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16204 #include <$i>
16206 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16210 break
16211 done
16213 if test "$acx_cv_header_stdint" = stddef.h; then
16214 acx_cv_header_stdint_kind="(using manual detection)"
16217 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16218 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16219 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16220 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16221 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16223 # ----------------- Summarize what we found so far
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16226 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16228 case `$as_basename -- gstdint.h ||
16229 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16230 Xgstdint.h : 'X\(//\)$' \| \
16231 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16232 $as_echo X/gstdint.h |
16233 sed '/^.*\/\([^/][^/]*\)\/*$/{
16234 s//\1/
16237 /^X\/\(\/\/\)$/{
16238 s//\1/
16241 /^X\/\(\/\).*/{
16242 s//\1/
16245 s/.*/./; q'` in
16246 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16247 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16248 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16249 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16250 *) ;;
16251 esac
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16254 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16256 # ----------------- done included file, check C basic types --------
16258 # Lacking an uintptr_t? Test size of void *
16259 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16260 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16263 # This bug is HP SR number 8606223364.
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16265 $as_echo_n "checking size of void *... " >&6; }
16266 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16267 $as_echo_n "(cached) " >&6
16268 else
16269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16271 else
16272 if test "$ac_cv_type_void_p" = yes; then
16273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16275 { as_fn_set_status 77
16276 as_fn_error "cannot compute sizeof (void *)
16277 See \`config.log' for more details." "$LINENO" 5; }; }
16278 else
16279 ac_cv_sizeof_void_p=0
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16285 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16289 cat >>confdefs.h <<_ACEOF
16290 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16291 _ACEOF
16294 esac
16296 # Lacking an uint64_t? Test size of long
16297 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16298 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16301 # This bug is HP SR number 8606223364.
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16303 $as_echo_n "checking size of long... " >&6; }
16304 if test "${ac_cv_sizeof_long+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16309 else
16310 if test "$ac_cv_type_long" = yes; then
16311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16313 { as_fn_set_status 77
16314 as_fn_error "cannot compute sizeof (long)
16315 See \`config.log' for more details." "$LINENO" 5; }; }
16316 else
16317 ac_cv_sizeof_long=0
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16323 $as_echo "$ac_cv_sizeof_long" >&6; }
16327 cat >>confdefs.h <<_ACEOF
16328 #define SIZEOF_LONG $ac_cv_sizeof_long
16329 _ACEOF
16332 esac
16334 if test $acx_cv_header_stdint = stddef.h; then
16335 # Lacking a good header? Test size of everything and deduce all types.
16336 # The cast to long int works around a bug in the HP C Compiler
16337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16339 # This bug is HP SR number 8606223364.
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16341 $as_echo_n "checking size of int... " >&6; }
16342 if test "${ac_cv_sizeof_int+set}" = set; then :
16343 $as_echo_n "(cached) " >&6
16344 else
16345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16347 else
16348 if test "$ac_cv_type_int" = yes; then
16349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16351 { as_fn_set_status 77
16352 as_fn_error "cannot compute sizeof (int)
16353 See \`config.log' for more details." "$LINENO" 5; }; }
16354 else
16355 ac_cv_sizeof_int=0
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16361 $as_echo "$ac_cv_sizeof_int" >&6; }
16365 cat >>confdefs.h <<_ACEOF
16366 #define SIZEOF_INT $ac_cv_sizeof_int
16367 _ACEOF
16370 # The cast to long int works around a bug in the HP C Compiler
16371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16373 # This bug is HP SR number 8606223364.
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16375 $as_echo_n "checking size of short... " >&6; }
16376 if test "${ac_cv_sizeof_short+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16381 else
16382 if test "$ac_cv_type_short" = yes; then
16383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16385 { as_fn_set_status 77
16386 as_fn_error "cannot compute sizeof (short)
16387 See \`config.log' for more details." "$LINENO" 5; }; }
16388 else
16389 ac_cv_sizeof_short=0
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16395 $as_echo "$ac_cv_sizeof_short" >&6; }
16399 cat >>confdefs.h <<_ACEOF
16400 #define SIZEOF_SHORT $ac_cv_sizeof_short
16401 _ACEOF
16404 # The cast to long int works around a bug in the HP C Compiler
16405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16407 # This bug is HP SR number 8606223364.
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16409 $as_echo_n "checking size of char... " >&6; }
16410 if test "${ac_cv_sizeof_char+set}" = set; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16415 else
16416 if test "$ac_cv_type_char" = yes; then
16417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16419 { as_fn_set_status 77
16420 as_fn_error "cannot compute sizeof (char)
16421 See \`config.log' for more details." "$LINENO" 5; }; }
16422 else
16423 ac_cv_sizeof_char=0
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16429 $as_echo "$ac_cv_sizeof_char" >&6; }
16433 cat >>confdefs.h <<_ACEOF
16434 #define SIZEOF_CHAR $ac_cv_sizeof_char
16435 _ACEOF
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16440 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16441 case "$ac_cv_sizeof_char" in
16442 1) acx_cv_type_int8_t=char ;;
16443 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16444 esac
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16446 $as_echo "$acx_cv_type_int8_t" >&6; }
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16449 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16450 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16451 2:*) acx_cv_type_int16_t=int ;;
16452 *:2) acx_cv_type_int16_t=short ;;
16453 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16454 esac
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16456 $as_echo "$acx_cv_type_int16_t" >&6; }
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16459 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16460 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16461 4:*) acx_cv_type_int32_t=int ;;
16462 *:4) acx_cv_type_int32_t=long ;;
16463 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16464 esac
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16466 $as_echo "$acx_cv_type_int32_t" >&6; }
16469 # These tests are here to make the output prettier
16471 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16472 case "$ac_cv_sizeof_long" in
16473 8) acx_cv_type_int64_t=long ;;
16474 esac
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16476 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16478 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16481 # Now we can use the above types
16483 if test "$ac_cv_type_uintptr_t" != yes; then
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16485 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16486 case $ac_cv_sizeof_void_p in
16487 2) acx_cv_type_intptr_t=int16_t ;;
16488 4) acx_cv_type_intptr_t=int32_t ;;
16489 8) acx_cv_type_intptr_t=int64_t ;;
16490 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16491 esac
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16493 $as_echo "$acx_cv_type_intptr_t" >&6; }
16496 # ----------------- done all checks, emit header -------------
16497 ac_config_commands="$ac_config_commands gstdint.h"
16502 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16503 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16505 cat >>confdefs.h <<_ACEOF
16506 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16507 _ACEOF
16511 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16512 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16516 _ACEOF
16520 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16521 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_STRUCT_STAT_ST_RDEV 1
16525 _ACEOF
16531 case "${host}--x${with_newlib}" in
16532 mips*--xyes)
16533 hardwire_newlib=1;;
16534 nvptx*--xyes)
16535 hardwire_newlib=1;;
16536 esac
16538 # Check for library functions.
16539 if test "${hardwire_newlib:-0}" -eq 1; then
16540 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16541 # may not work correctly, because the compiler may not be able to
16542 # link executables.
16544 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16547 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16550 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16553 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16556 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16559 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16562 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16565 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16568 # At some point, we should differentiate between architectures
16569 # like x86, which have long double versions, and alpha/powerpc/etc.,
16570 # which don't. For the time being, punt.
16571 if test x"long_double_math_on_this_cpu" = x"yes"; then
16573 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16576 else
16580 for ac_func in $ac_func_list
16581 do :
16582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16584 eval as_val=\$$as_ac_var
16585 if test "x$as_val" = x""yes; then :
16586 cat >>confdefs.h <<_ACEOF
16587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 _ACEOF
16591 done
16694 # Check strerror_r, cannot be above as versions with two and three arguments exist
16696 ac_save_CFLAGS="$CFLAGS"
16697 CFLAGS="-Wimplicit-function-declaration -Werror"
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 #define _GNU_SOURCE 1
16701 #include <string.h>
16702 #include <locale.h>
16704 main ()
16706 char s[128]; strerror_r(5, s, 128);
16708 return 0;
16710 _ACEOF
16711 if ac_fn_c_try_compile "$LINENO"; then :
16713 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 CFLAGS="$ac_save_CFLAGS"
16719 ac_save_CFLAGS="$CFLAGS"
16720 CFLAGS="-Wimplicit-function-declaration -Werror"
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #define _GNU_SOURCE 1
16724 #include <string.h>
16725 #include <locale.h>
16727 main ()
16729 char s[128]; strerror_r(5, s);
16731 return 0;
16733 _ACEOF
16734 if ac_fn_c_try_compile "$LINENO"; then :
16736 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 CFLAGS="$ac_save_CFLAGS"
16743 # Check for C99 (and other IEEE) math functions
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16745 $as_echo_n "checking for sin in -lm... " >&6; }
16746 if test "${ac_cv_lib_m_sin+set}" = set; then :
16747 $as_echo_n "(cached) " >&6
16748 else
16749 ac_check_lib_save_LIBS=$LIBS
16750 LIBS="-lm $LIBS"
16751 if test x$gcc_no_link = xyes; then
16752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char sin ();
16765 main ()
16767 return sin ();
16769 return 0;
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 ac_cv_lib_m_sin=yes
16774 else
16775 ac_cv_lib_m_sin=no
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16782 $as_echo "$ac_cv_lib_m_sin" >&6; }
16783 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16784 cat >>confdefs.h <<_ACEOF
16785 #define HAVE_LIBM 1
16786 _ACEOF
16788 LIBS="-lm $LIBS"
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16799 $as_echo_n "checking for acosf... " >&6; }
16800 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 if test x$gcc_no_link = xyes; then
16804 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16809 #ifdef HAVE_COMPLEX_H
16810 #include <complex.h>
16811 #endif
16812 #ifdef HAVE_MATH_H
16813 #include <math.h>
16814 #endif
16816 int (*ptr)() = (int (*)())acosf;
16819 main ()
16821 return 0;
16824 _ACEOF
16825 if ac_fn_c_try_link "$LINENO"; then :
16826 gcc_cv_math_func_acosf=yes
16827 else
16828 gcc_cv_math_func_acosf=no
16830 rm -f core conftest.err conftest.$ac_objext \
16831 conftest$ac_exeext conftest.$ac_ext
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16834 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16835 if test $gcc_cv_math_func_acosf = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define HAVE_ACOSF 1
16839 _ACEOF
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16847 $as_echo_n "checking for acos... " >&6; }
16848 if test "${gcc_cv_math_func_acos+set}" = set; then :
16849 $as_echo_n "(cached) " >&6
16850 else
16851 if test x$gcc_no_link = xyes; then
16852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16857 #ifdef HAVE_COMPLEX_H
16858 #include <complex.h>
16859 #endif
16860 #ifdef HAVE_MATH_H
16861 #include <math.h>
16862 #endif
16864 int (*ptr)() = (int (*)())acos;
16867 main ()
16869 return 0;
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"; then :
16874 gcc_cv_math_func_acos=yes
16875 else
16876 gcc_cv_math_func_acos=no
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16882 $as_echo "$gcc_cv_math_func_acos" >&6; }
16883 if test $gcc_cv_math_func_acos = yes; then
16885 cat >>confdefs.h <<_ACEOF
16886 #define HAVE_ACOS 1
16887 _ACEOF
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16895 $as_echo_n "checking for acosl... " >&6; }
16896 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16897 $as_echo_n "(cached) " >&6
16898 else
16899 if test x$gcc_no_link = xyes; then
16900 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903 /* end confdefs.h. */
16905 #ifdef HAVE_COMPLEX_H
16906 #include <complex.h>
16907 #endif
16908 #ifdef HAVE_MATH_H
16909 #include <math.h>
16910 #endif
16912 int (*ptr)() = (int (*)())acosl;
16915 main ()
16917 return 0;
16920 _ACEOF
16921 if ac_fn_c_try_link "$LINENO"; then :
16922 gcc_cv_math_func_acosl=yes
16923 else
16924 gcc_cv_math_func_acosl=no
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16930 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16931 if test $gcc_cv_math_func_acosl = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_ACOSL 1
16935 _ACEOF
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16943 $as_echo_n "checking for acoshf... " >&6; }
16944 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16945 $as_echo_n "(cached) " >&6
16946 else
16947 if test x$gcc_no_link = xyes; then
16948 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16953 #ifdef HAVE_COMPLEX_H
16954 #include <complex.h>
16955 #endif
16956 #ifdef HAVE_MATH_H
16957 #include <math.h>
16958 #endif
16960 int (*ptr)() = (int (*)())acoshf;
16963 main ()
16965 return 0;
16968 _ACEOF
16969 if ac_fn_c_try_link "$LINENO"; then :
16970 gcc_cv_math_func_acoshf=yes
16971 else
16972 gcc_cv_math_func_acoshf=no
16974 rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16978 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16979 if test $gcc_cv_math_func_acoshf = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_ACOSHF 1
16983 _ACEOF
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16991 $as_echo_n "checking for acosh... " >&6; }
16992 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16993 $as_echo_n "(cached) " >&6
16994 else
16995 if test x$gcc_no_link = xyes; then
16996 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17001 #ifdef HAVE_COMPLEX_H
17002 #include <complex.h>
17003 #endif
17004 #ifdef HAVE_MATH_H
17005 #include <math.h>
17006 #endif
17008 int (*ptr)() = (int (*)())acosh;
17011 main ()
17013 return 0;
17016 _ACEOF
17017 if ac_fn_c_try_link "$LINENO"; then :
17018 gcc_cv_math_func_acosh=yes
17019 else
17020 gcc_cv_math_func_acosh=no
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17026 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17027 if test $gcc_cv_math_func_acosh = yes; then
17029 cat >>confdefs.h <<_ACEOF
17030 #define HAVE_ACOSH 1
17031 _ACEOF
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17039 $as_echo_n "checking for acoshl... " >&6; }
17040 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 if test x$gcc_no_link = xyes; then
17044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17049 #ifdef HAVE_COMPLEX_H
17050 #include <complex.h>
17051 #endif
17052 #ifdef HAVE_MATH_H
17053 #include <math.h>
17054 #endif
17056 int (*ptr)() = (int (*)())acoshl;
17059 main ()
17061 return 0;
17064 _ACEOF
17065 if ac_fn_c_try_link "$LINENO"; then :
17066 gcc_cv_math_func_acoshl=yes
17067 else
17068 gcc_cv_math_func_acoshl=no
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17074 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17075 if test $gcc_cv_math_func_acoshl = yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_ACOSHL 1
17079 _ACEOF
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17087 $as_echo_n "checking for asinf... " >&6; }
17088 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 if test x$gcc_no_link = xyes; then
17092 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17097 #ifdef HAVE_COMPLEX_H
17098 #include <complex.h>
17099 #endif
17100 #ifdef HAVE_MATH_H
17101 #include <math.h>
17102 #endif
17104 int (*ptr)() = (int (*)())asinf;
17107 main ()
17109 return 0;
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114 gcc_cv_math_func_asinf=yes
17115 else
17116 gcc_cv_math_func_asinf=no
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17122 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17123 if test $gcc_cv_math_func_asinf = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define HAVE_ASINF 1
17127 _ACEOF
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17135 $as_echo_n "checking for asin... " >&6; }
17136 if test "${gcc_cv_math_func_asin+set}" = set; then :
17137 $as_echo_n "(cached) " >&6
17138 else
17139 if test x$gcc_no_link = xyes; then
17140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17145 #ifdef HAVE_COMPLEX_H
17146 #include <complex.h>
17147 #endif
17148 #ifdef HAVE_MATH_H
17149 #include <math.h>
17150 #endif
17152 int (*ptr)() = (int (*)())asin;
17155 main ()
17157 return 0;
17160 _ACEOF
17161 if ac_fn_c_try_link "$LINENO"; then :
17162 gcc_cv_math_func_asin=yes
17163 else
17164 gcc_cv_math_func_asin=no
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17170 $as_echo "$gcc_cv_math_func_asin" >&6; }
17171 if test $gcc_cv_math_func_asin = yes; then
17173 cat >>confdefs.h <<_ACEOF
17174 #define HAVE_ASIN 1
17175 _ACEOF
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17183 $as_echo_n "checking for asinl... " >&6; }
17184 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17185 $as_echo_n "(cached) " >&6
17186 else
17187 if test x$gcc_no_link = xyes; then
17188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17193 #ifdef HAVE_COMPLEX_H
17194 #include <complex.h>
17195 #endif
17196 #ifdef HAVE_MATH_H
17197 #include <math.h>
17198 #endif
17200 int (*ptr)() = (int (*)())asinl;
17203 main ()
17205 return 0;
17208 _ACEOF
17209 if ac_fn_c_try_link "$LINENO"; then :
17210 gcc_cv_math_func_asinl=yes
17211 else
17212 gcc_cv_math_func_asinl=no
17214 rm -f core conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17218 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17219 if test $gcc_cv_math_func_asinl = yes; then
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_ASINL 1
17223 _ACEOF
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17231 $as_echo_n "checking for asinhf... " >&6; }
17232 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17233 $as_echo_n "(cached) " >&6
17234 else
17235 if test x$gcc_no_link = xyes; then
17236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17241 #ifdef HAVE_COMPLEX_H
17242 #include <complex.h>
17243 #endif
17244 #ifdef HAVE_MATH_H
17245 #include <math.h>
17246 #endif
17248 int (*ptr)() = (int (*)())asinhf;
17251 main ()
17253 return 0;
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258 gcc_cv_math_func_asinhf=yes
17259 else
17260 gcc_cv_math_func_asinhf=no
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17266 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17267 if test $gcc_cv_math_func_asinhf = yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_ASINHF 1
17271 _ACEOF
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17279 $as_echo_n "checking for asinh... " >&6; }
17280 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283 if test x$gcc_no_link = xyes; then
17284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17289 #ifdef HAVE_COMPLEX_H
17290 #include <complex.h>
17291 #endif
17292 #ifdef HAVE_MATH_H
17293 #include <math.h>
17294 #endif
17296 int (*ptr)() = (int (*)())asinh;
17299 main ()
17301 return 0;
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306 gcc_cv_math_func_asinh=yes
17307 else
17308 gcc_cv_math_func_asinh=no
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17314 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17315 if test $gcc_cv_math_func_asinh = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_ASINH 1
17319 _ACEOF
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17327 $as_echo_n "checking for asinhl... " >&6; }
17328 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17329 $as_echo_n "(cached) " >&6
17330 else
17331 if test x$gcc_no_link = xyes; then
17332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17337 #ifdef HAVE_COMPLEX_H
17338 #include <complex.h>
17339 #endif
17340 #ifdef HAVE_MATH_H
17341 #include <math.h>
17342 #endif
17344 int (*ptr)() = (int (*)())asinhl;
17347 main ()
17349 return 0;
17352 _ACEOF
17353 if ac_fn_c_try_link "$LINENO"; then :
17354 gcc_cv_math_func_asinhl=yes
17355 else
17356 gcc_cv_math_func_asinhl=no
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17362 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17363 if test $gcc_cv_math_func_asinhl = yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define HAVE_ASINHL 1
17367 _ACEOF
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17375 $as_echo_n "checking for atan2f... " >&6; }
17376 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 if test x$gcc_no_link = xyes; then
17380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17385 #ifdef HAVE_COMPLEX_H
17386 #include <complex.h>
17387 #endif
17388 #ifdef HAVE_MATH_H
17389 #include <math.h>
17390 #endif
17392 int (*ptr)() = (int (*)())atan2f;
17395 main ()
17397 return 0;
17400 _ACEOF
17401 if ac_fn_c_try_link "$LINENO"; then :
17402 gcc_cv_math_func_atan2f=yes
17403 else
17404 gcc_cv_math_func_atan2f=no
17406 rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17410 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17411 if test $gcc_cv_math_func_atan2f = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_ATAN2F 1
17415 _ACEOF
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17423 $as_echo_n "checking for atan2... " >&6; }
17424 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17425 $as_echo_n "(cached) " >&6
17426 else
17427 if test x$gcc_no_link = xyes; then
17428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17433 #ifdef HAVE_COMPLEX_H
17434 #include <complex.h>
17435 #endif
17436 #ifdef HAVE_MATH_H
17437 #include <math.h>
17438 #endif
17440 int (*ptr)() = (int (*)())atan2;
17443 main ()
17445 return 0;
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"; then :
17450 gcc_cv_math_func_atan2=yes
17451 else
17452 gcc_cv_math_func_atan2=no
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17458 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17459 if test $gcc_cv_math_func_atan2 = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_ATAN2 1
17463 _ACEOF
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17471 $as_echo_n "checking for atan2l... " >&6; }
17472 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475 if test x$gcc_no_link = xyes; then
17476 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17481 #ifdef HAVE_COMPLEX_H
17482 #include <complex.h>
17483 #endif
17484 #ifdef HAVE_MATH_H
17485 #include <math.h>
17486 #endif
17488 int (*ptr)() = (int (*)())atan2l;
17491 main ()
17493 return 0;
17496 _ACEOF
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 gcc_cv_math_func_atan2l=yes
17499 else
17500 gcc_cv_math_func_atan2l=no
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17506 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17507 if test $gcc_cv_math_func_atan2l = yes; then
17509 cat >>confdefs.h <<_ACEOF
17510 #define HAVE_ATAN2L 1
17511 _ACEOF
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17519 $as_echo_n "checking for atanf... " >&6; }
17520 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17521 $as_echo_n "(cached) " >&6
17522 else
17523 if test x$gcc_no_link = xyes; then
17524 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17529 #ifdef HAVE_COMPLEX_H
17530 #include <complex.h>
17531 #endif
17532 #ifdef HAVE_MATH_H
17533 #include <math.h>
17534 #endif
17536 int (*ptr)() = (int (*)())atanf;
17539 main ()
17541 return 0;
17544 _ACEOF
17545 if ac_fn_c_try_link "$LINENO"; then :
17546 gcc_cv_math_func_atanf=yes
17547 else
17548 gcc_cv_math_func_atanf=no
17550 rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17554 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17555 if test $gcc_cv_math_func_atanf = yes; then
17557 cat >>confdefs.h <<_ACEOF
17558 #define HAVE_ATANF 1
17559 _ACEOF
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17567 $as_echo_n "checking for atan... " >&6; }
17568 if test "${gcc_cv_math_func_atan+set}" = set; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 if test x$gcc_no_link = xyes; then
17572 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17577 #ifdef HAVE_COMPLEX_H
17578 #include <complex.h>
17579 #endif
17580 #ifdef HAVE_MATH_H
17581 #include <math.h>
17582 #endif
17584 int (*ptr)() = (int (*)())atan;
17587 main ()
17589 return 0;
17592 _ACEOF
17593 if ac_fn_c_try_link "$LINENO"; then :
17594 gcc_cv_math_func_atan=yes
17595 else
17596 gcc_cv_math_func_atan=no
17598 rm -f core conftest.err conftest.$ac_objext \
17599 conftest$ac_exeext conftest.$ac_ext
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17602 $as_echo "$gcc_cv_math_func_atan" >&6; }
17603 if test $gcc_cv_math_func_atan = yes; then
17605 cat >>confdefs.h <<_ACEOF
17606 #define HAVE_ATAN 1
17607 _ACEOF
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17615 $as_echo_n "checking for atanl... " >&6; }
17616 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619 if test x$gcc_no_link = xyes; then
17620 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17625 #ifdef HAVE_COMPLEX_H
17626 #include <complex.h>
17627 #endif
17628 #ifdef HAVE_MATH_H
17629 #include <math.h>
17630 #endif
17632 int (*ptr)() = (int (*)())atanl;
17635 main ()
17637 return 0;
17640 _ACEOF
17641 if ac_fn_c_try_link "$LINENO"; then :
17642 gcc_cv_math_func_atanl=yes
17643 else
17644 gcc_cv_math_func_atanl=no
17646 rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17650 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17651 if test $gcc_cv_math_func_atanl = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define HAVE_ATANL 1
17655 _ACEOF
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17663 $as_echo_n "checking for atanhf... " >&6; }
17664 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17665 $as_echo_n "(cached) " >&6
17666 else
17667 if test x$gcc_no_link = xyes; then
17668 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17673 #ifdef HAVE_COMPLEX_H
17674 #include <complex.h>
17675 #endif
17676 #ifdef HAVE_MATH_H
17677 #include <math.h>
17678 #endif
17680 int (*ptr)() = (int (*)())atanhf;
17683 main ()
17685 return 0;
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690 gcc_cv_math_func_atanhf=yes
17691 else
17692 gcc_cv_math_func_atanhf=no
17694 rm -f core conftest.err conftest.$ac_objext \
17695 conftest$ac_exeext conftest.$ac_ext
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17698 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17699 if test $gcc_cv_math_func_atanhf = yes; then
17701 cat >>confdefs.h <<_ACEOF
17702 #define HAVE_ATANHF 1
17703 _ACEOF
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17711 $as_echo_n "checking for atanh... " >&6; }
17712 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 if test x$gcc_no_link = xyes; then
17716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17721 #ifdef HAVE_COMPLEX_H
17722 #include <complex.h>
17723 #endif
17724 #ifdef HAVE_MATH_H
17725 #include <math.h>
17726 #endif
17728 int (*ptr)() = (int (*)())atanh;
17731 main ()
17733 return 0;
17736 _ACEOF
17737 if ac_fn_c_try_link "$LINENO"; then :
17738 gcc_cv_math_func_atanh=yes
17739 else
17740 gcc_cv_math_func_atanh=no
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17746 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17747 if test $gcc_cv_math_func_atanh = yes; then
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_ATANH 1
17751 _ACEOF
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17759 $as_echo_n "checking for atanhl... " >&6; }
17760 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17763 if test x$gcc_no_link = xyes; then
17764 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17769 #ifdef HAVE_COMPLEX_H
17770 #include <complex.h>
17771 #endif
17772 #ifdef HAVE_MATH_H
17773 #include <math.h>
17774 #endif
17776 int (*ptr)() = (int (*)())atanhl;
17779 main ()
17781 return 0;
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"; then :
17786 gcc_cv_math_func_atanhl=yes
17787 else
17788 gcc_cv_math_func_atanhl=no
17790 rm -f core conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17794 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17795 if test $gcc_cv_math_func_atanhl = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_ATANHL 1
17799 _ACEOF
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17807 $as_echo_n "checking for cargf... " >&6; }
17808 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 if test x$gcc_no_link = xyes; then
17812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17817 #ifdef HAVE_COMPLEX_H
17818 #include <complex.h>
17819 #endif
17820 #ifdef HAVE_MATH_H
17821 #include <math.h>
17822 #endif
17824 int (*ptr)() = (int (*)())cargf;
17827 main ()
17829 return 0;
17832 _ACEOF
17833 if ac_fn_c_try_link "$LINENO"; then :
17834 gcc_cv_math_func_cargf=yes
17835 else
17836 gcc_cv_math_func_cargf=no
17838 rm -f core conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17842 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17843 if test $gcc_cv_math_func_cargf = yes; then
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_CARGF 1
17847 _ACEOF
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17855 $as_echo_n "checking for carg... " >&6; }
17856 if test "${gcc_cv_math_func_carg+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 if test x$gcc_no_link = xyes; then
17860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17865 #ifdef HAVE_COMPLEX_H
17866 #include <complex.h>
17867 #endif
17868 #ifdef HAVE_MATH_H
17869 #include <math.h>
17870 #endif
17872 int (*ptr)() = (int (*)())carg;
17875 main ()
17877 return 0;
17880 _ACEOF
17881 if ac_fn_c_try_link "$LINENO"; then :
17882 gcc_cv_math_func_carg=yes
17883 else
17884 gcc_cv_math_func_carg=no
17886 rm -f core conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17890 $as_echo "$gcc_cv_math_func_carg" >&6; }
17891 if test $gcc_cv_math_func_carg = yes; then
17893 cat >>confdefs.h <<_ACEOF
17894 #define HAVE_CARG 1
17895 _ACEOF
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17903 $as_echo_n "checking for cargl... " >&6; }
17904 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17905 $as_echo_n "(cached) " >&6
17906 else
17907 if test x$gcc_no_link = xyes; then
17908 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17913 #ifdef HAVE_COMPLEX_H
17914 #include <complex.h>
17915 #endif
17916 #ifdef HAVE_MATH_H
17917 #include <math.h>
17918 #endif
17920 int (*ptr)() = (int (*)())cargl;
17923 main ()
17925 return 0;
17928 _ACEOF
17929 if ac_fn_c_try_link "$LINENO"; then :
17930 gcc_cv_math_func_cargl=yes
17931 else
17932 gcc_cv_math_func_cargl=no
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17938 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17939 if test $gcc_cv_math_func_cargl = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define HAVE_CARGL 1
17943 _ACEOF
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17951 $as_echo_n "checking for ceilf... " >&6; }
17952 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 if test x$gcc_no_link = xyes; then
17956 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17961 #ifdef HAVE_COMPLEX_H
17962 #include <complex.h>
17963 #endif
17964 #ifdef HAVE_MATH_H
17965 #include <math.h>
17966 #endif
17968 int (*ptr)() = (int (*)())ceilf;
17971 main ()
17973 return 0;
17976 _ACEOF
17977 if ac_fn_c_try_link "$LINENO"; then :
17978 gcc_cv_math_func_ceilf=yes
17979 else
17980 gcc_cv_math_func_ceilf=no
17982 rm -f core conftest.err conftest.$ac_objext \
17983 conftest$ac_exeext conftest.$ac_ext
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17986 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17987 if test $gcc_cv_math_func_ceilf = yes; then
17989 cat >>confdefs.h <<_ACEOF
17990 #define HAVE_CEILF 1
17991 _ACEOF
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17999 $as_echo_n "checking for ceil... " >&6; }
18000 if test "${gcc_cv_math_func_ceil+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18002 else
18003 if test x$gcc_no_link = xyes; then
18004 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18009 #ifdef HAVE_COMPLEX_H
18010 #include <complex.h>
18011 #endif
18012 #ifdef HAVE_MATH_H
18013 #include <math.h>
18014 #endif
18016 int (*ptr)() = (int (*)())ceil;
18019 main ()
18021 return 0;
18024 _ACEOF
18025 if ac_fn_c_try_link "$LINENO"; then :
18026 gcc_cv_math_func_ceil=yes
18027 else
18028 gcc_cv_math_func_ceil=no
18030 rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18034 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18035 if test $gcc_cv_math_func_ceil = yes; then
18037 cat >>confdefs.h <<_ACEOF
18038 #define HAVE_CEIL 1
18039 _ACEOF
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18047 $as_echo_n "checking for ceill... " >&6; }
18048 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18049 $as_echo_n "(cached) " >&6
18050 else
18051 if test x$gcc_no_link = xyes; then
18052 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18057 #ifdef HAVE_COMPLEX_H
18058 #include <complex.h>
18059 #endif
18060 #ifdef HAVE_MATH_H
18061 #include <math.h>
18062 #endif
18064 int (*ptr)() = (int (*)())ceill;
18067 main ()
18069 return 0;
18072 _ACEOF
18073 if ac_fn_c_try_link "$LINENO"; then :
18074 gcc_cv_math_func_ceill=yes
18075 else
18076 gcc_cv_math_func_ceill=no
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18082 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18083 if test $gcc_cv_math_func_ceill = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define HAVE_CEILL 1
18087 _ACEOF
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18095 $as_echo_n "checking for copysignf... " >&6; }
18096 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18097 $as_echo_n "(cached) " >&6
18098 else
18099 if test x$gcc_no_link = xyes; then
18100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18105 #ifdef HAVE_COMPLEX_H
18106 #include <complex.h>
18107 #endif
18108 #ifdef HAVE_MATH_H
18109 #include <math.h>
18110 #endif
18112 int (*ptr)() = (int (*)())copysignf;
18115 main ()
18117 return 0;
18120 _ACEOF
18121 if ac_fn_c_try_link "$LINENO"; then :
18122 gcc_cv_math_func_copysignf=yes
18123 else
18124 gcc_cv_math_func_copysignf=no
18126 rm -f core conftest.err conftest.$ac_objext \
18127 conftest$ac_exeext conftest.$ac_ext
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18130 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18131 if test $gcc_cv_math_func_copysignf = yes; then
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_COPYSIGNF 1
18135 _ACEOF
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18143 $as_echo_n "checking for copysign... " >&6; }
18144 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18146 else
18147 if test x$gcc_no_link = xyes; then
18148 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18153 #ifdef HAVE_COMPLEX_H
18154 #include <complex.h>
18155 #endif
18156 #ifdef HAVE_MATH_H
18157 #include <math.h>
18158 #endif
18160 int (*ptr)() = (int (*)())copysign;
18163 main ()
18165 return 0;
18168 _ACEOF
18169 if ac_fn_c_try_link "$LINENO"; then :
18170 gcc_cv_math_func_copysign=yes
18171 else
18172 gcc_cv_math_func_copysign=no
18174 rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18178 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18179 if test $gcc_cv_math_func_copysign = yes; then
18181 cat >>confdefs.h <<_ACEOF
18182 #define HAVE_COPYSIGN 1
18183 _ACEOF
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18191 $as_echo_n "checking for copysignl... " >&6; }
18192 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 if test x$gcc_no_link = xyes; then
18196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18201 #ifdef HAVE_COMPLEX_H
18202 #include <complex.h>
18203 #endif
18204 #ifdef HAVE_MATH_H
18205 #include <math.h>
18206 #endif
18208 int (*ptr)() = (int (*)())copysignl;
18211 main ()
18213 return 0;
18216 _ACEOF
18217 if ac_fn_c_try_link "$LINENO"; then :
18218 gcc_cv_math_func_copysignl=yes
18219 else
18220 gcc_cv_math_func_copysignl=no
18222 rm -f core conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18226 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18227 if test $gcc_cv_math_func_copysignl = yes; then
18229 cat >>confdefs.h <<_ACEOF
18230 #define HAVE_COPYSIGNL 1
18231 _ACEOF
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18239 $as_echo_n "checking for cosf... " >&6; }
18240 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18242 else
18243 if test x$gcc_no_link = xyes; then
18244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18249 #ifdef HAVE_COMPLEX_H
18250 #include <complex.h>
18251 #endif
18252 #ifdef HAVE_MATH_H
18253 #include <math.h>
18254 #endif
18256 int (*ptr)() = (int (*)())cosf;
18259 main ()
18261 return 0;
18264 _ACEOF
18265 if ac_fn_c_try_link "$LINENO"; then :
18266 gcc_cv_math_func_cosf=yes
18267 else
18268 gcc_cv_math_func_cosf=no
18270 rm -f core conftest.err conftest.$ac_objext \
18271 conftest$ac_exeext conftest.$ac_ext
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18274 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18275 if test $gcc_cv_math_func_cosf = yes; then
18277 cat >>confdefs.h <<_ACEOF
18278 #define HAVE_COSF 1
18279 _ACEOF
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18287 $as_echo_n "checking for cos... " >&6; }
18288 if test "${gcc_cv_math_func_cos+set}" = set; then :
18289 $as_echo_n "(cached) " >&6
18290 else
18291 if test x$gcc_no_link = xyes; then
18292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18297 #ifdef HAVE_COMPLEX_H
18298 #include <complex.h>
18299 #endif
18300 #ifdef HAVE_MATH_H
18301 #include <math.h>
18302 #endif
18304 int (*ptr)() = (int (*)())cos;
18307 main ()
18309 return 0;
18312 _ACEOF
18313 if ac_fn_c_try_link "$LINENO"; then :
18314 gcc_cv_math_func_cos=yes
18315 else
18316 gcc_cv_math_func_cos=no
18318 rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18322 $as_echo "$gcc_cv_math_func_cos" >&6; }
18323 if test $gcc_cv_math_func_cos = yes; then
18325 cat >>confdefs.h <<_ACEOF
18326 #define HAVE_COS 1
18327 _ACEOF
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18335 $as_echo_n "checking for cosl... " >&6; }
18336 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18338 else
18339 if test x$gcc_no_link = xyes; then
18340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18345 #ifdef HAVE_COMPLEX_H
18346 #include <complex.h>
18347 #endif
18348 #ifdef HAVE_MATH_H
18349 #include <math.h>
18350 #endif
18352 int (*ptr)() = (int (*)())cosl;
18355 main ()
18357 return 0;
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 gcc_cv_math_func_cosl=yes
18363 else
18364 gcc_cv_math_func_cosl=no
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18370 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18371 if test $gcc_cv_math_func_cosl = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_COSL 1
18375 _ACEOF
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18383 $as_echo_n "checking for ccosf... " >&6; }
18384 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 if test x$gcc_no_link = xyes; then
18388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18393 #ifdef HAVE_COMPLEX_H
18394 #include <complex.h>
18395 #endif
18396 #ifdef HAVE_MATH_H
18397 #include <math.h>
18398 #endif
18400 int (*ptr)() = (int (*)())ccosf;
18403 main ()
18405 return 0;
18408 _ACEOF
18409 if ac_fn_c_try_link "$LINENO"; then :
18410 gcc_cv_math_func_ccosf=yes
18411 else
18412 gcc_cv_math_func_ccosf=no
18414 rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18418 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18419 if test $gcc_cv_math_func_ccosf = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define HAVE_CCOSF 1
18423 _ACEOF
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18431 $as_echo_n "checking for ccos... " >&6; }
18432 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18433 $as_echo_n "(cached) " >&6
18434 else
18435 if test x$gcc_no_link = xyes; then
18436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18441 #ifdef HAVE_COMPLEX_H
18442 #include <complex.h>
18443 #endif
18444 #ifdef HAVE_MATH_H
18445 #include <math.h>
18446 #endif
18448 int (*ptr)() = (int (*)())ccos;
18451 main ()
18453 return 0;
18456 _ACEOF
18457 if ac_fn_c_try_link "$LINENO"; then :
18458 gcc_cv_math_func_ccos=yes
18459 else
18460 gcc_cv_math_func_ccos=no
18462 rm -f core conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18466 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18467 if test $gcc_cv_math_func_ccos = yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_CCOS 1
18471 _ACEOF
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18479 $as_echo_n "checking for ccosl... " >&6; }
18480 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18481 $as_echo_n "(cached) " >&6
18482 else
18483 if test x$gcc_no_link = xyes; then
18484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18489 #ifdef HAVE_COMPLEX_H
18490 #include <complex.h>
18491 #endif
18492 #ifdef HAVE_MATH_H
18493 #include <math.h>
18494 #endif
18496 int (*ptr)() = (int (*)())ccosl;
18499 main ()
18501 return 0;
18504 _ACEOF
18505 if ac_fn_c_try_link "$LINENO"; then :
18506 gcc_cv_math_func_ccosl=yes
18507 else
18508 gcc_cv_math_func_ccosl=no
18510 rm -f core conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext conftest.$ac_ext
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18514 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18515 if test $gcc_cv_math_func_ccosl = yes; then
18517 cat >>confdefs.h <<_ACEOF
18518 #define HAVE_CCOSL 1
18519 _ACEOF
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18527 $as_echo_n "checking for coshf... " >&6; }
18528 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531 if test x$gcc_no_link = xyes; then
18532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18537 #ifdef HAVE_COMPLEX_H
18538 #include <complex.h>
18539 #endif
18540 #ifdef HAVE_MATH_H
18541 #include <math.h>
18542 #endif
18544 int (*ptr)() = (int (*)())coshf;
18547 main ()
18549 return 0;
18552 _ACEOF
18553 if ac_fn_c_try_link "$LINENO"; then :
18554 gcc_cv_math_func_coshf=yes
18555 else
18556 gcc_cv_math_func_coshf=no
18558 rm -f core conftest.err conftest.$ac_objext \
18559 conftest$ac_exeext conftest.$ac_ext
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18562 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18563 if test $gcc_cv_math_func_coshf = yes; then
18565 cat >>confdefs.h <<_ACEOF
18566 #define HAVE_COSHF 1
18567 _ACEOF
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18575 $as_echo_n "checking for cosh... " >&6; }
18576 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18577 $as_echo_n "(cached) " >&6
18578 else
18579 if test x$gcc_no_link = xyes; then
18580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18585 #ifdef HAVE_COMPLEX_H
18586 #include <complex.h>
18587 #endif
18588 #ifdef HAVE_MATH_H
18589 #include <math.h>
18590 #endif
18592 int (*ptr)() = (int (*)())cosh;
18595 main ()
18597 return 0;
18600 _ACEOF
18601 if ac_fn_c_try_link "$LINENO"; then :
18602 gcc_cv_math_func_cosh=yes
18603 else
18604 gcc_cv_math_func_cosh=no
18606 rm -f core conftest.err conftest.$ac_objext \
18607 conftest$ac_exeext conftest.$ac_ext
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18610 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18611 if test $gcc_cv_math_func_cosh = yes; then
18613 cat >>confdefs.h <<_ACEOF
18614 #define HAVE_COSH 1
18615 _ACEOF
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18623 $as_echo_n "checking for coshl... " >&6; }
18624 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18625 $as_echo_n "(cached) " >&6
18626 else
18627 if test x$gcc_no_link = xyes; then
18628 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18633 #ifdef HAVE_COMPLEX_H
18634 #include <complex.h>
18635 #endif
18636 #ifdef HAVE_MATH_H
18637 #include <math.h>
18638 #endif
18640 int (*ptr)() = (int (*)())coshl;
18643 main ()
18645 return 0;
18648 _ACEOF
18649 if ac_fn_c_try_link "$LINENO"; then :
18650 gcc_cv_math_func_coshl=yes
18651 else
18652 gcc_cv_math_func_coshl=no
18654 rm -f core conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18658 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18659 if test $gcc_cv_math_func_coshl = yes; then
18661 cat >>confdefs.h <<_ACEOF
18662 #define HAVE_COSHL 1
18663 _ACEOF
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18671 $as_echo_n "checking for ccoshf... " >&6; }
18672 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18673 $as_echo_n "(cached) " >&6
18674 else
18675 if test x$gcc_no_link = xyes; then
18676 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18681 #ifdef HAVE_COMPLEX_H
18682 #include <complex.h>
18683 #endif
18684 #ifdef HAVE_MATH_H
18685 #include <math.h>
18686 #endif
18688 int (*ptr)() = (int (*)())ccoshf;
18691 main ()
18693 return 0;
18696 _ACEOF
18697 if ac_fn_c_try_link "$LINENO"; then :
18698 gcc_cv_math_func_ccoshf=yes
18699 else
18700 gcc_cv_math_func_ccoshf=no
18702 rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18706 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18707 if test $gcc_cv_math_func_ccoshf = yes; then
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_CCOSHF 1
18711 _ACEOF
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18719 $as_echo_n "checking for ccosh... " >&6; }
18720 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18721 $as_echo_n "(cached) " >&6
18722 else
18723 if test x$gcc_no_link = xyes; then
18724 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18729 #ifdef HAVE_COMPLEX_H
18730 #include <complex.h>
18731 #endif
18732 #ifdef HAVE_MATH_H
18733 #include <math.h>
18734 #endif
18736 int (*ptr)() = (int (*)())ccosh;
18739 main ()
18741 return 0;
18744 _ACEOF
18745 if ac_fn_c_try_link "$LINENO"; then :
18746 gcc_cv_math_func_ccosh=yes
18747 else
18748 gcc_cv_math_func_ccosh=no
18750 rm -f core conftest.err conftest.$ac_objext \
18751 conftest$ac_exeext conftest.$ac_ext
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18754 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18755 if test $gcc_cv_math_func_ccosh = yes; then
18757 cat >>confdefs.h <<_ACEOF
18758 #define HAVE_CCOSH 1
18759 _ACEOF
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18767 $as_echo_n "checking for ccoshl... " >&6; }
18768 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 if test x$gcc_no_link = xyes; then
18772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18777 #ifdef HAVE_COMPLEX_H
18778 #include <complex.h>
18779 #endif
18780 #ifdef HAVE_MATH_H
18781 #include <math.h>
18782 #endif
18784 int (*ptr)() = (int (*)())ccoshl;
18787 main ()
18789 return 0;
18792 _ACEOF
18793 if ac_fn_c_try_link "$LINENO"; then :
18794 gcc_cv_math_func_ccoshl=yes
18795 else
18796 gcc_cv_math_func_ccoshl=no
18798 rm -f core conftest.err conftest.$ac_objext \
18799 conftest$ac_exeext conftest.$ac_ext
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18802 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18803 if test $gcc_cv_math_func_ccoshl = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_CCOSHL 1
18807 _ACEOF
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18815 $as_echo_n "checking for expf... " >&6; }
18816 if test "${gcc_cv_math_func_expf+set}" = set; then :
18817 $as_echo_n "(cached) " >&6
18818 else
18819 if test x$gcc_no_link = xyes; then
18820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18825 #ifdef HAVE_COMPLEX_H
18826 #include <complex.h>
18827 #endif
18828 #ifdef HAVE_MATH_H
18829 #include <math.h>
18830 #endif
18832 int (*ptr)() = (int (*)())expf;
18835 main ()
18837 return 0;
18840 _ACEOF
18841 if ac_fn_c_try_link "$LINENO"; then :
18842 gcc_cv_math_func_expf=yes
18843 else
18844 gcc_cv_math_func_expf=no
18846 rm -f core conftest.err conftest.$ac_objext \
18847 conftest$ac_exeext conftest.$ac_ext
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18850 $as_echo "$gcc_cv_math_func_expf" >&6; }
18851 if test $gcc_cv_math_func_expf = yes; then
18853 cat >>confdefs.h <<_ACEOF
18854 #define HAVE_EXPF 1
18855 _ACEOF
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18863 $as_echo_n "checking for exp... " >&6; }
18864 if test "${gcc_cv_math_func_exp+set}" = set; then :
18865 $as_echo_n "(cached) " >&6
18866 else
18867 if test x$gcc_no_link = xyes; then
18868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18873 #ifdef HAVE_COMPLEX_H
18874 #include <complex.h>
18875 #endif
18876 #ifdef HAVE_MATH_H
18877 #include <math.h>
18878 #endif
18880 int (*ptr)() = (int (*)())exp;
18883 main ()
18885 return 0;
18888 _ACEOF
18889 if ac_fn_c_try_link "$LINENO"; then :
18890 gcc_cv_math_func_exp=yes
18891 else
18892 gcc_cv_math_func_exp=no
18894 rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18898 $as_echo "$gcc_cv_math_func_exp" >&6; }
18899 if test $gcc_cv_math_func_exp = yes; then
18901 cat >>confdefs.h <<_ACEOF
18902 #define HAVE_EXP 1
18903 _ACEOF
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18911 $as_echo_n "checking for expl... " >&6; }
18912 if test "${gcc_cv_math_func_expl+set}" = set; then :
18913 $as_echo_n "(cached) " >&6
18914 else
18915 if test x$gcc_no_link = xyes; then
18916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18919 /* end confdefs.h. */
18921 #ifdef HAVE_COMPLEX_H
18922 #include <complex.h>
18923 #endif
18924 #ifdef HAVE_MATH_H
18925 #include <math.h>
18926 #endif
18928 int (*ptr)() = (int (*)())expl;
18931 main ()
18933 return 0;
18936 _ACEOF
18937 if ac_fn_c_try_link "$LINENO"; then :
18938 gcc_cv_math_func_expl=yes
18939 else
18940 gcc_cv_math_func_expl=no
18942 rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18946 $as_echo "$gcc_cv_math_func_expl" >&6; }
18947 if test $gcc_cv_math_func_expl = yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_EXPL 1
18951 _ACEOF
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18959 $as_echo_n "checking for cexpf... " >&6; }
18960 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18961 $as_echo_n "(cached) " >&6
18962 else
18963 if test x$gcc_no_link = xyes; then
18964 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18969 #ifdef HAVE_COMPLEX_H
18970 #include <complex.h>
18971 #endif
18972 #ifdef HAVE_MATH_H
18973 #include <math.h>
18974 #endif
18976 int (*ptr)() = (int (*)())cexpf;
18979 main ()
18981 return 0;
18984 _ACEOF
18985 if ac_fn_c_try_link "$LINENO"; then :
18986 gcc_cv_math_func_cexpf=yes
18987 else
18988 gcc_cv_math_func_cexpf=no
18990 rm -f core conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18994 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18995 if test $gcc_cv_math_func_cexpf = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_CEXPF 1
18999 _ACEOF
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19007 $as_echo_n "checking for cexp... " >&6; }
19008 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19009 $as_echo_n "(cached) " >&6
19010 else
19011 if test x$gcc_no_link = xyes; then
19012 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19017 #ifdef HAVE_COMPLEX_H
19018 #include <complex.h>
19019 #endif
19020 #ifdef HAVE_MATH_H
19021 #include <math.h>
19022 #endif
19024 int (*ptr)() = (int (*)())cexp;
19027 main ()
19029 return 0;
19032 _ACEOF
19033 if ac_fn_c_try_link "$LINENO"; then :
19034 gcc_cv_math_func_cexp=yes
19035 else
19036 gcc_cv_math_func_cexp=no
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19042 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19043 if test $gcc_cv_math_func_cexp = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define HAVE_CEXP 1
19047 _ACEOF
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19055 $as_echo_n "checking for cexpl... " >&6; }
19056 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19057 $as_echo_n "(cached) " >&6
19058 else
19059 if test x$gcc_no_link = xyes; then
19060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19065 #ifdef HAVE_COMPLEX_H
19066 #include <complex.h>
19067 #endif
19068 #ifdef HAVE_MATH_H
19069 #include <math.h>
19070 #endif
19072 int (*ptr)() = (int (*)())cexpl;
19075 main ()
19077 return 0;
19080 _ACEOF
19081 if ac_fn_c_try_link "$LINENO"; then :
19082 gcc_cv_math_func_cexpl=yes
19083 else
19084 gcc_cv_math_func_cexpl=no
19086 rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19090 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19091 if test $gcc_cv_math_func_cexpl = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define HAVE_CEXPL 1
19095 _ACEOF
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19103 $as_echo_n "checking for fabsf... " >&6; }
19104 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 if test x$gcc_no_link = xyes; then
19108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19113 #ifdef HAVE_COMPLEX_H
19114 #include <complex.h>
19115 #endif
19116 #ifdef HAVE_MATH_H
19117 #include <math.h>
19118 #endif
19120 int (*ptr)() = (int (*)())fabsf;
19123 main ()
19125 return 0;
19128 _ACEOF
19129 if ac_fn_c_try_link "$LINENO"; then :
19130 gcc_cv_math_func_fabsf=yes
19131 else
19132 gcc_cv_math_func_fabsf=no
19134 rm -f core conftest.err conftest.$ac_objext \
19135 conftest$ac_exeext conftest.$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19138 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19139 if test $gcc_cv_math_func_fabsf = yes; then
19141 cat >>confdefs.h <<_ACEOF
19142 #define HAVE_FABSF 1
19143 _ACEOF
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19151 $as_echo_n "checking for fabs... " >&6; }
19152 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19153 $as_echo_n "(cached) " >&6
19154 else
19155 if test x$gcc_no_link = xyes; then
19156 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19161 #ifdef HAVE_COMPLEX_H
19162 #include <complex.h>
19163 #endif
19164 #ifdef HAVE_MATH_H
19165 #include <math.h>
19166 #endif
19168 int (*ptr)() = (int (*)())fabs;
19171 main ()
19173 return 0;
19176 _ACEOF
19177 if ac_fn_c_try_link "$LINENO"; then :
19178 gcc_cv_math_func_fabs=yes
19179 else
19180 gcc_cv_math_func_fabs=no
19182 rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19186 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19187 if test $gcc_cv_math_func_fabs = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define HAVE_FABS 1
19191 _ACEOF
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19199 $as_echo_n "checking for fabsl... " >&6; }
19200 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19201 $as_echo_n "(cached) " >&6
19202 else
19203 if test x$gcc_no_link = xyes; then
19204 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19209 #ifdef HAVE_COMPLEX_H
19210 #include <complex.h>
19211 #endif
19212 #ifdef HAVE_MATH_H
19213 #include <math.h>
19214 #endif
19216 int (*ptr)() = (int (*)())fabsl;
19219 main ()
19221 return 0;
19224 _ACEOF
19225 if ac_fn_c_try_link "$LINENO"; then :
19226 gcc_cv_math_func_fabsl=yes
19227 else
19228 gcc_cv_math_func_fabsl=no
19230 rm -f core conftest.err conftest.$ac_objext \
19231 conftest$ac_exeext conftest.$ac_ext
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19234 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19235 if test $gcc_cv_math_func_fabsl = yes; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define HAVE_FABSL 1
19239 _ACEOF
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19247 $as_echo_n "checking for cabsf... " >&6; }
19248 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19249 $as_echo_n "(cached) " >&6
19250 else
19251 if test x$gcc_no_link = xyes; then
19252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19257 #ifdef HAVE_COMPLEX_H
19258 #include <complex.h>
19259 #endif
19260 #ifdef HAVE_MATH_H
19261 #include <math.h>
19262 #endif
19264 int (*ptr)() = (int (*)())cabsf;
19267 main ()
19269 return 0;
19272 _ACEOF
19273 if ac_fn_c_try_link "$LINENO"; then :
19274 gcc_cv_math_func_cabsf=yes
19275 else
19276 gcc_cv_math_func_cabsf=no
19278 rm -f core conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19282 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19283 if test $gcc_cv_math_func_cabsf = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_CABSF 1
19287 _ACEOF
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19295 $as_echo_n "checking for cabs... " >&6; }
19296 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 if test x$gcc_no_link = xyes; then
19300 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19303 /* end confdefs.h. */
19305 #ifdef HAVE_COMPLEX_H
19306 #include <complex.h>
19307 #endif
19308 #ifdef HAVE_MATH_H
19309 #include <math.h>
19310 #endif
19312 int (*ptr)() = (int (*)())cabs;
19315 main ()
19317 return 0;
19320 _ACEOF
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 gcc_cv_math_func_cabs=yes
19323 else
19324 gcc_cv_math_func_cabs=no
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19330 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19331 if test $gcc_cv_math_func_cabs = yes; then
19333 cat >>confdefs.h <<_ACEOF
19334 #define HAVE_CABS 1
19335 _ACEOF
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19343 $as_echo_n "checking for cabsl... " >&6; }
19344 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19345 $as_echo_n "(cached) " >&6
19346 else
19347 if test x$gcc_no_link = xyes; then
19348 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19353 #ifdef HAVE_COMPLEX_H
19354 #include <complex.h>
19355 #endif
19356 #ifdef HAVE_MATH_H
19357 #include <math.h>
19358 #endif
19360 int (*ptr)() = (int (*)())cabsl;
19363 main ()
19365 return 0;
19368 _ACEOF
19369 if ac_fn_c_try_link "$LINENO"; then :
19370 gcc_cv_math_func_cabsl=yes
19371 else
19372 gcc_cv_math_func_cabsl=no
19374 rm -f core conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19378 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19379 if test $gcc_cv_math_func_cabsl = yes; then
19381 cat >>confdefs.h <<_ACEOF
19382 #define HAVE_CABSL 1
19383 _ACEOF
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19391 $as_echo_n "checking for floorf... " >&6; }
19392 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19393 $as_echo_n "(cached) " >&6
19394 else
19395 if test x$gcc_no_link = xyes; then
19396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19401 #ifdef HAVE_COMPLEX_H
19402 #include <complex.h>
19403 #endif
19404 #ifdef HAVE_MATH_H
19405 #include <math.h>
19406 #endif
19408 int (*ptr)() = (int (*)())floorf;
19411 main ()
19413 return 0;
19416 _ACEOF
19417 if ac_fn_c_try_link "$LINENO"; then :
19418 gcc_cv_math_func_floorf=yes
19419 else
19420 gcc_cv_math_func_floorf=no
19422 rm -f core conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19426 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19427 if test $gcc_cv_math_func_floorf = yes; then
19429 cat >>confdefs.h <<_ACEOF
19430 #define HAVE_FLOORF 1
19431 _ACEOF
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19439 $as_echo_n "checking for floor... " >&6; }
19440 if test "${gcc_cv_math_func_floor+set}" = set; then :
19441 $as_echo_n "(cached) " >&6
19442 else
19443 if test x$gcc_no_link = xyes; then
19444 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19449 #ifdef HAVE_COMPLEX_H
19450 #include <complex.h>
19451 #endif
19452 #ifdef HAVE_MATH_H
19453 #include <math.h>
19454 #endif
19456 int (*ptr)() = (int (*)())floor;
19459 main ()
19461 return 0;
19464 _ACEOF
19465 if ac_fn_c_try_link "$LINENO"; then :
19466 gcc_cv_math_func_floor=yes
19467 else
19468 gcc_cv_math_func_floor=no
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19474 $as_echo "$gcc_cv_math_func_floor" >&6; }
19475 if test $gcc_cv_math_func_floor = yes; then
19477 cat >>confdefs.h <<_ACEOF
19478 #define HAVE_FLOOR 1
19479 _ACEOF
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19487 $as_echo_n "checking for floorl... " >&6; }
19488 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19489 $as_echo_n "(cached) " >&6
19490 else
19491 if test x$gcc_no_link = xyes; then
19492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 #ifdef HAVE_COMPLEX_H
19498 #include <complex.h>
19499 #endif
19500 #ifdef HAVE_MATH_H
19501 #include <math.h>
19502 #endif
19504 int (*ptr)() = (int (*)())floorl;
19507 main ()
19509 return 0;
19512 _ACEOF
19513 if ac_fn_c_try_link "$LINENO"; then :
19514 gcc_cv_math_func_floorl=yes
19515 else
19516 gcc_cv_math_func_floorl=no
19518 rm -f core conftest.err conftest.$ac_objext \
19519 conftest$ac_exeext conftest.$ac_ext
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19522 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19523 if test $gcc_cv_math_func_floorl = yes; then
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_FLOORL 1
19527 _ACEOF
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19535 $as_echo_n "checking for fmodf... " >&6; }
19536 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19537 $as_echo_n "(cached) " >&6
19538 else
19539 if test x$gcc_no_link = xyes; then
19540 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 #ifdef HAVE_COMPLEX_H
19546 #include <complex.h>
19547 #endif
19548 #ifdef HAVE_MATH_H
19549 #include <math.h>
19550 #endif
19552 int (*ptr)() = (int (*)())fmodf;
19555 main ()
19557 return 0;
19560 _ACEOF
19561 if ac_fn_c_try_link "$LINENO"; then :
19562 gcc_cv_math_func_fmodf=yes
19563 else
19564 gcc_cv_math_func_fmodf=no
19566 rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19570 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19571 if test $gcc_cv_math_func_fmodf = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_FMODF 1
19575 _ACEOF
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19583 $as_echo_n "checking for fmod... " >&6; }
19584 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19585 $as_echo_n "(cached) " >&6
19586 else
19587 if test x$gcc_no_link = xyes; then
19588 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19593 #ifdef HAVE_COMPLEX_H
19594 #include <complex.h>
19595 #endif
19596 #ifdef HAVE_MATH_H
19597 #include <math.h>
19598 #endif
19600 int (*ptr)() = (int (*)())fmod;
19603 main ()
19605 return 0;
19608 _ACEOF
19609 if ac_fn_c_try_link "$LINENO"; then :
19610 gcc_cv_math_func_fmod=yes
19611 else
19612 gcc_cv_math_func_fmod=no
19614 rm -f core conftest.err conftest.$ac_objext \
19615 conftest$ac_exeext conftest.$ac_ext
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19618 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19619 if test $gcc_cv_math_func_fmod = yes; then
19621 cat >>confdefs.h <<_ACEOF
19622 #define HAVE_FMOD 1
19623 _ACEOF
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19631 $as_echo_n "checking for fmodl... " >&6; }
19632 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 if test x$gcc_no_link = xyes; then
19636 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19641 #ifdef HAVE_COMPLEX_H
19642 #include <complex.h>
19643 #endif
19644 #ifdef HAVE_MATH_H
19645 #include <math.h>
19646 #endif
19648 int (*ptr)() = (int (*)())fmodl;
19651 main ()
19653 return 0;
19656 _ACEOF
19657 if ac_fn_c_try_link "$LINENO"; then :
19658 gcc_cv_math_func_fmodl=yes
19659 else
19660 gcc_cv_math_func_fmodl=no
19662 rm -f core conftest.err conftest.$ac_objext \
19663 conftest$ac_exeext conftest.$ac_ext
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19666 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19667 if test $gcc_cv_math_func_fmodl = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_FMODL 1
19671 _ACEOF
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19679 $as_echo_n "checking for frexpf... " >&6; }
19680 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19681 $as_echo_n "(cached) " >&6
19682 else
19683 if test x$gcc_no_link = xyes; then
19684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687 /* end confdefs.h. */
19689 #ifdef HAVE_COMPLEX_H
19690 #include <complex.h>
19691 #endif
19692 #ifdef HAVE_MATH_H
19693 #include <math.h>
19694 #endif
19696 int (*ptr)() = (int (*)())frexpf;
19699 main ()
19701 return 0;
19704 _ACEOF
19705 if ac_fn_c_try_link "$LINENO"; then :
19706 gcc_cv_math_func_frexpf=yes
19707 else
19708 gcc_cv_math_func_frexpf=no
19710 rm -f core conftest.err conftest.$ac_objext \
19711 conftest$ac_exeext conftest.$ac_ext
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19714 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19715 if test $gcc_cv_math_func_frexpf = yes; then
19717 cat >>confdefs.h <<_ACEOF
19718 #define HAVE_FREXPF 1
19719 _ACEOF
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19727 $as_echo_n "checking for frexp... " >&6; }
19728 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19729 $as_echo_n "(cached) " >&6
19730 else
19731 if test x$gcc_no_link = xyes; then
19732 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19737 #ifdef HAVE_COMPLEX_H
19738 #include <complex.h>
19739 #endif
19740 #ifdef HAVE_MATH_H
19741 #include <math.h>
19742 #endif
19744 int (*ptr)() = (int (*)())frexp;
19747 main ()
19749 return 0;
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 gcc_cv_math_func_frexp=yes
19755 else
19756 gcc_cv_math_func_frexp=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19762 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19763 if test $gcc_cv_math_func_frexp = yes; then
19765 cat >>confdefs.h <<_ACEOF
19766 #define HAVE_FREXP 1
19767 _ACEOF
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19775 $as_echo_n "checking for frexpl... " >&6; }
19776 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19777 $as_echo_n "(cached) " >&6
19778 else
19779 if test x$gcc_no_link = xyes; then
19780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19783 /* end confdefs.h. */
19785 #ifdef HAVE_COMPLEX_H
19786 #include <complex.h>
19787 #endif
19788 #ifdef HAVE_MATH_H
19789 #include <math.h>
19790 #endif
19792 int (*ptr)() = (int (*)())frexpl;
19795 main ()
19797 return 0;
19800 _ACEOF
19801 if ac_fn_c_try_link "$LINENO"; then :
19802 gcc_cv_math_func_frexpl=yes
19803 else
19804 gcc_cv_math_func_frexpl=no
19806 rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19810 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19811 if test $gcc_cv_math_func_frexpl = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_FREXPL 1
19815 _ACEOF
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19823 $as_echo_n "checking for hypotf... " >&6; }
19824 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19827 if test x$gcc_no_link = xyes; then
19828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h. */
19833 #ifdef HAVE_COMPLEX_H
19834 #include <complex.h>
19835 #endif
19836 #ifdef HAVE_MATH_H
19837 #include <math.h>
19838 #endif
19840 int (*ptr)() = (int (*)())hypotf;
19843 main ()
19845 return 0;
19848 _ACEOF
19849 if ac_fn_c_try_link "$LINENO"; then :
19850 gcc_cv_math_func_hypotf=yes
19851 else
19852 gcc_cv_math_func_hypotf=no
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19858 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19859 if test $gcc_cv_math_func_hypotf = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_HYPOTF 1
19863 _ACEOF
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19871 $as_echo_n "checking for hypot... " >&6; }
19872 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19873 $as_echo_n "(cached) " >&6
19874 else
19875 if test x$gcc_no_link = xyes; then
19876 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19881 #ifdef HAVE_COMPLEX_H
19882 #include <complex.h>
19883 #endif
19884 #ifdef HAVE_MATH_H
19885 #include <math.h>
19886 #endif
19888 int (*ptr)() = (int (*)())hypot;
19891 main ()
19893 return 0;
19896 _ACEOF
19897 if ac_fn_c_try_link "$LINENO"; then :
19898 gcc_cv_math_func_hypot=yes
19899 else
19900 gcc_cv_math_func_hypot=no
19902 rm -f core conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19906 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19907 if test $gcc_cv_math_func_hypot = yes; then
19909 cat >>confdefs.h <<_ACEOF
19910 #define HAVE_HYPOT 1
19911 _ACEOF
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19919 $as_echo_n "checking for hypotl... " >&6; }
19920 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19921 $as_echo_n "(cached) " >&6
19922 else
19923 if test x$gcc_no_link = xyes; then
19924 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19929 #ifdef HAVE_COMPLEX_H
19930 #include <complex.h>
19931 #endif
19932 #ifdef HAVE_MATH_H
19933 #include <math.h>
19934 #endif
19936 int (*ptr)() = (int (*)())hypotl;
19939 main ()
19941 return 0;
19944 _ACEOF
19945 if ac_fn_c_try_link "$LINENO"; then :
19946 gcc_cv_math_func_hypotl=yes
19947 else
19948 gcc_cv_math_func_hypotl=no
19950 rm -f core conftest.err conftest.$ac_objext \
19951 conftest$ac_exeext conftest.$ac_ext
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19954 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19955 if test $gcc_cv_math_func_hypotl = yes; then
19957 cat >>confdefs.h <<_ACEOF
19958 #define HAVE_HYPOTL 1
19959 _ACEOF
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19967 $as_echo_n "checking for ldexpf... " >&6; }
19968 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19969 $as_echo_n "(cached) " >&6
19970 else
19971 if test x$gcc_no_link = xyes; then
19972 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19977 #ifdef HAVE_COMPLEX_H
19978 #include <complex.h>
19979 #endif
19980 #ifdef HAVE_MATH_H
19981 #include <math.h>
19982 #endif
19984 int (*ptr)() = (int (*)())ldexpf;
19987 main ()
19989 return 0;
19992 _ACEOF
19993 if ac_fn_c_try_link "$LINENO"; then :
19994 gcc_cv_math_func_ldexpf=yes
19995 else
19996 gcc_cv_math_func_ldexpf=no
19998 rm -f core conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20002 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20003 if test $gcc_cv_math_func_ldexpf = yes; then
20005 cat >>confdefs.h <<_ACEOF
20006 #define HAVE_LDEXPF 1
20007 _ACEOF
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20015 $as_echo_n "checking for ldexp... " >&6; }
20016 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20017 $as_echo_n "(cached) " >&6
20018 else
20019 if test x$gcc_no_link = xyes; then
20020 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20025 #ifdef HAVE_COMPLEX_H
20026 #include <complex.h>
20027 #endif
20028 #ifdef HAVE_MATH_H
20029 #include <math.h>
20030 #endif
20032 int (*ptr)() = (int (*)())ldexp;
20035 main ()
20037 return 0;
20040 _ACEOF
20041 if ac_fn_c_try_link "$LINENO"; then :
20042 gcc_cv_math_func_ldexp=yes
20043 else
20044 gcc_cv_math_func_ldexp=no
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20050 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20051 if test $gcc_cv_math_func_ldexp = yes; then
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_LDEXP 1
20055 _ACEOF
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20063 $as_echo_n "checking for ldexpl... " >&6; }
20064 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20065 $as_echo_n "(cached) " >&6
20066 else
20067 if test x$gcc_no_link = xyes; then
20068 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20071 /* end confdefs.h. */
20073 #ifdef HAVE_COMPLEX_H
20074 #include <complex.h>
20075 #endif
20076 #ifdef HAVE_MATH_H
20077 #include <math.h>
20078 #endif
20080 int (*ptr)() = (int (*)())ldexpl;
20083 main ()
20085 return 0;
20088 _ACEOF
20089 if ac_fn_c_try_link "$LINENO"; then :
20090 gcc_cv_math_func_ldexpl=yes
20091 else
20092 gcc_cv_math_func_ldexpl=no
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20098 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20099 if test $gcc_cv_math_func_ldexpl = yes; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_LDEXPL 1
20103 _ACEOF
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20111 $as_echo_n "checking for logf... " >&6; }
20112 if test "${gcc_cv_math_func_logf+set}" = set; then :
20113 $as_echo_n "(cached) " >&6
20114 else
20115 if test x$gcc_no_link = xyes; then
20116 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20121 #ifdef HAVE_COMPLEX_H
20122 #include <complex.h>
20123 #endif
20124 #ifdef HAVE_MATH_H
20125 #include <math.h>
20126 #endif
20128 int (*ptr)() = (int (*)())logf;
20131 main ()
20133 return 0;
20136 _ACEOF
20137 if ac_fn_c_try_link "$LINENO"; then :
20138 gcc_cv_math_func_logf=yes
20139 else
20140 gcc_cv_math_func_logf=no
20142 rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20146 $as_echo "$gcc_cv_math_func_logf" >&6; }
20147 if test $gcc_cv_math_func_logf = yes; then
20149 cat >>confdefs.h <<_ACEOF
20150 #define HAVE_LOGF 1
20151 _ACEOF
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20159 $as_echo_n "checking for log... " >&6; }
20160 if test "${gcc_cv_math_func_log+set}" = set; then :
20161 $as_echo_n "(cached) " >&6
20162 else
20163 if test x$gcc_no_link = xyes; then
20164 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20167 /* end confdefs.h. */
20169 #ifdef HAVE_COMPLEX_H
20170 #include <complex.h>
20171 #endif
20172 #ifdef HAVE_MATH_H
20173 #include <math.h>
20174 #endif
20176 int (*ptr)() = (int (*)())log;
20179 main ()
20181 return 0;
20184 _ACEOF
20185 if ac_fn_c_try_link "$LINENO"; then :
20186 gcc_cv_math_func_log=yes
20187 else
20188 gcc_cv_math_func_log=no
20190 rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20194 $as_echo "$gcc_cv_math_func_log" >&6; }
20195 if test $gcc_cv_math_func_log = yes; then
20197 cat >>confdefs.h <<_ACEOF
20198 #define HAVE_LOG 1
20199 _ACEOF
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20207 $as_echo_n "checking for logl... " >&6; }
20208 if test "${gcc_cv_math_func_logl+set}" = set; then :
20209 $as_echo_n "(cached) " >&6
20210 else
20211 if test x$gcc_no_link = xyes; then
20212 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20217 #ifdef HAVE_COMPLEX_H
20218 #include <complex.h>
20219 #endif
20220 #ifdef HAVE_MATH_H
20221 #include <math.h>
20222 #endif
20224 int (*ptr)() = (int (*)())logl;
20227 main ()
20229 return 0;
20232 _ACEOF
20233 if ac_fn_c_try_link "$LINENO"; then :
20234 gcc_cv_math_func_logl=yes
20235 else
20236 gcc_cv_math_func_logl=no
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20242 $as_echo "$gcc_cv_math_func_logl" >&6; }
20243 if test $gcc_cv_math_func_logl = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_LOGL 1
20247 _ACEOF
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20255 $as_echo_n "checking for clogf... " >&6; }
20256 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20257 $as_echo_n "(cached) " >&6
20258 else
20259 if test x$gcc_no_link = xyes; then
20260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20265 #ifdef HAVE_COMPLEX_H
20266 #include <complex.h>
20267 #endif
20268 #ifdef HAVE_MATH_H
20269 #include <math.h>
20270 #endif
20272 int (*ptr)() = (int (*)())clogf;
20275 main ()
20277 return 0;
20280 _ACEOF
20281 if ac_fn_c_try_link "$LINENO"; then :
20282 gcc_cv_math_func_clogf=yes
20283 else
20284 gcc_cv_math_func_clogf=no
20286 rm -f core conftest.err conftest.$ac_objext \
20287 conftest$ac_exeext conftest.$ac_ext
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20290 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20291 if test $gcc_cv_math_func_clogf = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_CLOGF 1
20295 _ACEOF
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20303 $as_echo_n "checking for clog... " >&6; }
20304 if test "${gcc_cv_math_func_clog+set}" = set; then :
20305 $as_echo_n "(cached) " >&6
20306 else
20307 if test x$gcc_no_link = xyes; then
20308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20313 #ifdef HAVE_COMPLEX_H
20314 #include <complex.h>
20315 #endif
20316 #ifdef HAVE_MATH_H
20317 #include <math.h>
20318 #endif
20320 int (*ptr)() = (int (*)())clog;
20323 main ()
20325 return 0;
20328 _ACEOF
20329 if ac_fn_c_try_link "$LINENO"; then :
20330 gcc_cv_math_func_clog=yes
20331 else
20332 gcc_cv_math_func_clog=no
20334 rm -f core conftest.err conftest.$ac_objext \
20335 conftest$ac_exeext conftest.$ac_ext
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20338 $as_echo "$gcc_cv_math_func_clog" >&6; }
20339 if test $gcc_cv_math_func_clog = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_CLOG 1
20343 _ACEOF
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20351 $as_echo_n "checking for clogl... " >&6; }
20352 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20353 $as_echo_n "(cached) " >&6
20354 else
20355 if test x$gcc_no_link = xyes; then
20356 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20361 #ifdef HAVE_COMPLEX_H
20362 #include <complex.h>
20363 #endif
20364 #ifdef HAVE_MATH_H
20365 #include <math.h>
20366 #endif
20368 int (*ptr)() = (int (*)())clogl;
20371 main ()
20373 return 0;
20376 _ACEOF
20377 if ac_fn_c_try_link "$LINENO"; then :
20378 gcc_cv_math_func_clogl=yes
20379 else
20380 gcc_cv_math_func_clogl=no
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20386 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20387 if test $gcc_cv_math_func_clogl = yes; then
20389 cat >>confdefs.h <<_ACEOF
20390 #define HAVE_CLOGL 1
20391 _ACEOF
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20399 $as_echo_n "checking for log10f... " >&6; }
20400 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20402 else
20403 if test x$gcc_no_link = xyes; then
20404 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20409 #ifdef HAVE_COMPLEX_H
20410 #include <complex.h>
20411 #endif
20412 #ifdef HAVE_MATH_H
20413 #include <math.h>
20414 #endif
20416 int (*ptr)() = (int (*)())log10f;
20419 main ()
20421 return 0;
20424 _ACEOF
20425 if ac_fn_c_try_link "$LINENO"; then :
20426 gcc_cv_math_func_log10f=yes
20427 else
20428 gcc_cv_math_func_log10f=no
20430 rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20434 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20435 if test $gcc_cv_math_func_log10f = yes; then
20437 cat >>confdefs.h <<_ACEOF
20438 #define HAVE_LOG10F 1
20439 _ACEOF
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20447 $as_echo_n "checking for log10... " >&6; }
20448 if test "${gcc_cv_math_func_log10+set}" = set; then :
20449 $as_echo_n "(cached) " >&6
20450 else
20451 if test x$gcc_no_link = xyes; then
20452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20457 #ifdef HAVE_COMPLEX_H
20458 #include <complex.h>
20459 #endif
20460 #ifdef HAVE_MATH_H
20461 #include <math.h>
20462 #endif
20464 int (*ptr)() = (int (*)())log10;
20467 main ()
20469 return 0;
20472 _ACEOF
20473 if ac_fn_c_try_link "$LINENO"; then :
20474 gcc_cv_math_func_log10=yes
20475 else
20476 gcc_cv_math_func_log10=no
20478 rm -f core conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20482 $as_echo "$gcc_cv_math_func_log10" >&6; }
20483 if test $gcc_cv_math_func_log10 = yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define HAVE_LOG10 1
20487 _ACEOF
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20495 $as_echo_n "checking for log10l... " >&6; }
20496 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20497 $as_echo_n "(cached) " >&6
20498 else
20499 if test x$gcc_no_link = xyes; then
20500 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20505 #ifdef HAVE_COMPLEX_H
20506 #include <complex.h>
20507 #endif
20508 #ifdef HAVE_MATH_H
20509 #include <math.h>
20510 #endif
20512 int (*ptr)() = (int (*)())log10l;
20515 main ()
20517 return 0;
20520 _ACEOF
20521 if ac_fn_c_try_link "$LINENO"; then :
20522 gcc_cv_math_func_log10l=yes
20523 else
20524 gcc_cv_math_func_log10l=no
20526 rm -f core conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20530 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20531 if test $gcc_cv_math_func_log10l = yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define HAVE_LOG10L 1
20535 _ACEOF
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20543 $as_echo_n "checking for clog10f... " >&6; }
20544 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20545 $as_echo_n "(cached) " >&6
20546 else
20547 if test x$gcc_no_link = xyes; then
20548 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20553 #ifdef HAVE_COMPLEX_H
20554 #include <complex.h>
20555 #endif
20556 #ifdef HAVE_MATH_H
20557 #include <math.h>
20558 #endif
20560 int (*ptr)() = (int (*)())clog10f;
20563 main ()
20565 return 0;
20568 _ACEOF
20569 if ac_fn_c_try_link "$LINENO"; then :
20570 gcc_cv_math_func_clog10f=yes
20571 else
20572 gcc_cv_math_func_clog10f=no
20574 rm -f core conftest.err conftest.$ac_objext \
20575 conftest$ac_exeext conftest.$ac_ext
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20578 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20579 if test $gcc_cv_math_func_clog10f = yes; then
20581 cat >>confdefs.h <<_ACEOF
20582 #define HAVE_CLOG10F 1
20583 _ACEOF
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20591 $as_echo_n "checking for clog10... " >&6; }
20592 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20593 $as_echo_n "(cached) " >&6
20594 else
20595 if test x$gcc_no_link = xyes; then
20596 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20601 #ifdef HAVE_COMPLEX_H
20602 #include <complex.h>
20603 #endif
20604 #ifdef HAVE_MATH_H
20605 #include <math.h>
20606 #endif
20608 int (*ptr)() = (int (*)())clog10;
20611 main ()
20613 return 0;
20616 _ACEOF
20617 if ac_fn_c_try_link "$LINENO"; then :
20618 gcc_cv_math_func_clog10=yes
20619 else
20620 gcc_cv_math_func_clog10=no
20622 rm -f core conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20626 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20627 if test $gcc_cv_math_func_clog10 = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_CLOG10 1
20631 _ACEOF
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20639 $as_echo_n "checking for clog10l... " >&6; }
20640 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20641 $as_echo_n "(cached) " >&6
20642 else
20643 if test x$gcc_no_link = xyes; then
20644 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20649 #ifdef HAVE_COMPLEX_H
20650 #include <complex.h>
20651 #endif
20652 #ifdef HAVE_MATH_H
20653 #include <math.h>
20654 #endif
20656 int (*ptr)() = (int (*)())clog10l;
20659 main ()
20661 return 0;
20664 _ACEOF
20665 if ac_fn_c_try_link "$LINENO"; then :
20666 gcc_cv_math_func_clog10l=yes
20667 else
20668 gcc_cv_math_func_clog10l=no
20670 rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext conftest.$ac_ext
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20674 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20675 if test $gcc_cv_math_func_clog10l = yes; then
20677 cat >>confdefs.h <<_ACEOF
20678 #define HAVE_CLOG10L 1
20679 _ACEOF
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20687 $as_echo_n "checking for nextafterf... " >&6; }
20688 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20689 $as_echo_n "(cached) " >&6
20690 else
20691 if test x$gcc_no_link = xyes; then
20692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695 /* end confdefs.h. */
20697 #ifdef HAVE_COMPLEX_H
20698 #include <complex.h>
20699 #endif
20700 #ifdef HAVE_MATH_H
20701 #include <math.h>
20702 #endif
20704 int (*ptr)() = (int (*)())nextafterf;
20707 main ()
20709 return 0;
20712 _ACEOF
20713 if ac_fn_c_try_link "$LINENO"; then :
20714 gcc_cv_math_func_nextafterf=yes
20715 else
20716 gcc_cv_math_func_nextafterf=no
20718 rm -f core conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20722 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20723 if test $gcc_cv_math_func_nextafterf = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_NEXTAFTERF 1
20727 _ACEOF
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20735 $as_echo_n "checking for nextafter... " >&6; }
20736 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20737 $as_echo_n "(cached) " >&6
20738 else
20739 if test x$gcc_no_link = xyes; then
20740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743 /* end confdefs.h. */
20745 #ifdef HAVE_COMPLEX_H
20746 #include <complex.h>
20747 #endif
20748 #ifdef HAVE_MATH_H
20749 #include <math.h>
20750 #endif
20752 int (*ptr)() = (int (*)())nextafter;
20755 main ()
20757 return 0;
20760 _ACEOF
20761 if ac_fn_c_try_link "$LINENO"; then :
20762 gcc_cv_math_func_nextafter=yes
20763 else
20764 gcc_cv_math_func_nextafter=no
20766 rm -f core conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20770 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20771 if test $gcc_cv_math_func_nextafter = yes; then
20773 cat >>confdefs.h <<_ACEOF
20774 #define HAVE_NEXTAFTER 1
20775 _ACEOF
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20783 $as_echo_n "checking for nextafterl... " >&6; }
20784 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20785 $as_echo_n "(cached) " >&6
20786 else
20787 if test x$gcc_no_link = xyes; then
20788 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20793 #ifdef HAVE_COMPLEX_H
20794 #include <complex.h>
20795 #endif
20796 #ifdef HAVE_MATH_H
20797 #include <math.h>
20798 #endif
20800 int (*ptr)() = (int (*)())nextafterl;
20803 main ()
20805 return 0;
20808 _ACEOF
20809 if ac_fn_c_try_link "$LINENO"; then :
20810 gcc_cv_math_func_nextafterl=yes
20811 else
20812 gcc_cv_math_func_nextafterl=no
20814 rm -f core conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20818 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20819 if test $gcc_cv_math_func_nextafterl = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define HAVE_NEXTAFTERL 1
20823 _ACEOF
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20831 $as_echo_n "checking for powf... " >&6; }
20832 if test "${gcc_cv_math_func_powf+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 if test x$gcc_no_link = xyes; then
20836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20841 #ifdef HAVE_COMPLEX_H
20842 #include <complex.h>
20843 #endif
20844 #ifdef HAVE_MATH_H
20845 #include <math.h>
20846 #endif
20848 int (*ptr)() = (int (*)())powf;
20851 main ()
20853 return 0;
20856 _ACEOF
20857 if ac_fn_c_try_link "$LINENO"; then :
20858 gcc_cv_math_func_powf=yes
20859 else
20860 gcc_cv_math_func_powf=no
20862 rm -f core conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20866 $as_echo "$gcc_cv_math_func_powf" >&6; }
20867 if test $gcc_cv_math_func_powf = yes; then
20869 cat >>confdefs.h <<_ACEOF
20870 #define HAVE_POWF 1
20871 _ACEOF
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20879 $as_echo_n "checking for pow... " >&6; }
20880 if test "${gcc_cv_math_func_pow+set}" = set; then :
20881 $as_echo_n "(cached) " >&6
20882 else
20883 if test x$gcc_no_link = xyes; then
20884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h. */
20889 #ifdef HAVE_COMPLEX_H
20890 #include <complex.h>
20891 #endif
20892 #ifdef HAVE_MATH_H
20893 #include <math.h>
20894 #endif
20896 int (*ptr)() = (int (*)())pow;
20899 main ()
20901 return 0;
20904 _ACEOF
20905 if ac_fn_c_try_link "$LINENO"; then :
20906 gcc_cv_math_func_pow=yes
20907 else
20908 gcc_cv_math_func_pow=no
20910 rm -f core conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20914 $as_echo "$gcc_cv_math_func_pow" >&6; }
20915 if test $gcc_cv_math_func_pow = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define HAVE_POW 1
20919 _ACEOF
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20927 $as_echo_n "checking for cpowf... " >&6; }
20928 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 if test x$gcc_no_link = xyes; then
20932 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20937 #ifdef HAVE_COMPLEX_H
20938 #include <complex.h>
20939 #endif
20940 #ifdef HAVE_MATH_H
20941 #include <math.h>
20942 #endif
20944 int (*ptr)() = (int (*)())cpowf;
20947 main ()
20949 return 0;
20952 _ACEOF
20953 if ac_fn_c_try_link "$LINENO"; then :
20954 gcc_cv_math_func_cpowf=yes
20955 else
20956 gcc_cv_math_func_cpowf=no
20958 rm -f core conftest.err conftest.$ac_objext \
20959 conftest$ac_exeext conftest.$ac_ext
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20962 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20963 if test $gcc_cv_math_func_cpowf = yes; then
20965 cat >>confdefs.h <<_ACEOF
20966 #define HAVE_CPOWF 1
20967 _ACEOF
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20975 $as_echo_n "checking for cpow... " >&6; }
20976 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 if test x$gcc_no_link = xyes; then
20980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h. */
20985 #ifdef HAVE_COMPLEX_H
20986 #include <complex.h>
20987 #endif
20988 #ifdef HAVE_MATH_H
20989 #include <math.h>
20990 #endif
20992 int (*ptr)() = (int (*)())cpow;
20995 main ()
20997 return 0;
21000 _ACEOF
21001 if ac_fn_c_try_link "$LINENO"; then :
21002 gcc_cv_math_func_cpow=yes
21003 else
21004 gcc_cv_math_func_cpow=no
21006 rm -f core conftest.err conftest.$ac_objext \
21007 conftest$ac_exeext conftest.$ac_ext
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21010 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21011 if test $gcc_cv_math_func_cpow = yes; then
21013 cat >>confdefs.h <<_ACEOF
21014 #define HAVE_CPOW 1
21015 _ACEOF
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21023 $as_echo_n "checking for cpowl... " >&6; }
21024 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 if test x$gcc_no_link = xyes; then
21028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21033 #ifdef HAVE_COMPLEX_H
21034 #include <complex.h>
21035 #endif
21036 #ifdef HAVE_MATH_H
21037 #include <math.h>
21038 #endif
21040 int (*ptr)() = (int (*)())cpowl;
21043 main ()
21045 return 0;
21048 _ACEOF
21049 if ac_fn_c_try_link "$LINENO"; then :
21050 gcc_cv_math_func_cpowl=yes
21051 else
21052 gcc_cv_math_func_cpowl=no
21054 rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21058 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21059 if test $gcc_cv_math_func_cpowl = yes; then
21061 cat >>confdefs.h <<_ACEOF
21062 #define HAVE_CPOWL 1
21063 _ACEOF
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21071 $as_echo_n "checking for roundf... " >&6; }
21072 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21074 else
21075 if test x$gcc_no_link = xyes; then
21076 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h. */
21081 #ifdef HAVE_COMPLEX_H
21082 #include <complex.h>
21083 #endif
21084 #ifdef HAVE_MATH_H
21085 #include <math.h>
21086 #endif
21088 int (*ptr)() = (int (*)())roundf;
21091 main ()
21093 return 0;
21096 _ACEOF
21097 if ac_fn_c_try_link "$LINENO"; then :
21098 gcc_cv_math_func_roundf=yes
21099 else
21100 gcc_cv_math_func_roundf=no
21102 rm -f core conftest.err conftest.$ac_objext \
21103 conftest$ac_exeext conftest.$ac_ext
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21106 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21107 if test $gcc_cv_math_func_roundf = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define HAVE_ROUNDF 1
21111 _ACEOF
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21119 $as_echo_n "checking for round... " >&6; }
21120 if test "${gcc_cv_math_func_round+set}" = set; then :
21121 $as_echo_n "(cached) " >&6
21122 else
21123 if test x$gcc_no_link = xyes; then
21124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21129 #ifdef HAVE_COMPLEX_H
21130 #include <complex.h>
21131 #endif
21132 #ifdef HAVE_MATH_H
21133 #include <math.h>
21134 #endif
21136 int (*ptr)() = (int (*)())round;
21139 main ()
21141 return 0;
21144 _ACEOF
21145 if ac_fn_c_try_link "$LINENO"; then :
21146 gcc_cv_math_func_round=yes
21147 else
21148 gcc_cv_math_func_round=no
21150 rm -f core conftest.err conftest.$ac_objext \
21151 conftest$ac_exeext conftest.$ac_ext
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21154 $as_echo "$gcc_cv_math_func_round" >&6; }
21155 if test $gcc_cv_math_func_round = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define HAVE_ROUND 1
21159 _ACEOF
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21167 $as_echo_n "checking for roundl... " >&6; }
21168 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21169 $as_echo_n "(cached) " >&6
21170 else
21171 if test x$gcc_no_link = xyes; then
21172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21177 #ifdef HAVE_COMPLEX_H
21178 #include <complex.h>
21179 #endif
21180 #ifdef HAVE_MATH_H
21181 #include <math.h>
21182 #endif
21184 int (*ptr)() = (int (*)())roundl;
21187 main ()
21189 return 0;
21192 _ACEOF
21193 if ac_fn_c_try_link "$LINENO"; then :
21194 gcc_cv_math_func_roundl=yes
21195 else
21196 gcc_cv_math_func_roundl=no
21198 rm -f core conftest.err conftest.$ac_objext \
21199 conftest$ac_exeext conftest.$ac_ext
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21202 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21203 if test $gcc_cv_math_func_roundl = yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define HAVE_ROUNDL 1
21207 _ACEOF
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21215 $as_echo_n "checking for lroundf... " >&6; }
21216 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21217 $as_echo_n "(cached) " >&6
21218 else
21219 if test x$gcc_no_link = xyes; then
21220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21225 #ifdef HAVE_COMPLEX_H
21226 #include <complex.h>
21227 #endif
21228 #ifdef HAVE_MATH_H
21229 #include <math.h>
21230 #endif
21232 int (*ptr)() = (int (*)())lroundf;
21235 main ()
21237 return 0;
21240 _ACEOF
21241 if ac_fn_c_try_link "$LINENO"; then :
21242 gcc_cv_math_func_lroundf=yes
21243 else
21244 gcc_cv_math_func_lroundf=no
21246 rm -f core conftest.err conftest.$ac_objext \
21247 conftest$ac_exeext conftest.$ac_ext
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21250 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21251 if test $gcc_cv_math_func_lroundf = yes; then
21253 cat >>confdefs.h <<_ACEOF
21254 #define HAVE_LROUNDF 1
21255 _ACEOF
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21263 $as_echo_n "checking for lround... " >&6; }
21264 if test "${gcc_cv_math_func_lround+set}" = set; then :
21265 $as_echo_n "(cached) " >&6
21266 else
21267 if test x$gcc_no_link = xyes; then
21268 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h. */
21273 #ifdef HAVE_COMPLEX_H
21274 #include <complex.h>
21275 #endif
21276 #ifdef HAVE_MATH_H
21277 #include <math.h>
21278 #endif
21280 int (*ptr)() = (int (*)())lround;
21283 main ()
21285 return 0;
21288 _ACEOF
21289 if ac_fn_c_try_link "$LINENO"; then :
21290 gcc_cv_math_func_lround=yes
21291 else
21292 gcc_cv_math_func_lround=no
21294 rm -f core conftest.err conftest.$ac_objext \
21295 conftest$ac_exeext conftest.$ac_ext
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21298 $as_echo "$gcc_cv_math_func_lround" >&6; }
21299 if test $gcc_cv_math_func_lround = yes; then
21301 cat >>confdefs.h <<_ACEOF
21302 #define HAVE_LROUND 1
21303 _ACEOF
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21311 $as_echo_n "checking for lroundl... " >&6; }
21312 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 if test x$gcc_no_link = xyes; then
21316 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21319 /* end confdefs.h. */
21321 #ifdef HAVE_COMPLEX_H
21322 #include <complex.h>
21323 #endif
21324 #ifdef HAVE_MATH_H
21325 #include <math.h>
21326 #endif
21328 int (*ptr)() = (int (*)())lroundl;
21331 main ()
21333 return 0;
21336 _ACEOF
21337 if ac_fn_c_try_link "$LINENO"; then :
21338 gcc_cv_math_func_lroundl=yes
21339 else
21340 gcc_cv_math_func_lroundl=no
21342 rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21346 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21347 if test $gcc_cv_math_func_lroundl = yes; then
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE_LROUNDL 1
21351 _ACEOF
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21359 $as_echo_n "checking for llroundf... " >&6; }
21360 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21362 else
21363 if test x$gcc_no_link = xyes; then
21364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367 /* end confdefs.h. */
21369 #ifdef HAVE_COMPLEX_H
21370 #include <complex.h>
21371 #endif
21372 #ifdef HAVE_MATH_H
21373 #include <math.h>
21374 #endif
21376 int (*ptr)() = (int (*)())llroundf;
21379 main ()
21381 return 0;
21384 _ACEOF
21385 if ac_fn_c_try_link "$LINENO"; then :
21386 gcc_cv_math_func_llroundf=yes
21387 else
21388 gcc_cv_math_func_llroundf=no
21390 rm -f core conftest.err conftest.$ac_objext \
21391 conftest$ac_exeext conftest.$ac_ext
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21394 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21395 if test $gcc_cv_math_func_llroundf = yes; then
21397 cat >>confdefs.h <<_ACEOF
21398 #define HAVE_LLROUNDF 1
21399 _ACEOF
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21407 $as_echo_n "checking for llround... " >&6; }
21408 if test "${gcc_cv_math_func_llround+set}" = set; then :
21409 $as_echo_n "(cached) " >&6
21410 else
21411 if test x$gcc_no_link = xyes; then
21412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21415 /* end confdefs.h. */
21417 #ifdef HAVE_COMPLEX_H
21418 #include <complex.h>
21419 #endif
21420 #ifdef HAVE_MATH_H
21421 #include <math.h>
21422 #endif
21424 int (*ptr)() = (int (*)())llround;
21427 main ()
21429 return 0;
21432 _ACEOF
21433 if ac_fn_c_try_link "$LINENO"; then :
21434 gcc_cv_math_func_llround=yes
21435 else
21436 gcc_cv_math_func_llround=no
21438 rm -f core conftest.err conftest.$ac_objext \
21439 conftest$ac_exeext conftest.$ac_ext
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21442 $as_echo "$gcc_cv_math_func_llround" >&6; }
21443 if test $gcc_cv_math_func_llround = yes; then
21445 cat >>confdefs.h <<_ACEOF
21446 #define HAVE_LLROUND 1
21447 _ACEOF
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21455 $as_echo_n "checking for llroundl... " >&6; }
21456 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21457 $as_echo_n "(cached) " >&6
21458 else
21459 if test x$gcc_no_link = xyes; then
21460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21465 #ifdef HAVE_COMPLEX_H
21466 #include <complex.h>
21467 #endif
21468 #ifdef HAVE_MATH_H
21469 #include <math.h>
21470 #endif
21472 int (*ptr)() = (int (*)())llroundl;
21475 main ()
21477 return 0;
21480 _ACEOF
21481 if ac_fn_c_try_link "$LINENO"; then :
21482 gcc_cv_math_func_llroundl=yes
21483 else
21484 gcc_cv_math_func_llroundl=no
21486 rm -f core conftest.err conftest.$ac_objext \
21487 conftest$ac_exeext conftest.$ac_ext
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21490 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21491 if test $gcc_cv_math_func_llroundl = yes; then
21493 cat >>confdefs.h <<_ACEOF
21494 #define HAVE_LLROUNDL 1
21495 _ACEOF
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21503 $as_echo_n "checking for scalbnf... " >&6; }
21504 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21505 $as_echo_n "(cached) " >&6
21506 else
21507 if test x$gcc_no_link = xyes; then
21508 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21513 #ifdef HAVE_COMPLEX_H
21514 #include <complex.h>
21515 #endif
21516 #ifdef HAVE_MATH_H
21517 #include <math.h>
21518 #endif
21520 int (*ptr)() = (int (*)())scalbnf;
21523 main ()
21525 return 0;
21528 _ACEOF
21529 if ac_fn_c_try_link "$LINENO"; then :
21530 gcc_cv_math_func_scalbnf=yes
21531 else
21532 gcc_cv_math_func_scalbnf=no
21534 rm -f core conftest.err conftest.$ac_objext \
21535 conftest$ac_exeext conftest.$ac_ext
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21538 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21539 if test $gcc_cv_math_func_scalbnf = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define HAVE_SCALBNF 1
21543 _ACEOF
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21551 $as_echo_n "checking for scalbn... " >&6; }
21552 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21553 $as_echo_n "(cached) " >&6
21554 else
21555 if test x$gcc_no_link = xyes; then
21556 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21561 #ifdef HAVE_COMPLEX_H
21562 #include <complex.h>
21563 #endif
21564 #ifdef HAVE_MATH_H
21565 #include <math.h>
21566 #endif
21568 int (*ptr)() = (int (*)())scalbn;
21571 main ()
21573 return 0;
21576 _ACEOF
21577 if ac_fn_c_try_link "$LINENO"; then :
21578 gcc_cv_math_func_scalbn=yes
21579 else
21580 gcc_cv_math_func_scalbn=no
21582 rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21586 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21587 if test $gcc_cv_math_func_scalbn = yes; then
21589 cat >>confdefs.h <<_ACEOF
21590 #define HAVE_SCALBN 1
21591 _ACEOF
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21599 $as_echo_n "checking for scalbnl... " >&6; }
21600 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21601 $as_echo_n "(cached) " >&6
21602 else
21603 if test x$gcc_no_link = xyes; then
21604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21607 /* end confdefs.h. */
21609 #ifdef HAVE_COMPLEX_H
21610 #include <complex.h>
21611 #endif
21612 #ifdef HAVE_MATH_H
21613 #include <math.h>
21614 #endif
21616 int (*ptr)() = (int (*)())scalbnl;
21619 main ()
21621 return 0;
21624 _ACEOF
21625 if ac_fn_c_try_link "$LINENO"; then :
21626 gcc_cv_math_func_scalbnl=yes
21627 else
21628 gcc_cv_math_func_scalbnl=no
21630 rm -f core conftest.err conftest.$ac_objext \
21631 conftest$ac_exeext conftest.$ac_ext
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21634 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21635 if test $gcc_cv_math_func_scalbnl = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define HAVE_SCALBNL 1
21639 _ACEOF
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21647 $as_echo_n "checking for sinf... " >&6; }
21648 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21649 $as_echo_n "(cached) " >&6
21650 else
21651 if test x$gcc_no_link = xyes; then
21652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21655 /* end confdefs.h. */
21657 #ifdef HAVE_COMPLEX_H
21658 #include <complex.h>
21659 #endif
21660 #ifdef HAVE_MATH_H
21661 #include <math.h>
21662 #endif
21664 int (*ptr)() = (int (*)())sinf;
21667 main ()
21669 return 0;
21672 _ACEOF
21673 if ac_fn_c_try_link "$LINENO"; then :
21674 gcc_cv_math_func_sinf=yes
21675 else
21676 gcc_cv_math_func_sinf=no
21678 rm -f core conftest.err conftest.$ac_objext \
21679 conftest$ac_exeext conftest.$ac_ext
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21682 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21683 if test $gcc_cv_math_func_sinf = yes; then
21685 cat >>confdefs.h <<_ACEOF
21686 #define HAVE_SINF 1
21687 _ACEOF
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21695 $as_echo_n "checking for sin... " >&6; }
21696 if test "${gcc_cv_math_func_sin+set}" = set; then :
21697 $as_echo_n "(cached) " >&6
21698 else
21699 if test x$gcc_no_link = xyes; then
21700 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21705 #ifdef HAVE_COMPLEX_H
21706 #include <complex.h>
21707 #endif
21708 #ifdef HAVE_MATH_H
21709 #include <math.h>
21710 #endif
21712 int (*ptr)() = (int (*)())sin;
21715 main ()
21717 return 0;
21720 _ACEOF
21721 if ac_fn_c_try_link "$LINENO"; then :
21722 gcc_cv_math_func_sin=yes
21723 else
21724 gcc_cv_math_func_sin=no
21726 rm -f core conftest.err conftest.$ac_objext \
21727 conftest$ac_exeext conftest.$ac_ext
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21730 $as_echo "$gcc_cv_math_func_sin" >&6; }
21731 if test $gcc_cv_math_func_sin = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define HAVE_SIN 1
21735 _ACEOF
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21743 $as_echo_n "checking for sinl... " >&6; }
21744 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21745 $as_echo_n "(cached) " >&6
21746 else
21747 if test x$gcc_no_link = xyes; then
21748 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751 /* end confdefs.h. */
21753 #ifdef HAVE_COMPLEX_H
21754 #include <complex.h>
21755 #endif
21756 #ifdef HAVE_MATH_H
21757 #include <math.h>
21758 #endif
21760 int (*ptr)() = (int (*)())sinl;
21763 main ()
21765 return 0;
21768 _ACEOF
21769 if ac_fn_c_try_link "$LINENO"; then :
21770 gcc_cv_math_func_sinl=yes
21771 else
21772 gcc_cv_math_func_sinl=no
21774 rm -f core conftest.err conftest.$ac_objext \
21775 conftest$ac_exeext conftest.$ac_ext
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21778 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21779 if test $gcc_cv_math_func_sinl = yes; then
21781 cat >>confdefs.h <<_ACEOF
21782 #define HAVE_SINL 1
21783 _ACEOF
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21791 $as_echo_n "checking for csinf... " >&6; }
21792 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795 if test x$gcc_no_link = xyes; then
21796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21799 /* end confdefs.h. */
21801 #ifdef HAVE_COMPLEX_H
21802 #include <complex.h>
21803 #endif
21804 #ifdef HAVE_MATH_H
21805 #include <math.h>
21806 #endif
21808 int (*ptr)() = (int (*)())csinf;
21811 main ()
21813 return 0;
21816 _ACEOF
21817 if ac_fn_c_try_link "$LINENO"; then :
21818 gcc_cv_math_func_csinf=yes
21819 else
21820 gcc_cv_math_func_csinf=no
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21826 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21827 if test $gcc_cv_math_func_csinf = yes; then
21829 cat >>confdefs.h <<_ACEOF
21830 #define HAVE_CSINF 1
21831 _ACEOF
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21839 $as_echo_n "checking for csin... " >&6; }
21840 if test "${gcc_cv_math_func_csin+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 if test x$gcc_no_link = xyes; then
21844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21849 #ifdef HAVE_COMPLEX_H
21850 #include <complex.h>
21851 #endif
21852 #ifdef HAVE_MATH_H
21853 #include <math.h>
21854 #endif
21856 int (*ptr)() = (int (*)())csin;
21859 main ()
21861 return 0;
21864 _ACEOF
21865 if ac_fn_c_try_link "$LINENO"; then :
21866 gcc_cv_math_func_csin=yes
21867 else
21868 gcc_cv_math_func_csin=no
21870 rm -f core conftest.err conftest.$ac_objext \
21871 conftest$ac_exeext conftest.$ac_ext
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21874 $as_echo "$gcc_cv_math_func_csin" >&6; }
21875 if test $gcc_cv_math_func_csin = yes; then
21877 cat >>confdefs.h <<_ACEOF
21878 #define HAVE_CSIN 1
21879 _ACEOF
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21887 $as_echo_n "checking for csinl... " >&6; }
21888 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21889 $as_echo_n "(cached) " >&6
21890 else
21891 if test x$gcc_no_link = xyes; then
21892 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21895 /* end confdefs.h. */
21897 #ifdef HAVE_COMPLEX_H
21898 #include <complex.h>
21899 #endif
21900 #ifdef HAVE_MATH_H
21901 #include <math.h>
21902 #endif
21904 int (*ptr)() = (int (*)())csinl;
21907 main ()
21909 return 0;
21912 _ACEOF
21913 if ac_fn_c_try_link "$LINENO"; then :
21914 gcc_cv_math_func_csinl=yes
21915 else
21916 gcc_cv_math_func_csinl=no
21918 rm -f core conftest.err conftest.$ac_objext \
21919 conftest$ac_exeext conftest.$ac_ext
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21922 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21923 if test $gcc_cv_math_func_csinl = yes; then
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_CSINL 1
21927 _ACEOF
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21935 $as_echo_n "checking for sinhf... " >&6; }
21936 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 if test x$gcc_no_link = xyes; then
21940 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 #ifdef HAVE_COMPLEX_H
21946 #include <complex.h>
21947 #endif
21948 #ifdef HAVE_MATH_H
21949 #include <math.h>
21950 #endif
21952 int (*ptr)() = (int (*)())sinhf;
21955 main ()
21957 return 0;
21960 _ACEOF
21961 if ac_fn_c_try_link "$LINENO"; then :
21962 gcc_cv_math_func_sinhf=yes
21963 else
21964 gcc_cv_math_func_sinhf=no
21966 rm -f core conftest.err conftest.$ac_objext \
21967 conftest$ac_exeext conftest.$ac_ext
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21970 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21971 if test $gcc_cv_math_func_sinhf = yes; then
21973 cat >>confdefs.h <<_ACEOF
21974 #define HAVE_SINHF 1
21975 _ACEOF
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21983 $as_echo_n "checking for sinh... " >&6; }
21984 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21987 if test x$gcc_no_link = xyes; then
21988 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h. */
21993 #ifdef HAVE_COMPLEX_H
21994 #include <complex.h>
21995 #endif
21996 #ifdef HAVE_MATH_H
21997 #include <math.h>
21998 #endif
22000 int (*ptr)() = (int (*)())sinh;
22003 main ()
22005 return 0;
22008 _ACEOF
22009 if ac_fn_c_try_link "$LINENO"; then :
22010 gcc_cv_math_func_sinh=yes
22011 else
22012 gcc_cv_math_func_sinh=no
22014 rm -f core conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22018 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22019 if test $gcc_cv_math_func_sinh = yes; then
22021 cat >>confdefs.h <<_ACEOF
22022 #define HAVE_SINH 1
22023 _ACEOF
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22031 $as_echo_n "checking for sinhl... " >&6; }
22032 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 if test x$gcc_no_link = xyes; then
22036 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039 /* end confdefs.h. */
22041 #ifdef HAVE_COMPLEX_H
22042 #include <complex.h>
22043 #endif
22044 #ifdef HAVE_MATH_H
22045 #include <math.h>
22046 #endif
22048 int (*ptr)() = (int (*)())sinhl;
22051 main ()
22053 return 0;
22056 _ACEOF
22057 if ac_fn_c_try_link "$LINENO"; then :
22058 gcc_cv_math_func_sinhl=yes
22059 else
22060 gcc_cv_math_func_sinhl=no
22062 rm -f core conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22066 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22067 if test $gcc_cv_math_func_sinhl = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070 #define HAVE_SINHL 1
22071 _ACEOF
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22079 $as_echo_n "checking for csinhf... " >&6; }
22080 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22082 else
22083 if test x$gcc_no_link = xyes; then
22084 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22089 #ifdef HAVE_COMPLEX_H
22090 #include <complex.h>
22091 #endif
22092 #ifdef HAVE_MATH_H
22093 #include <math.h>
22094 #endif
22096 int (*ptr)() = (int (*)())csinhf;
22099 main ()
22101 return 0;
22104 _ACEOF
22105 if ac_fn_c_try_link "$LINENO"; then :
22106 gcc_cv_math_func_csinhf=yes
22107 else
22108 gcc_cv_math_func_csinhf=no
22110 rm -f core conftest.err conftest.$ac_objext \
22111 conftest$ac_exeext conftest.$ac_ext
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22114 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22115 if test $gcc_cv_math_func_csinhf = yes; then
22117 cat >>confdefs.h <<_ACEOF
22118 #define HAVE_CSINHF 1
22119 _ACEOF
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22127 $as_echo_n "checking for csinh... " >&6; }
22128 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22129 $as_echo_n "(cached) " >&6
22130 else
22131 if test x$gcc_no_link = xyes; then
22132 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22137 #ifdef HAVE_COMPLEX_H
22138 #include <complex.h>
22139 #endif
22140 #ifdef HAVE_MATH_H
22141 #include <math.h>
22142 #endif
22144 int (*ptr)() = (int (*)())csinh;
22147 main ()
22149 return 0;
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"; then :
22154 gcc_cv_math_func_csinh=yes
22155 else
22156 gcc_cv_math_func_csinh=no
22158 rm -f core conftest.err conftest.$ac_objext \
22159 conftest$ac_exeext conftest.$ac_ext
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22162 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22163 if test $gcc_cv_math_func_csinh = yes; then
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_CSINH 1
22167 _ACEOF
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22175 $as_echo_n "checking for csinhl... " >&6; }
22176 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22177 $as_echo_n "(cached) " >&6
22178 else
22179 if test x$gcc_no_link = xyes; then
22180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22185 #ifdef HAVE_COMPLEX_H
22186 #include <complex.h>
22187 #endif
22188 #ifdef HAVE_MATH_H
22189 #include <math.h>
22190 #endif
22192 int (*ptr)() = (int (*)())csinhl;
22195 main ()
22197 return 0;
22200 _ACEOF
22201 if ac_fn_c_try_link "$LINENO"; then :
22202 gcc_cv_math_func_csinhl=yes
22203 else
22204 gcc_cv_math_func_csinhl=no
22206 rm -f core conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22210 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22211 if test $gcc_cv_math_func_csinhl = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_CSINHL 1
22215 _ACEOF
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22223 $as_echo_n "checking for sqrtf... " >&6; }
22224 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22225 $as_echo_n "(cached) " >&6
22226 else
22227 if test x$gcc_no_link = xyes; then
22228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22233 #ifdef HAVE_COMPLEX_H
22234 #include <complex.h>
22235 #endif
22236 #ifdef HAVE_MATH_H
22237 #include <math.h>
22238 #endif
22240 int (*ptr)() = (int (*)())sqrtf;
22243 main ()
22245 return 0;
22248 _ACEOF
22249 if ac_fn_c_try_link "$LINENO"; then :
22250 gcc_cv_math_func_sqrtf=yes
22251 else
22252 gcc_cv_math_func_sqrtf=no
22254 rm -f core conftest.err conftest.$ac_objext \
22255 conftest$ac_exeext conftest.$ac_ext
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22258 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22259 if test $gcc_cv_math_func_sqrtf = yes; then
22261 cat >>confdefs.h <<_ACEOF
22262 #define HAVE_SQRTF 1
22263 _ACEOF
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22271 $as_echo_n "checking for sqrt... " >&6; }
22272 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22274 else
22275 if test x$gcc_no_link = xyes; then
22276 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279 /* end confdefs.h. */
22281 #ifdef HAVE_COMPLEX_H
22282 #include <complex.h>
22283 #endif
22284 #ifdef HAVE_MATH_H
22285 #include <math.h>
22286 #endif
22288 int (*ptr)() = (int (*)())sqrt;
22291 main ()
22293 return 0;
22296 _ACEOF
22297 if ac_fn_c_try_link "$LINENO"; then :
22298 gcc_cv_math_func_sqrt=yes
22299 else
22300 gcc_cv_math_func_sqrt=no
22302 rm -f core conftest.err conftest.$ac_objext \
22303 conftest$ac_exeext conftest.$ac_ext
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22306 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22307 if test $gcc_cv_math_func_sqrt = yes; then
22309 cat >>confdefs.h <<_ACEOF
22310 #define HAVE_SQRT 1
22311 _ACEOF
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22319 $as_echo_n "checking for sqrtl... " >&6; }
22320 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22321 $as_echo_n "(cached) " >&6
22322 else
22323 if test x$gcc_no_link = xyes; then
22324 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22329 #ifdef HAVE_COMPLEX_H
22330 #include <complex.h>
22331 #endif
22332 #ifdef HAVE_MATH_H
22333 #include <math.h>
22334 #endif
22336 int (*ptr)() = (int (*)())sqrtl;
22339 main ()
22341 return 0;
22344 _ACEOF
22345 if ac_fn_c_try_link "$LINENO"; then :
22346 gcc_cv_math_func_sqrtl=yes
22347 else
22348 gcc_cv_math_func_sqrtl=no
22350 rm -f core conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22354 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22355 if test $gcc_cv_math_func_sqrtl = yes; then
22357 cat >>confdefs.h <<_ACEOF
22358 #define HAVE_SQRTL 1
22359 _ACEOF
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22367 $as_echo_n "checking for csqrtf... " >&6; }
22368 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22369 $as_echo_n "(cached) " >&6
22370 else
22371 if test x$gcc_no_link = xyes; then
22372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375 /* end confdefs.h. */
22377 #ifdef HAVE_COMPLEX_H
22378 #include <complex.h>
22379 #endif
22380 #ifdef HAVE_MATH_H
22381 #include <math.h>
22382 #endif
22384 int (*ptr)() = (int (*)())csqrtf;
22387 main ()
22389 return 0;
22392 _ACEOF
22393 if ac_fn_c_try_link "$LINENO"; then :
22394 gcc_cv_math_func_csqrtf=yes
22395 else
22396 gcc_cv_math_func_csqrtf=no
22398 rm -f core conftest.err conftest.$ac_objext \
22399 conftest$ac_exeext conftest.$ac_ext
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22402 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22403 if test $gcc_cv_math_func_csqrtf = yes; then
22405 cat >>confdefs.h <<_ACEOF
22406 #define HAVE_CSQRTF 1
22407 _ACEOF
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22415 $as_echo_n "checking for csqrt... " >&6; }
22416 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22417 $as_echo_n "(cached) " >&6
22418 else
22419 if test x$gcc_no_link = xyes; then
22420 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22423 /* end confdefs.h. */
22425 #ifdef HAVE_COMPLEX_H
22426 #include <complex.h>
22427 #endif
22428 #ifdef HAVE_MATH_H
22429 #include <math.h>
22430 #endif
22432 int (*ptr)() = (int (*)())csqrt;
22435 main ()
22437 return 0;
22440 _ACEOF
22441 if ac_fn_c_try_link "$LINENO"; then :
22442 gcc_cv_math_func_csqrt=yes
22443 else
22444 gcc_cv_math_func_csqrt=no
22446 rm -f core conftest.err conftest.$ac_objext \
22447 conftest$ac_exeext conftest.$ac_ext
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22450 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22451 if test $gcc_cv_math_func_csqrt = yes; then
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_CSQRT 1
22455 _ACEOF
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22463 $as_echo_n "checking for csqrtl... " >&6; }
22464 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22466 else
22467 if test x$gcc_no_link = xyes; then
22468 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471 /* end confdefs.h. */
22473 #ifdef HAVE_COMPLEX_H
22474 #include <complex.h>
22475 #endif
22476 #ifdef HAVE_MATH_H
22477 #include <math.h>
22478 #endif
22480 int (*ptr)() = (int (*)())csqrtl;
22483 main ()
22485 return 0;
22488 _ACEOF
22489 if ac_fn_c_try_link "$LINENO"; then :
22490 gcc_cv_math_func_csqrtl=yes
22491 else
22492 gcc_cv_math_func_csqrtl=no
22494 rm -f core conftest.err conftest.$ac_objext \
22495 conftest$ac_exeext conftest.$ac_ext
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22498 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22499 if test $gcc_cv_math_func_csqrtl = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502 #define HAVE_CSQRTL 1
22503 _ACEOF
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22511 $as_echo_n "checking for tanf... " >&6; }
22512 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22513 $as_echo_n "(cached) " >&6
22514 else
22515 if test x$gcc_no_link = xyes; then
22516 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22521 #ifdef HAVE_COMPLEX_H
22522 #include <complex.h>
22523 #endif
22524 #ifdef HAVE_MATH_H
22525 #include <math.h>
22526 #endif
22528 int (*ptr)() = (int (*)())tanf;
22531 main ()
22533 return 0;
22536 _ACEOF
22537 if ac_fn_c_try_link "$LINENO"; then :
22538 gcc_cv_math_func_tanf=yes
22539 else
22540 gcc_cv_math_func_tanf=no
22542 rm -f core conftest.err conftest.$ac_objext \
22543 conftest$ac_exeext conftest.$ac_ext
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22546 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22547 if test $gcc_cv_math_func_tanf = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550 #define HAVE_TANF 1
22551 _ACEOF
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22559 $as_echo_n "checking for tan... " >&6; }
22560 if test "${gcc_cv_math_func_tan+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 if test x$gcc_no_link = xyes; then
22564 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567 /* end confdefs.h. */
22569 #ifdef HAVE_COMPLEX_H
22570 #include <complex.h>
22571 #endif
22572 #ifdef HAVE_MATH_H
22573 #include <math.h>
22574 #endif
22576 int (*ptr)() = (int (*)())tan;
22579 main ()
22581 return 0;
22584 _ACEOF
22585 if ac_fn_c_try_link "$LINENO"; then :
22586 gcc_cv_math_func_tan=yes
22587 else
22588 gcc_cv_math_func_tan=no
22590 rm -f core conftest.err conftest.$ac_objext \
22591 conftest$ac_exeext conftest.$ac_ext
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22594 $as_echo "$gcc_cv_math_func_tan" >&6; }
22595 if test $gcc_cv_math_func_tan = yes; then
22597 cat >>confdefs.h <<_ACEOF
22598 #define HAVE_TAN 1
22599 _ACEOF
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22607 $as_echo_n "checking for tanl... " >&6; }
22608 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22609 $as_echo_n "(cached) " >&6
22610 else
22611 if test x$gcc_no_link = xyes; then
22612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h. */
22617 #ifdef HAVE_COMPLEX_H
22618 #include <complex.h>
22619 #endif
22620 #ifdef HAVE_MATH_H
22621 #include <math.h>
22622 #endif
22624 int (*ptr)() = (int (*)())tanl;
22627 main ()
22629 return 0;
22632 _ACEOF
22633 if ac_fn_c_try_link "$LINENO"; then :
22634 gcc_cv_math_func_tanl=yes
22635 else
22636 gcc_cv_math_func_tanl=no
22638 rm -f core conftest.err conftest.$ac_objext \
22639 conftest$ac_exeext conftest.$ac_ext
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22642 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22643 if test $gcc_cv_math_func_tanl = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_TANL 1
22647 _ACEOF
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22655 $as_echo_n "checking for ctanf... " >&6; }
22656 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22657 $as_echo_n "(cached) " >&6
22658 else
22659 if test x$gcc_no_link = xyes; then
22660 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22665 #ifdef HAVE_COMPLEX_H
22666 #include <complex.h>
22667 #endif
22668 #ifdef HAVE_MATH_H
22669 #include <math.h>
22670 #endif
22672 int (*ptr)() = (int (*)())ctanf;
22675 main ()
22677 return 0;
22680 _ACEOF
22681 if ac_fn_c_try_link "$LINENO"; then :
22682 gcc_cv_math_func_ctanf=yes
22683 else
22684 gcc_cv_math_func_ctanf=no
22686 rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22690 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22691 if test $gcc_cv_math_func_ctanf = yes; then
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_CTANF 1
22695 _ACEOF
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22703 $as_echo_n "checking for ctan... " >&6; }
22704 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 if test x$gcc_no_link = xyes; then
22708 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22713 #ifdef HAVE_COMPLEX_H
22714 #include <complex.h>
22715 #endif
22716 #ifdef HAVE_MATH_H
22717 #include <math.h>
22718 #endif
22720 int (*ptr)() = (int (*)())ctan;
22723 main ()
22725 return 0;
22728 _ACEOF
22729 if ac_fn_c_try_link "$LINENO"; then :
22730 gcc_cv_math_func_ctan=yes
22731 else
22732 gcc_cv_math_func_ctan=no
22734 rm -f core conftest.err conftest.$ac_objext \
22735 conftest$ac_exeext conftest.$ac_ext
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22738 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22739 if test $gcc_cv_math_func_ctan = yes; then
22741 cat >>confdefs.h <<_ACEOF
22742 #define HAVE_CTAN 1
22743 _ACEOF
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22751 $as_echo_n "checking for ctanl... " >&6; }
22752 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22754 else
22755 if test x$gcc_no_link = xyes; then
22756 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22761 #ifdef HAVE_COMPLEX_H
22762 #include <complex.h>
22763 #endif
22764 #ifdef HAVE_MATH_H
22765 #include <math.h>
22766 #endif
22768 int (*ptr)() = (int (*)())ctanl;
22771 main ()
22773 return 0;
22776 _ACEOF
22777 if ac_fn_c_try_link "$LINENO"; then :
22778 gcc_cv_math_func_ctanl=yes
22779 else
22780 gcc_cv_math_func_ctanl=no
22782 rm -f core conftest.err conftest.$ac_objext \
22783 conftest$ac_exeext conftest.$ac_ext
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22786 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22787 if test $gcc_cv_math_func_ctanl = yes; then
22789 cat >>confdefs.h <<_ACEOF
22790 #define HAVE_CTANL 1
22791 _ACEOF
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22799 $as_echo_n "checking for tanhf... " >&6; }
22800 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 if test x$gcc_no_link = xyes; then
22804 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807 /* end confdefs.h. */
22809 #ifdef HAVE_COMPLEX_H
22810 #include <complex.h>
22811 #endif
22812 #ifdef HAVE_MATH_H
22813 #include <math.h>
22814 #endif
22816 int (*ptr)() = (int (*)())tanhf;
22819 main ()
22821 return 0;
22824 _ACEOF
22825 if ac_fn_c_try_link "$LINENO"; then :
22826 gcc_cv_math_func_tanhf=yes
22827 else
22828 gcc_cv_math_func_tanhf=no
22830 rm -f core conftest.err conftest.$ac_objext \
22831 conftest$ac_exeext conftest.$ac_ext
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22834 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22835 if test $gcc_cv_math_func_tanhf = yes; then
22837 cat >>confdefs.h <<_ACEOF
22838 #define HAVE_TANHF 1
22839 _ACEOF
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22847 $as_echo_n "checking for tanh... " >&6; }
22848 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22849 $as_echo_n "(cached) " >&6
22850 else
22851 if test x$gcc_no_link = xyes; then
22852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22857 #ifdef HAVE_COMPLEX_H
22858 #include <complex.h>
22859 #endif
22860 #ifdef HAVE_MATH_H
22861 #include <math.h>
22862 #endif
22864 int (*ptr)() = (int (*)())tanh;
22867 main ()
22869 return 0;
22872 _ACEOF
22873 if ac_fn_c_try_link "$LINENO"; then :
22874 gcc_cv_math_func_tanh=yes
22875 else
22876 gcc_cv_math_func_tanh=no
22878 rm -f core conftest.err conftest.$ac_objext \
22879 conftest$ac_exeext conftest.$ac_ext
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22882 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22883 if test $gcc_cv_math_func_tanh = yes; then
22885 cat >>confdefs.h <<_ACEOF
22886 #define HAVE_TANH 1
22887 _ACEOF
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22895 $as_echo_n "checking for tanhl... " >&6; }
22896 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22897 $as_echo_n "(cached) " >&6
22898 else
22899 if test x$gcc_no_link = xyes; then
22900 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h. */
22905 #ifdef HAVE_COMPLEX_H
22906 #include <complex.h>
22907 #endif
22908 #ifdef HAVE_MATH_H
22909 #include <math.h>
22910 #endif
22912 int (*ptr)() = (int (*)())tanhl;
22915 main ()
22917 return 0;
22920 _ACEOF
22921 if ac_fn_c_try_link "$LINENO"; then :
22922 gcc_cv_math_func_tanhl=yes
22923 else
22924 gcc_cv_math_func_tanhl=no
22926 rm -f core conftest.err conftest.$ac_objext \
22927 conftest$ac_exeext conftest.$ac_ext
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22930 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22931 if test $gcc_cv_math_func_tanhl = yes; then
22933 cat >>confdefs.h <<_ACEOF
22934 #define HAVE_TANHL 1
22935 _ACEOF
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22943 $as_echo_n "checking for ctanhf... " >&6; }
22944 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22945 $as_echo_n "(cached) " >&6
22946 else
22947 if test x$gcc_no_link = xyes; then
22948 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 #ifdef HAVE_COMPLEX_H
22954 #include <complex.h>
22955 #endif
22956 #ifdef HAVE_MATH_H
22957 #include <math.h>
22958 #endif
22960 int (*ptr)() = (int (*)())ctanhf;
22963 main ()
22965 return 0;
22968 _ACEOF
22969 if ac_fn_c_try_link "$LINENO"; then :
22970 gcc_cv_math_func_ctanhf=yes
22971 else
22972 gcc_cv_math_func_ctanhf=no
22974 rm -f core conftest.err conftest.$ac_objext \
22975 conftest$ac_exeext conftest.$ac_ext
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22978 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22979 if test $gcc_cv_math_func_ctanhf = yes; then
22981 cat >>confdefs.h <<_ACEOF
22982 #define HAVE_CTANHF 1
22983 _ACEOF
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22991 $as_echo_n "checking for ctanh... " >&6; }
22992 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22993 $as_echo_n "(cached) " >&6
22994 else
22995 if test x$gcc_no_link = xyes; then
22996 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23001 #ifdef HAVE_COMPLEX_H
23002 #include <complex.h>
23003 #endif
23004 #ifdef HAVE_MATH_H
23005 #include <math.h>
23006 #endif
23008 int (*ptr)() = (int (*)())ctanh;
23011 main ()
23013 return 0;
23016 _ACEOF
23017 if ac_fn_c_try_link "$LINENO"; then :
23018 gcc_cv_math_func_ctanh=yes
23019 else
23020 gcc_cv_math_func_ctanh=no
23022 rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23026 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23027 if test $gcc_cv_math_func_ctanh = yes; then
23029 cat >>confdefs.h <<_ACEOF
23030 #define HAVE_CTANH 1
23031 _ACEOF
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23039 $as_echo_n "checking for ctanhl... " >&6; }
23040 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23041 $as_echo_n "(cached) " >&6
23042 else
23043 if test x$gcc_no_link = xyes; then
23044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h. */
23049 #ifdef HAVE_COMPLEX_H
23050 #include <complex.h>
23051 #endif
23052 #ifdef HAVE_MATH_H
23053 #include <math.h>
23054 #endif
23056 int (*ptr)() = (int (*)())ctanhl;
23059 main ()
23061 return 0;
23064 _ACEOF
23065 if ac_fn_c_try_link "$LINENO"; then :
23066 gcc_cv_math_func_ctanhl=yes
23067 else
23068 gcc_cv_math_func_ctanhl=no
23070 rm -f core conftest.err conftest.$ac_objext \
23071 conftest$ac_exeext conftest.$ac_ext
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23074 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23075 if test $gcc_cv_math_func_ctanhl = yes; then
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_CTANHL 1
23079 _ACEOF
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23087 $as_echo_n "checking for truncf... " >&6; }
23088 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23089 $as_echo_n "(cached) " >&6
23090 else
23091 if test x$gcc_no_link = xyes; then
23092 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23097 #ifdef HAVE_COMPLEX_H
23098 #include <complex.h>
23099 #endif
23100 #ifdef HAVE_MATH_H
23101 #include <math.h>
23102 #endif
23104 int (*ptr)() = (int (*)())truncf;
23107 main ()
23109 return 0;
23112 _ACEOF
23113 if ac_fn_c_try_link "$LINENO"; then :
23114 gcc_cv_math_func_truncf=yes
23115 else
23116 gcc_cv_math_func_truncf=no
23118 rm -f core conftest.err conftest.$ac_objext \
23119 conftest$ac_exeext conftest.$ac_ext
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23122 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23123 if test $gcc_cv_math_func_truncf = yes; then
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_TRUNCF 1
23127 _ACEOF
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23135 $as_echo_n "checking for trunc... " >&6; }
23136 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23138 else
23139 if test x$gcc_no_link = xyes; then
23140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143 /* end confdefs.h. */
23145 #ifdef HAVE_COMPLEX_H
23146 #include <complex.h>
23147 #endif
23148 #ifdef HAVE_MATH_H
23149 #include <math.h>
23150 #endif
23152 int (*ptr)() = (int (*)())trunc;
23155 main ()
23157 return 0;
23160 _ACEOF
23161 if ac_fn_c_try_link "$LINENO"; then :
23162 gcc_cv_math_func_trunc=yes
23163 else
23164 gcc_cv_math_func_trunc=no
23166 rm -f core conftest.err conftest.$ac_objext \
23167 conftest$ac_exeext conftest.$ac_ext
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23170 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23171 if test $gcc_cv_math_func_trunc = yes; then
23173 cat >>confdefs.h <<_ACEOF
23174 #define HAVE_TRUNC 1
23175 _ACEOF
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23183 $as_echo_n "checking for truncl... " >&6; }
23184 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23185 $as_echo_n "(cached) " >&6
23186 else
23187 if test x$gcc_no_link = xyes; then
23188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23193 #ifdef HAVE_COMPLEX_H
23194 #include <complex.h>
23195 #endif
23196 #ifdef HAVE_MATH_H
23197 #include <math.h>
23198 #endif
23200 int (*ptr)() = (int (*)())truncl;
23203 main ()
23205 return 0;
23208 _ACEOF
23209 if ac_fn_c_try_link "$LINENO"; then :
23210 gcc_cv_math_func_truncl=yes
23211 else
23212 gcc_cv_math_func_truncl=no
23214 rm -f core conftest.err conftest.$ac_objext \
23215 conftest$ac_exeext conftest.$ac_ext
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23218 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23219 if test $gcc_cv_math_func_truncl = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_TRUNCL 1
23223 _ACEOF
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23231 $as_echo_n "checking for erff... " >&6; }
23232 if test "${gcc_cv_math_func_erff+set}" = set; then :
23233 $as_echo_n "(cached) " >&6
23234 else
23235 if test x$gcc_no_link = xyes; then
23236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239 /* end confdefs.h. */
23241 #ifdef HAVE_COMPLEX_H
23242 #include <complex.h>
23243 #endif
23244 #ifdef HAVE_MATH_H
23245 #include <math.h>
23246 #endif
23248 int (*ptr)() = (int (*)())erff;
23251 main ()
23253 return 0;
23256 _ACEOF
23257 if ac_fn_c_try_link "$LINENO"; then :
23258 gcc_cv_math_func_erff=yes
23259 else
23260 gcc_cv_math_func_erff=no
23262 rm -f core conftest.err conftest.$ac_objext \
23263 conftest$ac_exeext conftest.$ac_ext
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23266 $as_echo "$gcc_cv_math_func_erff" >&6; }
23267 if test $gcc_cv_math_func_erff = yes; then
23269 cat >>confdefs.h <<_ACEOF
23270 #define HAVE_ERFF 1
23271 _ACEOF
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23279 $as_echo_n "checking for erf... " >&6; }
23280 if test "${gcc_cv_math_func_erf+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23282 else
23283 if test x$gcc_no_link = xyes; then
23284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23289 #ifdef HAVE_COMPLEX_H
23290 #include <complex.h>
23291 #endif
23292 #ifdef HAVE_MATH_H
23293 #include <math.h>
23294 #endif
23296 int (*ptr)() = (int (*)())erf;
23299 main ()
23301 return 0;
23304 _ACEOF
23305 if ac_fn_c_try_link "$LINENO"; then :
23306 gcc_cv_math_func_erf=yes
23307 else
23308 gcc_cv_math_func_erf=no
23310 rm -f core conftest.err conftest.$ac_objext \
23311 conftest$ac_exeext conftest.$ac_ext
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23314 $as_echo "$gcc_cv_math_func_erf" >&6; }
23315 if test $gcc_cv_math_func_erf = yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define HAVE_ERF 1
23319 _ACEOF
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23327 $as_echo_n "checking for erfcf... " >&6; }
23328 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23329 $as_echo_n "(cached) " >&6
23330 else
23331 if test x$gcc_no_link = xyes; then
23332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335 /* end confdefs.h. */
23337 #ifdef HAVE_COMPLEX_H
23338 #include <complex.h>
23339 #endif
23340 #ifdef HAVE_MATH_H
23341 #include <math.h>
23342 #endif
23344 int (*ptr)() = (int (*)())erfcf;
23347 main ()
23349 return 0;
23352 _ACEOF
23353 if ac_fn_c_try_link "$LINENO"; then :
23354 gcc_cv_math_func_erfcf=yes
23355 else
23356 gcc_cv_math_func_erfcf=no
23358 rm -f core conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23362 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23363 if test $gcc_cv_math_func_erfcf = yes; then
23365 cat >>confdefs.h <<_ACEOF
23366 #define HAVE_ERFCF 1
23367 _ACEOF
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23375 $as_echo_n "checking for erfc... " >&6; }
23376 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23377 $as_echo_n "(cached) " >&6
23378 else
23379 if test x$gcc_no_link = xyes; then
23380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383 /* end confdefs.h. */
23385 #ifdef HAVE_COMPLEX_H
23386 #include <complex.h>
23387 #endif
23388 #ifdef HAVE_MATH_H
23389 #include <math.h>
23390 #endif
23392 int (*ptr)() = (int (*)())erfc;
23395 main ()
23397 return 0;
23400 _ACEOF
23401 if ac_fn_c_try_link "$LINENO"; then :
23402 gcc_cv_math_func_erfc=yes
23403 else
23404 gcc_cv_math_func_erfc=no
23406 rm -f core conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23410 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23411 if test $gcc_cv_math_func_erfc = yes; then
23413 cat >>confdefs.h <<_ACEOF
23414 #define HAVE_ERFC 1
23415 _ACEOF
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23423 $as_echo_n "checking for erfcl... " >&6; }
23424 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23426 else
23427 if test x$gcc_no_link = xyes; then
23428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431 /* end confdefs.h. */
23433 #ifdef HAVE_COMPLEX_H
23434 #include <complex.h>
23435 #endif
23436 #ifdef HAVE_MATH_H
23437 #include <math.h>
23438 #endif
23440 int (*ptr)() = (int (*)())erfcl;
23443 main ()
23445 return 0;
23448 _ACEOF
23449 if ac_fn_c_try_link "$LINENO"; then :
23450 gcc_cv_math_func_erfcl=yes
23451 else
23452 gcc_cv_math_func_erfcl=no
23454 rm -f core conftest.err conftest.$ac_objext \
23455 conftest$ac_exeext conftest.$ac_ext
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23458 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23459 if test $gcc_cv_math_func_erfcl = yes; then
23461 cat >>confdefs.h <<_ACEOF
23462 #define HAVE_ERFCL 1
23463 _ACEOF
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23471 $as_echo_n "checking for j0f... " >&6; }
23472 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23473 $as_echo_n "(cached) " >&6
23474 else
23475 if test x$gcc_no_link = xyes; then
23476 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23479 /* end confdefs.h. */
23481 #ifdef HAVE_COMPLEX_H
23482 #include <complex.h>
23483 #endif
23484 #ifdef HAVE_MATH_H
23485 #include <math.h>
23486 #endif
23488 int (*ptr)() = (int (*)())j0f;
23491 main ()
23493 return 0;
23496 _ACEOF
23497 if ac_fn_c_try_link "$LINENO"; then :
23498 gcc_cv_math_func_j0f=yes
23499 else
23500 gcc_cv_math_func_j0f=no
23502 rm -f core conftest.err conftest.$ac_objext \
23503 conftest$ac_exeext conftest.$ac_ext
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23506 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23507 if test $gcc_cv_math_func_j0f = yes; then
23509 cat >>confdefs.h <<_ACEOF
23510 #define HAVE_J0F 1
23511 _ACEOF
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23519 $as_echo_n "checking for j0... " >&6; }
23520 if test "${gcc_cv_math_func_j0+set}" = set; then :
23521 $as_echo_n "(cached) " >&6
23522 else
23523 if test x$gcc_no_link = xyes; then
23524 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23529 #ifdef HAVE_COMPLEX_H
23530 #include <complex.h>
23531 #endif
23532 #ifdef HAVE_MATH_H
23533 #include <math.h>
23534 #endif
23536 int (*ptr)() = (int (*)())j0;
23539 main ()
23541 return 0;
23544 _ACEOF
23545 if ac_fn_c_try_link "$LINENO"; then :
23546 gcc_cv_math_func_j0=yes
23547 else
23548 gcc_cv_math_func_j0=no
23550 rm -f core conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23554 $as_echo "$gcc_cv_math_func_j0" >&6; }
23555 if test $gcc_cv_math_func_j0 = yes; then
23557 cat >>confdefs.h <<_ACEOF
23558 #define HAVE_J0 1
23559 _ACEOF
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23567 $as_echo_n "checking for j1f... " >&6; }
23568 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 if test x$gcc_no_link = xyes; then
23572 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23577 #ifdef HAVE_COMPLEX_H
23578 #include <complex.h>
23579 #endif
23580 #ifdef HAVE_MATH_H
23581 #include <math.h>
23582 #endif
23584 int (*ptr)() = (int (*)())j1f;
23587 main ()
23589 return 0;
23592 _ACEOF
23593 if ac_fn_c_try_link "$LINENO"; then :
23594 gcc_cv_math_func_j1f=yes
23595 else
23596 gcc_cv_math_func_j1f=no
23598 rm -f core conftest.err conftest.$ac_objext \
23599 conftest$ac_exeext conftest.$ac_ext
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23602 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23603 if test $gcc_cv_math_func_j1f = yes; then
23605 cat >>confdefs.h <<_ACEOF
23606 #define HAVE_J1F 1
23607 _ACEOF
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23615 $as_echo_n "checking for j1... " >&6; }
23616 if test "${gcc_cv_math_func_j1+set}" = set; then :
23617 $as_echo_n "(cached) " >&6
23618 else
23619 if test x$gcc_no_link = xyes; then
23620 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h. */
23625 #ifdef HAVE_COMPLEX_H
23626 #include <complex.h>
23627 #endif
23628 #ifdef HAVE_MATH_H
23629 #include <math.h>
23630 #endif
23632 int (*ptr)() = (int (*)())j1;
23635 main ()
23637 return 0;
23640 _ACEOF
23641 if ac_fn_c_try_link "$LINENO"; then :
23642 gcc_cv_math_func_j1=yes
23643 else
23644 gcc_cv_math_func_j1=no
23646 rm -f core conftest.err conftest.$ac_objext \
23647 conftest$ac_exeext conftest.$ac_ext
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23650 $as_echo "$gcc_cv_math_func_j1" >&6; }
23651 if test $gcc_cv_math_func_j1 = yes; then
23653 cat >>confdefs.h <<_ACEOF
23654 #define HAVE_J1 1
23655 _ACEOF
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23663 $as_echo_n "checking for jnf... " >&6; }
23664 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23667 if test x$gcc_no_link = xyes; then
23668 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23673 #ifdef HAVE_COMPLEX_H
23674 #include <complex.h>
23675 #endif
23676 #ifdef HAVE_MATH_H
23677 #include <math.h>
23678 #endif
23680 int (*ptr)() = (int (*)())jnf;
23683 main ()
23685 return 0;
23688 _ACEOF
23689 if ac_fn_c_try_link "$LINENO"; then :
23690 gcc_cv_math_func_jnf=yes
23691 else
23692 gcc_cv_math_func_jnf=no
23694 rm -f core conftest.err conftest.$ac_objext \
23695 conftest$ac_exeext conftest.$ac_ext
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23698 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23699 if test $gcc_cv_math_func_jnf = yes; then
23701 cat >>confdefs.h <<_ACEOF
23702 #define HAVE_JNF 1
23703 _ACEOF
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23711 $as_echo_n "checking for jn... " >&6; }
23712 if test "${gcc_cv_math_func_jn+set}" = set; then :
23713 $as_echo_n "(cached) " >&6
23714 else
23715 if test x$gcc_no_link = xyes; then
23716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23721 #ifdef HAVE_COMPLEX_H
23722 #include <complex.h>
23723 #endif
23724 #ifdef HAVE_MATH_H
23725 #include <math.h>
23726 #endif
23728 int (*ptr)() = (int (*)())jn;
23731 main ()
23733 return 0;
23736 _ACEOF
23737 if ac_fn_c_try_link "$LINENO"; then :
23738 gcc_cv_math_func_jn=yes
23739 else
23740 gcc_cv_math_func_jn=no
23742 rm -f core conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23746 $as_echo "$gcc_cv_math_func_jn" >&6; }
23747 if test $gcc_cv_math_func_jn = yes; then
23749 cat >>confdefs.h <<_ACEOF
23750 #define HAVE_JN 1
23751 _ACEOF
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23759 $as_echo_n "checking for jnl... " >&6; }
23760 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23762 else
23763 if test x$gcc_no_link = xyes; then
23764 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23767 /* end confdefs.h. */
23769 #ifdef HAVE_COMPLEX_H
23770 #include <complex.h>
23771 #endif
23772 #ifdef HAVE_MATH_H
23773 #include <math.h>
23774 #endif
23776 int (*ptr)() = (int (*)())jnl;
23779 main ()
23781 return 0;
23784 _ACEOF
23785 if ac_fn_c_try_link "$LINENO"; then :
23786 gcc_cv_math_func_jnl=yes
23787 else
23788 gcc_cv_math_func_jnl=no
23790 rm -f core conftest.err conftest.$ac_objext \
23791 conftest$ac_exeext conftest.$ac_ext
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23794 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23795 if test $gcc_cv_math_func_jnl = yes; then
23797 cat >>confdefs.h <<_ACEOF
23798 #define HAVE_JNL 1
23799 _ACEOF
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23807 $as_echo_n "checking for y0f... " >&6; }
23808 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23809 $as_echo_n "(cached) " >&6
23810 else
23811 if test x$gcc_no_link = xyes; then
23812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h. */
23817 #ifdef HAVE_COMPLEX_H
23818 #include <complex.h>
23819 #endif
23820 #ifdef HAVE_MATH_H
23821 #include <math.h>
23822 #endif
23824 int (*ptr)() = (int (*)())y0f;
23827 main ()
23829 return 0;
23832 _ACEOF
23833 if ac_fn_c_try_link "$LINENO"; then :
23834 gcc_cv_math_func_y0f=yes
23835 else
23836 gcc_cv_math_func_y0f=no
23838 rm -f core conftest.err conftest.$ac_objext \
23839 conftest$ac_exeext conftest.$ac_ext
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23842 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23843 if test $gcc_cv_math_func_y0f = yes; then
23845 cat >>confdefs.h <<_ACEOF
23846 #define HAVE_Y0F 1
23847 _ACEOF
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23855 $as_echo_n "checking for y0... " >&6; }
23856 if test "${gcc_cv_math_func_y0+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23859 if test x$gcc_no_link = xyes; then
23860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863 /* end confdefs.h. */
23865 #ifdef HAVE_COMPLEX_H
23866 #include <complex.h>
23867 #endif
23868 #ifdef HAVE_MATH_H
23869 #include <math.h>
23870 #endif
23872 int (*ptr)() = (int (*)())y0;
23875 main ()
23877 return 0;
23880 _ACEOF
23881 if ac_fn_c_try_link "$LINENO"; then :
23882 gcc_cv_math_func_y0=yes
23883 else
23884 gcc_cv_math_func_y0=no
23886 rm -f core conftest.err conftest.$ac_objext \
23887 conftest$ac_exeext conftest.$ac_ext
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23890 $as_echo "$gcc_cv_math_func_y0" >&6; }
23891 if test $gcc_cv_math_func_y0 = yes; then
23893 cat >>confdefs.h <<_ACEOF
23894 #define HAVE_Y0 1
23895 _ACEOF
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23903 $as_echo_n "checking for y1f... " >&6; }
23904 if test "${gcc_cv_math_func_y1f+set}" = set; then :
23905 $as_echo_n "(cached) " >&6
23906 else
23907 if test x$gcc_no_link = xyes; then
23908 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911 /* end confdefs.h. */
23913 #ifdef HAVE_COMPLEX_H
23914 #include <complex.h>
23915 #endif
23916 #ifdef HAVE_MATH_H
23917 #include <math.h>
23918 #endif
23920 int (*ptr)() = (int (*)())y1f;
23923 main ()
23925 return 0;
23928 _ACEOF
23929 if ac_fn_c_try_link "$LINENO"; then :
23930 gcc_cv_math_func_y1f=yes
23931 else
23932 gcc_cv_math_func_y1f=no
23934 rm -f core conftest.err conftest.$ac_objext \
23935 conftest$ac_exeext conftest.$ac_ext
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23938 $as_echo "$gcc_cv_math_func_y1f" >&6; }
23939 if test $gcc_cv_math_func_y1f = yes; then
23941 cat >>confdefs.h <<_ACEOF
23942 #define HAVE_Y1F 1
23943 _ACEOF
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23951 $as_echo_n "checking for y1... " >&6; }
23952 if test "${gcc_cv_math_func_y1+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 if test x$gcc_no_link = xyes; then
23956 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23961 #ifdef HAVE_COMPLEX_H
23962 #include <complex.h>
23963 #endif
23964 #ifdef HAVE_MATH_H
23965 #include <math.h>
23966 #endif
23968 int (*ptr)() = (int (*)())y1;
23971 main ()
23973 return 0;
23976 _ACEOF
23977 if ac_fn_c_try_link "$LINENO"; then :
23978 gcc_cv_math_func_y1=yes
23979 else
23980 gcc_cv_math_func_y1=no
23982 rm -f core conftest.err conftest.$ac_objext \
23983 conftest$ac_exeext conftest.$ac_ext
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23986 $as_echo "$gcc_cv_math_func_y1" >&6; }
23987 if test $gcc_cv_math_func_y1 = yes; then
23989 cat >>confdefs.h <<_ACEOF
23990 #define HAVE_Y1 1
23991 _ACEOF
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23999 $as_echo_n "checking for ynf... " >&6; }
24000 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24001 $as_echo_n "(cached) " >&6
24002 else
24003 if test x$gcc_no_link = xyes; then
24004 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24009 #ifdef HAVE_COMPLEX_H
24010 #include <complex.h>
24011 #endif
24012 #ifdef HAVE_MATH_H
24013 #include <math.h>
24014 #endif
24016 int (*ptr)() = (int (*)())ynf;
24019 main ()
24021 return 0;
24024 _ACEOF
24025 if ac_fn_c_try_link "$LINENO"; then :
24026 gcc_cv_math_func_ynf=yes
24027 else
24028 gcc_cv_math_func_ynf=no
24030 rm -f core conftest.err conftest.$ac_objext \
24031 conftest$ac_exeext conftest.$ac_ext
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24034 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24035 if test $gcc_cv_math_func_ynf = yes; then
24037 cat >>confdefs.h <<_ACEOF
24038 #define HAVE_YNF 1
24039 _ACEOF
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24047 $as_echo_n "checking for yn... " >&6; }
24048 if test "${gcc_cv_math_func_yn+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24050 else
24051 if test x$gcc_no_link = xyes; then
24052 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h. */
24057 #ifdef HAVE_COMPLEX_H
24058 #include <complex.h>
24059 #endif
24060 #ifdef HAVE_MATH_H
24061 #include <math.h>
24062 #endif
24064 int (*ptr)() = (int (*)())yn;
24067 main ()
24069 return 0;
24072 _ACEOF
24073 if ac_fn_c_try_link "$LINENO"; then :
24074 gcc_cv_math_func_yn=yes
24075 else
24076 gcc_cv_math_func_yn=no
24078 rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24082 $as_echo "$gcc_cv_math_func_yn" >&6; }
24083 if test $gcc_cv_math_func_yn = yes; then
24085 cat >>confdefs.h <<_ACEOF
24086 #define HAVE_YN 1
24087 _ACEOF
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24095 $as_echo_n "checking for ynl... " >&6; }
24096 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24097 $as_echo_n "(cached) " >&6
24098 else
24099 if test x$gcc_no_link = xyes; then
24100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24103 /* end confdefs.h. */
24105 #ifdef HAVE_COMPLEX_H
24106 #include <complex.h>
24107 #endif
24108 #ifdef HAVE_MATH_H
24109 #include <math.h>
24110 #endif
24112 int (*ptr)() = (int (*)())ynl;
24115 main ()
24117 return 0;
24120 _ACEOF
24121 if ac_fn_c_try_link "$LINENO"; then :
24122 gcc_cv_math_func_ynl=yes
24123 else
24124 gcc_cv_math_func_ynl=no
24126 rm -f core conftest.err conftest.$ac_objext \
24127 conftest$ac_exeext conftest.$ac_ext
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24130 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24131 if test $gcc_cv_math_func_ynl = yes; then
24133 cat >>confdefs.h <<_ACEOF
24134 #define HAVE_YNL 1
24135 _ACEOF
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24143 $as_echo_n "checking for tgamma... " >&6; }
24144 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24146 else
24147 if test x$gcc_no_link = xyes; then
24148 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24151 /* end confdefs.h. */
24153 #ifdef HAVE_COMPLEX_H
24154 #include <complex.h>
24155 #endif
24156 #ifdef HAVE_MATH_H
24157 #include <math.h>
24158 #endif
24160 int (*ptr)() = (int (*)())tgamma;
24163 main ()
24165 return 0;
24168 _ACEOF
24169 if ac_fn_c_try_link "$LINENO"; then :
24170 gcc_cv_math_func_tgamma=yes
24171 else
24172 gcc_cv_math_func_tgamma=no
24174 rm -f core conftest.err conftest.$ac_objext \
24175 conftest$ac_exeext conftest.$ac_ext
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24178 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24179 if test $gcc_cv_math_func_tgamma = yes; then
24181 cat >>confdefs.h <<_ACEOF
24182 #define HAVE_TGAMMA 1
24183 _ACEOF
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24191 $as_echo_n "checking for tgammaf... " >&6; }
24192 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24194 else
24195 if test x$gcc_no_link = xyes; then
24196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24199 /* end confdefs.h. */
24201 #ifdef HAVE_COMPLEX_H
24202 #include <complex.h>
24203 #endif
24204 #ifdef HAVE_MATH_H
24205 #include <math.h>
24206 #endif
24208 int (*ptr)() = (int (*)())tgammaf;
24211 main ()
24213 return 0;
24216 _ACEOF
24217 if ac_fn_c_try_link "$LINENO"; then :
24218 gcc_cv_math_func_tgammaf=yes
24219 else
24220 gcc_cv_math_func_tgammaf=no
24222 rm -f core conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24226 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24227 if test $gcc_cv_math_func_tgammaf = yes; then
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE_TGAMMAF 1
24231 _ACEOF
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24239 $as_echo_n "checking for lgamma... " >&6; }
24240 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24241 $as_echo_n "(cached) " >&6
24242 else
24243 if test x$gcc_no_link = xyes; then
24244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24249 #ifdef HAVE_COMPLEX_H
24250 #include <complex.h>
24251 #endif
24252 #ifdef HAVE_MATH_H
24253 #include <math.h>
24254 #endif
24256 int (*ptr)() = (int (*)())lgamma;
24259 main ()
24261 return 0;
24264 _ACEOF
24265 if ac_fn_c_try_link "$LINENO"; then :
24266 gcc_cv_math_func_lgamma=yes
24267 else
24268 gcc_cv_math_func_lgamma=no
24270 rm -f core conftest.err conftest.$ac_objext \
24271 conftest$ac_exeext conftest.$ac_ext
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24274 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24275 if test $gcc_cv_math_func_lgamma = yes; then
24277 cat >>confdefs.h <<_ACEOF
24278 #define HAVE_LGAMMA 1
24279 _ACEOF
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24287 $as_echo_n "checking for lgammaf... " >&6; }
24288 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24289 $as_echo_n "(cached) " >&6
24290 else
24291 if test x$gcc_no_link = xyes; then
24292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h. */
24297 #ifdef HAVE_COMPLEX_H
24298 #include <complex.h>
24299 #endif
24300 #ifdef HAVE_MATH_H
24301 #include <math.h>
24302 #endif
24304 int (*ptr)() = (int (*)())lgammaf;
24307 main ()
24309 return 0;
24312 _ACEOF
24313 if ac_fn_c_try_link "$LINENO"; then :
24314 gcc_cv_math_func_lgammaf=yes
24315 else
24316 gcc_cv_math_func_lgammaf=no
24318 rm -f core conftest.err conftest.$ac_objext \
24319 conftest$ac_exeext conftest.$ac_ext
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24322 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24323 if test $gcc_cv_math_func_lgammaf = yes; then
24325 cat >>confdefs.h <<_ACEOF
24326 #define HAVE_LGAMMAF 1
24327 _ACEOF
24332 # Check for GFORTRAN_C99_1.1 funcs
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24337 $as_echo_n "checking for cacos... " >&6; }
24338 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24339 $as_echo_n "(cached) " >&6
24340 else
24341 if test x$gcc_no_link = xyes; then
24342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24347 #ifdef HAVE_COMPLEX_H
24348 #include <complex.h>
24349 #endif
24350 #ifdef HAVE_MATH_H
24351 #include <math.h>
24352 #endif
24354 int (*ptr)() = (int (*)())cacos;
24357 main ()
24359 return 0;
24362 _ACEOF
24363 if ac_fn_c_try_link "$LINENO"; then :
24364 gcc_cv_math_func_cacos=yes
24365 else
24366 gcc_cv_math_func_cacos=no
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24372 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24373 if test $gcc_cv_math_func_cacos = yes; then
24375 cat >>confdefs.h <<_ACEOF
24376 #define HAVE_CACOS 1
24377 _ACEOF
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24385 $as_echo_n "checking for cacosf... " >&6; }
24386 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24387 $as_echo_n "(cached) " >&6
24388 else
24389 if test x$gcc_no_link = xyes; then
24390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24395 #ifdef HAVE_COMPLEX_H
24396 #include <complex.h>
24397 #endif
24398 #ifdef HAVE_MATH_H
24399 #include <math.h>
24400 #endif
24402 int (*ptr)() = (int (*)())cacosf;
24405 main ()
24407 return 0;
24410 _ACEOF
24411 if ac_fn_c_try_link "$LINENO"; then :
24412 gcc_cv_math_func_cacosf=yes
24413 else
24414 gcc_cv_math_func_cacosf=no
24416 rm -f core conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24420 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24421 if test $gcc_cv_math_func_cacosf = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_CACOSF 1
24425 _ACEOF
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24433 $as_echo_n "checking for cacosh... " >&6; }
24434 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 if test x$gcc_no_link = xyes; then
24438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24443 #ifdef HAVE_COMPLEX_H
24444 #include <complex.h>
24445 #endif
24446 #ifdef HAVE_MATH_H
24447 #include <math.h>
24448 #endif
24450 int (*ptr)() = (int (*)())cacosh;
24453 main ()
24455 return 0;
24458 _ACEOF
24459 if ac_fn_c_try_link "$LINENO"; then :
24460 gcc_cv_math_func_cacosh=yes
24461 else
24462 gcc_cv_math_func_cacosh=no
24464 rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24468 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24469 if test $gcc_cv_math_func_cacosh = yes; then
24471 cat >>confdefs.h <<_ACEOF
24472 #define HAVE_CACOSH 1
24473 _ACEOF
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24481 $as_echo_n "checking for cacoshf... " >&6; }
24482 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test x$gcc_no_link = xyes; then
24486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489 /* end confdefs.h. */
24491 #ifdef HAVE_COMPLEX_H
24492 #include <complex.h>
24493 #endif
24494 #ifdef HAVE_MATH_H
24495 #include <math.h>
24496 #endif
24498 int (*ptr)() = (int (*)())cacoshf;
24501 main ()
24503 return 0;
24506 _ACEOF
24507 if ac_fn_c_try_link "$LINENO"; then :
24508 gcc_cv_math_func_cacoshf=yes
24509 else
24510 gcc_cv_math_func_cacoshf=no
24512 rm -f core conftest.err conftest.$ac_objext \
24513 conftest$ac_exeext conftest.$ac_ext
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24516 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24517 if test $gcc_cv_math_func_cacoshf = yes; then
24519 cat >>confdefs.h <<_ACEOF
24520 #define HAVE_CACOSHF 1
24521 _ACEOF
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24529 $as_echo_n "checking for cacoshl... " >&6; }
24530 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 if test x$gcc_no_link = xyes; then
24534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24539 #ifdef HAVE_COMPLEX_H
24540 #include <complex.h>
24541 #endif
24542 #ifdef HAVE_MATH_H
24543 #include <math.h>
24544 #endif
24546 int (*ptr)() = (int (*)())cacoshl;
24549 main ()
24551 return 0;
24554 _ACEOF
24555 if ac_fn_c_try_link "$LINENO"; then :
24556 gcc_cv_math_func_cacoshl=yes
24557 else
24558 gcc_cv_math_func_cacoshl=no
24560 rm -f core conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24564 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24565 if test $gcc_cv_math_func_cacoshl = yes; then
24567 cat >>confdefs.h <<_ACEOF
24568 #define HAVE_CACOSHL 1
24569 _ACEOF
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24577 $as_echo_n "checking for cacosl... " >&6; }
24578 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24580 else
24581 if test x$gcc_no_link = xyes; then
24582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 #ifdef HAVE_COMPLEX_H
24588 #include <complex.h>
24589 #endif
24590 #ifdef HAVE_MATH_H
24591 #include <math.h>
24592 #endif
24594 int (*ptr)() = (int (*)())cacosl;
24597 main ()
24599 return 0;
24602 _ACEOF
24603 if ac_fn_c_try_link "$LINENO"; then :
24604 gcc_cv_math_func_cacosl=yes
24605 else
24606 gcc_cv_math_func_cacosl=no
24608 rm -f core conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24612 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24613 if test $gcc_cv_math_func_cacosl = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_CACOSL 1
24617 _ACEOF
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24625 $as_echo_n "checking for casin... " >&6; }
24626 if test "${gcc_cv_math_func_casin+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24628 else
24629 if test x$gcc_no_link = xyes; then
24630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633 /* end confdefs.h. */
24635 #ifdef HAVE_COMPLEX_H
24636 #include <complex.h>
24637 #endif
24638 #ifdef HAVE_MATH_H
24639 #include <math.h>
24640 #endif
24642 int (*ptr)() = (int (*)())casin;
24645 main ()
24647 return 0;
24650 _ACEOF
24651 if ac_fn_c_try_link "$LINENO"; then :
24652 gcc_cv_math_func_casin=yes
24653 else
24654 gcc_cv_math_func_casin=no
24656 rm -f core conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24660 $as_echo "$gcc_cv_math_func_casin" >&6; }
24661 if test $gcc_cv_math_func_casin = yes; then
24663 cat >>confdefs.h <<_ACEOF
24664 #define HAVE_CASIN 1
24665 _ACEOF
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24673 $as_echo_n "checking for casinf... " >&6; }
24674 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24675 $as_echo_n "(cached) " >&6
24676 else
24677 if test x$gcc_no_link = xyes; then
24678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24681 /* end confdefs.h. */
24683 #ifdef HAVE_COMPLEX_H
24684 #include <complex.h>
24685 #endif
24686 #ifdef HAVE_MATH_H
24687 #include <math.h>
24688 #endif
24690 int (*ptr)() = (int (*)())casinf;
24693 main ()
24695 return 0;
24698 _ACEOF
24699 if ac_fn_c_try_link "$LINENO"; then :
24700 gcc_cv_math_func_casinf=yes
24701 else
24702 gcc_cv_math_func_casinf=no
24704 rm -f core conftest.err conftest.$ac_objext \
24705 conftest$ac_exeext conftest.$ac_ext
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24708 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24709 if test $gcc_cv_math_func_casinf = yes; then
24711 cat >>confdefs.h <<_ACEOF
24712 #define HAVE_CASINF 1
24713 _ACEOF
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24721 $as_echo_n "checking for casinh... " >&6; }
24722 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 if test x$gcc_no_link = xyes; then
24726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24729 /* end confdefs.h. */
24731 #ifdef HAVE_COMPLEX_H
24732 #include <complex.h>
24733 #endif
24734 #ifdef HAVE_MATH_H
24735 #include <math.h>
24736 #endif
24738 int (*ptr)() = (int (*)())casinh;
24741 main ()
24743 return 0;
24746 _ACEOF
24747 if ac_fn_c_try_link "$LINENO"; then :
24748 gcc_cv_math_func_casinh=yes
24749 else
24750 gcc_cv_math_func_casinh=no
24752 rm -f core conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24756 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24757 if test $gcc_cv_math_func_casinh = yes; then
24759 cat >>confdefs.h <<_ACEOF
24760 #define HAVE_CASINH 1
24761 _ACEOF
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24769 $as_echo_n "checking for casinhf... " >&6; }
24770 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24771 $as_echo_n "(cached) " >&6
24772 else
24773 if test x$gcc_no_link = xyes; then
24774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h. */
24779 #ifdef HAVE_COMPLEX_H
24780 #include <complex.h>
24781 #endif
24782 #ifdef HAVE_MATH_H
24783 #include <math.h>
24784 #endif
24786 int (*ptr)() = (int (*)())casinhf;
24789 main ()
24791 return 0;
24794 _ACEOF
24795 if ac_fn_c_try_link "$LINENO"; then :
24796 gcc_cv_math_func_casinhf=yes
24797 else
24798 gcc_cv_math_func_casinhf=no
24800 rm -f core conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24804 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24805 if test $gcc_cv_math_func_casinhf = yes; then
24807 cat >>confdefs.h <<_ACEOF
24808 #define HAVE_CASINHF 1
24809 _ACEOF
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24817 $as_echo_n "checking for casinhl... " >&6; }
24818 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24821 if test x$gcc_no_link = xyes; then
24822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h. */
24827 #ifdef HAVE_COMPLEX_H
24828 #include <complex.h>
24829 #endif
24830 #ifdef HAVE_MATH_H
24831 #include <math.h>
24832 #endif
24834 int (*ptr)() = (int (*)())casinhl;
24837 main ()
24839 return 0;
24842 _ACEOF
24843 if ac_fn_c_try_link "$LINENO"; then :
24844 gcc_cv_math_func_casinhl=yes
24845 else
24846 gcc_cv_math_func_casinhl=no
24848 rm -f core conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24852 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24853 if test $gcc_cv_math_func_casinhl = yes; then
24855 cat >>confdefs.h <<_ACEOF
24856 #define HAVE_CASINHL 1
24857 _ACEOF
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24865 $as_echo_n "checking for casinl... " >&6; }
24866 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24868 else
24869 if test x$gcc_no_link = xyes; then
24870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24873 /* end confdefs.h. */
24875 #ifdef HAVE_COMPLEX_H
24876 #include <complex.h>
24877 #endif
24878 #ifdef HAVE_MATH_H
24879 #include <math.h>
24880 #endif
24882 int (*ptr)() = (int (*)())casinl;
24885 main ()
24887 return 0;
24890 _ACEOF
24891 if ac_fn_c_try_link "$LINENO"; then :
24892 gcc_cv_math_func_casinl=yes
24893 else
24894 gcc_cv_math_func_casinl=no
24896 rm -f core conftest.err conftest.$ac_objext \
24897 conftest$ac_exeext conftest.$ac_ext
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24900 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24901 if test $gcc_cv_math_func_casinl = yes; then
24903 cat >>confdefs.h <<_ACEOF
24904 #define HAVE_CASINL 1
24905 _ACEOF
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24913 $as_echo_n "checking for catan... " >&6; }
24914 if test "${gcc_cv_math_func_catan+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24916 else
24917 if test x$gcc_no_link = xyes; then
24918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24921 /* end confdefs.h. */
24923 #ifdef HAVE_COMPLEX_H
24924 #include <complex.h>
24925 #endif
24926 #ifdef HAVE_MATH_H
24927 #include <math.h>
24928 #endif
24930 int (*ptr)() = (int (*)())catan;
24933 main ()
24935 return 0;
24938 _ACEOF
24939 if ac_fn_c_try_link "$LINENO"; then :
24940 gcc_cv_math_func_catan=yes
24941 else
24942 gcc_cv_math_func_catan=no
24944 rm -f core conftest.err conftest.$ac_objext \
24945 conftest$ac_exeext conftest.$ac_ext
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24948 $as_echo "$gcc_cv_math_func_catan" >&6; }
24949 if test $gcc_cv_math_func_catan = yes; then
24951 cat >>confdefs.h <<_ACEOF
24952 #define HAVE_CATAN 1
24953 _ACEOF
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24961 $as_echo_n "checking for catanf... " >&6; }
24962 if test "${gcc_cv_math_func_catanf+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24965 if test x$gcc_no_link = xyes; then
24966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24971 #ifdef HAVE_COMPLEX_H
24972 #include <complex.h>
24973 #endif
24974 #ifdef HAVE_MATH_H
24975 #include <math.h>
24976 #endif
24978 int (*ptr)() = (int (*)())catanf;
24981 main ()
24983 return 0;
24986 _ACEOF
24987 if ac_fn_c_try_link "$LINENO"; then :
24988 gcc_cv_math_func_catanf=yes
24989 else
24990 gcc_cv_math_func_catanf=no
24992 rm -f core conftest.err conftest.$ac_objext \
24993 conftest$ac_exeext conftest.$ac_ext
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24996 $as_echo "$gcc_cv_math_func_catanf" >&6; }
24997 if test $gcc_cv_math_func_catanf = yes; then
24999 cat >>confdefs.h <<_ACEOF
25000 #define HAVE_CATANF 1
25001 _ACEOF
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25009 $as_echo_n "checking for catanh... " >&6; }
25010 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25011 $as_echo_n "(cached) " >&6
25012 else
25013 if test x$gcc_no_link = xyes; then
25014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017 /* end confdefs.h. */
25019 #ifdef HAVE_COMPLEX_H
25020 #include <complex.h>
25021 #endif
25022 #ifdef HAVE_MATH_H
25023 #include <math.h>
25024 #endif
25026 int (*ptr)() = (int (*)())catanh;
25029 main ()
25031 return 0;
25034 _ACEOF
25035 if ac_fn_c_try_link "$LINENO"; then :
25036 gcc_cv_math_func_catanh=yes
25037 else
25038 gcc_cv_math_func_catanh=no
25040 rm -f core conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25044 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25045 if test $gcc_cv_math_func_catanh = yes; then
25047 cat >>confdefs.h <<_ACEOF
25048 #define HAVE_CATANH 1
25049 _ACEOF
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25057 $as_echo_n "checking for catanhf... " >&6; }
25058 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25059 $as_echo_n "(cached) " >&6
25060 else
25061 if test x$gcc_no_link = xyes; then
25062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25067 #ifdef HAVE_COMPLEX_H
25068 #include <complex.h>
25069 #endif
25070 #ifdef HAVE_MATH_H
25071 #include <math.h>
25072 #endif
25074 int (*ptr)() = (int (*)())catanhf;
25077 main ()
25079 return 0;
25082 _ACEOF
25083 if ac_fn_c_try_link "$LINENO"; then :
25084 gcc_cv_math_func_catanhf=yes
25085 else
25086 gcc_cv_math_func_catanhf=no
25088 rm -f core conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25092 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25093 if test $gcc_cv_math_func_catanhf = yes; then
25095 cat >>confdefs.h <<_ACEOF
25096 #define HAVE_CATANHF 1
25097 _ACEOF
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25105 $as_echo_n "checking for catanhl... " >&6; }
25106 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 if test x$gcc_no_link = xyes; then
25110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25115 #ifdef HAVE_COMPLEX_H
25116 #include <complex.h>
25117 #endif
25118 #ifdef HAVE_MATH_H
25119 #include <math.h>
25120 #endif
25122 int (*ptr)() = (int (*)())catanhl;
25125 main ()
25127 return 0;
25130 _ACEOF
25131 if ac_fn_c_try_link "$LINENO"; then :
25132 gcc_cv_math_func_catanhl=yes
25133 else
25134 gcc_cv_math_func_catanhl=no
25136 rm -f core conftest.err conftest.$ac_objext \
25137 conftest$ac_exeext conftest.$ac_ext
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25140 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25141 if test $gcc_cv_math_func_catanhl = yes; then
25143 cat >>confdefs.h <<_ACEOF
25144 #define HAVE_CATANHL 1
25145 _ACEOF
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25153 $as_echo_n "checking for catanl... " >&6; }
25154 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 if test x$gcc_no_link = xyes; then
25158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25163 #ifdef HAVE_COMPLEX_H
25164 #include <complex.h>
25165 #endif
25166 #ifdef HAVE_MATH_H
25167 #include <math.h>
25168 #endif
25170 int (*ptr)() = (int (*)())catanl;
25173 main ()
25175 return 0;
25178 _ACEOF
25179 if ac_fn_c_try_link "$LINENO"; then :
25180 gcc_cv_math_func_catanl=yes
25181 else
25182 gcc_cv_math_func_catanl=no
25184 rm -f core conftest.err conftest.$ac_objext \
25185 conftest$ac_exeext conftest.$ac_ext
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25188 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25189 if test $gcc_cv_math_func_catanl = yes; then
25191 cat >>confdefs.h <<_ACEOF
25192 #define HAVE_CATANL 1
25193 _ACEOF
25198 # On AIX, clog is present in libm as __clog
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25200 $as_echo_n "checking for __clog in -lm... " >&6; }
25201 if test "${ac_cv_lib_m___clog+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-lm $LIBS"
25206 if test x$gcc_no_link = xyes; then
25207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25212 /* Override any GCC internal prototype to avoid an error.
25213 Use char because int might match the return type of a GCC
25214 builtin and then its argument prototype would still apply. */
25215 #ifdef __cplusplus
25216 extern "C"
25217 #endif
25218 char __clog ();
25220 main ()
25222 return __clog ();
25224 return 0;
25226 _ACEOF
25227 if ac_fn_c_try_link "$LINENO"; then :
25228 ac_cv_lib_m___clog=yes
25229 else
25230 ac_cv_lib_m___clog=no
25232 rm -f core conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
25234 LIBS=$ac_check_lib_save_LIBS
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25237 $as_echo "$ac_cv_lib_m___clog" >&6; }
25238 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25240 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25245 # Check whether the system has a working stat()
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25248 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25249 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25253 if test "$cross_compiling" = yes; then :
25255 case "${target}" in
25256 *mingw*) libgfor_cv_have_working_stat=no ;;
25257 *) libgfor_cv_have_working_stat=yes;;
25258 esac
25259 else
25260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25263 #include <stdio.h>
25264 #include <sys/types.h>
25265 #include <sys/stat.h>
25266 #include <unistd.h>
25268 int main ()
25270 FILE *f, *g;
25271 struct stat st1, st2;
25273 f = fopen ("foo", "w");
25274 g = fopen ("bar", "w");
25275 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25276 return 1;
25277 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25278 return 1;
25279 fclose(f);
25280 fclose(g);
25281 return 0;
25283 _ACEOF
25284 if ac_fn_c_try_run "$LINENO"; then :
25285 libgfor_cv_have_working_stat=yes
25286 else
25287 libgfor_cv_have_working_stat=no
25289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25290 conftest.$ac_objext conftest.beam conftest.$ac_ext
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25295 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25296 if test x"$libgfor_cv_have_working_stat" = xyes; then
25298 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25302 # Check whether __mingw_snprintf() is present
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25305 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25306 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25308 else
25310 if test x$gcc_no_link = xyes; then
25311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25316 #include <stdio.h>
25317 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25320 main ()
25323 __mingw_snprintf (NULL, 0, "%d\n", 1);
25326 return 0;
25328 _ACEOF
25329 if ac_fn_c_try_link "$LINENO"; then :
25330 eval "libgfor_cv_have_mingw_snprintf=yes"
25331 else
25332 eval "libgfor_cv_have_mingw_snprintf=no"
25334 rm -f core conftest.err conftest.$ac_objext \
25335 conftest$ac_exeext conftest.$ac_ext
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25339 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25340 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25342 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25347 # Check whether libquadmath should be used
25348 # Check whether --enable-libquadmath-support was given.
25349 if test "${enable_libquadmath_support+set}" = set; then :
25350 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25351 else
25352 ENABLE_LIBQUADMATH_SUPPORT=yes
25355 enable_libquadmath_support=
25356 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25357 enable_libquadmath_support=no
25360 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25362 LIBQUADSPEC=
25364 if test "x$enable_libquadmath_support" != xno; then
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25367 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25368 if test "${libgfor_cv_have_float128+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25370 else
25372 if test x$gcc_no_link = xyes; then
25373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25374 /* end confdefs.h. */
25376 typedef _Complex float __attribute__((mode(TC))) __complex128;
25378 __float128 foo (__float128 x)
25381 __complex128 z1, z2;
25383 z1 = x;
25384 z2 = x / 7.Q;
25385 z2 /= z1;
25387 return (__float128) z2;
25390 __float128 bar (__float128 x)
25392 return x * __builtin_huge_valq ();
25396 main ()
25399 foo (1.2Q);
25400 bar (1.2Q);
25403 return 0;
25405 _ACEOF
25406 if ac_fn_c_try_compile "$LINENO"; then :
25408 libgfor_cv_have_float128=yes
25410 else
25412 libgfor_cv_have_float128=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 else
25417 if test x$gcc_no_link = xyes; then
25418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h. */
25423 typedef _Complex float __attribute__((mode(TC))) __complex128;
25425 __float128 foo (__float128 x)
25428 __complex128 z1, z2;
25430 z1 = x;
25431 z2 = x / 7.Q;
25432 z2 /= z1;
25434 return (__float128) z2;
25437 __float128 bar (__float128 x)
25439 return x * __builtin_huge_valq ();
25443 main ()
25446 foo (1.2Q);
25447 bar (1.2Q);
25450 return 0;
25452 _ACEOF
25453 if ac_fn_c_try_link "$LINENO"; then :
25455 libgfor_cv_have_float128=yes
25457 else
25459 libgfor_cv_have_float128=no
25462 rm -f core conftest.err conftest.$ac_objext \
25463 conftest$ac_exeext conftest.$ac_ext
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25467 $as_echo "$libgfor_cv_have_float128" >&6; }
25469 if test "x$libgfor_cv_have_float128" = xyes; then
25471 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25474 ac_xsave_c_werror_flag=$ac_c_werror_flag
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25476 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25477 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25479 else
25481 # Test for native Solaris options first.
25482 # No whitespace after -z to pass it through -Wl.
25483 libgfor_cv_as_needed_option="-zignore"
25484 libgfor_cv_no_as_needed_option="-zrecord"
25485 save_LDFLAGS="$LDFLAGS"
25486 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25487 libgfor_cv_have_as_needed=no
25489 ac_c_werror_flag=yes
25490 if test x$gcc_no_link = xyes; then
25491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h. */
25497 main ()
25501 return 0;
25503 _ACEOF
25504 if ac_fn_c_try_link "$LINENO"; then :
25505 libgfor_cv_have_as_needed=yes
25506 else
25507 libgfor_cv_have_as_needed=no
25509 rm -f core conftest.err conftest.$ac_objext \
25510 conftest$ac_exeext conftest.$ac_ext
25511 LDFLAGS="$save_LDFLAGS"
25512 if test "x$libgfor_cv_have_as_needed" = xno; then
25513 libgfor_cv_as_needed_option="--as-needed"
25514 libgfor_cv_no_as_needed_option="--no-as-needed"
25515 save_LDFLAGS="$LDFLAGS"
25516 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25517 libgfor_cv_have_as_needed=no
25519 ac_c_werror_flag=yes
25520 if test x$gcc_no_link = xyes; then
25521 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25524 /* end confdefs.h. */
25527 main ()
25531 return 0;
25533 _ACEOF
25534 if ac_fn_c_try_link "$LINENO"; then :
25535 libgfor_cv_have_as_needed=yes
25536 else
25537 libgfor_cv_have_as_needed=no
25539 rm -f core conftest.err conftest.$ac_objext \
25540 conftest$ac_exeext conftest.$ac_ext
25541 LDFLAGS="$save_LDFLAGS"
25543 ac_c_werror_flag=$ac_xsave_c_werror_flag
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25547 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25549 if test "x$libgfor_cv_have_as_needed" = xyes; then
25550 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25551 else
25552 LIBQUADSPEC="-lquadmath"
25554 if test -f ../libquadmath/libquadmath.la; then
25555 LIBQUADLIB=../libquadmath/libquadmath.la
25556 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25557 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25558 else
25559 LIBQUADLIB="-lquadmath"
25560 LIBQUADLIB_DEP=
25561 LIBQUADINCLUDE=
25564 else
25565 # for --disable-quadmath
25566 LIBQUADLIB=
25567 LIBQUADLIB_DEP=
25568 LIBQUADINCLUDE=
25576 if test "x$libgfor_cv_have_float128" = xyes; then
25577 LIBGFOR_BUILD_QUAD_TRUE=
25578 LIBGFOR_BUILD_QUAD_FALSE='#'
25579 else
25580 LIBGFOR_BUILD_QUAD_TRUE='#'
25581 LIBGFOR_BUILD_QUAD_FALSE=
25586 # Check for GNU libc feenableexcept
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25588 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25589 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25590 $as_echo_n "(cached) " >&6
25591 else
25592 ac_check_lib_save_LIBS=$LIBS
25593 LIBS="-lm $LIBS"
25594 if test x$gcc_no_link = xyes; then
25595 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598 /* end confdefs.h. */
25600 /* Override any GCC internal prototype to avoid an error.
25601 Use char because int might match the return type of a GCC
25602 builtin and then its argument prototype would still apply. */
25603 #ifdef __cplusplus
25604 extern "C"
25605 #endif
25606 char feenableexcept ();
25608 main ()
25610 return feenableexcept ();
25612 return 0;
25614 _ACEOF
25615 if ac_fn_c_try_link "$LINENO"; then :
25616 ac_cv_lib_m_feenableexcept=yes
25617 else
25618 ac_cv_lib_m_feenableexcept=no
25620 rm -f core conftest.err conftest.$ac_objext \
25621 conftest$ac_exeext conftest.$ac_ext
25622 LIBS=$ac_check_lib_save_LIBS
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25625 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25626 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25627 have_feenableexcept=yes
25628 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25633 # At least for glibc, clock_gettime is in librt. But don't
25634 # pull that in if it still doesn't give us the function we want. This
25635 # test is copied from libgomp, and modified to not link in -lrt as
25636 # libgfortran calls clock_gettime via a weak reference if it's found
25637 # in librt.
25638 if test "$ac_cv_func_clock_gettime" = no; then
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25640 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25641 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 ac_check_lib_save_LIBS=$LIBS
25645 LIBS="-lrt $LIBS"
25646 if test x$gcc_no_link = xyes; then
25647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650 /* end confdefs.h. */
25652 /* Override any GCC internal prototype to avoid an error.
25653 Use char because int might match the return type of a GCC
25654 builtin and then its argument prototype would still apply. */
25655 #ifdef __cplusplus
25656 extern "C"
25657 #endif
25658 char clock_gettime ();
25660 main ()
25662 return clock_gettime ();
25664 return 0;
25666 _ACEOF
25667 if ac_fn_c_try_link "$LINENO"; then :
25668 ac_cv_lib_rt_clock_gettime=yes
25669 else
25670 ac_cv_lib_rt_clock_gettime=no
25672 rm -f core conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
25674 LIBS=$ac_check_lib_save_LIBS
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25677 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25678 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25680 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25686 # Check for SysV fpsetmask
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25689 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25690 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25694 if test x$gcc_no_link = xyes; then
25695 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h. */
25700 #if HAVE_FLOATINGPOINT_H
25701 # include <floatingpoint.h>
25702 #endif /* HAVE_FLOATINGPOINT_H */
25703 #if HAVE_IEEEFP_H
25704 # include <ieeefp.h>
25705 #endif /* HAVE_IEEEFP_H */
25707 main ()
25709 fpsetmask(0);
25711 return 0;
25713 _ACEOF
25714 if ac_fn_c_try_link "$LINENO"; then :
25715 eval "libgfor_cv_have_fpsetmask=yes"
25716 else
25717 eval "libgfor_cv_have_fpsetmask=no"
25719 rm -f core conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25724 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25725 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25726 have_fpsetmask=yes
25728 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25732 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25733 #ifdef HAVE_IEEEFP_H
25734 #include <ieeefp.h>
25735 #endif
25736 #include <math.h>
25739 if test "x$ac_cv_type_fp_except" = x""yes; then :
25741 cat >>confdefs.h <<_ACEOF
25742 #define HAVE_FP_EXCEPT 1
25743 _ACEOF
25747 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25748 #ifdef HAVE_IEEEFP_H
25749 #include <ieeefp.h>
25750 #endif
25751 #include <math.h>
25754 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25756 cat >>confdefs.h <<_ACEOF
25757 #define HAVE_FP_EXCEPT_T 1
25758 _ACEOF
25763 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25764 #ifdef HAVE_IEEEFP_H
25765 #include <ieeefp.h>
25766 #endif
25767 #include <math.h>
25770 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25772 cat >>confdefs.h <<_ACEOF
25773 #define HAVE_FP_RND 1
25774 _ACEOF
25778 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25779 #ifdef HAVE_IEEEFP_H
25780 #include <ieeefp.h>
25781 #endif
25782 #include <math.h>
25785 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25787 cat >>confdefs.h <<_ACEOF
25788 #define HAVE_FP_RND_T 1
25789 _ACEOF
25795 # Check whether we have fpsetsticky or fpresetsticky
25796 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25797 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25798 have_fpsetsticky=yes
25799 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25803 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25804 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25805 have_fpresetsticky=yes
25806 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25811 # Check for AIX fp_trap and fp_enable
25812 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25813 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25814 have_fp_trap=yes
25815 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25819 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25820 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25821 have_fp_enable=yes
25822 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25827 # Check if _SOFT_FLOAT is defined
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25830 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25831 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25832 $as_echo_n "(cached) " >&6
25833 else
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h. */
25838 main ()
25841 #ifdef _SOFT_FLOAT
25842 int ok;
25843 #else
25844 choke me
25845 #endif
25848 return 0;
25850 _ACEOF
25851 if ac_fn_c_try_compile "$LINENO"; then :
25852 ac_cv_defined__SOFT_FLOAT=yes
25853 else
25854 ac_cv_defined__SOFT_FLOAT=no
25856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25859 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25860 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25861 have_soft_float=yes
25864 # Runs configure.host to set up necessary host-dependent shell variables.
25865 # We then display a message about it, and propagate them through the
25866 # build chain.
25867 . ${srcdir}/configure.host
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25869 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25871 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25872 FPU_HOST_HEADER=config/${fpu_host}.h
25875 # Whether we will build the IEEE modules
25876 if test x${ieee_support} = xyes; then
25877 IEEE_SUPPORT_TRUE=
25878 IEEE_SUPPORT_FALSE='#'
25879 else
25880 IEEE_SUPPORT_TRUE='#'
25881 IEEE_SUPPORT_FALSE=
25886 # Some targets require additional compiler options for IEEE compatibility.
25887 IEEE_FLAGS="${ieee_flags}"
25891 # Check for POSIX getpwuid_r
25893 # There are two versions of getpwuid_r, the POSIX one with 5
25894 # arguments, and another one with 4 arguments used by at least HP-UX
25895 # 10.2.
25896 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25898 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25899 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25901 else
25903 if test x$gcc_no_link = xyes; then
25904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25907 /* end confdefs.h. */
25909 #include <stdio.h>
25910 #include <sys/types.h>
25911 #include <pwd.h>
25913 main ()
25916 getpwuid_r(0, NULL, NULL, 0, NULL);
25919 return 0;
25921 _ACEOF
25922 if ac_fn_c_try_link "$LINENO"; then :
25923 libgfor_cv_posix_getpwuid_r="yes"
25924 else
25925 libgfor_cv_posix_getpwuid_r="no"
25927 rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25931 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25933 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25935 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25940 # Check out attribute support.
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25943 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25944 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25945 $as_echo_n "(cached) " >&6
25946 else
25948 save_CFLAGS="$CFLAGS"
25949 CFLAGS="$CFLAGS -Werror"
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25952 void __attribute__((visibility("hidden"))) foo(void) { }
25954 main ()
25958 return 0;
25960 _ACEOF
25961 if ac_fn_c_try_compile "$LINENO"; then :
25962 libgfor_cv_have_attribute_visibility=yes
25963 else
25964 libgfor_cv_have_attribute_visibility=no
25966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25967 CFLAGS="$save_CFLAGS"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25970 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
25971 if test $libgfor_cv_have_attribute_visibility = yes; then
25973 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25978 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25979 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25981 else
25983 if test x$gcc_no_link = xyes; then
25984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987 /* end confdefs.h. */
25989 void foo(void) { }
25990 extern void bar(void) __attribute__((alias("foo")));
25992 main ()
25994 bar();
25996 return 0;
25998 _ACEOF
25999 if ac_fn_c_try_link "$LINENO"; then :
26000 libgfor_cv_have_attribute_alias=yes
26001 else
26002 libgfor_cv_have_attribute_alias=no
26004 rm -f core conftest.err conftest.$ac_objext \
26005 conftest$ac_exeext conftest.$ac_ext
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26008 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26009 if test $libgfor_cv_have_attribute_alias = yes; then
26011 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26015 # Check out sync builtins support.
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26018 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26019 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26020 $as_echo_n "(cached) " >&6
26021 else
26023 if test x$gcc_no_link = xyes; then
26024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027 /* end confdefs.h. */
26028 int foovar = 0;
26030 main ()
26033 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26034 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26036 return 0;
26038 _ACEOF
26039 if ac_fn_c_try_link "$LINENO"; then :
26040 libgfor_cv_have_sync_fetch_and_add=yes
26041 else
26042 libgfor_cv_have_sync_fetch_and_add=no
26044 rm -f core conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26048 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26049 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26051 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26055 # Check out #pragma weak.
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26058 $as_echo_n "checking whether pragma weak works... " >&6; }
26059 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26063 gfor_save_CFLAGS="$CFLAGS"
26064 CFLAGS="$CFLAGS -Wunknown-pragmas"
26065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26066 /* end confdefs.h. */
26068 void foo (void);
26069 #pragma weak foo
26072 main ()
26074 if (foo) foo ();
26076 return 0;
26078 _ACEOF
26079 if ac_fn_c_try_compile "$LINENO"; then :
26080 libgfor_cv_have_pragma_weak=yes
26081 else
26082 libgfor_cv_have_pragma_weak=no
26084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26087 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26088 if test $libgfor_cv_have_pragma_weak = yes; then
26090 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26093 case "$host" in
26094 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26096 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26099 esac
26101 # Check out weakref support.
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26104 $as_echo_n "checking whether the target supports weakref... " >&6; }
26105 if test "${libgfor_cv_have_weakref+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26109 save_CFLAGS="$CFLAGS"
26110 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26111 if test x$gcc_no_link = xyes; then
26112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115 /* end confdefs.h. */
26117 static int mytoto (int) __attribute__((__weakref__("toto")));
26120 main ()
26122 return (mytoto != 0);
26124 return 0;
26126 _ACEOF
26127 if ac_fn_c_try_link "$LINENO"; then :
26128 libgfor_cv_have_weakref=yes
26129 else
26130 libgfor_cv_have_weakref=no
26132 rm -f core conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
26134 CFLAGS="$save_CFLAGS"
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26137 $as_echo "$libgfor_cv_have_weakref" >&6; }
26138 if test $libgfor_cv_have_weakref = yes; then
26140 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26144 # Various other checks on target
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26147 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26148 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150 else
26152 if test "$cross_compiling" = yes; then :
26154 case "${target}" in
26155 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26156 *) libgfor_cv_have_unlink_open_file=yes;;
26157 esac
26158 else
26159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26160 /* end confdefs.h. */
26162 #include <errno.h>
26163 #include <fcntl.h>
26164 #include <unistd.h>
26165 #include <sys/stat.h>
26167 int main ()
26169 int fd;
26171 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26172 if (fd <= 0)
26173 return 0;
26174 if (unlink ("testfile") == -1)
26175 return 1;
26176 write (fd, "This is a test\n", 15);
26177 close (fd);
26179 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26180 return 0;
26181 else
26182 return 1;
26184 _ACEOF
26185 if ac_fn_c_try_run "$LINENO"; then :
26186 libgfor_cv_have_unlink_open_file=yes
26187 else
26188 libgfor_cv_have_unlink_open_file=no
26190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26191 conftest.$ac_objext conftest.beam conftest.$ac_ext
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26196 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26197 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26199 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26203 # Check whether line terminator is LF or CRLF
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26206 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26207 if test "${libgfor_cv_have_crlf+set}" = set; then :
26208 $as_echo_n "(cached) " >&6
26209 else
26211 if test "$cross_compiling" = yes; then :
26213 case "${target}" in
26214 *mingw*) libgfor_cv_have_crlf=yes ;;
26215 *) libgfor_cv_have_crlf=no;;
26216 esac
26217 else
26218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26219 /* end confdefs.h. */
26221 /* This test program should exit with status 0 if system uses a CRLF as
26222 line terminator, and status 1 otherwise.
26223 Since it is used to check for mingw systems, and should return 0 in any
26224 other case, in case of a failure we will not use CRLF. */
26225 #include <sys/stat.h>
26226 #include <stdlib.h>
26227 #include <fcntl.h>
26228 #include <stdio.h>
26230 int main ()
26232 #ifndef O_BINARY
26233 exit(1);
26234 #else
26235 int fd, bytes;
26236 char buff[5];
26238 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26239 if (fd < 0)
26240 exit(1);
26241 if (write (fd, "\n", 1) < 0)
26242 perror ("write");
26244 close (fd);
26246 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26247 exit(1);
26248 bytes = read (fd, buff, 5);
26249 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26250 exit(0);
26251 else
26252 exit(1);
26253 #endif
26255 _ACEOF
26256 if ac_fn_c_try_run "$LINENO"; then :
26257 libgfor_cv_have_crlf=yes
26258 else
26259 libgfor_cv_have_crlf=no
26261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26262 conftest.$ac_objext conftest.beam conftest.$ac_ext
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26267 $as_echo "$libgfor_cv_have_crlf" >&6; }
26268 if test x"$libgfor_cv_have_crlf" = xyes; then
26270 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26274 # Check whether we support AVX extensions
26276 ac_save_CFLAGS="$CFLAGS"
26277 CFLAGS="-O2 -mavx"
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h. */
26281 void _mm256_zeroall (void)
26283 __builtin_ia32_vzeroall ();
26286 main ()
26290 return 0;
26292 _ACEOF
26293 if ac_fn_c_try_compile "$LINENO"; then :
26295 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 CFLAGS="$ac_save_CFLAGS"
26302 # Check wether we support AVX2 extensions
26304 ac_save_CFLAGS="$CFLAGS"
26305 CFLAGS="-O2 -mavx2"
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26309 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26310 __v4di
26311 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26313 return __builtin_ia32_andnotsi256 (__X, __Y);
26316 main ()
26320 return 0;
26322 _ACEOF
26323 if ac_fn_c_try_compile "$LINENO"; then :
26325 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26329 CFLAGS="$ac_save_CFLAGS"
26332 # Check wether we support AVX512f extensions
26334 ac_save_CFLAGS="$CFLAGS"
26335 CFLAGS="-O2 -mavx512f"
26336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h. */
26339 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26340 __m512d _mm512_add (__m512d a)
26342 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26343 /* For -m64/-mx32 also verify that code will work even if
26344 the target uses call saved zmm16+ and needs to emit
26345 unwind info for them (e.g. on mingw). See PR79127. */
26346 #ifdef __x86_64__
26347 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26348 #endif
26349 return b;
26352 main ()
26356 return 0;
26358 _ACEOF
26359 if ac_fn_c_try_compile "$LINENO"; then :
26361 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26365 CFLAGS="$ac_save_CFLAGS"
26368 # Check for FMA3 extensions
26370 ac_save_CFLAGS="$CFLAGS"
26371 CFLAGS="-O2 -mfma -mno-fma4"
26372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373 /* end confdefs.h. */
26375 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26376 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26377 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26379 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26380 (__v4sf)__B,
26381 (__v4sf)__C);
26384 main ()
26388 return 0;
26390 _ACEOF
26391 if ac_fn_c_try_compile "$LINENO"; then :
26393 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397 CFLAGS="$ac_save_CFLAGS"
26400 # Check for FMA4 extensions
26402 ac_save_CFLAGS="$CFLAGS"
26403 CFLAGS="-O2 -mfma4 -mno-fma"
26404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h. */
26407 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26408 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26409 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26411 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26412 (__v4sf)__B,
26413 (__v4sf)__C);
26416 main ()
26420 return 0;
26422 _ACEOF
26423 if ac_fn_c_try_compile "$LINENO"; then :
26425 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26429 CFLAGS="$ac_save_CFLAGS"
26432 # Check if AVX128 works
26434 ac_save_CFLAGS="$CFLAGS"
26435 CFLAGS="-O2 -mavx -mprefer-avx128"
26436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26437 /* end confdefs.h. */
26439 void foo()
26443 main ()
26447 return 0;
26449 _ACEOF
26450 if ac_fn_c_try_compile "$LINENO"; then :
26452 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26454 if true; then
26455 HAVE_AVX128_TRUE=
26456 HAVE_AVX128_FALSE='#'
26457 else
26458 HAVE_AVX128_TRUE='#'
26459 HAVE_AVX128_FALSE=
26462 else
26463 if false; then
26464 HAVE_AVX128_TRUE=
26465 HAVE_AVX128_FALSE='#'
26466 else
26467 HAVE_AVX128_TRUE='#'
26468 HAVE_AVX128_FALSE=
26472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 CFLAGS="$ac_save_CFLAGS"
26476 # Determine what GCC version number to use in filesystem paths.
26478 get_gcc_base_ver="cat"
26480 # Check whether --with-gcc-major-version-only was given.
26481 if test "${with_gcc_major_version_only+set}" = set; then :
26482 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26483 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
26491 cat >confcache <<\_ACEOF
26492 # This file is a shell script that caches the results of configure
26493 # tests run on this system so they can be shared between configure
26494 # scripts and configure runs, see configure's option --config-cache.
26495 # It is not useful on other systems. If it contains results you don't
26496 # want to keep, you may remove or edit it.
26498 # config.status only pays attention to the cache file if you give it
26499 # the --recheck option to rerun configure.
26501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26503 # following values.
26505 _ACEOF
26507 # The following way of writing the cache mishandles newlines in values,
26508 # but we know of no workaround that is simple, portable, and efficient.
26509 # So, we kill variables containing newlines.
26510 # Ultrix sh set writes to stderr and can't be redirected directly,
26511 # and sets the high bit in the cache file unless we assign to the vars.
26513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26514 eval ac_val=\$$ac_var
26515 case $ac_val in #(
26516 *${as_nl}*)
26517 case $ac_var in #(
26518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26520 esac
26521 case $ac_var in #(
26522 _ | IFS | as_nl) ;; #(
26523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26524 *) { eval $ac_var=; unset $ac_var;} ;;
26525 esac ;;
26526 esac
26527 done
26529 (set) 2>&1 |
26530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26531 *${as_nl}ac_space=\ *)
26532 # `set' does not quote correctly, so add quotes: double-quote
26533 # substitution turns \\\\ into \\, and sed turns \\ into \.
26534 sed -n \
26535 "s/'/'\\\\''/g;
26536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26537 ;; #(
26539 # `set' quotes correctly as required by POSIX, so do not add quotes.
26540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26542 esac |
26543 sort
26545 sed '
26546 /^ac_cv_env_/b end
26547 t clear
26548 :clear
26549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26550 t end
26551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26552 :end' >>confcache
26553 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26554 if test -w "$cache_file"; then
26555 test "x$cache_file" != "x/dev/null" &&
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26557 $as_echo "$as_me: updating cache $cache_file" >&6;}
26558 cat confcache >$cache_file
26559 else
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26561 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26564 rm -f confcache
26566 if test ${multilib} = yes; then
26567 multilib_arg="--enable-multilib"
26568 else
26569 multilib_arg=
26572 # Write our Makefile and spec file.
26573 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26575 cat >confcache <<\_ACEOF
26576 # This file is a shell script that caches the results of configure
26577 # tests run on this system so they can be shared between configure
26578 # scripts and configure runs, see configure's option --config-cache.
26579 # It is not useful on other systems. If it contains results you don't
26580 # want to keep, you may remove or edit it.
26582 # config.status only pays attention to the cache file if you give it
26583 # the --recheck option to rerun configure.
26585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26587 # following values.
26589 _ACEOF
26591 # The following way of writing the cache mishandles newlines in values,
26592 # but we know of no workaround that is simple, portable, and efficient.
26593 # So, we kill variables containing newlines.
26594 # Ultrix sh set writes to stderr and can't be redirected directly,
26595 # and sets the high bit in the cache file unless we assign to the vars.
26597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26598 eval ac_val=\$$ac_var
26599 case $ac_val in #(
26600 *${as_nl}*)
26601 case $ac_var in #(
26602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26604 esac
26605 case $ac_var in #(
26606 _ | IFS | as_nl) ;; #(
26607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26608 *) { eval $ac_var=; unset $ac_var;} ;;
26609 esac ;;
26610 esac
26611 done
26613 (set) 2>&1 |
26614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26615 *${as_nl}ac_space=\ *)
26616 # `set' does not quote correctly, so add quotes: double-quote
26617 # substitution turns \\\\ into \\, and sed turns \\ into \.
26618 sed -n \
26619 "s/'/'\\\\''/g;
26620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26621 ;; #(
26623 # `set' quotes correctly as required by POSIX, so do not add quotes.
26624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26626 esac |
26627 sort
26629 sed '
26630 /^ac_cv_env_/b end
26631 t clear
26632 :clear
26633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26634 t end
26635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26636 :end' >>confcache
26637 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26638 if test -w "$cache_file"; then
26639 test "x$cache_file" != "x/dev/null" &&
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26641 $as_echo "$as_me: updating cache $cache_file" >&6;}
26642 cat confcache >$cache_file
26643 else
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26645 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26648 rm -f confcache
26650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26651 # Let make expand exec_prefix.
26652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26654 DEFS=-DHAVE_CONFIG_H
26656 ac_libobjs=
26657 ac_ltlibobjs=
26658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26659 # 1. Remove the extension, and $U if already installed.
26660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26661 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26663 # will be set to the directory where LIBOBJS objects are built.
26664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26666 done
26667 LIBOBJS=$ac_libobjs
26669 LTLIBOBJS=$ac_ltlibobjs
26672 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26673 as_fn_error "conditional \"onestep\" was never defined.
26674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26676 if test -n "$EXEEXT"; then
26677 am__EXEEXT_TRUE=
26678 am__EXEEXT_FALSE='#'
26679 else
26680 am__EXEEXT_TRUE='#'
26681 am__EXEEXT_FALSE=
26684 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26685 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26689 as_fn_error "conditional \"AMDEP\" was never defined.
26690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26693 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26697 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26700 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26701 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26704 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26705 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26708 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26709 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26712 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26713 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26716 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26717 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26720 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26721 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26724 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26725 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26728 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26729 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26732 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26733 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26737 : ${CONFIG_STATUS=./config.status}
26738 ac_write_fail=0
26739 ac_clean_files_save=$ac_clean_files
26740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26742 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26743 as_write_fail=0
26744 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26745 #! $SHELL
26746 # Generated by $as_me.
26747 # Run this file to recreate the current configuration.
26748 # Compiler output produced by configure, useful for debugging
26749 # configure, is in config.log if it exists.
26751 debug=false
26752 ac_cs_recheck=false
26753 ac_cs_silent=false
26755 SHELL=\${CONFIG_SHELL-$SHELL}
26756 export SHELL
26757 _ASEOF
26758 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26759 ## -------------------- ##
26760 ## M4sh Initialization. ##
26761 ## -------------------- ##
26763 # Be more Bourne compatible
26764 DUALCASE=1; export DUALCASE # for MKS sh
26765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26766 emulate sh
26767 NULLCMD=:
26768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26769 # is contrary to our usage. Disable this feature.
26770 alias -g '${1+"$@"}'='"$@"'
26771 setopt NO_GLOB_SUBST
26772 else
26773 case `(set -o) 2>/dev/null` in #(
26774 *posix*) :
26775 set -o posix ;; #(
26776 *) :
26778 esac
26782 as_nl='
26784 export as_nl
26785 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26786 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26787 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26789 # Prefer a ksh shell builtin over an external printf program on Solaris,
26790 # but without wasting forks for bash or zsh.
26791 if test -z "$BASH_VERSION$ZSH_VERSION" \
26792 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26793 as_echo='print -r --'
26794 as_echo_n='print -rn --'
26795 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26796 as_echo='printf %s\n'
26797 as_echo_n='printf %s'
26798 else
26799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26801 as_echo_n='/usr/ucb/echo -n'
26802 else
26803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26804 as_echo_n_body='eval
26805 arg=$1;
26806 case $arg in #(
26807 *"$as_nl"*)
26808 expr "X$arg" : "X\\(.*\\)$as_nl";
26809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26810 esac;
26811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26813 export as_echo_n_body
26814 as_echo_n='sh -c $as_echo_n_body as_echo'
26816 export as_echo_body
26817 as_echo='sh -c $as_echo_body as_echo'
26820 # The user is always right.
26821 if test "${PATH_SEPARATOR+set}" != set; then
26822 PATH_SEPARATOR=:
26823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26825 PATH_SEPARATOR=';'
26830 # IFS
26831 # We need space, tab and new line, in precisely that order. Quoting is
26832 # there to prevent editors from complaining about space-tab.
26833 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26834 # splitting by setting IFS to empty value.)
26835 IFS=" "" $as_nl"
26837 # Find who we are. Look in the path if we contain no directory separator.
26838 case $0 in #((
26839 *[\\/]* ) as_myself=$0 ;;
26840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26841 for as_dir in $PATH
26843 IFS=$as_save_IFS
26844 test -z "$as_dir" && as_dir=.
26845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26846 done
26847 IFS=$as_save_IFS
26850 esac
26851 # We did not find ourselves, most probably we were run as `sh COMMAND'
26852 # in which case we are not to be found in the path.
26853 if test "x$as_myself" = x; then
26854 as_myself=$0
26856 if test ! -f "$as_myself"; then
26857 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26858 exit 1
26861 # Unset variables that we do not need and which cause bugs (e.g. in
26862 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26863 # suppresses any "Segmentation fault" message there. '((' could
26864 # trigger a bug in pdksh 5.2.14.
26865 for as_var in BASH_ENV ENV MAIL MAILPATH
26866 do eval test x\${$as_var+set} = xset \
26867 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26868 done
26869 PS1='$ '
26870 PS2='> '
26871 PS4='+ '
26873 # NLS nuisances.
26874 LC_ALL=C
26875 export LC_ALL
26876 LANGUAGE=C
26877 export LANGUAGE
26879 # CDPATH.
26880 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26883 # as_fn_error ERROR [LINENO LOG_FD]
26884 # ---------------------------------
26885 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26886 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26887 # script with status $?, using 1 if that was 0.
26888 as_fn_error ()
26890 as_status=$?; test $as_status -eq 0 && as_status=1
26891 if test "$3"; then
26892 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26893 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26895 $as_echo "$as_me: error: $1" >&2
26896 as_fn_exit $as_status
26897 } # as_fn_error
26900 # as_fn_set_status STATUS
26901 # -----------------------
26902 # Set $? to STATUS, without forking.
26903 as_fn_set_status ()
26905 return $1
26906 } # as_fn_set_status
26908 # as_fn_exit STATUS
26909 # -----------------
26910 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26911 as_fn_exit ()
26913 set +e
26914 as_fn_set_status $1
26915 exit $1
26916 } # as_fn_exit
26918 # as_fn_unset VAR
26919 # ---------------
26920 # Portably unset VAR.
26921 as_fn_unset ()
26923 { eval $1=; unset $1;}
26925 as_unset=as_fn_unset
26926 # as_fn_append VAR VALUE
26927 # ----------------------
26928 # Append the text in VALUE to the end of the definition contained in VAR. Take
26929 # advantage of any shell optimizations that allow amortized linear growth over
26930 # repeated appends, instead of the typical quadratic growth present in naive
26931 # implementations.
26932 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26933 eval 'as_fn_append ()
26935 eval $1+=\$2
26937 else
26938 as_fn_append ()
26940 eval $1=\$$1\$2
26942 fi # as_fn_append
26944 # as_fn_arith ARG...
26945 # ------------------
26946 # Perform arithmetic evaluation on the ARGs, and store the result in the
26947 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26948 # must be portable across $(()) and expr.
26949 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26950 eval 'as_fn_arith ()
26952 as_val=$(( $* ))
26954 else
26955 as_fn_arith ()
26957 as_val=`expr "$@" || test $? -eq 1`
26959 fi # as_fn_arith
26962 if expr a : '\(a\)' >/dev/null 2>&1 &&
26963 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26964 as_expr=expr
26965 else
26966 as_expr=false
26969 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26970 as_basename=basename
26971 else
26972 as_basename=false
26975 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26976 as_dirname=dirname
26977 else
26978 as_dirname=false
26981 as_me=`$as_basename -- "$0" ||
26982 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26983 X"$0" : 'X\(//\)$' \| \
26984 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26985 $as_echo X/"$0" |
26986 sed '/^.*\/\([^/][^/]*\)\/*$/{
26987 s//\1/
26990 /^X\/\(\/\/\)$/{
26991 s//\1/
26994 /^X\/\(\/\).*/{
26995 s//\1/
26998 s/.*/./; q'`
27000 # Avoid depending upon Character Ranges.
27001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27004 as_cr_digits='0123456789'
27005 as_cr_alnum=$as_cr_Letters$as_cr_digits
27007 ECHO_C= ECHO_N= ECHO_T=
27008 case `echo -n x` in #(((((
27009 -n*)
27010 case `echo 'xy\c'` in
27011 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27012 xy) ECHO_C='\c';;
27013 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27014 ECHO_T=' ';;
27015 esac;;
27017 ECHO_N='-n';;
27018 esac
27020 rm -f conf$$ conf$$.exe conf$$.file
27021 if test -d conf$$.dir; then
27022 rm -f conf$$.dir/conf$$.file
27023 else
27024 rm -f conf$$.dir
27025 mkdir conf$$.dir 2>/dev/null
27027 if (echo >conf$$.file) 2>/dev/null; then
27028 if ln -s conf$$.file conf$$ 2>/dev/null; then
27029 as_ln_s='ln -s'
27030 # ... but there are two gotchas:
27031 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27032 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27033 # In both cases, we have to default to `cp -p'.
27034 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27035 as_ln_s='cp -p'
27036 elif ln conf$$.file conf$$ 2>/dev/null; then
27037 as_ln_s=ln
27038 else
27039 as_ln_s='cp -p'
27041 else
27042 as_ln_s='cp -p'
27044 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27045 rmdir conf$$.dir 2>/dev/null
27048 # as_fn_mkdir_p
27049 # -------------
27050 # Create "$as_dir" as a directory, including parents if necessary.
27051 as_fn_mkdir_p ()
27054 case $as_dir in #(
27055 -*) as_dir=./$as_dir;;
27056 esac
27057 test -d "$as_dir" || eval $as_mkdir_p || {
27058 as_dirs=
27059 while :; do
27060 case $as_dir in #(
27061 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27062 *) as_qdir=$as_dir;;
27063 esac
27064 as_dirs="'$as_qdir' $as_dirs"
27065 as_dir=`$as_dirname -- "$as_dir" ||
27066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27067 X"$as_dir" : 'X\(//\)[^/]' \| \
27068 X"$as_dir" : 'X\(//\)$' \| \
27069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27070 $as_echo X"$as_dir" |
27071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27072 s//\1/
27075 /^X\(\/\/\)[^/].*/{
27076 s//\1/
27079 /^X\(\/\/\)$/{
27080 s//\1/
27083 /^X\(\/\).*/{
27084 s//\1/
27087 s/.*/./; q'`
27088 test -d "$as_dir" && break
27089 done
27090 test -z "$as_dirs" || eval "mkdir $as_dirs"
27091 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27094 } # as_fn_mkdir_p
27095 if mkdir -p . 2>/dev/null; then
27096 as_mkdir_p='mkdir -p "$as_dir"'
27097 else
27098 test -d ./-p && rmdir ./-p
27099 as_mkdir_p=false
27102 if test -x / >/dev/null 2>&1; then
27103 as_test_x='test -x'
27104 else
27105 if ls -dL / >/dev/null 2>&1; then
27106 as_ls_L_option=L
27107 else
27108 as_ls_L_option=
27110 as_test_x='
27111 eval sh -c '\''
27112 if test -d "$1"; then
27113 test -d "$1/.";
27114 else
27115 case $1 in #(
27116 -*)set "./$1";;
27117 esac;
27118 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27119 ???[sx]*):;;*)false;;esac;fi
27120 '\'' sh
27123 as_executable_p=$as_test_x
27125 # Sed expression to map a string onto a valid CPP name.
27126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27128 # Sed expression to map a string onto a valid variable name.
27129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27132 exec 6>&1
27133 ## ----------------------------------- ##
27134 ## Main body of $CONFIG_STATUS script. ##
27135 ## ----------------------------------- ##
27136 _ASEOF
27137 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27140 # Save the log message, to keep $0 and so on meaningful, and to
27141 # report actual input values of CONFIG_FILES etc. instead of their
27142 # values after options handling.
27143 ac_log="
27144 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27145 generated by GNU Autoconf 2.64. Invocation command line was
27147 CONFIG_FILES = $CONFIG_FILES
27148 CONFIG_HEADERS = $CONFIG_HEADERS
27149 CONFIG_LINKS = $CONFIG_LINKS
27150 CONFIG_COMMANDS = $CONFIG_COMMANDS
27151 $ $0 $@
27153 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27156 _ACEOF
27158 case $ac_config_files in *"
27159 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27160 esac
27162 case $ac_config_headers in *"
27163 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27164 esac
27167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27168 # Files that config.status was made for.
27169 config_files="$ac_config_files"
27170 config_headers="$ac_config_headers"
27171 config_commands="$ac_config_commands"
27173 _ACEOF
27175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27176 ac_cs_usage="\
27177 \`$as_me' instantiates files and other configuration actions
27178 from templates according to the current configuration. Unless the files
27179 and actions are specified as TAGs, all are instantiated by default.
27181 Usage: $0 [OPTION]... [TAG]...
27183 -h, --help print this help, then exit
27184 -V, --version print version number and configuration settings, then exit
27185 -q, --quiet, --silent
27186 do not print progress messages
27187 -d, --debug don't remove temporary files
27188 --recheck update $as_me by reconfiguring in the same conditions
27189 --file=FILE[:TEMPLATE]
27190 instantiate the configuration file FILE
27191 --header=FILE[:TEMPLATE]
27192 instantiate the configuration header FILE
27194 Configuration files:
27195 $config_files
27197 Configuration headers:
27198 $config_headers
27200 Configuration commands:
27201 $config_commands
27203 Report bugs to the package provider.
27204 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27205 General help using GNU software: <http://www.gnu.org/gethelp/>."
27207 _ACEOF
27208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27209 ac_cs_version="\\
27210 GNU Fortran Runtime Library config.status 0.3
27211 configured by $0, generated by GNU Autoconf 2.64,
27212 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27214 Copyright (C) 2009 Free Software Foundation, Inc.
27215 This config.status script is free software; the Free Software Foundation
27216 gives unlimited permission to copy, distribute and modify it."
27218 ac_pwd='$ac_pwd'
27219 srcdir='$srcdir'
27220 INSTALL='$INSTALL'
27221 MKDIR_P='$MKDIR_P'
27222 AWK='$AWK'
27223 test -n "\$AWK" || AWK=awk
27224 _ACEOF
27226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27227 # The default lists apply if the user does not specify any file.
27228 ac_need_defaults=:
27229 while test $# != 0
27231 case $1 in
27232 --*=*)
27233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27235 ac_shift=:
27238 ac_option=$1
27239 ac_optarg=$2
27240 ac_shift=shift
27242 esac
27244 case $ac_option in
27245 # Handling of the options.
27246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27247 ac_cs_recheck=: ;;
27248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27249 $as_echo "$ac_cs_version"; exit ;;
27250 --debug | --debu | --deb | --de | --d | -d )
27251 debug=: ;;
27252 --file | --fil | --fi | --f )
27253 $ac_shift
27254 case $ac_optarg in
27255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27256 esac
27257 as_fn_append CONFIG_FILES " '$ac_optarg'"
27258 ac_need_defaults=false;;
27259 --header | --heade | --head | --hea )
27260 $ac_shift
27261 case $ac_optarg in
27262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27263 esac
27264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27265 ac_need_defaults=false;;
27266 --he | --h)
27267 # Conflict between --help and --header
27268 as_fn_error "ambiguous option: \`$1'
27269 Try \`$0 --help' for more information.";;
27270 --help | --hel | -h )
27271 $as_echo "$ac_cs_usage"; exit ;;
27272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27274 ac_cs_silent=: ;;
27276 # This is an error.
27277 -*) as_fn_error "unrecognized option: \`$1'
27278 Try \`$0 --help' for more information." ;;
27280 *) as_fn_append ac_config_targets " $1"
27281 ac_need_defaults=false ;;
27283 esac
27284 shift
27285 done
27287 ac_configure_extra_args=
27289 if $ac_cs_silent; then
27290 exec 6>/dev/null
27291 ac_configure_extra_args="$ac_configure_extra_args --silent"
27294 _ACEOF
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27296 if \$ac_cs_recheck; then
27297 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27298 shift
27299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27300 CONFIG_SHELL='$SHELL'
27301 export CONFIG_SHELL
27302 exec "\$@"
27305 _ACEOF
27306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27307 exec 5>>config.log
27309 echo
27310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27311 ## Running $as_me. ##
27312 _ASBOX
27313 $as_echo "$ac_log"
27314 } >&5
27316 _ACEOF
27317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27319 # INIT-COMMANDS
27322 srcdir="$srcdir"
27323 host="$host"
27324 target="$target"
27325 with_multisubdir="$with_multisubdir"
27326 with_multisrctop="$with_multisrctop"
27327 with_target_subdir="$with_target_subdir"
27328 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27329 multi_basedir="$multi_basedir"
27330 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27331 CC="$CC"
27332 CXX="$CXX"
27333 GFORTRAN="$GFORTRAN"
27334 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27337 # The HP-UX ksh and POSIX shell print the target directory to stdout
27338 # if CDPATH is set.
27339 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27341 sed_quote_subst='$sed_quote_subst'
27342 double_quote_subst='$double_quote_subst'
27343 delay_variable_subst='$delay_variable_subst'
27344 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27345 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27346 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27347 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27348 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27349 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27350 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27352 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27353 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27354 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27355 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27356 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27357 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27358 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27359 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27360 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27361 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27362 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27363 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27364 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27365 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27366 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27367 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27368 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27369 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27370 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27371 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27372 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27373 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27374 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27375 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27376 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27377 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27378 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27379 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27380 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27381 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27382 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27383 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27384 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27385 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27386 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27387 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27388 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27389 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27390 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27391 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27392 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"`'
27393 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27394 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27395 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27396 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27397 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27398 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27399 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27400 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27401 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27402 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27403 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27404 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27405 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27406 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27407 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27408 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27409 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27410 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27411 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27412 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27413 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27414 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27415 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27416 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27417 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27418 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27419 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27420 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27421 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27422 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27423 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27424 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27425 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27426 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27427 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27428 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27429 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27430 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27431 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27432 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27433 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27434 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27435 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27436 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27437 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27438 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27439 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27440 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27441 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27442 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27443 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27444 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27445 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27446 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27447 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27448 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27449 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27450 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27451 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27452 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27453 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27454 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27455 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27456 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27457 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27458 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27459 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27460 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27461 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27462 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27463 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27464 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27465 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27466 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27467 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27468 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27469 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27470 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27471 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27472 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27473 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27474 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27475 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27476 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27477 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27478 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27479 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27480 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27481 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27482 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27483 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27484 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27485 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27486 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27487 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27488 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27489 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27490 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27491 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27492 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27493 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27494 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27495 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27496 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27497 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27498 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27499 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27500 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27501 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27502 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27503 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27504 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27505 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27506 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27507 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27508 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27509 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27510 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27511 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27512 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27513 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27514 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27515 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27516 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27517 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27518 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27520 LTCC='$LTCC'
27521 LTCFLAGS='$LTCFLAGS'
27522 compiler='$compiler_DEFAULT'
27524 # A function that is used when there is no print builtin or printf.
27525 func_fallback_echo ()
27527 eval 'cat <<_LTECHO_EOF
27529 _LTECHO_EOF'
27532 # Quote evaled strings.
27533 for var in SED \
27534 GREP \
27535 EGREP \
27536 FGREP \
27537 SHELL \
27538 ECHO \
27539 LD \
27540 NM \
27541 LN_S \
27542 lt_SP2NL \
27543 lt_NL2SP \
27544 reload_flag \
27545 OBJDUMP \
27546 deplibs_check_method \
27547 file_magic_cmd \
27548 AR \
27549 AR_FLAGS \
27550 STRIP \
27551 RANLIB \
27552 CC \
27553 CFLAGS \
27554 compiler \
27555 lt_cv_sys_global_symbol_pipe \
27556 lt_cv_sys_global_symbol_to_cdecl \
27557 lt_cv_sys_global_symbol_to_c_name_address \
27558 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27559 lt_prog_compiler_no_builtin_flag \
27560 lt_prog_compiler_wl \
27561 lt_prog_compiler_pic \
27562 lt_prog_compiler_static \
27563 lt_cv_prog_compiler_c_o \
27564 need_locks \
27565 DSYMUTIL \
27566 NMEDIT \
27567 LIPO \
27568 OTOOL \
27569 OTOOL64 \
27570 shrext_cmds \
27571 export_dynamic_flag_spec \
27572 whole_archive_flag_spec \
27573 compiler_needs_object \
27574 with_gnu_ld \
27575 allow_undefined_flag \
27576 no_undefined_flag \
27577 hardcode_libdir_flag_spec \
27578 hardcode_libdir_flag_spec_ld \
27579 hardcode_libdir_separator \
27580 fix_srcfile_path \
27581 exclude_expsyms \
27582 include_expsyms \
27583 file_list_spec \
27584 variables_saved_for_relink \
27585 libname_spec \
27586 library_names_spec \
27587 soname_spec \
27588 install_override_mode \
27589 finish_eval \
27590 old_striplib \
27591 striplib \
27592 compiler_lib_search_dirs \
27593 predep_objects \
27594 postdep_objects \
27595 predeps \
27596 postdeps \
27597 compiler_lib_search_path \
27598 LD_FC \
27599 reload_flag_FC \
27600 compiler_FC \
27601 lt_prog_compiler_no_builtin_flag_FC \
27602 lt_prog_compiler_wl_FC \
27603 lt_prog_compiler_pic_FC \
27604 lt_prog_compiler_static_FC \
27605 lt_cv_prog_compiler_c_o_FC \
27606 export_dynamic_flag_spec_FC \
27607 whole_archive_flag_spec_FC \
27608 compiler_needs_object_FC \
27609 with_gnu_ld_FC \
27610 allow_undefined_flag_FC \
27611 no_undefined_flag_FC \
27612 hardcode_libdir_flag_spec_FC \
27613 hardcode_libdir_flag_spec_ld_FC \
27614 hardcode_libdir_separator_FC \
27615 fix_srcfile_path_FC \
27616 exclude_expsyms_FC \
27617 include_expsyms_FC \
27618 file_list_spec_FC \
27619 compiler_lib_search_dirs_FC \
27620 predep_objects_FC \
27621 postdep_objects_FC \
27622 predeps_FC \
27623 postdeps_FC \
27624 compiler_lib_search_path_FC; do
27625 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27626 *[\\\\\\\`\\"\\\$]*)
27627 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27630 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27632 esac
27633 done
27635 # Double-quote double-evaled strings.
27636 for var in reload_cmds \
27637 old_postinstall_cmds \
27638 old_postuninstall_cmds \
27639 old_archive_cmds \
27640 extract_expsyms_cmds \
27641 old_archive_from_new_cmds \
27642 old_archive_from_expsyms_cmds \
27643 archive_cmds \
27644 archive_expsym_cmds \
27645 module_cmds \
27646 module_expsym_cmds \
27647 export_symbols_cmds \
27648 prelink_cmds \
27649 postinstall_cmds \
27650 postuninstall_cmds \
27651 finish_cmds \
27652 sys_lib_search_path_spec \
27653 sys_lib_dlsearch_path_spec \
27654 reload_cmds_FC \
27655 old_archive_cmds_FC \
27656 old_archive_from_new_cmds_FC \
27657 old_archive_from_expsyms_cmds_FC \
27658 archive_cmds_FC \
27659 archive_expsym_cmds_FC \
27660 module_cmds_FC \
27661 module_expsym_cmds_FC \
27662 export_symbols_cmds_FC \
27663 prelink_cmds_FC; do
27664 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27665 *[\\\\\\\`\\"\\\$]*)
27666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27671 esac
27672 done
27674 ac_aux_dir='$ac_aux_dir'
27675 xsi_shell='$xsi_shell'
27676 lt_shell_append='$lt_shell_append'
27678 # See if we are running on zsh, and set the options which allow our
27679 # commands through without removal of \ escapes INIT.
27680 if test -n "\${ZSH_VERSION+set}" ; then
27681 setopt NO_GLOB_SUBST
27685 PACKAGE='$PACKAGE'
27686 VERSION='$VERSION'
27687 TIMESTAMP='$TIMESTAMP'
27688 RM='$RM'
27689 ofile='$ofile'
27696 GCC="$GCC"
27697 CC="$CC"
27698 acx_cv_header_stdint="$acx_cv_header_stdint"
27699 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27700 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27701 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27702 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27703 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27704 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27705 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27706 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27707 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27708 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27709 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27710 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27711 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27714 _ACEOF
27716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27718 # Handling of arguments.
27719 for ac_config_target in $ac_config_targets
27721 case $ac_config_target in
27722 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27723 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27724 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27725 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27726 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27728 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27730 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27731 esac
27732 done
27735 # If the user did not use the arguments to specify the items to instantiate,
27736 # then the envvar interface is used. Set only those that are not.
27737 # We use the long form for the default assignment because of an extremely
27738 # bizarre bug on SunOS 4.1.3.
27739 if $ac_need_defaults; then
27740 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27741 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27745 # Have a temporary directory for convenience. Make it in the build tree
27746 # simply because there is no reason against having it here, and in addition,
27747 # creating and moving files from /tmp can sometimes cause problems.
27748 # Hook for its removal unless debugging.
27749 # Note that there is a small window in which the directory will not be cleaned:
27750 # after its creation but before its name has been assigned to `$tmp'.
27751 $debug ||
27753 tmp=
27754 trap 'exit_status=$?
27755 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27757 trap 'as_fn_exit 1' 1 2 13 15
27759 # Create a (secure) tmp directory for tmp files.
27762 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27763 test -n "$tmp" && test -d "$tmp"
27764 } ||
27766 tmp=./conf$$-$RANDOM
27767 (umask 077 && mkdir "$tmp")
27768 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27770 # Set up the scripts for CONFIG_FILES section.
27771 # No need to generate them if there are no CONFIG_FILES.
27772 # This happens for instance with `./config.status config.h'.
27773 if test -n "$CONFIG_FILES"; then
27776 ac_cr=`echo X | tr X '\015'`
27777 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27778 # But we know of no other shell where ac_cr would be empty at this
27779 # point, so we can use a bashism as a fallback.
27780 if test "x$ac_cr" = x; then
27781 eval ac_cr=\$\'\\r\'
27783 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27784 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27785 ac_cs_awk_cr='\r'
27786 else
27787 ac_cs_awk_cr=$ac_cr
27790 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27791 _ACEOF
27795 echo "cat >conf$$subs.awk <<_ACEOF" &&
27796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27797 echo "_ACEOF"
27798 } >conf$$subs.sh ||
27799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27800 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27801 ac_delim='%!_!# '
27802 for ac_last_try in false false false false false :; do
27803 . ./conf$$subs.sh ||
27804 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27807 if test $ac_delim_n = $ac_delim_num; then
27808 break
27809 elif $ac_last_try; then
27810 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27811 else
27812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27814 done
27815 rm -f conf$$subs.sh
27817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27818 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27819 _ACEOF
27820 sed -n '
27822 s/^/S["/; s/!.*/"]=/
27825 s/^[^!]*!//
27826 :repl
27827 t repl
27828 s/'"$ac_delim"'$//
27829 t delim
27832 s/\(.\{148\}\).*/\1/
27833 t more1
27834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27837 b repl
27838 :more1
27839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27842 s/.\{148\}//
27843 t nl
27844 :delim
27846 s/\(.\{148\}\).*/\1/
27847 t more2
27848 s/["\\]/\\&/g; s/^/"/; s/$/"/
27851 :more2
27852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27855 s/.\{148\}//
27856 t delim
27857 ' <conf$$subs.awk | sed '
27858 /^[^""]/{
27860 s/\n//
27862 ' >>$CONFIG_STATUS || ac_write_fail=1
27863 rm -f conf$$subs.awk
27864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27865 _ACAWK
27866 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27867 for (key in S) S_is_set[key] = 1
27868 FS = "\a"
27872 line = $ 0
27873 nfields = split(line, field, "@")
27874 substed = 0
27875 len = length(field[1])
27876 for (i = 2; i < nfields; i++) {
27877 key = field[i]
27878 keylen = length(key)
27879 if (S_is_set[key]) {
27880 value = S[key]
27881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27882 len += length(value) + length(field[++i])
27883 substed = 1
27884 } else
27885 len += 1 + keylen
27888 print line
27891 _ACAWK
27892 _ACEOF
27893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27896 else
27898 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27899 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27900 _ACEOF
27902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27904 # trailing colons and then remove the whole line if VPATH becomes empty
27905 # (actually we leave an empty line to preserve line numbers).
27906 if test "x$srcdir" = x.; then
27907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27908 s/:*\$(srcdir):*/:/
27909 s/:*\${srcdir}:*/:/
27910 s/:*@srcdir@:*/:/
27911 s/^\([^=]*=[ ]*\):*/\1/
27912 s/:*$//
27913 s/^[^=]*=[ ]*$//
27917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27918 fi # test -n "$CONFIG_FILES"
27920 # Set up the scripts for CONFIG_HEADERS section.
27921 # No need to generate them if there are no CONFIG_HEADERS.
27922 # This happens for instance with `./config.status Makefile'.
27923 if test -n "$CONFIG_HEADERS"; then
27924 cat >"$tmp/defines.awk" <<\_ACAWK ||
27925 BEGIN {
27926 _ACEOF
27928 # Transform confdefs.h into an awk script `defines.awk', embedded as
27929 # here-document in config.status, that substitutes the proper values into
27930 # config.h.in to produce config.h.
27932 # Create a delimiter string that does not exist in confdefs.h, to ease
27933 # handling of long lines.
27934 ac_delim='%!_!# '
27935 for ac_last_try in false false :; do
27936 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27937 if test -z "$ac_t"; then
27938 break
27939 elif $ac_last_try; then
27940 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27941 else
27942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27944 done
27946 # For the awk script, D is an array of macro values keyed by name,
27947 # likewise P contains macro parameters if any. Preserve backslash
27948 # newline sequences.
27950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27951 sed -n '
27952 s/.\{148\}/&'"$ac_delim"'/g
27953 t rset
27954 :rset
27955 s/^[ ]*#[ ]*define[ ][ ]*/ /
27956 t def
27958 :def
27959 s/\\$//
27960 t bsnl
27961 s/["\\]/\\&/g
27962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27963 D["\1"]=" \3"/p
27964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27966 :bsnl
27967 s/["\\]/\\&/g
27968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27969 D["\1"]=" \3\\\\\\n"\\/p
27970 t cont
27971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27972 t cont
27974 :cont
27976 s/.\{148\}/&'"$ac_delim"'/g
27977 t clear
27978 :clear
27979 s/\\$//
27980 t bsnlc
27981 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27983 :bsnlc
27984 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27985 b cont
27986 ' <confdefs.h | sed '
27987 s/'"$ac_delim"'/"\\\
27988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27991 for (key in D) D_is_set[key] = 1
27992 FS = "\a"
27994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27995 line = \$ 0
27996 split(line, arg, " ")
27997 if (arg[1] == "#") {
27998 defundef = arg[2]
27999 mac1 = arg[3]
28000 } else {
28001 defundef = substr(arg[1], 2)
28002 mac1 = arg[2]
28004 split(mac1, mac2, "(") #)
28005 macro = mac2[1]
28006 prefix = substr(line, 1, index(line, defundef) - 1)
28007 if (D_is_set[macro]) {
28008 # Preserve the white space surrounding the "#".
28009 print prefix "define", macro P[macro] D[macro]
28010 next
28011 } else {
28012 # Replace #undef with comments. This is necessary, for example,
28013 # in the case of _POSIX_SOURCE, which is predefined and required
28014 # on some systems where configure will not decide to define it.
28015 if (defundef == "undef") {
28016 print "/*", prefix defundef, macro, "*/"
28017 next
28021 { print }
28022 _ACAWK
28023 _ACEOF
28024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28025 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28026 fi # test -n "$CONFIG_HEADERS"
28029 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28030 shift
28031 for ac_tag
28033 case $ac_tag in
28034 :[FHLC]) ac_mode=$ac_tag; continue;;
28035 esac
28036 case $ac_mode$ac_tag in
28037 :[FHL]*:*);;
28038 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28039 :[FH]-) ac_tag=-:-;;
28040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28041 esac
28042 ac_save_IFS=$IFS
28043 IFS=:
28044 set x $ac_tag
28045 IFS=$ac_save_IFS
28046 shift
28047 ac_file=$1
28048 shift
28050 case $ac_mode in
28051 :L) ac_source=$1;;
28052 :[FH])
28053 ac_file_inputs=
28054 for ac_f
28056 case $ac_f in
28057 -) ac_f="$tmp/stdin";;
28058 *) # Look for the file first in the build tree, then in the source tree
28059 # (if the path is not absolute). The absolute path cannot be DOS-style,
28060 # because $ac_f cannot contain `:'.
28061 test -f "$ac_f" ||
28062 case $ac_f in
28063 [\\/$]*) false;;
28064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28065 esac ||
28066 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28067 esac
28068 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28069 as_fn_append ac_file_inputs " '$ac_f'"
28070 done
28072 # Let's still pretend it is `configure' which instantiates (i.e., don't
28073 # use $as_me), people would be surprised to read:
28074 # /* config.h. Generated by config.status. */
28075 configure_input='Generated from '`
28076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28077 `' by configure.'
28078 if test x"$ac_file" != x-; then
28079 configure_input="$ac_file. $configure_input"
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28081 $as_echo "$as_me: creating $ac_file" >&6;}
28083 # Neutralize special characters interpreted by sed in replacement strings.
28084 case $configure_input in #(
28085 *\&* | *\|* | *\\* )
28086 ac_sed_conf_input=`$as_echo "$configure_input" |
28087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28088 *) ac_sed_conf_input=$configure_input;;
28089 esac
28091 case $ac_tag in
28092 *:-:* | *:-) cat >"$tmp/stdin" \
28093 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28094 esac
28096 esac
28098 ac_dir=`$as_dirname -- "$ac_file" ||
28099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28100 X"$ac_file" : 'X\(//\)[^/]' \| \
28101 X"$ac_file" : 'X\(//\)$' \| \
28102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28103 $as_echo X"$ac_file" |
28104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28105 s//\1/
28108 /^X\(\/\/\)[^/].*/{
28109 s//\1/
28112 /^X\(\/\/\)$/{
28113 s//\1/
28116 /^X\(\/\).*/{
28117 s//\1/
28120 s/.*/./; q'`
28121 as_dir="$ac_dir"; as_fn_mkdir_p
28122 ac_builddir=.
28124 case "$ac_dir" in
28125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28128 # A ".." for each directory in $ac_dir_suffix.
28129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28130 case $ac_top_builddir_sub in
28131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28133 esac ;;
28134 esac
28135 ac_abs_top_builddir=$ac_pwd
28136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28137 # for backward compatibility:
28138 ac_top_builddir=$ac_top_build_prefix
28140 case $srcdir in
28141 .) # We are building in place.
28142 ac_srcdir=.
28143 ac_top_srcdir=$ac_top_builddir_sub
28144 ac_abs_top_srcdir=$ac_pwd ;;
28145 [\\/]* | ?:[\\/]* ) # Absolute name.
28146 ac_srcdir=$srcdir$ac_dir_suffix;
28147 ac_top_srcdir=$srcdir
28148 ac_abs_top_srcdir=$srcdir ;;
28149 *) # Relative name.
28150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28151 ac_top_srcdir=$ac_top_build_prefix$srcdir
28152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28153 esac
28154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28157 case $ac_mode in
28160 # CONFIG_FILE
28163 case $INSTALL in
28164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28165 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28166 esac
28167 ac_MKDIR_P=$MKDIR_P
28168 case $MKDIR_P in
28169 [\\/$]* | ?:[\\/]* ) ;;
28170 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28171 esac
28172 _ACEOF
28174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28175 # If the template does not know about datarootdir, expand it.
28176 # FIXME: This hack should be removed a few years after 2.60.
28177 ac_datarootdir_hack=; ac_datarootdir_seen=
28178 ac_sed_dataroot='
28179 /datarootdir/ {
28183 /@datadir@/p
28184 /@docdir@/p
28185 /@infodir@/p
28186 /@localedir@/p
28187 /@mandir@/p'
28188 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28189 *datarootdir*) ac_datarootdir_seen=yes;;
28190 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28192 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28193 _ACEOF
28194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28195 ac_datarootdir_hack='
28196 s&@datadir@&$datadir&g
28197 s&@docdir@&$docdir&g
28198 s&@infodir@&$infodir&g
28199 s&@localedir@&$localedir&g
28200 s&@mandir@&$mandir&g
28201 s&\\\${datarootdir}&$datarootdir&g' ;;
28202 esac
28203 _ACEOF
28205 # Neutralize VPATH when `$srcdir' = `.'.
28206 # Shell code in configure.ac might set extrasub.
28207 # FIXME: do we really want to maintain this feature?
28208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28209 ac_sed_extra="$ac_vpsub
28210 $extrasub
28211 _ACEOF
28212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28215 s|@configure_input@|$ac_sed_conf_input|;t t
28216 s&@top_builddir@&$ac_top_builddir_sub&;t t
28217 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28218 s&@srcdir@&$ac_srcdir&;t t
28219 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28220 s&@top_srcdir@&$ac_top_srcdir&;t t
28221 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28222 s&@builddir@&$ac_builddir&;t t
28223 s&@abs_builddir@&$ac_abs_builddir&;t t
28224 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28225 s&@INSTALL@&$ac_INSTALL&;t t
28226 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28227 $ac_datarootdir_hack
28229 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28230 || as_fn_error "could not create $ac_file" "$LINENO" 5
28232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28233 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28236 which seems to be undefined. Please make sure it is defined." >&5
28237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28238 which seems to be undefined. Please make sure it is defined." >&2;}
28240 rm -f "$tmp/stdin"
28241 case $ac_file in
28242 -) cat "$tmp/out" && rm -f "$tmp/out";;
28243 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28244 esac \
28245 || as_fn_error "could not create $ac_file" "$LINENO" 5
28249 # CONFIG_HEADER
28251 if test x"$ac_file" != x-; then
28253 $as_echo "/* $configure_input */" \
28254 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28255 } >"$tmp/config.h" \
28256 || as_fn_error "could not create $ac_file" "$LINENO" 5
28257 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28260 else
28261 rm -f "$ac_file"
28262 mv "$tmp/config.h" "$ac_file" \
28263 || as_fn_error "could not create $ac_file" "$LINENO" 5
28265 else
28266 $as_echo "/* $configure_input */" \
28267 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28268 || as_fn_error "could not create -" "$LINENO" 5
28270 # Compute "$ac_file"'s index in $config_headers.
28271 _am_arg="$ac_file"
28272 _am_stamp_count=1
28273 for _am_header in $config_headers :; do
28274 case $_am_header in
28275 $_am_arg | $_am_arg:* )
28276 break ;;
28278 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28279 esac
28280 done
28281 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28282 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28283 X"$_am_arg" : 'X\(//\)[^/]' \| \
28284 X"$_am_arg" : 'X\(//\)$' \| \
28285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28286 $as_echo X"$_am_arg" |
28287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28288 s//\1/
28291 /^X\(\/\/\)[^/].*/{
28292 s//\1/
28295 /^X\(\/\/\)$/{
28296 s//\1/
28299 /^X\(\/\).*/{
28300 s//\1/
28303 s/.*/./; q'`/stamp-h$_am_stamp_count
28306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28307 $as_echo "$as_me: executing $ac_file commands" >&6;}
28309 esac
28312 case $ac_file$ac_mode in
28313 "default-1":C)
28314 # Only add multilib support code if we just rebuilt the top-level
28315 # Makefile.
28316 case " $CONFIG_FILES " in
28317 *" Makefile "*)
28318 ac_file=Makefile . ${multi_basedir}/config-ml.in
28320 esac ;;
28321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28322 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28323 # are listed without --file. Let's play safe and only enable the eval
28324 # if we detect the quoting.
28325 case $CONFIG_FILES in
28326 *\'*) eval set x "$CONFIG_FILES" ;;
28327 *) set x $CONFIG_FILES ;;
28328 esac
28329 shift
28330 for mf
28332 # Strip MF so we end up with the name of the file.
28333 mf=`echo "$mf" | sed -e 's/:.*$//'`
28334 # Check whether this is an Automake generated Makefile or not.
28335 # We used to match only the files named `Makefile.in', but
28336 # some people rename them; so instead we look at the file content.
28337 # Grep'ing the first line is not enough: some people post-process
28338 # each Makefile.in and add a new line on top of each file to say so.
28339 # Grep'ing the whole file is not good either: AIX grep has a line
28340 # limit of 2048, but all sed's we know have understand at least 4000.
28341 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28342 dirpart=`$as_dirname -- "$mf" ||
28343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28344 X"$mf" : 'X\(//\)[^/]' \| \
28345 X"$mf" : 'X\(//\)$' \| \
28346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28347 $as_echo X"$mf" |
28348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28349 s//\1/
28352 /^X\(\/\/\)[^/].*/{
28353 s//\1/
28356 /^X\(\/\/\)$/{
28357 s//\1/
28360 /^X\(\/\).*/{
28361 s//\1/
28364 s/.*/./; q'`
28365 else
28366 continue
28368 # Extract the definition of DEPDIR, am__include, and am__quote
28369 # from the Makefile without running `make'.
28370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28371 test -z "$DEPDIR" && continue
28372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28373 test -z "am__include" && continue
28374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28375 # When using ansi2knr, U may be empty or an underscore; expand it
28376 U=`sed -n 's/^U = //p' < "$mf"`
28377 # Find all dependency output files, they are included files with
28378 # $(DEPDIR) in their names. We invoke sed twice because it is the
28379 # simplest approach to changing $(DEPDIR) to its actual value in the
28380 # expansion.
28381 for file in `sed -n "
28382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28384 # Make sure the directory exists.
28385 test -f "$dirpart/$file" && continue
28386 fdir=`$as_dirname -- "$file" ||
28387 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28388 X"$file" : 'X\(//\)[^/]' \| \
28389 X"$file" : 'X\(//\)$' \| \
28390 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28391 $as_echo X"$file" |
28392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28393 s//\1/
28396 /^X\(\/\/\)[^/].*/{
28397 s//\1/
28400 /^X\(\/\/\)$/{
28401 s//\1/
28404 /^X\(\/\).*/{
28405 s//\1/
28408 s/.*/./; q'`
28409 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28410 # echo "creating $dirpart/$file"
28411 echo '# dummy' > "$dirpart/$file"
28412 done
28413 done
28416 "libtool":C)
28418 # See if we are running on zsh, and set the options which allow our
28419 # commands through without removal of \ escapes.
28420 if test -n "${ZSH_VERSION+set}" ; then
28421 setopt NO_GLOB_SUBST
28424 cfgfile="${ofile}T"
28425 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28426 $RM "$cfgfile"
28428 cat <<_LT_EOF >> "$cfgfile"
28429 #! $SHELL
28431 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28432 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28434 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28436 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28437 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28438 # Written by Gordon Matzigkeit, 1996
28440 # This file is part of GNU Libtool.
28442 # GNU Libtool is free software; you can redistribute it and/or
28443 # modify it under the terms of the GNU General Public License as
28444 # published by the Free Software Foundation; either version 2 of
28445 # the License, or (at your option) any later version.
28447 # As a special exception to the GNU General Public License,
28448 # if you distribute this file as part of a program or library that
28449 # is built using GNU Libtool, you may include this file under the
28450 # same distribution terms that you use for the rest of that program.
28452 # GNU Libtool is distributed in the hope that it will be useful,
28453 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28454 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28455 # GNU General Public License for more details.
28457 # You should have received a copy of the GNU General Public License
28458 # along with GNU Libtool; see the file COPYING. If not, a copy
28459 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28460 # obtained by writing to the Free Software Foundation, Inc.,
28461 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28464 # The names of the tagged configurations supported by this script.
28465 available_tags="FC "
28467 # ### BEGIN LIBTOOL CONFIG
28469 # A sed program that does not truncate output.
28470 SED=$lt_SED
28472 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28473 Xsed="\$SED -e 1s/^X//"
28475 # A grep program that handles long lines.
28476 GREP=$lt_GREP
28478 # An ERE matcher.
28479 EGREP=$lt_EGREP
28481 # A literal string matcher.
28482 FGREP=$lt_FGREP
28484 # Shell to use when invoking shell scripts.
28485 SHELL=$lt_SHELL
28487 # An echo program that protects backslashes.
28488 ECHO=$lt_ECHO
28490 # Which release of libtool.m4 was used?
28491 macro_version=$macro_version
28492 macro_revision=$macro_revision
28494 # Whether or not to build shared libraries.
28495 build_libtool_libs=$enable_shared
28497 # Whether or not to build static libraries.
28498 build_old_libs=$enable_static
28500 # What type of objects to build.
28501 pic_mode=$pic_mode
28503 # Whether or not to optimize for fast installation.
28504 fast_install=$enable_fast_install
28506 # The host system.
28507 host_alias=$host_alias
28508 host=$host
28509 host_os=$host_os
28511 # The build system.
28512 build_alias=$build_alias
28513 build=$build
28514 build_os=$build_os
28516 # A BSD- or MS-compatible name lister.
28517 NM=$lt_NM
28519 # Whether we need soft or hard links.
28520 LN_S=$lt_LN_S
28522 # What is the maximum length of a command?
28523 max_cmd_len=$max_cmd_len
28525 # Object file suffix (normally "o").
28526 objext=$ac_objext
28528 # Executable file suffix (normally "").
28529 exeext=$exeext
28531 # whether the shell understands "unset".
28532 lt_unset=$lt_unset
28534 # turn spaces into newlines.
28535 SP2NL=$lt_lt_SP2NL
28537 # turn newlines into spaces.
28538 NL2SP=$lt_lt_NL2SP
28540 # An object symbol dumper.
28541 OBJDUMP=$lt_OBJDUMP
28543 # Method to check whether dependent libraries are shared objects.
28544 deplibs_check_method=$lt_deplibs_check_method
28546 # Command to use when deplibs_check_method == "file_magic".
28547 file_magic_cmd=$lt_file_magic_cmd
28549 # The archiver.
28550 AR=$lt_AR
28551 AR_FLAGS=$lt_AR_FLAGS
28553 # A symbol stripping program.
28554 STRIP=$lt_STRIP
28556 # Commands used to install an old-style archive.
28557 RANLIB=$lt_RANLIB
28558 old_postinstall_cmds=$lt_old_postinstall_cmds
28559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28561 # Whether to use a lock for old archive extraction.
28562 lock_old_archive_extraction=$lock_old_archive_extraction
28564 # A C compiler.
28565 LTCC=$lt_CC
28567 # LTCC compiler flags.
28568 LTCFLAGS=$lt_CFLAGS
28570 # Take the output of nm and produce a listing of raw symbols and C names.
28571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28573 # Transform the output of nm in a proper C declaration.
28574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28576 # Transform the output of nm in a C name address pair.
28577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28579 # Transform the output of nm in a C name address pair when lib prefix is needed.
28580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28582 # The name of the directory that contains temporary libtool files.
28583 objdir=$objdir
28585 # Used to examine libraries when file_magic_cmd begins with "file".
28586 MAGIC_CMD=$MAGIC_CMD
28588 # Must we lock files when doing compilation?
28589 need_locks=$lt_need_locks
28591 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28592 DSYMUTIL=$lt_DSYMUTIL
28594 # Tool to change global to local symbols on Mac OS X.
28595 NMEDIT=$lt_NMEDIT
28597 # Tool to manipulate fat objects and archives on Mac OS X.
28598 LIPO=$lt_LIPO
28600 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28601 OTOOL=$lt_OTOOL
28603 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28604 OTOOL64=$lt_OTOOL64
28606 # Old archive suffix (normally "a").
28607 libext=$libext
28609 # Shared library suffix (normally ".so").
28610 shrext_cmds=$lt_shrext_cmds
28612 # The commands to extract the exported symbol list from a shared archive.
28613 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28615 # Variables whose values should be saved in libtool wrapper scripts and
28616 # restored at link time.
28617 variables_saved_for_relink=$lt_variables_saved_for_relink
28619 # Do we need the "lib" prefix for modules?
28620 need_lib_prefix=$need_lib_prefix
28622 # Do we need a version for libraries?
28623 need_version=$need_version
28625 # Library versioning type.
28626 version_type=$version_type
28628 # Shared library runtime path variable.
28629 runpath_var=$runpath_var
28631 # Shared library path variable.
28632 shlibpath_var=$shlibpath_var
28634 # Is shlibpath searched before the hard-coded library search path?
28635 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28637 # Format of library name prefix.
28638 libname_spec=$lt_libname_spec
28640 # List of archive names. First name is the real one, the rest are links.
28641 # The last name is the one that the linker finds with -lNAME
28642 library_names_spec=$lt_library_names_spec
28644 # The coded name of the library, if different from the real name.
28645 soname_spec=$lt_soname_spec
28647 # Permission mode override for installation of shared libraries.
28648 install_override_mode=$lt_install_override_mode
28650 # Command to use after installation of a shared archive.
28651 postinstall_cmds=$lt_postinstall_cmds
28653 # Command to use after uninstallation of a shared archive.
28654 postuninstall_cmds=$lt_postuninstall_cmds
28656 # Commands used to finish a libtool library installation in a directory.
28657 finish_cmds=$lt_finish_cmds
28659 # As "finish_cmds", except a single script fragment to be evaled but
28660 # not shown.
28661 finish_eval=$lt_finish_eval
28663 # Whether we should hardcode library paths into libraries.
28664 hardcode_into_libs=$hardcode_into_libs
28666 # Compile-time system search path for libraries.
28667 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28669 # Run-time system search path for libraries.
28670 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28672 # Whether dlopen is supported.
28673 dlopen_support=$enable_dlopen
28675 # Whether dlopen of programs is supported.
28676 dlopen_self=$enable_dlopen_self
28678 # Whether dlopen of statically linked programs is supported.
28679 dlopen_self_static=$enable_dlopen_self_static
28681 # Commands to strip libraries.
28682 old_striplib=$lt_old_striplib
28683 striplib=$lt_striplib
28686 # The linker used to build libraries.
28687 LD=$lt_LD
28689 # How to create reloadable object files.
28690 reload_flag=$lt_reload_flag
28691 reload_cmds=$lt_reload_cmds
28693 # Commands used to build an old-style archive.
28694 old_archive_cmds=$lt_old_archive_cmds
28696 # A language specific compiler.
28697 CC=$lt_compiler
28699 # Is the compiler the GNU compiler?
28700 with_gcc=$GCC
28702 # Compiler flag to turn off builtin functions.
28703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28705 # How to pass a linker flag through the compiler.
28706 wl=$lt_lt_prog_compiler_wl
28708 # Additional compiler flags for building library objects.
28709 pic_flag=$lt_lt_prog_compiler_pic
28711 # Compiler flag to prevent dynamic linking.
28712 link_static_flag=$lt_lt_prog_compiler_static
28714 # Does compiler simultaneously support -c and -o options?
28715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28717 # Whether or not to add -lc for building shared libraries.
28718 build_libtool_need_lc=$archive_cmds_need_lc
28720 # Whether or not to disallow shared libs when runtime libs are static.
28721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28723 # Compiler flag to allow reflexive dlopens.
28724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28726 # Compiler flag to generate shared objects directly from archives.
28727 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28729 # Whether the compiler copes with passing no objects directly.
28730 compiler_needs_object=$lt_compiler_needs_object
28732 # Create an old-style archive from a shared archive.
28733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28735 # Create a temporary old-style archive to link instead of a shared archive.
28736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28738 # Commands used to build a shared archive.
28739 archive_cmds=$lt_archive_cmds
28740 archive_expsym_cmds=$lt_archive_expsym_cmds
28742 # Commands used to build a loadable module if different from building
28743 # a shared archive.
28744 module_cmds=$lt_module_cmds
28745 module_expsym_cmds=$lt_module_expsym_cmds
28747 # Whether we are building with GNU ld or not.
28748 with_gnu_ld=$lt_with_gnu_ld
28750 # Flag that allows shared libraries with undefined symbols to be built.
28751 allow_undefined_flag=$lt_allow_undefined_flag
28753 # Flag that enforces no undefined symbols.
28754 no_undefined_flag=$lt_no_undefined_flag
28756 # Flag to hardcode \$libdir into a binary during linking.
28757 # This must work even if \$libdir does not exist
28758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28760 # If ld is used when linking, flag to hardcode \$libdir into a binary
28761 # during linking. This must work even if \$libdir does not exist.
28762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28764 # Whether we need a single "-rpath" flag with a separated argument.
28765 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28767 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28768 # DIR into the resulting binary.
28769 hardcode_direct=$hardcode_direct
28771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28772 # DIR into the resulting binary and the resulting library dependency is
28773 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28774 # library is relocated.
28775 hardcode_direct_absolute=$hardcode_direct_absolute
28777 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28778 # into the resulting binary.
28779 hardcode_minus_L=$hardcode_minus_L
28781 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28782 # into the resulting binary.
28783 hardcode_shlibpath_var=$hardcode_shlibpath_var
28785 # Set to "yes" if building a shared library automatically hardcodes DIR
28786 # into the library and all subsequent libraries and executables linked
28787 # against it.
28788 hardcode_automatic=$hardcode_automatic
28790 # Set to yes if linker adds runtime paths of dependent libraries
28791 # to runtime path list.
28792 inherit_rpath=$inherit_rpath
28794 # Whether libtool must link a program against all its dependency libraries.
28795 link_all_deplibs=$link_all_deplibs
28797 # Fix the shell variable \$srcfile for the compiler.
28798 fix_srcfile_path=$lt_fix_srcfile_path
28800 # Set to "yes" if exported symbols are required.
28801 always_export_symbols=$always_export_symbols
28803 # The commands to list exported symbols.
28804 export_symbols_cmds=$lt_export_symbols_cmds
28806 # Symbols that should not be listed in the preloaded symbols.
28807 exclude_expsyms=$lt_exclude_expsyms
28809 # Symbols that must always be exported.
28810 include_expsyms=$lt_include_expsyms
28812 # Commands necessary for linking programs (against libraries) with templates.
28813 prelink_cmds=$lt_prelink_cmds
28815 # Specify filename containing input files.
28816 file_list_spec=$lt_file_list_spec
28818 # How to hardcode a shared library path into an executable.
28819 hardcode_action=$hardcode_action
28821 # The directories searched by this compiler when creating a shared library.
28822 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28824 # Dependencies to place before and after the objects being linked to
28825 # create a shared library.
28826 predep_objects=$lt_predep_objects
28827 postdep_objects=$lt_postdep_objects
28828 predeps=$lt_predeps
28829 postdeps=$lt_postdeps
28831 # The library search path used internally by the compiler when linking
28832 # a shared library.
28833 compiler_lib_search_path=$lt_compiler_lib_search_path
28835 # ### END LIBTOOL CONFIG
28837 _LT_EOF
28839 case $host_os in
28840 aix3*)
28841 cat <<\_LT_EOF >> "$cfgfile"
28842 # AIX sometimes has problems with the GCC collect2 program. For some
28843 # reason, if we set the COLLECT_NAMES environment variable, the problems
28844 # vanish in a puff of smoke.
28845 if test "X${COLLECT_NAMES+set}" != Xset; then
28846 COLLECT_NAMES=
28847 export COLLECT_NAMES
28849 _LT_EOF
28851 esac
28854 ltmain="$ac_aux_dir/ltmain.sh"
28857 # We use sed instead of cat because bash on DJGPP gets confused if
28858 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28859 # text mode, it properly converts lines to CR/LF. This bash problem
28860 # is reportedly fixed, but why not run on old versions too?
28861 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28862 || (rm -f "$cfgfile"; exit 1)
28864 case $xsi_shell in
28865 yes)
28866 cat << \_LT_EOF >> "$cfgfile"
28868 # func_dirname file append nondir_replacement
28869 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28870 # otherwise set result to NONDIR_REPLACEMENT.
28871 func_dirname ()
28873 case ${1} in
28874 */*) func_dirname_result="${1%/*}${2}" ;;
28875 * ) func_dirname_result="${3}" ;;
28876 esac
28879 # func_basename file
28880 func_basename ()
28882 func_basename_result="${1##*/}"
28885 # func_dirname_and_basename file append nondir_replacement
28886 # perform func_basename and func_dirname in a single function
28887 # call:
28888 # dirname: Compute the dirname of FILE. If nonempty,
28889 # add APPEND to the result, otherwise set result
28890 # to NONDIR_REPLACEMENT.
28891 # value returned in "$func_dirname_result"
28892 # basename: Compute filename of FILE.
28893 # value retuned in "$func_basename_result"
28894 # Implementation must be kept synchronized with func_dirname
28895 # and func_basename. For efficiency, we do not delegate to
28896 # those functions but instead duplicate the functionality here.
28897 func_dirname_and_basename ()
28899 case ${1} in
28900 */*) func_dirname_result="${1%/*}${2}" ;;
28901 * ) func_dirname_result="${3}" ;;
28902 esac
28903 func_basename_result="${1##*/}"
28906 # func_stripname prefix suffix name
28907 # strip PREFIX and SUFFIX off of NAME.
28908 # PREFIX and SUFFIX must not contain globbing or regex special
28909 # characters, hashes, percent signs, but SUFFIX may contain a leading
28910 # dot (in which case that matches only a dot).
28911 func_stripname ()
28913 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28914 # positional parameters, so assign one to ordinary parameter first.
28915 func_stripname_result=${3}
28916 func_stripname_result=${func_stripname_result#"${1}"}
28917 func_stripname_result=${func_stripname_result%"${2}"}
28920 # func_opt_split
28921 func_opt_split ()
28923 func_opt_split_opt=${1%%=*}
28924 func_opt_split_arg=${1#*=}
28927 # func_lo2o object
28928 func_lo2o ()
28930 case ${1} in
28931 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28932 *) func_lo2o_result=${1} ;;
28933 esac
28936 # func_xform libobj-or-source
28937 func_xform ()
28939 func_xform_result=${1%.*}.lo
28942 # func_arith arithmetic-term...
28943 func_arith ()
28945 func_arith_result=$(( $* ))
28948 # func_len string
28949 # STRING may not start with a hyphen.
28950 func_len ()
28952 func_len_result=${#1}
28955 _LT_EOF
28957 *) # Bourne compatible functions.
28958 cat << \_LT_EOF >> "$cfgfile"
28960 # func_dirname file append nondir_replacement
28961 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28962 # otherwise set result to NONDIR_REPLACEMENT.
28963 func_dirname ()
28965 # Extract subdirectory from the argument.
28966 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28967 if test "X$func_dirname_result" = "X${1}"; then
28968 func_dirname_result="${3}"
28969 else
28970 func_dirname_result="$func_dirname_result${2}"
28974 # func_basename file
28975 func_basename ()
28977 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28981 # func_stripname prefix suffix name
28982 # strip PREFIX and SUFFIX off of NAME.
28983 # PREFIX and SUFFIX must not contain globbing or regex special
28984 # characters, hashes, percent signs, but SUFFIX may contain a leading
28985 # dot (in which case that matches only a dot).
28986 # func_strip_suffix prefix name
28987 func_stripname ()
28989 case ${2} in
28990 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28991 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28992 esac
28995 # sed scripts:
28996 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28997 my_sed_long_arg='1s/^-[^=]*=//'
28999 # func_opt_split
29000 func_opt_split ()
29002 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29003 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29006 # func_lo2o object
29007 func_lo2o ()
29009 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29012 # func_xform libobj-or-source
29013 func_xform ()
29015 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29018 # func_arith arithmetic-term...
29019 func_arith ()
29021 func_arith_result=`expr "$@"`
29024 # func_len string
29025 # STRING may not start with a hyphen.
29026 func_len ()
29028 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29031 _LT_EOF
29032 esac
29034 case $lt_shell_append in
29035 yes)
29036 cat << \_LT_EOF >> "$cfgfile"
29038 # func_append var value
29039 # Append VALUE to the end of shell variable VAR.
29040 func_append ()
29042 eval "$1+=\$2"
29044 _LT_EOF
29047 cat << \_LT_EOF >> "$cfgfile"
29049 # func_append var value
29050 # Append VALUE to the end of shell variable VAR.
29051 func_append ()
29053 eval "$1=\$$1\$2"
29056 _LT_EOF
29058 esac
29061 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29062 || (rm -f "$cfgfile"; exit 1)
29064 mv -f "$cfgfile" "$ofile" ||
29065 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29066 chmod +x "$ofile"
29069 cat <<_LT_EOF >> "$ofile"
29071 # ### BEGIN LIBTOOL TAG CONFIG: FC
29073 # The linker used to build libraries.
29074 LD=$lt_LD_FC
29076 # How to create reloadable object files.
29077 reload_flag=$lt_reload_flag_FC
29078 reload_cmds=$lt_reload_cmds_FC
29080 # Commands used to build an old-style archive.
29081 old_archive_cmds=$lt_old_archive_cmds_FC
29083 # A language specific compiler.
29084 CC=$lt_compiler_FC
29086 # Is the compiler the GNU compiler?
29087 with_gcc=$GCC_FC
29089 # Compiler flag to turn off builtin functions.
29090 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29092 # How to pass a linker flag through the compiler.
29093 wl=$lt_lt_prog_compiler_wl_FC
29095 # Additional compiler flags for building library objects.
29096 pic_flag=$lt_lt_prog_compiler_pic_FC
29098 # Compiler flag to prevent dynamic linking.
29099 link_static_flag=$lt_lt_prog_compiler_static_FC
29101 # Does compiler simultaneously support -c and -o options?
29102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29104 # Whether or not to add -lc for building shared libraries.
29105 build_libtool_need_lc=$archive_cmds_need_lc_FC
29107 # Whether or not to disallow shared libs when runtime libs are static.
29108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29110 # Compiler flag to allow reflexive dlopens.
29111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29113 # Compiler flag to generate shared objects directly from archives.
29114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29116 # Whether the compiler copes with passing no objects directly.
29117 compiler_needs_object=$lt_compiler_needs_object_FC
29119 # Create an old-style archive from a shared archive.
29120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29122 # Create a temporary old-style archive to link instead of a shared archive.
29123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29125 # Commands used to build a shared archive.
29126 archive_cmds=$lt_archive_cmds_FC
29127 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29129 # Commands used to build a loadable module if different from building
29130 # a shared archive.
29131 module_cmds=$lt_module_cmds_FC
29132 module_expsym_cmds=$lt_module_expsym_cmds_FC
29134 # Whether we are building with GNU ld or not.
29135 with_gnu_ld=$lt_with_gnu_ld_FC
29137 # Flag that allows shared libraries with undefined symbols to be built.
29138 allow_undefined_flag=$lt_allow_undefined_flag_FC
29140 # Flag that enforces no undefined symbols.
29141 no_undefined_flag=$lt_no_undefined_flag_FC
29143 # Flag to hardcode \$libdir into a binary during linking.
29144 # This must work even if \$libdir does not exist
29145 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29147 # If ld is used when linking, flag to hardcode \$libdir into a binary
29148 # during linking. This must work even if \$libdir does not exist.
29149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29151 # Whether we need a single "-rpath" flag with a separated argument.
29152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29155 # DIR into the resulting binary.
29156 hardcode_direct=$hardcode_direct_FC
29158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29159 # DIR into the resulting binary and the resulting library dependency is
29160 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29161 # library is relocated.
29162 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29164 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29165 # into the resulting binary.
29166 hardcode_minus_L=$hardcode_minus_L_FC
29168 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29169 # into the resulting binary.
29170 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29172 # Set to "yes" if building a shared library automatically hardcodes DIR
29173 # into the library and all subsequent libraries and executables linked
29174 # against it.
29175 hardcode_automatic=$hardcode_automatic_FC
29177 # Set to yes if linker adds runtime paths of dependent libraries
29178 # to runtime path list.
29179 inherit_rpath=$inherit_rpath_FC
29181 # Whether libtool must link a program against all its dependency libraries.
29182 link_all_deplibs=$link_all_deplibs_FC
29184 # Fix the shell variable \$srcfile for the compiler.
29185 fix_srcfile_path=$lt_fix_srcfile_path_FC
29187 # Set to "yes" if exported symbols are required.
29188 always_export_symbols=$always_export_symbols_FC
29190 # The commands to list exported symbols.
29191 export_symbols_cmds=$lt_export_symbols_cmds_FC
29193 # Symbols that should not be listed in the preloaded symbols.
29194 exclude_expsyms=$lt_exclude_expsyms_FC
29196 # Symbols that must always be exported.
29197 include_expsyms=$lt_include_expsyms_FC
29199 # Commands necessary for linking programs (against libraries) with templates.
29200 prelink_cmds=$lt_prelink_cmds_FC
29202 # Specify filename containing input files.
29203 file_list_spec=$lt_file_list_spec_FC
29205 # How to hardcode a shared library path into an executable.
29206 hardcode_action=$hardcode_action_FC
29208 # The directories searched by this compiler when creating a shared library.
29209 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29211 # Dependencies to place before and after the objects being linked to
29212 # create a shared library.
29213 predep_objects=$lt_predep_objects_FC
29214 postdep_objects=$lt_postdep_objects_FC
29215 predeps=$lt_predeps_FC
29216 postdeps=$lt_postdeps_FC
29218 # The library search path used internally by the compiler when linking
29219 # a shared library.
29220 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29222 # ### END LIBTOOL TAG CONFIG: FC
29223 _LT_EOF
29226 "gstdint.h":C)
29227 if test "$GCC" = yes; then
29228 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29229 else
29230 echo "/* generated for $CC */" > tmp-stdint.h
29233 sed 's/^ *//' >> tmp-stdint.h <<EOF
29235 #ifndef GCC_GENERATED_STDINT_H
29236 #define GCC_GENERATED_STDINT_H 1
29238 #include <sys/types.h>
29241 if test "$acx_cv_header_stdint" != stdint.h; then
29242 echo "#include <stddef.h>" >> tmp-stdint.h
29244 if test "$acx_cv_header_stdint" != stddef.h; then
29245 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29248 sed 's/^ *//' >> tmp-stdint.h <<EOF
29249 /* glibc uses these symbols as guards to prevent redefinitions. */
29250 #ifdef __int8_t_defined
29251 #define _INT8_T
29252 #define _INT16_T
29253 #define _INT32_T
29254 #endif
29255 #ifdef __uint32_t_defined
29256 #define _UINT32_T
29257 #endif
29261 # ----------------- done header, emit basic int types -------------
29262 if test "$acx_cv_header_stdint" = stddef.h; then
29263 sed 's/^ *//' >> tmp-stdint.h <<EOF
29265 #ifndef _UINT8_T
29266 #define _UINT8_T
29267 #ifndef __uint8_t_defined
29268 #define __uint8_t_defined
29269 #ifndef uint8_t
29270 typedef unsigned $acx_cv_type_int8_t uint8_t;
29271 #endif
29272 #endif
29273 #endif
29275 #ifndef _UINT16_T
29276 #define _UINT16_T
29277 #ifndef __uint16_t_defined
29278 #define __uint16_t_defined
29279 #ifndef uint16_t
29280 typedef unsigned $acx_cv_type_int16_t uint16_t;
29281 #endif
29282 #endif
29283 #endif
29285 #ifndef _UINT32_T
29286 #define _UINT32_T
29287 #ifndef __uint32_t_defined
29288 #define __uint32_t_defined
29289 #ifndef uint32_t
29290 typedef unsigned $acx_cv_type_int32_t uint32_t;
29291 #endif
29292 #endif
29293 #endif
29295 #ifndef _INT8_T
29296 #define _INT8_T
29297 #ifndef __int8_t_defined
29298 #define __int8_t_defined
29299 #ifndef int8_t
29300 typedef $acx_cv_type_int8_t int8_t;
29301 #endif
29302 #endif
29303 #endif
29305 #ifndef _INT16_T
29306 #define _INT16_T
29307 #ifndef __int16_t_defined
29308 #define __int16_t_defined
29309 #ifndef int16_t
29310 typedef $acx_cv_type_int16_t int16_t;
29311 #endif
29312 #endif
29313 #endif
29315 #ifndef _INT32_T
29316 #define _INT32_T
29317 #ifndef __int32_t_defined
29318 #define __int32_t_defined
29319 #ifndef int32_t
29320 typedef $acx_cv_type_int32_t int32_t;
29321 #endif
29322 #endif
29323 #endif
29325 elif test "$ac_cv_type_u_int32_t" = yes; then
29326 sed 's/^ *//' >> tmp-stdint.h <<EOF
29328 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29329 #ifndef _INT8_T
29330 #define _INT8_T
29331 #endif
29332 #ifndef _INT16_T
29333 #define _INT16_T
29334 #endif
29335 #ifndef _INT32_T
29336 #define _INT32_T
29337 #endif
29339 #ifndef _UINT8_T
29340 #define _UINT8_T
29341 #ifndef __uint8_t_defined
29342 #define __uint8_t_defined
29343 #ifndef uint8_t
29344 typedef u_int8_t uint8_t;
29345 #endif
29346 #endif
29347 #endif
29349 #ifndef _UINT16_T
29350 #define _UINT16_T
29351 #ifndef __uint16_t_defined
29352 #define __uint16_t_defined
29353 #ifndef uint16_t
29354 typedef u_int16_t uint16_t;
29355 #endif
29356 #endif
29357 #endif
29359 #ifndef _UINT32_T
29360 #define _UINT32_T
29361 #ifndef __uint32_t_defined
29362 #define __uint32_t_defined
29363 #ifndef uint32_t
29364 typedef u_int32_t uint32_t;
29365 #endif
29366 #endif
29367 #endif
29369 else
29370 sed 's/^ *//' >> tmp-stdint.h <<EOF
29372 /* Some systems have guard macros to prevent redefinitions, define them. */
29373 #ifndef _INT8_T
29374 #define _INT8_T
29375 #endif
29376 #ifndef _INT16_T
29377 #define _INT16_T
29378 #endif
29379 #ifndef _INT32_T
29380 #define _INT32_T
29381 #endif
29382 #ifndef _UINT8_T
29383 #define _UINT8_T
29384 #endif
29385 #ifndef _UINT16_T
29386 #define _UINT16_T
29387 #endif
29388 #ifndef _UINT32_T
29389 #define _UINT32_T
29390 #endif
29394 # ------------- done basic int types, emit int64_t types ------------
29395 if test "$ac_cv_type_uint64_t" = yes; then
29396 sed 's/^ *//' >> tmp-stdint.h <<EOF
29398 /* system headers have good uint64_t and int64_t */
29399 #ifndef _INT64_T
29400 #define _INT64_T
29401 #endif
29402 #ifndef _UINT64_T
29403 #define _UINT64_T
29404 #endif
29406 elif test "$ac_cv_type_u_int64_t" = yes; then
29407 sed 's/^ *//' >> tmp-stdint.h <<EOF
29409 /* system headers have an u_int64_t (and int64_t) */
29410 #ifndef _INT64_T
29411 #define _INT64_T
29412 #endif
29413 #ifndef _UINT64_T
29414 #define _UINT64_T
29415 #ifndef __uint64_t_defined
29416 #define __uint64_t_defined
29417 #ifndef uint64_t
29418 typedef u_int64_t uint64_t;
29419 #endif
29420 #endif
29421 #endif
29423 elif test -n "$acx_cv_type_int64_t"; then
29424 sed 's/^ *//' >> tmp-stdint.h <<EOF
29426 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29427 #ifndef _INT64_T
29428 #define _INT64_T
29429 #ifndef int64_t
29430 typedef $acx_cv_type_int64_t int64_t;
29431 #endif
29432 #endif
29433 #ifndef _UINT64_T
29434 #define _UINT64_T
29435 #ifndef __uint64_t_defined
29436 #define __uint64_t_defined
29437 #ifndef uint64_t
29438 typedef unsigned $acx_cv_type_int64_t uint64_t;
29439 #endif
29440 #endif
29441 #endif
29443 else
29444 sed 's/^ *//' >> tmp-stdint.h <<EOF
29446 /* some common heuristics for int64_t, using compiler-specific tests */
29447 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29448 #ifndef _INT64_T
29449 #define _INT64_T
29450 #ifndef __int64_t_defined
29451 #ifndef int64_t
29452 typedef long long int64_t;
29453 #endif
29454 #endif
29455 #endif
29456 #ifndef _UINT64_T
29457 #define _UINT64_T
29458 #ifndef uint64_t
29459 typedef unsigned long long uint64_t;
29460 #endif
29461 #endif
29463 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29464 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29465 does not implement __extension__. But that compiler doesn't define
29466 __GNUC_MINOR__. */
29467 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29468 # define __extension__
29469 # endif
29471 # ifndef _INT64_T
29472 # define _INT64_T
29473 # ifndef int64_t
29474 __extension__ typedef long long int64_t;
29475 # endif
29476 # endif
29477 # ifndef _UINT64_T
29478 # define _UINT64_T
29479 # ifndef uint64_t
29480 __extension__ typedef unsigned long long uint64_t;
29481 # endif
29482 # endif
29484 #elif !defined __STRICT_ANSI__
29485 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29487 # ifndef _INT64_T
29488 # define _INT64_T
29489 # ifndef int64_t
29490 typedef __int64 int64_t;
29491 # endif
29492 # endif
29493 # ifndef _UINT64_T
29494 # define _UINT64_T
29495 # ifndef uint64_t
29496 typedef unsigned __int64 uint64_t;
29497 # endif
29498 # endif
29499 # endif /* compiler */
29501 #endif /* ANSI version */
29505 # ------------- done int64_t types, emit intptr types ------------
29506 if test "$ac_cv_type_uintptr_t" != yes; then
29507 sed 's/^ *//' >> tmp-stdint.h <<EOF
29509 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29510 #ifndef __uintptr_t_defined
29511 #ifndef uintptr_t
29512 typedef u$acx_cv_type_intptr_t uintptr_t;
29513 #endif
29514 #endif
29515 #ifndef __intptr_t_defined
29516 #ifndef intptr_t
29517 typedef $acx_cv_type_intptr_t intptr_t;
29518 #endif
29519 #endif
29523 # ------------- done intptr types, emit int_least types ------------
29524 if test "$ac_cv_type_int_least32_t" != yes; then
29525 sed 's/^ *//' >> tmp-stdint.h <<EOF
29527 /* Define int_least types */
29528 typedef int8_t int_least8_t;
29529 typedef int16_t int_least16_t;
29530 typedef int32_t int_least32_t;
29531 #ifdef _INT64_T
29532 typedef int64_t int_least64_t;
29533 #endif
29535 typedef uint8_t uint_least8_t;
29536 typedef uint16_t uint_least16_t;
29537 typedef uint32_t uint_least32_t;
29538 #ifdef _UINT64_T
29539 typedef uint64_t uint_least64_t;
29540 #endif
29544 # ------------- done intptr types, emit int_fast types ------------
29545 if test "$ac_cv_type_int_fast32_t" != yes; then
29546 sed 's/^ *//' >> tmp-stdint.h <<EOF
29548 /* Define int_fast types. short is often slow */
29549 typedef int8_t int_fast8_t;
29550 typedef int int_fast16_t;
29551 typedef int32_t int_fast32_t;
29552 #ifdef _INT64_T
29553 typedef int64_t int_fast64_t;
29554 #endif
29556 typedef uint8_t uint_fast8_t;
29557 typedef unsigned int uint_fast16_t;
29558 typedef uint32_t uint_fast32_t;
29559 #ifdef _UINT64_T
29560 typedef uint64_t uint_fast64_t;
29561 #endif
29565 if test "$ac_cv_type_uintmax_t" != yes; then
29566 sed 's/^ *//' >> tmp-stdint.h <<EOF
29568 /* Define intmax based on what we found */
29569 #ifndef intmax_t
29570 #ifdef _INT64_T
29571 typedef int64_t intmax_t;
29572 #else
29573 typedef long intmax_t;
29574 #endif
29575 #endif
29576 #ifndef uintmax_t
29577 #ifdef _UINT64_T
29578 typedef uint64_t uintmax_t;
29579 #else
29580 typedef unsigned long uintmax_t;
29581 #endif
29582 #endif
29586 sed 's/^ *//' >> tmp-stdint.h <<EOF
29588 #endif /* GCC_GENERATED_STDINT_H */
29591 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29592 rm -f tmp-stdint.h
29593 else
29594 mv -f tmp-stdint.h gstdint.h
29599 esac
29600 done # for ac_tag
29603 as_fn_exit 0
29604 _ACEOF
29605 ac_clean_files=$ac_clean_files_save
29607 test $ac_write_fail = 0 ||
29608 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29611 # configure is writing to config.log, and then calls config.status.
29612 # config.status does its own redirection, appending to config.log.
29613 # Unfortunately, on DOS this fails, as config.log is still kept open
29614 # by configure, so config.status won't be able to write to it; its
29615 # output is simply discarded. So we exec the FD to /dev/null,
29616 # effectively closing config.log, so it can be properly (re)opened and
29617 # appended to by config.status. When coming back to configure, we
29618 # need to make the FD available again.
29619 if test "$no_create" != yes; then
29620 ac_cs_success=:
29621 ac_config_status_args=
29622 test "$silent" = yes &&
29623 ac_config_status_args="$ac_config_status_args --quiet"
29624 exec 5>/dev/null
29625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29626 exec 5>>config.log
29627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29628 # would make configure fail if this is the last instruction.
29629 $ac_cs_success || as_fn_exit $?
29631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}