Simplify creation of target_clones (PR lto/66295)
[official-gcc.git] / libgfortran / configure
blob81238fcb79c6aed7aa24ecb4d9b3c0d9751176e9
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 IEEE_FLAGS
610 IEEE_SUPPORT
611 IEEE_SUPPORT_FALSE
612 IEEE_SUPPORT_TRUE
613 FPU_HOST_HEADER
614 LIBGFOR_BUILD_QUAD_FALSE
615 LIBGFOR_BUILD_QUAD_TRUE
616 LIBQUADINCLUDE
617 LIBQUADLIB_DEP
618 LIBQUADLIB
619 LIBQUADSPEC
620 extra_ldflags_libgfortran
621 ac_ct_FC
622 FCFLAGS
624 enable_static
625 enable_shared
626 lt_host_flags
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 OBJDUMP
633 LN_S
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LIBTOOL
638 RANLIB
641 HAVE_HWCAP_FALSE
642 HAVE_HWCAP_TRUE
643 HWCAP_LDFLAGS
645 FGREP
647 SECTION_FLAGS
648 LIBGFOR_MINIMAL_FALSE
649 LIBGFOR_MINIMAL_TRUE
650 LIBGFOR_USE_SYMVER_SUN_FALSE
651 LIBGFOR_USE_SYMVER_SUN_TRUE
652 LIBGFOR_USE_SYMVER_GNU_FALSE
653 LIBGFOR_USE_SYMVER_GNU_TRUE
654 LIBGFOR_USE_SYMVER_FALSE
655 LIBGFOR_USE_SYMVER_TRUE
656 AM_CFLAGS
657 AM_FCFLAGS
658 toolexeclibdir
659 toolexecdir
660 EGREP
661 GREP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
680 multi_basedir
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 am__untar
685 am__tar
686 AMTAR
687 am__leading_dot
688 SET_MAKE
690 mkdir_p
691 MKDIR_P
692 INSTALL_STRIP_PROGRAM
693 STRIP
694 install_sh
695 MAKEINFO
696 AUTOHEADER
697 AUTOMAKE
698 AUTOCONF
699 ACLOCAL
700 VERSION
701 PACKAGE
702 CYGPATH_W
703 am__isrc
704 INSTALL_DATA
705 INSTALL_SCRIPT
706 INSTALL_PROGRAM
707 target_noncanonical
708 target_os
709 target_vendor
710 target_cpu
711 target
712 host_os
713 host_vendor
714 host_cpu
715 host
716 onestep
717 onestep_FALSE
718 onestep_TRUE
719 target_subdir
720 host_subdir
721 build_subdir
722 build_libsubdir
723 build_os
724 build_vendor
725 build_cpu
726 build
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 with_build_libsubdir
769 enable_version_specific_runtime_libs
770 enable_intermodule
771 enable_maintainer_mode
772 enable_multilib
773 enable_dependency_tracking
774 enable_symvers
775 with_gnu_ld
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 enable_libtool_lock
781 enable_largefile
782 enable_libquadmath_support
783 with_gcc_major_version_only
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
795 FCFLAGS'
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
846 ac_prev=
847 ac_dashdash=
848 for ac_option
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
866 ac_dashdash=yes ;;
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
885 --config-cache | -C)
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information."
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 esac
1203 done
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error "missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1289 /^X\(\/\/\)$/{
1290 s//\1/
1293 /^X\(\/\).*/{
1294 s//\1/
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1302 else
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1392 cat <<\_ACEOF
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1409 esac
1410 cat <<\_ACEOF
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-version-specific-runtime-libs
1417 specify that runtime libraries should be installed
1418 in a compiler-specific directory
1419 --enable-intermodule build the library in one step
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422 --enable-multilib build many library versions (default)
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-symvers disable symbol versioning for libgfortran
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --disable-largefile omit support for large files
1432 --disable-libquadmath-support
1433 disable libquadmath support for Fortran
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-build-libsubdir=DIR Directory where to find libraries for build system
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gcc-major-version-only
1443 use only GCC major number in filesystem paths
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
1454 FC Fortran compiler command
1455 FCFLAGS Fortran compiler flags
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to the package provider.
1461 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1462 General help using GNU software: <http://www.gnu.org/gethelp/>.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 GNU Fortran Runtime Library configure 0.3
1526 generated by GNU Autoconf 2.64
1528 Copyright (C) 2009 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=1
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_cpp
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1618 # accordingly.
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 $as_echo_n "(cached) " >&6
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 else
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642 else
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658 else
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 eval "$3=\$ac_header_compiler"
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 } # ac_fn_c_check_header_mongrel
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=$ac_status
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1741 } # ac_fn_c_try_run
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 } # ac_fn_c_check_header_compile
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=1
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_c_try_link
1820 # ac_fn_c_check_func LINENO FUNC VAR
1821 # ----------------------------------
1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1823 ac_fn_c_check_func ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 if test x$gcc_no_link = xyes; then
1832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1851 #undef $2
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1868 main ()
1870 return $2 ();
1872 return 0;
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 } # ac_fn_c_check_func
1890 # ac_fn_fc_try_compile LINENO
1891 # ---------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_fc_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_fc_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_fc_try_compile
1928 # ac_fn_fc_try_link LINENO
1929 # ------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_fc_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_fc_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1972 } # ac_fn_fc_try_link
1974 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975 # -------------------------------------------
1976 # Tests whether TYPE exists after having included INCLUDES, setting cache
1977 # variable VAR accordingly.
1978 ac_fn_c_check_type ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 eval "$3=no"
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 if (sizeof ($2))
1994 return 0;
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 if (sizeof (($2)))
2007 return 0;
2009 return 0;
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2014 else
2015 eval "$3=yes"
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026 } # ac_fn_c_check_type
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=0 ac_mid=0
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 test_array [0] = 0
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid; break
2069 else
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2072 ac_lo= ac_hi=
2073 break
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) < 0)];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=-1 ac_mid=-1
2095 while :; do
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2100 main ()
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2103 test_array [0] = 0
2106 return 0;
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_lo=$ac_mid; break
2111 else
2112 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2113 if test $ac_mid -le $ac_hi; then
2114 ac_lo= ac_hi=
2115 break
2117 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 done
2121 else
2122 ac_lo= ac_hi=
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 # Binary search between lo and hi bounds.
2128 while test "x$ac_lo" != "x$ac_hi"; do
2129 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137 test_array [0] = 0
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_hi=$ac_mid
2145 else
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 done
2150 case $ac_lo in #((
2151 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152 '') ac_retval=1 ;;
2153 esac
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2158 static long int longval () { return $2; }
2159 static unsigned long int ulongval () { return $2; }
2160 #include <stdio.h>
2161 #include <stdlib.h>
2163 main ()
2166 FILE *f = fopen ("conftest.val", "w");
2167 if (! f)
2168 return 1;
2169 if (($2) < 0)
2171 long int i = longval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%ld", i);
2176 else
2178 unsigned long int i = ulongval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%lu", i);
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2188 return 0;
2190 _ACEOF
2191 if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193 else
2194 ac_retval=1
2196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2198 rm -f conftest.val
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 return $ac_retval
2204 } # ac_fn_c_compute_int
2206 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207 # ----------------------------------------------------
2208 # Tries to find if the field MEMBER exists in type AGGR, after including
2209 # INCLUDES, setting cache variable VAR accordingly.
2210 ac_fn_c_check_member ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214 $as_echo_n "checking for $2.$3... " >&6; }
2215 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static $2 ac_aggr;
2225 if (ac_aggr.$3)
2226 return 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$4=yes"
2233 else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2238 main ()
2240 static $2 ac_aggr;
2241 if (sizeof ac_aggr.$3)
2242 return 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 eval "$4=yes"
2249 else
2250 eval "$4=no"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 eval ac_res=\$$4
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_member
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2267 generated by GNU Autoconf 2.64. Invocation command line was
2269 $ $0 $@
2271 _ACEOF
2272 exec 5>>config.log
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 _ASUNAME
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2304 done
2305 IFS=$as_save_IFS
2307 } >&5
2309 cat >&5 <<_ACEOF
2312 ## ----------- ##
2313 ## Core tests. ##
2314 ## ----------- ##
2316 _ACEOF
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2324 ac_configure_args=
2325 ac_configure_args0=
2326 ac_configure_args1=
2327 ac_must_keep_next=false
2328 for ac_pass in 1 2
2330 for ac_arg
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
2337 *\'*)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 case $ac_pass in
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2359 as_fn_append ac_configure_args " '$ac_arg'"
2361 esac
2362 done
2363 done
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2375 echo
2377 cat <<\_ASBOX
2378 ## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##
2381 _ASBOX
2382 echo
2383 # The following way of writing the cache mishandles newlines in values,
2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in #(
2388 *${as_nl}*)
2389 case $ac_var in #(
2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392 esac
2393 case $ac_var in #(
2394 _ | IFS | as_nl) ;; #(
2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396 *) { eval $ac_var=; unset $ac_var;} ;;
2397 esac ;;
2398 esac
2399 done
2400 (set) 2>&1 |
2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402 *${as_nl}ac_space=\ *)
2403 sed -n \
2404 "s/'\''/'\''\\\\'\'''\''/g;
2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 ;; #(
2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2410 esac |
2411 sort
2413 echo
2415 cat <<\_ASBOX
2416 ## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##
2419 _ASBOX
2420 echo
2421 for ac_var in $ac_subst_vars
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 $as_echo "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2431 if test -n "$ac_subst_files"; then
2432 cat <<\_ASBOX
2433 ## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##
2436 _ASBOX
2437 echo
2438 for ac_var in $ac_subst_files
2440 eval ac_val=\$$ac_var
2441 case $ac_val in
2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 esac
2444 $as_echo "$ac_var='\''$ac_val'\''"
2445 done | sort
2446 echo
2449 if test -s confdefs.h; then
2450 cat <<\_ASBOX
2451 ## ----------- ##
2452 ## confdefs.h. ##
2453 ## ----------- ##
2454 _ASBOX
2455 echo
2456 cat confdefs.h
2457 echo
2459 test "$ac_signal" != 0 &&
2460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
2462 } >&5
2463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2465 exit $exit_status
2467 for ac_signal in 1 2 13 15; do
2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469 done
2470 ac_signal=0
2472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2473 rm -f -r conftest* confdefs.h
2475 $as_echo "/* confdefs.h */" > confdefs.h
2477 # Predefined preprocessor variables.
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_NAME "$PACKAGE_NAME"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_STRING "$PACKAGE_STRING"
2493 _ACEOF
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497 _ACEOF
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_URL "$PACKAGE_URL"
2501 _ACEOF
2504 # Let the site file select an alternate cache file if it wants to.
2505 # Prefer an explicitly selected file to automatically selected ones.
2506 ac_site_file1=NONE
2507 ac_site_file2=NONE
2508 if test -n "$CONFIG_SITE"; then
2509 ac_site_file1=$CONFIG_SITE
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2513 else
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 test "x$ac_site_file" = xNONE && continue
2520 if test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2524 . "$ac_site_file"
2526 done
2528 if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special
2530 # files actually), so we avoid doing that.
2531 if test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534 case $cache_file in
2535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
2537 esac
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2542 >$cache_file
2545 as_fn_append ac_header_list " unistd.h"
2546 as_fn_append ac_header_list " sys/time.h"
2547 as_fn_append ac_header_list " sys/times.h"
2548 as_fn_append ac_header_list " sys/resource.h"
2549 as_fn_append ac_header_list " sys/types.h"
2550 as_fn_append ac_header_list " sys/stat.h"
2551 as_fn_append ac_header_list " sys/wait.h"
2552 as_fn_append ac_header_list " floatingpoint.h"
2553 as_fn_append ac_header_list " ieeefp.h"
2554 as_fn_append ac_header_list " fenv.h"
2555 as_fn_append ac_header_list " fptrap.h"
2556 as_fn_append ac_header_list " fpxcp.h"
2557 as_fn_append ac_header_list " pwd.h"
2558 as_fn_append ac_header_list " complex.h"
2559 as_fn_append ac_header_list " xlocale.h"
2560 as_fn_append ac_func_list " getrusage"
2561 as_fn_append ac_func_list " times"
2562 as_fn_append ac_func_list " mkstemp"
2563 as_fn_append ac_func_list " strtof"
2564 as_fn_append ac_func_list " strtold"
2565 as_fn_append ac_func_list " snprintf"
2566 as_fn_append ac_func_list " ftruncate"
2567 as_fn_append ac_func_list " chsize"
2568 as_fn_append ac_func_list " chdir"
2569 as_fn_append ac_func_list " getlogin"
2570 as_fn_append ac_func_list " gethostname"
2571 as_fn_append ac_func_list " kill"
2572 as_fn_append ac_func_list " link"
2573 as_fn_append ac_func_list " symlink"
2574 as_fn_append ac_func_list " sleep"
2575 as_fn_append ac_func_list " ttyname"
2576 as_fn_append ac_func_list " alarm"
2577 as_fn_append ac_func_list " access"
2578 as_fn_append ac_func_list " fork"
2579 as_fn_append ac_func_list " setmode"
2580 as_fn_append ac_func_list " fcntl"
2581 as_fn_append ac_func_list " gettimeofday"
2582 as_fn_append ac_func_list " stat"
2583 as_fn_append ac_func_list " fstat"
2584 as_fn_append ac_func_list " lstat"
2585 as_fn_append ac_func_list " getpwuid"
2586 as_fn_append ac_func_list " vsnprintf"
2587 as_fn_append ac_func_list " dup"
2588 as_fn_append ac_func_list " getcwd"
2589 as_fn_append ac_func_list " localtime_r"
2590 as_fn_append ac_func_list " gmtime_r"
2591 as_fn_append ac_func_list " getpwuid_r"
2592 as_fn_append ac_func_list " ttyname_r"
2593 as_fn_append ac_func_list " clock_gettime"
2594 as_fn_append ac_func_list " getgid"
2595 as_fn_append ac_func_list " getpid"
2596 as_fn_append ac_func_list " getuid"
2597 as_fn_append ac_func_list " geteuid"
2598 as_fn_append ac_func_list " umask"
2599 as_fn_append ac_func_list " getegid"
2600 as_fn_append ac_func_list " secure_getenv"
2601 as_fn_append ac_func_list " __secure_getenv"
2602 as_fn_append ac_func_list " mkostemp"
2603 as_fn_append ac_func_list " strnlen"
2604 as_fn_append ac_func_list " strndup"
2605 as_fn_append ac_func_list " newlocale"
2606 as_fn_append ac_func_list " freelocale"
2607 as_fn_append ac_func_list " uselocale"
2608 as_fn_append ac_func_list " strerror_l"
2609 as_fn_append ac_header_list " math.h"
2610 # Check that the precious variables saved in the cache have kept the same
2611 # value.
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2619 set,)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,set)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,);;
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2646 fi;;
2647 esac
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2650 case $ac_new_val in
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2653 esac
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 esac
2659 done
2660 if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 ac_config_headers="$ac_config_headers config.h"
2683 ac_aux_dir=
2684 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2685 for ac_t in install-sh install.sh shtool; do
2686 if test -f "$ac_dir/$ac_t"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/$ac_t -c"
2689 break 2
2691 done
2692 done
2693 if test -z "$ac_aux_dir"; then
2694 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2697 # These three variables are undocumented and unsupported,
2698 # and are intended to be withdrawn in a future Autoconf release.
2699 # They can cause serious problems if a builder's source tree is in a directory
2700 # whose full name contains unusual characters.
2701 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2702 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2703 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2706 # Make sure we can run config.sub.
2707 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2708 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2711 $as_echo_n "checking build system type... " >&6; }
2712 if test "${ac_cv_build+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 ac_build_alias=$build_alias
2716 test "x$ac_build_alias" = x &&
2717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2718 test "x$ac_build_alias" = x &&
2719 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2720 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2721 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2725 $as_echo "$ac_cv_build" >&6; }
2726 case $ac_cv_build in
2727 *-*-*) ;;
2728 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2729 esac
2730 build=$ac_cv_build
2731 ac_save_IFS=$IFS; IFS='-'
2732 set x $ac_cv_build
2733 shift
2734 build_cpu=$1
2735 build_vendor=$2
2736 shift; shift
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2739 build_os=$*
2740 IFS=$ac_save_IFS
2741 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2744 case ${build_alias} in
2745 "") build_noncanonical=${build} ;;
2746 *) build_noncanonical=${build_alias} ;;
2747 esac
2749 case ${host_alias} in
2750 "") host_noncanonical=${build_noncanonical} ;;
2751 *) host_noncanonical=${host_alias} ;;
2752 esac
2754 case ${target_alias} in
2755 "") target_noncanonical=${host_noncanonical} ;;
2756 *) target_noncanonical=${target_alias} ;;
2757 esac
2760 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2761 # have matching libraries, they should use host libraries: Makefile.tpl
2762 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2763 # However, they still use the build modules, because the corresponding
2764 # host modules (e.g. bison) are only built for the host when bootstrap
2765 # finishes. So:
2766 # - build_subdir is where we find build modules, and never changes.
2767 # - build_libsubdir is where we find build libraries, and can be overridden.
2769 # Prefix 'build-' so this never conflicts with target_subdir.
2770 build_subdir="build-${build_noncanonical}"
2772 # Check whether --with-build-libsubdir was given.
2773 if test "${with_build_libsubdir+set}" = set; then :
2774 withval=$with_build_libsubdir; build_libsubdir="$withval"
2775 else
2776 build_libsubdir="$build_subdir"
2779 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2780 if ( test $srcdir = . && test -d gcc ) \
2781 || test -d $srcdir/../host-${host_noncanonical}; then
2782 host_subdir="host-${host_noncanonical}"
2783 else
2784 host_subdir=.
2786 # No prefix.
2787 target_subdir=${target_noncanonical}
2790 # -------
2791 # Options
2792 # -------
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2795 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2796 # Check whether --enable-version-specific-runtime-libs was given.
2797 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2798 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2799 yes) version_specific_libs=yes ;;
2800 no) version_specific_libs=no ;;
2801 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2802 esac
2803 else
2804 version_specific_libs=no
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2808 $as_echo "$version_specific_libs" >&6; }
2810 # Build with intermodule optimisations
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2812 $as_echo_n "checking for --enable-intermodule... " >&6; }
2813 # Check whether --enable-intermodule was given.
2814 if test "${enable_intermodule+set}" = set; then :
2815 enableval=$enable_intermodule; case "$enable_intermodule" in
2816 yes) onestep="-onestep";;
2817 *) onestep="";;
2818 esac
2819 else
2820 onestep=""
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2824 $as_echo "$enable_intermodule" >&6; }
2825 if test x$onestep = x-onestep; then
2826 onestep_TRUE=
2827 onestep_FALSE='#'
2828 else
2829 onestep_TRUE='#'
2830 onestep_FALSE=
2835 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2837 # You will slowly go insane if you do not grok the following fact: when
2838 # building this library, the top-level /target/ becomes the library's /host/.
2840 # configure then causes --target to default to --host, exactly like any
2841 # other package using autoconf. Therefore, 'target' and 'host' will
2842 # always be the same. This makes sense both for native and cross compilers
2843 # just think about it for a little while. :-)
2845 # Also, if this library is being configured as part of a cross compiler, the
2846 # top-level configure script will pass the "real" host as $with_cross_host.
2848 # Do not delete or change the following two lines. For why, see
2849 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851 $as_echo_n "checking host system type... " >&6; }
2852 if test "${ac_cv_host+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857 else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864 $as_echo "$ac_cv_host" >&6; }
2865 case $ac_cv_host in
2866 *-*-*) ;;
2867 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2868 esac
2869 host=$ac_cv_host
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_host
2872 shift
2873 host_cpu=$1
2874 host_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 host_os=$*
2879 IFS=$ac_save_IFS
2880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2884 $as_echo_n "checking target system type... " >&6; }
2885 if test "${ac_cv_target+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test "x$target_alias" = x; then
2889 ac_cv_target=$ac_cv_host
2890 else
2891 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2892 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2897 $as_echo "$ac_cv_target" >&6; }
2898 case $ac_cv_target in
2899 *-*-*) ;;
2900 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2901 esac
2902 target=$ac_cv_target
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_target
2905 shift
2906 target_cpu=$1
2907 target_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 target_os=$*
2912 IFS=$ac_save_IFS
2913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2916 # The aliases save the names the user supplied, while $host etc.
2917 # will get canonicalized.
2918 test -n "$target_alias" &&
2919 test "$program_prefix$program_suffix$program_transform_name" = \
2920 NONENONEs,x,x, &&
2921 program_prefix=${target_alias}-
2926 target_alias=${target_alias-$host_alias}
2929 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2930 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2931 # 1.9.6: minimum required version
2932 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2933 # of other PACKAGE_* variables will, however, and there's nothing
2934 # we can do about that; they come from AC_INIT).
2935 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2936 # file in the top srcdir, etc, etc), so stop complaining.
2937 # no-dist: we don't want 'dist' and related rules.
2938 # -Wall: turns on all automake warnings...
2939 # -Wno-portability: ...except this one, since GNU make is required.
2940 am__api_version='1.11'
2942 # Find a good install program. We prefer a C program (faster),
2943 # so one script is as good as another. But avoid the broken or
2944 # incompatible versions:
2945 # SysV /etc/install, /usr/sbin/install
2946 # SunOS /usr/etc/install
2947 # IRIX /sbin/install
2948 # AIX /bin/install
2949 # AmigaOS /C/install, which installs bootblocks on floppy discs
2950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2953 # OS/2's system install, which has a completely different semantic
2954 # ./install, which can be erroneously created by make from ./install.sh.
2955 # Reject install programs that cannot install multiple files.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2957 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2958 if test -z "$INSTALL"; then
2959 if test "${ac_cv_path_install+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 # Account for people who put trailing slashes in PATH elements.
2968 case $as_dir/ in #((
2969 ./ | .// | /[cC]/* | \
2970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2971 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2972 /usr/ucb/* ) ;;
2974 # OSF1 and SCO ODT 3.0 have their own names for install.
2975 # Don't use installbsd from OSF since it installs stuff as root
2976 # by default.
2977 for ac_prog in ginstall scoinst install; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2980 if test $ac_prog = install &&
2981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # AIX install. It has an incompatible calling convention.
2984 elif test $ac_prog = install &&
2985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # program-specific install script used by HP pwplus--don't use.
2988 else
2989 rm -rf conftest.one conftest.two conftest.dir
2990 echo one > conftest.one
2991 echo two > conftest.two
2992 mkdir conftest.dir
2993 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2994 test -s conftest.one && test -s conftest.two &&
2995 test -s conftest.dir/conftest.one &&
2996 test -s conftest.dir/conftest.two
2997 then
2998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2999 break 3
3003 done
3004 done
3006 esac
3008 done
3009 IFS=$as_save_IFS
3011 rm -rf conftest.one conftest.two conftest.dir
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3016 else
3017 # As a last resort, use the slow shell script. Don't cache a
3018 # value for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the value is a relative name.
3021 INSTALL=$ac_install_sh
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3025 $as_echo "$INSTALL" >&6; }
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3036 $as_echo_n "checking whether build environment is sane... " >&6; }
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Reject unsafe characters in $srcdir or the absolute working directory
3041 # name. Accept space and tab only in the latter.
3042 am_lf='
3044 case `pwd` in
3045 *[\\\"\#\$\&\'\`$am_lf]*)
3046 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3047 esac
3048 case $srcdir in
3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3050 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3051 esac
3053 # Do `set' in a subshell so we don't clobber the current shell's
3054 # arguments. Must try -L first in case configure is actually a
3055 # symlink; some systems play weird games with the mod time of symlinks
3056 # (eg FreeBSD returns the mod time of the symlink's containing
3057 # directory).
3058 if (
3059 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3060 if test "$*" = "X"; then
3061 # -L didn't work.
3062 set X `ls -t "$srcdir/configure" conftest.file`
3064 rm -f conftest.file
3065 if test "$*" != "X $srcdir/configure conftest.file" \
3066 && test "$*" != "X conftest.file $srcdir/configure"; then
3068 # If neither matched, then we have a broken ls. This can happen
3069 # if, for instance, CONFIG_SHELL is bash and it inherits a
3070 # broken ls alias from the environment. This has actually
3071 # happened. Such a system could not be considered "sane".
3072 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3073 alias in your environment" "$LINENO" 5
3076 test "$2" = conftest.file
3078 then
3079 # Ok.
3081 else
3082 as_fn_error "newly created file is older than distributed files!
3083 Check your system clock" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 test "$program_prefix" != NONE &&
3088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3089 # Use a double $ so make ignores it.
3090 test "$program_suffix" != NONE &&
3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3092 # Double any \ or $.
3093 # By default was `s,x,x', remove it if useless.
3094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3097 # expand $ac_aux_dir to an absolute path
3098 am_aux_dir=`cd $ac_aux_dir && pwd`
3100 if test x"${MISSING+set}" != xset; then
3101 case $am_aux_dir in
3102 *\ * | *\ *)
3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3106 esac
3108 # Use eval to expand $SHELL
3109 if eval "$MISSING --run true"; then
3110 am_missing_run="$MISSING --run "
3111 else
3112 am_missing_run=
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3114 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3117 if test x"${install_sh}" != xset; then
3118 case $am_aux_dir in
3119 *\ * | *\ *)
3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3122 install_sh="\${SHELL} $am_aux_dir/install-sh"
3123 esac
3126 # Installed binaries are usually stripped using `strip' when the user
3127 # run `make install-strip'. However `strip' might not be the right
3128 # tool to use in cross-compilation environments, therefore Automake
3129 # will honor the `STRIP' environment variable to overrule this program.
3130 if test "$cross_compiling" != no; then
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}strip; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_STRIP+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 $as_echo "$STRIP" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_ac_ct_STRIP="strip"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3200 if test -n "$ac_ct_STRIP"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3202 $as_echo "$ac_ct_STRIP" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3208 if test "x$ac_ct_STRIP" = x; then
3209 STRIP=":"
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 STRIP=$ac_ct_STRIP
3219 else
3220 STRIP="$ac_cv_prog_STRIP"
3224 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3227 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3228 if test -z "$MKDIR_P"; then
3229 if test "${ac_cv_path_mkdir+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_prog in mkdir gmkdir; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3241 'mkdir (GNU coreutils) '* | \
3242 'mkdir (coreutils) '* | \
3243 'mkdir (fileutils) '4.1*)
3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3245 break 3;;
3246 esac
3247 done
3248 done
3249 done
3250 IFS=$as_save_IFS
3254 if test "${ac_cv_path_mkdir+set}" = set; then
3255 MKDIR_P="$ac_cv_path_mkdir -p"
3256 else
3257 # As a last resort, use the slow shell script. Don't cache a
3258 # value for MKDIR_P within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the value is a relative name.
3261 test -d ./--version && rmdir ./--version
3262 MKDIR_P="$ac_install_sh -d"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3266 $as_echo "$MKDIR_P" >&6; }
3268 mkdir_p="$MKDIR_P"
3269 case $mkdir_p in
3270 [\\/$]* | ?:[\\/]*) ;;
3271 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3272 esac
3274 for ac_prog in gawk mawk nawk awk
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_AWK+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$AWK"; then
3284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_AWK="$ac_prog"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 AWK=$ac_cv_prog_AWK
3304 if test -n "$AWK"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3306 $as_echo "$AWK" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$AWK" && break
3314 done
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3318 set x ${MAKE-make}
3319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3320 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 cat >conftest.make <<\_ACEOF
3324 SHELL = /bin/sh
3325 all:
3326 @echo '@@@%%%=$(MAKE)=@@@%%%'
3327 _ACEOF
3328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3330 *@@@%%%=?*=@@@%%%*)
3331 eval ac_cv_prog_make_${ac_make}_set=yes;;
3333 eval ac_cv_prog_make_${ac_make}_set=no;;
3334 esac
3335 rm -f conftest.make
3337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 SET_MAKE=
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 SET_MAKE="MAKE=${MAKE-make}"
3347 rm -rf .tst 2>/dev/null
3348 mkdir .tst 2>/dev/null
3349 if test -d .tst; then
3350 am__leading_dot=.
3351 else
3352 am__leading_dot=_
3354 rmdir .tst 2>/dev/null
3356 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3358 # is not polluted with repeated "-I."
3359 am__isrc=' -I$(srcdir)'
3360 # test to see if srcdir already configured
3361 if test -f $srcdir/config.status; then
3362 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3366 # test whether we have cygpath
3367 if test -z "$CYGPATH_W"; then
3368 if (cygpath --version) >/dev/null 2>/dev/null; then
3369 CYGPATH_W='cygpath -w'
3370 else
3371 CYGPATH_W=echo
3376 # Define the identity of the package.
3377 PACKAGE='libgfortran'
3378 VERSION='0.3'
3381 # Some tools Automake needs.
3383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3397 # We need awk for the "check" target. The system "awk" is bad on
3398 # some platforms.
3399 # Always define AMTAR for backward compatibility. Yes, it's still used
3400 # in the wild :-( We should find a proper way to deprecate it ...
3401 AMTAR='$${TAR-tar}'
3403 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3416 else
3417 USE_MAINTAINER_MODE=no
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3425 else
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3430 MAINT=$MAINTAINER_MODE_TRUE
3433 # Default to --enable-multilib
3434 # Check whether --enable-multilib was given.
3435 if test "${enable_multilib+set}" = set; then :
3436 enableval=$enable_multilib; case "$enableval" in
3437 yes) multilib=yes ;;
3438 no) multilib=no ;;
3439 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3440 esac
3441 else
3442 multilib=yes
3446 # We may get other options which we leave undocumented:
3447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3448 # See config-ml.in if you want the gory details.
3450 if test "$srcdir" = "."; then
3451 if test "$with_target_subdir" != "."; then
3452 multi_basedir="$srcdir/$with_multisrctop../.."
3453 else
3454 multi_basedir="$srcdir/$with_multisrctop.."
3456 else
3457 multi_basedir="$srcdir/.."
3461 # Even if the default multilib is not a cross compilation,
3462 # it may be that some of the other multilibs are.
3463 if test $cross_compiling = no && test $multilib = yes \
3464 && test "x${with_multisubdir}" != x ; then
3465 cross_compiling=maybe
3468 ac_config_commands="$ac_config_commands default-1"
3471 # Handy for debugging:
3472 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3474 # Are we being configured with some form of cross compiler?
3475 # NB: We don't actually need to know this just now, but when, say, a test
3476 # suite is included, we'll have to know.
3477 if test "$build" != "$host"; then
3478 LIBGFOR_IS_NATIVE=false
3480 else
3481 LIBGFOR_IS_NATIVE=true
3484 DEPDIR="${am__leading_dot}deps"
3486 ac_config_commands="$ac_config_commands depfiles"
3489 am_make=${MAKE-make}
3490 cat > confinc << 'END'
3491 am__doit:
3492 @echo this is the am__doit target
3493 .PHONY: am__doit
3495 # If we don't find an include directive, just comment out the code.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3497 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3498 am__include="#"
3499 am__quote=
3500 _am_result=none
3501 # First try GNU make style include.
3502 echo "include confinc" > confmf
3503 # Ignore all kinds of additional output from `make'.
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=include
3507 am__quote=
3508 _am_result=GNU
3510 esac
3511 # Now try BSD make style include.
3512 if test "$am__include" = "#"; then
3513 echo '.include "confinc"' > confmf
3514 case `$am_make -s -f confmf 2> /dev/null` in #(
3515 *the\ am__doit\ target*)
3516 am__include=.include
3517 am__quote="\""
3518 _am_result=BSD
3520 esac
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3525 $as_echo "$_am_result" >&6; }
3526 rm -f confinc confmf
3528 # Check whether --enable-dependency-tracking was given.
3529 if test "${enable_dependency_tracking+set}" = set; then :
3530 enableval=$enable_dependency_tracking;
3533 if test "x$enable_dependency_tracking" != xno; then
3534 am_depcomp="$ac_aux_dir/depcomp"
3535 AMDEPBACKSLASH='\'
3536 am__nodep='_no'
3538 if test "x$enable_dependency_tracking" != xno; then
3539 AMDEP_TRUE=
3540 AMDEP_FALSE='#'
3541 else
3542 AMDEP_TRUE='#'
3543 AMDEP_FALSE=
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CC+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 $as_echo "$CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3591 if test -z "$ac_cv_prog_CC"; then
3592 ac_ct_CC=$CC
3593 # Extract the first word of "gcc", so it can be a program name with args.
3594 set dummy gcc; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -n "$ac_ct_CC"; then
3601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 ac_cv_prog_ac_ct_CC="gcc"
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3614 done
3615 done
3616 IFS=$as_save_IFS
3620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621 if test -n "$ac_ct_CC"; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623 $as_echo "$ac_ct_CC" >&6; }
3624 else
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3629 if test "x$ac_ct_CC" = x; then
3630 CC=""
3631 else
3632 case $cross_compiling:$ac_tool_warned in
3633 yes:)
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636 ac_tool_warned=yes ;;
3637 esac
3638 CC=$ac_ct_CC
3640 else
3641 CC="$ac_cv_prog_CC"
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC="${ac_tool_prefix}cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3685 if test -z "$CC"; then
3686 # Extract the first word of "cc", so it can be a program name with args.
3687 set dummy cc; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 ac_prog_rejected=no
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705 ac_prog_rejected=yes
3706 continue
3708 ac_cv_prog_CC="cc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3714 IFS=$as_save_IFS
3716 if test $ac_prog_rejected = yes; then
3717 # We found a bogon in the path, so make sure we never use it.
3718 set dummy $ac_cv_prog_CC
3719 shift
3720 if test $# != 0; then
3721 # We chose a different compiler from the bogus one.
3722 # However, it has the same basename, so the bogon will be chosen
3723 # first if we set CC to just the basename; use the full file name.
3724 shift
3725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$CC"; then
3742 if test -n "$ac_tool_prefix"; then
3743 for ac_prog in cl.exe
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_CC+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$CC" && break
3783 done
3785 if test -z "$CC"; then
3786 ac_ct_CC=$CC
3787 for ac_prog in cl.exe
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_CC="$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817 if test -n "$ac_ct_CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819 $as_echo "$ac_ct_CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$ac_ct_CC" && break
3827 done
3829 if test "x$ac_ct_CC" = x; then
3830 CC=""
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833 yes:)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3837 esac
3838 CC=$ac_ct_CC
3845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error "no acceptable C compiler found in \$PATH
3848 See \`config.log' for more details." "$LINENO" 5; }
3850 # Provide some information about the compiler.
3851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3852 set X $ac_compile
3853 ac_compiler=$2
3854 for ac_option in --version -v -V -qversion; do
3855 { { ac_try="$ac_compiler $ac_option >&5"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3863 ac_status=$?
3864 if test -s conftest.err; then
3865 sed '10a\
3866 ... rest of stderr output deleted ...
3867 10q' conftest.err >conftest.er1
3868 cat conftest.er1 >&5
3869 rm -f conftest.er1 conftest.err
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }
3873 done
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 # FIXME: Cleanup?
3887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3888 (eval $ac_link) 2>&5
3889 ac_status=$?
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 gcc_no_link=no
3893 else
3894 gcc_no_link=yes
3896 if test x$gcc_no_link = xyes; then
3897 # Setting cross_compile will disable run tests; it will
3898 # also disable AC_CHECK_FILE but that's generally
3899 # correct if we can't link.
3900 cross_compiling=yes
3901 EXEEXT=
3902 else
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 ac_clean_files_save=$ac_clean_files
3915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3916 # Try to create an executable without -o first, disregard a.out.
3917 # It will help us diagnose broken compilers, and finding out an intuition
3918 # of exeext.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3920 $as_echo_n "checking for C compiler default output file name... " >&6; }
3921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3923 # The possible output files:
3924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3926 ac_rmfiles=
3927 for ac_file in $ac_files
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3932 esac
3933 done
3934 rm -f $ac_rmfiles
3936 if { { ac_try="$ac_link_default"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_link_default") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; then :
3947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3950 # so that the user can short-circuit this test for compilers unknown to
3951 # Autoconf.
3952 for ac_file in $ac_files ''
3954 test -f "$ac_file" || continue
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3958 [ab].out )
3959 # We found the default executable, but exeext='' is most
3960 # certainly right.
3961 break;;
3962 *.* )
3963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3964 then :; else
3965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3967 # We set ac_cv_exeext here because the later test for it is not
3968 # safe: cross compilers may not add the suffix if given an `-o'
3969 # argument, so we may need to know it at that point already.
3970 # Even if this section looks crufty: it has the advantage of
3971 # actually working.
3972 break;;
3974 break;;
3975 esac
3976 done
3977 test "$ac_cv_exeext" = no && ac_cv_exeext=
3979 else
3980 ac_file=''
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3983 $as_echo "$ac_file" >&6; }
3984 if test -z "$ac_file"; then :
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 { as_fn_set_status 77
3991 as_fn_error "C compiler cannot create executables
3992 See \`config.log' for more details." "$LINENO" 5; }; }
3994 ac_exeext=$ac_cv_exeext
3996 # Check that the compiler produces executables we can run. If not, either
3997 # the compiler is broken, or we cross compile.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3999 $as_echo_n "checking whether the C compiler works... " >&6; }
4000 # If not cross compiling, check that we can run a simple program.
4001 if test "$cross_compiling" != yes; then
4002 if { ac_try='./$ac_file'
4003 { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4013 cross_compiling=no
4014 else
4015 if test "$cross_compiling" = maybe; then
4016 cross_compiling=yes
4017 else
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error "cannot run C compiled programs.
4021 If you meant to cross compile, use \`--host'.
4022 See \`config.log' for more details." "$LINENO" 5; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027 $as_echo "yes" >&6; }
4029 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4030 ac_clean_files=$ac_clean_files_save
4031 # Check that the compiler produces executables we can run. If not, either
4032 # the compiler is broken, or we cross compile.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4034 $as_echo_n "checking whether we are cross compiling... " >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4036 $as_echo "$cross_compiling" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4039 $as_echo_n "checking for suffix of executables... " >&6; }
4040 if { { ac_try="$ac_link"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_link") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4052 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4053 # work properly (i.e., refer to `conftest.exe'), while it won't with
4054 # `rm'.
4055 for ac_file in conftest.exe conftest conftest.*; do
4056 test -f "$ac_file" || continue
4057 case $ac_file in
4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4060 break;;
4061 * ) break;;
4062 esac
4063 done
4064 else
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error "cannot compute suffix of executables: cannot compile and link
4068 See \`config.log' for more details." "$LINENO" 5; }
4070 rm -f conftest$ac_cv_exeext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4072 $as_echo "$ac_cv_exeext" >&6; }
4074 rm -f conftest.$ac_ext
4075 EXEEXT=$ac_cv_exeext
4076 ac_exeext=$EXEEXT
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 $as_echo_n "checking for suffix of object files... " >&6; }
4080 if test "${ac_cv_objext+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4087 main ()
4091 return 0;
4093 _ACEOF
4094 rm -f conftest.o conftest.obj
4095 if { { ac_try="$ac_compile"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
4108 case $ac_file in
4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4111 break;;
4112 esac
4113 done
4114 else
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120 as_fn_error "cannot compute suffix of object files: cannot compile
4121 See \`config.log' for more details." "$LINENO" 5; }
4123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126 $as_echo "$ac_cv_objext" >&6; }
4127 OBJEXT=$ac_cv_objext
4128 ac_objext=$OBJEXT
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4140 #ifndef __GNUC__
4141 choke me
4142 #endif
4145 return 0;
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_compiler_gnu=yes
4150 else
4151 ac_compiler_gnu=no
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159 if test $ac_compiler_gnu = yes; then
4160 GCC=yes
4161 else
4162 GCC=
4164 ac_test_CFLAGS=${CFLAGS+set}
4165 ac_save_CFLAGS=$CFLAGS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4168 if test "${ac_cv_prog_cc_g+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4173 ac_cv_prog_cc_g=no
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_prog_cc_g=yes
4188 else
4189 CFLAGS=""
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 main ()
4198 return 0;
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4203 else
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 CFLAGS="-g"
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_g=yes
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228 $as_echo "$ac_cv_prog_cc_g" >&6; }
4229 if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231 elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4233 CFLAGS="-g -O2"
4234 else
4235 CFLAGS="-g"
4237 else
4238 if test "$GCC" = yes; then
4239 CFLAGS="-O2"
4240 else
4241 CFLAGS=
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_cv_prog_cc_c89=no
4250 ac_save_CC=$CC
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdarg.h>
4254 #include <stdio.h>
4255 #include <sys/types.h>
4256 #include <sys/stat.h>
4257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258 struct buf { int x; };
4259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260 static char *e (p, i)
4261 char **p;
4262 int i;
4264 return p[i];
4266 static char *f (char * (*g) (char **, int), char **p, ...)
4268 char *s;
4269 va_list v;
4270 va_start (v,p);
4271 s = g (p, va_arg (v,int));
4272 va_end (v);
4273 return s;
4276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277 function prototypes and stuff, but not '\xHH' hex character constants.
4278 These don't provoke an error unfortunately, instead are silently treated
4279 as 'x'. The following induces an error, until -std is added to get
4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281 array size at least. It's necessary to write '\x00'==0 to get something
4282 that's true only with -std. */
4283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286 inside strings and character constants. */
4287 #define FOO(x) 'x'
4288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290 int test (int i, double x);
4291 struct s1 {int (*f) (int a);};
4292 struct s2 {int (*f) (double a);};
4293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4294 int argc;
4295 char **argv;
4297 main ()
4299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4301 return 0;
4303 _ACEOF
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307 CC="$ac_save_CC $ac_arg"
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
4311 rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
4313 done
4314 rm -f conftest.$ac_ext
4315 CC=$ac_save_CC
4318 # AC_CACHE_VAL
4319 case "x$ac_cv_prog_cc_c89" in
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4322 $as_echo "none needed" >&6; } ;;
4323 xno)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 $as_echo "unsupported" >&6; } ;;
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4330 esac
4331 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 depcc="$CC" am_compiler_list=
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344 $as_echo_n "checking dependency style of $depcc... " >&6; }
4345 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349 # We make a subdir and do the tests there. Otherwise we can end up
4350 # making bogus files that we don't know about and never remove. For
4351 # instance it was reported that on HP-UX the gcc test will end up
4352 # making a dummy file named `D' -- because `-MD' means `put the output
4353 # in D'.
4354 rm -rf conftest.dir
4355 mkdir conftest.dir
4356 # Copy depcomp to subdir because otherwise we won't find it if we're
4357 # using a relative directory.
4358 cp "$am_depcomp" conftest.dir
4359 cd conftest.dir
4360 # We will build objects and dependencies in a subdirectory because
4361 # it helps to detect inapplicable dependency modes. For instance
4362 # both Tru64's cc and ICC support -MD to output dependencies as a
4363 # side effect of compilation, but ICC will put the dependencies in
4364 # the current directory while Tru64 will put them in the object
4365 # directory.
4366 mkdir sub
4368 am_cv_CC_dependencies_compiler_type=none
4369 if test "$am_compiler_list" = ""; then
4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4372 am__universal=false
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375 esac
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4385 : > sub/conftest.c
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4389 # Solaris 8's {/usr,}/bin/sh.
4390 touch sub/conftst$i.h
4391 done
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4394 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4395 # mode. It turns out that the SunPro C++ compiler does not properly
4396 # handle `-M -o', and we need to detect this. Also, some Intel
4397 # versions had trouble with output in subdirs
4398 am__obj=sub/conftest.${OBJEXT-o}
4399 am__minus_obj="-o $am__obj"
4400 case $depmode in
4401 gcc)
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4405 nosideeffect)
4406 # after this tag, mechanisms are not by side-effect, so they'll
4407 # only be used when explicitly requested
4408 if test "x$enable_dependency_tracking" = xyes; then
4409 continue
4410 else
4411 break
4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415 # This compiler won't grok `-c -o', but also, the minuso test has
4416 # not run yet. These depmodes are late enough in the game, and
4417 # so weak that their functioning should not be impacted.
4418 am__obj=conftest.${OBJEXT-o}
4419 am__minus_obj=
4421 none) break ;;
4422 esac
4423 if depmode=$depmode \
4424 source=sub/conftest.c object=$am__obj \
4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427 >/dev/null 2>conftest.err &&
4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432 # icc doesn't choke on unknown options, it will just issue warnings
4433 # or remarks (even with -Werror). So we grep stderr for any message
4434 # that says an option was ignored or not supported.
4435 # When given -MP, icc 7.0 and 7.1 complain thusly:
4436 # icc: Command line warning: ignoring option '-M'; no argument required
4437 # The diagnosis changed in icc 8.0:
4438 # icc: Command line remark: option '-MP' not supported
4439 if (grep 'ignoring option' conftest.err ||
4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441 am_cv_CC_dependencies_compiler_type=$depmode
4442 break
4445 done
4447 cd ..
4448 rm -rf conftest.dir
4449 else
4450 am_cv_CC_dependencies_compiler_type=none
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4459 test "x$enable_dependency_tracking" != xno \
4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461 am__fastdepCC_TRUE=
4462 am__fastdepCC_FALSE='#'
4463 else
4464 am__fastdepCC_TRUE='#'
4465 am__fastdepCC_FALSE=
4470 ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4477 # On Suns, sometimes $CPP names a directory.
4478 if test -n "$CPP" && test -d "$CPP"; then
4479 CPP=
4481 if test -z "$CPP"; then
4482 if test "${ac_cv_prog_CPP+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 # Double quotes because CPP needs to be expanded
4486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4488 ac_preproc_ok=false
4489 for ac_c_preproc_warn_flag in '' yes
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #ifdef __STDC__
4500 # include <limits.h>
4501 #else
4502 # include <assert.h>
4503 #endif
4504 Syntax error
4505 _ACEOF
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4508 else
4509 # Broken: fails on valid input.
4510 continue
4512 rm -f conftest.err conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 # Passes both tests.
4525 ac_preproc_ok=:
4526 break
4528 rm -f conftest.err conftest.$ac_ext
4530 done
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.err conftest.$ac_ext
4533 if $ac_preproc_ok; then :
4534 break
4537 done
4538 ac_cv_prog_CPP=$CPP
4541 CPP=$ac_cv_prog_CPP
4542 else
4543 ac_cv_prog_CPP=$CPP
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546 $as_echo "$CPP" >&6; }
4547 ac_preproc_ok=false
4548 for ac_c_preproc_warn_flag in '' yes
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #ifdef __STDC__
4559 # include <limits.h>
4560 #else
4561 # include <assert.h>
4562 #endif
4563 Syntax error
4564 _ACEOF
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4567 else
4568 # Broken: fails on valid input.
4569 continue
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4578 _ACEOF
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4581 continue
4582 else
4583 # Passes both tests.
4584 ac_preproc_ok=:
4585 break
4587 rm -f conftest.err conftest.$ac_ext
4589 done
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.err conftest.$ac_ext
4592 if $ac_preproc_ok; then :
4594 else
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4598 See \`config.log' for more details." "$LINENO" 5; }
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if test "${ac_cv_path_GREP+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in grep ggrep; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4628 *GNU*)
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4631 ac_count=0
4632 $as_echo_n 0123456789 >"conftest.in"
4633 while :
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP="$ac_path_GREP"
4645 ac_path_GREP_max=$ac_count
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4649 done
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4653 $ac_path_GREP_found && break 3
4654 done
4655 done
4656 done
4657 IFS=$as_save_IFS
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4661 else
4662 ac_cv_path_GREP=$GREP
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP="$ac_cv_path_GREP"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if test "${ac_cv_path_EGREP+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677 then ac_cv_path_EGREP="$GREP -E"
4678 else
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in egrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4694 *GNU*)
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP="$ac_path_EGREP"
4711 ac_path_EGREP_max=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4719 $ac_path_EGREP_found && break 3
4720 done
4721 done
4722 done
4723 IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4727 else
4728 ac_cv_path_EGREP=$EGREP
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4739 $as_echo_n "checking for ANSI C header files... " >&6; }
4740 if test "${ac_cv_header_stdc+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdlib.h>
4746 #include <stdarg.h>
4747 #include <string.h>
4748 #include <float.h>
4751 main ()
4755 return 0;
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_header_stdc=yes
4760 else
4761 ac_cv_header_stdc=no
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 if test $ac_cv_header_stdc = yes; then
4766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <string.h>
4771 _ACEOF
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "memchr" >/dev/null 2>&1; then :
4775 else
4776 ac_cv_header_stdc=no
4778 rm -f conftest*
4782 if test $ac_cv_header_stdc = yes; then
4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <stdlib.h>
4788 _ACEOF
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "free" >/dev/null 2>&1; then :
4792 else
4793 ac_cv_header_stdc=no
4795 rm -f conftest*
4799 if test $ac_cv_header_stdc = yes; then
4800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4801 if test "$cross_compiling" = yes; then :
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 #include <ctype.h>
4807 #include <stdlib.h>
4808 #if ((' ' & 0x0FF) == 0x020)
4809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4811 #else
4812 # define ISLOWER(c) \
4813 (('a' <= (c) && (c) <= 'i') \
4814 || ('j' <= (c) && (c) <= 'r') \
4815 || ('s' <= (c) && (c) <= 'z'))
4816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4817 #endif
4819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4821 main ()
4823 int i;
4824 for (i = 0; i < 256; i++)
4825 if (XOR (islower (i), ISLOWER (i))
4826 || toupper (i) != TOUPPER (i))
4827 return 2;
4828 return 0;
4830 _ACEOF
4831 if ac_fn_c_try_run "$LINENO"; then :
4833 else
4834 ac_cv_header_stdc=no
4836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4837 conftest.$ac_objext conftest.beam conftest.$ac_ext
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4843 $as_echo "$ac_cv_header_stdc" >&6; }
4844 if test $ac_cv_header_stdc = yes; then
4846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4852 inttypes.h stdint.h unistd.h
4853 do :
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4857 eval as_val=\$$as_ac_Header
4858 if test "x$as_val" = x""yes; then :
4859 cat >>confdefs.h <<_ACEOF
4860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4861 _ACEOF
4865 done
4869 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4870 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4871 MINIX=yes
4872 else
4873 MINIX=
4877 if test "$MINIX" = yes; then
4879 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4882 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4885 $as_echo "#define _MINIX 1" >>confdefs.h
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4891 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4892 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4898 # define __EXTENSIONS__ 1
4899 $ac_includes_default
4901 main ()
4905 return 0;
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 ac_cv_safe_to_define___extensions__=yes
4910 else
4911 ac_cv_safe_to_define___extensions__=no
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4916 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4917 test $ac_cv_safe_to_define___extensions__ = yes &&
4918 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4920 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4922 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4924 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4926 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4930 # Calculate toolexeclibdir
4931 # Also toolexecdir, though it's only used in toolexeclibdir
4932 case ${version_specific_libs} in
4933 yes)
4934 # Need the gcc compiler version to know where to install libraries
4935 # and header files if --enable-version-specific-runtime-libs option
4936 # is selected.
4937 toolexecdir='$(libdir)/gcc/$(target_alias)'
4938 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4941 if test -n "$with_cross_host" &&
4942 test x"$with_cross_host" != x"no"; then
4943 # Install a library built with a cross compiler in tooldir, not libdir.
4944 toolexecdir='$(exec_prefix)/$(target_alias)'
4945 toolexeclibdir='$(toolexecdir)/lib'
4946 else
4947 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4948 toolexeclibdir='$(libdir)'
4950 multi_os_directory=`$CC -print-multi-os-directory`
4951 case $multi_os_directory in
4952 .) ;; # Avoid trailing /.
4953 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4954 esac
4956 esac
4960 # Create a spec file, so that compile/link tests don't fail
4961 test -f libgfortran.spec || touch libgfortran.spec
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 # Check the compiler.
4970 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4971 # We must force CC to /not/ be precious variables; otherwise
4972 # the wrong, non-multilib-adjusted value will be used in multilibs.
4973 # As a side effect, we have to subst CFLAGS ourselves.
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if test "${ac_cv_prog_CC+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$CC"; then
4991 ac_cv_prog_CC="$CC" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 CC=$ac_cv_prog_CC
5011 if test -n "$CC"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5013 $as_echo "$CC" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5021 if test -z "$ac_cv_prog_CC"; then
5022 ac_ct_CC=$CC
5023 # Extract the first word of "gcc", so it can be a program name with args.
5024 set dummy gcc; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$ac_ct_CC"; then
5031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_CC="gcc"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5051 if test -n "$ac_ct_CC"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5053 $as_echo "$ac_ct_CC" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5059 if test "x$ac_ct_CC" = x; then
5060 CC=""
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063 yes:)
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066 ac_tool_warned=yes ;;
5067 esac
5068 CC=$ac_ct_CC
5070 else
5071 CC="$ac_cv_prog_CC"
5074 if test -z "$CC"; then
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5077 set dummy ${ac_tool_prefix}cc; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_prog_CC+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$CC"; then
5084 ac_cv_prog_CC="$CC" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_CC="${ac_tool_prefix}cc"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 CC=$ac_cv_prog_CC
5104 if test -n "$CC"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5106 $as_echo "$CC" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5115 if test -z "$CC"; then
5116 # Extract the first word of "cc", so it can be a program name with args.
5117 set dummy cc; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_prog_CC+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$CC"; then
5124 ac_cv_prog_CC="$CC" # Let the user override the test.
5125 else
5126 ac_prog_rejected=no
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5135 ac_prog_rejected=yes
5136 continue
5138 ac_cv_prog_CC="cc"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5146 if test $ac_prog_rejected = yes; then
5147 # We found a bogon in the path, so make sure we never use it.
5148 set dummy $ac_cv_prog_CC
5149 shift
5150 if test $# != 0; then
5151 # We chose a different compiler from the bogus one.
5152 # However, it has the same basename, so the bogon will be chosen
5153 # first if we set CC to just the basename; use the full file name.
5154 shift
5155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5160 CC=$ac_cv_prog_CC
5161 if test -n "$CC"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163 $as_echo "$CC" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5171 if test -z "$CC"; then
5172 if test -n "$ac_tool_prefix"; then
5173 for ac_prog in cl.exe
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_CC+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$CC"; then
5183 ac_cv_prog_CC="$CC" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 CC=$ac_cv_prog_CC
5203 if test -n "$CC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5205 $as_echo "$CC" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 test -n "$CC" && break
5213 done
5215 if test -z "$CC"; then
5216 ac_ct_CC=$CC
5217 for ac_prog in cl.exe
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$ac_ct_CC"; then
5227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_CC="$ac_prog"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247 if test -n "$ac_ct_CC"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5249 $as_echo "$ac_ct_CC" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5256 test -n "$ac_ct_CC" && break
5257 done
5259 if test "x$ac_ct_CC" = x; then
5260 CC=""
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268 CC=$ac_ct_CC
5275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5277 as_fn_error "no acceptable C compiler found in \$PATH
5278 See \`config.log' for more details." "$LINENO" 5; }
5280 # Provide some information about the compiler.
5281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5282 set X $ac_compile
5283 ac_compiler=$2
5284 for ac_option in --version -v -V -qversion; do
5285 { { ac_try="$ac_compiler $ac_option >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5291 $as_echo "$ac_try_echo"; } >&5
5292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5293 ac_status=$?
5294 if test -s conftest.err; then
5295 sed '10a\
5296 ... rest of stderr output deleted ...
5297 10q' conftest.err >conftest.er1
5298 cat conftest.er1 >&5
5299 rm -f conftest.er1 conftest.err
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303 done
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5306 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5307 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5314 main ()
5316 #ifndef __GNUC__
5317 choke me
5318 #endif
5321 return 0;
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325 ac_compiler_gnu=yes
5326 else
5327 ac_compiler_gnu=no
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5334 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5335 if test $ac_compiler_gnu = yes; then
5336 GCC=yes
5337 else
5338 GCC=
5340 ac_test_CFLAGS=${CFLAGS+set}
5341 ac_save_CFLAGS=$CFLAGS
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5343 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5344 if test "${ac_cv_prog_cc_g+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 ac_save_c_werror_flag=$ac_c_werror_flag
5348 ac_c_werror_flag=yes
5349 ac_cv_prog_cc_g=no
5350 CFLAGS="-g"
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5355 main ()
5359 return 0;
5361 _ACEOF
5362 if ac_fn_c_try_compile "$LINENO"; then :
5363 ac_cv_prog_cc_g=yes
5364 else
5365 CFLAGS=""
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5370 main ()
5374 return 0;
5376 _ACEOF
5377 if ac_fn_c_try_compile "$LINENO"; then :
5379 else
5380 ac_c_werror_flag=$ac_save_c_werror_flag
5381 CFLAGS="-g"
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5386 main ()
5390 return 0;
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_cv_prog_cc_g=yes
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5404 $as_echo "$ac_cv_prog_cc_g" >&6; }
5405 if test "$ac_test_CFLAGS" = set; then
5406 CFLAGS=$ac_save_CFLAGS
5407 elif test $ac_cv_prog_cc_g = yes; then
5408 if test "$GCC" = yes; then
5409 CFLAGS="-g -O2"
5410 else
5411 CFLAGS="-g"
5413 else
5414 if test "$GCC" = yes; then
5415 CFLAGS="-O2"
5416 else
5417 CFLAGS=
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5421 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5422 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 ac_cv_prog_cc_c89=no
5426 ac_save_CC=$CC
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <stdarg.h>
5430 #include <stdio.h>
5431 #include <sys/types.h>
5432 #include <sys/stat.h>
5433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5434 struct buf { int x; };
5435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5436 static char *e (p, i)
5437 char **p;
5438 int i;
5440 return p[i];
5442 static char *f (char * (*g) (char **, int), char **p, ...)
5444 char *s;
5445 va_list v;
5446 va_start (v,p);
5447 s = g (p, va_arg (v,int));
5448 va_end (v);
5449 return s;
5452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5453 function prototypes and stuff, but not '\xHH' hex character constants.
5454 These don't provoke an error unfortunately, instead are silently treated
5455 as 'x'. The following induces an error, until -std is added to get
5456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5457 array size at least. It's necessary to write '\x00'==0 to get something
5458 that's true only with -std. */
5459 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5461 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5462 inside strings and character constants. */
5463 #define FOO(x) 'x'
5464 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5466 int test (int i, double x);
5467 struct s1 {int (*f) (int a);};
5468 struct s2 {int (*f) (double a);};
5469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5470 int argc;
5471 char **argv;
5473 main ()
5475 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5477 return 0;
5479 _ACEOF
5480 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5483 CC="$ac_save_CC $ac_arg"
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_prog_cc_c89=$ac_arg
5487 rm -f core conftest.err conftest.$ac_objext
5488 test "x$ac_cv_prog_cc_c89" != "xno" && break
5489 done
5490 rm -f conftest.$ac_ext
5491 CC=$ac_save_CC
5494 # AC_CACHE_VAL
5495 case "x$ac_cv_prog_cc_c89" in
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5498 $as_echo "none needed" >&6; } ;;
5499 xno)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5501 $as_echo "unsupported" >&6; } ;;
5503 CC="$CC $ac_cv_prog_cc_c89"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5505 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5506 esac
5507 if test "x$ac_cv_prog_cc_c89" != xno; then :
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 depcc="$CC" am_compiler_list=
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5520 $as_echo_n "checking dependency style of $depcc... " >&6; }
5521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525 # We make a subdir and do the tests there. Otherwise we can end up
5526 # making bogus files that we don't know about and never remove. For
5527 # instance it was reported that on HP-UX the gcc test will end up
5528 # making a dummy file named `D' -- because `-MD' means `put the output
5529 # in D'.
5530 rm -rf conftest.dir
5531 mkdir conftest.dir
5532 # Copy depcomp to subdir because otherwise we won't find it if we're
5533 # using a relative directory.
5534 cp "$am_depcomp" conftest.dir
5535 cd conftest.dir
5536 # We will build objects and dependencies in a subdirectory because
5537 # it helps to detect inapplicable dependency modes. For instance
5538 # both Tru64's cc and ICC support -MD to output dependencies as a
5539 # side effect of compilation, but ICC will put the dependencies in
5540 # the current directory while Tru64 will put them in the object
5541 # directory.
5542 mkdir sub
5544 am_cv_CC_dependencies_compiler_type=none
5545 if test "$am_compiler_list" = ""; then
5546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5548 am__universal=false
5549 case " $depcc " in #(
5550 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5551 esac
5553 for depmode in $am_compiler_list; do
5554 # Setup a source with many dependencies, because some compilers
5555 # like to wrap large dependency lists on column 80 (with \), and
5556 # we should not choose a depcomp mode which is confused by this.
5558 # We need to recreate these files for each test, as the compiler may
5559 # overwrite some of them when testing with obscure command lines.
5560 # This happens at least with the AIX C compiler.
5561 : > sub/conftest.c
5562 for i in 1 2 3 4 5 6; do
5563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565 # Solaris 8's {/usr,}/bin/sh.
5566 touch sub/conftst$i.h
5567 done
5568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5571 # mode. It turns out that the SunPro C++ compiler does not properly
5572 # handle `-M -o', and we need to detect this. Also, some Intel
5573 # versions had trouble with output in subdirs
5574 am__obj=sub/conftest.${OBJEXT-o}
5575 am__minus_obj="-o $am__obj"
5576 case $depmode in
5577 gcc)
5578 # This depmode causes a compiler race in universal mode.
5579 test "$am__universal" = false || continue
5581 nosideeffect)
5582 # after this tag, mechanisms are not by side-effect, so they'll
5583 # only be used when explicitly requested
5584 if test "x$enable_dependency_tracking" = xyes; then
5585 continue
5586 else
5587 break
5590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5591 # This compiler won't grok `-c -o', but also, the minuso test has
5592 # not run yet. These depmodes are late enough in the game, and
5593 # so weak that their functioning should not be impacted.
5594 am__obj=conftest.${OBJEXT-o}
5595 am__minus_obj=
5597 none) break ;;
5598 esac
5599 if depmode=$depmode \
5600 source=sub/conftest.c object=$am__obj \
5601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5603 >/dev/null 2>conftest.err &&
5604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5608 # icc doesn't choke on unknown options, it will just issue warnings
5609 # or remarks (even with -Werror). So we grep stderr for any message
5610 # that says an option was ignored or not supported.
5611 # When given -MP, icc 7.0 and 7.1 complain thusly:
5612 # icc: Command line warning: ignoring option '-M'; no argument required
5613 # The diagnosis changed in icc 8.0:
5614 # icc: Command line remark: option '-MP' not supported
5615 if (grep 'ignoring option' conftest.err ||
5616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5617 am_cv_CC_dependencies_compiler_type=$depmode
5618 break
5621 done
5623 cd ..
5624 rm -rf conftest.dir
5625 else
5626 am_cv_CC_dependencies_compiler_type=none
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5631 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5632 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5635 test "x$enable_dependency_tracking" != xno \
5636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5637 am__fastdepCC_TRUE=
5638 am__fastdepCC_FALSE='#'
5639 else
5640 am__fastdepCC_TRUE='#'
5641 am__fastdepCC_FALSE=
5649 if test "x$CC" != xcc; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5651 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5654 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5656 set dummy $CC; ac_cc=`$as_echo "$2" |
5657 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5658 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5665 main ()
5669 return 0;
5671 _ACEOF
5672 # Make sure it works both with $CC and with simple cc.
5673 # We do the test twice because some compilers refuse to overwrite an
5674 # existing .o file with -o, though they will create one.
5675 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5676 rm -f conftest2.*
5677 if { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; } &&
5687 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692 $as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; };
5697 then
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5699 if test "x$CC" != xcc; then
5700 # Test first that cc exists at all.
5701 if { ac_try='cc -c conftest.$ac_ext >&5'
5702 { { case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707 $as_echo "$ac_try_echo"; } >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }; }; then
5712 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5713 rm -f conftest2.*
5714 if { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719 $as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; } &&
5724 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5729 $as_echo "$ac_try_echo"; } >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; };
5734 then
5735 # cc works too.
5737 else
5738 # cc exists but doesn't like -o.
5739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5743 else
5744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5746 rm -f core conftest*
5749 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5756 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5760 # FIXME: we rely on the cache variable name because
5761 # there is no other way.
5762 set dummy $CC
5763 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5764 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5765 if test "$am_t" != yes; then
5766 # Losing compiler, so override with the script.
5767 # FIXME: It is wrong to rewrite CC.
5768 # But if we don't then we get into trouble of one sort or another.
5769 # A longer-term fix would be to have automake use am__CC in this case,
5770 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5771 CC="$am_aux_dir/compile $CC"
5776 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5777 if test "x$GCC" = "xyes"; then
5778 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5779 ## We like to use C11 and C99 routines when available. This makes
5780 ## sure that
5781 ## __STDC_VERSION__ is set such that libc includes make them available.
5782 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5783 ## Compile the following tests with the same system header contents
5784 ## that we'll encounter when compiling our own source files.
5785 CFLAGS="-std=gnu11 $CFLAGS"
5791 # Check for symbol versioning (copied from libssp).
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5793 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5794 # Check whether --enable-symvers was given.
5795 if test "${enable_symvers+set}" = set; then :
5796 enableval=$enable_symvers; gfortran_use_symver=$enableval
5797 else
5798 gfortran_use_symver=yes
5801 if test "x$gfortran_use_symver" != xno; then
5802 save_LDFLAGS="$LDFLAGS"
5803 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5804 cat > conftest.map <<EOF
5805 FOO_1.0 {
5806 global: *foo*; bar; local: *;
5809 if test x$gcc_no_link = xyes; then
5810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int foo;
5816 main ()
5820 return 0;
5822 _ACEOF
5823 if ac_fn_c_try_link "$LINENO"; then :
5824 gfortran_use_symver=gnu
5825 else
5826 gfortran_use_symver=no
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830 if test x$gfortran_use_symver = xno; then
5831 case "$target_os" in
5832 solaris2*)
5833 LDFLAGS="$save_LDFLAGS"
5834 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5835 # Sun ld cannot handle wildcards and treats all entries as undefined.
5836 cat > conftest.map <<EOF
5837 FOO_1.0 {
5838 global: foo; local: *;
5841 if test x$gcc_no_link = xyes; then
5842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 int foo;
5848 main ()
5852 return 0;
5854 _ACEOF
5855 if ac_fn_c_try_link "$LINENO"; then :
5856 gfortran_use_symver=sun
5857 else
5858 gfortran_use_symver=no
5860 rm -f core conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5863 esac
5865 LDFLAGS="$save_LDFLAGS"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5868 $as_echo "$gfortran_use_symver" >&6; }
5869 if test "x$gfortran_use_symver" != xno; then
5870 LIBGFOR_USE_SYMVER_TRUE=
5871 LIBGFOR_USE_SYMVER_FALSE='#'
5872 else
5873 LIBGFOR_USE_SYMVER_TRUE='#'
5874 LIBGFOR_USE_SYMVER_FALSE=
5877 if test "x$gfortran_use_symver" = xgnu; then
5878 LIBGFOR_USE_SYMVER_GNU_TRUE=
5879 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5880 else
5881 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5882 LIBGFOR_USE_SYMVER_GNU_FALSE=
5885 if test "x$gfortran_use_symver" = xsun; then
5886 LIBGFOR_USE_SYMVER_SUN_TRUE=
5887 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5888 else
5889 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5890 LIBGFOR_USE_SYMVER_SUN_FALSE=
5894 # For GPU offloading, not everything in libfortran can be supported.
5895 # Currently, the only target that has this problem is nvptx. The
5896 # following is a (partial) list of features that are unsupportable on
5897 # this particular target:
5898 # * Constructors
5899 # * alloca
5900 # * C library support for I/O, with printf as the one notable exception
5901 # * C library support for other features such as signal, environment
5902 # variables, time functions
5904 if test "x${target_cpu}" = xnvptx; then
5905 LIBGFOR_MINIMAL_TRUE=
5906 LIBGFOR_MINIMAL_FALSE='#'
5907 else
5908 LIBGFOR_MINIMAL_TRUE='#'
5909 LIBGFOR_MINIMAL_FALSE=
5913 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5914 # similarly to how libstdc++ does it
5915 ac_test_CFLAGS="${CFLAGS+set}"
5916 ac_save_CFLAGS="$CFLAGS"
5918 # Check for -ffunction-sections -fdata-sections
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5920 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5921 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5926 main ()
5928 int foo;
5930 return 0;
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934 ac_fdsections=yes
5935 else
5936 ac_fdsections=no
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 if test "$ac_test_CFLAGS" = set; then
5940 CFLAGS="$ac_save_CFLAGS"
5941 else
5942 # this is the suspicious part
5943 CFLAGS=""
5945 if test x"$ac_fdsections" = x"yes"; then
5946 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5949 $as_echo "$ac_fdsections" >&6; }
5952 # Check linker hardware capability support.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5954 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5955 if test "${ac_cv_path_SED+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5959 for ac_i in 1 2 3 4 5 6 7; do
5960 ac_script="$ac_script$as_nl$ac_script"
5961 done
5962 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5963 { ac_script=; unset ac_script;}
5964 if test -z "$SED"; then
5965 ac_path_SED_found=false
5966 # Loop through the user's path and test for each of PROGNAME-LIST
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_prog in sed gsed; do
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5975 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5976 # Check for GNU ac_path_SED and select it if it is found.
5977 # Check for GNU $ac_path_SED
5978 case `"$ac_path_SED" --version 2>&1` in
5979 *GNU*)
5980 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5982 ac_count=0
5983 $as_echo_n 0123456789 >"conftest.in"
5984 while :
5986 cat "conftest.in" "conftest.in" >"conftest.tmp"
5987 mv "conftest.tmp" "conftest.in"
5988 cp "conftest.in" "conftest.nl"
5989 $as_echo '' >> "conftest.nl"
5990 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5992 as_fn_arith $ac_count + 1 && ac_count=$as_val
5993 if test $ac_count -gt ${ac_path_SED_max-0}; then
5994 # Best one so far, save it but keep looking for a better one
5995 ac_cv_path_SED="$ac_path_SED"
5996 ac_path_SED_max=$ac_count
5998 # 10*(2^10) chars as input seems more than enough
5999 test $ac_count -gt 10 && break
6000 done
6001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 esac
6004 $ac_path_SED_found && break 3
6005 done
6006 done
6007 done
6008 IFS=$as_save_IFS
6009 if test -z "$ac_cv_path_SED"; then
6010 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6012 else
6013 ac_cv_path_SED=$SED
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6018 $as_echo "$ac_cv_path_SED" >&6; }
6019 SED="$ac_cv_path_SED"
6020 rm -f conftest.sed
6022 test -z "$SED" && SED=sed
6023 Xsed="$SED -e 1s/^X//"
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6036 $as_echo_n "checking for fgrep... " >&6; }
6037 if test "${ac_cv_path_FGREP+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6041 then ac_cv_path_FGREP="$GREP -F"
6042 else
6043 if test -z "$FGREP"; then
6044 ac_path_FGREP_found=false
6045 # Loop through the user's path and test for each of PROGNAME-LIST
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_prog in fgrep; do
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6054 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6055 # Check for GNU ac_path_FGREP and select it if it is found.
6056 # Check for GNU $ac_path_FGREP
6057 case `"$ac_path_FGREP" --version 2>&1` in
6058 *GNU*)
6059 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6061 ac_count=0
6062 $as_echo_n 0123456789 >"conftest.in"
6063 while :
6065 cat "conftest.in" "conftest.in" >"conftest.tmp"
6066 mv "conftest.tmp" "conftest.in"
6067 cp "conftest.in" "conftest.nl"
6068 $as_echo 'FGREP' >> "conftest.nl"
6069 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6071 as_fn_arith $ac_count + 1 && ac_count=$as_val
6072 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6073 # Best one so far, save it but keep looking for a better one
6074 ac_cv_path_FGREP="$ac_path_FGREP"
6075 ac_path_FGREP_max=$ac_count
6077 # 10*(2^10) chars as input seems more than enough
6078 test $ac_count -gt 10 && break
6079 done
6080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081 esac
6083 $ac_path_FGREP_found && break 3
6084 done
6085 done
6086 done
6087 IFS=$as_save_IFS
6088 if test -z "$ac_cv_path_FGREP"; then
6089 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6091 else
6092 ac_cv_path_FGREP=$FGREP
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6098 $as_echo "$ac_cv_path_FGREP" >&6; }
6099 FGREP="$ac_cv_path_FGREP"
6102 test -z "$GREP" && GREP=grep
6120 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6125 $as_echo_n "checking how to print strings... " >&6; }
6126 # Test print first, because it will be a builtin if present.
6127 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6128 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6129 ECHO='print -r --'
6130 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='printf %s\n'
6132 else
6133 # Use this function as a fallback that always works.
6134 func_fallback_echo ()
6136 eval 'cat <<_LTECHO_EOF
6138 _LTECHO_EOF'
6140 ECHO='func_fallback_echo'
6143 # func_echo_all arg...
6144 # Invoke $ECHO with all args, space-separated.
6145 func_echo_all ()
6147 $ECHO ""
6150 case "$ECHO" in
6151 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6152 $as_echo "printf" >&6; } ;;
6153 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6154 $as_echo "print -r" >&6; } ;;
6155 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6156 $as_echo "cat" >&6; } ;;
6157 esac
6174 # Check whether --with-gnu-ld was given.
6175 if test "${with_gnu_ld+set}" = set; then :
6176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6177 else
6178 with_gnu_ld=no
6181 ac_prog=ld
6182 if test "$GCC" = yes; then
6183 # Check if gcc -print-prog-name=ld gives a path.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6185 $as_echo_n "checking for ld used by $CC... " >&6; }
6186 case $host in
6187 *-*-mingw*)
6188 # gcc leaves a trailing carriage return which upsets mingw
6189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6192 esac
6193 case $ac_prog in
6194 # Accept absolute paths.
6195 [\\/]* | ?:[\\/]*)
6196 re_direlt='/[^/][^/]*/\.\./'
6197 # Canonicalize the pathname of ld
6198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6201 done
6202 test -z "$LD" && LD="$ac_prog"
6205 # If it fails, then pretend we aren't using GCC.
6206 ac_prog=ld
6209 # If it is relative, then search for the first ld in PATH.
6210 with_gnu_ld=unknown
6212 esac
6213 elif test "$with_gnu_ld" = yes; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6215 $as_echo_n "checking for GNU ld... " >&6; }
6216 else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6218 $as_echo_n "checking for non-GNU ld... " >&6; }
6220 if test "${lt_cv_path_LD+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -z "$LD"; then
6224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6225 for ac_dir in $PATH; do
6226 IFS="$lt_save_ifs"
6227 test -z "$ac_dir" && ac_dir=.
6228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6229 lt_cv_path_LD="$ac_dir/$ac_prog"
6230 # Check to see if the program is GNU ld. I'd rather use --version,
6231 # but apparently some variants of GNU ld only accept -v.
6232 # Break only if it was the GNU/non-GNU ld that we prefer.
6233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6234 *GNU* | *'with BFD'*)
6235 test "$with_gnu_ld" != no && break
6238 test "$with_gnu_ld" != yes && break
6240 esac
6242 done
6243 IFS="$lt_save_ifs"
6244 else
6245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6249 LD="$lt_cv_path_LD"
6250 if test -n "$LD"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6252 $as_echo "$LD" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6257 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6259 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6260 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6264 case `$LD -v 2>&1 </dev/null` in
6265 *GNU* | *'with BFD'*)
6266 lt_cv_prog_gnu_ld=yes
6269 lt_cv_prog_gnu_ld=no
6271 esac
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6274 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6275 with_gnu_ld=$lt_cv_prog_gnu_ld
6286 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6289 ac_save_LDFLAGS="$LDFLAGS"
6290 LDFLAGS="$LFLAGS -mclear-hwcap"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6293 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6294 if test x$gcc_no_link = xyes; then
6295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6301 main ()
6303 return 0;
6305 return 0;
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 ac_hwcap_ldflags=yes
6310 else
6311 ac_hwcap_ldflags=no
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 if test "$ac_hwcap_ldflags" = "yes"; then
6316 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6319 $as_echo "$ac_hwcap_ldflags" >&6; }
6321 LDFLAGS="$ac_save_LDFLAGS"
6325 if test $ac_hwcap_ldflags != no; then
6326 HAVE_HWCAP_TRUE=
6327 HAVE_HWCAP_FALSE='#'
6328 else
6329 HAVE_HWCAP_TRUE='#'
6330 HAVE_HWCAP_FALSE=
6335 # Find other programs we need.
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}as; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_AS+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$AS"; then
6345 ac_cv_prog_AS="$AS" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_AS="${ac_tool_prefix}as"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6364 AS=$ac_cv_prog_AS
6365 if test -n "$AS"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6367 $as_echo "$AS" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6375 if test -z "$ac_cv_prog_AS"; then
6376 ac_ct_AS=$AS
6377 # Extract the first word of "as", so it can be a program name with args.
6378 set dummy as; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$ac_ct_AS"; then
6385 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_AS="as"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6400 IFS=$as_save_IFS
6404 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6405 if test -n "$ac_ct_AS"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6407 $as_echo "$ac_ct_AS" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6413 if test "x$ac_ct_AS" = x; then
6414 AS=""
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422 AS=$ac_ct_AS
6424 else
6425 AS="$ac_cv_prog_AS"
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}ar; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_AR+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$AR"; then
6437 ac_cv_prog_AR="$AR" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_AR="${ac_tool_prefix}ar"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 AR=$ac_cv_prog_AR
6457 if test -n "$AR"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6459 $as_echo "$AR" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6467 if test -z "$ac_cv_prog_AR"; then
6468 ac_ct_AR=$AR
6469 # Extract the first word of "ar", so it can be a program name with args.
6470 set dummy ar; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$ac_ct_AR"; then
6477 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_AR="ar"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6490 done
6491 done
6492 IFS=$as_save_IFS
6496 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6497 if test -n "$ac_ct_AR"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6499 $as_echo "$ac_ct_AR" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6505 if test "x$ac_ct_AR" = x; then
6506 AR=""
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514 AR=$ac_ct_AR
6516 else
6517 AR="$ac_cv_prog_AR"
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$RANLIB"; then
6529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 RANLIB=$ac_cv_prog_RANLIB
6549 if test -n "$RANLIB"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6551 $as_echo "$RANLIB" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6559 if test -z "$ac_cv_prog_RANLIB"; then
6560 ac_ct_RANLIB=$RANLIB
6561 # Extract the first word of "ranlib", so it can be a program name with args.
6562 set dummy ranlib; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$ac_ct_RANLIB"; then
6569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_RANLIB="ranlib"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6582 done
6583 done
6584 IFS=$as_save_IFS
6588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589 if test -n "$ac_ct_RANLIB"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6591 $as_echo "$ac_ct_RANLIB" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6597 if test "x$ac_ct_RANLIB" = x; then
6598 RANLIB="ranlib-not-found-in-path-error"
6599 else
6600 case $cross_compiling:$ac_tool_warned in
6601 yes:)
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604 ac_tool_warned=yes ;;
6605 esac
6606 RANLIB=$ac_ct_RANLIB
6608 else
6609 RANLIB="$ac_cv_prog_RANLIB"
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6614 set x ${MAKE-make}
6615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6616 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 cat >conftest.make <<\_ACEOF
6620 SHELL = /bin/sh
6621 all:
6622 @echo '@@@%%%=$(MAKE)=@@@%%%'
6623 _ACEOF
6624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6626 *@@@%%%=?*=@@@%%%*)
6627 eval ac_cv_prog_make_${ac_make}_set=yes;;
6629 eval ac_cv_prog_make_${ac_make}_set=no;;
6630 esac
6631 rm -f conftest.make
6633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }
6636 SET_MAKE=
6637 else
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 SET_MAKE="MAKE=${MAKE-make}"
6645 # Configure libtool
6646 #AC_MSG_NOTICE([====== Starting libtool configuration])
6647 enable_dlopen=yes
6651 case `pwd` in
6652 *\ * | *\ *)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6654 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6655 esac
6659 macro_version='2.2.7a'
6660 macro_revision='1.3134'
6674 ltmain="$ac_aux_dir/ltmain.sh"
6676 # Backslashify metacharacters that are still active within
6677 # double-quoted strings.
6678 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6680 # Same as above, but do not quote variable references.
6681 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6683 # Sed substitution to delay expansion of an escaped shell variable in a
6684 # double_quote_subst'ed string.
6685 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6687 # Sed substitution to delay expansion of an escaped single quote.
6688 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6690 # Sed substitution to avoid accidental globbing in evaled expressions
6691 no_glob_subst='s/\*/\\\*/g'
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695 if test "${lt_cv_path_NM+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$NM"; then
6699 # Let the user override the test.
6700 lt_cv_path_NM="$NM"
6701 else
6702 lt_nm_to_check="${ac_tool_prefix}nm"
6703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6704 lt_nm_to_check="$lt_nm_to_check nm"
6706 for lt_tmp_nm in $lt_nm_to_check; do
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6709 IFS="$lt_save_ifs"
6710 test -z "$ac_dir" && ac_dir=.
6711 tmp_nm="$ac_dir/$lt_tmp_nm"
6712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6713 # Check to see if the nm accepts a BSD-compat flag.
6714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6715 # nm: unknown option "B" ignored
6716 # Tru64's nm complains that /dev/null is an invalid object file
6717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6718 */dev/null* | *'Invalid file or object type'*)
6719 lt_cv_path_NM="$tmp_nm -B"
6720 break
6723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6724 */dev/null*)
6725 lt_cv_path_NM="$tmp_nm -p"
6726 break
6729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6730 continue # so that we can try to find one that supports BSD flags
6732 esac
6734 esac
6736 done
6737 IFS="$lt_save_ifs"
6738 done
6739 : ${lt_cv_path_NM=no}
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743 $as_echo "$lt_cv_path_NM" >&6; }
6744 if test "$lt_cv_path_NM" != "no"; then
6745 NM="$lt_cv_path_NM"
6746 else
6747 # Didn't find any BSD compatible name lister, look for dumpbin.
6748 if test -n "$DUMPBIN"; then :
6749 # Let the user override the test.
6750 else
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in dumpbin "link -dump"
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$DUMPBIN"; then
6762 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6775 done
6776 done
6777 IFS=$as_save_IFS
6781 DUMPBIN=$ac_cv_prog_DUMPBIN
6782 if test -n "$DUMPBIN"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6784 $as_echo "$DUMPBIN" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6791 test -n "$DUMPBIN" && break
6792 done
6794 if test -z "$DUMPBIN"; then
6795 ac_ct_DUMPBIN=$DUMPBIN
6796 for ac_prog in dumpbin "link -dump"
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_DUMPBIN"; then
6806 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6826 if test -n "$ac_ct_DUMPBIN"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6828 $as_echo "$ac_ct_DUMPBIN" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6835 test -n "$ac_ct_DUMPBIN" && break
6836 done
6838 if test "x$ac_ct_DUMPBIN" = x; then
6839 DUMPBIN=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 DUMPBIN=$ac_ct_DUMPBIN
6851 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6852 *COFF*)
6853 DUMPBIN="$DUMPBIN -symbols"
6856 DUMPBIN=:
6858 esac
6861 if test "$DUMPBIN" != ":"; then
6862 NM="$DUMPBIN"
6865 test -z "$NM" && NM=nm
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6874 if test "${lt_cv_nm_interface+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 lt_cv_nm_interface="BSD nm"
6878 echo "int some_variable = 0;" > conftest.$ac_ext
6879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6880 (eval "$ac_compile" 2>conftest.err)
6881 cat conftest.err >&5
6882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6884 cat conftest.err >&5
6885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6886 cat conftest.out >&5
6887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6888 lt_cv_nm_interface="MS dumpbin"
6890 rm -f conftest*
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6893 $as_echo "$lt_cv_nm_interface" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6896 $as_echo_n "checking whether ln -s works... " >&6; }
6897 LN_S=$as_ln_s
6898 if test "$LN_S" = "ln -s"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6903 $as_echo "no, using $LN_S" >&6; }
6906 # find the maximum length of command line arguments
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6909 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6913 teststring="ABCD"
6915 case $build_os in
6916 msdosdjgpp*)
6917 # On DJGPP, this test can blow up pretty badly due to problems in libc
6918 # (any single argument exceeding 2000 bytes causes a buffer overrun
6919 # during glob expansion). Even if it were fixed, the result of this
6920 # check would be larger than it should be.
6921 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6924 gnu*)
6925 # Under GNU Hurd, this test is not required because there is
6926 # no limit to the length of command line arguments.
6927 # Libtool will interpret -1 as no limit whatsoever
6928 lt_cv_sys_max_cmd_len=-1;
6931 cygwin* | mingw* | cegcc*)
6932 # On Win9x/ME, this test blows up -- it succeeds, but takes
6933 # about 5 minutes as the teststring grows exponentially.
6934 # Worse, since 9x/ME are not pre-emptively multitasking,
6935 # you end up with a "frozen" computer, even though with patience
6936 # the test eventually succeeds (with a max line length of 256k).
6937 # Instead, let's just punt: use the minimum linelength reported by
6938 # all of the supported platforms: 8192 (on NT/2K/XP).
6939 lt_cv_sys_max_cmd_len=8192;
6942 mint*)
6943 # On MiNT this can take a long time and run out of memory.
6944 lt_cv_sys_max_cmd_len=8192;
6947 amigaos*)
6948 # On AmigaOS with pdksh, this test takes hours, literally.
6949 # So we just punt and use a minimum line length of 8192.
6950 lt_cv_sys_max_cmd_len=8192;
6953 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6954 # This has been around since 386BSD, at least. Likely further.
6955 if test -x /sbin/sysctl; then
6956 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6957 elif test -x /usr/sbin/sysctl; then
6958 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6959 else
6960 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6962 # And add a safety zone
6963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6967 interix*)
6968 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6969 lt_cv_sys_max_cmd_len=196608
6972 osf*)
6973 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6974 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6975 # nice to cause kernel panics so lets avoid the loop below.
6976 # First set a reasonable default.
6977 lt_cv_sys_max_cmd_len=16384
6979 if test -x /sbin/sysconfig; then
6980 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6981 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6982 esac
6985 sco3.2v5*)
6986 lt_cv_sys_max_cmd_len=102400
6988 sysv5* | sco5v6* | sysv4.2uw2*)
6989 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6990 if test -n "$kargmax"; then
6991 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6992 else
6993 lt_cv_sys_max_cmd_len=32768
6997 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6998 if test -n "$lt_cv_sys_max_cmd_len"; then
6999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7001 else
7002 # Make teststring a little bigger before we do anything with it.
7003 # a 1K string should be a reasonable start.
7004 for i in 1 2 3 4 5 6 7 8 ; do
7005 teststring=$teststring$teststring
7006 done
7007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7008 # If test is not a shell built-in, we'll probably end up computing a
7009 # maximum length that is only half of the actual maximum length, but
7010 # we can't tell.
7011 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7013 test $i != 17 # 1/2 MB should be enough
7015 i=`expr $i + 1`
7016 teststring=$teststring$teststring
7017 done
7018 # Only check the string length outside the loop.
7019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7020 teststring=
7021 # Add a significant safety factor because C++ compilers can tack on
7022 # massive amounts of additional arguments before passing them to the
7023 # linker. It appears as though 1/2 is a usable value.
7024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7027 esac
7031 if test -n $lt_cv_sys_max_cmd_len ; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7033 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7036 $as_echo "none" >&6; }
7038 max_cmd_len=$lt_cv_sys_max_cmd_len
7045 : ${CP="cp -f"}
7046 : ${MV="mv -f"}
7047 : ${RM="rm -f"}
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7050 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7051 # Try some XSI features
7052 xsi_shell=no
7053 ( _lt_dummy="a/b/c"
7054 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7055 = c,a/b,, \
7056 && eval 'test $(( 1 + 1 )) -eq 2 \
7057 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7058 && xsi_shell=yes
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7060 $as_echo "$xsi_shell" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7064 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7065 lt_shell_append=no
7066 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7067 >/dev/null 2>&1 \
7068 && lt_shell_append=yes
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7070 $as_echo "$lt_shell_append" >&6; }
7073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7074 lt_unset=unset
7075 else
7076 lt_unset=false
7083 # test EBCDIC or ASCII
7084 case `echo X|tr X '\101'` in
7085 A) # ASCII based system
7086 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7087 lt_SP2NL='tr \040 \012'
7088 lt_NL2SP='tr \015\012 \040\040'
7090 *) # EBCDIC based system
7091 lt_SP2NL='tr \100 \n'
7092 lt_NL2SP='tr \r\n \100\100'
7094 esac
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7105 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7106 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 lt_cv_ld_reload_flag='-r'
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7112 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7113 reload_flag=$lt_cv_ld_reload_flag
7114 case $reload_flag in
7115 "" | " "*) ;;
7116 *) reload_flag=" $reload_flag" ;;
7117 esac
7118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7119 case $host_os in
7120 darwin*)
7121 if test "$GCC" = yes; then
7122 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7123 else
7124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7127 esac
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$OBJDUMP"; then
7146 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 OBJDUMP=$ac_cv_prog_OBJDUMP
7166 if test -n "$OBJDUMP"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7168 $as_echo "$OBJDUMP" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7176 if test -z "$ac_cv_prog_OBJDUMP"; then
7177 ac_ct_OBJDUMP=$OBJDUMP
7178 # Extract the first word of "objdump", so it can be a program name with args.
7179 set dummy objdump; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_OBJDUMP"; then
7186 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7199 done
7200 done
7201 IFS=$as_save_IFS
7205 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7206 if test -n "$ac_ct_OBJDUMP"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7208 $as_echo "$ac_ct_OBJDUMP" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7214 if test "x$ac_ct_OBJDUMP" = x; then
7215 OBJDUMP="false"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 OBJDUMP=$ac_ct_OBJDUMP
7225 else
7226 OBJDUMP="$ac_cv_prog_OBJDUMP"
7229 test -z "$OBJDUMP" && OBJDUMP=objdump
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7240 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7241 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 lt_cv_file_magic_cmd='$MAGIC_CMD'
7245 lt_cv_file_magic_test_file=
7246 lt_cv_deplibs_check_method='unknown'
7247 # Need to set the preceding variable on all platforms that support
7248 # interlibrary dependencies.
7249 # 'none' -- dependencies not supported.
7250 # `unknown' -- same as none, but documents that we really don't know.
7251 # 'pass_all' -- all dependencies passed with no checks.
7252 # 'test_compile' -- check by making test program.
7253 # 'file_magic [[regex]]' -- check by looking for files in library path
7254 # which responds to the $file_magic_cmd with a given extended regex.
7255 # If you have `file' or equivalent on your system and you're not sure
7256 # whether `pass_all' will *always* work, you probably want this one.
7258 case $host_os in
7259 aix[4-9]*)
7260 lt_cv_deplibs_check_method=pass_all
7263 beos*)
7264 lt_cv_deplibs_check_method=pass_all
7267 bsdi[45]*)
7268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7269 lt_cv_file_magic_cmd='/usr/bin/file -L'
7270 lt_cv_file_magic_test_file=/shlib/libc.so
7273 cygwin*)
7274 # func_win32_libid is a shell function defined in ltmain.sh
7275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7276 lt_cv_file_magic_cmd='func_win32_libid'
7279 mingw* | pw32*)
7280 # Base MSYS/MinGW do not provide the 'file' command needed by
7281 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7282 # unless we find 'file', for example because we are cross-compiling.
7283 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7284 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7286 lt_cv_file_magic_cmd='func_win32_libid'
7287 else
7288 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7289 lt_cv_file_magic_cmd='$OBJDUMP -f'
7293 cegcc*)
7294 # use the weaker test based on 'objdump'. See mingw*.
7295 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7296 lt_cv_file_magic_cmd='$OBJDUMP -f'
7299 darwin* | rhapsody*)
7300 lt_cv_deplibs_check_method=pass_all
7303 freebsd* | dragonfly*)
7304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7305 case $host_cpu in
7306 i*86 )
7307 # Not sure whether the presence of OpenBSD here was a mistake.
7308 # Let's accept both of them until this is cleared up.
7309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7310 lt_cv_file_magic_cmd=/usr/bin/file
7311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7313 esac
7314 else
7315 lt_cv_deplibs_check_method=pass_all
7319 gnu*)
7320 lt_cv_deplibs_check_method=pass_all
7323 haiku*)
7324 lt_cv_deplibs_check_method=pass_all
7327 hpux10.20* | hpux11*)
7328 lt_cv_file_magic_cmd=/usr/bin/file
7329 case $host_cpu in
7330 ia64*)
7331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7334 hppa*64*)
7335 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]'
7336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7342 esac
7345 interix[3-9]*)
7346 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7350 irix5* | irix6* | nonstopux*)
7351 case $LD in
7352 *-32|*"-32 ") libmagic=32-bit;;
7353 *-n32|*"-n32 ") libmagic=N32;;
7354 *-64|*"-64 ") libmagic=64-bit;;
7355 *) libmagic=never-match;;
7356 esac
7357 lt_cv_deplibs_check_method=pass_all
7360 # This must be Linux ELF.
7361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7362 lt_cv_deplibs_check_method=pass_all
7365 netbsd*)
7366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7368 else
7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7373 newos6*)
7374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7375 lt_cv_file_magic_cmd=/usr/bin/file
7376 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7379 *nto* | *qnx*)
7380 lt_cv_deplibs_check_method=pass_all
7383 openbsd*)
7384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7386 else
7387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7391 osf3* | osf4* | osf5*)
7392 lt_cv_deplibs_check_method=pass_all
7395 rdos*)
7396 lt_cv_deplibs_check_method=pass_all
7399 solaris*)
7400 lt_cv_deplibs_check_method=pass_all
7403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7404 lt_cv_deplibs_check_method=pass_all
7407 sysv4 | sysv4.3*)
7408 case $host_vendor in
7409 motorola)
7410 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]'
7411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7413 ncr)
7414 lt_cv_deplibs_check_method=pass_all
7416 sequent)
7417 lt_cv_file_magic_cmd='/bin/file'
7418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7420 sni)
7421 lt_cv_file_magic_cmd='/bin/file'
7422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7423 lt_cv_file_magic_test_file=/lib/libc.so
7425 siemens)
7426 lt_cv_deplibs_check_method=pass_all
7429 lt_cv_deplibs_check_method=pass_all
7431 esac
7434 tpf*)
7435 lt_cv_deplibs_check_method=pass_all
7437 esac
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7441 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7442 file_magic_cmd=$lt_cv_file_magic_cmd
7443 deplibs_check_method=$lt_cv_deplibs_check_method
7444 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7457 if test -n "$ac_tool_prefix"; then
7458 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}ar; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if test "${ac_cv_prog_AR+set}" = set; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 if test -n "$AR"; then
7466 ac_cv_prog_AR="$AR" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_prog_AR="${ac_tool_prefix}ar"
7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7479 done
7480 done
7481 IFS=$as_save_IFS
7485 AR=$ac_cv_prog_AR
7486 if test -n "$AR"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7488 $as_echo "$AR" >&6; }
7489 else
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7496 if test -z "$ac_cv_prog_AR"; then
7497 ac_ct_AR=$AR
7498 # Extract the first word of "ar", so it can be a program name with args.
7499 set dummy ar; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$ac_ct_AR"; then
7506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_ac_ct_AR="ar"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7526 if test -n "$ac_ct_AR"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7528 $as_echo "$ac_ct_AR" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7534 if test "x$ac_ct_AR" = x; then
7535 AR="false"
7536 else
7537 case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543 AR=$ac_ct_AR
7545 else
7546 AR="$ac_cv_prog_AR"
7549 test -z "$AR" && AR=ar
7550 test -z "$AR_FLAGS" && AR_FLAGS=cru
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}strip; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if test "${ac_cv_prog_STRIP+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 if test -n "$STRIP"; then
7571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7584 done
7585 done
7586 IFS=$as_save_IFS
7590 STRIP=$ac_cv_prog_STRIP
7591 if test -n "$STRIP"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7593 $as_echo "$STRIP" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7601 if test -z "$ac_cv_prog_STRIP"; then
7602 ac_ct_STRIP=$STRIP
7603 # Extract the first word of "strip", so it can be a program name with args.
7604 set dummy strip; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$ac_ct_STRIP"; then
7611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_ac_ct_STRIP="strip"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7624 done
7625 done
7626 IFS=$as_save_IFS
7630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7631 if test -n "$ac_ct_STRIP"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7633 $as_echo "$ac_ct_STRIP" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7639 if test "x$ac_ct_STRIP" = x; then
7640 STRIP=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643 yes:)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7647 esac
7648 STRIP=$ac_ct_STRIP
7650 else
7651 STRIP="$ac_cv_prog_STRIP"
7654 test -z "$STRIP" && STRIP=:
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$RANLIB"; then
7670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 RANLIB=$ac_cv_prog_RANLIB
7690 if test -n "$RANLIB"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7692 $as_echo "$RANLIB" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7700 if test -z "$ac_cv_prog_RANLIB"; then
7701 ac_ct_RANLIB=$RANLIB
7702 # Extract the first word of "ranlib", so it can be a program name with args.
7703 set dummy ranlib; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test -n "$ac_ct_RANLIB"; then
7710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_prog_ac_ct_RANLIB="ranlib"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7725 IFS=$as_save_IFS
7729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730 if test -n "$ac_ct_RANLIB"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7732 $as_echo "$ac_ct_RANLIB" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_ct_RANLIB" = x; then
7739 RANLIB=":"
7740 else
7741 case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747 RANLIB=$ac_ct_RANLIB
7749 else
7750 RANLIB="$ac_cv_prog_RANLIB"
7753 test -z "$RANLIB" && RANLIB=:
7760 # Determine commands to create old-style static archives.
7761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7762 old_postinstall_cmds='chmod 644 $oldlib'
7763 old_postuninstall_cmds=
7765 if test -n "$RANLIB"; then
7766 case $host_os in
7767 openbsd*)
7768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7773 esac
7774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7777 case $host_os in
7778 darwin*)
7779 lock_old_archive_extraction=yes ;;
7781 lock_old_archive_extraction=no ;;
7782 esac
7822 # If no C compiler was specified, use CC.
7823 LTCC=${LTCC-"$CC"}
7825 # If no C compiler flags were specified, use CFLAGS.
7826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7828 # Allow CC to be a program name with arguments.
7829 compiler=$CC
7832 # Check for command to grab the raw symbol name followed by C symbol from nm.
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7834 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7835 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7839 # These are sane defaults that work on at least a few old systems.
7840 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7842 # Character class describing NM global symbol codes.
7843 symcode='[BCDEGRST]'
7845 # Regexp to match symbols that can be accessed directly from C.
7846 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7848 # Define system-specific variables.
7849 case $host_os in
7850 aix*)
7851 symcode='[BCDT]'
7853 cygwin* | mingw* | pw32* | cegcc*)
7854 symcode='[ABCDGISTW]'
7856 hpux*)
7857 if test "$host_cpu" = ia64; then
7858 symcode='[ABCDEGRST]'
7861 irix* | nonstopux*)
7862 symcode='[BCDEGRST]'
7864 osf*)
7865 symcode='[BCDEGQRST]'
7867 solaris*)
7868 symcode='[BDRT]'
7870 sco3.2v5*)
7871 symcode='[DT]'
7873 sysv4.2uw2*)
7874 symcode='[DT]'
7876 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7877 symcode='[ABDT]'
7879 sysv4)
7880 symcode='[DFNSTU]'
7882 esac
7884 # If we're using GNU nm, then use its standard symbol codes.
7885 case `$NM -V 2>&1` in
7886 *GNU* | *'with BFD'*)
7887 symcode='[ABCDGIRSTW]' ;;
7888 esac
7890 # Transform an extracted symbol line into a proper C declaration.
7891 # Some systems (esp. on ia64) link data and code symbols differently,
7892 # so use this general approach.
7893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7895 # Transform an extracted symbol line into symbol name and symbol address
7896 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7897 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'"
7899 # Handle CRLF in mingw tool chain
7900 opt_cr=
7901 case $build_os in
7902 mingw*)
7903 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7905 esac
7907 # Try without a prefix underscore, then with it.
7908 for ac_symprfx in "" "_"; do
7910 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7911 symxfrm="\\1 $ac_symprfx\\2 \\2"
7913 # Write the raw and C identifiers.
7914 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7915 # Fake it for dumpbin and say T for any non-static function
7916 # and D for any global variable.
7917 # Also find C++ and __fastcall symbols from MSVC++,
7918 # which start with @ or ?.
7919 lt_cv_sys_global_symbol_pipe="$AWK '"\
7920 " {last_section=section; section=\$ 3};"\
7921 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7922 " \$ 0!~/External *\|/{next};"\
7923 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7924 " {if(hide[section]) next};"\
7925 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7926 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7927 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7928 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7929 " ' prfx=^$ac_symprfx"
7930 else
7931 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7934 # Check to see that the pipe works correctly.
7935 pipe_works=no
7937 rm -f conftest*
7938 cat > conftest.$ac_ext <<_LT_EOF
7939 #ifdef __cplusplus
7940 extern "C" {
7941 #endif
7942 char nm_test_var;
7943 void nm_test_func(void);
7944 void nm_test_func(void){}
7945 #ifdef __cplusplus
7947 #endif
7948 int main(){nm_test_var='a';nm_test_func();return(0);}
7949 _LT_EOF
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952 (eval $ac_compile) 2>&5
7953 ac_status=$?
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
7956 # Now try to grab the symbols.
7957 nlist=conftest.nm
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7959 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; } && test -s "$nlist"; then
7963 # Try sorting and uniquifying the output.
7964 if sort "$nlist" | uniq > "$nlist"T; then
7965 mv -f "$nlist"T "$nlist"
7966 else
7967 rm -f "$nlist"T
7970 # Make sure that we snagged all the symbols we need.
7971 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7972 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7973 cat <<_LT_EOF > conftest.$ac_ext
7974 #ifdef __cplusplus
7975 extern "C" {
7976 #endif
7978 _LT_EOF
7979 # Now generate the symbol file.
7980 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7982 cat <<_LT_EOF >> conftest.$ac_ext
7984 /* The mapping between symbol names and symbols. */
7985 const struct {
7986 const char *name;
7987 void *address;
7989 lt__PROGRAM__LTX_preloaded_symbols[] =
7991 { "@PROGRAM@", (void *) 0 },
7992 _LT_EOF
7993 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7994 cat <<\_LT_EOF >> conftest.$ac_ext
7995 {0, (void *) 0}
7998 /* This works around a problem in FreeBSD linker */
7999 #ifdef FREEBSD_WORKAROUND
8000 static const void *lt_preloaded_setup() {
8001 return lt__PROGRAM__LTX_preloaded_symbols;
8003 #endif
8005 #ifdef __cplusplus
8007 #endif
8008 _LT_EOF
8009 # Now try linking the two files.
8010 mv conftest.$ac_objext conftstm.$ac_objext
8011 lt_save_LIBS="$LIBS"
8012 lt_save_CFLAGS="$CFLAGS"
8013 LIBS="conftstm.$ac_objext"
8014 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8016 (eval $ac_link) 2>&5
8017 ac_status=$?
8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8020 pipe_works=yes
8022 LIBS="$lt_save_LIBS"
8023 CFLAGS="$lt_save_CFLAGS"
8024 else
8025 echo "cannot find nm_test_func in $nlist" >&5
8027 else
8028 echo "cannot find nm_test_var in $nlist" >&5
8030 else
8031 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8033 else
8034 echo "$progname: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8037 rm -rf conftest* conftst*
8039 # Do not use the global_symbol_pipe unless it works.
8040 if test "$pipe_works" = yes; then
8041 break
8042 else
8043 lt_cv_sys_global_symbol_pipe=
8045 done
8049 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8050 lt_cv_sys_global_symbol_to_cdecl=
8052 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8054 $as_echo "failed" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8057 $as_echo "ok" >&6; }
8081 # Check whether --enable-libtool-lock was given.
8082 if test "${enable_libtool_lock+set}" = set; then :
8083 enableval=$enable_libtool_lock;
8086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8088 # Some flags need to be propagated to the compiler or linker for good
8089 # libtool support.
8090 case $host in
8091 ia64-*-hpux*)
8092 # Find out which ABI we are using.
8093 echo 'int i;' > conftest.$ac_ext
8094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8095 (eval $ac_compile) 2>&5
8096 ac_status=$?
8097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098 test $ac_status = 0; }; then
8099 case `/usr/bin/file conftest.$ac_objext` in
8100 *ELF-32*)
8101 HPUX_IA64_MODE="32"
8103 *ELF-64*)
8104 HPUX_IA64_MODE="64"
8106 esac
8108 rm -rf conftest*
8110 *-*-irix6*)
8111 # Find out which ABI we are using.
8112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }; then
8118 if test "$lt_cv_prog_gnu_ld" = yes; then
8119 case `/usr/bin/file conftest.$ac_objext` in
8120 *32-bit*)
8121 LD="${LD-ld} -melf32bsmip"
8123 *N32*)
8124 LD="${LD-ld} -melf32bmipn32"
8126 *64-bit*)
8127 LD="${LD-ld} -melf64bmip"
8129 esac
8130 else
8131 case `/usr/bin/file conftest.$ac_objext` in
8132 *32-bit*)
8133 LD="${LD-ld} -32"
8135 *N32*)
8136 LD="${LD-ld} -n32"
8138 *64-bit*)
8139 LD="${LD-ld} -64"
8141 esac
8144 rm -rf conftest*
8147 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8148 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8149 # Find out which ABI we are using.
8150 echo 'int i;' > conftest.$ac_ext
8151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8152 (eval $ac_compile) 2>&5
8153 ac_status=$?
8154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155 test $ac_status = 0; }; then
8156 case `/usr/bin/file conftest.o` in
8157 *32-bit*)
8158 case $host in
8159 x86_64-*kfreebsd*-gnu)
8160 LD="${LD-ld} -m elf_i386_fbsd"
8162 x86_64-*linux*)
8163 case `/usr/bin/file conftest.o` in
8164 *x86-64*)
8165 LD="${LD-ld} -m elf32_x86_64"
8168 LD="${LD-ld} -m elf_i386"
8170 esac
8172 powerpc64le-*linux*)
8173 LD="${LD-ld} -m elf32lppclinux"
8175 powerpc64-*linux*)
8176 LD="${LD-ld} -m elf32ppclinux"
8178 s390x-*linux*)
8179 LD="${LD-ld} -m elf_s390"
8181 sparc64-*linux*)
8182 LD="${LD-ld} -m elf32_sparc"
8184 esac
8186 *64-bit*)
8187 case $host in
8188 x86_64-*kfreebsd*-gnu)
8189 LD="${LD-ld} -m elf_x86_64_fbsd"
8191 x86_64-*linux*)
8192 LD="${LD-ld} -m elf_x86_64"
8194 powerpcle-*linux*)
8195 LD="${LD-ld} -m elf64lppc"
8197 powerpc-*linux*)
8198 LD="${LD-ld} -m elf64ppc"
8200 s390*-*linux*|s390*-*tpf*)
8201 LD="${LD-ld} -m elf64_s390"
8203 sparc*-*linux*)
8204 LD="${LD-ld} -m elf64_sparc"
8206 esac
8208 esac
8210 rm -rf conftest*
8213 *-*-sco3.2v5*)
8214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215 SAVE_CFLAGS="$CFLAGS"
8216 CFLAGS="$CFLAGS -belf"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8218 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8219 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228 if test x$gcc_no_link = xyes; then
8229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8235 main ()
8239 return 0;
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 lt_cv_cc_needs_belf=yes
8244 else
8245 lt_cv_cc_needs_belf=no
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 ac_ext=c
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8260 CFLAGS="$SAVE_CFLAGS"
8263 sparc*-*solaris*)
8264 # Find out which ABI we are using.
8265 echo 'int i;' > conftest.$ac_ext
8266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
8269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270 test $ac_status = 0; }; then
8271 case `/usr/bin/file conftest.o` in
8272 *64-bit*)
8273 case $lt_cv_prog_gnu_ld in
8274 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8276 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8277 LD="${LD-ld} -64"
8280 esac
8282 esac
8284 rm -rf conftest*
8286 esac
8288 need_locks="$enable_libtool_lock"
8291 case $host_os in
8292 rhapsody* | darwin*)
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$DSYMUTIL"; then
8302 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8321 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8322 if test -n "$DSYMUTIL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8324 $as_echo "$DSYMUTIL" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8332 if test -z "$ac_cv_prog_DSYMUTIL"; then
8333 ac_ct_DSYMUTIL=$DSYMUTIL
8334 # Extract the first word of "dsymutil", so it can be a program name with args.
8335 set dummy dsymutil; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 if test -n "$ac_ct_DSYMUTIL"; then
8342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8361 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8362 if test -n "$ac_ct_DSYMUTIL"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8364 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8370 if test "x$ac_ct_DSYMUTIL" = x; then
8371 DSYMUTIL=":"
8372 else
8373 case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379 DSYMUTIL=$ac_ct_DSYMUTIL
8381 else
8382 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$NMEDIT"; then
8394 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8413 NMEDIT=$ac_cv_prog_NMEDIT
8414 if test -n "$NMEDIT"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8416 $as_echo "$NMEDIT" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_prog_NMEDIT"; then
8425 ac_ct_NMEDIT=$NMEDIT
8426 # Extract the first word of "nmedit", so it can be a program name with args.
8427 set dummy nmedit; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$ac_ct_NMEDIT"; then
8434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8453 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8454 if test -n "$ac_ct_NMEDIT"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8456 $as_echo "$ac_ct_NMEDIT" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8462 if test "x$ac_ct_NMEDIT" = x; then
8463 NMEDIT=":"
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471 NMEDIT=$ac_ct_NMEDIT
8473 else
8474 NMEDIT="$ac_cv_prog_NMEDIT"
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_LIPO+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 if test -n "$LIPO"; then
8486 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8499 done
8500 done
8501 IFS=$as_save_IFS
8505 LIPO=$ac_cv_prog_LIPO
8506 if test -n "$LIPO"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8508 $as_echo "$LIPO" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 if test -z "$ac_cv_prog_LIPO"; then
8517 ac_ct_LIPO=$LIPO
8518 # Extract the first word of "lipo", so it can be a program name with args.
8519 set dummy lipo; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$ac_ct_LIPO"; then
8526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_ac_ct_LIPO="lipo"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8546 if test -n "$ac_ct_LIPO"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8548 $as_echo "$ac_ct_LIPO" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8554 if test "x$ac_ct_LIPO" = x; then
8555 LIPO=":"
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563 LIPO=$ac_ct_LIPO
8565 else
8566 LIPO="$ac_cv_prog_LIPO"
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}otool; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 if test -n "$OTOOL"; then
8578 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8591 done
8592 done
8593 IFS=$as_save_IFS
8597 OTOOL=$ac_cv_prog_OTOOL
8598 if test -n "$OTOOL"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8600 $as_echo "$OTOOL" >&6; }
8601 else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8608 if test -z "$ac_cv_prog_OTOOL"; then
8609 ac_ct_OTOOL=$OTOOL
8610 # Extract the first word of "otool", so it can be a program name with args.
8611 set dummy otool; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$ac_ct_OTOOL"; then
8618 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_OTOOL="otool"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8638 if test -n "$ac_ct_OTOOL"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8640 $as_echo "$ac_ct_OTOOL" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 if test "x$ac_ct_OTOOL" = x; then
8647 OTOOL=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655 OTOOL=$ac_ct_OTOOL
8657 else
8658 OTOOL="$ac_cv_prog_OTOOL"
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 if test -n "$OTOOL64"; then
8670 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8683 done
8684 done
8685 IFS=$as_save_IFS
8689 OTOOL64=$ac_cv_prog_OTOOL64
8690 if test -n "$OTOOL64"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8692 $as_echo "$OTOOL64" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8700 if test -z "$ac_cv_prog_OTOOL64"; then
8701 ac_ct_OTOOL64=$OTOOL64
8702 # Extract the first word of "otool64", so it can be a program name with args.
8703 set dummy otool64; ac_word=$2
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 if test -n "$ac_ct_OTOOL64"; then
8710 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_ac_ct_OTOOL64="otool64"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8723 done
8724 done
8725 IFS=$as_save_IFS
8729 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8730 if test -n "$ac_ct_OTOOL64"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8732 $as_echo "$ac_ct_OTOOL64" >&6; }
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8738 if test "x$ac_ct_OTOOL64" = x; then
8739 OTOOL64=":"
8740 else
8741 case $cross_compiling:$ac_tool_warned in
8742 yes:)
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745 ac_tool_warned=yes ;;
8746 esac
8747 OTOOL64=$ac_ct_OTOOL64
8749 else
8750 OTOOL64="$ac_cv_prog_OTOOL64"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8780 $as_echo_n "checking for -single_module linker flag... " >&6; }
8781 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 lt_cv_apple_cc_single_mod=no
8785 if test -z "${LT_MULTI_MODULE}"; then
8786 # By default we will add the -single_module flag. You can override
8787 # by either setting the environment variable LT_MULTI_MODULE
8788 # non-empty at configure time, or by adding -multi_module to the
8789 # link flags.
8790 rm -rf libconftest.dylib*
8791 echo "int foo(void){return 1;}" > conftest.c
8792 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8793 -dynamiclib -Wl,-single_module conftest.c" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8795 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8796 _lt_result=$?
8797 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8798 lt_cv_apple_cc_single_mod=yes
8799 else
8800 cat conftest.err >&5
8802 rm -rf libconftest.dylib*
8803 rm -f conftest.*
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8807 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8809 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8810 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 lt_cv_ld_exported_symbols_list=no
8814 save_LDFLAGS=$LDFLAGS
8815 echo "_main" > conftest.sym
8816 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8817 if test x$gcc_no_link = xyes; then
8818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8824 main ()
8828 return 0;
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 lt_cv_ld_exported_symbols_list=yes
8833 else
8834 lt_cv_ld_exported_symbols_list=no
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LDFLAGS="$save_LDFLAGS"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8842 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8844 $as_echo_n "checking for -force_load linker flag... " >&6; }
8845 if test "${lt_cv_ld_force_load+set}" = set; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 lt_cv_ld_force_load=no
8849 cat > conftest.c << _LT_EOF
8850 int forced_loaded() { return 2;}
8851 _LT_EOF
8852 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8853 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8854 echo "$AR cru libconftest.a conftest.o" >&5
8855 $AR cru libconftest.a conftest.o 2>&5
8856 cat > conftest.c << _LT_EOF
8857 int main() { return 0;}
8858 _LT_EOF
8859 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8860 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8861 _lt_result=$?
8862 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8863 lt_cv_ld_force_load=yes
8864 else
8865 cat conftest.err >&5
8867 rm -f conftest.err libconftest.a conftest conftest.c
8868 rm -rf conftest.dSYM
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8872 $as_echo "$lt_cv_ld_force_load" >&6; }
8873 case $host_os in
8874 rhapsody* | darwin1.[012])
8875 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8876 darwin1.*)
8877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8878 darwin*) # darwin 5.x on
8879 # if running on 10.5 or later, the deployment target defaults
8880 # to the OS version, if on x86, and 10.4, the deployment
8881 # target defaults to 10.4. Don't you love it?
8882 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8883 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8885 10.[012][,.]*)
8886 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8887 10.*)
8888 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8889 esac
8891 esac
8892 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8893 _lt_dar_single_mod='$single_module'
8895 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8896 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8897 else
8898 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8900 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8901 _lt_dsymutil='~$DSYMUTIL $lib || :'
8902 else
8903 _lt_dsymutil=
8906 esac
8908 for ac_header in dlfcn.h
8909 do :
8910 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8912 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_DLFCN_H 1
8915 _ACEOF
8919 done
8925 # Set options
8930 enable_win32_dll=no
8933 # Check whether --enable-shared was given.
8934 if test "${enable_shared+set}" = set; then :
8935 enableval=$enable_shared; p=${PACKAGE-default}
8936 case $enableval in
8937 yes) enable_shared=yes ;;
8938 no) enable_shared=no ;;
8940 enable_shared=no
8941 # Look at the argument we got. We use all the common list separators.
8942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8943 for pkg in $enableval; do
8944 IFS="$lt_save_ifs"
8945 if test "X$pkg" = "X$p"; then
8946 enable_shared=yes
8948 done
8949 IFS="$lt_save_ifs"
8951 esac
8952 else
8953 enable_shared=yes
8964 # Check whether --enable-static was given.
8965 if test "${enable_static+set}" = set; then :
8966 enableval=$enable_static; p=${PACKAGE-default}
8967 case $enableval in
8968 yes) enable_static=yes ;;
8969 no) enable_static=no ;;
8971 enable_static=no
8972 # Look at the argument we got. We use all the common list separators.
8973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8974 for pkg in $enableval; do
8975 IFS="$lt_save_ifs"
8976 if test "X$pkg" = "X$p"; then
8977 enable_static=yes
8979 done
8980 IFS="$lt_save_ifs"
8982 esac
8983 else
8984 enable_static=yes
8996 # Check whether --with-pic was given.
8997 if test "${with_pic+set}" = set; then :
8998 withval=$with_pic; pic_mode="$withval"
8999 else
9000 pic_mode=default
9004 test -z "$pic_mode" && pic_mode=default
9012 # Check whether --enable-fast-install was given.
9013 if test "${enable_fast_install+set}" = set; then :
9014 enableval=$enable_fast_install; p=${PACKAGE-default}
9015 case $enableval in
9016 yes) enable_fast_install=yes ;;
9017 no) enable_fast_install=no ;;
9019 enable_fast_install=no
9020 # Look at the argument we got. We use all the common list separators.
9021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9022 for pkg in $enableval; do
9023 IFS="$lt_save_ifs"
9024 if test "X$pkg" = "X$p"; then
9025 enable_fast_install=yes
9027 done
9028 IFS="$lt_save_ifs"
9030 esac
9031 else
9032 enable_fast_install=yes
9045 # This can be used to rebuild libtool when needed
9046 LIBTOOL_DEPS="$ltmain"
9048 # Always use our own libtool.
9049 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9076 test -z "$LN_S" && LN_S="ln -s"
9091 if test -n "${ZSH_VERSION+set}" ; then
9092 setopt NO_GLOB_SUBST
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9096 $as_echo_n "checking for objdir... " >&6; }
9097 if test "${lt_cv_objdir+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 rm -f .libs 2>/dev/null
9101 mkdir .libs 2>/dev/null
9102 if test -d .libs; then
9103 lt_cv_objdir=.libs
9104 else
9105 # MS-DOS does not allow filenames that begin with a dot.
9106 lt_cv_objdir=_libs
9108 rmdir .libs 2>/dev/null
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9111 $as_echo "$lt_cv_objdir" >&6; }
9112 objdir=$lt_cv_objdir
9118 cat >>confdefs.h <<_ACEOF
9119 #define LT_OBJDIR "$lt_cv_objdir/"
9120 _ACEOF
9125 case $host_os in
9126 aix3*)
9127 # AIX sometimes has problems with the GCC collect2 program. For some
9128 # reason, if we set the COLLECT_NAMES environment variable, the problems
9129 # vanish in a puff of smoke.
9130 if test "X${COLLECT_NAMES+set}" != Xset; then
9131 COLLECT_NAMES=
9132 export COLLECT_NAMES
9135 esac
9137 # Global variables:
9138 ofile=libtool
9139 can_build_shared=yes
9141 # All known linkers require a `.a' archive for static linking (except MSVC,
9142 # which needs '.lib').
9143 libext=a
9145 with_gnu_ld="$lt_cv_prog_gnu_ld"
9147 old_CC="$CC"
9148 old_CFLAGS="$CFLAGS"
9150 # Set sane defaults for various variables
9151 test -z "$CC" && CC=cc
9152 test -z "$LTCC" && LTCC=$CC
9153 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9154 test -z "$LD" && LD=ld
9155 test -z "$ac_objext" && ac_objext=o
9157 for cc_temp in $compiler""; do
9158 case $cc_temp in
9159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9161 \-*) ;;
9162 *) break;;
9163 esac
9164 done
9165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9168 # Only perform the check for file, if the check method requires it
9169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9170 case $deplibs_check_method in
9171 file_magic*)
9172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9175 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 case $MAGIC_CMD in
9179 [\\/*] | ?:[\\/]*)
9180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9183 lt_save_MAGIC_CMD="$MAGIC_CMD"
9184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9186 for ac_dir in $ac_dummy; do
9187 IFS="$lt_save_ifs"
9188 test -z "$ac_dir" && ac_dir=.
9189 if test -f $ac_dir/${ac_tool_prefix}file; then
9190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9191 if test -n "$file_magic_test_file"; then
9192 case $deplibs_check_method in
9193 "file_magic "*)
9194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9197 $EGREP "$file_magic_regex" > /dev/null; then
9199 else
9200 cat <<_LT_EOF 1>&2
9202 *** Warning: the command libtool uses to detect shared libraries,
9203 *** $file_magic_cmd, produces output that libtool cannot recognize.
9204 *** The result is that libtool may fail to recognize shared libraries
9205 *** as such. This will affect the creation of libtool libraries that
9206 *** depend on shared libraries, but programs linked with such libtool
9207 *** libraries will work regardless of this problem. Nevertheless, you
9208 *** may want to report the problem to your system manager and/or to
9209 *** bug-libtool@gnu.org
9211 _LT_EOF
9212 fi ;;
9213 esac
9215 break
9217 done
9218 IFS="$lt_save_ifs"
9219 MAGIC_CMD="$lt_save_MAGIC_CMD"
9221 esac
9224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9225 if test -n "$MAGIC_CMD"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227 $as_echo "$MAGIC_CMD" >&6; }
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9237 if test -z "$lt_cv_path_MAGIC_CMD"; then
9238 if test -n "$ac_tool_prefix"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9240 $as_echo_n "checking for file... " >&6; }
9241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 case $MAGIC_CMD in
9245 [\\/*] | ?:[\\/]*)
9246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9249 lt_save_MAGIC_CMD="$MAGIC_CMD"
9250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9252 for ac_dir in $ac_dummy; do
9253 IFS="$lt_save_ifs"
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f $ac_dir/file; then
9256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9257 if test -n "$file_magic_test_file"; then
9258 case $deplibs_check_method in
9259 "file_magic "*)
9260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9263 $EGREP "$file_magic_regex" > /dev/null; then
9265 else
9266 cat <<_LT_EOF 1>&2
9268 *** Warning: the command libtool uses to detect shared libraries,
9269 *** $file_magic_cmd, produces output that libtool cannot recognize.
9270 *** The result is that libtool may fail to recognize shared libraries
9271 *** as such. This will affect the creation of libtool libraries that
9272 *** depend on shared libraries, but programs linked with such libtool
9273 *** libraries will work regardless of this problem. Nevertheless, you
9274 *** may want to report the problem to your system manager and/or to
9275 *** bug-libtool@gnu.org
9277 _LT_EOF
9278 fi ;;
9279 esac
9281 break
9283 done
9284 IFS="$lt_save_ifs"
9285 MAGIC_CMD="$lt_save_MAGIC_CMD"
9287 esac
9290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291 if test -n "$MAGIC_CMD"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293 $as_echo "$MAGIC_CMD" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9300 else
9301 MAGIC_CMD=:
9307 esac
9309 # Use C for the default configuration in the libtool script
9311 lt_save_CC="$CC"
9312 ac_ext=c
9313 ac_cpp='$CPP $CPPFLAGS'
9314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9319 # Source file extension for C test sources.
9320 ac_ext=c
9322 # Object file extension for compiled C test sources.
9323 objext=o
9324 objext=$objext
9326 # Code to be used in simple compile tests
9327 lt_simple_compile_test_code="int some_variable = 0;"
9329 # Code to be used in simple link tests
9330 lt_simple_link_test_code='int main(){return(0);}'
9338 # If no C compiler was specified, use CC.
9339 LTCC=${LTCC-"$CC"}
9341 # If no C compiler flags were specified, use CFLAGS.
9342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9344 # Allow CC to be a program name with arguments.
9345 compiler=$CC
9347 # Save the default compiler, since it gets overwritten when the other
9348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9349 compiler_DEFAULT=$CC
9351 # save warnings/boilerplate of simple test code
9352 ac_outfile=conftest.$ac_objext
9353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9355 _lt_compiler_boilerplate=`cat conftest.err`
9356 $RM conftest*
9358 ac_outfile=conftest.$ac_objext
9359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9361 _lt_linker_boilerplate=`cat conftest.err`
9362 $RM -r conftest*
9365 ## CAVEAT EMPTOR:
9366 ## There is no encapsulation within the following macros, do not change
9367 ## the running order or otherwise move them around unless you know exactly
9368 ## what you are doing...
9369 if test -n "$compiler"; then
9371 lt_prog_compiler_no_builtin_flag=
9373 if test "$GCC" = yes; then
9374 case $cc_basename in
9375 nvcc*)
9376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9379 esac
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9382 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9383 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 lt_cv_prog_compiler_rtti_exceptions=no
9387 ac_outfile=conftest.$ac_objext
9388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9389 lt_compiler_flag="-fno-rtti -fno-exceptions"
9390 # Insert the option either (1) after the last *FLAGS variable, or
9391 # (2) before a word containing "conftest.", or (3) at the end.
9392 # Note that $ac_compile itself does not contain backslashes and begins
9393 # with a dollar sign (not a hyphen), so the echo should work correctly.
9394 # The option is referenced via a variable to avoid confusing sed.
9395 lt_compile=`echo "$ac_compile" | $SED \
9396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398 -e 's:$: $lt_compiler_flag:'`
9399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9400 (eval "$lt_compile" 2>conftest.err)
9401 ac_status=$?
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 if (exit $ac_status) && test -s "$ac_outfile"; then
9405 # The compiler can only warn and ignore the option if not recognized
9406 # So say no if there are warnings other than the usual output.
9407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler_rtti_exceptions=yes
9413 $RM conftest*
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9417 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9419 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9421 else
9432 lt_prog_compiler_wl=
9433 lt_prog_compiler_pic=
9434 lt_prog_compiler_static=
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9439 if test "$GCC" = yes; then
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_static='-static'
9443 case $host_os in
9444 aix*)
9445 # All AIX code is PIC.
9446 if test "$host_cpu" = ia64; then
9447 # AIX 5 now supports IA64 processor
9448 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_pic='-fPIC'
9453 amigaos*)
9454 case $host_cpu in
9455 powerpc)
9456 # see comment about AmigaOS4 .so support
9457 lt_prog_compiler_pic='-fPIC'
9459 m68k)
9460 # FIXME: we need at least 68020 code to build shared libraries, but
9461 # adding the `-m68020' flag to GCC prevents building anything better,
9462 # like `-m68040'.
9463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9465 esac
9468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9469 # PIC is the default for these OSes.
9472 mingw* | cygwin* | pw32* | os2* | cegcc*)
9473 # This hack is so that the source file can tell whether it is being
9474 # built for inclusion in a dll (and should export symbols for example).
9475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9476 # (--disable-auto-import) libraries
9477 lt_prog_compiler_pic='-DDLL_EXPORT'
9480 darwin* | rhapsody*)
9481 # PIC is the default on this platform
9482 # Common symbols not allowed in MH_DYLIB files
9483 lt_prog_compiler_pic='-fno-common'
9486 haiku*)
9487 # PIC is the default for Haiku.
9488 # The "-static" flag exists, but is broken.
9489 lt_prog_compiler_static=
9492 hpux*)
9493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9495 # sets the default TLS model and affects inlining.
9496 case $host_cpu in
9497 hppa*64*)
9498 # +Z the default
9501 lt_prog_compiler_pic='-fPIC'
9503 esac
9506 interix[3-9]*)
9507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9508 # Instead, we relocate shared libraries at runtime.
9511 msdosdjgpp*)
9512 # Just because we use GCC doesn't mean we suddenly get shared libraries
9513 # on systems that don't support them.
9514 lt_prog_compiler_can_build_shared=no
9515 enable_shared=no
9518 *nto* | *qnx*)
9519 # QNX uses GNU C++, but need to define -shared option too, otherwise
9520 # it will coredump.
9521 lt_prog_compiler_pic='-fPIC -shared'
9524 sysv4*MP*)
9525 if test -d /usr/nec; then
9526 lt_prog_compiler_pic=-Kconform_pic
9531 lt_prog_compiler_pic='-fPIC'
9533 esac
9535 case $cc_basename in
9536 nvcc*) # Cuda Compiler Driver 2.2
9537 lt_prog_compiler_wl='-Xlinker '
9538 lt_prog_compiler_pic='-Xcompiler -fPIC'
9540 esac
9541 else
9542 # PORTME Check for flag to pass linker flags through the system compiler.
9543 case $host_os in
9544 aix*)
9545 lt_prog_compiler_wl='-Wl,'
9546 if test "$host_cpu" = ia64; then
9547 # AIX 5 now supports IA64 processor
9548 lt_prog_compiler_static='-Bstatic'
9549 else
9550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9554 mingw* | cygwin* | pw32* | os2* | cegcc*)
9555 # This hack is so that the source file can tell whether it is being
9556 # built for inclusion in a dll (and should export symbols for example).
9557 lt_prog_compiler_pic='-DDLL_EXPORT'
9560 hpux9* | hpux10* | hpux11*)
9561 lt_prog_compiler_wl='-Wl,'
9562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9563 # not for PA HP-UX.
9564 case $host_cpu in
9565 hppa*64*|ia64*)
9566 # +Z the default
9569 lt_prog_compiler_pic='+Z'
9571 esac
9572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9573 lt_prog_compiler_static='${wl}-a ${wl}archive'
9576 irix5* | irix6* | nonstopux*)
9577 lt_prog_compiler_wl='-Wl,'
9578 # PIC (with -KPIC) is the default.
9579 lt_prog_compiler_static='-non_shared'
9582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9583 case $cc_basename in
9584 # old Intel for x86_64 which still supported -KPIC.
9585 ecc*)
9586 lt_prog_compiler_wl='-Wl,'
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-static'
9590 # icc used to be incompatible with GCC.
9591 # ICC 10 doesn't accept -KPIC any more.
9592 icc* | ifort*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-fPIC'
9595 lt_prog_compiler_static='-static'
9597 # Lahey Fortran 8.1.
9598 lf95*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='--shared'
9601 lt_prog_compiler_static='--static'
9603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9604 # Portland Group compilers (*not* the Pentium gcc compiler,
9605 # which looks to be a dead project)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fpic'
9608 lt_prog_compiler_static='-Bstatic'
9610 ccc*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # All Alpha code is PIC.
9613 lt_prog_compiler_static='-non_shared'
9615 xl* | bgxl* | bgf* | mpixl*)
9616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-qpic'
9619 lt_prog_compiler_static='-qstaticlink'
9622 case `$CC -V 2>&1 | sed 5q` in
9623 *Sun\ F* | *Sun*Fortran*)
9624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
9627 lt_prog_compiler_wl=''
9629 *Sun\ C*)
9630 # Sun C 5.9
9631 lt_prog_compiler_pic='-KPIC'
9632 lt_prog_compiler_static='-Bstatic'
9633 lt_prog_compiler_wl='-Wl,'
9635 esac
9637 esac
9640 newsos6)
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9645 *nto* | *qnx*)
9646 # QNX uses GNU C++, but need to define -shared option too, otherwise
9647 # it will coredump.
9648 lt_prog_compiler_pic='-fPIC -shared'
9651 osf3* | osf4* | osf5*)
9652 lt_prog_compiler_wl='-Wl,'
9653 # All OSF/1 code is PIC.
9654 lt_prog_compiler_static='-non_shared'
9657 rdos*)
9658 lt_prog_compiler_static='-non_shared'
9661 solaris*)
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9664 case $cc_basename in
9665 f77* | f90* | f95*)
9666 lt_prog_compiler_wl='-Qoption ld ';;
9668 lt_prog_compiler_wl='-Wl,';;
9669 esac
9672 sunos4*)
9673 lt_prog_compiler_wl='-Qoption ld '
9674 lt_prog_compiler_pic='-PIC'
9675 lt_prog_compiler_static='-Bstatic'
9678 sysv4 | sysv4.2uw2* | sysv4.3*)
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-Bstatic'
9684 sysv4*MP*)
9685 if test -d /usr/nec ;then
9686 lt_prog_compiler_pic='-Kconform_pic'
9687 lt_prog_compiler_static='-Bstatic'
9691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='-KPIC'
9694 lt_prog_compiler_static='-Bstatic'
9697 unicos*)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_can_build_shared=no
9702 uts4*)
9703 lt_prog_compiler_pic='-pic'
9704 lt_prog_compiler_static='-Bstatic'
9708 lt_prog_compiler_can_build_shared=no
9710 esac
9713 case $host_os in
9714 # For platforms which do not support PIC, -DPIC is meaningless:
9715 *djgpp*)
9716 lt_prog_compiler_pic=
9719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9721 esac
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9723 $as_echo "$lt_prog_compiler_pic" >&6; }
9731 # Check to make sure the PIC flag actually works.
9733 if test -n "$lt_prog_compiler_pic"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9736 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 lt_cv_prog_compiler_pic_works=no
9740 ac_outfile=conftest.$ac_objext
9741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9743 # Insert the option either (1) after the last *FLAGS variable, or
9744 # (2) before a word containing "conftest.", or (3) at the end.
9745 # Note that $ac_compile itself does not contain backslashes and begins
9746 # with a dollar sign (not a hyphen), so the echo should work correctly.
9747 # The option is referenced via a variable to avoid confusing sed.
9748 lt_compile=`echo "$ac_compile" | $SED \
9749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9751 -e 's:$: $lt_compiler_flag:'`
9752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9753 (eval "$lt_compile" 2>conftest.err)
9754 ac_status=$?
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 if (exit $ac_status) && test -s "$ac_outfile"; then
9758 # The compiler can only warn and ignore the option if not recognized
9759 # So say no if there are warnings other than the usual output.
9760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9763 lt_cv_prog_compiler_pic_works=yes
9766 $RM conftest*
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9773 case $lt_prog_compiler_pic in
9774 "" | " "*) ;;
9775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9776 esac
9777 else
9778 lt_prog_compiler_pic=
9779 lt_prog_compiler_can_build_shared=no
9790 # Check to make sure the static flag actually works.
9792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9795 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 lt_cv_prog_compiler_static_works=no
9799 save_LDFLAGS="$LDFLAGS"
9800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803 # The linker can only warn and ignore the option if not recognized
9804 # So say no if there are warnings
9805 if test -s conftest.err; then
9806 # Append any errors to the config.log.
9807 cat conftest.err 1>&5
9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
9811 lt_cv_prog_compiler_static_works=yes
9813 else
9814 lt_cv_prog_compiler_static_works=yes
9817 $RM -r conftest*
9818 LDFLAGS="$save_LDFLAGS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9824 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9826 else
9827 lt_prog_compiler_static=
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9838 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 lt_cv_prog_compiler_c_o=no
9842 $RM -r conftest 2>/dev/null
9843 mkdir conftest
9844 cd conftest
9845 mkdir out
9846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848 lt_compiler_flag="-o out/conftest2.$ac_objext"
9849 # Insert the option either (1) after the last *FLAGS variable, or
9850 # (2) before a word containing "conftest.", or (3) at the end.
9851 # Note that $ac_compile itself does not contain backslashes and begins
9852 # with a dollar sign (not a hyphen), so the echo should work correctly.
9853 lt_compile=`echo "$ac_compile" | $SED \
9854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9856 -e 's:$: $lt_compiler_flag:'`
9857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9858 (eval "$lt_compile" 2>out/conftest.err)
9859 ac_status=$?
9860 cat out/conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9863 then
9864 # The compiler can only warn and ignore the option if not recognized
9865 # So say no if there are warnings
9866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9869 lt_cv_prog_compiler_c_o=yes
9872 chmod u+w . 2>&5
9873 $RM conftest*
9874 # SGI C++ compiler will create directory out/ii_files/ for
9875 # template instantiation
9876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9877 $RM out/* && rmdir out
9878 cd ..
9879 $RM -r conftest
9880 $RM conftest*
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9893 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 lt_cv_prog_compiler_c_o=no
9897 $RM -r conftest 2>/dev/null
9898 mkdir conftest
9899 cd conftest
9900 mkdir out
9901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903 lt_compiler_flag="-o out/conftest2.$ac_objext"
9904 # Insert the option either (1) after the last *FLAGS variable, or
9905 # (2) before a word containing "conftest.", or (3) at the end.
9906 # Note that $ac_compile itself does not contain backslashes and begins
9907 # with a dollar sign (not a hyphen), so the echo should work correctly.
9908 lt_compile=`echo "$ac_compile" | $SED \
9909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9911 -e 's:$: $lt_compiler_flag:'`
9912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9913 (eval "$lt_compile" 2>out/conftest.err)
9914 ac_status=$?
9915 cat out/conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9918 then
9919 # The compiler can only warn and ignore the option if not recognized
9920 # So say no if there are warnings
9921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9924 lt_cv_prog_compiler_c_o=yes
9927 chmod u+w . 2>&5
9928 $RM conftest*
9929 # SGI C++ compiler will create directory out/ii_files/ for
9930 # template instantiation
9931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9932 $RM out/* && rmdir out
9933 cd ..
9934 $RM -r conftest
9935 $RM conftest*
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9944 hard_links="nottested"
9945 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9946 # do not overwrite the value of need_locks provided by the user
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9948 $as_echo_n "checking if we can lock with hard links... " >&6; }
9949 hard_links=yes
9950 $RM conftest*
9951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9952 touch conftest.a
9953 ln conftest.a conftest.b 2>&5 || hard_links=no
9954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9956 $as_echo "$hard_links" >&6; }
9957 if test "$hard_links" = no; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9960 need_locks=warn
9962 else
9963 need_locks=no
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9974 runpath_var=
9975 allow_undefined_flag=
9976 always_export_symbols=no
9977 archive_cmds=
9978 archive_expsym_cmds=
9979 compiler_needs_object=no
9980 enable_shared_with_static_runtimes=no
9981 export_dynamic_flag_spec=
9982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9983 hardcode_automatic=no
9984 hardcode_direct=no
9985 hardcode_direct_absolute=no
9986 hardcode_libdir_flag_spec=
9987 hardcode_libdir_flag_spec_ld=
9988 hardcode_libdir_separator=
9989 hardcode_minus_L=no
9990 hardcode_shlibpath_var=unsupported
9991 inherit_rpath=no
9992 link_all_deplibs=unknown
9993 module_cmds=
9994 module_expsym_cmds=
9995 old_archive_from_new_cmds=
9996 old_archive_from_expsyms_cmds=
9997 thread_safe_flag_spec=
9998 whole_archive_flag_spec=
9999 # include_expsyms should be a list of space-separated symbols to be *always*
10000 # included in the symbol list
10001 include_expsyms=
10002 # exclude_expsyms can be an extended regexp of symbols to exclude
10003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10005 # as well as any symbol that contains `d'.
10006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10008 # platforms (ab)use it in PIC code, but their linkers get confused if
10009 # the symbol is explicitly referenced. Since portable code cannot
10010 # rely on this symbol name, it's probably fine to never include it in
10011 # preloaded symbol tables.
10012 # Exclude shared library initialization/finalization symbols.
10013 extract_expsyms_cmds=
10015 case $host_os in
10016 cygwin* | mingw* | pw32* | cegcc*)
10017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10018 # When not using gcc, we currently assume that we are using
10019 # Microsoft Visual C++.
10020 if test "$GCC" != yes; then
10021 with_gnu_ld=no
10024 interix*)
10025 # we just hope/assume this is gcc and not c89 (= MSVC++)
10026 with_gnu_ld=yes
10028 openbsd*)
10029 with_gnu_ld=no
10031 esac
10033 ld_shlibs=yes
10035 # On some targets, GNU ld is compatible enough with the native linker
10036 # that we're better off using the native interface for both.
10037 lt_use_gnu_ld_interface=no
10038 if test "$with_gnu_ld" = yes; then
10039 case $host_os in
10040 aix*)
10041 # The AIX port of GNU ld has always aspired to compatibility
10042 # with the native linker. However, as the warning in the GNU ld
10043 # block says, versions before 2.19.5* couldn't really create working
10044 # shared libraries, regardless of the interface used.
10045 case `$LD -v 2>&1` in
10046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10050 lt_use_gnu_ld_interface=yes
10052 esac
10055 lt_use_gnu_ld_interface=yes
10057 esac
10060 if test "$lt_use_gnu_ld_interface" = yes; then
10061 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 wlarc='${wl}'
10064 # Set some defaults for GNU ld with shared library support. These
10065 # are reset later if shared libraries are not supported. Putting them
10066 # here allows them to be overridden if necessary.
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 export_dynamic_flag_spec='${wl}--export-dynamic'
10070 # ancient GNU ld didn't support --whole-archive et. al.
10071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10073 else
10074 whole_archive_flag_spec=
10076 supports_anon_versioning=no
10077 case `$LD -v 2>&1` in
10078 *GNU\ gold*) supports_anon_versioning=yes ;;
10079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082 *\ 2.11.*) ;; # other 2.11 versions
10083 *) supports_anon_versioning=yes ;;
10084 esac
10086 # See if GNU ld supports shared libraries.
10087 case $host_os in
10088 aix[3-9]*)
10089 # On AIX/PPC, the GNU linker is very broken
10090 if test "$host_cpu" != ia64; then
10091 ld_shlibs=no
10092 cat <<_LT_EOF 1>&2
10094 *** Warning: the GNU linker, at least up to release 2.19, is reported
10095 *** to be unable to reliably create shared libraries on AIX.
10096 *** Therefore, libtool is disabling shared libraries support. If you
10097 *** really care for shared libraries, you may want to install binutils
10098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10099 *** You will then need to restart the configuration process.
10101 _LT_EOF
10105 amigaos*)
10106 case $host_cpu in
10107 powerpc)
10108 # see comment about AmigaOS4 .so support
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110 archive_expsym_cmds=''
10112 m68k)
10113 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)'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_minus_L=yes
10117 esac
10120 beos*)
10121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 allow_undefined_flag=unsupported
10123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10124 # support --undefined. This deserves some investigation. FIXME
10125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 else
10127 ld_shlibs=no
10131 cygwin* | mingw* | pw32* | cegcc*)
10132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133 # as there is no search path for DLLs.
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 export_dynamic_flag_spec='${wl}--export-all-symbols'
10136 allow_undefined_flag=unsupported
10137 always_export_symbols=no
10138 enable_shared_with_static_runtimes=yes
10139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143 # If the export-symbols file already is a .def file (1st line
10144 # is EXPORTS), use it as is; otherwise, prepend...
10145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10146 cp $export_symbols $output_objdir/$soname.def;
10147 else
10148 echo EXPORTS > $output_objdir/$soname.def;
10149 cat $export_symbols >> $output_objdir/$soname.def;
10151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10152 else
10153 ld_shlibs=no
10157 haiku*)
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 link_all_deplibs=yes
10162 interix[3-9]*)
10163 hardcode_direct=no
10164 hardcode_shlibpath_var=no
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 export_dynamic_flag_spec='${wl}-E'
10167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10168 # Instead, shared libraries are loaded at an image base (0x10000000 by
10169 # default) and relocated if they conflict, which is a slow very memory
10170 # consuming and fragmenting process. To avoid this, we pick a random,
10171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10174 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'
10177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10178 tmp_diet=no
10179 if test "$host_os" = linux-dietlibc; then
10180 case $cc_basename in
10181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10182 esac
10184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10185 && test "$tmp_diet" = no
10186 then
10187 tmp_addflag=' $pic_flag'
10188 tmp_sharedflag='-shared'
10189 case $cc_basename,$host_cpu in
10190 pgcc*) # Portland Group C compiler
10191 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'
10192 tmp_addflag=' $pic_flag'
10194 pgf77* | pgf90* | pgf95* | pgfortran*)
10195 # Portland Group f77 and f90 compilers
10196 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'
10197 tmp_addflag=' $pic_flag -Mnomain' ;;
10198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10199 tmp_addflag=' -i_dynamic' ;;
10200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10201 tmp_addflag=' -i_dynamic -nofor_main' ;;
10202 ifc* | ifort*) # Intel Fortran compiler
10203 tmp_addflag=' -nofor_main' ;;
10204 lf95*) # Lahey Fortran 8.1
10205 whole_archive_flag_spec=
10206 tmp_sharedflag='--shared' ;;
10207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10208 tmp_sharedflag='-qmkshrobj'
10209 tmp_addflag= ;;
10210 nvcc*) # Cuda Compiler Driver 2.2
10211 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'
10212 compiler_needs_object=yes
10214 esac
10215 case `$CC -V 2>&1 | sed 5q` in
10216 *Sun\ C*) # Sun C 5.9
10217 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'
10218 compiler_needs_object=yes
10219 tmp_sharedflag='-G' ;;
10220 *Sun\ F*) # Sun Fortran 8.3
10221 tmp_sharedflag='-G' ;;
10222 esac
10223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 if test "x$supports_anon_versioning" = xyes; then
10226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10228 echo "local: *; };" >> $output_objdir/$libname.ver~
10229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10232 case $cc_basename in
10233 xlf* | bgf* | bgxlf* | mpixlf*)
10234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10236 hardcode_libdir_flag_spec=
10237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10239 if test "x$supports_anon_versioning" = xyes; then
10240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10242 echo "local: *; };" >> $output_objdir/$libname.ver~
10243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10246 esac
10247 else
10248 ld_shlibs=no
10252 netbsd*)
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10255 wlarc=
10256 else
10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262 solaris*)
10263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10264 ld_shlibs=no
10265 cat <<_LT_EOF 1>&2
10267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10268 *** create shared libraries on Solaris systems. Therefore, libtool
10269 *** is disabling shared libraries support. We urge you to upgrade GNU
10270 *** binutils to release 2.9.1 or newer. Another option is to modify
10271 *** your PATH or compiler configuration so that the native linker is
10272 *** used, and then restart.
10274 _LT_EOF
10275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10278 else
10279 ld_shlibs=no
10283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10284 case `$LD -v 2>&1` in
10285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10286 ld_shlibs=no
10287 cat <<_LT_EOF 1>&2
10289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10290 *** reliably create shared libraries on SCO systems. Therefore, libtool
10291 *** is disabling shared libraries support. We urge you to upgrade GNU
10292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10293 *** your PATH or compiler configuration so that the native linker is
10294 *** used, and then restart.
10296 _LT_EOF
10299 # For security reasons, it is highly recommended that you always
10300 # use absolute paths for naming shared libraries, and exclude the
10301 # DT_RUNPATH tag from executables and libraries. But doing so
10302 # requires that you compile everything twice, which is a pain.
10303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307 else
10308 ld_shlibs=no
10311 esac
10314 sunos4*)
10315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316 wlarc=
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10325 else
10326 ld_shlibs=no
10329 esac
10331 if test "$ld_shlibs" = no; then
10332 runpath_var=
10333 hardcode_libdir_flag_spec=
10334 export_dynamic_flag_spec=
10335 whole_archive_flag_spec=
10337 else
10338 # PORTME fill in a description of your system's linker (not GNU ld)
10339 case $host_os in
10340 aix3*)
10341 allow_undefined_flag=unsupported
10342 always_export_symbols=yes
10343 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'
10344 # Note: this linker hardcodes the directories in LIBPATH if there
10345 # are no directories specified by -L.
10346 hardcode_minus_L=yes
10347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10348 # Neither direct hardcoding nor static linking is supported with a
10349 # broken collect2.
10350 hardcode_direct=unsupported
10354 aix[4-9]*)
10355 if test "$host_cpu" = ia64; then
10356 # On IA64, the linker does run time linking by default, so we don't
10357 # have to do anything special.
10358 aix_use_runtimelinking=no
10359 exp_sym_flag='-Bexport'
10360 no_entry_flag=""
10361 else
10362 # If we're using GNU nm, then we don't want the "-C" option.
10363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10364 # Also, AIX nm treats weak defined symbols like other global
10365 # defined symbols, whereas GNU nm marks them as "W".
10366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10367 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'
10368 else
10369 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'
10371 aix_use_runtimelinking=no
10373 # Test if we are trying to use run time linking or normal
10374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10375 # need to do runtime linking.
10376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10377 for ld_flag in $LDFLAGS; do
10378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10379 aix_use_runtimelinking=yes
10380 break
10382 done
10384 esac
10386 exp_sym_flag='-bexport'
10387 no_entry_flag='-bnoentry'
10390 # When large executables or shared objects are built, AIX ld can
10391 # have problems creating the table of contents. If linking a library
10392 # or program results in "error TOC overflow" add -mminimal-toc to
10393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10396 archive_cmds=''
10397 hardcode_direct=yes
10398 hardcode_direct_absolute=yes
10399 hardcode_libdir_separator=':'
10400 link_all_deplibs=yes
10401 file_list_spec='${wl}-f,'
10403 if test "$GCC" = yes; then
10404 case $host_os in aix4.[012]|aix4.[012].*)
10405 # We only want to do this on AIX 4.2 and lower, the check
10406 # below for broken collect2 doesn't work under 4.3+
10407 collect2name=`${CC} -print-prog-name=collect2`
10408 if test -f "$collect2name" &&
10409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10410 then
10411 # We have reworked collect2
10413 else
10414 # We have old collect2
10415 hardcode_direct=unsupported
10416 # It fails to find uninstalled libraries when the uninstalled
10417 # path is not listed in the libpath. Setting hardcode_minus_L
10418 # to unsupported forces relinking
10419 hardcode_minus_L=yes
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_libdir_separator=
10424 esac
10425 shared_flag='-shared'
10426 if test "$aix_use_runtimelinking" = yes; then
10427 shared_flag="$shared_flag "'${wl}-G'
10429 else
10430 # not using gcc
10431 if test "$host_cpu" = ia64; then
10432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10433 # chokes on -Wl,-G. The following line is correct:
10434 shared_flag='-G'
10435 else
10436 if test "$aix_use_runtimelinking" = yes; then
10437 shared_flag='${wl}-G'
10438 else
10439 shared_flag='${wl}-bM:SRE'
10444 export_dynamic_flag_spec='${wl}-bexpall'
10445 # It seems that -bexpall does not export symbols beginning with
10446 # underscore (_), so it is better to generate a list of symbols to export.
10447 always_export_symbols=yes
10448 if test "$aix_use_runtimelinking" = yes; then
10449 # Warning - without using the other runtime loading flags (-brtl),
10450 # -berok will link without error, but may produce a broken library.
10451 allow_undefined_flag='-berok'
10452 # Determine the default libpath from the value encoded in an
10453 # empty executable.
10454 if test x$gcc_no_link = xyes; then
10455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10461 main ()
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10472 /^0/ {
10473 s/^0 *\(.*\)$/\1/
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10488 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"
10489 else
10490 if test "$host_cpu" = ia64; then
10491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10492 allow_undefined_flag="-z nodefs"
10493 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"
10494 else
10495 # Determine the default libpath from the value encoded in an
10496 # empty executable.
10497 if test x$gcc_no_link = xyes; then
10498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10504 main ()
10508 return 0;
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10513 lt_aix_libpath_sed='
10514 /Import File Strings/,/^$/ {
10515 /^0/ {
10516 s/^0 *\(.*\)$/\1/
10520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10521 # Check for a 64-bit object if we didn't find anything.
10522 if test -z "$aix_libpath"; then
10523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10531 # Warning - without using the other run time loading flags,
10532 # -berok will link without error, but may produce a broken library.
10533 no_undefined_flag=' ${wl}-bernotok'
10534 allow_undefined_flag=' ${wl}-berok'
10535 if test "$with_gnu_ld" = yes; then
10536 # We only use this code for GNU lds that support --whole-archive.
10537 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10538 else
10539 # Exported symbols can be pulled into shared objects from archives
10540 whole_archive_flag_spec='$convenience'
10542 archive_cmds_need_lc=yes
10543 # This is similar to how AIX traditionally builds its shared libraries.
10544 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'
10549 amigaos*)
10550 case $host_cpu in
10551 powerpc)
10552 # see comment about AmigaOS4 .so support
10553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds=''
10556 m68k)
10557 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)'
10558 hardcode_libdir_flag_spec='-L$libdir'
10559 hardcode_minus_L=yes
10561 esac
10564 bsdi[45]*)
10565 export_dynamic_flag_spec=-rdynamic
10568 cygwin* | mingw* | pw32* | cegcc*)
10569 # When not using gcc, we currently assume that we are using
10570 # Microsoft Visual C++.
10571 # hardcode_libdir_flag_spec is actually meaningless, as there is
10572 # no search path for DLLs.
10573 hardcode_libdir_flag_spec=' '
10574 allow_undefined_flag=unsupported
10575 # Tell ltmain to make .lib files, not .a files.
10576 libext=lib
10577 # Tell ltmain to make .dll files, not .so files.
10578 shrext_cmds=".dll"
10579 # FIXME: Setting linknames here is a bad hack.
10580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10581 # The linker will automatically build a .lib file if we build a DLL.
10582 old_archive_from_new_cmds='true'
10583 # FIXME: Should let the user specify the lib program.
10584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10585 fix_srcfile_path='`cygpath -w "$srcfile"`'
10586 enable_shared_with_static_runtimes=yes
10589 darwin* | rhapsody*)
10592 archive_cmds_need_lc=no
10593 hardcode_direct=no
10594 hardcode_automatic=yes
10595 hardcode_shlibpath_var=unsupported
10596 if test "$lt_cv_ld_force_load" = "yes"; then
10597 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\"`'
10598 else
10599 whole_archive_flag_spec=''
10601 link_all_deplibs=yes
10602 allow_undefined_flag="$_lt_dar_allow_undefined"
10603 case $cc_basename in
10604 ifort*) _lt_dar_can_shared=yes ;;
10605 *) _lt_dar_can_shared=$GCC ;;
10606 esac
10607 if test "$_lt_dar_can_shared" = "yes"; then
10608 output_verbose_link_cmd=func_echo_all
10609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10611 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}"
10612 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}"
10614 else
10615 ld_shlibs=no
10620 dgux*)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_libdir_flag_spec='-L$libdir'
10623 hardcode_shlibpath_var=no
10626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10627 # support. Future versions do this automatically, but an explicit c++rt0.o
10628 # does not break anything, and helps significantly (at the cost of a little
10629 # extra space).
10630 freebsd2.2*)
10631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10632 hardcode_libdir_flag_spec='-R$libdir'
10633 hardcode_direct=yes
10634 hardcode_shlibpath_var=no
10637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10638 freebsd2.*)
10639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=yes
10641 hardcode_minus_L=yes
10642 hardcode_shlibpath_var=no
10645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10646 freebsd* | dragonfly*)
10647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10648 hardcode_libdir_flag_spec='-R$libdir'
10649 hardcode_direct=yes
10650 hardcode_shlibpath_var=no
10653 hpux9*)
10654 if test "$GCC" = yes; then
10655 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'
10656 else
10657 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'
10659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10660 hardcode_libdir_separator=:
10661 hardcode_direct=yes
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10666 export_dynamic_flag_spec='${wl}-E'
10669 hpux10*)
10670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10672 else
10673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10675 if test "$with_gnu_ld" = no; then
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_flag_spec_ld='+b $libdir'
10678 hardcode_libdir_separator=:
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='${wl}-E'
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10688 hpux11*)
10689 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10690 case $host_cpu in
10691 hppa*64*)
10692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 ia64*)
10695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10700 esac
10701 else
10702 case $host_cpu in
10703 hppa*64*)
10704 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10706 ia64*)
10707 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10711 # Older versions of the 11.00 compiler do not understand -b yet
10712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10714 $as_echo_n "checking if $CC understands -b... " >&6; }
10715 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 lt_cv_prog_compiler__b=no
10719 save_LDFLAGS="$LDFLAGS"
10720 LDFLAGS="$LDFLAGS -b"
10721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10723 # The linker can only warn and ignore the option if not recognized
10724 # So say no if there are warnings
10725 if test -s conftest.err; then
10726 # Append any errors to the config.log.
10727 cat conftest.err 1>&5
10728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730 if diff conftest.exp conftest.er2 >/dev/null; then
10731 lt_cv_prog_compiler__b=yes
10733 else
10734 lt_cv_prog_compiler__b=yes
10737 $RM -r conftest*
10738 LDFLAGS="$save_LDFLAGS"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10742 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10744 if test x"$lt_cv_prog_compiler__b" = xyes; then
10745 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10746 else
10747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10751 esac
10753 if test "$with_gnu_ld" = no; then
10754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10755 hardcode_libdir_separator=:
10757 case $host_cpu in
10758 hppa*64*|ia64*)
10759 hardcode_direct=no
10760 hardcode_shlibpath_var=no
10763 hardcode_direct=yes
10764 hardcode_direct_absolute=yes
10765 export_dynamic_flag_spec='${wl}-E'
10767 # hardcode_minus_L: Not really in the search PATH,
10768 # but as the default location of the library.
10769 hardcode_minus_L=yes
10771 esac
10775 irix5* | irix6* | nonstopux*)
10776 if test "$GCC" = yes; then
10777 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'
10778 # Try to use the -exported_symbol ld option, if it does not
10779 # work, assume that -exports_file does not work either and
10780 # implicitly export all symbols.
10781 save_LDFLAGS="$LDFLAGS"
10782 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10783 if test x$gcc_no_link = xyes; then
10784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 int foo(void) {}
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 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'
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LDFLAGS="$save_LDFLAGS"
10797 else
10798 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'
10799 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'
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator=:
10804 inherit_rpath=yes
10805 link_all_deplibs=yes
10808 netbsd*)
10809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10811 else
10812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10814 hardcode_libdir_flag_spec='-R$libdir'
10815 hardcode_direct=yes
10816 hardcode_shlibpath_var=no
10819 newsos6)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=yes
10822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator=:
10824 hardcode_shlibpath_var=no
10827 *nto* | *qnx*)
10830 openbsd*)
10831 if test -f /usr/libexec/ld.so; then
10832 hardcode_direct=yes
10833 hardcode_shlibpath_var=no
10834 hardcode_direct_absolute=yes
10835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10839 export_dynamic_flag_spec='${wl}-E'
10840 else
10841 case $host_os in
10842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-R$libdir'
10847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10850 esac
10852 else
10853 ld_shlibs=no
10857 os2*)
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10860 allow_undefined_flag=unsupported
10861 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'
10862 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10865 osf3*)
10866 if test "$GCC" = yes; then
10867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10868 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'
10869 else
10870 allow_undefined_flag=' -expect_unresolved \*'
10871 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'
10873 archive_cmds_need_lc='no'
10874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10875 hardcode_libdir_separator=:
10878 osf4* | osf5*) # as osf3* with the addition of -msym flag
10879 if test "$GCC" = yes; then
10880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 else
10884 allow_undefined_flag=' -expect_unresolved \*'
10885 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'
10886 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~
10887 $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'
10889 # Both c and cxx compiler support -rpath directly
10890 hardcode_libdir_flag_spec='-rpath $libdir'
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_separator=:
10896 solaris*)
10897 no_undefined_flag=' -z defs'
10898 if test "$GCC" = yes; then
10899 wlarc='${wl}'
10900 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10903 else
10904 case `$CC -V 2>&1` in
10905 *"Compilers 5.0"*)
10906 wlarc=''
10907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10912 wlarc='${wl}'
10913 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10917 esac
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_shlibpath_var=no
10921 case $host_os in
10922 solaris2.[0-5] | solaris2.[0-5].*) ;;
10924 # The compiler driver will combine and reorder linker options,
10925 # but understands `-z linker_flag'. GCC discards it without `$wl',
10926 # but is careful enough not to reorder.
10927 # Supported since Solaris 2.6 (maybe 2.5.1?)
10928 if test "$GCC" = yes; then
10929 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10930 else
10931 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10934 esac
10935 link_all_deplibs=yes
10938 sunos4*)
10939 if test "x$host_vendor" = xsequent; then
10940 # Use $CC to link under sequent, because it throws in some extra .o
10941 # files that make .init and .fini sections work.
10942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_direct=yes
10948 hardcode_minus_L=yes
10949 hardcode_shlibpath_var=no
10952 sysv4)
10953 case $host_vendor in
10954 sni)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes # is this really true???
10958 siemens)
10959 ## LD is ld it makes a PLAMLIB
10960 ## CC just makes a GrossModule.
10961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10962 reload_cmds='$CC -r -o $output$reload_objs'
10963 hardcode_direct=no
10965 motorola)
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10969 esac
10970 runpath_var='LD_RUN_PATH'
10971 hardcode_shlibpath_var=no
10974 sysv4.3*)
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_shlibpath_var=no
10977 export_dynamic_flag_spec='-Bexport'
10980 sysv4*MP*)
10981 if test -d /usr/nec; then
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_shlibpath_var=no
10984 runpath_var=LD_RUN_PATH
10985 hardcode_runpath_var=yes
10986 ld_shlibs=yes
10990 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10991 no_undefined_flag='${wl}-z,text'
10992 archive_cmds_need_lc=no
10993 hardcode_shlibpath_var=no
10994 runpath_var='LD_RUN_PATH'
10996 if test "$GCC" = yes; then
10997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 else
11000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 sysv5* | sco3.2v5* | sco5v6*)
11006 # Note: We can NOT use -z defs as we might desire, because we do not
11007 # link with -lc, and that would cause any symbols used from libc to
11008 # always be unresolved, which means just about no library would
11009 # ever link correctly. If we're not using GNU ld we use -z text
11010 # though, which does catch some bad symbols but isn't as heavy-handed
11011 # as -z defs.
11012 no_undefined_flag='${wl}-z,text'
11013 allow_undefined_flag='${wl}-z,nodefs'
11014 archive_cmds_need_lc=no
11015 hardcode_shlibpath_var=no
11016 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11017 hardcode_libdir_separator=':'
11018 link_all_deplibs=yes
11019 export_dynamic_flag_spec='${wl}-Bexport'
11020 runpath_var='LD_RUN_PATH'
11022 if test "$GCC" = yes; then
11023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 else
11026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 uts4*)
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_libdir_flag_spec='-L$libdir'
11034 hardcode_shlibpath_var=no
11038 ld_shlibs=no
11040 esac
11042 if test x$host_vendor = xsni; then
11043 case $host in
11044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11045 export_dynamic_flag_spec='${wl}-Blargedynsym'
11047 esac
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11052 $as_echo "$ld_shlibs" >&6; }
11053 test "$ld_shlibs" = no && can_build_shared=no
11055 with_gnu_ld=$with_gnu_ld
11072 # Do we need to explicitly link libc?
11074 case "x$archive_cmds_need_lc" in
11075 x|xyes)
11076 # Assume -lc should be added
11077 archive_cmds_need_lc=yes
11079 if test "$enable_shared" = yes && test "$GCC" = yes; then
11080 case $archive_cmds in
11081 *'~'*)
11082 # FIXME: we may have to deal with multi-command sequences.
11084 '$CC '*)
11085 # Test whether the compiler implicitly links with -lc since on some
11086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11087 # to ld, don't add -lc before -lgcc.
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11089 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11090 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 $RM conftest*
11094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
11099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; } 2>conftest.err; then
11101 soname=conftest
11102 lib=conftest
11103 libobjs=conftest.$ac_objext
11104 deplibs=
11105 wl=$lt_prog_compiler_wl
11106 pic_flag=$lt_prog_compiler_pic
11107 compiler_flags=-v
11108 linker_flags=-v
11109 verstring=
11110 output_objdir=.
11111 libname=conftest
11112 lt_save_allow_undefined_flag=$allow_undefined_flag
11113 allow_undefined_flag=
11114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11115 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116 ac_status=$?
11117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11118 test $ac_status = 0; }
11119 then
11120 lt_cv_archive_cmds_need_lc=no
11121 else
11122 lt_cv_archive_cmds_need_lc=yes
11124 allow_undefined_flag=$lt_save_allow_undefined_flag
11125 else
11126 cat conftest.err 1>&5
11128 $RM conftest*
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11132 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11133 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11135 esac
11138 esac
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11297 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11299 if test "$GCC" = yes; then
11300 case $host_os in
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11303 esac
11304 case $host_os in
11305 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11306 *) lt_sed_strip_eq="s,=/,/,g" ;;
11307 esac
11308 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11309 case $lt_search_path_spec in
11310 *\;*)
11311 # if the path contains ";" then we assume it to be the separator
11312 # otherwise default to the standard path separator (i.e. ":") - it is
11313 # assumed that no part of a normal pathname contains ";" but that should
11314 # okay in the real world where ";" in dirpaths is itself problematic.
11315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11320 esac
11321 # Ok, now we have the path, separated by spaces, we can step through it
11322 # and add multilib dir if necessary.
11323 lt_tmp_lt_search_path_spec=
11324 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11325 for lt_sys_path in $lt_search_path_spec; do
11326 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11328 else
11329 test -d "$lt_sys_path" && \
11330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11332 done
11333 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11334 BEGIN {RS=" "; FS="/|\n";} {
11335 lt_foo="";
11336 lt_count=0;
11337 for (lt_i = NF; lt_i > 0; lt_i--) {
11338 if ($lt_i != "" && $lt_i != ".") {
11339 if ($lt_i == "..") {
11340 lt_count++;
11341 } else {
11342 if (lt_count == 0) {
11343 lt_foo="/" $lt_i lt_foo;
11344 } else {
11345 lt_count--;
11350 if (lt_foo != "") { lt_freq[lt_foo]++; }
11351 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11353 # AWK program above erroneously prepends '/' to C:/dos/paths
11354 # for these hosts.
11355 case $host_os in
11356 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11357 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11358 esac
11359 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11360 else
11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11363 library_names_spec=
11364 libname_spec='lib$name'
11365 soname_spec=
11366 shrext_cmds=".so"
11367 postinstall_cmds=
11368 postuninstall_cmds=
11369 finish_cmds=
11370 finish_eval=
11371 shlibpath_var=
11372 shlibpath_overrides_runpath=unknown
11373 version_type=none
11374 dynamic_linker="$host_os ld.so"
11375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11376 need_lib_prefix=unknown
11377 hardcode_into_libs=no
11379 # when you set need_version to no, make sure it does not cause -set_version
11380 # flags to be left without arguments
11381 need_version=unknown
11383 case $host_os in
11384 aix3*)
11385 version_type=linux
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11387 shlibpath_var=LIBPATH
11389 # AIX 3 has no versioning support, so we append a major version to the name.
11390 soname_spec='${libname}${release}${shared_ext}$major'
11393 aix[4-9]*)
11394 version_type=linux
11395 need_lib_prefix=no
11396 need_version=no
11397 hardcode_into_libs=yes
11398 if test "$host_cpu" = ia64; then
11399 # AIX 5 supports IA64
11400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 else
11403 # With GCC up to 2.95.x, collect2 would create an import file
11404 # for dependence libraries. The import file would start with
11405 # the line `#! .'. This would cause the generated library to
11406 # depend on `.', always an invalid library. This was fixed in
11407 # development snapshots of GCC prior to 3.0.
11408 case $host_os in
11409 aix4 | aix4.[01] | aix4.[01].*)
11410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11411 echo ' yes '
11412 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11414 else
11415 can_build_shared=no
11418 esac
11419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11420 # soname into executable. Probably we can add versioning support to
11421 # collect2, so additional links can be useful in future.
11422 if test "$aix_use_runtimelinking" = yes; then
11423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11424 # instead of lib<name>.a to let people know that these are not
11425 # typical AIX shared libraries.
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 else
11428 # We preserve .a as extension for shared libraries through AIX4.2
11429 # and later when we are not doing run time linking.
11430 library_names_spec='${libname}${release}.a $libname.a'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LIBPATH
11437 amigaos*)
11438 case $host_cpu in
11439 powerpc)
11440 # Since July 2007 AmigaOS4 officially supports .so libraries.
11441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 m68k)
11445 library_names_spec='$libname.ixlibrary $libname.a'
11446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11447 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'
11449 esac
11452 beos*)
11453 library_names_spec='${libname}${shared_ext}'
11454 dynamic_linker="$host_os ld.so"
11455 shlibpath_var=LIBRARY_PATH
11458 bsdi[45]*)
11459 version_type=linux
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11466 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11467 # the default ld.so.conf also contains /usr/contrib/lib and
11468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11469 # libtool to hard-code these into programs
11472 cygwin* | mingw* | pw32* | cegcc*)
11473 version_type=windows
11474 shrext_cmds=".dll"
11475 need_version=no
11476 need_lib_prefix=no
11478 case $GCC,$host_os in
11479 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11480 library_names_spec='$libname.dll.a'
11481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11482 postinstall_cmds='base_file=`basename \${file}`~
11483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11484 dldir=$destdir/`dirname \$dlpath`~
11485 test -d \$dldir || mkdir -p \$dldir~
11486 $install_prog $dir/$dlname \$dldir/$dlname~
11487 chmod a+x \$dldir/$dlname~
11488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492 dlpath=$dir/\$dldll~
11493 $RM \$dlpath'
11494 shlibpath_overrides_runpath=yes
11496 case $host_os in
11497 cygwin*)
11498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11503 mingw* | cegcc*)
11504 # MinGW DLLs use traditional 'lib' prefix
11505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507 pw32*)
11508 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511 esac
11515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11517 esac
11518 dynamic_linker='Win32 ld.exe'
11519 # FIXME: first we should search . and the directory the executable is in
11520 shlibpath_var=PATH
11523 darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529 soname_spec='${libname}${release}${major}$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11538 dgux*)
11539 version_type=linux
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11547 freebsd* | dragonfly*)
11548 # DragonFly does not have aout. When/if they implement a new
11549 # versioning mechanism, adjust this.
11550 if test -x /usr/bin/objformat; then
11551 objformat=`/usr/bin/objformat`
11552 else
11553 case $host_os in
11554 freebsd[23].*) objformat=aout ;;
11555 *) objformat=elf ;;
11556 esac
11558 version_type=freebsd-$objformat
11559 case $version_type in
11560 freebsd-elf*)
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 need_version=no
11563 need_lib_prefix=no
11565 freebsd-*)
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11567 need_version=yes
11569 esac
11570 shlibpath_var=LD_LIBRARY_PATH
11571 case $host_os in
11572 freebsd2.*)
11573 shlibpath_overrides_runpath=yes
11575 freebsd3.[01]* | freebsdelf3.[01]*)
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11581 shlibpath_overrides_runpath=no
11582 hardcode_into_libs=yes
11584 *) # from 4.6 on, and DragonFly
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11588 esac
11591 gnu*)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 hardcode_into_libs=yes
11601 haiku*)
11602 version_type=linux
11603 need_lib_prefix=no
11604 need_version=no
11605 dynamic_linker="$host_os runtime_loader"
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 shlibpath_var=LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes
11610 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11611 hardcode_into_libs=yes
11614 hpux9* | hpux10* | hpux11*)
11615 # Give a soname corresponding to the major version so that dld.sl refuses to
11616 # link against other versions.
11617 version_type=sunos
11618 need_lib_prefix=no
11619 need_version=no
11620 case $host_cpu in
11621 ia64*)
11622 shrext_cmds='.so'
11623 hardcode_into_libs=yes
11624 dynamic_linker="$host_os dld.so"
11625 shlibpath_var=LD_LIBRARY_PATH
11626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 if test "X$HPUX_IA64_MODE" = X32; then
11630 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11631 else
11632 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636 hppa*64*)
11637 shrext_cmds='.sl'
11638 hardcode_into_libs=yes
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11648 shrext_cmds='.sl'
11649 dynamic_linker="$host_os dld.sl"
11650 shlibpath_var=SHLIB_PATH
11651 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11655 esac
11656 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11657 postinstall_cmds='chmod 555 $lib'
11658 # or fails outright, so override atomically:
11659 install_override_mode=555
11662 interix[3-9]*)
11663 version_type=linux
11664 need_lib_prefix=no
11665 need_version=no
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671 hardcode_into_libs=yes
11674 irix5* | irix6* | nonstopux*)
11675 case $host_os in
11676 nonstopux*) version_type=nonstopux ;;
11678 if test "$lt_cv_prog_gnu_ld" = yes; then
11679 version_type=linux
11680 else
11681 version_type=irix
11682 fi ;;
11683 esac
11684 need_lib_prefix=no
11685 need_version=no
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11688 case $host_os in
11689 irix5* | nonstopux*)
11690 libsuff= shlibsuff=
11693 case $LD in # libtool.m4 will add one of these switches to LD
11694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11695 libsuff= shlibsuff= libmagic=32-bit;;
11696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11697 libsuff=32 shlibsuff=N32 libmagic=N32;;
11698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11700 *) libsuff= shlibsuff= libmagic=never-match;;
11701 esac
11703 esac
11704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11705 shlibpath_overrides_runpath=no
11706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11708 hardcode_into_libs=yes
11711 # No shared lib support for Linux oldld, aout, or coff.
11712 linux*oldld* | linux*aout* | linux*coff*)
11713 dynamic_linker=no
11716 # This must be Linux ELF.
11717 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11718 version_type=linux
11719 need_lib_prefix=no
11720 need_version=no
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11727 # Some binutils ld are patched to set DT_RUNPATH
11728 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 lt_cv_shlibpath_overrides_runpath=no
11732 save_LDFLAGS=$LDFLAGS
11733 save_libdir=$libdir
11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11736 if test x$gcc_no_link = xyes; then
11737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11743 main ()
11747 return 0;
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11752 lt_cv_shlibpath_overrides_runpath=yes
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LDFLAGS=$save_LDFLAGS
11758 libdir=$save_libdir
11762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11764 # This implies no fast_install, which is unacceptable.
11765 # Some rework will be needed to allow for fast_install
11766 # before this can be enabled.
11767 hardcode_into_libs=yes
11769 # Append ld.so.conf contents to the search path
11770 if test -f /etc/ld.so.conf; then
11771 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' ' '`
11772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11784 netbsd*)
11785 version_type=sunos
11786 need_lib_prefix=no
11787 need_version=no
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11792 else
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11802 newsos6)
11803 version_type=linux
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11809 *nto* | *qnx*)
11810 version_type=qnx
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11821 openbsd*)
11822 version_type=sunos
11823 sys_lib_dlsearch_path_spec="/usr/lib"
11824 need_lib_prefix=no
11825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11826 case $host_os in
11827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11828 *) need_version=no ;;
11829 esac
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834 case $host_os in
11835 openbsd2.[89] | openbsd2.[89].*)
11836 shlibpath_overrides_runpath=no
11839 shlibpath_overrides_runpath=yes
11841 esac
11842 else
11843 shlibpath_overrides_runpath=yes
11847 os2*)
11848 libname_spec='$name'
11849 shrext_cmds=".dll"
11850 need_lib_prefix=no
11851 library_names_spec='$libname${shared_ext} $libname.a'
11852 dynamic_linker='OS/2 ld.exe'
11853 shlibpath_var=LIBPATH
11856 osf3* | osf4* | osf5*)
11857 version_type=osf
11858 need_lib_prefix=no
11859 need_version=no
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867 rdos*)
11868 dynamic_linker=no
11871 solaris*)
11872 version_type=linux
11873 need_lib_prefix=no
11874 need_version=no
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11880 # ldd complains unless libraries are executable
11881 postinstall_cmds='chmod +x $lib'
11884 sunos4*)
11885 version_type=sunos
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 if test "$with_gnu_ld" = yes; then
11891 need_lib_prefix=no
11893 need_version=yes
11896 sysv4 | sysv4.3*)
11897 version_type=linux
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 case $host_vendor in
11902 sni)
11903 shlibpath_overrides_runpath=no
11904 need_lib_prefix=no
11905 runpath_var=LD_RUN_PATH
11907 siemens)
11908 need_lib_prefix=no
11910 motorola)
11911 need_lib_prefix=no
11912 need_version=no
11913 shlibpath_overrides_runpath=no
11914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11916 esac
11919 sysv4*MP*)
11920 if test -d /usr/nec ;then
11921 version_type=linux
11922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11923 soname_spec='$libname${shared_ext}.$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11929 version_type=freebsd-elf
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 shlibpath_overrides_runpath=yes
11936 hardcode_into_libs=yes
11937 if test "$with_gnu_ld" = yes; then
11938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11939 else
11940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11941 case $host_os in
11942 sco3.2v5*)
11943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11945 esac
11947 sys_lib_dlsearch_path_spec='/usr/lib'
11950 tpf*)
11951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11952 version_type=linux
11953 need_lib_prefix=no
11954 need_version=no
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=no
11958 hardcode_into_libs=yes
11961 uts4*)
11962 version_type=linux
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11969 dynamic_linker=no
11971 esac
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11973 $as_echo "$dynamic_linker" >&6; }
11974 test "$dynamic_linker" = no && can_build_shared=no
11976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11977 if test "$GCC" = yes; then
11978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12081 hardcode_action=
12082 if test -n "$hardcode_libdir_flag_spec" ||
12083 test -n "$runpath_var" ||
12084 test "X$hardcode_automatic" = "Xyes" ; then
12086 # We can hardcode non-existent directories.
12087 if test "$hardcode_direct" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092 test "$hardcode_minus_L" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action=relink
12095 else
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action=immediate
12099 else
12100 # We cannot hardcode anything, or else we can only hardcode existing
12101 # directories.
12102 hardcode_action=unsupported
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12105 $as_echo "$hardcode_action" >&6; }
12107 if test "$hardcode_action" = relink ||
12108 test "$inherit_rpath" = yes; then
12109 # Fast installation is not supported
12110 enable_fast_install=no
12111 elif test "$shlibpath_overrides_runpath" = yes ||
12112 test "$enable_shared" = no; then
12113 # Fast installation is not necessary
12114 enable_fast_install=needless
12122 if test "x$enable_dlopen" != xyes; then
12123 enable_dlopen=unknown
12124 enable_dlopen_self=unknown
12125 enable_dlopen_self_static=unknown
12126 else
12127 lt_cv_dlopen=no
12128 lt_cv_dlopen_libs=
12130 case $host_os in
12131 beos*)
12132 lt_cv_dlopen="load_add_on"
12133 lt_cv_dlopen_libs=
12134 lt_cv_dlopen_self=yes
12137 mingw* | pw32* | cegcc*)
12138 lt_cv_dlopen="LoadLibrary"
12139 lt_cv_dlopen_libs=
12142 cygwin*)
12143 lt_cv_dlopen="dlopen"
12144 lt_cv_dlopen_libs=
12147 darwin*)
12148 # if libdl is installed we need to link against it
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldl $LIBS"
12156 if test x$gcc_no_link = xyes; then
12157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char dlopen ();
12170 main ()
12172 return dlopen ();
12174 return 0;
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_dl_dlopen=yes
12179 else
12180 ac_cv_lib_dl_dlopen=no
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12188 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12190 else
12192 lt_cv_dlopen="dyld"
12193 lt_cv_dlopen_libs=
12194 lt_cv_dlopen_self=yes
12201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12202 if test "x$ac_cv_func_shl_load" = x""yes; then :
12203 lt_cv_dlopen="shl_load"
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12206 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12207 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-ldld $LIBS"
12212 if test x$gcc_no_link = xyes; then
12213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char shl_load ();
12226 main ()
12228 return shl_load ();
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_dld_shl_load=yes
12235 else
12236 ac_cv_lib_dld_shl_load=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12243 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12244 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12246 else
12247 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12248 if test "x$ac_cv_func_dlopen" = x""yes; then :
12249 lt_cv_dlopen="dlopen"
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12252 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-ldl $LIBS"
12258 if test x$gcc_no_link = xyes; then
12259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 /* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
12267 #ifdef __cplusplus
12268 extern "C"
12269 #endif
12270 char dlopen ();
12272 main ()
12274 return dlopen ();
12276 return 0;
12278 _ACEOF
12279 if ac_fn_c_try_link "$LINENO"; then :
12280 ac_cv_lib_dl_dlopen=yes
12281 else
12282 ac_cv_lib_dl_dlopen=no
12284 rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12290 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12294 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-lsvld $LIBS"
12300 if test x$gcc_no_link = xyes; then
12301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char dlopen ();
12314 main ()
12316 return dlopen ();
12318 return 0;
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 ac_cv_lib_svld_dlopen=yes
12323 else
12324 ac_cv_lib_svld_dlopen=no
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12332 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12337 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-ldld $LIBS"
12342 if test x$gcc_no_link = xyes; then
12343 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 char dld_link ();
12356 main ()
12358 return dld_link ();
12360 return 0;
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364 ac_cv_lib_dld_dld_link=yes
12365 else
12366 ac_cv_lib_dld_dld_link=no
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12373 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12374 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12375 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12394 esac
12396 if test "x$lt_cv_dlopen" != xno; then
12397 enable_dlopen=yes
12398 else
12399 enable_dlopen=no
12402 case $lt_cv_dlopen in
12403 dlopen)
12404 save_CPPFLAGS="$CPPFLAGS"
12405 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12407 save_LDFLAGS="$LDFLAGS"
12408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12410 save_LIBS="$LIBS"
12411 LIBS="$lt_cv_dlopen_libs $LIBS"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12414 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12415 if test "${lt_cv_dlopen_self+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test "$cross_compiling" = yes; then :
12419 lt_cv_dlopen_self=cross
12420 else
12421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12422 lt_status=$lt_dlunknown
12423 cat > conftest.$ac_ext <<_LT_EOF
12424 #line 12424 "configure"
12425 #include "confdefs.h"
12427 #if HAVE_DLFCN_H
12428 #include <dlfcn.h>
12429 #endif
12431 #include <stdio.h>
12433 #ifdef RTLD_GLOBAL
12434 # define LT_DLGLOBAL RTLD_GLOBAL
12435 #else
12436 # ifdef DL_GLOBAL
12437 # define LT_DLGLOBAL DL_GLOBAL
12438 # else
12439 # define LT_DLGLOBAL 0
12440 # endif
12441 #endif
12443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12444 find out it does not work in some platform. */
12445 #ifndef LT_DLLAZY_OR_NOW
12446 # ifdef RTLD_LAZY
12447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12448 # else
12449 # ifdef DL_LAZY
12450 # define LT_DLLAZY_OR_NOW DL_LAZY
12451 # else
12452 # ifdef RTLD_NOW
12453 # define LT_DLLAZY_OR_NOW RTLD_NOW
12454 # else
12455 # ifdef DL_NOW
12456 # define LT_DLLAZY_OR_NOW DL_NOW
12457 # else
12458 # define LT_DLLAZY_OR_NOW 0
12459 # endif
12460 # endif
12461 # endif
12462 # endif
12463 #endif
12465 /* When -fvisbility=hidden is used, assume the code has been annotated
12466 correspondingly for the symbols needed. */
12467 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12468 void fnord () __attribute__((visibility("default")));
12469 #endif
12471 void fnord () { int i=42; }
12472 int main ()
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12477 if (self)
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12480 else
12482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12485 /* dlclose (self); */
12487 else
12488 puts (dlerror ());
12490 return status;
12492 _LT_EOF
12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12494 (eval $ac_link) 2>&5
12495 ac_status=$?
12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12498 (./conftest; exit; ) >&5 2>/dev/null
12499 lt_status=$?
12500 case x$lt_status in
12501 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12502 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12503 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12504 esac
12505 else :
12506 # compilation failed
12507 lt_cv_dlopen_self=no
12510 rm -fr conftest*
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12515 $as_echo "$lt_cv_dlopen_self" >&6; }
12517 if test "x$lt_cv_dlopen_self" = xyes; then
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12520 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12521 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test "$cross_compiling" = yes; then :
12525 lt_cv_dlopen_self_static=cross
12526 else
12527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12528 lt_status=$lt_dlunknown
12529 cat > conftest.$ac_ext <<_LT_EOF
12530 #line 12530 "configure"
12531 #include "confdefs.h"
12533 #if HAVE_DLFCN_H
12534 #include <dlfcn.h>
12535 #endif
12537 #include <stdio.h>
12539 #ifdef RTLD_GLOBAL
12540 # define LT_DLGLOBAL RTLD_GLOBAL
12541 #else
12542 # ifdef DL_GLOBAL
12543 # define LT_DLGLOBAL DL_GLOBAL
12544 # else
12545 # define LT_DLGLOBAL 0
12546 # endif
12547 #endif
12549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12550 find out it does not work in some platform. */
12551 #ifndef LT_DLLAZY_OR_NOW
12552 # ifdef RTLD_LAZY
12553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12554 # else
12555 # ifdef DL_LAZY
12556 # define LT_DLLAZY_OR_NOW DL_LAZY
12557 # else
12558 # ifdef RTLD_NOW
12559 # define LT_DLLAZY_OR_NOW RTLD_NOW
12560 # else
12561 # ifdef DL_NOW
12562 # define LT_DLLAZY_OR_NOW DL_NOW
12563 # else
12564 # define LT_DLLAZY_OR_NOW 0
12565 # endif
12566 # endif
12567 # endif
12568 # endif
12569 #endif
12571 /* When -fvisbility=hidden is used, assume the code has been annotated
12572 correspondingly for the symbols needed. */
12573 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12574 void fnord () __attribute__((visibility("default")));
12575 #endif
12577 void fnord () { int i=42; }
12578 int main ()
12580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12581 int status = $lt_dlunknown;
12583 if (self)
12585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12586 else
12588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589 else puts (dlerror ());
12591 /* dlclose (self); */
12593 else
12594 puts (dlerror ());
12596 return status;
12598 _LT_EOF
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12600 (eval $ac_link) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12604 (./conftest; exit; ) >&5 2>/dev/null
12605 lt_status=$?
12606 case x$lt_status in
12607 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12608 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12609 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12610 esac
12611 else :
12612 # compilation failed
12613 lt_cv_dlopen_self_static=no
12616 rm -fr conftest*
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12621 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12624 CPPFLAGS="$save_CPPFLAGS"
12625 LDFLAGS="$save_LDFLAGS"
12626 LIBS="$save_LIBS"
12628 esac
12630 case $lt_cv_dlopen_self in
12631 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12632 *) enable_dlopen_self=unknown ;;
12633 esac
12635 case $lt_cv_dlopen_self_static in
12636 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12637 *) enable_dlopen_self_static=unknown ;;
12638 esac
12657 striplib=
12658 old_striplib=
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12660 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12661 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 else
12667 # FIXME - insert some real tests, host_os isn't really good enough
12668 case $host_os in
12669 darwin*)
12670 if test -n "$STRIP" ; then
12671 striplib="$STRIP -x"
12672 old_striplib="$STRIP -S"
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12684 esac
12698 # Report which library types will actually be built
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12700 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12702 $as_echo "$can_build_shared" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12705 $as_echo_n "checking whether to build shared libraries... " >&6; }
12706 test "$can_build_shared" = "no" && enable_shared=no
12708 # On AIX, shared libraries and static libraries use the same namespace, and
12709 # are all built from PIC.
12710 case $host_os in
12711 aix3*)
12712 test "$enable_shared" = yes && enable_static=no
12713 if test -n "$RANLIB"; then
12714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12715 postinstall_cmds='$RANLIB $lib'
12719 aix[4-9]*)
12720 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12721 test "$enable_shared" = yes && enable_static=no
12724 esac
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12726 $as_echo "$enable_shared" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12729 $as_echo_n "checking whether to build static libraries... " >&6; }
12730 # Make sure either enable_shared or enable_static is yes.
12731 test "$enable_shared" = yes || enable_static=yes
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12733 $as_echo "$enable_static" >&6; }
12739 ac_ext=c
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745 CC="$lt_save_CC"
12759 ac_config_commands="$ac_config_commands libtool"
12764 # Only expand once:
12770 case $host in
12771 *-cygwin* | *-mingw*)
12772 # 'host' will be top-level target in the case of a target lib,
12773 # we must compare to with_cross_host to decide if this is a native
12774 # or cross-compiler and select where to install dlls appropriately.
12775 if test -n "$with_cross_host" &&
12776 test x"$with_cross_host" != x"no"; then
12777 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12778 else
12779 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12783 lt_host_flags=
12785 esac
12791 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12793 # We need gfortran to compile parts of the library
12794 #AC_PROG_FC(gfortran)
12795 FC="$GFORTRAN"
12796 ac_ext=${ac_fc_srcext-f}
12797 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12798 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12799 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12800 if test -n "$ac_tool_prefix"; then
12801 for ac_prog in gfortran
12803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if test "${ac_cv_prog_FC+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test -n "$FC"; then
12811 ac_cv_prog_FC="$FC" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12830 FC=$ac_cv_prog_FC
12831 if test -n "$FC"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12833 $as_echo "$FC" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12840 test -n "$FC" && break
12841 done
12843 if test -z "$FC"; then
12844 ac_ct_FC=$FC
12845 for ac_prog in gfortran
12847 # Extract the first word of "$ac_prog", so it can be a program name with args.
12848 set dummy $ac_prog; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 if test -n "$ac_ct_FC"; then
12855 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12856 else
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12864 ac_cv_prog_ac_ct_FC="$ac_prog"
12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 break 2
12868 done
12869 done
12870 IFS=$as_save_IFS
12874 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12875 if test -n "$ac_ct_FC"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12877 $as_echo "$ac_ct_FC" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12884 test -n "$ac_ct_FC" && break
12885 done
12887 if test "x$ac_ct_FC" = x; then
12888 FC=""
12889 else
12890 case $cross_compiling:$ac_tool_warned in
12891 yes:)
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12894 ac_tool_warned=yes ;;
12895 esac
12896 FC=$ac_ct_FC
12901 # Provide some information about the compiler.
12902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12903 set X $ac_compile
12904 ac_compiler=$2
12905 for ac_option in --version -v -V -qversion; do
12906 { { ac_try="$ac_compiler $ac_option >&5"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910 esac
12911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12912 $as_echo "$ac_try_echo"; } >&5
12913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12914 ac_status=$?
12915 if test -s conftest.err; then
12916 sed '10a\
12917 ... rest of stderr output deleted ...
12918 10q' conftest.err >conftest.er1
12919 cat conftest.er1 >&5
12920 rm -f conftest.er1 conftest.err
12922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12923 test $ac_status = 0; }
12924 done
12925 rm -f a.out
12927 # If we don't use `.F' as extension, the preprocessor is not run on the
12928 # input file. (Note that this only needs to work for GNU compilers.)
12929 ac_save_ext=$ac_ext
12930 ac_ext=F
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12932 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12933 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 cat > conftest.$ac_ext <<_ACEOF
12937 program main
12938 #ifndef __GNUC__
12939 choke me
12940 #endif
12943 _ACEOF
12944 if ac_fn_fc_try_compile "$LINENO"; then :
12945 ac_compiler_gnu=yes
12946 else
12947 ac_compiler_gnu=no
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12954 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12955 ac_ext=$ac_save_ext
12956 ac_test_FCFLAGS=${FCFLAGS+set}
12957 ac_save_FCFLAGS=$FCFLAGS
12958 FCFLAGS=
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12960 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12961 if test "${ac_cv_prog_fc_g+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 FCFLAGS=-g
12965 cat > conftest.$ac_ext <<_ACEOF
12966 program main
12969 _ACEOF
12970 if ac_fn_fc_try_compile "$LINENO"; then :
12971 ac_cv_prog_fc_g=yes
12972 else
12973 ac_cv_prog_fc_g=no
12975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12979 $as_echo "$ac_cv_prog_fc_g" >&6; }
12980 if test "$ac_test_FCFLAGS" = set; then
12981 FCFLAGS=$ac_save_FCFLAGS
12982 elif test $ac_cv_prog_fc_g = yes; then
12983 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12984 FCFLAGS="-g -O2"
12985 else
12986 FCFLAGS="-g"
12988 else
12989 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12990 FCFLAGS="-O2"
12991 else
12992 FCFLAGS=
12996 ac_ext=c
12997 ac_cpp='$CPP $CPPFLAGS'
12998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13002 ac_ext=${ac_fc_srcext-f}
13003 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13004 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13008 if test -z "$FC" || test "X$FC" = "Xno"; then
13009 _lt_disable_FC=yes
13012 archive_cmds_need_lc_FC=no
13013 allow_undefined_flag_FC=
13014 always_export_symbols_FC=no
13015 archive_expsym_cmds_FC=
13016 export_dynamic_flag_spec_FC=
13017 hardcode_direct_FC=no
13018 hardcode_direct_absolute_FC=no
13019 hardcode_libdir_flag_spec_FC=
13020 hardcode_libdir_flag_spec_ld_FC=
13021 hardcode_libdir_separator_FC=
13022 hardcode_minus_L_FC=no
13023 hardcode_automatic_FC=no
13024 inherit_rpath_FC=no
13025 module_cmds_FC=
13026 module_expsym_cmds_FC=
13027 link_all_deplibs_FC=unknown
13028 old_archive_cmds_FC=$old_archive_cmds
13029 reload_flag_FC=$reload_flag
13030 reload_cmds_FC=$reload_cmds
13031 no_undefined_flag_FC=
13032 whole_archive_flag_spec_FC=
13033 enable_shared_with_static_runtimes_FC=no
13035 # Source file extension for fc test sources.
13036 ac_ext=${ac_fc_srcext-f}
13038 # Object file extension for compiled fc test sources.
13039 objext=o
13040 objext_FC=$objext
13042 # No sense in running all these tests if we already determined that
13043 # the FC compiler isn't working. Some variables (like enable_shared)
13044 # are currently assumed to apply to all compilers on this platform,
13045 # and will be corrupted by setting them based on a non-working compiler.
13046 if test "$_lt_disable_FC" != yes; then
13047 # Code to be used in simple compile tests
13048 lt_simple_compile_test_code="\
13049 subroutine t
13050 return
13054 # Code to be used in simple link tests
13055 lt_simple_link_test_code="\
13056 program t
13060 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13067 # If no C compiler was specified, use CC.
13068 LTCC=${LTCC-"$CC"}
13070 # If no C compiler flags were specified, use CFLAGS.
13071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13073 # Allow CC to be a program name with arguments.
13074 compiler=$CC
13077 # save warnings/boilerplate of simple test code
13078 ac_outfile=conftest.$ac_objext
13079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13081 _lt_compiler_boilerplate=`cat conftest.err`
13082 $RM conftest*
13084 ac_outfile=conftest.$ac_objext
13085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13087 _lt_linker_boilerplate=`cat conftest.err`
13088 $RM -r conftest*
13091 # Allow CC to be a program name with arguments.
13092 lt_save_CC="$CC"
13093 lt_save_GCC=$GCC
13094 CC=${FC-"f95"}
13095 compiler=$CC
13096 GCC=$ac_cv_fc_compiler_gnu
13098 compiler_FC=$CC
13099 for cc_temp in $compiler""; do
13100 case $cc_temp in
13101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103 \-*) ;;
13104 *) break;;
13105 esac
13106 done
13107 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13110 if test -n "$compiler"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13112 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13114 $as_echo "$can_build_shared" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13117 $as_echo_n "checking whether to build shared libraries... " >&6; }
13118 test "$can_build_shared" = "no" && enable_shared=no
13120 # On AIX, shared libraries and static libraries use the same namespace, and
13121 # are all built from PIC.
13122 case $host_os in
13123 aix3*)
13124 test "$enable_shared" = yes && enable_static=no
13125 if test -n "$RANLIB"; then
13126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13127 postinstall_cmds='$RANLIB $lib'
13130 aix[4-9]*)
13131 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13132 test "$enable_shared" = yes && enable_static=no
13135 esac
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13137 $as_echo "$enable_shared" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13140 $as_echo_n "checking whether to build static libraries... " >&6; }
13141 # Make sure either enable_shared or enable_static is yes.
13142 test "$enable_shared" = yes || enable_static=yes
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13144 $as_echo "$enable_static" >&6; }
13146 GCC_FC="$ac_cv_fc_compiler_gnu"
13147 LD_FC="$LD"
13149 ## CAVEAT EMPTOR:
13150 ## There is no encapsulation within the following macros, do not change
13151 ## the running order or otherwise move them around unless you know exactly
13152 ## what you are doing...
13153 # Dependencies to place before and after the object being linked:
13154 predep_objects_FC=
13155 postdep_objects_FC=
13156 predeps_FC=
13157 postdeps_FC=
13158 compiler_lib_search_path_FC=
13160 cat > conftest.$ac_ext <<_LT_EOF
13161 subroutine foo
13162 implicit none
13163 integer a
13165 return
13167 _LT_EOF
13169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13170 (eval $ac_compile) 2>&5
13171 ac_status=$?
13172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173 test $ac_status = 0; }; then
13174 # Parse the compiler output and extract the necessary
13175 # objects, libraries and library flags.
13177 # Sentinel used to keep track of whether or not we are before
13178 # the conftest object file.
13179 pre_test_object_deps_done=no
13181 for p in `eval "$output_verbose_link_cmd"`; do
13182 case $p in
13184 -L* | -R* | -l*)
13185 # Some compilers place space between "-{L,R}" and the path.
13186 # Remove the space.
13187 if test $p = "-L" ||
13188 test $p = "-R"; then
13189 prev=$p
13190 continue
13191 else
13192 prev=
13195 if test "$pre_test_object_deps_done" = no; then
13196 case $p in
13197 -L* | -R*)
13198 # Internal compiler library paths should come after those
13199 # provided the user. The postdeps already come after the
13200 # user supplied libs so there is no need to process them.
13201 if test -z "$compiler_lib_search_path_FC"; then
13202 compiler_lib_search_path_FC="${prev}${p}"
13203 else
13204 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13207 # The "-l" case would never come before the object being
13208 # linked, so don't bother handling this case.
13209 esac
13210 else
13211 if test -z "$postdeps_FC"; then
13212 postdeps_FC="${prev}${p}"
13213 else
13214 postdeps_FC="${postdeps_FC} ${prev}${p}"
13219 *.$objext)
13220 # This assumes that the test object file only shows up
13221 # once in the compiler output.
13222 if test "$p" = "conftest.$objext"; then
13223 pre_test_object_deps_done=yes
13224 continue
13227 if test "$pre_test_object_deps_done" = no; then
13228 if test -z "$predep_objects_FC"; then
13229 predep_objects_FC="$p"
13230 else
13231 predep_objects_FC="$predep_objects_FC $p"
13233 else
13234 if test -z "$postdep_objects_FC"; then
13235 postdep_objects_FC="$p"
13236 else
13237 postdep_objects_FC="$postdep_objects_FC $p"
13242 *) ;; # Ignore the rest.
13244 esac
13245 done
13247 # Clean up.
13248 rm -f a.out a.exe
13249 else
13250 echo "libtool.m4: error: problem compiling FC test program"
13253 $RM -f confest.$objext
13255 # PORTME: override above test on systems where it is broken
13258 case " $postdeps_FC " in
13259 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13260 esac
13261 compiler_lib_search_dirs_FC=
13262 if test -n "${compiler_lib_search_path_FC}"; then
13263 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13296 lt_prog_compiler_wl_FC=
13297 lt_prog_compiler_pic_FC=
13298 lt_prog_compiler_static_FC=
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13301 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13303 if test "$GCC" = yes; then
13304 lt_prog_compiler_wl_FC='-Wl,'
13305 lt_prog_compiler_static_FC='-static'
13307 case $host_os in
13308 aix*)
13309 # All AIX code is PIC.
13310 if test "$host_cpu" = ia64; then
13311 # AIX 5 now supports IA64 processor
13312 lt_prog_compiler_static_FC='-Bstatic'
13314 lt_prog_compiler_pic_FC='-fPIC'
13317 amigaos*)
13318 case $host_cpu in
13319 powerpc)
13320 # see comment about AmigaOS4 .so support
13321 lt_prog_compiler_pic_FC='-fPIC'
13323 m68k)
13324 # FIXME: we need at least 68020 code to build shared libraries, but
13325 # adding the `-m68020' flag to GCC prevents building anything better,
13326 # like `-m68040'.
13327 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13329 esac
13332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13333 # PIC is the default for these OSes.
13336 mingw* | cygwin* | pw32* | os2* | cegcc*)
13337 # This hack is so that the source file can tell whether it is being
13338 # built for inclusion in a dll (and should export symbols for example).
13339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13340 # (--disable-auto-import) libraries
13341 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13344 darwin* | rhapsody*)
13345 # PIC is the default on this platform
13346 # Common symbols not allowed in MH_DYLIB files
13347 lt_prog_compiler_pic_FC='-fno-common'
13350 haiku*)
13351 # PIC is the default for Haiku.
13352 # The "-static" flag exists, but is broken.
13353 lt_prog_compiler_static_FC=
13356 hpux*)
13357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13359 # sets the default TLS model and affects inlining.
13360 case $host_cpu in
13361 hppa*64*)
13362 # +Z the default
13365 lt_prog_compiler_pic_FC='-fPIC'
13367 esac
13370 interix[3-9]*)
13371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13372 # Instead, we relocate shared libraries at runtime.
13375 msdosdjgpp*)
13376 # Just because we use GCC doesn't mean we suddenly get shared libraries
13377 # on systems that don't support them.
13378 lt_prog_compiler_can_build_shared_FC=no
13379 enable_shared=no
13382 *nto* | *qnx*)
13383 # QNX uses GNU C++, but need to define -shared option too, otherwise
13384 # it will coredump.
13385 lt_prog_compiler_pic_FC='-fPIC -shared'
13388 sysv4*MP*)
13389 if test -d /usr/nec; then
13390 lt_prog_compiler_pic_FC=-Kconform_pic
13395 lt_prog_compiler_pic_FC='-fPIC'
13397 esac
13399 case $cc_basename in
13400 nvcc*) # Cuda Compiler Driver 2.2
13401 lt_prog_compiler_wl_FC='-Xlinker '
13402 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13404 esac
13405 else
13406 # PORTME Check for flag to pass linker flags through the system compiler.
13407 case $host_os in
13408 aix*)
13409 lt_prog_compiler_wl_FC='-Wl,'
13410 if test "$host_cpu" = ia64; then
13411 # AIX 5 now supports IA64 processor
13412 lt_prog_compiler_static_FC='-Bstatic'
13413 else
13414 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13418 mingw* | cygwin* | pw32* | os2* | cegcc*)
13419 # This hack is so that the source file can tell whether it is being
13420 # built for inclusion in a dll (and should export symbols for example).
13421 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13424 hpux9* | hpux10* | hpux11*)
13425 lt_prog_compiler_wl_FC='-Wl,'
13426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13427 # not for PA HP-UX.
13428 case $host_cpu in
13429 hppa*64*|ia64*)
13430 # +Z the default
13433 lt_prog_compiler_pic_FC='+Z'
13435 esac
13436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13437 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13440 irix5* | irix6* | nonstopux*)
13441 lt_prog_compiler_wl_FC='-Wl,'
13442 # PIC (with -KPIC) is the default.
13443 lt_prog_compiler_static_FC='-non_shared'
13446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13447 case $cc_basename in
13448 # old Intel for x86_64 which still supported -KPIC.
13449 ecc*)
13450 lt_prog_compiler_wl_FC='-Wl,'
13451 lt_prog_compiler_pic_FC='-KPIC'
13452 lt_prog_compiler_static_FC='-static'
13454 # icc used to be incompatible with GCC.
13455 # ICC 10 doesn't accept -KPIC any more.
13456 icc* | ifort*)
13457 lt_prog_compiler_wl_FC='-Wl,'
13458 lt_prog_compiler_pic_FC='-fPIC'
13459 lt_prog_compiler_static_FC='-static'
13461 # Lahey Fortran 8.1.
13462 lf95*)
13463 lt_prog_compiler_wl_FC='-Wl,'
13464 lt_prog_compiler_pic_FC='--shared'
13465 lt_prog_compiler_static_FC='--static'
13467 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13468 # Portland Group compilers (*not* the Pentium gcc compiler,
13469 # which looks to be a dead project)
13470 lt_prog_compiler_wl_FC='-Wl,'
13471 lt_prog_compiler_pic_FC='-fpic'
13472 lt_prog_compiler_static_FC='-Bstatic'
13474 ccc*)
13475 lt_prog_compiler_wl_FC='-Wl,'
13476 # All Alpha code is PIC.
13477 lt_prog_compiler_static_FC='-non_shared'
13479 xl* | bgxl* | bgf* | mpixl*)
13480 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13481 lt_prog_compiler_wl_FC='-Wl,'
13482 lt_prog_compiler_pic_FC='-qpic'
13483 lt_prog_compiler_static_FC='-qstaticlink'
13486 case `$CC -V 2>&1 | sed 5q` in
13487 *Sun\ F* | *Sun*Fortran*)
13488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13489 lt_prog_compiler_pic_FC='-KPIC'
13490 lt_prog_compiler_static_FC='-Bstatic'
13491 lt_prog_compiler_wl_FC=''
13493 *Sun\ C*)
13494 # Sun C 5.9
13495 lt_prog_compiler_pic_FC='-KPIC'
13496 lt_prog_compiler_static_FC='-Bstatic'
13497 lt_prog_compiler_wl_FC='-Wl,'
13499 esac
13501 esac
13504 newsos6)
13505 lt_prog_compiler_pic_FC='-KPIC'
13506 lt_prog_compiler_static_FC='-Bstatic'
13509 *nto* | *qnx*)
13510 # QNX uses GNU C++, but need to define -shared option too, otherwise
13511 # it will coredump.
13512 lt_prog_compiler_pic_FC='-fPIC -shared'
13515 osf3* | osf4* | osf5*)
13516 lt_prog_compiler_wl_FC='-Wl,'
13517 # All OSF/1 code is PIC.
13518 lt_prog_compiler_static_FC='-non_shared'
13521 rdos*)
13522 lt_prog_compiler_static_FC='-non_shared'
13525 solaris*)
13526 lt_prog_compiler_pic_FC='-KPIC'
13527 lt_prog_compiler_static_FC='-Bstatic'
13528 case $cc_basename in
13529 f77* | f90* | f95*)
13530 lt_prog_compiler_wl_FC='-Qoption ld ';;
13532 lt_prog_compiler_wl_FC='-Wl,';;
13533 esac
13536 sunos4*)
13537 lt_prog_compiler_wl_FC='-Qoption ld '
13538 lt_prog_compiler_pic_FC='-PIC'
13539 lt_prog_compiler_static_FC='-Bstatic'
13542 sysv4 | sysv4.2uw2* | sysv4.3*)
13543 lt_prog_compiler_wl_FC='-Wl,'
13544 lt_prog_compiler_pic_FC='-KPIC'
13545 lt_prog_compiler_static_FC='-Bstatic'
13548 sysv4*MP*)
13549 if test -d /usr/nec ;then
13550 lt_prog_compiler_pic_FC='-Kconform_pic'
13551 lt_prog_compiler_static_FC='-Bstatic'
13555 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13556 lt_prog_compiler_wl_FC='-Wl,'
13557 lt_prog_compiler_pic_FC='-KPIC'
13558 lt_prog_compiler_static_FC='-Bstatic'
13561 unicos*)
13562 lt_prog_compiler_wl_FC='-Wl,'
13563 lt_prog_compiler_can_build_shared_FC=no
13566 uts4*)
13567 lt_prog_compiler_pic_FC='-pic'
13568 lt_prog_compiler_static_FC='-Bstatic'
13572 lt_prog_compiler_can_build_shared_FC=no
13574 esac
13577 case $host_os in
13578 # For platforms which do not support PIC, -DPIC is meaningless:
13579 *djgpp*)
13580 lt_prog_compiler_pic_FC=
13583 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13585 esac
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13587 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13592 # Check to make sure the PIC flag actually works.
13594 if test -n "$lt_prog_compiler_pic_FC"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13596 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13597 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 lt_cv_prog_compiler_pic_works_FC=no
13601 ac_outfile=conftest.$ac_objext
13602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13603 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13604 # Insert the option either (1) after the last *FLAGS variable, or
13605 # (2) before a word containing "conftest.", or (3) at the end.
13606 # Note that $ac_compile itself does not contain backslashes and begins
13607 # with a dollar sign (not a hyphen), so the echo should work correctly.
13608 # The option is referenced via a variable to avoid confusing sed.
13609 lt_compile=`echo "$ac_compile" | $SED \
13610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13612 -e 's:$: $lt_compiler_flag:'`
13613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13614 (eval "$lt_compile" 2>conftest.err)
13615 ac_status=$?
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 if (exit $ac_status) && test -s "$ac_outfile"; then
13619 # The compiler can only warn and ignore the option if not recognized
13620 # So say no if there are warnings other than the usual output.
13621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13624 lt_cv_prog_compiler_pic_works_FC=yes
13627 $RM conftest*
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13631 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13633 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13634 case $lt_prog_compiler_pic_FC in
13635 "" | " "*) ;;
13636 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13637 esac
13638 else
13639 lt_prog_compiler_pic_FC=
13640 lt_prog_compiler_can_build_shared_FC=no
13648 # Check to make sure the static flag actually works.
13650 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13652 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13653 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 lt_cv_prog_compiler_static_works_FC=no
13657 save_LDFLAGS="$LDFLAGS"
13658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13661 # The linker can only warn and ignore the option if not recognized
13662 # So say no if there are warnings
13663 if test -s conftest.err; then
13664 # Append any errors to the config.log.
13665 cat conftest.err 1>&5
13666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13668 if diff conftest.exp conftest.er2 >/dev/null; then
13669 lt_cv_prog_compiler_static_works_FC=yes
13671 else
13672 lt_cv_prog_compiler_static_works_FC=yes
13675 $RM -r conftest*
13676 LDFLAGS="$save_LDFLAGS"
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13680 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13682 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13684 else
13685 lt_prog_compiler_static_FC=
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13693 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 lt_cv_prog_compiler_c_o_FC=no
13697 $RM -r conftest 2>/dev/null
13698 mkdir conftest
13699 cd conftest
13700 mkdir out
13701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 lt_compiler_flag="-o out/conftest2.$ac_objext"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 lt_compile=`echo "$ac_compile" | $SED \
13709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13711 -e 's:$: $lt_compiler_flag:'`
13712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13713 (eval "$lt_compile" 2>out/conftest.err)
13714 ac_status=$?
13715 cat out/conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13718 then
13719 # The compiler can only warn and ignore the option if not recognized
13720 # So say no if there are warnings
13721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13724 lt_cv_prog_compiler_c_o_FC=yes
13727 chmod u+w . 2>&5
13728 $RM conftest*
13729 # SGI C++ compiler will create directory out/ii_files/ for
13730 # template instantiation
13731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13732 $RM out/* && rmdir out
13733 cd ..
13734 $RM -r conftest
13735 $RM conftest*
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13739 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13745 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 lt_cv_prog_compiler_c_o_FC=no
13749 $RM -r conftest 2>/dev/null
13750 mkdir conftest
13751 cd conftest
13752 mkdir out
13753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13755 lt_compiler_flag="-o out/conftest2.$ac_objext"
13756 # Insert the option either (1) after the last *FLAGS variable, or
13757 # (2) before a word containing "conftest.", or (3) at the end.
13758 # Note that $ac_compile itself does not contain backslashes and begins
13759 # with a dollar sign (not a hyphen), so the echo should work correctly.
13760 lt_compile=`echo "$ac_compile" | $SED \
13761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13763 -e 's:$: $lt_compiler_flag:'`
13764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13765 (eval "$lt_compile" 2>out/conftest.err)
13766 ac_status=$?
13767 cat out/conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13770 then
13771 # The compiler can only warn and ignore the option if not recognized
13772 # So say no if there are warnings
13773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13776 lt_cv_prog_compiler_c_o_FC=yes
13779 chmod u+w . 2>&5
13780 $RM conftest*
13781 # SGI C++ compiler will create directory out/ii_files/ for
13782 # template instantiation
13783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13784 $RM out/* && rmdir out
13785 cd ..
13786 $RM -r conftest
13787 $RM conftest*
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13791 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13796 hard_links="nottested"
13797 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13798 # do not overwrite the value of need_locks provided by the user
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13800 $as_echo_n "checking if we can lock with hard links... " >&6; }
13801 hard_links=yes
13802 $RM conftest*
13803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13804 touch conftest.a
13805 ln conftest.a conftest.b 2>&5 || hard_links=no
13806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13808 $as_echo "$hard_links" >&6; }
13809 if test "$hard_links" = no; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13811 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13812 need_locks=warn
13814 else
13815 need_locks=no
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13823 runpath_var=
13824 allow_undefined_flag_FC=
13825 always_export_symbols_FC=no
13826 archive_cmds_FC=
13827 archive_expsym_cmds_FC=
13828 compiler_needs_object_FC=no
13829 enable_shared_with_static_runtimes_FC=no
13830 export_dynamic_flag_spec_FC=
13831 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13832 hardcode_automatic_FC=no
13833 hardcode_direct_FC=no
13834 hardcode_direct_absolute_FC=no
13835 hardcode_libdir_flag_spec_FC=
13836 hardcode_libdir_flag_spec_ld_FC=
13837 hardcode_libdir_separator_FC=
13838 hardcode_minus_L_FC=no
13839 hardcode_shlibpath_var_FC=unsupported
13840 inherit_rpath_FC=no
13841 link_all_deplibs_FC=unknown
13842 module_cmds_FC=
13843 module_expsym_cmds_FC=
13844 old_archive_from_new_cmds_FC=
13845 old_archive_from_expsyms_cmds_FC=
13846 thread_safe_flag_spec_FC=
13847 whole_archive_flag_spec_FC=
13848 # include_expsyms should be a list of space-separated symbols to be *always*
13849 # included in the symbol list
13850 include_expsyms_FC=
13851 # exclude_expsyms can be an extended regexp of symbols to exclude
13852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13854 # as well as any symbol that contains `d'.
13855 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13857 # platforms (ab)use it in PIC code, but their linkers get confused if
13858 # the symbol is explicitly referenced. Since portable code cannot
13859 # rely on this symbol name, it's probably fine to never include it in
13860 # preloaded symbol tables.
13861 # Exclude shared library initialization/finalization symbols.
13862 extract_expsyms_cmds=
13864 case $host_os in
13865 cygwin* | mingw* | pw32* | cegcc*)
13866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13867 # When not using gcc, we currently assume that we are using
13868 # Microsoft Visual C++.
13869 if test "$GCC" != yes; then
13870 with_gnu_ld=no
13873 interix*)
13874 # we just hope/assume this is gcc and not c89 (= MSVC++)
13875 with_gnu_ld=yes
13877 openbsd*)
13878 with_gnu_ld=no
13880 esac
13882 ld_shlibs_FC=yes
13884 # On some targets, GNU ld is compatible enough with the native linker
13885 # that we're better off using the native interface for both.
13886 lt_use_gnu_ld_interface=no
13887 if test "$with_gnu_ld" = yes; then
13888 case $host_os in
13889 aix*)
13890 # The AIX port of GNU ld has always aspired to compatibility
13891 # with the native linker. However, as the warning in the GNU ld
13892 # block says, versions before 2.19.5* couldn't really create working
13893 # shared libraries, regardless of the interface used.
13894 case `$LD -v 2>&1` in
13895 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13896 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13897 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13899 lt_use_gnu_ld_interface=yes
13901 esac
13904 lt_use_gnu_ld_interface=yes
13906 esac
13909 if test "$lt_use_gnu_ld_interface" = yes; then
13910 # If archive_cmds runs LD, not CC, wlarc should be empty
13911 wlarc='${wl}'
13913 # Set some defaults for GNU ld with shared library support. These
13914 # are reset later if shared libraries are not supported. Putting them
13915 # here allows them to be overridden if necessary.
13916 runpath_var=LD_RUN_PATH
13917 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13918 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13919 # ancient GNU ld didn't support --whole-archive et. al.
13920 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13921 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13922 else
13923 whole_archive_flag_spec_FC=
13925 supports_anon_versioning=no
13926 case `$LD -v 2>&1` in
13927 *GNU\ gold*) supports_anon_versioning=yes ;;
13928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13931 *\ 2.11.*) ;; # other 2.11 versions
13932 *) supports_anon_versioning=yes ;;
13933 esac
13935 # See if GNU ld supports shared libraries.
13936 case $host_os in
13937 aix[3-9]*)
13938 # On AIX/PPC, the GNU linker is very broken
13939 if test "$host_cpu" != ia64; then
13940 ld_shlibs_FC=no
13941 cat <<_LT_EOF 1>&2
13943 *** Warning: the GNU linker, at least up to release 2.19, is reported
13944 *** to be unable to reliably create shared libraries on AIX.
13945 *** Therefore, libtool is disabling shared libraries support. If you
13946 *** really care for shared libraries, you may want to install binutils
13947 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13948 *** You will then need to restart the configuration process.
13950 _LT_EOF
13954 amigaos*)
13955 case $host_cpu in
13956 powerpc)
13957 # see comment about AmigaOS4 .so support
13958 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959 archive_expsym_cmds_FC=''
13961 m68k)
13962 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)'
13963 hardcode_libdir_flag_spec_FC='-L$libdir'
13964 hardcode_minus_L_FC=yes
13966 esac
13969 beos*)
13970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13971 allow_undefined_flag_FC=unsupported
13972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13973 # support --undefined. This deserves some investigation. FIXME
13974 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975 else
13976 ld_shlibs_FC=no
13980 cygwin* | mingw* | pw32* | cegcc*)
13981 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13982 # as there is no search path for DLLs.
13983 hardcode_libdir_flag_spec_FC='-L$libdir'
13984 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13985 allow_undefined_flag_FC=unsupported
13986 always_export_symbols_FC=no
13987 enable_shared_with_static_runtimes_FC=yes
13988 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13991 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13992 # If the export-symbols file already is a .def file (1st line
13993 # is EXPORTS), use it as is; otherwise, prepend...
13994 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13995 cp $export_symbols $output_objdir/$soname.def;
13996 else
13997 echo EXPORTS > $output_objdir/$soname.def;
13998 cat $export_symbols >> $output_objdir/$soname.def;
14000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14001 else
14002 ld_shlibs_FC=no
14006 haiku*)
14007 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14008 link_all_deplibs_FC=yes
14011 interix[3-9]*)
14012 hardcode_direct_FC=no
14013 hardcode_shlibpath_var_FC=no
14014 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14015 export_dynamic_flag_spec_FC='${wl}-E'
14016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14017 # Instead, shared libraries are loaded at an image base (0x10000000 by
14018 # default) and relocated if they conflict, which is a slow very memory
14019 # consuming and fragmenting process. To avoid this, we pick a random,
14020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14022 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'
14023 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'
14026 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14027 tmp_diet=no
14028 if test "$host_os" = linux-dietlibc; then
14029 case $cc_basename in
14030 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14031 esac
14033 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14034 && test "$tmp_diet" = no
14035 then
14036 tmp_addflag=' $pic_flag'
14037 tmp_sharedflag='-shared'
14038 case $cc_basename,$host_cpu in
14039 pgcc*) # Portland Group C compiler
14040 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'
14041 tmp_addflag=' $pic_flag'
14043 pgf77* | pgf90* | pgf95* | pgfortran*)
14044 # Portland Group f77 and f90 compilers
14045 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'
14046 tmp_addflag=' $pic_flag -Mnomain' ;;
14047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14048 tmp_addflag=' -i_dynamic' ;;
14049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14050 tmp_addflag=' -i_dynamic -nofor_main' ;;
14051 ifc* | ifort*) # Intel Fortran compiler
14052 tmp_addflag=' -nofor_main' ;;
14053 lf95*) # Lahey Fortran 8.1
14054 whole_archive_flag_spec_FC=
14055 tmp_sharedflag='--shared' ;;
14056 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14057 tmp_sharedflag='-qmkshrobj'
14058 tmp_addflag= ;;
14059 nvcc*) # Cuda Compiler Driver 2.2
14060 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'
14061 compiler_needs_object_FC=yes
14063 esac
14064 case `$CC -V 2>&1 | sed 5q` in
14065 *Sun\ C*) # Sun C 5.9
14066 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'
14067 compiler_needs_object_FC=yes
14068 tmp_sharedflag='-G' ;;
14069 *Sun\ F*) # Sun Fortran 8.3
14070 tmp_sharedflag='-G' ;;
14071 esac
14072 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074 if test "x$supports_anon_versioning" = xyes; then
14075 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077 echo "local: *; };" >> $output_objdir/$libname.ver~
14078 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14081 case $cc_basename in
14082 xlf* | bgf* | bgxlf* | mpixlf*)
14083 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14084 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14085 hardcode_libdir_flag_spec_FC=
14086 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14087 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14088 if test "x$supports_anon_versioning" = xyes; then
14089 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14091 echo "local: *; };" >> $output_objdir/$libname.ver~
14092 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14095 esac
14096 else
14097 ld_shlibs_FC=no
14101 netbsd*)
14102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14103 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14104 wlarc=
14105 else
14106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14111 solaris*)
14112 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14113 ld_shlibs_FC=no
14114 cat <<_LT_EOF 1>&2
14116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14117 *** create shared libraries on Solaris systems. Therefore, libtool
14118 *** is disabling shared libraries support. We urge you to upgrade GNU
14119 *** binutils to release 2.9.1 or newer. Another option is to modify
14120 *** your PATH or compiler configuration so that the native linker is
14121 *** used, and then restart.
14123 _LT_EOF
14124 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14125 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14126 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14127 else
14128 ld_shlibs_FC=no
14132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14133 case `$LD -v 2>&1` in
14134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14135 ld_shlibs_FC=no
14136 cat <<_LT_EOF 1>&2
14138 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14139 *** reliably create shared libraries on SCO systems. Therefore, libtool
14140 *** is disabling shared libraries support. We urge you to upgrade GNU
14141 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14142 *** your PATH or compiler configuration so that the native linker is
14143 *** used, and then restart.
14145 _LT_EOF
14148 # For security reasons, it is highly recommended that you always
14149 # use absolute paths for naming shared libraries, and exclude the
14150 # DT_RUNPATH tag from executables and libraries. But doing so
14151 # requires that you compile everything twice, which is a pain.
14152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14153 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14154 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156 else
14157 ld_shlibs_FC=no
14160 esac
14163 sunos4*)
14164 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14165 wlarc=
14166 hardcode_direct_FC=yes
14167 hardcode_shlibpath_var_FC=no
14171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14172 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14174 else
14175 ld_shlibs_FC=no
14178 esac
14180 if test "$ld_shlibs_FC" = no; then
14181 runpath_var=
14182 hardcode_libdir_flag_spec_FC=
14183 export_dynamic_flag_spec_FC=
14184 whole_archive_flag_spec_FC=
14186 else
14187 # PORTME fill in a description of your system's linker (not GNU ld)
14188 case $host_os in
14189 aix3*)
14190 allow_undefined_flag_FC=unsupported
14191 always_export_symbols_FC=yes
14192 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'
14193 # Note: this linker hardcodes the directories in LIBPATH if there
14194 # are no directories specified by -L.
14195 hardcode_minus_L_FC=yes
14196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14197 # Neither direct hardcoding nor static linking is supported with a
14198 # broken collect2.
14199 hardcode_direct_FC=unsupported
14203 aix[4-9]*)
14204 if test "$host_cpu" = ia64; then
14205 # On IA64, the linker does run time linking by default, so we don't
14206 # have to do anything special.
14207 aix_use_runtimelinking=no
14208 exp_sym_flag='-Bexport'
14209 no_entry_flag=""
14210 else
14211 # If we're using GNU nm, then we don't want the "-C" option.
14212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14213 # Also, AIX nm treats weak defined symbols like other global
14214 # defined symbols, whereas GNU nm marks them as "W".
14215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14216 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'
14217 else
14218 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'
14220 aix_use_runtimelinking=no
14222 # Test if we are trying to use run time linking or normal
14223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14224 # need to do runtime linking.
14225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14226 for ld_flag in $LDFLAGS; do
14227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14228 aix_use_runtimelinking=yes
14229 break
14231 done
14233 esac
14235 exp_sym_flag='-bexport'
14236 no_entry_flag='-bnoentry'
14239 # When large executables or shared objects are built, AIX ld can
14240 # have problems creating the table of contents. If linking a library
14241 # or program results in "error TOC overflow" add -mminimal-toc to
14242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14245 archive_cmds_FC=''
14246 hardcode_direct_FC=yes
14247 hardcode_direct_absolute_FC=yes
14248 hardcode_libdir_separator_FC=':'
14249 link_all_deplibs_FC=yes
14250 file_list_spec_FC='${wl}-f,'
14252 if test "$GCC" = yes; then
14253 case $host_os in aix4.[012]|aix4.[012].*)
14254 # We only want to do this on AIX 4.2 and lower, the check
14255 # below for broken collect2 doesn't work under 4.3+
14256 collect2name=`${CC} -print-prog-name=collect2`
14257 if test -f "$collect2name" &&
14258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14259 then
14260 # We have reworked collect2
14262 else
14263 # We have old collect2
14264 hardcode_direct_FC=unsupported
14265 # It fails to find uninstalled libraries when the uninstalled
14266 # path is not listed in the libpath. Setting hardcode_minus_L
14267 # to unsupported forces relinking
14268 hardcode_minus_L_FC=yes
14269 hardcode_libdir_flag_spec_FC='-L$libdir'
14270 hardcode_libdir_separator_FC=
14273 esac
14274 shared_flag='-shared'
14275 if test "$aix_use_runtimelinking" = yes; then
14276 shared_flag="$shared_flag "'${wl}-G'
14278 else
14279 # not using gcc
14280 if test "$host_cpu" = ia64; then
14281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14282 # chokes on -Wl,-G. The following line is correct:
14283 shared_flag='-G'
14284 else
14285 if test "$aix_use_runtimelinking" = yes; then
14286 shared_flag='${wl}-G'
14287 else
14288 shared_flag='${wl}-bM:SRE'
14293 export_dynamic_flag_spec_FC='${wl}-bexpall'
14294 # It seems that -bexpall does not export symbols beginning with
14295 # underscore (_), so it is better to generate a list of symbols to export.
14296 always_export_symbols_FC=yes
14297 if test "$aix_use_runtimelinking" = yes; then
14298 # Warning - without using the other runtime loading flags (-brtl),
14299 # -berok will link without error, but may produce a broken library.
14300 allow_undefined_flag_FC='-berok'
14301 # Determine the default libpath from the value encoded in an
14302 # empty executable.
14303 if test x$gcc_no_link = xyes; then
14304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14306 cat > conftest.$ac_ext <<_ACEOF
14307 program main
14310 _ACEOF
14311 if ac_fn_fc_try_link "$LINENO"; then :
14313 lt_aix_libpath_sed='
14314 /Import File Strings/,/^$/ {
14315 /^0/ {
14316 s/^0 *\(.*\)$/\1/
14320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14321 # Check for a 64-bit object if we didn't find anything.
14322 if test -z "$aix_libpath"; then
14323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14330 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14331 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"
14332 else
14333 if test "$host_cpu" = ia64; then
14334 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14335 allow_undefined_flag_FC="-z nodefs"
14336 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"
14337 else
14338 # Determine the default libpath from the value encoded in an
14339 # empty executable.
14340 if test x$gcc_no_link = xyes; then
14341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14343 cat > conftest.$ac_ext <<_ACEOF
14344 program main
14347 _ACEOF
14348 if ac_fn_fc_try_link "$LINENO"; then :
14350 lt_aix_libpath_sed='
14351 /Import File Strings/,/^$/ {
14352 /^0/ {
14353 s/^0 *\(.*\)$/\1/
14357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14358 # Check for a 64-bit object if we didn't find anything.
14359 if test -z "$aix_libpath"; then
14360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14367 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14368 # Warning - without using the other run time loading flags,
14369 # -berok will link without error, but may produce a broken library.
14370 no_undefined_flag_FC=' ${wl}-bernotok'
14371 allow_undefined_flag_FC=' ${wl}-berok'
14372 if test "$with_gnu_ld" = yes; then
14373 # We only use this code for GNU lds that support --whole-archive.
14374 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14375 else
14376 # Exported symbols can be pulled into shared objects from archives
14377 whole_archive_flag_spec_FC='$convenience'
14379 archive_cmds_need_lc_FC=yes
14380 # This is similar to how AIX traditionally builds its shared libraries.
14381 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'
14386 amigaos*)
14387 case $host_cpu in
14388 powerpc)
14389 # see comment about AmigaOS4 .so support
14390 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391 archive_expsym_cmds_FC=''
14393 m68k)
14394 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)'
14395 hardcode_libdir_flag_spec_FC='-L$libdir'
14396 hardcode_minus_L_FC=yes
14398 esac
14401 bsdi[45]*)
14402 export_dynamic_flag_spec_FC=-rdynamic
14405 cygwin* | mingw* | pw32* | cegcc*)
14406 # When not using gcc, we currently assume that we are using
14407 # Microsoft Visual C++.
14408 # hardcode_libdir_flag_spec is actually meaningless, as there is
14409 # no search path for DLLs.
14410 hardcode_libdir_flag_spec_FC=' '
14411 allow_undefined_flag_FC=unsupported
14412 # Tell ltmain to make .lib files, not .a files.
14413 libext=lib
14414 # Tell ltmain to make .dll files, not .so files.
14415 shrext_cmds=".dll"
14416 # FIXME: Setting linknames here is a bad hack.
14417 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14418 # The linker will automatically build a .lib file if we build a DLL.
14419 old_archive_from_new_cmds_FC='true'
14420 # FIXME: Should let the user specify the lib program.
14421 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14422 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14423 enable_shared_with_static_runtimes_FC=yes
14426 darwin* | rhapsody*)
14429 archive_cmds_need_lc_FC=no
14430 hardcode_direct_FC=no
14431 hardcode_automatic_FC=yes
14432 hardcode_shlibpath_var_FC=unsupported
14433 if test "$lt_cv_ld_force_load" = "yes"; then
14434 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\"`'
14435 else
14436 whole_archive_flag_spec_FC=''
14438 link_all_deplibs_FC=yes
14439 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14440 case $cc_basename in
14441 ifort*) _lt_dar_can_shared=yes ;;
14442 *) _lt_dar_can_shared=$GCC ;;
14443 esac
14444 if test "$_lt_dar_can_shared" = "yes"; then
14445 output_verbose_link_cmd=func_echo_all
14446 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}"
14447 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14448 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}"
14449 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}"
14451 else
14452 ld_shlibs_FC=no
14457 dgux*)
14458 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459 hardcode_libdir_flag_spec_FC='-L$libdir'
14460 hardcode_shlibpath_var_FC=no
14463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14464 # support. Future versions do this automatically, but an explicit c++rt0.o
14465 # does not break anything, and helps significantly (at the cost of a little
14466 # extra space).
14467 freebsd2.2*)
14468 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14469 hardcode_libdir_flag_spec_FC='-R$libdir'
14470 hardcode_direct_FC=yes
14471 hardcode_shlibpath_var_FC=no
14474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14475 freebsd2.*)
14476 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_direct_FC=yes
14478 hardcode_minus_L_FC=yes
14479 hardcode_shlibpath_var_FC=no
14482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14483 freebsd* | dragonfly*)
14484 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14485 hardcode_libdir_flag_spec_FC='-R$libdir'
14486 hardcode_direct_FC=yes
14487 hardcode_shlibpath_var_FC=no
14490 hpux9*)
14491 if test "$GCC" = yes; then
14492 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'
14493 else
14494 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'
14496 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14497 hardcode_libdir_separator_FC=:
14498 hardcode_direct_FC=yes
14500 # hardcode_minus_L: Not really in the search PATH,
14501 # but as the default location of the library.
14502 hardcode_minus_L_FC=yes
14503 export_dynamic_flag_spec_FC='${wl}-E'
14506 hpux10*)
14507 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14508 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14509 else
14510 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14512 if test "$with_gnu_ld" = no; then
14513 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14514 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14515 hardcode_libdir_separator_FC=:
14516 hardcode_direct_FC=yes
14517 hardcode_direct_absolute_FC=yes
14518 export_dynamic_flag_spec_FC='${wl}-E'
14519 # hardcode_minus_L: Not really in the search PATH,
14520 # but as the default location of the library.
14521 hardcode_minus_L_FC=yes
14525 hpux11*)
14526 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14527 case $host_cpu in
14528 hppa*64*)
14529 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 ia64*)
14532 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14537 esac
14538 else
14539 case $host_cpu in
14540 hppa*64*)
14541 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14543 ia64*)
14544 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14549 esac
14551 if test "$with_gnu_ld" = no; then
14552 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14553 hardcode_libdir_separator_FC=:
14555 case $host_cpu in
14556 hppa*64*|ia64*)
14557 hardcode_direct_FC=no
14558 hardcode_shlibpath_var_FC=no
14561 hardcode_direct_FC=yes
14562 hardcode_direct_absolute_FC=yes
14563 export_dynamic_flag_spec_FC='${wl}-E'
14565 # hardcode_minus_L: Not really in the search PATH,
14566 # but as the default location of the library.
14567 hardcode_minus_L_FC=yes
14569 esac
14573 irix5* | irix6* | nonstopux*)
14574 if test "$GCC" = yes; then
14575 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'
14576 # Try to use the -exported_symbol ld option, if it does not
14577 # work, assume that -exports_file does not work either and
14578 # implicitly export all symbols.
14579 save_LDFLAGS="$LDFLAGS"
14580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14581 if test x$gcc_no_link = xyes; then
14582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14584 cat > conftest.$ac_ext <<_ACEOF
14585 int foo(void) {}
14586 _ACEOF
14587 if ac_fn_fc_try_link "$LINENO"; then :
14588 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'
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 LDFLAGS="$save_LDFLAGS"
14594 else
14595 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'
14596 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'
14598 archive_cmds_need_lc_FC='no'
14599 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14600 hardcode_libdir_separator_FC=:
14601 inherit_rpath_FC=yes
14602 link_all_deplibs_FC=yes
14605 netbsd*)
14606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14607 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14608 else
14609 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14611 hardcode_libdir_flag_spec_FC='-R$libdir'
14612 hardcode_direct_FC=yes
14613 hardcode_shlibpath_var_FC=no
14616 newsos6)
14617 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 hardcode_direct_FC=yes
14619 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14620 hardcode_libdir_separator_FC=:
14621 hardcode_shlibpath_var_FC=no
14624 *nto* | *qnx*)
14627 openbsd*)
14628 if test -f /usr/libexec/ld.so; then
14629 hardcode_direct_FC=yes
14630 hardcode_shlibpath_var_FC=no
14631 hardcode_direct_absolute_FC=yes
14632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14633 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14634 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14635 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14636 export_dynamic_flag_spec_FC='${wl}-E'
14637 else
14638 case $host_os in
14639 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14640 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_libdir_flag_spec_FC='-R$libdir'
14644 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14645 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14647 esac
14649 else
14650 ld_shlibs_FC=no
14654 os2*)
14655 hardcode_libdir_flag_spec_FC='-L$libdir'
14656 hardcode_minus_L_FC=yes
14657 allow_undefined_flag_FC=unsupported
14658 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'
14659 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14662 osf3*)
14663 if test "$GCC" = yes; then
14664 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14665 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'
14666 else
14667 allow_undefined_flag_FC=' -expect_unresolved \*'
14668 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'
14670 archive_cmds_need_lc_FC='no'
14671 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14672 hardcode_libdir_separator_FC=:
14675 osf4* | osf5*) # as osf3* with the addition of -msym flag
14676 if test "$GCC" = yes; then
14677 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14678 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'
14679 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14680 else
14681 allow_undefined_flag_FC=' -expect_unresolved \*'
14682 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'
14683 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~
14684 $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'
14686 # Both c and cxx compiler support -rpath directly
14687 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14689 archive_cmds_need_lc_FC='no'
14690 hardcode_libdir_separator_FC=:
14693 solaris*)
14694 no_undefined_flag_FC=' -z defs'
14695 if test "$GCC" = yes; then
14696 wlarc='${wl}'
14697 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14698 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14699 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14700 else
14701 case `$CC -V 2>&1` in
14702 *"Compilers 5.0"*)
14703 wlarc=''
14704 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14709 wlarc='${wl}'
14710 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14714 esac
14716 hardcode_libdir_flag_spec_FC='-R$libdir'
14717 hardcode_shlibpath_var_FC=no
14718 case $host_os in
14719 solaris2.[0-5] | solaris2.[0-5].*) ;;
14721 # The compiler driver will combine and reorder linker options,
14722 # but understands `-z linker_flag'. GCC discards it without `$wl',
14723 # but is careful enough not to reorder.
14724 # Supported since Solaris 2.6 (maybe 2.5.1?)
14725 if test "$GCC" = yes; then
14726 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14727 else
14728 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14731 esac
14732 link_all_deplibs_FC=yes
14735 sunos4*)
14736 if test "x$host_vendor" = xsequent; then
14737 # Use $CC to link under sequent, because it throws in some extra .o
14738 # files that make .init and .fini sections work.
14739 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14740 else
14741 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_FC='-L$libdir'
14744 hardcode_direct_FC=yes
14745 hardcode_minus_L_FC=yes
14746 hardcode_shlibpath_var_FC=no
14749 sysv4)
14750 case $host_vendor in
14751 sni)
14752 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_direct_FC=yes # is this really true???
14755 siemens)
14756 ## LD is ld it makes a PLAMLIB
14757 ## CC just makes a GrossModule.
14758 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14759 reload_cmds_FC='$CC -r -o $output$reload_objs'
14760 hardcode_direct_FC=no
14762 motorola)
14763 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14766 esac
14767 runpath_var='LD_RUN_PATH'
14768 hardcode_shlibpath_var_FC=no
14771 sysv4.3*)
14772 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_shlibpath_var_FC=no
14774 export_dynamic_flag_spec_FC='-Bexport'
14777 sysv4*MP*)
14778 if test -d /usr/nec; then
14779 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_shlibpath_var_FC=no
14781 runpath_var=LD_RUN_PATH
14782 hardcode_runpath_var=yes
14783 ld_shlibs_FC=yes
14787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14788 no_undefined_flag_FC='${wl}-z,text'
14789 archive_cmds_need_lc_FC=no
14790 hardcode_shlibpath_var_FC=no
14791 runpath_var='LD_RUN_PATH'
14793 if test "$GCC" = yes; then
14794 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14796 else
14797 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 sysv5* | sco3.2v5* | sco5v6*)
14803 # Note: We can NOT use -z defs as we might desire, because we do not
14804 # link with -lc, and that would cause any symbols used from libc to
14805 # always be unresolved, which means just about no library would
14806 # ever link correctly. If we're not using GNU ld we use -z text
14807 # though, which does catch some bad symbols but isn't as heavy-handed
14808 # as -z defs.
14809 no_undefined_flag_FC='${wl}-z,text'
14810 allow_undefined_flag_FC='${wl}-z,nodefs'
14811 archive_cmds_need_lc_FC=no
14812 hardcode_shlibpath_var_FC=no
14813 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14814 hardcode_libdir_separator_FC=':'
14815 link_all_deplibs_FC=yes
14816 export_dynamic_flag_spec_FC='${wl}-Bexport'
14817 runpath_var='LD_RUN_PATH'
14819 if test "$GCC" = yes; then
14820 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 else
14823 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 uts4*)
14829 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_libdir_flag_spec_FC='-L$libdir'
14831 hardcode_shlibpath_var_FC=no
14835 ld_shlibs_FC=no
14837 esac
14839 if test x$host_vendor = xsni; then
14840 case $host in
14841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14842 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14844 esac
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14849 $as_echo "$ld_shlibs_FC" >&6; }
14850 test "$ld_shlibs_FC" = no && can_build_shared=no
14852 with_gnu_ld_FC=$with_gnu_ld
14860 # Do we need to explicitly link libc?
14862 case "x$archive_cmds_need_lc_FC" in
14863 x|xyes)
14864 # Assume -lc should be added
14865 archive_cmds_need_lc_FC=yes
14867 if test "$enable_shared" = yes && test "$GCC" = yes; then
14868 case $archive_cmds_FC in
14869 *'~'*)
14870 # FIXME: we may have to deal with multi-command sequences.
14872 '$CC '*)
14873 # Test whether the compiler implicitly links with -lc since on some
14874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14875 # to ld, don't add -lc before -lgcc.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14877 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14878 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 $RM conftest*
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14885 (eval $ac_compile) 2>&5
14886 ac_status=$?
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; } 2>conftest.err; then
14889 soname=conftest
14890 lib=conftest
14891 libobjs=conftest.$ac_objext
14892 deplibs=
14893 wl=$lt_prog_compiler_wl_FC
14894 pic_flag=$lt_prog_compiler_pic_FC
14895 compiler_flags=-v
14896 linker_flags=-v
14897 verstring=
14898 output_objdir=.
14899 libname=conftest
14900 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14901 allow_undefined_flag_FC=
14902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14903 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14904 ac_status=$?
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }
14907 then
14908 lt_cv_archive_cmds_need_lc_FC=no
14909 else
14910 lt_cv_archive_cmds_need_lc_FC=yes
14912 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14913 else
14914 cat conftest.err 1>&5
14916 $RM conftest*
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14920 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14921 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14923 esac
14926 esac
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14992 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14994 library_names_spec=
14995 libname_spec='lib$name'
14996 soname_spec=
14997 shrext_cmds=".so"
14998 postinstall_cmds=
14999 postuninstall_cmds=
15000 finish_cmds=
15001 finish_eval=
15002 shlibpath_var=
15003 shlibpath_overrides_runpath=unknown
15004 version_type=none
15005 dynamic_linker="$host_os ld.so"
15006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15007 need_lib_prefix=unknown
15008 hardcode_into_libs=no
15010 # when you set need_version to no, make sure it does not cause -set_version
15011 # flags to be left without arguments
15012 need_version=unknown
15014 case $host_os in
15015 aix3*)
15016 version_type=linux
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15018 shlibpath_var=LIBPATH
15020 # AIX 3 has no versioning support, so we append a major version to the name.
15021 soname_spec='${libname}${release}${shared_ext}$major'
15024 aix[4-9]*)
15025 version_type=linux
15026 need_lib_prefix=no
15027 need_version=no
15028 hardcode_into_libs=yes
15029 if test "$host_cpu" = ia64; then
15030 # AIX 5 supports IA64
15031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 else
15034 # With GCC up to 2.95.x, collect2 would create an import file
15035 # for dependence libraries. The import file would start with
15036 # the line `#! .'. This would cause the generated library to
15037 # depend on `.', always an invalid library. This was fixed in
15038 # development snapshots of GCC prior to 3.0.
15039 case $host_os in
15040 aix4 | aix4.[01] | aix4.[01].*)
15041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15042 echo ' yes '
15043 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15045 else
15046 can_build_shared=no
15049 esac
15050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15051 # soname into executable. Probably we can add versioning support to
15052 # collect2, so additional links can be useful in future.
15053 if test "$aix_use_runtimelinking" = yes; then
15054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15055 # instead of lib<name>.a to let people know that these are not
15056 # typical AIX shared libraries.
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 else
15059 # We preserve .a as extension for shared libraries through AIX4.2
15060 # and later when we are not doing run time linking.
15061 library_names_spec='${libname}${release}.a $libname.a'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15064 shlibpath_var=LIBPATH
15068 amigaos*)
15069 case $host_cpu in
15070 powerpc)
15071 # Since July 2007 AmigaOS4 officially supports .so libraries.
15072 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075 m68k)
15076 library_names_spec='$libname.ixlibrary $libname.a'
15077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15078 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'
15080 esac
15083 beos*)
15084 library_names_spec='${libname}${shared_ext}'
15085 dynamic_linker="$host_os ld.so"
15086 shlibpath_var=LIBRARY_PATH
15089 bsdi[45]*)
15090 version_type=linux
15091 need_version=no
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15098 # the default ld.so.conf also contains /usr/contrib/lib and
15099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15100 # libtool to hard-code these into programs
15103 cygwin* | mingw* | pw32* | cegcc*)
15104 version_type=windows
15105 shrext_cmds=".dll"
15106 need_version=no
15107 need_lib_prefix=no
15109 case $GCC,$host_os in
15110 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15111 library_names_spec='$libname.dll.a'
15112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15113 postinstall_cmds='base_file=`basename \${file}`~
15114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15115 dldir=$destdir/`dirname \$dlpath`~
15116 test -d \$dldir || mkdir -p \$dldir~
15117 $install_prog $dir/$dlname \$dldir/$dlname~
15118 chmod a+x \$dldir/$dlname~
15119 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15120 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15123 dlpath=$dir/\$dldll~
15124 $RM \$dlpath'
15125 shlibpath_overrides_runpath=yes
15127 case $host_os in
15128 cygwin*)
15129 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15130 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15133 mingw* | cegcc*)
15134 # MinGW DLLs use traditional 'lib' prefix
15135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15137 pw32*)
15138 # pw32 DLLs use 'pw' prefix rather than 'lib'
15139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15141 esac
15145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15147 esac
15148 dynamic_linker='Win32 ld.exe'
15149 # FIXME: first we should search . and the directory the executable is in
15150 shlibpath_var=PATH
15153 darwin* | rhapsody*)
15154 dynamic_linker="$host_os dyld"
15155 version_type=darwin
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15159 soname_spec='${libname}${release}${major}$shared_ext'
15160 shlibpath_overrides_runpath=yes
15161 shlibpath_var=DYLD_LIBRARY_PATH
15162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15167 dgux*)
15168 version_type=linux
15169 need_lib_prefix=no
15170 need_version=no
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15176 freebsd* | dragonfly*)
15177 # DragonFly does not have aout. When/if they implement a new
15178 # versioning mechanism, adjust this.
15179 if test -x /usr/bin/objformat; then
15180 objformat=`/usr/bin/objformat`
15181 else
15182 case $host_os in
15183 freebsd[23].*) objformat=aout ;;
15184 *) objformat=elf ;;
15185 esac
15187 version_type=freebsd-$objformat
15188 case $version_type in
15189 freebsd-elf*)
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15191 need_version=no
15192 need_lib_prefix=no
15194 freebsd-*)
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15196 need_version=yes
15198 esac
15199 shlibpath_var=LD_LIBRARY_PATH
15200 case $host_os in
15201 freebsd2.*)
15202 shlibpath_overrides_runpath=yes
15204 freebsd3.[01]* | freebsdelf3.[01]*)
15205 shlibpath_overrides_runpath=yes
15206 hardcode_into_libs=yes
15208 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15209 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15210 shlibpath_overrides_runpath=no
15211 hardcode_into_libs=yes
15213 *) # from 4.6 on, and DragonFly
15214 shlibpath_overrides_runpath=yes
15215 hardcode_into_libs=yes
15217 esac
15220 gnu*)
15221 version_type=linux
15222 need_lib_prefix=no
15223 need_version=no
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 hardcode_into_libs=yes
15230 haiku*)
15231 version_type=linux
15232 need_lib_prefix=no
15233 need_version=no
15234 dynamic_linker="$host_os runtime_loader"
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15240 hardcode_into_libs=yes
15243 hpux9* | hpux10* | hpux11*)
15244 # Give a soname corresponding to the major version so that dld.sl refuses to
15245 # link against other versions.
15246 version_type=sunos
15247 need_lib_prefix=no
15248 need_version=no
15249 case $host_cpu in
15250 ia64*)
15251 shrext_cmds='.so'
15252 hardcode_into_libs=yes
15253 dynamic_linker="$host_os dld.so"
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 if test "X$HPUX_IA64_MODE" = X32; then
15259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15260 else
15261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15265 hppa*64*)
15266 shrext_cmds='.sl'
15267 hardcode_into_libs=yes
15268 dynamic_linker="$host_os dld.sl"
15269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277 shrext_cmds='.sl'
15278 dynamic_linker="$host_os dld.sl"
15279 shlibpath_var=SHLIB_PATH
15280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15284 esac
15285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15286 postinstall_cmds='chmod 555 $lib'
15287 # or fails outright, so override atomically:
15288 install_override_mode=555
15291 interix[3-9]*)
15292 version_type=linux
15293 need_lib_prefix=no
15294 need_version=no
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15303 irix5* | irix6* | nonstopux*)
15304 case $host_os in
15305 nonstopux*) version_type=nonstopux ;;
15307 if test "$lt_cv_prog_gnu_ld" = yes; then
15308 version_type=linux
15309 else
15310 version_type=irix
15311 fi ;;
15312 esac
15313 need_lib_prefix=no
15314 need_version=no
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 case $host_os in
15318 irix5* | nonstopux*)
15319 libsuff= shlibsuff=
15322 case $LD in # libtool.m4 will add one of these switches to LD
15323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15324 libsuff= shlibsuff= libmagic=32-bit;;
15325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15326 libsuff=32 shlibsuff=N32 libmagic=N32;;
15327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15329 *) libsuff= shlibsuff= libmagic=never-match;;
15330 esac
15332 esac
15333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15337 hardcode_into_libs=yes
15340 # No shared lib support for Linux oldld, aout, or coff.
15341 linux*oldld* | linux*aout* | linux*coff*)
15342 dynamic_linker=no
15345 # This must be Linux ELF.
15346 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15347 version_type=linux
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 shlibpath_overrides_runpath=no
15356 # Some binutils ld are patched to set DT_RUNPATH
15357 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 lt_cv_shlibpath_overrides_runpath=no
15361 save_LDFLAGS=$LDFLAGS
15362 save_libdir=$libdir
15363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15365 if test x$gcc_no_link = xyes; then
15366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15368 cat > conftest.$ac_ext <<_ACEOF
15369 program main
15372 _ACEOF
15373 if ac_fn_fc_try_link "$LINENO"; then :
15374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15375 lt_cv_shlibpath_overrides_runpath=yes
15378 rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LDFLAGS=$save_LDFLAGS
15381 libdir=$save_libdir
15385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15387 # This implies no fast_install, which is unacceptable.
15388 # Some rework will be needed to allow for fast_install
15389 # before this can be enabled.
15390 hardcode_into_libs=yes
15392 # Append ld.so.conf contents to the search path
15393 if test -f /etc/ld.so.conf; then
15394 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' ' '`
15395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15398 # We used to test for /lib/ld.so.1 and disable shared libraries on
15399 # powerpc, because MkLinux only supported shared libraries with the
15400 # GNU dynamic linker. Since this was broken with cross compilers,
15401 # most powerpc-linux boxes support dynamic linking these days and
15402 # people can always --disable-shared, the test was removed, and we
15403 # assume the GNU/Linux dynamic linker is in use.
15404 dynamic_linker='GNU/Linux ld.so'
15407 netbsd*)
15408 version_type=sunos
15409 need_lib_prefix=no
15410 need_version=no
15411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15414 dynamic_linker='NetBSD (a.out) ld.so'
15415 else
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 dynamic_linker='NetBSD ld.elf_so'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=yes
15422 hardcode_into_libs=yes
15425 newsos6)
15426 version_type=linux
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15432 *nto* | *qnx*)
15433 version_type=qnx
15434 need_lib_prefix=no
15435 need_version=no
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=no
15440 hardcode_into_libs=yes
15441 dynamic_linker='ldqnx.so'
15444 openbsd*)
15445 version_type=sunos
15446 sys_lib_dlsearch_path_spec="/usr/lib"
15447 need_lib_prefix=no
15448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15449 case $host_os in
15450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15451 *) need_version=no ;;
15452 esac
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15457 case $host_os in
15458 openbsd2.[89] | openbsd2.[89].*)
15459 shlibpath_overrides_runpath=no
15462 shlibpath_overrides_runpath=yes
15464 esac
15465 else
15466 shlibpath_overrides_runpath=yes
15470 os2*)
15471 libname_spec='$name'
15472 shrext_cmds=".dll"
15473 need_lib_prefix=no
15474 library_names_spec='$libname${shared_ext} $libname.a'
15475 dynamic_linker='OS/2 ld.exe'
15476 shlibpath_var=LIBPATH
15479 osf3* | osf4* | osf5*)
15480 version_type=osf
15481 need_lib_prefix=no
15482 need_version=no
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15490 rdos*)
15491 dynamic_linker=no
15494 solaris*)
15495 version_type=linux
15496 need_lib_prefix=no
15497 need_version=no
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes
15502 hardcode_into_libs=yes
15503 # ldd complains unless libraries are executable
15504 postinstall_cmds='chmod +x $lib'
15507 sunos4*)
15508 version_type=sunos
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15511 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=yes
15513 if test "$with_gnu_ld" = yes; then
15514 need_lib_prefix=no
15516 need_version=yes
15519 sysv4 | sysv4.3*)
15520 version_type=linux
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 case $host_vendor in
15525 sni)
15526 shlibpath_overrides_runpath=no
15527 need_lib_prefix=no
15528 runpath_var=LD_RUN_PATH
15530 siemens)
15531 need_lib_prefix=no
15533 motorola)
15534 need_lib_prefix=no
15535 need_version=no
15536 shlibpath_overrides_runpath=no
15537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15539 esac
15542 sysv4*MP*)
15543 if test -d /usr/nec ;then
15544 version_type=linux
15545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15546 soname_spec='$libname${shared_ext}.$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15552 version_type=freebsd-elf
15553 need_lib_prefix=no
15554 need_version=no
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15560 if test "$with_gnu_ld" = yes; then
15561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15562 else
15563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15564 case $host_os in
15565 sco3.2v5*)
15566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15568 esac
15570 sys_lib_dlsearch_path_spec='/usr/lib'
15573 tpf*)
15574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15575 version_type=linux
15576 need_lib_prefix=no
15577 need_version=no
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15584 uts4*)
15585 version_type=linux
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15592 dynamic_linker=no
15594 esac
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15596 $as_echo "$dynamic_linker" >&6; }
15597 test "$dynamic_linker" = no && can_build_shared=no
15599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15600 if test "$GCC" = yes; then
15601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15604 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15649 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15650 hardcode_action_FC=
15651 if test -n "$hardcode_libdir_flag_spec_FC" ||
15652 test -n "$runpath_var_FC" ||
15653 test "X$hardcode_automatic_FC" = "Xyes" ; then
15655 # We can hardcode non-existent directories.
15656 if test "$hardcode_direct_FC" != no &&
15657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15658 # have to relink, otherwise we might link with an installed library
15659 # when we should be linking with a yet-to-be-installed one
15660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15661 test "$hardcode_minus_L_FC" != no; then
15662 # Linking always hardcodes the temporary library directory.
15663 hardcode_action_FC=relink
15664 else
15665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15666 hardcode_action_FC=immediate
15668 else
15669 # We cannot hardcode anything, or else we can only hardcode existing
15670 # directories.
15671 hardcode_action_FC=unsupported
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15674 $as_echo "$hardcode_action_FC" >&6; }
15676 if test "$hardcode_action_FC" = relink ||
15677 test "$inherit_rpath_FC" = yes; then
15678 # Fast installation is not supported
15679 enable_fast_install=no
15680 elif test "$shlibpath_overrides_runpath" = yes ||
15681 test "$enable_shared" = no; then
15682 # Fast installation is not necessary
15683 enable_fast_install=needless
15692 fi # test -n "$compiler"
15694 GCC=$lt_save_GCC
15695 CC="$lt_save_CC"
15696 fi # test "$_lt_disable_FC" != yes
15698 ac_ext=c
15699 ac_cpp='$CPP $CPPFLAGS'
15700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15706 # extra LD Flags which are required for targets
15707 case "${host}" in
15708 *-darwin*)
15709 # Darwin needs -single_module when linking libgfortran
15710 extra_ldflags_libgfortran=-Wl,-single_module
15712 esac
15715 # We need a working compiler at that point, otherwise give a clear
15716 # error message and bail out.
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15719 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15720 ac_ext=${ac_fc_srcext-f}
15721 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15722 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15725 cat > conftest.$ac_ext <<_ACEOF
15727 program foo
15728 real, parameter :: bar = sin (12.34 / 2.5)
15729 end program foo
15730 _ACEOF
15731 if ac_fn_fc_try_compile "$LINENO"; then :
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15733 $as_echo "yes" >&6; }
15734 else
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741 ac_ext=c
15742 ac_cpp='$CPP $CPPFLAGS'
15743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15749 # Check whether --enable-largefile was given.
15750 if test "${enable_largefile+set}" = set; then :
15751 enableval=$enable_largefile;
15754 if test "$enable_largefile" != no; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15757 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15758 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 ac_cv_sys_largefile_CC=no
15762 if test "$GCC" != yes; then
15763 ac_save_CC=$CC
15764 while :; do
15765 # IRIX 6.2 and later do not support large files by default,
15766 # so use the C compiler's -n32 option if that helps.
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 #include <sys/types.h>
15770 /* Check that off_t can represent 2**63 - 1 correctly.
15771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15772 since some C++ compilers masquerading as C compilers
15773 incorrectly reject 9223372036854775807. */
15774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15776 && LARGE_OFF_T % 2147483647 == 1)
15777 ? 1 : -1];
15779 main ()
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_compile "$LINENO"; then :
15787 break
15789 rm -f core conftest.err conftest.$ac_objext
15790 CC="$CC -n32"
15791 if ac_fn_c_try_compile "$LINENO"; then :
15792 ac_cv_sys_largefile_CC=' -n32'; break
15794 rm -f core conftest.err conftest.$ac_objext
15795 break
15796 done
15797 CC=$ac_save_CC
15798 rm -f conftest.$ac_ext
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15802 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15803 if test "$ac_cv_sys_largefile_CC" != no; then
15804 CC=$CC$ac_cv_sys_largefile_CC
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15808 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15809 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 while :; do
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 #include <sys/types.h>
15816 /* Check that off_t can represent 2**63 - 1 correctly.
15817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15818 since some C++ compilers masquerading as C compilers
15819 incorrectly reject 9223372036854775807. */
15820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15822 && LARGE_OFF_T % 2147483647 == 1)
15823 ? 1 : -1];
15825 main ()
15829 return 0;
15831 _ACEOF
15832 if ac_fn_c_try_compile "$LINENO"; then :
15833 ac_cv_sys_file_offset_bits=no; break
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 #define _FILE_OFFSET_BITS 64
15839 #include <sys/types.h>
15840 /* Check that off_t can represent 2**63 - 1 correctly.
15841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15842 since some C++ compilers masquerading as C compilers
15843 incorrectly reject 9223372036854775807. */
15844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15846 && LARGE_OFF_T % 2147483647 == 1)
15847 ? 1 : -1];
15849 main ()
15853 return 0;
15855 _ACEOF
15856 if ac_fn_c_try_compile "$LINENO"; then :
15857 ac_cv_sys_file_offset_bits=64; break
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 ac_cv_sys_file_offset_bits=unknown
15861 break
15862 done
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15865 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15866 case $ac_cv_sys_file_offset_bits in #(
15867 no | unknown) ;;
15869 cat >>confdefs.h <<_ACEOF
15870 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15871 _ACEOF
15873 esac
15874 rm -rf conftest*
15875 if test $ac_cv_sys_file_offset_bits = unknown; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15877 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15878 if test "${ac_cv_sys_large_files+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 while :; do
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 #include <sys/types.h>
15885 /* Check that off_t can represent 2**63 - 1 correctly.
15886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15887 since some C++ compilers masquerading as C compilers
15888 incorrectly reject 9223372036854775807. */
15889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15891 && LARGE_OFF_T % 2147483647 == 1)
15892 ? 1 : -1];
15894 main ()
15898 return 0;
15900 _ACEOF
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 ac_cv_sys_large_files=no; break
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 #define _LARGE_FILES 1
15908 #include <sys/types.h>
15909 /* Check that off_t can represent 2**63 - 1 correctly.
15910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15911 since some C++ compilers masquerading as C compilers
15912 incorrectly reject 9223372036854775807. */
15913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15915 && LARGE_OFF_T % 2147483647 == 1)
15916 ? 1 : -1];
15918 main ()
15922 return 0;
15924 _ACEOF
15925 if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_sys_large_files=1; break
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 ac_cv_sys_large_files=unknown
15930 break
15931 done
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15934 $as_echo "$ac_cv_sys_large_files" >&6; }
15935 case $ac_cv_sys_large_files in #(
15936 no | unknown) ;;
15938 cat >>confdefs.h <<_ACEOF
15939 #define _LARGE_FILES $ac_cv_sys_large_files
15940 _ACEOF
15942 esac
15943 rm -rf conftest*
15948 # Types
15949 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15950 if test "x$ac_cv_type_off_t" = x""yes; then :
15952 else
15954 cat >>confdefs.h <<_ACEOF
15955 #define off_t long int
15956 _ACEOF
15961 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15962 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15964 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15966 else
15967 for ac_type in 'int' 'long int' 'long long int'; do
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 $ac_includes_default
15972 main ()
15974 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15975 test_array [0] = 0
15978 return 0;
15980 _ACEOF
15981 if ac_fn_c_try_compile "$LINENO"; then :
15983 cat >>confdefs.h <<_ACEOF
15984 #define intptr_t $ac_type
15985 _ACEOF
15987 ac_type=
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 test -z "$ac_type" && break
15991 done
15996 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15997 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15999 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16001 else
16002 for ac_type in 'unsigned int' 'unsigned long int' \
16003 'unsigned long long int'; do
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 $ac_includes_default
16008 main ()
16010 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16011 test_array [0] = 0
16014 return 0;
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define uintptr_t $ac_type
16021 _ACEOF
16023 ac_type=
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 test -z "$ac_type" && break
16027 done
16031 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16032 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_PTRDIFF_T 1
16036 _ACEOF
16042 # check header files (we assume C89 is available, so don't check for that)
16046 for ac_header in $ac_header_list
16047 do :
16048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16051 eval as_val=\$$as_ac_Header
16052 if test "x$as_val" = x""yes; then :
16053 cat >>confdefs.h <<_ACEOF
16054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16055 _ACEOF
16059 done
16095 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16097 acx_cv_header_stdint=stddef.h
16098 acx_cv_header_stdint_kind="(already complete)"
16099 for i in stdint.h $inttype_headers; do
16100 unset ac_cv_type_uintptr_t
16101 unset ac_cv_type_uintmax_t
16102 unset ac_cv_type_int_least32_t
16103 unset ac_cv_type_int_fast32_t
16104 unset ac_cv_type_uint64_t
16105 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16106 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16107 #include <$i>
16109 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16110 acx_cv_header_stdint=$i
16111 else
16112 continue
16115 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16116 #include <$i>
16118 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16120 else
16121 acx_cv_header_stdint_kind="(mostly complete)"
16124 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16125 #include <$i>
16127 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16129 else
16130 acx_cv_header_stdint_kind="(mostly complete)"
16133 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16134 #include <$i>
16136 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16138 else
16139 acx_cv_header_stdint_kind="(mostly complete)"
16142 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16143 #include <$i>
16145 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16147 else
16148 acx_cv_header_stdint_kind="(lacks uint64_t)"
16151 break
16152 done
16153 if test "$acx_cv_header_stdint" = stddef.h; then
16154 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16155 for i in stdint.h $inttype_headers; do
16156 unset ac_cv_type_uintptr_t
16157 unset ac_cv_type_uint32_t
16158 unset ac_cv_type_uint64_t
16159 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16160 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16161 #include <$i>
16163 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16164 acx_cv_header_stdint=$i
16165 else
16166 continue
16169 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16170 #include <$i>
16172 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16176 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16177 #include <$i>
16179 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16183 break
16184 done
16186 if test "$acx_cv_header_stdint" = stddef.h; then
16187 acx_cv_header_stdint_kind="(u_intXX_t style)"
16188 for i in sys/types.h $inttype_headers; do
16189 unset ac_cv_type_u_int32_t
16190 unset ac_cv_type_u_int64_t
16191 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16192 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16193 #include <$i>
16195 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16196 acx_cv_header_stdint=$i
16197 else
16198 continue
16201 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16202 #include <$i>
16204 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16208 break
16209 done
16211 if test "$acx_cv_header_stdint" = stddef.h; then
16212 acx_cv_header_stdint_kind="(using manual detection)"
16215 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16216 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16217 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16218 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16219 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16221 # ----------------- Summarize what we found so far
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16224 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16226 case `$as_basename -- gstdint.h ||
16227 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16228 Xgstdint.h : 'X\(//\)$' \| \
16229 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16230 $as_echo X/gstdint.h |
16231 sed '/^.*\/\([^/][^/]*\)\/*$/{
16232 s//\1/
16235 /^X\/\(\/\/\)$/{
16236 s//\1/
16239 /^X\/\(\/\).*/{
16240 s//\1/
16243 s/.*/./; q'` in
16244 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16245 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16246 inttypes.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 *) ;;
16249 esac
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16252 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16254 # ----------------- done included file, check C basic types --------
16256 # Lacking an uintptr_t? Test size of void *
16257 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16258 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16261 # This bug is HP SR number 8606223364.
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16263 $as_echo_n "checking size of void *... " >&6; }
16264 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16269 else
16270 if test "$ac_cv_type_void_p" = yes; then
16271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16273 { as_fn_set_status 77
16274 as_fn_error "cannot compute sizeof (void *)
16275 See \`config.log' for more details." "$LINENO" 5; }; }
16276 else
16277 ac_cv_sizeof_void_p=0
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16287 cat >>confdefs.h <<_ACEOF
16288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16289 _ACEOF
16292 esac
16294 # Lacking an uint64_t? Test size of long
16295 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16296 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16299 # This bug is HP SR number 8606223364.
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16301 $as_echo_n "checking size of long... " >&6; }
16302 if test "${ac_cv_sizeof_long+set}" = set; then :
16303 $as_echo_n "(cached) " >&6
16304 else
16305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16307 else
16308 if test "$ac_cv_type_long" = yes; then
16309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16311 { as_fn_set_status 77
16312 as_fn_error "cannot compute sizeof (long)
16313 See \`config.log' for more details." "$LINENO" 5; }; }
16314 else
16315 ac_cv_sizeof_long=0
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16321 $as_echo "$ac_cv_sizeof_long" >&6; }
16325 cat >>confdefs.h <<_ACEOF
16326 #define SIZEOF_LONG $ac_cv_sizeof_long
16327 _ACEOF
16330 esac
16332 if test $acx_cv_header_stdint = stddef.h; then
16333 # Lacking a good header? Test size of everything and deduce all types.
16334 # The cast to long int works around a bug in the HP C Compiler
16335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16337 # This bug is HP SR number 8606223364.
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16339 $as_echo_n "checking size of int... " >&6; }
16340 if test "${ac_cv_sizeof_int+set}" = set; then :
16341 $as_echo_n "(cached) " >&6
16342 else
16343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16345 else
16346 if test "$ac_cv_type_int" = yes; then
16347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16349 { as_fn_set_status 77
16350 as_fn_error "cannot compute sizeof (int)
16351 See \`config.log' for more details." "$LINENO" 5; }; }
16352 else
16353 ac_cv_sizeof_int=0
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16359 $as_echo "$ac_cv_sizeof_int" >&6; }
16363 cat >>confdefs.h <<_ACEOF
16364 #define SIZEOF_INT $ac_cv_sizeof_int
16365 _ACEOF
16368 # The cast to long int works around a bug in the HP C Compiler
16369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16371 # This bug is HP SR number 8606223364.
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16373 $as_echo_n "checking size of short... " >&6; }
16374 if test "${ac_cv_sizeof_short+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16379 else
16380 if test "$ac_cv_type_short" = yes; then
16381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16383 { as_fn_set_status 77
16384 as_fn_error "cannot compute sizeof (short)
16385 See \`config.log' for more details." "$LINENO" 5; }; }
16386 else
16387 ac_cv_sizeof_short=0
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16393 $as_echo "$ac_cv_sizeof_short" >&6; }
16397 cat >>confdefs.h <<_ACEOF
16398 #define SIZEOF_SHORT $ac_cv_sizeof_short
16399 _ACEOF
16402 # The cast to long int works around a bug in the HP C Compiler
16403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16405 # This bug is HP SR number 8606223364.
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16407 $as_echo_n "checking size of char... " >&6; }
16408 if test "${ac_cv_sizeof_char+set}" = set; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16413 else
16414 if test "$ac_cv_type_char" = yes; then
16415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16417 { as_fn_set_status 77
16418 as_fn_error "cannot compute sizeof (char)
16419 See \`config.log' for more details." "$LINENO" 5; }; }
16420 else
16421 ac_cv_sizeof_char=0
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16427 $as_echo "$ac_cv_sizeof_char" >&6; }
16431 cat >>confdefs.h <<_ACEOF
16432 #define SIZEOF_CHAR $ac_cv_sizeof_char
16433 _ACEOF
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16438 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16439 case "$ac_cv_sizeof_char" in
16440 1) acx_cv_type_int8_t=char ;;
16441 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16442 esac
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16444 $as_echo "$acx_cv_type_int8_t" >&6; }
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16447 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16448 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16449 2:*) acx_cv_type_int16_t=int ;;
16450 *:2) acx_cv_type_int16_t=short ;;
16451 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16452 esac
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16454 $as_echo "$acx_cv_type_int16_t" >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16457 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16458 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16459 4:*) acx_cv_type_int32_t=int ;;
16460 *:4) acx_cv_type_int32_t=long ;;
16461 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16462 esac
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16464 $as_echo "$acx_cv_type_int32_t" >&6; }
16467 # These tests are here to make the output prettier
16469 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16470 case "$ac_cv_sizeof_long" in
16471 8) acx_cv_type_int64_t=long ;;
16472 esac
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16474 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16476 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16479 # Now we can use the above types
16481 if test "$ac_cv_type_uintptr_t" != yes; then
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16483 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16484 case $ac_cv_sizeof_void_p in
16485 2) acx_cv_type_intptr_t=int16_t ;;
16486 4) acx_cv_type_intptr_t=int32_t ;;
16487 8) acx_cv_type_intptr_t=int64_t ;;
16488 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16489 esac
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16491 $as_echo "$acx_cv_type_intptr_t" >&6; }
16494 # ----------------- done all checks, emit header -------------
16495 ac_config_commands="$ac_config_commands gstdint.h"
16500 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16501 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16503 cat >>confdefs.h <<_ACEOF
16504 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16505 _ACEOF
16509 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16510 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16514 _ACEOF
16518 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16519 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_STRUCT_STAT_ST_RDEV 1
16523 _ACEOF
16529 case "${host}--x${with_newlib}" in
16530 mips*--xyes)
16531 hardwire_newlib=1;;
16532 nvptx*--xyes)
16533 hardwire_newlib=1;;
16534 esac
16536 # Check for library functions.
16537 if test "${hardwire_newlib:-0}" -eq 1; then
16538 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16539 # may not work correctly, because the compiler may not be able to
16540 # link executables.
16542 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16545 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16548 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16551 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16554 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16557 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16560 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16563 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16566 # At some point, we should differentiate between architectures
16567 # like x86, which have long double versions, and alpha/powerpc/etc.,
16568 # which don't. For the time being, punt.
16569 if test x"long_double_math_on_this_cpu" = x"yes"; then
16571 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16574 else
16578 for ac_func in $ac_func_list
16579 do :
16580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16581 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16582 eval as_val=\$$as_ac_var
16583 if test "x$as_val" = x""yes; then :
16584 cat >>confdefs.h <<_ACEOF
16585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16586 _ACEOF
16589 done
16692 # Check strerror_r, cannot be above as versions with two and three arguments exist
16694 ac_save_CFLAGS="$CFLAGS"
16695 CFLAGS="-Wimplicit-function-declaration -Werror"
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #define _GNU_SOURCE 1
16699 #include <string.h>
16700 #include <locale.h>
16702 main ()
16704 char s[128]; strerror_r(5, s, 128);
16706 return 0;
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16711 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 CFLAGS="$ac_save_CFLAGS"
16717 ac_save_CFLAGS="$CFLAGS"
16718 CFLAGS="-Wimplicit-function-declaration -Werror"
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 #define _GNU_SOURCE 1
16722 #include <string.h>
16723 #include <locale.h>
16725 main ()
16727 char s[128]; strerror_r(5, s);
16729 return 0;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16734 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 CFLAGS="$ac_save_CFLAGS"
16741 # Check for C99 (and other IEEE) math functions
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16743 $as_echo_n "checking for sin in -lm... " >&6; }
16744 if test "${ac_cv_lib_m_sin+set}" = set; then :
16745 $as_echo_n "(cached) " >&6
16746 else
16747 ac_check_lib_save_LIBS=$LIBS
16748 LIBS="-lm $LIBS"
16749 if test x$gcc_no_link = xyes; then
16750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16758 #ifdef __cplusplus
16759 extern "C"
16760 #endif
16761 char sin ();
16763 main ()
16765 return sin ();
16767 return 0;
16769 _ACEOF
16770 if ac_fn_c_try_link "$LINENO"; then :
16771 ac_cv_lib_m_sin=yes
16772 else
16773 ac_cv_lib_m_sin=no
16775 rm -f core conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
16777 LIBS=$ac_check_lib_save_LIBS
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16780 $as_echo "$ac_cv_lib_m_sin" >&6; }
16781 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16782 cat >>confdefs.h <<_ACEOF
16783 #define HAVE_LIBM 1
16784 _ACEOF
16786 LIBS="-lm $LIBS"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16797 $as_echo_n "checking for acosf... " >&6; }
16798 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 if test x$gcc_no_link = xyes; then
16802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16807 #ifdef HAVE_COMPLEX_H
16808 #include <complex.h>
16809 #endif
16810 #ifdef HAVE_MATH_H
16811 #include <math.h>
16812 #endif
16814 int (*ptr)() = (int (*)())acosf;
16817 main ()
16819 return 0;
16822 _ACEOF
16823 if ac_fn_c_try_link "$LINENO"; then :
16824 gcc_cv_math_func_acosf=yes
16825 else
16826 gcc_cv_math_func_acosf=no
16828 rm -f core conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16832 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16833 if test $gcc_cv_math_func_acosf = yes; then
16835 cat >>confdefs.h <<_ACEOF
16836 #define HAVE_ACOSF 1
16837 _ACEOF
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16845 $as_echo_n "checking for acos... " >&6; }
16846 if test "${gcc_cv_math_func_acos+set}" = set; then :
16847 $as_echo_n "(cached) " >&6
16848 else
16849 if test x$gcc_no_link = xyes; then
16850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16855 #ifdef HAVE_COMPLEX_H
16856 #include <complex.h>
16857 #endif
16858 #ifdef HAVE_MATH_H
16859 #include <math.h>
16860 #endif
16862 int (*ptr)() = (int (*)())acos;
16865 main ()
16867 return 0;
16870 _ACEOF
16871 if ac_fn_c_try_link "$LINENO"; then :
16872 gcc_cv_math_func_acos=yes
16873 else
16874 gcc_cv_math_func_acos=no
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16880 $as_echo "$gcc_cv_math_func_acos" >&6; }
16881 if test $gcc_cv_math_func_acos = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_ACOS 1
16885 _ACEOF
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16893 $as_echo_n "checking for acosl... " >&6; }
16894 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16895 $as_echo_n "(cached) " >&6
16896 else
16897 if test x$gcc_no_link = xyes; then
16898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16903 #ifdef HAVE_COMPLEX_H
16904 #include <complex.h>
16905 #endif
16906 #ifdef HAVE_MATH_H
16907 #include <math.h>
16908 #endif
16910 int (*ptr)() = (int (*)())acosl;
16913 main ()
16915 return 0;
16918 _ACEOF
16919 if ac_fn_c_try_link "$LINENO"; then :
16920 gcc_cv_math_func_acosl=yes
16921 else
16922 gcc_cv_math_func_acosl=no
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16928 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16929 if test $gcc_cv_math_func_acosl = yes; then
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_ACOSL 1
16933 _ACEOF
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16941 $as_echo_n "checking for acoshf... " >&6; }
16942 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16943 $as_echo_n "(cached) " >&6
16944 else
16945 if test x$gcc_no_link = xyes; then
16946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16951 #ifdef HAVE_COMPLEX_H
16952 #include <complex.h>
16953 #endif
16954 #ifdef HAVE_MATH_H
16955 #include <math.h>
16956 #endif
16958 int (*ptr)() = (int (*)())acoshf;
16961 main ()
16963 return 0;
16966 _ACEOF
16967 if ac_fn_c_try_link "$LINENO"; then :
16968 gcc_cv_math_func_acoshf=yes
16969 else
16970 gcc_cv_math_func_acoshf=no
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16976 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16977 if test $gcc_cv_math_func_acoshf = yes; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_ACOSHF 1
16981 _ACEOF
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16989 $as_echo_n "checking for acosh... " >&6; }
16990 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16991 $as_echo_n "(cached) " >&6
16992 else
16993 if test x$gcc_no_link = xyes; then
16994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16999 #ifdef HAVE_COMPLEX_H
17000 #include <complex.h>
17001 #endif
17002 #ifdef HAVE_MATH_H
17003 #include <math.h>
17004 #endif
17006 int (*ptr)() = (int (*)())acosh;
17009 main ()
17011 return 0;
17014 _ACEOF
17015 if ac_fn_c_try_link "$LINENO"; then :
17016 gcc_cv_math_func_acosh=yes
17017 else
17018 gcc_cv_math_func_acosh=no
17020 rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17024 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17025 if test $gcc_cv_math_func_acosh = yes; then
17027 cat >>confdefs.h <<_ACEOF
17028 #define HAVE_ACOSH 1
17029 _ACEOF
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17037 $as_echo_n "checking for acoshl... " >&6; }
17038 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 if test x$gcc_no_link = xyes; then
17042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17047 #ifdef HAVE_COMPLEX_H
17048 #include <complex.h>
17049 #endif
17050 #ifdef HAVE_MATH_H
17051 #include <math.h>
17052 #endif
17054 int (*ptr)() = (int (*)())acoshl;
17057 main ()
17059 return 0;
17062 _ACEOF
17063 if ac_fn_c_try_link "$LINENO"; then :
17064 gcc_cv_math_func_acoshl=yes
17065 else
17066 gcc_cv_math_func_acoshl=no
17068 rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17072 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17073 if test $gcc_cv_math_func_acoshl = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define HAVE_ACOSHL 1
17077 _ACEOF
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17085 $as_echo_n "checking for asinf... " >&6; }
17086 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17088 else
17089 if test x$gcc_no_link = xyes; then
17090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17095 #ifdef HAVE_COMPLEX_H
17096 #include <complex.h>
17097 #endif
17098 #ifdef HAVE_MATH_H
17099 #include <math.h>
17100 #endif
17102 int (*ptr)() = (int (*)())asinf;
17105 main ()
17107 return 0;
17110 _ACEOF
17111 if ac_fn_c_try_link "$LINENO"; then :
17112 gcc_cv_math_func_asinf=yes
17113 else
17114 gcc_cv_math_func_asinf=no
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17120 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17121 if test $gcc_cv_math_func_asinf = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_ASINF 1
17125 _ACEOF
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17133 $as_echo_n "checking for asin... " >&6; }
17134 if test "${gcc_cv_math_func_asin+set}" = set; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 if test x$gcc_no_link = xyes; then
17138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17143 #ifdef HAVE_COMPLEX_H
17144 #include <complex.h>
17145 #endif
17146 #ifdef HAVE_MATH_H
17147 #include <math.h>
17148 #endif
17150 int (*ptr)() = (int (*)())asin;
17153 main ()
17155 return 0;
17158 _ACEOF
17159 if ac_fn_c_try_link "$LINENO"; then :
17160 gcc_cv_math_func_asin=yes
17161 else
17162 gcc_cv_math_func_asin=no
17164 rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17168 $as_echo "$gcc_cv_math_func_asin" >&6; }
17169 if test $gcc_cv_math_func_asin = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_ASIN 1
17173 _ACEOF
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17181 $as_echo_n "checking for asinl... " >&6; }
17182 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17183 $as_echo_n "(cached) " >&6
17184 else
17185 if test x$gcc_no_link = xyes; then
17186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17191 #ifdef HAVE_COMPLEX_H
17192 #include <complex.h>
17193 #endif
17194 #ifdef HAVE_MATH_H
17195 #include <math.h>
17196 #endif
17198 int (*ptr)() = (int (*)())asinl;
17201 main ()
17203 return 0;
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"; then :
17208 gcc_cv_math_func_asinl=yes
17209 else
17210 gcc_cv_math_func_asinl=no
17212 rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17216 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17217 if test $gcc_cv_math_func_asinl = yes; then
17219 cat >>confdefs.h <<_ACEOF
17220 #define HAVE_ASINL 1
17221 _ACEOF
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17229 $as_echo_n "checking for asinhf... " >&6; }
17230 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17231 $as_echo_n "(cached) " >&6
17232 else
17233 if test x$gcc_no_link = xyes; then
17234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17239 #ifdef HAVE_COMPLEX_H
17240 #include <complex.h>
17241 #endif
17242 #ifdef HAVE_MATH_H
17243 #include <math.h>
17244 #endif
17246 int (*ptr)() = (int (*)())asinhf;
17249 main ()
17251 return 0;
17254 _ACEOF
17255 if ac_fn_c_try_link "$LINENO"; then :
17256 gcc_cv_math_func_asinhf=yes
17257 else
17258 gcc_cv_math_func_asinhf=no
17260 rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17264 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17265 if test $gcc_cv_math_func_asinhf = yes; then
17267 cat >>confdefs.h <<_ACEOF
17268 #define HAVE_ASINHF 1
17269 _ACEOF
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17277 $as_echo_n "checking for asinh... " >&6; }
17278 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17279 $as_echo_n "(cached) " >&6
17280 else
17281 if test x$gcc_no_link = xyes; then
17282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17287 #ifdef HAVE_COMPLEX_H
17288 #include <complex.h>
17289 #endif
17290 #ifdef HAVE_MATH_H
17291 #include <math.h>
17292 #endif
17294 int (*ptr)() = (int (*)())asinh;
17297 main ()
17299 return 0;
17302 _ACEOF
17303 if ac_fn_c_try_link "$LINENO"; then :
17304 gcc_cv_math_func_asinh=yes
17305 else
17306 gcc_cv_math_func_asinh=no
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17312 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17313 if test $gcc_cv_math_func_asinh = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define HAVE_ASINH 1
17317 _ACEOF
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17325 $as_echo_n "checking for asinhl... " >&6; }
17326 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17327 $as_echo_n "(cached) " >&6
17328 else
17329 if test x$gcc_no_link = xyes; then
17330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17335 #ifdef HAVE_COMPLEX_H
17336 #include <complex.h>
17337 #endif
17338 #ifdef HAVE_MATH_H
17339 #include <math.h>
17340 #endif
17342 int (*ptr)() = (int (*)())asinhl;
17345 main ()
17347 return 0;
17350 _ACEOF
17351 if ac_fn_c_try_link "$LINENO"; then :
17352 gcc_cv_math_func_asinhl=yes
17353 else
17354 gcc_cv_math_func_asinhl=no
17356 rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17360 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17361 if test $gcc_cv_math_func_asinhl = yes; then
17363 cat >>confdefs.h <<_ACEOF
17364 #define HAVE_ASINHL 1
17365 _ACEOF
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17373 $as_echo_n "checking for atan2f... " >&6; }
17374 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 if test x$gcc_no_link = xyes; then
17378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h. */
17383 #ifdef HAVE_COMPLEX_H
17384 #include <complex.h>
17385 #endif
17386 #ifdef HAVE_MATH_H
17387 #include <math.h>
17388 #endif
17390 int (*ptr)() = (int (*)())atan2f;
17393 main ()
17395 return 0;
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"; then :
17400 gcc_cv_math_func_atan2f=yes
17401 else
17402 gcc_cv_math_func_atan2f=no
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17408 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17409 if test $gcc_cv_math_func_atan2f = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_ATAN2F 1
17413 _ACEOF
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17421 $as_echo_n "checking for atan2... " >&6; }
17422 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17423 $as_echo_n "(cached) " >&6
17424 else
17425 if test x$gcc_no_link = xyes; then
17426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17431 #ifdef HAVE_COMPLEX_H
17432 #include <complex.h>
17433 #endif
17434 #ifdef HAVE_MATH_H
17435 #include <math.h>
17436 #endif
17438 int (*ptr)() = (int (*)())atan2;
17441 main ()
17443 return 0;
17446 _ACEOF
17447 if ac_fn_c_try_link "$LINENO"; then :
17448 gcc_cv_math_func_atan2=yes
17449 else
17450 gcc_cv_math_func_atan2=no
17452 rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17456 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17457 if test $gcc_cv_math_func_atan2 = yes; then
17459 cat >>confdefs.h <<_ACEOF
17460 #define HAVE_ATAN2 1
17461 _ACEOF
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17469 $as_echo_n "checking for atan2l... " >&6; }
17470 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17471 $as_echo_n "(cached) " >&6
17472 else
17473 if test x$gcc_no_link = xyes; then
17474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17479 #ifdef HAVE_COMPLEX_H
17480 #include <complex.h>
17481 #endif
17482 #ifdef HAVE_MATH_H
17483 #include <math.h>
17484 #endif
17486 int (*ptr)() = (int (*)())atan2l;
17489 main ()
17491 return 0;
17494 _ACEOF
17495 if ac_fn_c_try_link "$LINENO"; then :
17496 gcc_cv_math_func_atan2l=yes
17497 else
17498 gcc_cv_math_func_atan2l=no
17500 rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17504 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17505 if test $gcc_cv_math_func_atan2l = yes; then
17507 cat >>confdefs.h <<_ACEOF
17508 #define HAVE_ATAN2L 1
17509 _ACEOF
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17517 $as_echo_n "checking for atanf... " >&6; }
17518 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17519 $as_echo_n "(cached) " >&6
17520 else
17521 if test x$gcc_no_link = xyes; then
17522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17527 #ifdef HAVE_COMPLEX_H
17528 #include <complex.h>
17529 #endif
17530 #ifdef HAVE_MATH_H
17531 #include <math.h>
17532 #endif
17534 int (*ptr)() = (int (*)())atanf;
17537 main ()
17539 return 0;
17542 _ACEOF
17543 if ac_fn_c_try_link "$LINENO"; then :
17544 gcc_cv_math_func_atanf=yes
17545 else
17546 gcc_cv_math_func_atanf=no
17548 rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17552 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17553 if test $gcc_cv_math_func_atanf = yes; then
17555 cat >>confdefs.h <<_ACEOF
17556 #define HAVE_ATANF 1
17557 _ACEOF
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17565 $as_echo_n "checking for atan... " >&6; }
17566 if test "${gcc_cv_math_func_atan+set}" = set; then :
17567 $as_echo_n "(cached) " >&6
17568 else
17569 if test x$gcc_no_link = xyes; then
17570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17575 #ifdef HAVE_COMPLEX_H
17576 #include <complex.h>
17577 #endif
17578 #ifdef HAVE_MATH_H
17579 #include <math.h>
17580 #endif
17582 int (*ptr)() = (int (*)())atan;
17585 main ()
17587 return 0;
17590 _ACEOF
17591 if ac_fn_c_try_link "$LINENO"; then :
17592 gcc_cv_math_func_atan=yes
17593 else
17594 gcc_cv_math_func_atan=no
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17600 $as_echo "$gcc_cv_math_func_atan" >&6; }
17601 if test $gcc_cv_math_func_atan = yes; then
17603 cat >>confdefs.h <<_ACEOF
17604 #define HAVE_ATAN 1
17605 _ACEOF
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17613 $as_echo_n "checking for atanl... " >&6; }
17614 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 if test x$gcc_no_link = xyes; then
17618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17623 #ifdef HAVE_COMPLEX_H
17624 #include <complex.h>
17625 #endif
17626 #ifdef HAVE_MATH_H
17627 #include <math.h>
17628 #endif
17630 int (*ptr)() = (int (*)())atanl;
17633 main ()
17635 return 0;
17638 _ACEOF
17639 if ac_fn_c_try_link "$LINENO"; then :
17640 gcc_cv_math_func_atanl=yes
17641 else
17642 gcc_cv_math_func_atanl=no
17644 rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17648 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17649 if test $gcc_cv_math_func_atanl = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define HAVE_ATANL 1
17653 _ACEOF
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17661 $as_echo_n "checking for atanhf... " >&6; }
17662 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17663 $as_echo_n "(cached) " >&6
17664 else
17665 if test x$gcc_no_link = xyes; then
17666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17671 #ifdef HAVE_COMPLEX_H
17672 #include <complex.h>
17673 #endif
17674 #ifdef HAVE_MATH_H
17675 #include <math.h>
17676 #endif
17678 int (*ptr)() = (int (*)())atanhf;
17681 main ()
17683 return 0;
17686 _ACEOF
17687 if ac_fn_c_try_link "$LINENO"; then :
17688 gcc_cv_math_func_atanhf=yes
17689 else
17690 gcc_cv_math_func_atanhf=no
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17696 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17697 if test $gcc_cv_math_func_atanhf = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define HAVE_ATANHF 1
17701 _ACEOF
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17709 $as_echo_n "checking for atanh... " >&6; }
17710 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17711 $as_echo_n "(cached) " >&6
17712 else
17713 if test x$gcc_no_link = xyes; then
17714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17719 #ifdef HAVE_COMPLEX_H
17720 #include <complex.h>
17721 #endif
17722 #ifdef HAVE_MATH_H
17723 #include <math.h>
17724 #endif
17726 int (*ptr)() = (int (*)())atanh;
17729 main ()
17731 return 0;
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 gcc_cv_math_func_atanh=yes
17737 else
17738 gcc_cv_math_func_atanh=no
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17744 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17745 if test $gcc_cv_math_func_atanh = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_ATANH 1
17749 _ACEOF
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17757 $as_echo_n "checking for atanhl... " >&6; }
17758 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 if test x$gcc_no_link = xyes; then
17762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17767 #ifdef HAVE_COMPLEX_H
17768 #include <complex.h>
17769 #endif
17770 #ifdef HAVE_MATH_H
17771 #include <math.h>
17772 #endif
17774 int (*ptr)() = (int (*)())atanhl;
17777 main ()
17779 return 0;
17782 _ACEOF
17783 if ac_fn_c_try_link "$LINENO"; then :
17784 gcc_cv_math_func_atanhl=yes
17785 else
17786 gcc_cv_math_func_atanhl=no
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17792 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17793 if test $gcc_cv_math_func_atanhl = yes; then
17795 cat >>confdefs.h <<_ACEOF
17796 #define HAVE_ATANHL 1
17797 _ACEOF
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17805 $as_echo_n "checking for cargf... " >&6; }
17806 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17807 $as_echo_n "(cached) " >&6
17808 else
17809 if test x$gcc_no_link = xyes; then
17810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 #ifdef HAVE_COMPLEX_H
17816 #include <complex.h>
17817 #endif
17818 #ifdef HAVE_MATH_H
17819 #include <math.h>
17820 #endif
17822 int (*ptr)() = (int (*)())cargf;
17825 main ()
17827 return 0;
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 gcc_cv_math_func_cargf=yes
17833 else
17834 gcc_cv_math_func_cargf=no
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17840 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17841 if test $gcc_cv_math_func_cargf = yes; then
17843 cat >>confdefs.h <<_ACEOF
17844 #define HAVE_CARGF 1
17845 _ACEOF
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17853 $as_echo_n "checking for carg... " >&6; }
17854 if test "${gcc_cv_math_func_carg+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 if test x$gcc_no_link = xyes; then
17858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17863 #ifdef HAVE_COMPLEX_H
17864 #include <complex.h>
17865 #endif
17866 #ifdef HAVE_MATH_H
17867 #include <math.h>
17868 #endif
17870 int (*ptr)() = (int (*)())carg;
17873 main ()
17875 return 0;
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880 gcc_cv_math_func_carg=yes
17881 else
17882 gcc_cv_math_func_carg=no
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17888 $as_echo "$gcc_cv_math_func_carg" >&6; }
17889 if test $gcc_cv_math_func_carg = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define HAVE_CARG 1
17893 _ACEOF
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17901 $as_echo_n "checking for cargl... " >&6; }
17902 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17903 $as_echo_n "(cached) " >&6
17904 else
17905 if test x$gcc_no_link = xyes; then
17906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17911 #ifdef HAVE_COMPLEX_H
17912 #include <complex.h>
17913 #endif
17914 #ifdef HAVE_MATH_H
17915 #include <math.h>
17916 #endif
17918 int (*ptr)() = (int (*)())cargl;
17921 main ()
17923 return 0;
17926 _ACEOF
17927 if ac_fn_c_try_link "$LINENO"; then :
17928 gcc_cv_math_func_cargl=yes
17929 else
17930 gcc_cv_math_func_cargl=no
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17936 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17937 if test $gcc_cv_math_func_cargl = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_CARGL 1
17941 _ACEOF
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17949 $as_echo_n "checking for ceilf... " >&6; }
17950 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17951 $as_echo_n "(cached) " >&6
17952 else
17953 if test x$gcc_no_link = xyes; then
17954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17959 #ifdef HAVE_COMPLEX_H
17960 #include <complex.h>
17961 #endif
17962 #ifdef HAVE_MATH_H
17963 #include <math.h>
17964 #endif
17966 int (*ptr)() = (int (*)())ceilf;
17969 main ()
17971 return 0;
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 gcc_cv_math_func_ceilf=yes
17977 else
17978 gcc_cv_math_func_ceilf=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17984 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17985 if test $gcc_cv_math_func_ceilf = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define HAVE_CEILF 1
17989 _ACEOF
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17997 $as_echo_n "checking for ceil... " >&6; }
17998 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17999 $as_echo_n "(cached) " >&6
18000 else
18001 if test x$gcc_no_link = xyes; then
18002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18007 #ifdef HAVE_COMPLEX_H
18008 #include <complex.h>
18009 #endif
18010 #ifdef HAVE_MATH_H
18011 #include <math.h>
18012 #endif
18014 int (*ptr)() = (int (*)())ceil;
18017 main ()
18019 return 0;
18022 _ACEOF
18023 if ac_fn_c_try_link "$LINENO"; then :
18024 gcc_cv_math_func_ceil=yes
18025 else
18026 gcc_cv_math_func_ceil=no
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18032 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18033 if test $gcc_cv_math_func_ceil = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_CEIL 1
18037 _ACEOF
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18045 $as_echo_n "checking for ceill... " >&6; }
18046 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18048 else
18049 if test x$gcc_no_link = xyes; then
18050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18055 #ifdef HAVE_COMPLEX_H
18056 #include <complex.h>
18057 #endif
18058 #ifdef HAVE_MATH_H
18059 #include <math.h>
18060 #endif
18062 int (*ptr)() = (int (*)())ceill;
18065 main ()
18067 return 0;
18070 _ACEOF
18071 if ac_fn_c_try_link "$LINENO"; then :
18072 gcc_cv_math_func_ceill=yes
18073 else
18074 gcc_cv_math_func_ceill=no
18076 rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18080 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18081 if test $gcc_cv_math_func_ceill = yes; then
18083 cat >>confdefs.h <<_ACEOF
18084 #define HAVE_CEILL 1
18085 _ACEOF
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18093 $as_echo_n "checking for copysignf... " >&6; }
18094 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18096 else
18097 if test x$gcc_no_link = xyes; then
18098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18103 #ifdef HAVE_COMPLEX_H
18104 #include <complex.h>
18105 #endif
18106 #ifdef HAVE_MATH_H
18107 #include <math.h>
18108 #endif
18110 int (*ptr)() = (int (*)())copysignf;
18113 main ()
18115 return 0;
18118 _ACEOF
18119 if ac_fn_c_try_link "$LINENO"; then :
18120 gcc_cv_math_func_copysignf=yes
18121 else
18122 gcc_cv_math_func_copysignf=no
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18128 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18129 if test $gcc_cv_math_func_copysignf = yes; then
18131 cat >>confdefs.h <<_ACEOF
18132 #define HAVE_COPYSIGNF 1
18133 _ACEOF
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18141 $as_echo_n "checking for copysign... " >&6; }
18142 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18145 if test x$gcc_no_link = xyes; then
18146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18151 #ifdef HAVE_COMPLEX_H
18152 #include <complex.h>
18153 #endif
18154 #ifdef HAVE_MATH_H
18155 #include <math.h>
18156 #endif
18158 int (*ptr)() = (int (*)())copysign;
18161 main ()
18163 return 0;
18166 _ACEOF
18167 if ac_fn_c_try_link "$LINENO"; then :
18168 gcc_cv_math_func_copysign=yes
18169 else
18170 gcc_cv_math_func_copysign=no
18172 rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18176 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18177 if test $gcc_cv_math_func_copysign = yes; then
18179 cat >>confdefs.h <<_ACEOF
18180 #define HAVE_COPYSIGN 1
18181 _ACEOF
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18189 $as_echo_n "checking for copysignl... " >&6; }
18190 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18192 else
18193 if test x$gcc_no_link = xyes; then
18194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18199 #ifdef HAVE_COMPLEX_H
18200 #include <complex.h>
18201 #endif
18202 #ifdef HAVE_MATH_H
18203 #include <math.h>
18204 #endif
18206 int (*ptr)() = (int (*)())copysignl;
18209 main ()
18211 return 0;
18214 _ACEOF
18215 if ac_fn_c_try_link "$LINENO"; then :
18216 gcc_cv_math_func_copysignl=yes
18217 else
18218 gcc_cv_math_func_copysignl=no
18220 rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18224 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18225 if test $gcc_cv_math_func_copysignl = yes; then
18227 cat >>confdefs.h <<_ACEOF
18228 #define HAVE_COPYSIGNL 1
18229 _ACEOF
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18237 $as_echo_n "checking for cosf... " >&6; }
18238 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18239 $as_echo_n "(cached) " >&6
18240 else
18241 if test x$gcc_no_link = xyes; then
18242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18247 #ifdef HAVE_COMPLEX_H
18248 #include <complex.h>
18249 #endif
18250 #ifdef HAVE_MATH_H
18251 #include <math.h>
18252 #endif
18254 int (*ptr)() = (int (*)())cosf;
18257 main ()
18259 return 0;
18262 _ACEOF
18263 if ac_fn_c_try_link "$LINENO"; then :
18264 gcc_cv_math_func_cosf=yes
18265 else
18266 gcc_cv_math_func_cosf=no
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18272 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18273 if test $gcc_cv_math_func_cosf = yes; then
18275 cat >>confdefs.h <<_ACEOF
18276 #define HAVE_COSF 1
18277 _ACEOF
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18285 $as_echo_n "checking for cos... " >&6; }
18286 if test "${gcc_cv_math_func_cos+set}" = set; then :
18287 $as_echo_n "(cached) " >&6
18288 else
18289 if test x$gcc_no_link = xyes; then
18290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18295 #ifdef HAVE_COMPLEX_H
18296 #include <complex.h>
18297 #endif
18298 #ifdef HAVE_MATH_H
18299 #include <math.h>
18300 #endif
18302 int (*ptr)() = (int (*)())cos;
18305 main ()
18307 return 0;
18310 _ACEOF
18311 if ac_fn_c_try_link "$LINENO"; then :
18312 gcc_cv_math_func_cos=yes
18313 else
18314 gcc_cv_math_func_cos=no
18316 rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18320 $as_echo "$gcc_cv_math_func_cos" >&6; }
18321 if test $gcc_cv_math_func_cos = yes; then
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_COS 1
18325 _ACEOF
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18333 $as_echo_n "checking for cosl... " >&6; }
18334 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18335 $as_echo_n "(cached) " >&6
18336 else
18337 if test x$gcc_no_link = xyes; then
18338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18343 #ifdef HAVE_COMPLEX_H
18344 #include <complex.h>
18345 #endif
18346 #ifdef HAVE_MATH_H
18347 #include <math.h>
18348 #endif
18350 int (*ptr)() = (int (*)())cosl;
18353 main ()
18355 return 0;
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 gcc_cv_math_func_cosl=yes
18361 else
18362 gcc_cv_math_func_cosl=no
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18368 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18369 if test $gcc_cv_math_func_cosl = yes; then
18371 cat >>confdefs.h <<_ACEOF
18372 #define HAVE_COSL 1
18373 _ACEOF
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18381 $as_echo_n "checking for ccosf... " >&6; }
18382 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 if test x$gcc_no_link = xyes; then
18386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18391 #ifdef HAVE_COMPLEX_H
18392 #include <complex.h>
18393 #endif
18394 #ifdef HAVE_MATH_H
18395 #include <math.h>
18396 #endif
18398 int (*ptr)() = (int (*)())ccosf;
18401 main ()
18403 return 0;
18406 _ACEOF
18407 if ac_fn_c_try_link "$LINENO"; then :
18408 gcc_cv_math_func_ccosf=yes
18409 else
18410 gcc_cv_math_func_ccosf=no
18412 rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18416 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18417 if test $gcc_cv_math_func_ccosf = yes; then
18419 cat >>confdefs.h <<_ACEOF
18420 #define HAVE_CCOSF 1
18421 _ACEOF
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18429 $as_echo_n "checking for ccos... " >&6; }
18430 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18431 $as_echo_n "(cached) " >&6
18432 else
18433 if test x$gcc_no_link = xyes; then
18434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18439 #ifdef HAVE_COMPLEX_H
18440 #include <complex.h>
18441 #endif
18442 #ifdef HAVE_MATH_H
18443 #include <math.h>
18444 #endif
18446 int (*ptr)() = (int (*)())ccos;
18449 main ()
18451 return 0;
18454 _ACEOF
18455 if ac_fn_c_try_link "$LINENO"; then :
18456 gcc_cv_math_func_ccos=yes
18457 else
18458 gcc_cv_math_func_ccos=no
18460 rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18464 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18465 if test $gcc_cv_math_func_ccos = yes; then
18467 cat >>confdefs.h <<_ACEOF
18468 #define HAVE_CCOS 1
18469 _ACEOF
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18477 $as_echo_n "checking for ccosl... " >&6; }
18478 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18479 $as_echo_n "(cached) " >&6
18480 else
18481 if test x$gcc_no_link = xyes; then
18482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18487 #ifdef HAVE_COMPLEX_H
18488 #include <complex.h>
18489 #endif
18490 #ifdef HAVE_MATH_H
18491 #include <math.h>
18492 #endif
18494 int (*ptr)() = (int (*)())ccosl;
18497 main ()
18499 return 0;
18502 _ACEOF
18503 if ac_fn_c_try_link "$LINENO"; then :
18504 gcc_cv_math_func_ccosl=yes
18505 else
18506 gcc_cv_math_func_ccosl=no
18508 rm -f core conftest.err conftest.$ac_objext \
18509 conftest$ac_exeext conftest.$ac_ext
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18512 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18513 if test $gcc_cv_math_func_ccosl = yes; then
18515 cat >>confdefs.h <<_ACEOF
18516 #define HAVE_CCOSL 1
18517 _ACEOF
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18525 $as_echo_n "checking for coshf... " >&6; }
18526 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18527 $as_echo_n "(cached) " >&6
18528 else
18529 if test x$gcc_no_link = xyes; then
18530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18535 #ifdef HAVE_COMPLEX_H
18536 #include <complex.h>
18537 #endif
18538 #ifdef HAVE_MATH_H
18539 #include <math.h>
18540 #endif
18542 int (*ptr)() = (int (*)())coshf;
18545 main ()
18547 return 0;
18550 _ACEOF
18551 if ac_fn_c_try_link "$LINENO"; then :
18552 gcc_cv_math_func_coshf=yes
18553 else
18554 gcc_cv_math_func_coshf=no
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18560 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18561 if test $gcc_cv_math_func_coshf = yes; then
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_COSHF 1
18565 _ACEOF
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18573 $as_echo_n "checking for cosh... " >&6; }
18574 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 if test x$gcc_no_link = xyes; then
18578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18583 #ifdef HAVE_COMPLEX_H
18584 #include <complex.h>
18585 #endif
18586 #ifdef HAVE_MATH_H
18587 #include <math.h>
18588 #endif
18590 int (*ptr)() = (int (*)())cosh;
18593 main ()
18595 return 0;
18598 _ACEOF
18599 if ac_fn_c_try_link "$LINENO"; then :
18600 gcc_cv_math_func_cosh=yes
18601 else
18602 gcc_cv_math_func_cosh=no
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18608 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18609 if test $gcc_cv_math_func_cosh = yes; then
18611 cat >>confdefs.h <<_ACEOF
18612 #define HAVE_COSH 1
18613 _ACEOF
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18621 $as_echo_n "checking for coshl... " >&6; }
18622 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18623 $as_echo_n "(cached) " >&6
18624 else
18625 if test x$gcc_no_link = xyes; then
18626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18631 #ifdef HAVE_COMPLEX_H
18632 #include <complex.h>
18633 #endif
18634 #ifdef HAVE_MATH_H
18635 #include <math.h>
18636 #endif
18638 int (*ptr)() = (int (*)())coshl;
18641 main ()
18643 return 0;
18646 _ACEOF
18647 if ac_fn_c_try_link "$LINENO"; then :
18648 gcc_cv_math_func_coshl=yes
18649 else
18650 gcc_cv_math_func_coshl=no
18652 rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18656 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18657 if test $gcc_cv_math_func_coshl = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define HAVE_COSHL 1
18661 _ACEOF
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18669 $as_echo_n "checking for ccoshf... " >&6; }
18670 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18671 $as_echo_n "(cached) " >&6
18672 else
18673 if test x$gcc_no_link = xyes; then
18674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18679 #ifdef HAVE_COMPLEX_H
18680 #include <complex.h>
18681 #endif
18682 #ifdef HAVE_MATH_H
18683 #include <math.h>
18684 #endif
18686 int (*ptr)() = (int (*)())ccoshf;
18689 main ()
18691 return 0;
18694 _ACEOF
18695 if ac_fn_c_try_link "$LINENO"; then :
18696 gcc_cv_math_func_ccoshf=yes
18697 else
18698 gcc_cv_math_func_ccoshf=no
18700 rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18704 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18705 if test $gcc_cv_math_func_ccoshf = yes; then
18707 cat >>confdefs.h <<_ACEOF
18708 #define HAVE_CCOSHF 1
18709 _ACEOF
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18717 $as_echo_n "checking for ccosh... " >&6; }
18718 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18719 $as_echo_n "(cached) " >&6
18720 else
18721 if test x$gcc_no_link = xyes; then
18722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18727 #ifdef HAVE_COMPLEX_H
18728 #include <complex.h>
18729 #endif
18730 #ifdef HAVE_MATH_H
18731 #include <math.h>
18732 #endif
18734 int (*ptr)() = (int (*)())ccosh;
18737 main ()
18739 return 0;
18742 _ACEOF
18743 if ac_fn_c_try_link "$LINENO"; then :
18744 gcc_cv_math_func_ccosh=yes
18745 else
18746 gcc_cv_math_func_ccosh=no
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18752 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18753 if test $gcc_cv_math_func_ccosh = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define HAVE_CCOSH 1
18757 _ACEOF
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18765 $as_echo_n "checking for ccoshl... " >&6; }
18766 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18767 $as_echo_n "(cached) " >&6
18768 else
18769 if test x$gcc_no_link = xyes; then
18770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18775 #ifdef HAVE_COMPLEX_H
18776 #include <complex.h>
18777 #endif
18778 #ifdef HAVE_MATH_H
18779 #include <math.h>
18780 #endif
18782 int (*ptr)() = (int (*)())ccoshl;
18785 main ()
18787 return 0;
18790 _ACEOF
18791 if ac_fn_c_try_link "$LINENO"; then :
18792 gcc_cv_math_func_ccoshl=yes
18793 else
18794 gcc_cv_math_func_ccoshl=no
18796 rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18800 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18801 if test $gcc_cv_math_func_ccoshl = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_CCOSHL 1
18805 _ACEOF
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18813 $as_echo_n "checking for expf... " >&6; }
18814 if test "${gcc_cv_math_func_expf+set}" = set; then :
18815 $as_echo_n "(cached) " >&6
18816 else
18817 if test x$gcc_no_link = xyes; then
18818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18823 #ifdef HAVE_COMPLEX_H
18824 #include <complex.h>
18825 #endif
18826 #ifdef HAVE_MATH_H
18827 #include <math.h>
18828 #endif
18830 int (*ptr)() = (int (*)())expf;
18833 main ()
18835 return 0;
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"; then :
18840 gcc_cv_math_func_expf=yes
18841 else
18842 gcc_cv_math_func_expf=no
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18848 $as_echo "$gcc_cv_math_func_expf" >&6; }
18849 if test $gcc_cv_math_func_expf = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define HAVE_EXPF 1
18853 _ACEOF
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18861 $as_echo_n "checking for exp... " >&6; }
18862 if test "${gcc_cv_math_func_exp+set}" = set; then :
18863 $as_echo_n "(cached) " >&6
18864 else
18865 if test x$gcc_no_link = xyes; then
18866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18871 #ifdef HAVE_COMPLEX_H
18872 #include <complex.h>
18873 #endif
18874 #ifdef HAVE_MATH_H
18875 #include <math.h>
18876 #endif
18878 int (*ptr)() = (int (*)())exp;
18881 main ()
18883 return 0;
18886 _ACEOF
18887 if ac_fn_c_try_link "$LINENO"; then :
18888 gcc_cv_math_func_exp=yes
18889 else
18890 gcc_cv_math_func_exp=no
18892 rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18896 $as_echo "$gcc_cv_math_func_exp" >&6; }
18897 if test $gcc_cv_math_func_exp = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define HAVE_EXP 1
18901 _ACEOF
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18909 $as_echo_n "checking for expl... " >&6; }
18910 if test "${gcc_cv_math_func_expl+set}" = set; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 if test x$gcc_no_link = xyes; then
18914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18919 #ifdef HAVE_COMPLEX_H
18920 #include <complex.h>
18921 #endif
18922 #ifdef HAVE_MATH_H
18923 #include <math.h>
18924 #endif
18926 int (*ptr)() = (int (*)())expl;
18929 main ()
18931 return 0;
18934 _ACEOF
18935 if ac_fn_c_try_link "$LINENO"; then :
18936 gcc_cv_math_func_expl=yes
18937 else
18938 gcc_cv_math_func_expl=no
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18944 $as_echo "$gcc_cv_math_func_expl" >&6; }
18945 if test $gcc_cv_math_func_expl = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_EXPL 1
18949 _ACEOF
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18957 $as_echo_n "checking for cexpf... " >&6; }
18958 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18959 $as_echo_n "(cached) " >&6
18960 else
18961 if test x$gcc_no_link = xyes; then
18962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18967 #ifdef HAVE_COMPLEX_H
18968 #include <complex.h>
18969 #endif
18970 #ifdef HAVE_MATH_H
18971 #include <math.h>
18972 #endif
18974 int (*ptr)() = (int (*)())cexpf;
18977 main ()
18979 return 0;
18982 _ACEOF
18983 if ac_fn_c_try_link "$LINENO"; then :
18984 gcc_cv_math_func_cexpf=yes
18985 else
18986 gcc_cv_math_func_cexpf=no
18988 rm -f core conftest.err conftest.$ac_objext \
18989 conftest$ac_exeext conftest.$ac_ext
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18992 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18993 if test $gcc_cv_math_func_cexpf = yes; then
18995 cat >>confdefs.h <<_ACEOF
18996 #define HAVE_CEXPF 1
18997 _ACEOF
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19005 $as_echo_n "checking for cexp... " >&6; }
19006 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19007 $as_echo_n "(cached) " >&6
19008 else
19009 if test x$gcc_no_link = xyes; then
19010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19015 #ifdef HAVE_COMPLEX_H
19016 #include <complex.h>
19017 #endif
19018 #ifdef HAVE_MATH_H
19019 #include <math.h>
19020 #endif
19022 int (*ptr)() = (int (*)())cexp;
19025 main ()
19027 return 0;
19030 _ACEOF
19031 if ac_fn_c_try_link "$LINENO"; then :
19032 gcc_cv_math_func_cexp=yes
19033 else
19034 gcc_cv_math_func_cexp=no
19036 rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19040 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19041 if test $gcc_cv_math_func_cexp = yes; then
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_CEXP 1
19045 _ACEOF
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19053 $as_echo_n "checking for cexpl... " >&6; }
19054 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19055 $as_echo_n "(cached) " >&6
19056 else
19057 if test x$gcc_no_link = xyes; then
19058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19063 #ifdef HAVE_COMPLEX_H
19064 #include <complex.h>
19065 #endif
19066 #ifdef HAVE_MATH_H
19067 #include <math.h>
19068 #endif
19070 int (*ptr)() = (int (*)())cexpl;
19073 main ()
19075 return 0;
19078 _ACEOF
19079 if ac_fn_c_try_link "$LINENO"; then :
19080 gcc_cv_math_func_cexpl=yes
19081 else
19082 gcc_cv_math_func_cexpl=no
19084 rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19088 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19089 if test $gcc_cv_math_func_cexpl = yes; then
19091 cat >>confdefs.h <<_ACEOF
19092 #define HAVE_CEXPL 1
19093 _ACEOF
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19101 $as_echo_n "checking for fabsf... " >&6; }
19102 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 if test x$gcc_no_link = xyes; then
19106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19111 #ifdef HAVE_COMPLEX_H
19112 #include <complex.h>
19113 #endif
19114 #ifdef HAVE_MATH_H
19115 #include <math.h>
19116 #endif
19118 int (*ptr)() = (int (*)())fabsf;
19121 main ()
19123 return 0;
19126 _ACEOF
19127 if ac_fn_c_try_link "$LINENO"; then :
19128 gcc_cv_math_func_fabsf=yes
19129 else
19130 gcc_cv_math_func_fabsf=no
19132 rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19136 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19137 if test $gcc_cv_math_func_fabsf = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_FABSF 1
19141 _ACEOF
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19149 $as_echo_n "checking for fabs... " >&6; }
19150 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19151 $as_echo_n "(cached) " >&6
19152 else
19153 if test x$gcc_no_link = xyes; then
19154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19159 #ifdef HAVE_COMPLEX_H
19160 #include <complex.h>
19161 #endif
19162 #ifdef HAVE_MATH_H
19163 #include <math.h>
19164 #endif
19166 int (*ptr)() = (int (*)())fabs;
19169 main ()
19171 return 0;
19174 _ACEOF
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 gcc_cv_math_func_fabs=yes
19177 else
19178 gcc_cv_math_func_fabs=no
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19184 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19185 if test $gcc_cv_math_func_fabs = yes; then
19187 cat >>confdefs.h <<_ACEOF
19188 #define HAVE_FABS 1
19189 _ACEOF
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19197 $as_echo_n "checking for fabsl... " >&6; }
19198 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19199 $as_echo_n "(cached) " >&6
19200 else
19201 if test x$gcc_no_link = xyes; then
19202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19205 /* end confdefs.h. */
19207 #ifdef HAVE_COMPLEX_H
19208 #include <complex.h>
19209 #endif
19210 #ifdef HAVE_MATH_H
19211 #include <math.h>
19212 #endif
19214 int (*ptr)() = (int (*)())fabsl;
19217 main ()
19219 return 0;
19222 _ACEOF
19223 if ac_fn_c_try_link "$LINENO"; then :
19224 gcc_cv_math_func_fabsl=yes
19225 else
19226 gcc_cv_math_func_fabsl=no
19228 rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19232 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19233 if test $gcc_cv_math_func_fabsl = yes; then
19235 cat >>confdefs.h <<_ACEOF
19236 #define HAVE_FABSL 1
19237 _ACEOF
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19245 $as_echo_n "checking for cabsf... " >&6; }
19246 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19247 $as_echo_n "(cached) " >&6
19248 else
19249 if test x$gcc_no_link = xyes; then
19250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h. */
19255 #ifdef HAVE_COMPLEX_H
19256 #include <complex.h>
19257 #endif
19258 #ifdef HAVE_MATH_H
19259 #include <math.h>
19260 #endif
19262 int (*ptr)() = (int (*)())cabsf;
19265 main ()
19267 return 0;
19270 _ACEOF
19271 if ac_fn_c_try_link "$LINENO"; then :
19272 gcc_cv_math_func_cabsf=yes
19273 else
19274 gcc_cv_math_func_cabsf=no
19276 rm -f core conftest.err conftest.$ac_objext \
19277 conftest$ac_exeext conftest.$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19280 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19281 if test $gcc_cv_math_func_cabsf = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_CABSF 1
19285 _ACEOF
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19293 $as_echo_n "checking for cabs... " >&6; }
19294 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19295 $as_echo_n "(cached) " >&6
19296 else
19297 if test x$gcc_no_link = xyes; then
19298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h. */
19303 #ifdef HAVE_COMPLEX_H
19304 #include <complex.h>
19305 #endif
19306 #ifdef HAVE_MATH_H
19307 #include <math.h>
19308 #endif
19310 int (*ptr)() = (int (*)())cabs;
19313 main ()
19315 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_link "$LINENO"; then :
19320 gcc_cv_math_func_cabs=yes
19321 else
19322 gcc_cv_math_func_cabs=no
19324 rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19328 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19329 if test $gcc_cv_math_func_cabs = yes; then
19331 cat >>confdefs.h <<_ACEOF
19332 #define HAVE_CABS 1
19333 _ACEOF
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19341 $as_echo_n "checking for cabsl... " >&6; }
19342 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19343 $as_echo_n "(cached) " >&6
19344 else
19345 if test x$gcc_no_link = xyes; then
19346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19351 #ifdef HAVE_COMPLEX_H
19352 #include <complex.h>
19353 #endif
19354 #ifdef HAVE_MATH_H
19355 #include <math.h>
19356 #endif
19358 int (*ptr)() = (int (*)())cabsl;
19361 main ()
19363 return 0;
19366 _ACEOF
19367 if ac_fn_c_try_link "$LINENO"; then :
19368 gcc_cv_math_func_cabsl=yes
19369 else
19370 gcc_cv_math_func_cabsl=no
19372 rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19376 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19377 if test $gcc_cv_math_func_cabsl = yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_CABSL 1
19381 _ACEOF
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19389 $as_echo_n "checking for floorf... " >&6; }
19390 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19391 $as_echo_n "(cached) " >&6
19392 else
19393 if test x$gcc_no_link = xyes; then
19394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19399 #ifdef HAVE_COMPLEX_H
19400 #include <complex.h>
19401 #endif
19402 #ifdef HAVE_MATH_H
19403 #include <math.h>
19404 #endif
19406 int (*ptr)() = (int (*)())floorf;
19409 main ()
19411 return 0;
19414 _ACEOF
19415 if ac_fn_c_try_link "$LINENO"; then :
19416 gcc_cv_math_func_floorf=yes
19417 else
19418 gcc_cv_math_func_floorf=no
19420 rm -f core conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19424 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19425 if test $gcc_cv_math_func_floorf = yes; then
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_FLOORF 1
19429 _ACEOF
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19437 $as_echo_n "checking for floor... " >&6; }
19438 if test "${gcc_cv_math_func_floor+set}" = set; then :
19439 $as_echo_n "(cached) " >&6
19440 else
19441 if test x$gcc_no_link = xyes; then
19442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19447 #ifdef HAVE_COMPLEX_H
19448 #include <complex.h>
19449 #endif
19450 #ifdef HAVE_MATH_H
19451 #include <math.h>
19452 #endif
19454 int (*ptr)() = (int (*)())floor;
19457 main ()
19459 return 0;
19462 _ACEOF
19463 if ac_fn_c_try_link "$LINENO"; then :
19464 gcc_cv_math_func_floor=yes
19465 else
19466 gcc_cv_math_func_floor=no
19468 rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19472 $as_echo "$gcc_cv_math_func_floor" >&6; }
19473 if test $gcc_cv_math_func_floor = yes; then
19475 cat >>confdefs.h <<_ACEOF
19476 #define HAVE_FLOOR 1
19477 _ACEOF
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19485 $as_echo_n "checking for floorl... " >&6; }
19486 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19487 $as_echo_n "(cached) " >&6
19488 else
19489 if test x$gcc_no_link = xyes; then
19490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 #ifdef HAVE_COMPLEX_H
19496 #include <complex.h>
19497 #endif
19498 #ifdef HAVE_MATH_H
19499 #include <math.h>
19500 #endif
19502 int (*ptr)() = (int (*)())floorl;
19505 main ()
19507 return 0;
19510 _ACEOF
19511 if ac_fn_c_try_link "$LINENO"; then :
19512 gcc_cv_math_func_floorl=yes
19513 else
19514 gcc_cv_math_func_floorl=no
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19520 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19521 if test $gcc_cv_math_func_floorl = yes; then
19523 cat >>confdefs.h <<_ACEOF
19524 #define HAVE_FLOORL 1
19525 _ACEOF
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19533 $as_echo_n "checking for fmodf... " >&6; }
19534 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19535 $as_echo_n "(cached) " >&6
19536 else
19537 if test x$gcc_no_link = xyes; then
19538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19543 #ifdef HAVE_COMPLEX_H
19544 #include <complex.h>
19545 #endif
19546 #ifdef HAVE_MATH_H
19547 #include <math.h>
19548 #endif
19550 int (*ptr)() = (int (*)())fmodf;
19553 main ()
19555 return 0;
19558 _ACEOF
19559 if ac_fn_c_try_link "$LINENO"; then :
19560 gcc_cv_math_func_fmodf=yes
19561 else
19562 gcc_cv_math_func_fmodf=no
19564 rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19568 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19569 if test $gcc_cv_math_func_fmodf = yes; then
19571 cat >>confdefs.h <<_ACEOF
19572 #define HAVE_FMODF 1
19573 _ACEOF
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19581 $as_echo_n "checking for fmod... " >&6; }
19582 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19583 $as_echo_n "(cached) " >&6
19584 else
19585 if test x$gcc_no_link = xyes; then
19586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19591 #ifdef HAVE_COMPLEX_H
19592 #include <complex.h>
19593 #endif
19594 #ifdef HAVE_MATH_H
19595 #include <math.h>
19596 #endif
19598 int (*ptr)() = (int (*)())fmod;
19601 main ()
19603 return 0;
19606 _ACEOF
19607 if ac_fn_c_try_link "$LINENO"; then :
19608 gcc_cv_math_func_fmod=yes
19609 else
19610 gcc_cv_math_func_fmod=no
19612 rm -f core conftest.err conftest.$ac_objext \
19613 conftest$ac_exeext conftest.$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19616 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19617 if test $gcc_cv_math_func_fmod = yes; then
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_FMOD 1
19621 _ACEOF
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19629 $as_echo_n "checking for fmodl... " >&6; }
19630 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19631 $as_echo_n "(cached) " >&6
19632 else
19633 if test x$gcc_no_link = xyes; then
19634 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 #ifdef HAVE_COMPLEX_H
19640 #include <complex.h>
19641 #endif
19642 #ifdef HAVE_MATH_H
19643 #include <math.h>
19644 #endif
19646 int (*ptr)() = (int (*)())fmodl;
19649 main ()
19651 return 0;
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 gcc_cv_math_func_fmodl=yes
19657 else
19658 gcc_cv_math_func_fmodl=no
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19664 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19665 if test $gcc_cv_math_func_fmodl = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define HAVE_FMODL 1
19669 _ACEOF
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19677 $as_echo_n "checking for frexpf... " >&6; }
19678 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 if test x$gcc_no_link = xyes; then
19682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19687 #ifdef HAVE_COMPLEX_H
19688 #include <complex.h>
19689 #endif
19690 #ifdef HAVE_MATH_H
19691 #include <math.h>
19692 #endif
19694 int (*ptr)() = (int (*)())frexpf;
19697 main ()
19699 return 0;
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"; then :
19704 gcc_cv_math_func_frexpf=yes
19705 else
19706 gcc_cv_math_func_frexpf=no
19708 rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19712 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19713 if test $gcc_cv_math_func_frexpf = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_FREXPF 1
19717 _ACEOF
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19725 $as_echo_n "checking for frexp... " >&6; }
19726 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19727 $as_echo_n "(cached) " >&6
19728 else
19729 if test x$gcc_no_link = xyes; then
19730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19735 #ifdef HAVE_COMPLEX_H
19736 #include <complex.h>
19737 #endif
19738 #ifdef HAVE_MATH_H
19739 #include <math.h>
19740 #endif
19742 int (*ptr)() = (int (*)())frexp;
19745 main ()
19747 return 0;
19750 _ACEOF
19751 if ac_fn_c_try_link "$LINENO"; then :
19752 gcc_cv_math_func_frexp=yes
19753 else
19754 gcc_cv_math_func_frexp=no
19756 rm -f core conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19760 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19761 if test $gcc_cv_math_func_frexp = yes; then
19763 cat >>confdefs.h <<_ACEOF
19764 #define HAVE_FREXP 1
19765 _ACEOF
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19773 $as_echo_n "checking for frexpl... " >&6; }
19774 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19775 $as_echo_n "(cached) " >&6
19776 else
19777 if test x$gcc_no_link = xyes; then
19778 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781 /* end confdefs.h. */
19783 #ifdef HAVE_COMPLEX_H
19784 #include <complex.h>
19785 #endif
19786 #ifdef HAVE_MATH_H
19787 #include <math.h>
19788 #endif
19790 int (*ptr)() = (int (*)())frexpl;
19793 main ()
19795 return 0;
19798 _ACEOF
19799 if ac_fn_c_try_link "$LINENO"; then :
19800 gcc_cv_math_func_frexpl=yes
19801 else
19802 gcc_cv_math_func_frexpl=no
19804 rm -f core conftest.err conftest.$ac_objext \
19805 conftest$ac_exeext conftest.$ac_ext
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19808 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19809 if test $gcc_cv_math_func_frexpl = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_FREXPL 1
19813 _ACEOF
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19821 $as_echo_n "checking for hypotf... " >&6; }
19822 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19823 $as_echo_n "(cached) " >&6
19824 else
19825 if test x$gcc_no_link = xyes; then
19826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19831 #ifdef HAVE_COMPLEX_H
19832 #include <complex.h>
19833 #endif
19834 #ifdef HAVE_MATH_H
19835 #include <math.h>
19836 #endif
19838 int (*ptr)() = (int (*)())hypotf;
19841 main ()
19843 return 0;
19846 _ACEOF
19847 if ac_fn_c_try_link "$LINENO"; then :
19848 gcc_cv_math_func_hypotf=yes
19849 else
19850 gcc_cv_math_func_hypotf=no
19852 rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19856 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19857 if test $gcc_cv_math_func_hypotf = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_HYPOTF 1
19861 _ACEOF
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19869 $as_echo_n "checking for hypot... " >&6; }
19870 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873 if test x$gcc_no_link = xyes; then
19874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19879 #ifdef HAVE_COMPLEX_H
19880 #include <complex.h>
19881 #endif
19882 #ifdef HAVE_MATH_H
19883 #include <math.h>
19884 #endif
19886 int (*ptr)() = (int (*)())hypot;
19889 main ()
19891 return 0;
19894 _ACEOF
19895 if ac_fn_c_try_link "$LINENO"; then :
19896 gcc_cv_math_func_hypot=yes
19897 else
19898 gcc_cv_math_func_hypot=no
19900 rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19904 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19905 if test $gcc_cv_math_func_hypot = yes; then
19907 cat >>confdefs.h <<_ACEOF
19908 #define HAVE_HYPOT 1
19909 _ACEOF
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19917 $as_echo_n "checking for hypotl... " >&6; }
19918 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19919 $as_echo_n "(cached) " >&6
19920 else
19921 if test x$gcc_no_link = xyes; then
19922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19927 #ifdef HAVE_COMPLEX_H
19928 #include <complex.h>
19929 #endif
19930 #ifdef HAVE_MATH_H
19931 #include <math.h>
19932 #endif
19934 int (*ptr)() = (int (*)())hypotl;
19937 main ()
19939 return 0;
19942 _ACEOF
19943 if ac_fn_c_try_link "$LINENO"; then :
19944 gcc_cv_math_func_hypotl=yes
19945 else
19946 gcc_cv_math_func_hypotl=no
19948 rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19952 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19953 if test $gcc_cv_math_func_hypotl = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_HYPOTL 1
19957 _ACEOF
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19965 $as_echo_n "checking for ldexpf... " >&6; }
19966 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19968 else
19969 if test x$gcc_no_link = xyes; then
19970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19975 #ifdef HAVE_COMPLEX_H
19976 #include <complex.h>
19977 #endif
19978 #ifdef HAVE_MATH_H
19979 #include <math.h>
19980 #endif
19982 int (*ptr)() = (int (*)())ldexpf;
19985 main ()
19987 return 0;
19990 _ACEOF
19991 if ac_fn_c_try_link "$LINENO"; then :
19992 gcc_cv_math_func_ldexpf=yes
19993 else
19994 gcc_cv_math_func_ldexpf=no
19996 rm -f core conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20000 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20001 if test $gcc_cv_math_func_ldexpf = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define HAVE_LDEXPF 1
20005 _ACEOF
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20013 $as_echo_n "checking for ldexp... " >&6; }
20014 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20015 $as_echo_n "(cached) " >&6
20016 else
20017 if test x$gcc_no_link = xyes; then
20018 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021 /* end confdefs.h. */
20023 #ifdef HAVE_COMPLEX_H
20024 #include <complex.h>
20025 #endif
20026 #ifdef HAVE_MATH_H
20027 #include <math.h>
20028 #endif
20030 int (*ptr)() = (int (*)())ldexp;
20033 main ()
20035 return 0;
20038 _ACEOF
20039 if ac_fn_c_try_link "$LINENO"; then :
20040 gcc_cv_math_func_ldexp=yes
20041 else
20042 gcc_cv_math_func_ldexp=no
20044 rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20048 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20049 if test $gcc_cv_math_func_ldexp = yes; then
20051 cat >>confdefs.h <<_ACEOF
20052 #define HAVE_LDEXP 1
20053 _ACEOF
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20061 $as_echo_n "checking for ldexpl... " >&6; }
20062 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20063 $as_echo_n "(cached) " >&6
20064 else
20065 if test x$gcc_no_link = xyes; then
20066 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20071 #ifdef HAVE_COMPLEX_H
20072 #include <complex.h>
20073 #endif
20074 #ifdef HAVE_MATH_H
20075 #include <math.h>
20076 #endif
20078 int (*ptr)() = (int (*)())ldexpl;
20081 main ()
20083 return 0;
20086 _ACEOF
20087 if ac_fn_c_try_link "$LINENO"; then :
20088 gcc_cv_math_func_ldexpl=yes
20089 else
20090 gcc_cv_math_func_ldexpl=no
20092 rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20096 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20097 if test $gcc_cv_math_func_ldexpl = yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define HAVE_LDEXPL 1
20101 _ACEOF
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20109 $as_echo_n "checking for logf... " >&6; }
20110 if test "${gcc_cv_math_func_logf+set}" = set; then :
20111 $as_echo_n "(cached) " >&6
20112 else
20113 if test x$gcc_no_link = xyes; then
20114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20119 #ifdef HAVE_COMPLEX_H
20120 #include <complex.h>
20121 #endif
20122 #ifdef HAVE_MATH_H
20123 #include <math.h>
20124 #endif
20126 int (*ptr)() = (int (*)())logf;
20129 main ()
20131 return 0;
20134 _ACEOF
20135 if ac_fn_c_try_link "$LINENO"; then :
20136 gcc_cv_math_func_logf=yes
20137 else
20138 gcc_cv_math_func_logf=no
20140 rm -f core conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext conftest.$ac_ext
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20144 $as_echo "$gcc_cv_math_func_logf" >&6; }
20145 if test $gcc_cv_math_func_logf = yes; then
20147 cat >>confdefs.h <<_ACEOF
20148 #define HAVE_LOGF 1
20149 _ACEOF
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20157 $as_echo_n "checking for log... " >&6; }
20158 if test "${gcc_cv_math_func_log+set}" = set; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 if test x$gcc_no_link = xyes; then
20162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20167 #ifdef HAVE_COMPLEX_H
20168 #include <complex.h>
20169 #endif
20170 #ifdef HAVE_MATH_H
20171 #include <math.h>
20172 #endif
20174 int (*ptr)() = (int (*)())log;
20177 main ()
20179 return 0;
20182 _ACEOF
20183 if ac_fn_c_try_link "$LINENO"; then :
20184 gcc_cv_math_func_log=yes
20185 else
20186 gcc_cv_math_func_log=no
20188 rm -f core conftest.err conftest.$ac_objext \
20189 conftest$ac_exeext conftest.$ac_ext
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20192 $as_echo "$gcc_cv_math_func_log" >&6; }
20193 if test $gcc_cv_math_func_log = yes; then
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_LOG 1
20197 _ACEOF
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20205 $as_echo_n "checking for logl... " >&6; }
20206 if test "${gcc_cv_math_func_logl+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
20208 else
20209 if test x$gcc_no_link = xyes; then
20210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 #ifdef HAVE_COMPLEX_H
20216 #include <complex.h>
20217 #endif
20218 #ifdef HAVE_MATH_H
20219 #include <math.h>
20220 #endif
20222 int (*ptr)() = (int (*)())logl;
20225 main ()
20227 return 0;
20230 _ACEOF
20231 if ac_fn_c_try_link "$LINENO"; then :
20232 gcc_cv_math_func_logl=yes
20233 else
20234 gcc_cv_math_func_logl=no
20236 rm -f core conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20240 $as_echo "$gcc_cv_math_func_logl" >&6; }
20241 if test $gcc_cv_math_func_logl = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_LOGL 1
20245 _ACEOF
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20253 $as_echo_n "checking for clogf... " >&6; }
20254 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20255 $as_echo_n "(cached) " >&6
20256 else
20257 if test x$gcc_no_link = xyes; then
20258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20263 #ifdef HAVE_COMPLEX_H
20264 #include <complex.h>
20265 #endif
20266 #ifdef HAVE_MATH_H
20267 #include <math.h>
20268 #endif
20270 int (*ptr)() = (int (*)())clogf;
20273 main ()
20275 return 0;
20278 _ACEOF
20279 if ac_fn_c_try_link "$LINENO"; then :
20280 gcc_cv_math_func_clogf=yes
20281 else
20282 gcc_cv_math_func_clogf=no
20284 rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20288 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20289 if test $gcc_cv_math_func_clogf = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_CLOGF 1
20293 _ACEOF
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20301 $as_echo_n "checking for clog... " >&6; }
20302 if test "${gcc_cv_math_func_clog+set}" = set; then :
20303 $as_echo_n "(cached) " >&6
20304 else
20305 if test x$gcc_no_link = xyes; then
20306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309 /* end confdefs.h. */
20311 #ifdef HAVE_COMPLEX_H
20312 #include <complex.h>
20313 #endif
20314 #ifdef HAVE_MATH_H
20315 #include <math.h>
20316 #endif
20318 int (*ptr)() = (int (*)())clog;
20321 main ()
20323 return 0;
20326 _ACEOF
20327 if ac_fn_c_try_link "$LINENO"; then :
20328 gcc_cv_math_func_clog=yes
20329 else
20330 gcc_cv_math_func_clog=no
20332 rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20336 $as_echo "$gcc_cv_math_func_clog" >&6; }
20337 if test $gcc_cv_math_func_clog = yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define HAVE_CLOG 1
20341 _ACEOF
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20349 $as_echo_n "checking for clogl... " >&6; }
20350 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20352 else
20353 if test x$gcc_no_link = xyes; then
20354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20359 #ifdef HAVE_COMPLEX_H
20360 #include <complex.h>
20361 #endif
20362 #ifdef HAVE_MATH_H
20363 #include <math.h>
20364 #endif
20366 int (*ptr)() = (int (*)())clogl;
20369 main ()
20371 return 0;
20374 _ACEOF
20375 if ac_fn_c_try_link "$LINENO"; then :
20376 gcc_cv_math_func_clogl=yes
20377 else
20378 gcc_cv_math_func_clogl=no
20380 rm -f core conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20384 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20385 if test $gcc_cv_math_func_clogl = yes; then
20387 cat >>confdefs.h <<_ACEOF
20388 #define HAVE_CLOGL 1
20389 _ACEOF
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20397 $as_echo_n "checking for log10f... " >&6; }
20398 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20399 $as_echo_n "(cached) " >&6
20400 else
20401 if test x$gcc_no_link = xyes; then
20402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20407 #ifdef HAVE_COMPLEX_H
20408 #include <complex.h>
20409 #endif
20410 #ifdef HAVE_MATH_H
20411 #include <math.h>
20412 #endif
20414 int (*ptr)() = (int (*)())log10f;
20417 main ()
20419 return 0;
20422 _ACEOF
20423 if ac_fn_c_try_link "$LINENO"; then :
20424 gcc_cv_math_func_log10f=yes
20425 else
20426 gcc_cv_math_func_log10f=no
20428 rm -f core conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext conftest.$ac_ext
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20432 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20433 if test $gcc_cv_math_func_log10f = yes; then
20435 cat >>confdefs.h <<_ACEOF
20436 #define HAVE_LOG10F 1
20437 _ACEOF
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20445 $as_echo_n "checking for log10... " >&6; }
20446 if test "${gcc_cv_math_func_log10+set}" = set; then :
20447 $as_echo_n "(cached) " >&6
20448 else
20449 if test x$gcc_no_link = xyes; then
20450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20455 #ifdef HAVE_COMPLEX_H
20456 #include <complex.h>
20457 #endif
20458 #ifdef HAVE_MATH_H
20459 #include <math.h>
20460 #endif
20462 int (*ptr)() = (int (*)())log10;
20465 main ()
20467 return 0;
20470 _ACEOF
20471 if ac_fn_c_try_link "$LINENO"; then :
20472 gcc_cv_math_func_log10=yes
20473 else
20474 gcc_cv_math_func_log10=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20480 $as_echo "$gcc_cv_math_func_log10" >&6; }
20481 if test $gcc_cv_math_func_log10 = yes; then
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE_LOG10 1
20485 _ACEOF
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20493 $as_echo_n "checking for log10l... " >&6; }
20494 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20496 else
20497 if test x$gcc_no_link = xyes; then
20498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h. */
20503 #ifdef HAVE_COMPLEX_H
20504 #include <complex.h>
20505 #endif
20506 #ifdef HAVE_MATH_H
20507 #include <math.h>
20508 #endif
20510 int (*ptr)() = (int (*)())log10l;
20513 main ()
20515 return 0;
20518 _ACEOF
20519 if ac_fn_c_try_link "$LINENO"; then :
20520 gcc_cv_math_func_log10l=yes
20521 else
20522 gcc_cv_math_func_log10l=no
20524 rm -f core conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20528 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20529 if test $gcc_cv_math_func_log10l = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define HAVE_LOG10L 1
20533 _ACEOF
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20541 $as_echo_n "checking for clog10f... " >&6; }
20542 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20543 $as_echo_n "(cached) " >&6
20544 else
20545 if test x$gcc_no_link = xyes; then
20546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549 /* end confdefs.h. */
20551 #ifdef HAVE_COMPLEX_H
20552 #include <complex.h>
20553 #endif
20554 #ifdef HAVE_MATH_H
20555 #include <math.h>
20556 #endif
20558 int (*ptr)() = (int (*)())clog10f;
20561 main ()
20563 return 0;
20566 _ACEOF
20567 if ac_fn_c_try_link "$LINENO"; then :
20568 gcc_cv_math_func_clog10f=yes
20569 else
20570 gcc_cv_math_func_clog10f=no
20572 rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20576 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20577 if test $gcc_cv_math_func_clog10f = yes; then
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_CLOG10F 1
20581 _ACEOF
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20589 $as_echo_n "checking for clog10... " >&6; }
20590 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20591 $as_echo_n "(cached) " >&6
20592 else
20593 if test x$gcc_no_link = xyes; then
20594 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20599 #ifdef HAVE_COMPLEX_H
20600 #include <complex.h>
20601 #endif
20602 #ifdef HAVE_MATH_H
20603 #include <math.h>
20604 #endif
20606 int (*ptr)() = (int (*)())clog10;
20609 main ()
20611 return 0;
20614 _ACEOF
20615 if ac_fn_c_try_link "$LINENO"; then :
20616 gcc_cv_math_func_clog10=yes
20617 else
20618 gcc_cv_math_func_clog10=no
20620 rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20624 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20625 if test $gcc_cv_math_func_clog10 = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_CLOG10 1
20629 _ACEOF
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20637 $as_echo_n "checking for clog10l... " >&6; }
20638 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20639 $as_echo_n "(cached) " >&6
20640 else
20641 if test x$gcc_no_link = xyes; then
20642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 #ifdef HAVE_COMPLEX_H
20648 #include <complex.h>
20649 #endif
20650 #ifdef HAVE_MATH_H
20651 #include <math.h>
20652 #endif
20654 int (*ptr)() = (int (*)())clog10l;
20657 main ()
20659 return 0;
20662 _ACEOF
20663 if ac_fn_c_try_link "$LINENO"; then :
20664 gcc_cv_math_func_clog10l=yes
20665 else
20666 gcc_cv_math_func_clog10l=no
20668 rm -f core conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20672 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20673 if test $gcc_cv_math_func_clog10l = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define HAVE_CLOG10L 1
20677 _ACEOF
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20685 $as_echo_n "checking for nextafterf... " >&6; }
20686 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20687 $as_echo_n "(cached) " >&6
20688 else
20689 if test x$gcc_no_link = xyes; then
20690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20695 #ifdef HAVE_COMPLEX_H
20696 #include <complex.h>
20697 #endif
20698 #ifdef HAVE_MATH_H
20699 #include <math.h>
20700 #endif
20702 int (*ptr)() = (int (*)())nextafterf;
20705 main ()
20707 return 0;
20710 _ACEOF
20711 if ac_fn_c_try_link "$LINENO"; then :
20712 gcc_cv_math_func_nextafterf=yes
20713 else
20714 gcc_cv_math_func_nextafterf=no
20716 rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20720 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20721 if test $gcc_cv_math_func_nextafterf = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define HAVE_NEXTAFTERF 1
20725 _ACEOF
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20733 $as_echo_n "checking for nextafter... " >&6; }
20734 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20735 $as_echo_n "(cached) " >&6
20736 else
20737 if test x$gcc_no_link = xyes; then
20738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h. */
20743 #ifdef HAVE_COMPLEX_H
20744 #include <complex.h>
20745 #endif
20746 #ifdef HAVE_MATH_H
20747 #include <math.h>
20748 #endif
20750 int (*ptr)() = (int (*)())nextafter;
20753 main ()
20755 return 0;
20758 _ACEOF
20759 if ac_fn_c_try_link "$LINENO"; then :
20760 gcc_cv_math_func_nextafter=yes
20761 else
20762 gcc_cv_math_func_nextafter=no
20764 rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20768 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20769 if test $gcc_cv_math_func_nextafter = yes; then
20771 cat >>confdefs.h <<_ACEOF
20772 #define HAVE_NEXTAFTER 1
20773 _ACEOF
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20781 $as_echo_n "checking for nextafterl... " >&6; }
20782 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20784 else
20785 if test x$gcc_no_link = xyes; then
20786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h. */
20791 #ifdef HAVE_COMPLEX_H
20792 #include <complex.h>
20793 #endif
20794 #ifdef HAVE_MATH_H
20795 #include <math.h>
20796 #endif
20798 int (*ptr)() = (int (*)())nextafterl;
20801 main ()
20803 return 0;
20806 _ACEOF
20807 if ac_fn_c_try_link "$LINENO"; then :
20808 gcc_cv_math_func_nextafterl=yes
20809 else
20810 gcc_cv_math_func_nextafterl=no
20812 rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20816 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20817 if test $gcc_cv_math_func_nextafterl = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define HAVE_NEXTAFTERL 1
20821 _ACEOF
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20829 $as_echo_n "checking for powf... " >&6; }
20830 if test "${gcc_cv_math_func_powf+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20832 else
20833 if test x$gcc_no_link = xyes; then
20834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20839 #ifdef HAVE_COMPLEX_H
20840 #include <complex.h>
20841 #endif
20842 #ifdef HAVE_MATH_H
20843 #include <math.h>
20844 #endif
20846 int (*ptr)() = (int (*)())powf;
20849 main ()
20851 return 0;
20854 _ACEOF
20855 if ac_fn_c_try_link "$LINENO"; then :
20856 gcc_cv_math_func_powf=yes
20857 else
20858 gcc_cv_math_func_powf=no
20860 rm -f core conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20864 $as_echo "$gcc_cv_math_func_powf" >&6; }
20865 if test $gcc_cv_math_func_powf = yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define HAVE_POWF 1
20869 _ACEOF
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20877 $as_echo_n "checking for pow... " >&6; }
20878 if test "${gcc_cv_math_func_pow+set}" = set; then :
20879 $as_echo_n "(cached) " >&6
20880 else
20881 if test x$gcc_no_link = xyes; then
20882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20887 #ifdef HAVE_COMPLEX_H
20888 #include <complex.h>
20889 #endif
20890 #ifdef HAVE_MATH_H
20891 #include <math.h>
20892 #endif
20894 int (*ptr)() = (int (*)())pow;
20897 main ()
20899 return 0;
20902 _ACEOF
20903 if ac_fn_c_try_link "$LINENO"; then :
20904 gcc_cv_math_func_pow=yes
20905 else
20906 gcc_cv_math_func_pow=no
20908 rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20912 $as_echo "$gcc_cv_math_func_pow" >&6; }
20913 if test $gcc_cv_math_func_pow = yes; then
20915 cat >>confdefs.h <<_ACEOF
20916 #define HAVE_POW 1
20917 _ACEOF
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20925 $as_echo_n "checking for cpowf... " >&6; }
20926 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20927 $as_echo_n "(cached) " >&6
20928 else
20929 if test x$gcc_no_link = xyes; then
20930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20935 #ifdef HAVE_COMPLEX_H
20936 #include <complex.h>
20937 #endif
20938 #ifdef HAVE_MATH_H
20939 #include <math.h>
20940 #endif
20942 int (*ptr)() = (int (*)())cpowf;
20945 main ()
20947 return 0;
20950 _ACEOF
20951 if ac_fn_c_try_link "$LINENO"; then :
20952 gcc_cv_math_func_cpowf=yes
20953 else
20954 gcc_cv_math_func_cpowf=no
20956 rm -f core conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20960 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20961 if test $gcc_cv_math_func_cpowf = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964 #define HAVE_CPOWF 1
20965 _ACEOF
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20973 $as_echo_n "checking for cpow... " >&6; }
20974 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20976 else
20977 if test x$gcc_no_link = xyes; then
20978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h. */
20983 #ifdef HAVE_COMPLEX_H
20984 #include <complex.h>
20985 #endif
20986 #ifdef HAVE_MATH_H
20987 #include <math.h>
20988 #endif
20990 int (*ptr)() = (int (*)())cpow;
20993 main ()
20995 return 0;
20998 _ACEOF
20999 if ac_fn_c_try_link "$LINENO"; then :
21000 gcc_cv_math_func_cpow=yes
21001 else
21002 gcc_cv_math_func_cpow=no
21004 rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21008 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21009 if test $gcc_cv_math_func_cpow = yes; then
21011 cat >>confdefs.h <<_ACEOF
21012 #define HAVE_CPOW 1
21013 _ACEOF
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21021 $as_echo_n "checking for cpowl... " >&6; }
21022 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025 if test x$gcc_no_link = xyes; then
21026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21031 #ifdef HAVE_COMPLEX_H
21032 #include <complex.h>
21033 #endif
21034 #ifdef HAVE_MATH_H
21035 #include <math.h>
21036 #endif
21038 int (*ptr)() = (int (*)())cpowl;
21041 main ()
21043 return 0;
21046 _ACEOF
21047 if ac_fn_c_try_link "$LINENO"; then :
21048 gcc_cv_math_func_cpowl=yes
21049 else
21050 gcc_cv_math_func_cpowl=no
21052 rm -f core conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21056 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21057 if test $gcc_cv_math_func_cpowl = yes; then
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_CPOWL 1
21061 _ACEOF
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21069 $as_echo_n "checking for roundf... " >&6; }
21070 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21071 $as_echo_n "(cached) " >&6
21072 else
21073 if test x$gcc_no_link = xyes; then
21074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21079 #ifdef HAVE_COMPLEX_H
21080 #include <complex.h>
21081 #endif
21082 #ifdef HAVE_MATH_H
21083 #include <math.h>
21084 #endif
21086 int (*ptr)() = (int (*)())roundf;
21089 main ()
21091 return 0;
21094 _ACEOF
21095 if ac_fn_c_try_link "$LINENO"; then :
21096 gcc_cv_math_func_roundf=yes
21097 else
21098 gcc_cv_math_func_roundf=no
21100 rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21104 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21105 if test $gcc_cv_math_func_roundf = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define HAVE_ROUNDF 1
21109 _ACEOF
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21117 $as_echo_n "checking for round... " >&6; }
21118 if test "${gcc_cv_math_func_round+set}" = set; then :
21119 $as_echo_n "(cached) " >&6
21120 else
21121 if test x$gcc_no_link = xyes; then
21122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21127 #ifdef HAVE_COMPLEX_H
21128 #include <complex.h>
21129 #endif
21130 #ifdef HAVE_MATH_H
21131 #include <math.h>
21132 #endif
21134 int (*ptr)() = (int (*)())round;
21137 main ()
21139 return 0;
21142 _ACEOF
21143 if ac_fn_c_try_link "$LINENO"; then :
21144 gcc_cv_math_func_round=yes
21145 else
21146 gcc_cv_math_func_round=no
21148 rm -f core conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21152 $as_echo "$gcc_cv_math_func_round" >&6; }
21153 if test $gcc_cv_math_func_round = yes; then
21155 cat >>confdefs.h <<_ACEOF
21156 #define HAVE_ROUND 1
21157 _ACEOF
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21165 $as_echo_n "checking for roundl... " >&6; }
21166 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21167 $as_echo_n "(cached) " >&6
21168 else
21169 if test x$gcc_no_link = xyes; then
21170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h. */
21175 #ifdef HAVE_COMPLEX_H
21176 #include <complex.h>
21177 #endif
21178 #ifdef HAVE_MATH_H
21179 #include <math.h>
21180 #endif
21182 int (*ptr)() = (int (*)())roundl;
21185 main ()
21187 return 0;
21190 _ACEOF
21191 if ac_fn_c_try_link "$LINENO"; then :
21192 gcc_cv_math_func_roundl=yes
21193 else
21194 gcc_cv_math_func_roundl=no
21196 rm -f core conftest.err conftest.$ac_objext \
21197 conftest$ac_exeext conftest.$ac_ext
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21200 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21201 if test $gcc_cv_math_func_roundl = yes; then
21203 cat >>confdefs.h <<_ACEOF
21204 #define HAVE_ROUNDL 1
21205 _ACEOF
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21213 $as_echo_n "checking for lroundf... " >&6; }
21214 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21215 $as_echo_n "(cached) " >&6
21216 else
21217 if test x$gcc_no_link = xyes; then
21218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h. */
21223 #ifdef HAVE_COMPLEX_H
21224 #include <complex.h>
21225 #endif
21226 #ifdef HAVE_MATH_H
21227 #include <math.h>
21228 #endif
21230 int (*ptr)() = (int (*)())lroundf;
21233 main ()
21235 return 0;
21238 _ACEOF
21239 if ac_fn_c_try_link "$LINENO"; then :
21240 gcc_cv_math_func_lroundf=yes
21241 else
21242 gcc_cv_math_func_lroundf=no
21244 rm -f core conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21248 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21249 if test $gcc_cv_math_func_lroundf = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define HAVE_LROUNDF 1
21253 _ACEOF
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21261 $as_echo_n "checking for lround... " >&6; }
21262 if test "${gcc_cv_math_func_lround+set}" = set; then :
21263 $as_echo_n "(cached) " >&6
21264 else
21265 if test x$gcc_no_link = xyes; then
21266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21271 #ifdef HAVE_COMPLEX_H
21272 #include <complex.h>
21273 #endif
21274 #ifdef HAVE_MATH_H
21275 #include <math.h>
21276 #endif
21278 int (*ptr)() = (int (*)())lround;
21281 main ()
21283 return 0;
21286 _ACEOF
21287 if ac_fn_c_try_link "$LINENO"; then :
21288 gcc_cv_math_func_lround=yes
21289 else
21290 gcc_cv_math_func_lround=no
21292 rm -f core conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21296 $as_echo "$gcc_cv_math_func_lround" >&6; }
21297 if test $gcc_cv_math_func_lround = yes; then
21299 cat >>confdefs.h <<_ACEOF
21300 #define HAVE_LROUND 1
21301 _ACEOF
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21309 $as_echo_n "checking for lroundl... " >&6; }
21310 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21311 $as_echo_n "(cached) " >&6
21312 else
21313 if test x$gcc_no_link = xyes; then
21314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21319 #ifdef HAVE_COMPLEX_H
21320 #include <complex.h>
21321 #endif
21322 #ifdef HAVE_MATH_H
21323 #include <math.h>
21324 #endif
21326 int (*ptr)() = (int (*)())lroundl;
21329 main ()
21331 return 0;
21334 _ACEOF
21335 if ac_fn_c_try_link "$LINENO"; then :
21336 gcc_cv_math_func_lroundl=yes
21337 else
21338 gcc_cv_math_func_lroundl=no
21340 rm -f core conftest.err conftest.$ac_objext \
21341 conftest$ac_exeext conftest.$ac_ext
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21344 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21345 if test $gcc_cv_math_func_lroundl = yes; then
21347 cat >>confdefs.h <<_ACEOF
21348 #define HAVE_LROUNDL 1
21349 _ACEOF
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21357 $as_echo_n "checking for llroundf... " >&6; }
21358 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21359 $as_echo_n "(cached) " >&6
21360 else
21361 if test x$gcc_no_link = xyes; then
21362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21367 #ifdef HAVE_COMPLEX_H
21368 #include <complex.h>
21369 #endif
21370 #ifdef HAVE_MATH_H
21371 #include <math.h>
21372 #endif
21374 int (*ptr)() = (int (*)())llroundf;
21377 main ()
21379 return 0;
21382 _ACEOF
21383 if ac_fn_c_try_link "$LINENO"; then :
21384 gcc_cv_math_func_llroundf=yes
21385 else
21386 gcc_cv_math_func_llroundf=no
21388 rm -f core conftest.err conftest.$ac_objext \
21389 conftest$ac_exeext conftest.$ac_ext
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21392 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21393 if test $gcc_cv_math_func_llroundf = yes; then
21395 cat >>confdefs.h <<_ACEOF
21396 #define HAVE_LLROUNDF 1
21397 _ACEOF
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21405 $as_echo_n "checking for llround... " >&6; }
21406 if test "${gcc_cv_math_func_llround+set}" = set; then :
21407 $as_echo_n "(cached) " >&6
21408 else
21409 if test x$gcc_no_link = xyes; then
21410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413 /* end confdefs.h. */
21415 #ifdef HAVE_COMPLEX_H
21416 #include <complex.h>
21417 #endif
21418 #ifdef HAVE_MATH_H
21419 #include <math.h>
21420 #endif
21422 int (*ptr)() = (int (*)())llround;
21425 main ()
21427 return 0;
21430 _ACEOF
21431 if ac_fn_c_try_link "$LINENO"; then :
21432 gcc_cv_math_func_llround=yes
21433 else
21434 gcc_cv_math_func_llround=no
21436 rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21440 $as_echo "$gcc_cv_math_func_llround" >&6; }
21441 if test $gcc_cv_math_func_llround = yes; then
21443 cat >>confdefs.h <<_ACEOF
21444 #define HAVE_LLROUND 1
21445 _ACEOF
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21453 $as_echo_n "checking for llroundl... " >&6; }
21454 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21455 $as_echo_n "(cached) " >&6
21456 else
21457 if test x$gcc_no_link = xyes; then
21458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21463 #ifdef HAVE_COMPLEX_H
21464 #include <complex.h>
21465 #endif
21466 #ifdef HAVE_MATH_H
21467 #include <math.h>
21468 #endif
21470 int (*ptr)() = (int (*)())llroundl;
21473 main ()
21475 return 0;
21478 _ACEOF
21479 if ac_fn_c_try_link "$LINENO"; then :
21480 gcc_cv_math_func_llroundl=yes
21481 else
21482 gcc_cv_math_func_llroundl=no
21484 rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21488 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21489 if test $gcc_cv_math_func_llroundl = yes; then
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_LLROUNDL 1
21493 _ACEOF
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21501 $as_echo_n "checking for scalbnf... " >&6; }
21502 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21503 $as_echo_n "(cached) " >&6
21504 else
21505 if test x$gcc_no_link = xyes; then
21506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21511 #ifdef HAVE_COMPLEX_H
21512 #include <complex.h>
21513 #endif
21514 #ifdef HAVE_MATH_H
21515 #include <math.h>
21516 #endif
21518 int (*ptr)() = (int (*)())scalbnf;
21521 main ()
21523 return 0;
21526 _ACEOF
21527 if ac_fn_c_try_link "$LINENO"; then :
21528 gcc_cv_math_func_scalbnf=yes
21529 else
21530 gcc_cv_math_func_scalbnf=no
21532 rm -f core conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21536 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21537 if test $gcc_cv_math_func_scalbnf = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_SCALBNF 1
21541 _ACEOF
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21549 $as_echo_n "checking for scalbn... " >&6; }
21550 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21551 $as_echo_n "(cached) " >&6
21552 else
21553 if test x$gcc_no_link = xyes; then
21554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21559 #ifdef HAVE_COMPLEX_H
21560 #include <complex.h>
21561 #endif
21562 #ifdef HAVE_MATH_H
21563 #include <math.h>
21564 #endif
21566 int (*ptr)() = (int (*)())scalbn;
21569 main ()
21571 return 0;
21574 _ACEOF
21575 if ac_fn_c_try_link "$LINENO"; then :
21576 gcc_cv_math_func_scalbn=yes
21577 else
21578 gcc_cv_math_func_scalbn=no
21580 rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21584 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21585 if test $gcc_cv_math_func_scalbn = yes; then
21587 cat >>confdefs.h <<_ACEOF
21588 #define HAVE_SCALBN 1
21589 _ACEOF
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21597 $as_echo_n "checking for scalbnl... " >&6; }
21598 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21599 $as_echo_n "(cached) " >&6
21600 else
21601 if test x$gcc_no_link = xyes; then
21602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21607 #ifdef HAVE_COMPLEX_H
21608 #include <complex.h>
21609 #endif
21610 #ifdef HAVE_MATH_H
21611 #include <math.h>
21612 #endif
21614 int (*ptr)() = (int (*)())scalbnl;
21617 main ()
21619 return 0;
21622 _ACEOF
21623 if ac_fn_c_try_link "$LINENO"; then :
21624 gcc_cv_math_func_scalbnl=yes
21625 else
21626 gcc_cv_math_func_scalbnl=no
21628 rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21632 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21633 if test $gcc_cv_math_func_scalbnl = yes; then
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE_SCALBNL 1
21637 _ACEOF
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21645 $as_echo_n "checking for sinf... " >&6; }
21646 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21648 else
21649 if test x$gcc_no_link = xyes; then
21650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21653 /* end confdefs.h. */
21655 #ifdef HAVE_COMPLEX_H
21656 #include <complex.h>
21657 #endif
21658 #ifdef HAVE_MATH_H
21659 #include <math.h>
21660 #endif
21662 int (*ptr)() = (int (*)())sinf;
21665 main ()
21667 return 0;
21670 _ACEOF
21671 if ac_fn_c_try_link "$LINENO"; then :
21672 gcc_cv_math_func_sinf=yes
21673 else
21674 gcc_cv_math_func_sinf=no
21676 rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21680 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21681 if test $gcc_cv_math_func_sinf = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define HAVE_SINF 1
21685 _ACEOF
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21693 $as_echo_n "checking for sin... " >&6; }
21694 if test "${gcc_cv_math_func_sin+set}" = set; then :
21695 $as_echo_n "(cached) " >&6
21696 else
21697 if test x$gcc_no_link = xyes; then
21698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h. */
21703 #ifdef HAVE_COMPLEX_H
21704 #include <complex.h>
21705 #endif
21706 #ifdef HAVE_MATH_H
21707 #include <math.h>
21708 #endif
21710 int (*ptr)() = (int (*)())sin;
21713 main ()
21715 return 0;
21718 _ACEOF
21719 if ac_fn_c_try_link "$LINENO"; then :
21720 gcc_cv_math_func_sin=yes
21721 else
21722 gcc_cv_math_func_sin=no
21724 rm -f core conftest.err conftest.$ac_objext \
21725 conftest$ac_exeext conftest.$ac_ext
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21728 $as_echo "$gcc_cv_math_func_sin" >&6; }
21729 if test $gcc_cv_math_func_sin = yes; then
21731 cat >>confdefs.h <<_ACEOF
21732 #define HAVE_SIN 1
21733 _ACEOF
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21741 $as_echo_n "checking for sinl... " >&6; }
21742 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21743 $as_echo_n "(cached) " >&6
21744 else
21745 if test x$gcc_no_link = xyes; then
21746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21751 #ifdef HAVE_COMPLEX_H
21752 #include <complex.h>
21753 #endif
21754 #ifdef HAVE_MATH_H
21755 #include <math.h>
21756 #endif
21758 int (*ptr)() = (int (*)())sinl;
21761 main ()
21763 return 0;
21766 _ACEOF
21767 if ac_fn_c_try_link "$LINENO"; then :
21768 gcc_cv_math_func_sinl=yes
21769 else
21770 gcc_cv_math_func_sinl=no
21772 rm -f core conftest.err conftest.$ac_objext \
21773 conftest$ac_exeext conftest.$ac_ext
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21776 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21777 if test $gcc_cv_math_func_sinl = yes; then
21779 cat >>confdefs.h <<_ACEOF
21780 #define HAVE_SINL 1
21781 _ACEOF
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21789 $as_echo_n "checking for csinf... " >&6; }
21790 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 if test x$gcc_no_link = xyes; then
21794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21799 #ifdef HAVE_COMPLEX_H
21800 #include <complex.h>
21801 #endif
21802 #ifdef HAVE_MATH_H
21803 #include <math.h>
21804 #endif
21806 int (*ptr)() = (int (*)())csinf;
21809 main ()
21811 return 0;
21814 _ACEOF
21815 if ac_fn_c_try_link "$LINENO"; then :
21816 gcc_cv_math_func_csinf=yes
21817 else
21818 gcc_cv_math_func_csinf=no
21820 rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21824 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21825 if test $gcc_cv_math_func_csinf = yes; then
21827 cat >>confdefs.h <<_ACEOF
21828 #define HAVE_CSINF 1
21829 _ACEOF
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21837 $as_echo_n "checking for csin... " >&6; }
21838 if test "${gcc_cv_math_func_csin+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21840 else
21841 if test x$gcc_no_link = xyes; then
21842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21847 #ifdef HAVE_COMPLEX_H
21848 #include <complex.h>
21849 #endif
21850 #ifdef HAVE_MATH_H
21851 #include <math.h>
21852 #endif
21854 int (*ptr)() = (int (*)())csin;
21857 main ()
21859 return 0;
21862 _ACEOF
21863 if ac_fn_c_try_link "$LINENO"; then :
21864 gcc_cv_math_func_csin=yes
21865 else
21866 gcc_cv_math_func_csin=no
21868 rm -f core conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21872 $as_echo "$gcc_cv_math_func_csin" >&6; }
21873 if test $gcc_cv_math_func_csin = yes; then
21875 cat >>confdefs.h <<_ACEOF
21876 #define HAVE_CSIN 1
21877 _ACEOF
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21885 $as_echo_n "checking for csinl... " >&6; }
21886 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 if test x$gcc_no_link = xyes; then
21890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893 /* end confdefs.h. */
21895 #ifdef HAVE_COMPLEX_H
21896 #include <complex.h>
21897 #endif
21898 #ifdef HAVE_MATH_H
21899 #include <math.h>
21900 #endif
21902 int (*ptr)() = (int (*)())csinl;
21905 main ()
21907 return 0;
21910 _ACEOF
21911 if ac_fn_c_try_link "$LINENO"; then :
21912 gcc_cv_math_func_csinl=yes
21913 else
21914 gcc_cv_math_func_csinl=no
21916 rm -f core conftest.err conftest.$ac_objext \
21917 conftest$ac_exeext conftest.$ac_ext
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21920 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21921 if test $gcc_cv_math_func_csinl = yes; then
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_CSINL 1
21925 _ACEOF
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21933 $as_echo_n "checking for sinhf... " >&6; }
21934 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21935 $as_echo_n "(cached) " >&6
21936 else
21937 if test x$gcc_no_link = xyes; then
21938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21943 #ifdef HAVE_COMPLEX_H
21944 #include <complex.h>
21945 #endif
21946 #ifdef HAVE_MATH_H
21947 #include <math.h>
21948 #endif
21950 int (*ptr)() = (int (*)())sinhf;
21953 main ()
21955 return 0;
21958 _ACEOF
21959 if ac_fn_c_try_link "$LINENO"; then :
21960 gcc_cv_math_func_sinhf=yes
21961 else
21962 gcc_cv_math_func_sinhf=no
21964 rm -f core conftest.err conftest.$ac_objext \
21965 conftest$ac_exeext conftest.$ac_ext
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21968 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21969 if test $gcc_cv_math_func_sinhf = yes; then
21971 cat >>confdefs.h <<_ACEOF
21972 #define HAVE_SINHF 1
21973 _ACEOF
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21981 $as_echo_n "checking for sinh... " >&6; }
21982 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21983 $as_echo_n "(cached) " >&6
21984 else
21985 if test x$gcc_no_link = xyes; then
21986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21991 #ifdef HAVE_COMPLEX_H
21992 #include <complex.h>
21993 #endif
21994 #ifdef HAVE_MATH_H
21995 #include <math.h>
21996 #endif
21998 int (*ptr)() = (int (*)())sinh;
22001 main ()
22003 return 0;
22006 _ACEOF
22007 if ac_fn_c_try_link "$LINENO"; then :
22008 gcc_cv_math_func_sinh=yes
22009 else
22010 gcc_cv_math_func_sinh=no
22012 rm -f core conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22016 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22017 if test $gcc_cv_math_func_sinh = yes; then
22019 cat >>confdefs.h <<_ACEOF
22020 #define HAVE_SINH 1
22021 _ACEOF
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22029 $as_echo_n "checking for sinhl... " >&6; }
22030 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22032 else
22033 if test x$gcc_no_link = xyes; then
22034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22037 /* end confdefs.h. */
22039 #ifdef HAVE_COMPLEX_H
22040 #include <complex.h>
22041 #endif
22042 #ifdef HAVE_MATH_H
22043 #include <math.h>
22044 #endif
22046 int (*ptr)() = (int (*)())sinhl;
22049 main ()
22051 return 0;
22054 _ACEOF
22055 if ac_fn_c_try_link "$LINENO"; then :
22056 gcc_cv_math_func_sinhl=yes
22057 else
22058 gcc_cv_math_func_sinhl=no
22060 rm -f core conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22064 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22065 if test $gcc_cv_math_func_sinhl = yes; then
22067 cat >>confdefs.h <<_ACEOF
22068 #define HAVE_SINHL 1
22069 _ACEOF
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22077 $as_echo_n "checking for csinhf... " >&6; }
22078 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22079 $as_echo_n "(cached) " >&6
22080 else
22081 if test x$gcc_no_link = xyes; then
22082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22087 #ifdef HAVE_COMPLEX_H
22088 #include <complex.h>
22089 #endif
22090 #ifdef HAVE_MATH_H
22091 #include <math.h>
22092 #endif
22094 int (*ptr)() = (int (*)())csinhf;
22097 main ()
22099 return 0;
22102 _ACEOF
22103 if ac_fn_c_try_link "$LINENO"; then :
22104 gcc_cv_math_func_csinhf=yes
22105 else
22106 gcc_cv_math_func_csinhf=no
22108 rm -f core conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22112 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22113 if test $gcc_cv_math_func_csinhf = yes; then
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_CSINHF 1
22117 _ACEOF
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22125 $as_echo_n "checking for csinh... " >&6; }
22126 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 if test x$gcc_no_link = xyes; then
22130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22133 /* end confdefs.h. */
22135 #ifdef HAVE_COMPLEX_H
22136 #include <complex.h>
22137 #endif
22138 #ifdef HAVE_MATH_H
22139 #include <math.h>
22140 #endif
22142 int (*ptr)() = (int (*)())csinh;
22145 main ()
22147 return 0;
22150 _ACEOF
22151 if ac_fn_c_try_link "$LINENO"; then :
22152 gcc_cv_math_func_csinh=yes
22153 else
22154 gcc_cv_math_func_csinh=no
22156 rm -f core conftest.err conftest.$ac_objext \
22157 conftest$ac_exeext conftest.$ac_ext
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22160 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22161 if test $gcc_cv_math_func_csinh = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_CSINH 1
22165 _ACEOF
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22173 $as_echo_n "checking for csinhl... " >&6; }
22174 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22177 if test x$gcc_no_link = xyes; then
22178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22183 #ifdef HAVE_COMPLEX_H
22184 #include <complex.h>
22185 #endif
22186 #ifdef HAVE_MATH_H
22187 #include <math.h>
22188 #endif
22190 int (*ptr)() = (int (*)())csinhl;
22193 main ()
22195 return 0;
22198 _ACEOF
22199 if ac_fn_c_try_link "$LINENO"; then :
22200 gcc_cv_math_func_csinhl=yes
22201 else
22202 gcc_cv_math_func_csinhl=no
22204 rm -f core conftest.err conftest.$ac_objext \
22205 conftest$ac_exeext conftest.$ac_ext
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22208 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22209 if test $gcc_cv_math_func_csinhl = yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define HAVE_CSINHL 1
22213 _ACEOF
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22221 $as_echo_n "checking for sqrtf... " >&6; }
22222 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22223 $as_echo_n "(cached) " >&6
22224 else
22225 if test x$gcc_no_link = xyes; then
22226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h. */
22231 #ifdef HAVE_COMPLEX_H
22232 #include <complex.h>
22233 #endif
22234 #ifdef HAVE_MATH_H
22235 #include <math.h>
22236 #endif
22238 int (*ptr)() = (int (*)())sqrtf;
22241 main ()
22243 return 0;
22246 _ACEOF
22247 if ac_fn_c_try_link "$LINENO"; then :
22248 gcc_cv_math_func_sqrtf=yes
22249 else
22250 gcc_cv_math_func_sqrtf=no
22252 rm -f core conftest.err conftest.$ac_objext \
22253 conftest$ac_exeext conftest.$ac_ext
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22256 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22257 if test $gcc_cv_math_func_sqrtf = yes; then
22259 cat >>confdefs.h <<_ACEOF
22260 #define HAVE_SQRTF 1
22261 _ACEOF
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22269 $as_echo_n "checking for sqrt... " >&6; }
22270 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22272 else
22273 if test x$gcc_no_link = xyes; then
22274 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22279 #ifdef HAVE_COMPLEX_H
22280 #include <complex.h>
22281 #endif
22282 #ifdef HAVE_MATH_H
22283 #include <math.h>
22284 #endif
22286 int (*ptr)() = (int (*)())sqrt;
22289 main ()
22291 return 0;
22294 _ACEOF
22295 if ac_fn_c_try_link "$LINENO"; then :
22296 gcc_cv_math_func_sqrt=yes
22297 else
22298 gcc_cv_math_func_sqrt=no
22300 rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22304 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22305 if test $gcc_cv_math_func_sqrt = yes; then
22307 cat >>confdefs.h <<_ACEOF
22308 #define HAVE_SQRT 1
22309 _ACEOF
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22317 $as_echo_n "checking for sqrtl... " >&6; }
22318 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22319 $as_echo_n "(cached) " >&6
22320 else
22321 if test x$gcc_no_link = xyes; then
22322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22327 #ifdef HAVE_COMPLEX_H
22328 #include <complex.h>
22329 #endif
22330 #ifdef HAVE_MATH_H
22331 #include <math.h>
22332 #endif
22334 int (*ptr)() = (int (*)())sqrtl;
22337 main ()
22339 return 0;
22342 _ACEOF
22343 if ac_fn_c_try_link "$LINENO"; then :
22344 gcc_cv_math_func_sqrtl=yes
22345 else
22346 gcc_cv_math_func_sqrtl=no
22348 rm -f core conftest.err conftest.$ac_objext \
22349 conftest$ac_exeext conftest.$ac_ext
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22352 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22353 if test $gcc_cv_math_func_sqrtl = yes; then
22355 cat >>confdefs.h <<_ACEOF
22356 #define HAVE_SQRTL 1
22357 _ACEOF
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22365 $as_echo_n "checking for csqrtf... " >&6; }
22366 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 if test x$gcc_no_link = xyes; then
22370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22373 /* end confdefs.h. */
22375 #ifdef HAVE_COMPLEX_H
22376 #include <complex.h>
22377 #endif
22378 #ifdef HAVE_MATH_H
22379 #include <math.h>
22380 #endif
22382 int (*ptr)() = (int (*)())csqrtf;
22385 main ()
22387 return 0;
22390 _ACEOF
22391 if ac_fn_c_try_link "$LINENO"; then :
22392 gcc_cv_math_func_csqrtf=yes
22393 else
22394 gcc_cv_math_func_csqrtf=no
22396 rm -f core conftest.err conftest.$ac_objext \
22397 conftest$ac_exeext conftest.$ac_ext
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22400 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22401 if test $gcc_cv_math_func_csqrtf = yes; then
22403 cat >>confdefs.h <<_ACEOF
22404 #define HAVE_CSQRTF 1
22405 _ACEOF
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22413 $as_echo_n "checking for csqrt... " >&6; }
22414 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22415 $as_echo_n "(cached) " >&6
22416 else
22417 if test x$gcc_no_link = xyes; then
22418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22423 #ifdef HAVE_COMPLEX_H
22424 #include <complex.h>
22425 #endif
22426 #ifdef HAVE_MATH_H
22427 #include <math.h>
22428 #endif
22430 int (*ptr)() = (int (*)())csqrt;
22433 main ()
22435 return 0;
22438 _ACEOF
22439 if ac_fn_c_try_link "$LINENO"; then :
22440 gcc_cv_math_func_csqrt=yes
22441 else
22442 gcc_cv_math_func_csqrt=no
22444 rm -f core conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22448 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22449 if test $gcc_cv_math_func_csqrt = yes; then
22451 cat >>confdefs.h <<_ACEOF
22452 #define HAVE_CSQRT 1
22453 _ACEOF
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22461 $as_echo_n "checking for csqrtl... " >&6; }
22462 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22463 $as_echo_n "(cached) " >&6
22464 else
22465 if test x$gcc_no_link = xyes; then
22466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22471 #ifdef HAVE_COMPLEX_H
22472 #include <complex.h>
22473 #endif
22474 #ifdef HAVE_MATH_H
22475 #include <math.h>
22476 #endif
22478 int (*ptr)() = (int (*)())csqrtl;
22481 main ()
22483 return 0;
22486 _ACEOF
22487 if ac_fn_c_try_link "$LINENO"; then :
22488 gcc_cv_math_func_csqrtl=yes
22489 else
22490 gcc_cv_math_func_csqrtl=no
22492 rm -f core conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22496 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22497 if test $gcc_cv_math_func_csqrtl = yes; then
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_CSQRTL 1
22501 _ACEOF
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22509 $as_echo_n "checking for tanf... " >&6; }
22510 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 if test x$gcc_no_link = xyes; then
22514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h. */
22519 #ifdef HAVE_COMPLEX_H
22520 #include <complex.h>
22521 #endif
22522 #ifdef HAVE_MATH_H
22523 #include <math.h>
22524 #endif
22526 int (*ptr)() = (int (*)())tanf;
22529 main ()
22531 return 0;
22534 _ACEOF
22535 if ac_fn_c_try_link "$LINENO"; then :
22536 gcc_cv_math_func_tanf=yes
22537 else
22538 gcc_cv_math_func_tanf=no
22540 rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22544 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22545 if test $gcc_cv_math_func_tanf = yes; then
22547 cat >>confdefs.h <<_ACEOF
22548 #define HAVE_TANF 1
22549 _ACEOF
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22557 $as_echo_n "checking for tan... " >&6; }
22558 if test "${gcc_cv_math_func_tan+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22560 else
22561 if test x$gcc_no_link = xyes; then
22562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22565 /* end confdefs.h. */
22567 #ifdef HAVE_COMPLEX_H
22568 #include <complex.h>
22569 #endif
22570 #ifdef HAVE_MATH_H
22571 #include <math.h>
22572 #endif
22574 int (*ptr)() = (int (*)())tan;
22577 main ()
22579 return 0;
22582 _ACEOF
22583 if ac_fn_c_try_link "$LINENO"; then :
22584 gcc_cv_math_func_tan=yes
22585 else
22586 gcc_cv_math_func_tan=no
22588 rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext conftest.$ac_ext
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22592 $as_echo "$gcc_cv_math_func_tan" >&6; }
22593 if test $gcc_cv_math_func_tan = yes; then
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_TAN 1
22597 _ACEOF
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22605 $as_echo_n "checking for tanl... " >&6; }
22606 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 if test x$gcc_no_link = xyes; then
22610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h. */
22615 #ifdef HAVE_COMPLEX_H
22616 #include <complex.h>
22617 #endif
22618 #ifdef HAVE_MATH_H
22619 #include <math.h>
22620 #endif
22622 int (*ptr)() = (int (*)())tanl;
22625 main ()
22627 return 0;
22630 _ACEOF
22631 if ac_fn_c_try_link "$LINENO"; then :
22632 gcc_cv_math_func_tanl=yes
22633 else
22634 gcc_cv_math_func_tanl=no
22636 rm -f core conftest.err conftest.$ac_objext \
22637 conftest$ac_exeext conftest.$ac_ext
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22640 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22641 if test $gcc_cv_math_func_tanl = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_TANL 1
22645 _ACEOF
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22653 $as_echo_n "checking for ctanf... " >&6; }
22654 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 if test x$gcc_no_link = xyes; then
22658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661 /* end confdefs.h. */
22663 #ifdef HAVE_COMPLEX_H
22664 #include <complex.h>
22665 #endif
22666 #ifdef HAVE_MATH_H
22667 #include <math.h>
22668 #endif
22670 int (*ptr)() = (int (*)())ctanf;
22673 main ()
22675 return 0;
22678 _ACEOF
22679 if ac_fn_c_try_link "$LINENO"; then :
22680 gcc_cv_math_func_ctanf=yes
22681 else
22682 gcc_cv_math_func_ctanf=no
22684 rm -f core conftest.err conftest.$ac_objext \
22685 conftest$ac_exeext conftest.$ac_ext
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22688 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22689 if test $gcc_cv_math_func_ctanf = yes; then
22691 cat >>confdefs.h <<_ACEOF
22692 #define HAVE_CTANF 1
22693 _ACEOF
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22701 $as_echo_n "checking for ctan... " >&6; }
22702 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22704 else
22705 if test x$gcc_no_link = xyes; then
22706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22709 /* end confdefs.h. */
22711 #ifdef HAVE_COMPLEX_H
22712 #include <complex.h>
22713 #endif
22714 #ifdef HAVE_MATH_H
22715 #include <math.h>
22716 #endif
22718 int (*ptr)() = (int (*)())ctan;
22721 main ()
22723 return 0;
22726 _ACEOF
22727 if ac_fn_c_try_link "$LINENO"; then :
22728 gcc_cv_math_func_ctan=yes
22729 else
22730 gcc_cv_math_func_ctan=no
22732 rm -f core conftest.err conftest.$ac_objext \
22733 conftest$ac_exeext conftest.$ac_ext
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22736 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22737 if test $gcc_cv_math_func_ctan = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define HAVE_CTAN 1
22741 _ACEOF
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22749 $as_echo_n "checking for ctanl... " >&6; }
22750 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22751 $as_echo_n "(cached) " >&6
22752 else
22753 if test x$gcc_no_link = xyes; then
22754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757 /* end confdefs.h. */
22759 #ifdef HAVE_COMPLEX_H
22760 #include <complex.h>
22761 #endif
22762 #ifdef HAVE_MATH_H
22763 #include <math.h>
22764 #endif
22766 int (*ptr)() = (int (*)())ctanl;
22769 main ()
22771 return 0;
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776 gcc_cv_math_func_ctanl=yes
22777 else
22778 gcc_cv_math_func_ctanl=no
22780 rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22784 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22785 if test $gcc_cv_math_func_ctanl = yes; then
22787 cat >>confdefs.h <<_ACEOF
22788 #define HAVE_CTANL 1
22789 _ACEOF
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22797 $as_echo_n "checking for tanhf... " >&6; }
22798 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22800 else
22801 if test x$gcc_no_link = xyes; then
22802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805 /* end confdefs.h. */
22807 #ifdef HAVE_COMPLEX_H
22808 #include <complex.h>
22809 #endif
22810 #ifdef HAVE_MATH_H
22811 #include <math.h>
22812 #endif
22814 int (*ptr)() = (int (*)())tanhf;
22817 main ()
22819 return 0;
22822 _ACEOF
22823 if ac_fn_c_try_link "$LINENO"; then :
22824 gcc_cv_math_func_tanhf=yes
22825 else
22826 gcc_cv_math_func_tanhf=no
22828 rm -f core conftest.err conftest.$ac_objext \
22829 conftest$ac_exeext conftest.$ac_ext
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22832 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22833 if test $gcc_cv_math_func_tanhf = yes; then
22835 cat >>confdefs.h <<_ACEOF
22836 #define HAVE_TANHF 1
22837 _ACEOF
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22845 $as_echo_n "checking for tanh... " >&6; }
22846 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22847 $as_echo_n "(cached) " >&6
22848 else
22849 if test x$gcc_no_link = xyes; then
22850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22853 /* end confdefs.h. */
22855 #ifdef HAVE_COMPLEX_H
22856 #include <complex.h>
22857 #endif
22858 #ifdef HAVE_MATH_H
22859 #include <math.h>
22860 #endif
22862 int (*ptr)() = (int (*)())tanh;
22865 main ()
22867 return 0;
22870 _ACEOF
22871 if ac_fn_c_try_link "$LINENO"; then :
22872 gcc_cv_math_func_tanh=yes
22873 else
22874 gcc_cv_math_func_tanh=no
22876 rm -f core conftest.err conftest.$ac_objext \
22877 conftest$ac_exeext conftest.$ac_ext
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22880 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22881 if test $gcc_cv_math_func_tanh = yes; then
22883 cat >>confdefs.h <<_ACEOF
22884 #define HAVE_TANH 1
22885 _ACEOF
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22893 $as_echo_n "checking for tanhl... " >&6; }
22894 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 if test x$gcc_no_link = xyes; then
22898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22901 /* end confdefs.h. */
22903 #ifdef HAVE_COMPLEX_H
22904 #include <complex.h>
22905 #endif
22906 #ifdef HAVE_MATH_H
22907 #include <math.h>
22908 #endif
22910 int (*ptr)() = (int (*)())tanhl;
22913 main ()
22915 return 0;
22918 _ACEOF
22919 if ac_fn_c_try_link "$LINENO"; then :
22920 gcc_cv_math_func_tanhl=yes
22921 else
22922 gcc_cv_math_func_tanhl=no
22924 rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22928 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22929 if test $gcc_cv_math_func_tanhl = yes; then
22931 cat >>confdefs.h <<_ACEOF
22932 #define HAVE_TANHL 1
22933 _ACEOF
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22941 $as_echo_n "checking for ctanhf... " >&6; }
22942 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 if test x$gcc_no_link = xyes; then
22946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949 /* end confdefs.h. */
22951 #ifdef HAVE_COMPLEX_H
22952 #include <complex.h>
22953 #endif
22954 #ifdef HAVE_MATH_H
22955 #include <math.h>
22956 #endif
22958 int (*ptr)() = (int (*)())ctanhf;
22961 main ()
22963 return 0;
22966 _ACEOF
22967 if ac_fn_c_try_link "$LINENO"; then :
22968 gcc_cv_math_func_ctanhf=yes
22969 else
22970 gcc_cv_math_func_ctanhf=no
22972 rm -f core conftest.err conftest.$ac_objext \
22973 conftest$ac_exeext conftest.$ac_ext
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22976 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22977 if test $gcc_cv_math_func_ctanhf = yes; then
22979 cat >>confdefs.h <<_ACEOF
22980 #define HAVE_CTANHF 1
22981 _ACEOF
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22989 $as_echo_n "checking for ctanh... " >&6; }
22990 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 if test x$gcc_no_link = xyes; then
22994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22997 /* end confdefs.h. */
22999 #ifdef HAVE_COMPLEX_H
23000 #include <complex.h>
23001 #endif
23002 #ifdef HAVE_MATH_H
23003 #include <math.h>
23004 #endif
23006 int (*ptr)() = (int (*)())ctanh;
23009 main ()
23011 return 0;
23014 _ACEOF
23015 if ac_fn_c_try_link "$LINENO"; then :
23016 gcc_cv_math_func_ctanh=yes
23017 else
23018 gcc_cv_math_func_ctanh=no
23020 rm -f core conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23024 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23025 if test $gcc_cv_math_func_ctanh = yes; then
23027 cat >>confdefs.h <<_ACEOF
23028 #define HAVE_CTANH 1
23029 _ACEOF
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23037 $as_echo_n "checking for ctanhl... " >&6; }
23038 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23039 $as_echo_n "(cached) " >&6
23040 else
23041 if test x$gcc_no_link = xyes; then
23042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23047 #ifdef HAVE_COMPLEX_H
23048 #include <complex.h>
23049 #endif
23050 #ifdef HAVE_MATH_H
23051 #include <math.h>
23052 #endif
23054 int (*ptr)() = (int (*)())ctanhl;
23057 main ()
23059 return 0;
23062 _ACEOF
23063 if ac_fn_c_try_link "$LINENO"; then :
23064 gcc_cv_math_func_ctanhl=yes
23065 else
23066 gcc_cv_math_func_ctanhl=no
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23072 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23073 if test $gcc_cv_math_func_ctanhl = yes; then
23075 cat >>confdefs.h <<_ACEOF
23076 #define HAVE_CTANHL 1
23077 _ACEOF
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23085 $as_echo_n "checking for truncf... " >&6; }
23086 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23087 $as_echo_n "(cached) " >&6
23088 else
23089 if test x$gcc_no_link = xyes; then
23090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23093 /* end confdefs.h. */
23095 #ifdef HAVE_COMPLEX_H
23096 #include <complex.h>
23097 #endif
23098 #ifdef HAVE_MATH_H
23099 #include <math.h>
23100 #endif
23102 int (*ptr)() = (int (*)())truncf;
23105 main ()
23107 return 0;
23110 _ACEOF
23111 if ac_fn_c_try_link "$LINENO"; then :
23112 gcc_cv_math_func_truncf=yes
23113 else
23114 gcc_cv_math_func_truncf=no
23116 rm -f core conftest.err conftest.$ac_objext \
23117 conftest$ac_exeext conftest.$ac_ext
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23120 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23121 if test $gcc_cv_math_func_truncf = yes; then
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_TRUNCF 1
23125 _ACEOF
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23133 $as_echo_n "checking for trunc... " >&6; }
23134 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23135 $as_echo_n "(cached) " >&6
23136 else
23137 if test x$gcc_no_link = xyes; then
23138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23143 #ifdef HAVE_COMPLEX_H
23144 #include <complex.h>
23145 #endif
23146 #ifdef HAVE_MATH_H
23147 #include <math.h>
23148 #endif
23150 int (*ptr)() = (int (*)())trunc;
23153 main ()
23155 return 0;
23158 _ACEOF
23159 if ac_fn_c_try_link "$LINENO"; then :
23160 gcc_cv_math_func_trunc=yes
23161 else
23162 gcc_cv_math_func_trunc=no
23164 rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23168 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23169 if test $gcc_cv_math_func_trunc = yes; then
23171 cat >>confdefs.h <<_ACEOF
23172 #define HAVE_TRUNC 1
23173 _ACEOF
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23181 $as_echo_n "checking for truncl... " >&6; }
23182 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23184 else
23185 if test x$gcc_no_link = xyes; then
23186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23189 /* end confdefs.h. */
23191 #ifdef HAVE_COMPLEX_H
23192 #include <complex.h>
23193 #endif
23194 #ifdef HAVE_MATH_H
23195 #include <math.h>
23196 #endif
23198 int (*ptr)() = (int (*)())truncl;
23201 main ()
23203 return 0;
23206 _ACEOF
23207 if ac_fn_c_try_link "$LINENO"; then :
23208 gcc_cv_math_func_truncl=yes
23209 else
23210 gcc_cv_math_func_truncl=no
23212 rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23216 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23217 if test $gcc_cv_math_func_truncl = yes; then
23219 cat >>confdefs.h <<_ACEOF
23220 #define HAVE_TRUNCL 1
23221 _ACEOF
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23229 $as_echo_n "checking for erff... " >&6; }
23230 if test "${gcc_cv_math_func_erff+set}" = set; then :
23231 $as_echo_n "(cached) " >&6
23232 else
23233 if test x$gcc_no_link = xyes; then
23234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23237 /* end confdefs.h. */
23239 #ifdef HAVE_COMPLEX_H
23240 #include <complex.h>
23241 #endif
23242 #ifdef HAVE_MATH_H
23243 #include <math.h>
23244 #endif
23246 int (*ptr)() = (int (*)())erff;
23249 main ()
23251 return 0;
23254 _ACEOF
23255 if ac_fn_c_try_link "$LINENO"; then :
23256 gcc_cv_math_func_erff=yes
23257 else
23258 gcc_cv_math_func_erff=no
23260 rm -f core conftest.err conftest.$ac_objext \
23261 conftest$ac_exeext conftest.$ac_ext
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23264 $as_echo "$gcc_cv_math_func_erff" >&6; }
23265 if test $gcc_cv_math_func_erff = yes; then
23267 cat >>confdefs.h <<_ACEOF
23268 #define HAVE_ERFF 1
23269 _ACEOF
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23277 $as_echo_n "checking for erf... " >&6; }
23278 if test "${gcc_cv_math_func_erf+set}" = set; then :
23279 $as_echo_n "(cached) " >&6
23280 else
23281 if test x$gcc_no_link = xyes; then
23282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23285 /* end confdefs.h. */
23287 #ifdef HAVE_COMPLEX_H
23288 #include <complex.h>
23289 #endif
23290 #ifdef HAVE_MATH_H
23291 #include <math.h>
23292 #endif
23294 int (*ptr)() = (int (*)())erf;
23297 main ()
23299 return 0;
23302 _ACEOF
23303 if ac_fn_c_try_link "$LINENO"; then :
23304 gcc_cv_math_func_erf=yes
23305 else
23306 gcc_cv_math_func_erf=no
23308 rm -f core conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23312 $as_echo "$gcc_cv_math_func_erf" >&6; }
23313 if test $gcc_cv_math_func_erf = yes; then
23315 cat >>confdefs.h <<_ACEOF
23316 #define HAVE_ERF 1
23317 _ACEOF
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23325 $as_echo_n "checking for erfcf... " >&6; }
23326 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23327 $as_echo_n "(cached) " >&6
23328 else
23329 if test x$gcc_no_link = xyes; then
23330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23333 /* end confdefs.h. */
23335 #ifdef HAVE_COMPLEX_H
23336 #include <complex.h>
23337 #endif
23338 #ifdef HAVE_MATH_H
23339 #include <math.h>
23340 #endif
23342 int (*ptr)() = (int (*)())erfcf;
23345 main ()
23347 return 0;
23350 _ACEOF
23351 if ac_fn_c_try_link "$LINENO"; then :
23352 gcc_cv_math_func_erfcf=yes
23353 else
23354 gcc_cv_math_func_erfcf=no
23356 rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23360 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23361 if test $gcc_cv_math_func_erfcf = yes; then
23363 cat >>confdefs.h <<_ACEOF
23364 #define HAVE_ERFCF 1
23365 _ACEOF
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23373 $as_echo_n "checking for erfc... " >&6; }
23374 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23375 $as_echo_n "(cached) " >&6
23376 else
23377 if test x$gcc_no_link = xyes; then
23378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h. */
23383 #ifdef HAVE_COMPLEX_H
23384 #include <complex.h>
23385 #endif
23386 #ifdef HAVE_MATH_H
23387 #include <math.h>
23388 #endif
23390 int (*ptr)() = (int (*)())erfc;
23393 main ()
23395 return 0;
23398 _ACEOF
23399 if ac_fn_c_try_link "$LINENO"; then :
23400 gcc_cv_math_func_erfc=yes
23401 else
23402 gcc_cv_math_func_erfc=no
23404 rm -f core conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23408 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23409 if test $gcc_cv_math_func_erfc = yes; then
23411 cat >>confdefs.h <<_ACEOF
23412 #define HAVE_ERFC 1
23413 _ACEOF
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23421 $as_echo_n "checking for erfcl... " >&6; }
23422 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23423 $as_echo_n "(cached) " >&6
23424 else
23425 if test x$gcc_no_link = xyes; then
23426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23431 #ifdef HAVE_COMPLEX_H
23432 #include <complex.h>
23433 #endif
23434 #ifdef HAVE_MATH_H
23435 #include <math.h>
23436 #endif
23438 int (*ptr)() = (int (*)())erfcl;
23441 main ()
23443 return 0;
23446 _ACEOF
23447 if ac_fn_c_try_link "$LINENO"; then :
23448 gcc_cv_math_func_erfcl=yes
23449 else
23450 gcc_cv_math_func_erfcl=no
23452 rm -f core conftest.err conftest.$ac_objext \
23453 conftest$ac_exeext conftest.$ac_ext
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23456 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23457 if test $gcc_cv_math_func_erfcl = yes; then
23459 cat >>confdefs.h <<_ACEOF
23460 #define HAVE_ERFCL 1
23461 _ACEOF
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23469 $as_echo_n "checking for j0f... " >&6; }
23470 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23471 $as_echo_n "(cached) " >&6
23472 else
23473 if test x$gcc_no_link = xyes; then
23474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23477 /* end confdefs.h. */
23479 #ifdef HAVE_COMPLEX_H
23480 #include <complex.h>
23481 #endif
23482 #ifdef HAVE_MATH_H
23483 #include <math.h>
23484 #endif
23486 int (*ptr)() = (int (*)())j0f;
23489 main ()
23491 return 0;
23494 _ACEOF
23495 if ac_fn_c_try_link "$LINENO"; then :
23496 gcc_cv_math_func_j0f=yes
23497 else
23498 gcc_cv_math_func_j0f=no
23500 rm -f core conftest.err conftest.$ac_objext \
23501 conftest$ac_exeext conftest.$ac_ext
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23504 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23505 if test $gcc_cv_math_func_j0f = yes; then
23507 cat >>confdefs.h <<_ACEOF
23508 #define HAVE_J0F 1
23509 _ACEOF
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23517 $as_echo_n "checking for j0... " >&6; }
23518 if test "${gcc_cv_math_func_j0+set}" = set; then :
23519 $as_echo_n "(cached) " >&6
23520 else
23521 if test x$gcc_no_link = xyes; then
23522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23527 #ifdef HAVE_COMPLEX_H
23528 #include <complex.h>
23529 #endif
23530 #ifdef HAVE_MATH_H
23531 #include <math.h>
23532 #endif
23534 int (*ptr)() = (int (*)())j0;
23537 main ()
23539 return 0;
23542 _ACEOF
23543 if ac_fn_c_try_link "$LINENO"; then :
23544 gcc_cv_math_func_j0=yes
23545 else
23546 gcc_cv_math_func_j0=no
23548 rm -f core conftest.err conftest.$ac_objext \
23549 conftest$ac_exeext conftest.$ac_ext
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23552 $as_echo "$gcc_cv_math_func_j0" >&6; }
23553 if test $gcc_cv_math_func_j0 = yes; then
23555 cat >>confdefs.h <<_ACEOF
23556 #define HAVE_J0 1
23557 _ACEOF
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23565 $as_echo_n "checking for j1f... " >&6; }
23566 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23567 $as_echo_n "(cached) " >&6
23568 else
23569 if test x$gcc_no_link = xyes; then
23570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23573 /* end confdefs.h. */
23575 #ifdef HAVE_COMPLEX_H
23576 #include <complex.h>
23577 #endif
23578 #ifdef HAVE_MATH_H
23579 #include <math.h>
23580 #endif
23582 int (*ptr)() = (int (*)())j1f;
23585 main ()
23587 return 0;
23590 _ACEOF
23591 if ac_fn_c_try_link "$LINENO"; then :
23592 gcc_cv_math_func_j1f=yes
23593 else
23594 gcc_cv_math_func_j1f=no
23596 rm -f core conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23600 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23601 if test $gcc_cv_math_func_j1f = yes; then
23603 cat >>confdefs.h <<_ACEOF
23604 #define HAVE_J1F 1
23605 _ACEOF
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23613 $as_echo_n "checking for j1... " >&6; }
23614 if test "${gcc_cv_math_func_j1+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 if test x$gcc_no_link = xyes; then
23618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23621 /* end confdefs.h. */
23623 #ifdef HAVE_COMPLEX_H
23624 #include <complex.h>
23625 #endif
23626 #ifdef HAVE_MATH_H
23627 #include <math.h>
23628 #endif
23630 int (*ptr)() = (int (*)())j1;
23633 main ()
23635 return 0;
23638 _ACEOF
23639 if ac_fn_c_try_link "$LINENO"; then :
23640 gcc_cv_math_func_j1=yes
23641 else
23642 gcc_cv_math_func_j1=no
23644 rm -f core conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23648 $as_echo "$gcc_cv_math_func_j1" >&6; }
23649 if test $gcc_cv_math_func_j1 = yes; then
23651 cat >>confdefs.h <<_ACEOF
23652 #define HAVE_J1 1
23653 _ACEOF
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23661 $as_echo_n "checking for jnf... " >&6; }
23662 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23664 else
23665 if test x$gcc_no_link = xyes; then
23666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669 /* end confdefs.h. */
23671 #ifdef HAVE_COMPLEX_H
23672 #include <complex.h>
23673 #endif
23674 #ifdef HAVE_MATH_H
23675 #include <math.h>
23676 #endif
23678 int (*ptr)() = (int (*)())jnf;
23681 main ()
23683 return 0;
23686 _ACEOF
23687 if ac_fn_c_try_link "$LINENO"; then :
23688 gcc_cv_math_func_jnf=yes
23689 else
23690 gcc_cv_math_func_jnf=no
23692 rm -f core conftest.err conftest.$ac_objext \
23693 conftest$ac_exeext conftest.$ac_ext
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23696 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23697 if test $gcc_cv_math_func_jnf = yes; then
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_JNF 1
23701 _ACEOF
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23709 $as_echo_n "checking for jn... " >&6; }
23710 if test "${gcc_cv_math_func_jn+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23712 else
23713 if test x$gcc_no_link = xyes; then
23714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h. */
23719 #ifdef HAVE_COMPLEX_H
23720 #include <complex.h>
23721 #endif
23722 #ifdef HAVE_MATH_H
23723 #include <math.h>
23724 #endif
23726 int (*ptr)() = (int (*)())jn;
23729 main ()
23731 return 0;
23734 _ACEOF
23735 if ac_fn_c_try_link "$LINENO"; then :
23736 gcc_cv_math_func_jn=yes
23737 else
23738 gcc_cv_math_func_jn=no
23740 rm -f core conftest.err conftest.$ac_objext \
23741 conftest$ac_exeext conftest.$ac_ext
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23744 $as_echo "$gcc_cv_math_func_jn" >&6; }
23745 if test $gcc_cv_math_func_jn = yes; then
23747 cat >>confdefs.h <<_ACEOF
23748 #define HAVE_JN 1
23749 _ACEOF
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23757 $as_echo_n "checking for jnl... " >&6; }
23758 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23760 else
23761 if test x$gcc_no_link = xyes; then
23762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765 /* end confdefs.h. */
23767 #ifdef HAVE_COMPLEX_H
23768 #include <complex.h>
23769 #endif
23770 #ifdef HAVE_MATH_H
23771 #include <math.h>
23772 #endif
23774 int (*ptr)() = (int (*)())jnl;
23777 main ()
23779 return 0;
23782 _ACEOF
23783 if ac_fn_c_try_link "$LINENO"; then :
23784 gcc_cv_math_func_jnl=yes
23785 else
23786 gcc_cv_math_func_jnl=no
23788 rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23792 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23793 if test $gcc_cv_math_func_jnl = yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_JNL 1
23797 _ACEOF
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23805 $as_echo_n "checking for y0f... " >&6; }
23806 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23807 $as_echo_n "(cached) " >&6
23808 else
23809 if test x$gcc_no_link = xyes; then
23810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23813 /* end confdefs.h. */
23815 #ifdef HAVE_COMPLEX_H
23816 #include <complex.h>
23817 #endif
23818 #ifdef HAVE_MATH_H
23819 #include <math.h>
23820 #endif
23822 int (*ptr)() = (int (*)())y0f;
23825 main ()
23827 return 0;
23830 _ACEOF
23831 if ac_fn_c_try_link "$LINENO"; then :
23832 gcc_cv_math_func_y0f=yes
23833 else
23834 gcc_cv_math_func_y0f=no
23836 rm -f core conftest.err conftest.$ac_objext \
23837 conftest$ac_exeext conftest.$ac_ext
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23840 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23841 if test $gcc_cv_math_func_y0f = yes; then
23843 cat >>confdefs.h <<_ACEOF
23844 #define HAVE_Y0F 1
23845 _ACEOF
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23853 $as_echo_n "checking for y0... " >&6; }
23854 if test "${gcc_cv_math_func_y0+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23856 else
23857 if test x$gcc_no_link = xyes; then
23858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23863 #ifdef HAVE_COMPLEX_H
23864 #include <complex.h>
23865 #endif
23866 #ifdef HAVE_MATH_H
23867 #include <math.h>
23868 #endif
23870 int (*ptr)() = (int (*)())y0;
23873 main ()
23875 return 0;
23878 _ACEOF
23879 if ac_fn_c_try_link "$LINENO"; then :
23880 gcc_cv_math_func_y0=yes
23881 else
23882 gcc_cv_math_func_y0=no
23884 rm -f core conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23888 $as_echo "$gcc_cv_math_func_y0" >&6; }
23889 if test $gcc_cv_math_func_y0 = yes; then
23891 cat >>confdefs.h <<_ACEOF
23892 #define HAVE_Y0 1
23893 _ACEOF
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23901 $as_echo_n "checking for y1f... " >&6; }
23902 if test "${gcc_cv_math_func_y1f+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 if test x$gcc_no_link = xyes; then
23906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h. */
23911 #ifdef HAVE_COMPLEX_H
23912 #include <complex.h>
23913 #endif
23914 #ifdef HAVE_MATH_H
23915 #include <math.h>
23916 #endif
23918 int (*ptr)() = (int (*)())y1f;
23921 main ()
23923 return 0;
23926 _ACEOF
23927 if ac_fn_c_try_link "$LINENO"; then :
23928 gcc_cv_math_func_y1f=yes
23929 else
23930 gcc_cv_math_func_y1f=no
23932 rm -f core conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23936 $as_echo "$gcc_cv_math_func_y1f" >&6; }
23937 if test $gcc_cv_math_func_y1f = yes; then
23939 cat >>confdefs.h <<_ACEOF
23940 #define HAVE_Y1F 1
23941 _ACEOF
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23949 $as_echo_n "checking for y1... " >&6; }
23950 if test "${gcc_cv_math_func_y1+set}" = set; then :
23951 $as_echo_n "(cached) " >&6
23952 else
23953 if test x$gcc_no_link = xyes; then
23954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23959 #ifdef HAVE_COMPLEX_H
23960 #include <complex.h>
23961 #endif
23962 #ifdef HAVE_MATH_H
23963 #include <math.h>
23964 #endif
23966 int (*ptr)() = (int (*)())y1;
23969 main ()
23971 return 0;
23974 _ACEOF
23975 if ac_fn_c_try_link "$LINENO"; then :
23976 gcc_cv_math_func_y1=yes
23977 else
23978 gcc_cv_math_func_y1=no
23980 rm -f core conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23984 $as_echo "$gcc_cv_math_func_y1" >&6; }
23985 if test $gcc_cv_math_func_y1 = yes; then
23987 cat >>confdefs.h <<_ACEOF
23988 #define HAVE_Y1 1
23989 _ACEOF
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23997 $as_echo_n "checking for ynf... " >&6; }
23998 if test "${gcc_cv_math_func_ynf+set}" = set; then :
23999 $as_echo_n "(cached) " >&6
24000 else
24001 if test x$gcc_no_link = xyes; then
24002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24005 /* end confdefs.h. */
24007 #ifdef HAVE_COMPLEX_H
24008 #include <complex.h>
24009 #endif
24010 #ifdef HAVE_MATH_H
24011 #include <math.h>
24012 #endif
24014 int (*ptr)() = (int (*)())ynf;
24017 main ()
24019 return 0;
24022 _ACEOF
24023 if ac_fn_c_try_link "$LINENO"; then :
24024 gcc_cv_math_func_ynf=yes
24025 else
24026 gcc_cv_math_func_ynf=no
24028 rm -f core conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24032 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24033 if test $gcc_cv_math_func_ynf = yes; then
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_YNF 1
24037 _ACEOF
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24045 $as_echo_n "checking for yn... " >&6; }
24046 if test "${gcc_cv_math_func_yn+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 if test x$gcc_no_link = xyes; then
24050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24053 /* end confdefs.h. */
24055 #ifdef HAVE_COMPLEX_H
24056 #include <complex.h>
24057 #endif
24058 #ifdef HAVE_MATH_H
24059 #include <math.h>
24060 #endif
24062 int (*ptr)() = (int (*)())yn;
24065 main ()
24067 return 0;
24070 _ACEOF
24071 if ac_fn_c_try_link "$LINENO"; then :
24072 gcc_cv_math_func_yn=yes
24073 else
24074 gcc_cv_math_func_yn=no
24076 rm -f core conftest.err conftest.$ac_objext \
24077 conftest$ac_exeext conftest.$ac_ext
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24080 $as_echo "$gcc_cv_math_func_yn" >&6; }
24081 if test $gcc_cv_math_func_yn = yes; then
24083 cat >>confdefs.h <<_ACEOF
24084 #define HAVE_YN 1
24085 _ACEOF
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24093 $as_echo_n "checking for ynl... " >&6; }
24094 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24095 $as_echo_n "(cached) " >&6
24096 else
24097 if test x$gcc_no_link = xyes; then
24098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h. */
24103 #ifdef HAVE_COMPLEX_H
24104 #include <complex.h>
24105 #endif
24106 #ifdef HAVE_MATH_H
24107 #include <math.h>
24108 #endif
24110 int (*ptr)() = (int (*)())ynl;
24113 main ()
24115 return 0;
24118 _ACEOF
24119 if ac_fn_c_try_link "$LINENO"; then :
24120 gcc_cv_math_func_ynl=yes
24121 else
24122 gcc_cv_math_func_ynl=no
24124 rm -f core conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24128 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24129 if test $gcc_cv_math_func_ynl = yes; then
24131 cat >>confdefs.h <<_ACEOF
24132 #define HAVE_YNL 1
24133 _ACEOF
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24141 $as_echo_n "checking for tgamma... " >&6; }
24142 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24143 $as_echo_n "(cached) " >&6
24144 else
24145 if test x$gcc_no_link = xyes; then
24146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24149 /* end confdefs.h. */
24151 #ifdef HAVE_COMPLEX_H
24152 #include <complex.h>
24153 #endif
24154 #ifdef HAVE_MATH_H
24155 #include <math.h>
24156 #endif
24158 int (*ptr)() = (int (*)())tgamma;
24161 main ()
24163 return 0;
24166 _ACEOF
24167 if ac_fn_c_try_link "$LINENO"; then :
24168 gcc_cv_math_func_tgamma=yes
24169 else
24170 gcc_cv_math_func_tgamma=no
24172 rm -f core conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24176 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24177 if test $gcc_cv_math_func_tgamma = yes; then
24179 cat >>confdefs.h <<_ACEOF
24180 #define HAVE_TGAMMA 1
24181 _ACEOF
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24189 $as_echo_n "checking for tgammaf... " >&6; }
24190 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 if test x$gcc_no_link = xyes; then
24194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24197 /* end confdefs.h. */
24199 #ifdef HAVE_COMPLEX_H
24200 #include <complex.h>
24201 #endif
24202 #ifdef HAVE_MATH_H
24203 #include <math.h>
24204 #endif
24206 int (*ptr)() = (int (*)())tgammaf;
24209 main ()
24211 return 0;
24214 _ACEOF
24215 if ac_fn_c_try_link "$LINENO"; then :
24216 gcc_cv_math_func_tgammaf=yes
24217 else
24218 gcc_cv_math_func_tgammaf=no
24220 rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24224 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24225 if test $gcc_cv_math_func_tgammaf = yes; then
24227 cat >>confdefs.h <<_ACEOF
24228 #define HAVE_TGAMMAF 1
24229 _ACEOF
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24237 $as_echo_n "checking for lgamma... " >&6; }
24238 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24239 $as_echo_n "(cached) " >&6
24240 else
24241 if test x$gcc_no_link = xyes; then
24242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h. */
24247 #ifdef HAVE_COMPLEX_H
24248 #include <complex.h>
24249 #endif
24250 #ifdef HAVE_MATH_H
24251 #include <math.h>
24252 #endif
24254 int (*ptr)() = (int (*)())lgamma;
24257 main ()
24259 return 0;
24262 _ACEOF
24263 if ac_fn_c_try_link "$LINENO"; then :
24264 gcc_cv_math_func_lgamma=yes
24265 else
24266 gcc_cv_math_func_lgamma=no
24268 rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24272 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24273 if test $gcc_cv_math_func_lgamma = yes; then
24275 cat >>confdefs.h <<_ACEOF
24276 #define HAVE_LGAMMA 1
24277 _ACEOF
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24285 $as_echo_n "checking for lgammaf... " >&6; }
24286 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24288 else
24289 if test x$gcc_no_link = xyes; then
24290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24295 #ifdef HAVE_COMPLEX_H
24296 #include <complex.h>
24297 #endif
24298 #ifdef HAVE_MATH_H
24299 #include <math.h>
24300 #endif
24302 int (*ptr)() = (int (*)())lgammaf;
24305 main ()
24307 return 0;
24310 _ACEOF
24311 if ac_fn_c_try_link "$LINENO"; then :
24312 gcc_cv_math_func_lgammaf=yes
24313 else
24314 gcc_cv_math_func_lgammaf=no
24316 rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24320 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24321 if test $gcc_cv_math_func_lgammaf = yes; then
24323 cat >>confdefs.h <<_ACEOF
24324 #define HAVE_LGAMMAF 1
24325 _ACEOF
24330 # Check for GFORTRAN_C99_1.1 funcs
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24335 $as_echo_n "checking for cacos... " >&6; }
24336 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24337 $as_echo_n "(cached) " >&6
24338 else
24339 if test x$gcc_no_link = xyes; then
24340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24345 #ifdef HAVE_COMPLEX_H
24346 #include <complex.h>
24347 #endif
24348 #ifdef HAVE_MATH_H
24349 #include <math.h>
24350 #endif
24352 int (*ptr)() = (int (*)())cacos;
24355 main ()
24357 return 0;
24360 _ACEOF
24361 if ac_fn_c_try_link "$LINENO"; then :
24362 gcc_cv_math_func_cacos=yes
24363 else
24364 gcc_cv_math_func_cacos=no
24366 rm -f core conftest.err conftest.$ac_objext \
24367 conftest$ac_exeext conftest.$ac_ext
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24370 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24371 if test $gcc_cv_math_func_cacos = yes; then
24373 cat >>confdefs.h <<_ACEOF
24374 #define HAVE_CACOS 1
24375 _ACEOF
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24383 $as_echo_n "checking for cacosf... " >&6; }
24384 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 if test x$gcc_no_link = xyes; then
24388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24391 /* end confdefs.h. */
24393 #ifdef HAVE_COMPLEX_H
24394 #include <complex.h>
24395 #endif
24396 #ifdef HAVE_MATH_H
24397 #include <math.h>
24398 #endif
24400 int (*ptr)() = (int (*)())cacosf;
24403 main ()
24405 return 0;
24408 _ACEOF
24409 if ac_fn_c_try_link "$LINENO"; then :
24410 gcc_cv_math_func_cacosf=yes
24411 else
24412 gcc_cv_math_func_cacosf=no
24414 rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24418 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24419 if test $gcc_cv_math_func_cacosf = yes; then
24421 cat >>confdefs.h <<_ACEOF
24422 #define HAVE_CACOSF 1
24423 _ACEOF
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24431 $as_echo_n "checking for cacosh... " >&6; }
24432 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24433 $as_echo_n "(cached) " >&6
24434 else
24435 if test x$gcc_no_link = xyes; then
24436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24439 /* end confdefs.h. */
24441 #ifdef HAVE_COMPLEX_H
24442 #include <complex.h>
24443 #endif
24444 #ifdef HAVE_MATH_H
24445 #include <math.h>
24446 #endif
24448 int (*ptr)() = (int (*)())cacosh;
24451 main ()
24453 return 0;
24456 _ACEOF
24457 if ac_fn_c_try_link "$LINENO"; then :
24458 gcc_cv_math_func_cacosh=yes
24459 else
24460 gcc_cv_math_func_cacosh=no
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24466 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24467 if test $gcc_cv_math_func_cacosh = yes; then
24469 cat >>confdefs.h <<_ACEOF
24470 #define HAVE_CACOSH 1
24471 _ACEOF
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24479 $as_echo_n "checking for cacoshf... " >&6; }
24480 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24482 else
24483 if test x$gcc_no_link = xyes; then
24484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487 /* end confdefs.h. */
24489 #ifdef HAVE_COMPLEX_H
24490 #include <complex.h>
24491 #endif
24492 #ifdef HAVE_MATH_H
24493 #include <math.h>
24494 #endif
24496 int (*ptr)() = (int (*)())cacoshf;
24499 main ()
24501 return 0;
24504 _ACEOF
24505 if ac_fn_c_try_link "$LINENO"; then :
24506 gcc_cv_math_func_cacoshf=yes
24507 else
24508 gcc_cv_math_func_cacoshf=no
24510 rm -f core conftest.err conftest.$ac_objext \
24511 conftest$ac_exeext conftest.$ac_ext
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24514 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24515 if test $gcc_cv_math_func_cacoshf = yes; then
24517 cat >>confdefs.h <<_ACEOF
24518 #define HAVE_CACOSHF 1
24519 _ACEOF
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24527 $as_echo_n "checking for cacoshl... " >&6; }
24528 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 if test x$gcc_no_link = xyes; then
24532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24537 #ifdef HAVE_COMPLEX_H
24538 #include <complex.h>
24539 #endif
24540 #ifdef HAVE_MATH_H
24541 #include <math.h>
24542 #endif
24544 int (*ptr)() = (int (*)())cacoshl;
24547 main ()
24549 return 0;
24552 _ACEOF
24553 if ac_fn_c_try_link "$LINENO"; then :
24554 gcc_cv_math_func_cacoshl=yes
24555 else
24556 gcc_cv_math_func_cacoshl=no
24558 rm -f core conftest.err conftest.$ac_objext \
24559 conftest$ac_exeext conftest.$ac_ext
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24562 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24563 if test $gcc_cv_math_func_cacoshl = yes; then
24565 cat >>confdefs.h <<_ACEOF
24566 #define HAVE_CACOSHL 1
24567 _ACEOF
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24575 $as_echo_n "checking for cacosl... " >&6; }
24576 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24578 else
24579 if test x$gcc_no_link = xyes; then
24580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583 /* end confdefs.h. */
24585 #ifdef HAVE_COMPLEX_H
24586 #include <complex.h>
24587 #endif
24588 #ifdef HAVE_MATH_H
24589 #include <math.h>
24590 #endif
24592 int (*ptr)() = (int (*)())cacosl;
24595 main ()
24597 return 0;
24600 _ACEOF
24601 if ac_fn_c_try_link "$LINENO"; then :
24602 gcc_cv_math_func_cacosl=yes
24603 else
24604 gcc_cv_math_func_cacosl=no
24606 rm -f core conftest.err conftest.$ac_objext \
24607 conftest$ac_exeext conftest.$ac_ext
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24610 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24611 if test $gcc_cv_math_func_cacosl = yes; then
24613 cat >>confdefs.h <<_ACEOF
24614 #define HAVE_CACOSL 1
24615 _ACEOF
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24623 $as_echo_n "checking for casin... " >&6; }
24624 if test "${gcc_cv_math_func_casin+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24626 else
24627 if test x$gcc_no_link = xyes; then
24628 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24631 /* end confdefs.h. */
24633 #ifdef HAVE_COMPLEX_H
24634 #include <complex.h>
24635 #endif
24636 #ifdef HAVE_MATH_H
24637 #include <math.h>
24638 #endif
24640 int (*ptr)() = (int (*)())casin;
24643 main ()
24645 return 0;
24648 _ACEOF
24649 if ac_fn_c_try_link "$LINENO"; then :
24650 gcc_cv_math_func_casin=yes
24651 else
24652 gcc_cv_math_func_casin=no
24654 rm -f core conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24658 $as_echo "$gcc_cv_math_func_casin" >&6; }
24659 if test $gcc_cv_math_func_casin = yes; then
24661 cat >>confdefs.h <<_ACEOF
24662 #define HAVE_CASIN 1
24663 _ACEOF
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24671 $as_echo_n "checking for casinf... " >&6; }
24672 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24674 else
24675 if test x$gcc_no_link = xyes; then
24676 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24681 #ifdef HAVE_COMPLEX_H
24682 #include <complex.h>
24683 #endif
24684 #ifdef HAVE_MATH_H
24685 #include <math.h>
24686 #endif
24688 int (*ptr)() = (int (*)())casinf;
24691 main ()
24693 return 0;
24696 _ACEOF
24697 if ac_fn_c_try_link "$LINENO"; then :
24698 gcc_cv_math_func_casinf=yes
24699 else
24700 gcc_cv_math_func_casinf=no
24702 rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24706 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24707 if test $gcc_cv_math_func_casinf = yes; then
24709 cat >>confdefs.h <<_ACEOF
24710 #define HAVE_CASINF 1
24711 _ACEOF
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24719 $as_echo_n "checking for casinh... " >&6; }
24720 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 if test x$gcc_no_link = xyes; then
24724 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24729 #ifdef HAVE_COMPLEX_H
24730 #include <complex.h>
24731 #endif
24732 #ifdef HAVE_MATH_H
24733 #include <math.h>
24734 #endif
24736 int (*ptr)() = (int (*)())casinh;
24739 main ()
24741 return 0;
24744 _ACEOF
24745 if ac_fn_c_try_link "$LINENO"; then :
24746 gcc_cv_math_func_casinh=yes
24747 else
24748 gcc_cv_math_func_casinh=no
24750 rm -f core conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24754 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24755 if test $gcc_cv_math_func_casinh = yes; then
24757 cat >>confdefs.h <<_ACEOF
24758 #define HAVE_CASINH 1
24759 _ACEOF
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24767 $as_echo_n "checking for casinhf... " >&6; }
24768 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 if test x$gcc_no_link = xyes; then
24772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24775 /* end confdefs.h. */
24777 #ifdef HAVE_COMPLEX_H
24778 #include <complex.h>
24779 #endif
24780 #ifdef HAVE_MATH_H
24781 #include <math.h>
24782 #endif
24784 int (*ptr)() = (int (*)())casinhf;
24787 main ()
24789 return 0;
24792 _ACEOF
24793 if ac_fn_c_try_link "$LINENO"; then :
24794 gcc_cv_math_func_casinhf=yes
24795 else
24796 gcc_cv_math_func_casinhf=no
24798 rm -f core conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24802 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24803 if test $gcc_cv_math_func_casinhf = yes; then
24805 cat >>confdefs.h <<_ACEOF
24806 #define HAVE_CASINHF 1
24807 _ACEOF
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24815 $as_echo_n "checking for casinhl... " >&6; }
24816 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24817 $as_echo_n "(cached) " >&6
24818 else
24819 if test x$gcc_no_link = xyes; then
24820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24823 /* end confdefs.h. */
24825 #ifdef HAVE_COMPLEX_H
24826 #include <complex.h>
24827 #endif
24828 #ifdef HAVE_MATH_H
24829 #include <math.h>
24830 #endif
24832 int (*ptr)() = (int (*)())casinhl;
24835 main ()
24837 return 0;
24840 _ACEOF
24841 if ac_fn_c_try_link "$LINENO"; then :
24842 gcc_cv_math_func_casinhl=yes
24843 else
24844 gcc_cv_math_func_casinhl=no
24846 rm -f core conftest.err conftest.$ac_objext \
24847 conftest$ac_exeext conftest.$ac_ext
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24850 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24851 if test $gcc_cv_math_func_casinhl = yes; then
24853 cat >>confdefs.h <<_ACEOF
24854 #define HAVE_CASINHL 1
24855 _ACEOF
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24863 $as_echo_n "checking for casinl... " >&6; }
24864 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24865 $as_echo_n "(cached) " >&6
24866 else
24867 if test x$gcc_no_link = xyes; then
24868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871 /* end confdefs.h. */
24873 #ifdef HAVE_COMPLEX_H
24874 #include <complex.h>
24875 #endif
24876 #ifdef HAVE_MATH_H
24877 #include <math.h>
24878 #endif
24880 int (*ptr)() = (int (*)())casinl;
24883 main ()
24885 return 0;
24888 _ACEOF
24889 if ac_fn_c_try_link "$LINENO"; then :
24890 gcc_cv_math_func_casinl=yes
24891 else
24892 gcc_cv_math_func_casinl=no
24894 rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24898 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24899 if test $gcc_cv_math_func_casinl = yes; then
24901 cat >>confdefs.h <<_ACEOF
24902 #define HAVE_CASINL 1
24903 _ACEOF
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24911 $as_echo_n "checking for catan... " >&6; }
24912 if test "${gcc_cv_math_func_catan+set}" = set; then :
24913 $as_echo_n "(cached) " >&6
24914 else
24915 if test x$gcc_no_link = xyes; then
24916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24919 /* end confdefs.h. */
24921 #ifdef HAVE_COMPLEX_H
24922 #include <complex.h>
24923 #endif
24924 #ifdef HAVE_MATH_H
24925 #include <math.h>
24926 #endif
24928 int (*ptr)() = (int (*)())catan;
24931 main ()
24933 return 0;
24936 _ACEOF
24937 if ac_fn_c_try_link "$LINENO"; then :
24938 gcc_cv_math_func_catan=yes
24939 else
24940 gcc_cv_math_func_catan=no
24942 rm -f core conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24946 $as_echo "$gcc_cv_math_func_catan" >&6; }
24947 if test $gcc_cv_math_func_catan = yes; then
24949 cat >>confdefs.h <<_ACEOF
24950 #define HAVE_CATAN 1
24951 _ACEOF
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24959 $as_echo_n "checking for catanf... " >&6; }
24960 if test "${gcc_cv_math_func_catanf+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 if test x$gcc_no_link = xyes; then
24964 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24969 #ifdef HAVE_COMPLEX_H
24970 #include <complex.h>
24971 #endif
24972 #ifdef HAVE_MATH_H
24973 #include <math.h>
24974 #endif
24976 int (*ptr)() = (int (*)())catanf;
24979 main ()
24981 return 0;
24984 _ACEOF
24985 if ac_fn_c_try_link "$LINENO"; then :
24986 gcc_cv_math_func_catanf=yes
24987 else
24988 gcc_cv_math_func_catanf=no
24990 rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24994 $as_echo "$gcc_cv_math_func_catanf" >&6; }
24995 if test $gcc_cv_math_func_catanf = yes; then
24997 cat >>confdefs.h <<_ACEOF
24998 #define HAVE_CATANF 1
24999 _ACEOF
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25007 $as_echo_n "checking for catanh... " >&6; }
25008 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25009 $as_echo_n "(cached) " >&6
25010 else
25011 if test x$gcc_no_link = xyes; then
25012 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25015 /* end confdefs.h. */
25017 #ifdef HAVE_COMPLEX_H
25018 #include <complex.h>
25019 #endif
25020 #ifdef HAVE_MATH_H
25021 #include <math.h>
25022 #endif
25024 int (*ptr)() = (int (*)())catanh;
25027 main ()
25029 return 0;
25032 _ACEOF
25033 if ac_fn_c_try_link "$LINENO"; then :
25034 gcc_cv_math_func_catanh=yes
25035 else
25036 gcc_cv_math_func_catanh=no
25038 rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25042 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25043 if test $gcc_cv_math_func_catanh = yes; then
25045 cat >>confdefs.h <<_ACEOF
25046 #define HAVE_CATANH 1
25047 _ACEOF
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25055 $as_echo_n "checking for catanhf... " >&6; }
25056 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25057 $as_echo_n "(cached) " >&6
25058 else
25059 if test x$gcc_no_link = xyes; then
25060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063 /* end confdefs.h. */
25065 #ifdef HAVE_COMPLEX_H
25066 #include <complex.h>
25067 #endif
25068 #ifdef HAVE_MATH_H
25069 #include <math.h>
25070 #endif
25072 int (*ptr)() = (int (*)())catanhf;
25075 main ()
25077 return 0;
25080 _ACEOF
25081 if ac_fn_c_try_link "$LINENO"; then :
25082 gcc_cv_math_func_catanhf=yes
25083 else
25084 gcc_cv_math_func_catanhf=no
25086 rm -f core conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25090 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25091 if test $gcc_cv_math_func_catanhf = yes; then
25093 cat >>confdefs.h <<_ACEOF
25094 #define HAVE_CATANHF 1
25095 _ACEOF
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25103 $as_echo_n "checking for catanhl... " >&6; }
25104 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25105 $as_echo_n "(cached) " >&6
25106 else
25107 if test x$gcc_no_link = xyes; then
25108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25111 /* end confdefs.h. */
25113 #ifdef HAVE_COMPLEX_H
25114 #include <complex.h>
25115 #endif
25116 #ifdef HAVE_MATH_H
25117 #include <math.h>
25118 #endif
25120 int (*ptr)() = (int (*)())catanhl;
25123 main ()
25125 return 0;
25128 _ACEOF
25129 if ac_fn_c_try_link "$LINENO"; then :
25130 gcc_cv_math_func_catanhl=yes
25131 else
25132 gcc_cv_math_func_catanhl=no
25134 rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25138 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25139 if test $gcc_cv_math_func_catanhl = yes; then
25141 cat >>confdefs.h <<_ACEOF
25142 #define HAVE_CATANHL 1
25143 _ACEOF
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25151 $as_echo_n "checking for catanl... " >&6; }
25152 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 if test x$gcc_no_link = xyes; then
25156 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h. */
25161 #ifdef HAVE_COMPLEX_H
25162 #include <complex.h>
25163 #endif
25164 #ifdef HAVE_MATH_H
25165 #include <math.h>
25166 #endif
25168 int (*ptr)() = (int (*)())catanl;
25171 main ()
25173 return 0;
25176 _ACEOF
25177 if ac_fn_c_try_link "$LINENO"; then :
25178 gcc_cv_math_func_catanl=yes
25179 else
25180 gcc_cv_math_func_catanl=no
25182 rm -f core conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25186 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25187 if test $gcc_cv_math_func_catanl = yes; then
25189 cat >>confdefs.h <<_ACEOF
25190 #define HAVE_CATANL 1
25191 _ACEOF
25196 # On AIX, clog is present in libm as __clog
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25198 $as_echo_n "checking for __clog in -lm... " >&6; }
25199 if test "${ac_cv_lib_m___clog+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
25201 else
25202 ac_check_lib_save_LIBS=$LIBS
25203 LIBS="-lm $LIBS"
25204 if test x$gcc_no_link = xyes; then
25205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25208 /* end confdefs.h. */
25210 /* Override any GCC internal prototype to avoid an error.
25211 Use char because int might match the return type of a GCC
25212 builtin and then its argument prototype would still apply. */
25213 #ifdef __cplusplus
25214 extern "C"
25215 #endif
25216 char __clog ();
25218 main ()
25220 return __clog ();
25222 return 0;
25224 _ACEOF
25225 if ac_fn_c_try_link "$LINENO"; then :
25226 ac_cv_lib_m___clog=yes
25227 else
25228 ac_cv_lib_m___clog=no
25230 rm -f core conftest.err conftest.$ac_objext \
25231 conftest$ac_exeext conftest.$ac_ext
25232 LIBS=$ac_check_lib_save_LIBS
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25235 $as_echo "$ac_cv_lib_m___clog" >&6; }
25236 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25238 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25243 # Check whether the system has a working stat()
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25246 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25247 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25251 if test "$cross_compiling" = yes; then :
25253 case "${target}" in
25254 *mingw*) libgfor_cv_have_working_stat=no ;;
25255 *) libgfor_cv_have_working_stat=yes;;
25256 esac
25257 else
25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25259 /* end confdefs.h. */
25261 #include <stdio.h>
25262 #include <sys/types.h>
25263 #include <sys/stat.h>
25264 #include <unistd.h>
25266 int main ()
25268 FILE *f, *g;
25269 struct stat st1, st2;
25271 f = fopen ("foo", "w");
25272 g = fopen ("bar", "w");
25273 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25274 return 1;
25275 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25276 return 1;
25277 fclose(f);
25278 fclose(g);
25279 return 0;
25281 _ACEOF
25282 if ac_fn_c_try_run "$LINENO"; then :
25283 libgfor_cv_have_working_stat=yes
25284 else
25285 libgfor_cv_have_working_stat=no
25287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25288 conftest.$ac_objext conftest.beam conftest.$ac_ext
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25293 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25294 if test x"$libgfor_cv_have_working_stat" = xyes; then
25296 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25300 # Check whether __mingw_snprintf() is present
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25303 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25304 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25306 else
25308 if test x$gcc_no_link = xyes; then
25309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25314 #include <stdio.h>
25315 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25318 main ()
25321 __mingw_snprintf (NULL, 0, "%d\n", 1);
25324 return 0;
25326 _ACEOF
25327 if ac_fn_c_try_link "$LINENO"; then :
25328 eval "libgfor_cv_have_mingw_snprintf=yes"
25329 else
25330 eval "libgfor_cv_have_mingw_snprintf=no"
25332 rm -f core conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25337 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25338 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25340 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25345 # Check whether libquadmath should be used
25346 # Check whether --enable-libquadmath-support was given.
25347 if test "${enable_libquadmath_support+set}" = set; then :
25348 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25349 else
25350 ENABLE_LIBQUADMATH_SUPPORT=yes
25353 enable_libquadmath_support=
25354 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25355 enable_libquadmath_support=no
25358 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25360 LIBQUADSPEC=
25362 if test "x$enable_libquadmath_support" != xno; then
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25365 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25366 if test "${libgfor_cv_have_float128+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25368 else
25370 if test x$gcc_no_link = xyes; then
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25374 typedef _Complex float __attribute__((mode(TC))) __complex128;
25376 __float128 foo (__float128 x)
25379 __complex128 z1, z2;
25381 z1 = x;
25382 z2 = x / 7.Q;
25383 z2 /= z1;
25385 return (__float128) z2;
25388 __float128 bar (__float128 x)
25390 return x * __builtin_huge_valq ();
25394 main ()
25397 foo (1.2Q);
25398 bar (1.2Q);
25401 return 0;
25403 _ACEOF
25404 if ac_fn_c_try_compile "$LINENO"; then :
25406 libgfor_cv_have_float128=yes
25408 else
25410 libgfor_cv_have_float128=no
25413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414 else
25415 if test x$gcc_no_link = xyes; then
25416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25421 typedef _Complex float __attribute__((mode(TC))) __complex128;
25423 __float128 foo (__float128 x)
25426 __complex128 z1, z2;
25428 z1 = x;
25429 z2 = x / 7.Q;
25430 z2 /= z1;
25432 return (__float128) z2;
25435 __float128 bar (__float128 x)
25437 return x * __builtin_huge_valq ();
25441 main ()
25444 foo (1.2Q);
25445 bar (1.2Q);
25448 return 0;
25450 _ACEOF
25451 if ac_fn_c_try_link "$LINENO"; then :
25453 libgfor_cv_have_float128=yes
25455 else
25457 libgfor_cv_have_float128=no
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25465 $as_echo "$libgfor_cv_have_float128" >&6; }
25467 if test "x$libgfor_cv_have_float128" = xyes; then
25469 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25472 ac_xsave_c_werror_flag=$ac_c_werror_flag
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25474 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25475 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
25477 else
25479 # Test for native Solaris options first.
25480 # No whitespace after -z to pass it through -Wl.
25481 libgfor_cv_as_needed_option="-zignore"
25482 libgfor_cv_no_as_needed_option="-zrecord"
25483 save_LDFLAGS="$LDFLAGS"
25484 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25485 libgfor_cv_have_as_needed=no
25487 ac_c_werror_flag=yes
25488 if test x$gcc_no_link = xyes; then
25489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492 /* end confdefs.h. */
25495 main ()
25499 return 0;
25501 _ACEOF
25502 if ac_fn_c_try_link "$LINENO"; then :
25503 libgfor_cv_have_as_needed=yes
25504 else
25505 libgfor_cv_have_as_needed=no
25507 rm -f core conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
25509 LDFLAGS="$save_LDFLAGS"
25510 if test "x$libgfor_cv_have_as_needed" = xno; then
25511 libgfor_cv_as_needed_option="--as-needed"
25512 libgfor_cv_no_as_needed_option="--no-as-needed"
25513 save_LDFLAGS="$LDFLAGS"
25514 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25515 libgfor_cv_have_as_needed=no
25517 ac_c_werror_flag=yes
25518 if test x$gcc_no_link = xyes; then
25519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25525 main ()
25529 return 0;
25531 _ACEOF
25532 if ac_fn_c_try_link "$LINENO"; then :
25533 libgfor_cv_have_as_needed=yes
25534 else
25535 libgfor_cv_have_as_needed=no
25537 rm -f core conftest.err conftest.$ac_objext \
25538 conftest$ac_exeext conftest.$ac_ext
25539 LDFLAGS="$save_LDFLAGS"
25541 ac_c_werror_flag=$ac_xsave_c_werror_flag
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25545 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25547 if test "x$libgfor_cv_have_as_needed" = xyes; then
25548 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25549 else
25550 LIBQUADSPEC="-lquadmath"
25552 if test -f ../libquadmath/libquadmath.la; then
25553 LIBQUADLIB=../libquadmath/libquadmath.la
25554 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25555 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25556 else
25557 LIBQUADLIB="-lquadmath"
25558 LIBQUADLIB_DEP=
25559 LIBQUADINCLUDE=
25562 else
25563 # for --disable-quadmath
25564 LIBQUADLIB=
25565 LIBQUADLIB_DEP=
25566 LIBQUADINCLUDE=
25574 if test "x$libgfor_cv_have_float128" = xyes; then
25575 LIBGFOR_BUILD_QUAD_TRUE=
25576 LIBGFOR_BUILD_QUAD_FALSE='#'
25577 else
25578 LIBGFOR_BUILD_QUAD_TRUE='#'
25579 LIBGFOR_BUILD_QUAD_FALSE=
25584 # Check for GNU libc feenableexcept
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25586 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25587 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25589 else
25590 ac_check_lib_save_LIBS=$LIBS
25591 LIBS="-lm $LIBS"
25592 if test x$gcc_no_link = xyes; then
25593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25598 /* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
25601 #ifdef __cplusplus
25602 extern "C"
25603 #endif
25604 char feenableexcept ();
25606 main ()
25608 return feenableexcept ();
25610 return 0;
25612 _ACEOF
25613 if ac_fn_c_try_link "$LINENO"; then :
25614 ac_cv_lib_m_feenableexcept=yes
25615 else
25616 ac_cv_lib_m_feenableexcept=no
25618 rm -f core conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
25620 LIBS=$ac_check_lib_save_LIBS
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25623 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25624 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25625 have_feenableexcept=yes
25626 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25631 # At least for glibc, clock_gettime is in librt. But don't
25632 # pull that in if it still doesn't give us the function we want. This
25633 # test is copied from libgomp, and modified to not link in -lrt as
25634 # libgfortran calls clock_gettime via a weak reference if it's found
25635 # in librt.
25636 if test "$ac_cv_func_clock_gettime" = no; then
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25638 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25639 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25640 $as_echo_n "(cached) " >&6
25641 else
25642 ac_check_lib_save_LIBS=$LIBS
25643 LIBS="-lrt $LIBS"
25644 if test x$gcc_no_link = xyes; then
25645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h. */
25650 /* Override any GCC internal prototype to avoid an error.
25651 Use char because int might match the return type of a GCC
25652 builtin and then its argument prototype would still apply. */
25653 #ifdef __cplusplus
25654 extern "C"
25655 #endif
25656 char clock_gettime ();
25658 main ()
25660 return clock_gettime ();
25662 return 0;
25664 _ACEOF
25665 if ac_fn_c_try_link "$LINENO"; then :
25666 ac_cv_lib_rt_clock_gettime=yes
25667 else
25668 ac_cv_lib_rt_clock_gettime=no
25670 rm -f core conftest.err conftest.$ac_objext \
25671 conftest$ac_exeext conftest.$ac_ext
25672 LIBS=$ac_check_lib_save_LIBS
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25675 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25676 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25678 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25684 # Check for SysV fpsetmask
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25687 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25688 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25689 $as_echo_n "(cached) " >&6
25690 else
25692 if test x$gcc_no_link = xyes; then
25693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h. */
25698 #if HAVE_FLOATINGPOINT_H
25699 # include <floatingpoint.h>
25700 #endif /* HAVE_FLOATINGPOINT_H */
25701 #if HAVE_IEEEFP_H
25702 # include <ieeefp.h>
25703 #endif /* HAVE_IEEEFP_H */
25705 main ()
25707 fpsetmask(0);
25709 return 0;
25711 _ACEOF
25712 if ac_fn_c_try_link "$LINENO"; then :
25713 eval "libgfor_cv_have_fpsetmask=yes"
25714 else
25715 eval "libgfor_cv_have_fpsetmask=no"
25717 rm -f core conftest.err conftest.$ac_objext \
25718 conftest$ac_exeext conftest.$ac_ext
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25722 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25723 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25724 have_fpsetmask=yes
25726 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25730 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25731 #ifdef HAVE_IEEEFP_H
25732 #include <ieeefp.h>
25733 #endif
25734 #include <math.h>
25737 if test "x$ac_cv_type_fp_except" = x""yes; then :
25739 cat >>confdefs.h <<_ACEOF
25740 #define HAVE_FP_EXCEPT 1
25741 _ACEOF
25745 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25746 #ifdef HAVE_IEEEFP_H
25747 #include <ieeefp.h>
25748 #endif
25749 #include <math.h>
25752 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25754 cat >>confdefs.h <<_ACEOF
25755 #define HAVE_FP_EXCEPT_T 1
25756 _ACEOF
25761 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25762 #ifdef HAVE_IEEEFP_H
25763 #include <ieeefp.h>
25764 #endif
25765 #include <math.h>
25768 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25770 cat >>confdefs.h <<_ACEOF
25771 #define HAVE_FP_RND 1
25772 _ACEOF
25776 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25777 #ifdef HAVE_IEEEFP_H
25778 #include <ieeefp.h>
25779 #endif
25780 #include <math.h>
25783 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25785 cat >>confdefs.h <<_ACEOF
25786 #define HAVE_FP_RND_T 1
25787 _ACEOF
25793 # Check whether we have fpsetsticky or fpresetsticky
25794 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25795 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25796 have_fpsetsticky=yes
25797 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25801 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25802 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25803 have_fpresetsticky=yes
25804 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25809 # Check for AIX fp_trap and fp_enable
25810 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25811 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25812 have_fp_trap=yes
25813 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25817 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25818 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25819 have_fp_enable=yes
25820 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25825 # Check if _SOFT_FLOAT is defined
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25828 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25829 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25833 /* end confdefs.h. */
25836 main ()
25839 #ifdef _SOFT_FLOAT
25840 int ok;
25841 #else
25842 choke me
25843 #endif
25846 return 0;
25848 _ACEOF
25849 if ac_fn_c_try_compile "$LINENO"; then :
25850 ac_cv_defined__SOFT_FLOAT=yes
25851 else
25852 ac_cv_defined__SOFT_FLOAT=no
25854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25857 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25858 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25859 have_soft_float=yes
25862 # Runs configure.host to set up necessary host-dependent shell variables.
25863 # We then display a message about it, and propagate them through the
25864 # build chain.
25865 . ${srcdir}/configure.host
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25867 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25869 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25870 FPU_HOST_HEADER=config/${fpu_host}.h
25873 # Whether we will build the IEEE modules
25874 if test x${ieee_support} = xyes; then
25875 IEEE_SUPPORT_TRUE=
25876 IEEE_SUPPORT_FALSE='#'
25877 else
25878 IEEE_SUPPORT_TRUE='#'
25879 IEEE_SUPPORT_FALSE=
25884 # Some targets require additional compiler options for IEEE compatibility.
25885 IEEE_FLAGS="${ieee_flags}"
25889 # Check for POSIX getpwuid_r
25891 # There are two versions of getpwuid_r, the POSIX one with 5
25892 # arguments, and another one with 4 arguments used by at least HP-UX
25893 # 10.2.
25894 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25896 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25897 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25898 $as_echo_n "(cached) " >&6
25899 else
25901 if test x$gcc_no_link = xyes; then
25902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h. */
25907 #include <stdio.h>
25908 #include <sys/types.h>
25909 #include <pwd.h>
25911 main ()
25914 getpwuid_r(0, NULL, NULL, 0, NULL);
25917 return 0;
25919 _ACEOF
25920 if ac_fn_c_try_link "$LINENO"; then :
25921 libgfor_cv_posix_getpwuid_r="yes"
25922 else
25923 libgfor_cv_posix_getpwuid_r="no"
25925 rm -f core conftest.err conftest.$ac_objext \
25926 conftest$ac_exeext conftest.$ac_ext
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25929 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25931 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25933 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25938 # Check out attribute support.
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25941 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25942 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25943 $as_echo_n "(cached) " >&6
25944 else
25946 save_CFLAGS="$CFLAGS"
25947 CFLAGS="$CFLAGS -Werror"
25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h. */
25950 void __attribute__((visibility("hidden"))) foo(void) { }
25952 main ()
25956 return 0;
25958 _ACEOF
25959 if ac_fn_c_try_compile "$LINENO"; then :
25960 libgfor_cv_have_attribute_visibility=yes
25961 else
25962 libgfor_cv_have_attribute_visibility=no
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 CFLAGS="$save_CFLAGS"
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25968 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
25969 if test $libgfor_cv_have_attribute_visibility = yes; then
25971 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25976 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25977 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25978 $as_echo_n "(cached) " >&6
25979 else
25981 if test x$gcc_no_link = xyes; then
25982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h. */
25987 void foo(void) { }
25988 extern void bar(void) __attribute__((alias("foo")));
25990 main ()
25992 bar();
25994 return 0;
25996 _ACEOF
25997 if ac_fn_c_try_link "$LINENO"; then :
25998 libgfor_cv_have_attribute_alias=yes
25999 else
26000 libgfor_cv_have_attribute_alias=no
26002 rm -f core conftest.err conftest.$ac_objext \
26003 conftest$ac_exeext conftest.$ac_ext
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26006 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26007 if test $libgfor_cv_have_attribute_alias = yes; then
26009 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26013 # Check out sync builtins support.
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26016 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26017 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26019 else
26021 if test x$gcc_no_link = xyes; then
26022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26026 int foovar = 0;
26028 main ()
26031 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26032 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26034 return 0;
26036 _ACEOF
26037 if ac_fn_c_try_link "$LINENO"; then :
26038 libgfor_cv_have_sync_fetch_and_add=yes
26039 else
26040 libgfor_cv_have_sync_fetch_and_add=no
26042 rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26046 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26047 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26049 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26053 # Check out #pragma weak.
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26056 $as_echo_n "checking whether pragma weak works... " >&6; }
26057 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26058 $as_echo_n "(cached) " >&6
26059 else
26061 gfor_save_CFLAGS="$CFLAGS"
26062 CFLAGS="$CFLAGS -Wunknown-pragmas"
26063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h. */
26066 void foo (void);
26067 #pragma weak foo
26070 main ()
26072 if (foo) foo ();
26074 return 0;
26076 _ACEOF
26077 if ac_fn_c_try_compile "$LINENO"; then :
26078 libgfor_cv_have_pragma_weak=yes
26079 else
26080 libgfor_cv_have_pragma_weak=no
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26085 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26086 if test $libgfor_cv_have_pragma_weak = yes; then
26088 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26091 case "$host" in
26092 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26094 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26097 esac
26099 # Check out weakref support.
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26102 $as_echo_n "checking whether the target supports weakref... " >&6; }
26103 if test "${libgfor_cv_have_weakref+set}" = set; then :
26104 $as_echo_n "(cached) " >&6
26105 else
26107 save_CFLAGS="$CFLAGS"
26108 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26109 if test x$gcc_no_link = xyes; then
26110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26113 /* end confdefs.h. */
26115 static int mytoto (int) __attribute__((__weakref__("toto")));
26118 main ()
26120 return (mytoto != 0);
26122 return 0;
26124 _ACEOF
26125 if ac_fn_c_try_link "$LINENO"; then :
26126 libgfor_cv_have_weakref=yes
26127 else
26128 libgfor_cv_have_weakref=no
26130 rm -f core conftest.err conftest.$ac_objext \
26131 conftest$ac_exeext conftest.$ac_ext
26132 CFLAGS="$save_CFLAGS"
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26135 $as_echo "$libgfor_cv_have_weakref" >&6; }
26136 if test $libgfor_cv_have_weakref = yes; then
26138 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26142 # Various other checks on target
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26145 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26146 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26147 $as_echo_n "(cached) " >&6
26148 else
26150 if test "$cross_compiling" = yes; then :
26152 case "${target}" in
26153 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26154 *) libgfor_cv_have_unlink_open_file=yes;;
26155 esac
26156 else
26157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158 /* end confdefs.h. */
26160 #include <errno.h>
26161 #include <fcntl.h>
26162 #include <unistd.h>
26163 #include <sys/stat.h>
26165 int main ()
26167 int fd;
26169 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26170 if (fd <= 0)
26171 return 0;
26172 if (unlink ("testfile") == -1)
26173 return 1;
26174 write (fd, "This is a test\n", 15);
26175 close (fd);
26177 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26178 return 0;
26179 else
26180 return 1;
26182 _ACEOF
26183 if ac_fn_c_try_run "$LINENO"; then :
26184 libgfor_cv_have_unlink_open_file=yes
26185 else
26186 libgfor_cv_have_unlink_open_file=no
26188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26189 conftest.$ac_objext conftest.beam conftest.$ac_ext
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26194 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26195 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26197 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26201 # Check whether line terminator is LF or CRLF
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26204 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26205 if test "${libgfor_cv_have_crlf+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26207 else
26209 if test "$cross_compiling" = yes; then :
26211 case "${target}" in
26212 *mingw*) libgfor_cv_have_crlf=yes ;;
26213 *) libgfor_cv_have_crlf=no;;
26214 esac
26215 else
26216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26217 /* end confdefs.h. */
26219 /* This test program should exit with status 0 if system uses a CRLF as
26220 line terminator, and status 1 otherwise.
26221 Since it is used to check for mingw systems, and should return 0 in any
26222 other case, in case of a failure we will not use CRLF. */
26223 #include <sys/stat.h>
26224 #include <stdlib.h>
26225 #include <fcntl.h>
26226 #include <stdio.h>
26228 int main ()
26230 #ifndef O_BINARY
26231 exit(1);
26232 #else
26233 int fd, bytes;
26234 char buff[5];
26236 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26237 if (fd < 0)
26238 exit(1);
26239 if (write (fd, "\n", 1) < 0)
26240 perror ("write");
26242 close (fd);
26244 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26245 exit(1);
26246 bytes = read (fd, buff, 5);
26247 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26248 exit(0);
26249 else
26250 exit(1);
26251 #endif
26253 _ACEOF
26254 if ac_fn_c_try_run "$LINENO"; then :
26255 libgfor_cv_have_crlf=yes
26256 else
26257 libgfor_cv_have_crlf=no
26259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26260 conftest.$ac_objext conftest.beam conftest.$ac_ext
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26265 $as_echo "$libgfor_cv_have_crlf" >&6; }
26266 if test x"$libgfor_cv_have_crlf" = xyes; then
26268 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26272 # Check whether we support AVX extensions
26274 ac_save_CFLAGS="$CFLAGS"
26275 CFLAGS="-O2 -mavx"
26276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26277 /* end confdefs.h. */
26279 void _mm256_zeroall (void)
26281 __builtin_ia32_vzeroall ();
26284 main ()
26288 return 0;
26290 _ACEOF
26291 if ac_fn_c_try_compile "$LINENO"; then :
26293 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 CFLAGS="$ac_save_CFLAGS"
26300 # Check wether we support AVX2 extensions
26302 ac_save_CFLAGS="$CFLAGS"
26303 CFLAGS="-O2 -mavx2"
26304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26305 /* end confdefs.h. */
26307 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26308 __v4di
26309 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26311 return __builtin_ia32_andnotsi256 (__X, __Y);
26314 main ()
26318 return 0;
26320 _ACEOF
26321 if ac_fn_c_try_compile "$LINENO"; then :
26323 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 CFLAGS="$ac_save_CFLAGS"
26330 # Check wether we support AVX512f extensions
26332 ac_save_CFLAGS="$CFLAGS"
26333 CFLAGS="-O2 -mavx512f"
26334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26337 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26338 __m512d _mm512_add (__m512d a)
26340 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26341 /* For -m64/-mx32 also verify that code will work even if
26342 the target uses call saved zmm16+ and needs to emit
26343 unwind info for them (e.g. on mingw). See PR79127. */
26344 #ifdef __x86_64__
26345 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26346 #endif
26347 return b;
26350 main ()
26354 return 0;
26356 _ACEOF
26357 if ac_fn_c_try_compile "$LINENO"; then :
26359 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363 CFLAGS="$ac_save_CFLAGS"
26366 # Determine what GCC version number to use in filesystem paths.
26368 get_gcc_base_ver="cat"
26370 # Check whether --with-gcc-major-version-only was given.
26371 if test "${with_gcc_major_version_only+set}" = set; then :
26372 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26373 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
26381 cat >confcache <<\_ACEOF
26382 # This file is a shell script that caches the results of configure
26383 # tests run on this system so they can be shared between configure
26384 # scripts and configure runs, see configure's option --config-cache.
26385 # It is not useful on other systems. If it contains results you don't
26386 # want to keep, you may remove or edit it.
26388 # config.status only pays attention to the cache file if you give it
26389 # the --recheck option to rerun configure.
26391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26393 # following values.
26395 _ACEOF
26397 # The following way of writing the cache mishandles newlines in values,
26398 # but we know of no workaround that is simple, portable, and efficient.
26399 # So, we kill variables containing newlines.
26400 # Ultrix sh set writes to stderr and can't be redirected directly,
26401 # and sets the high bit in the cache file unless we assign to the vars.
26403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26404 eval ac_val=\$$ac_var
26405 case $ac_val in #(
26406 *${as_nl}*)
26407 case $ac_var in #(
26408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26410 esac
26411 case $ac_var in #(
26412 _ | IFS | as_nl) ;; #(
26413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26414 *) { eval $ac_var=; unset $ac_var;} ;;
26415 esac ;;
26416 esac
26417 done
26419 (set) 2>&1 |
26420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26421 *${as_nl}ac_space=\ *)
26422 # `set' does not quote correctly, so add quotes: double-quote
26423 # substitution turns \\\\ into \\, and sed turns \\ into \.
26424 sed -n \
26425 "s/'/'\\\\''/g;
26426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26427 ;; #(
26429 # `set' quotes correctly as required by POSIX, so do not add quotes.
26430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26432 esac |
26433 sort
26435 sed '
26436 /^ac_cv_env_/b end
26437 t clear
26438 :clear
26439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26440 t end
26441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26442 :end' >>confcache
26443 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26444 if test -w "$cache_file"; then
26445 test "x$cache_file" != "x/dev/null" &&
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26447 $as_echo "$as_me: updating cache $cache_file" >&6;}
26448 cat confcache >$cache_file
26449 else
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26451 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26454 rm -f confcache
26456 if test ${multilib} = yes; then
26457 multilib_arg="--enable-multilib"
26458 else
26459 multilib_arg=
26462 # Write our Makefile and spec file.
26463 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26465 cat >confcache <<\_ACEOF
26466 # This file is a shell script that caches the results of configure
26467 # tests run on this system so they can be shared between configure
26468 # scripts and configure runs, see configure's option --config-cache.
26469 # It is not useful on other systems. If it contains results you don't
26470 # want to keep, you may remove or edit it.
26472 # config.status only pays attention to the cache file if you give it
26473 # the --recheck option to rerun configure.
26475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26477 # following values.
26479 _ACEOF
26481 # The following way of writing the cache mishandles newlines in values,
26482 # but we know of no workaround that is simple, portable, and efficient.
26483 # So, we kill variables containing newlines.
26484 # Ultrix sh set writes to stderr and can't be redirected directly,
26485 # and sets the high bit in the cache file unless we assign to the vars.
26487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26488 eval ac_val=\$$ac_var
26489 case $ac_val in #(
26490 *${as_nl}*)
26491 case $ac_var in #(
26492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26494 esac
26495 case $ac_var in #(
26496 _ | IFS | as_nl) ;; #(
26497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26498 *) { eval $ac_var=; unset $ac_var;} ;;
26499 esac ;;
26500 esac
26501 done
26503 (set) 2>&1 |
26504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26505 *${as_nl}ac_space=\ *)
26506 # `set' does not quote correctly, so add quotes: double-quote
26507 # substitution turns \\\\ into \\, and sed turns \\ into \.
26508 sed -n \
26509 "s/'/'\\\\''/g;
26510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26511 ;; #(
26513 # `set' quotes correctly as required by POSIX, so do not add quotes.
26514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26516 esac |
26517 sort
26519 sed '
26520 /^ac_cv_env_/b end
26521 t clear
26522 :clear
26523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26524 t end
26525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26526 :end' >>confcache
26527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26528 if test -w "$cache_file"; then
26529 test "x$cache_file" != "x/dev/null" &&
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26531 $as_echo "$as_me: updating cache $cache_file" >&6;}
26532 cat confcache >$cache_file
26533 else
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26538 rm -f confcache
26540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26541 # Let make expand exec_prefix.
26542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26544 DEFS=-DHAVE_CONFIG_H
26546 ac_libobjs=
26547 ac_ltlibobjs=
26548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26549 # 1. Remove the extension, and $U if already installed.
26550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26551 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26553 # will be set to the directory where LIBOBJS objects are built.
26554 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26555 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26556 done
26557 LIBOBJS=$ac_libobjs
26559 LTLIBOBJS=$ac_ltlibobjs
26562 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26563 as_fn_error "conditional \"onestep\" was never defined.
26564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26566 if test -n "$EXEEXT"; then
26567 am__EXEEXT_TRUE=
26568 am__EXEEXT_FALSE='#'
26569 else
26570 am__EXEEXT_TRUE='#'
26571 am__EXEEXT_FALSE=
26574 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26575 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26578 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26579 as_fn_error "conditional \"AMDEP\" was never defined.
26580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26583 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26587 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26590 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26591 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26594 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26595 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26598 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26599 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26602 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26603 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26606 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26607 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26610 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26611 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26614 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26615 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26619 : ${CONFIG_STATUS=./config.status}
26620 ac_write_fail=0
26621 ac_clean_files_save=$ac_clean_files
26622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26625 as_write_fail=0
26626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26627 #! $SHELL
26628 # Generated by $as_me.
26629 # Run this file to recreate the current configuration.
26630 # Compiler output produced by configure, useful for debugging
26631 # configure, is in config.log if it exists.
26633 debug=false
26634 ac_cs_recheck=false
26635 ac_cs_silent=false
26637 SHELL=\${CONFIG_SHELL-$SHELL}
26638 export SHELL
26639 _ASEOF
26640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26641 ## -------------------- ##
26642 ## M4sh Initialization. ##
26643 ## -------------------- ##
26645 # Be more Bourne compatible
26646 DUALCASE=1; export DUALCASE # for MKS sh
26647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26648 emulate sh
26649 NULLCMD=:
26650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26651 # is contrary to our usage. Disable this feature.
26652 alias -g '${1+"$@"}'='"$@"'
26653 setopt NO_GLOB_SUBST
26654 else
26655 case `(set -o) 2>/dev/null` in #(
26656 *posix*) :
26657 set -o posix ;; #(
26658 *) :
26660 esac
26664 as_nl='
26666 export as_nl
26667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26671 # Prefer a ksh shell builtin over an external printf program on Solaris,
26672 # but without wasting forks for bash or zsh.
26673 if test -z "$BASH_VERSION$ZSH_VERSION" \
26674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26675 as_echo='print -r --'
26676 as_echo_n='print -rn --'
26677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26678 as_echo='printf %s\n'
26679 as_echo_n='printf %s'
26680 else
26681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26683 as_echo_n='/usr/ucb/echo -n'
26684 else
26685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26686 as_echo_n_body='eval
26687 arg=$1;
26688 case $arg in #(
26689 *"$as_nl"*)
26690 expr "X$arg" : "X\\(.*\\)$as_nl";
26691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26692 esac;
26693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26695 export as_echo_n_body
26696 as_echo_n='sh -c $as_echo_n_body as_echo'
26698 export as_echo_body
26699 as_echo='sh -c $as_echo_body as_echo'
26702 # The user is always right.
26703 if test "${PATH_SEPARATOR+set}" != set; then
26704 PATH_SEPARATOR=:
26705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26707 PATH_SEPARATOR=';'
26712 # IFS
26713 # We need space, tab and new line, in precisely that order. Quoting is
26714 # there to prevent editors from complaining about space-tab.
26715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26716 # splitting by setting IFS to empty value.)
26717 IFS=" "" $as_nl"
26719 # Find who we are. Look in the path if we contain no directory separator.
26720 case $0 in #((
26721 *[\\/]* ) as_myself=$0 ;;
26722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26723 for as_dir in $PATH
26725 IFS=$as_save_IFS
26726 test -z "$as_dir" && as_dir=.
26727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26728 done
26729 IFS=$as_save_IFS
26732 esac
26733 # We did not find ourselves, most probably we were run as `sh COMMAND'
26734 # in which case we are not to be found in the path.
26735 if test "x$as_myself" = x; then
26736 as_myself=$0
26738 if test ! -f "$as_myself"; then
26739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26740 exit 1
26743 # Unset variables that we do not need and which cause bugs (e.g. in
26744 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26745 # suppresses any "Segmentation fault" message there. '((' could
26746 # trigger a bug in pdksh 5.2.14.
26747 for as_var in BASH_ENV ENV MAIL MAILPATH
26748 do eval test x\${$as_var+set} = xset \
26749 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26750 done
26751 PS1='$ '
26752 PS2='> '
26753 PS4='+ '
26755 # NLS nuisances.
26756 LC_ALL=C
26757 export LC_ALL
26758 LANGUAGE=C
26759 export LANGUAGE
26761 # CDPATH.
26762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26765 # as_fn_error ERROR [LINENO LOG_FD]
26766 # ---------------------------------
26767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26769 # script with status $?, using 1 if that was 0.
26770 as_fn_error ()
26772 as_status=$?; test $as_status -eq 0 && as_status=1
26773 if test "$3"; then
26774 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26775 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26777 $as_echo "$as_me: error: $1" >&2
26778 as_fn_exit $as_status
26779 } # as_fn_error
26782 # as_fn_set_status STATUS
26783 # -----------------------
26784 # Set $? to STATUS, without forking.
26785 as_fn_set_status ()
26787 return $1
26788 } # as_fn_set_status
26790 # as_fn_exit STATUS
26791 # -----------------
26792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26793 as_fn_exit ()
26795 set +e
26796 as_fn_set_status $1
26797 exit $1
26798 } # as_fn_exit
26800 # as_fn_unset VAR
26801 # ---------------
26802 # Portably unset VAR.
26803 as_fn_unset ()
26805 { eval $1=; unset $1;}
26807 as_unset=as_fn_unset
26808 # as_fn_append VAR VALUE
26809 # ----------------------
26810 # Append the text in VALUE to the end of the definition contained in VAR. Take
26811 # advantage of any shell optimizations that allow amortized linear growth over
26812 # repeated appends, instead of the typical quadratic growth present in naive
26813 # implementations.
26814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26815 eval 'as_fn_append ()
26817 eval $1+=\$2
26819 else
26820 as_fn_append ()
26822 eval $1=\$$1\$2
26824 fi # as_fn_append
26826 # as_fn_arith ARG...
26827 # ------------------
26828 # Perform arithmetic evaluation on the ARGs, and store the result in the
26829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26830 # must be portable across $(()) and expr.
26831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26832 eval 'as_fn_arith ()
26834 as_val=$(( $* ))
26836 else
26837 as_fn_arith ()
26839 as_val=`expr "$@" || test $? -eq 1`
26841 fi # as_fn_arith
26844 if expr a : '\(a\)' >/dev/null 2>&1 &&
26845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26846 as_expr=expr
26847 else
26848 as_expr=false
26851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26852 as_basename=basename
26853 else
26854 as_basename=false
26857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26858 as_dirname=dirname
26859 else
26860 as_dirname=false
26863 as_me=`$as_basename -- "$0" ||
26864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26865 X"$0" : 'X\(//\)$' \| \
26866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26867 $as_echo X/"$0" |
26868 sed '/^.*\/\([^/][^/]*\)\/*$/{
26869 s//\1/
26872 /^X\/\(\/\/\)$/{
26873 s//\1/
26876 /^X\/\(\/\).*/{
26877 s//\1/
26880 s/.*/./; q'`
26882 # Avoid depending upon Character Ranges.
26883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26886 as_cr_digits='0123456789'
26887 as_cr_alnum=$as_cr_Letters$as_cr_digits
26889 ECHO_C= ECHO_N= ECHO_T=
26890 case `echo -n x` in #(((((
26891 -n*)
26892 case `echo 'xy\c'` in
26893 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26894 xy) ECHO_C='\c';;
26895 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26896 ECHO_T=' ';;
26897 esac;;
26899 ECHO_N='-n';;
26900 esac
26902 rm -f conf$$ conf$$.exe conf$$.file
26903 if test -d conf$$.dir; then
26904 rm -f conf$$.dir/conf$$.file
26905 else
26906 rm -f conf$$.dir
26907 mkdir conf$$.dir 2>/dev/null
26909 if (echo >conf$$.file) 2>/dev/null; then
26910 if ln -s conf$$.file conf$$ 2>/dev/null; then
26911 as_ln_s='ln -s'
26912 # ... but there are two gotchas:
26913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26915 # In both cases, we have to default to `cp -p'.
26916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26917 as_ln_s='cp -p'
26918 elif ln conf$$.file conf$$ 2>/dev/null; then
26919 as_ln_s=ln
26920 else
26921 as_ln_s='cp -p'
26923 else
26924 as_ln_s='cp -p'
26926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26927 rmdir conf$$.dir 2>/dev/null
26930 # as_fn_mkdir_p
26931 # -------------
26932 # Create "$as_dir" as a directory, including parents if necessary.
26933 as_fn_mkdir_p ()
26936 case $as_dir in #(
26937 -*) as_dir=./$as_dir;;
26938 esac
26939 test -d "$as_dir" || eval $as_mkdir_p || {
26940 as_dirs=
26941 while :; do
26942 case $as_dir in #(
26943 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26944 *) as_qdir=$as_dir;;
26945 esac
26946 as_dirs="'$as_qdir' $as_dirs"
26947 as_dir=`$as_dirname -- "$as_dir" ||
26948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26949 X"$as_dir" : 'X\(//\)[^/]' \| \
26950 X"$as_dir" : 'X\(//\)$' \| \
26951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26952 $as_echo X"$as_dir" |
26953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26954 s//\1/
26957 /^X\(\/\/\)[^/].*/{
26958 s//\1/
26961 /^X\(\/\/\)$/{
26962 s//\1/
26965 /^X\(\/\).*/{
26966 s//\1/
26969 s/.*/./; q'`
26970 test -d "$as_dir" && break
26971 done
26972 test -z "$as_dirs" || eval "mkdir $as_dirs"
26973 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26976 } # as_fn_mkdir_p
26977 if mkdir -p . 2>/dev/null; then
26978 as_mkdir_p='mkdir -p "$as_dir"'
26979 else
26980 test -d ./-p && rmdir ./-p
26981 as_mkdir_p=false
26984 if test -x / >/dev/null 2>&1; then
26985 as_test_x='test -x'
26986 else
26987 if ls -dL / >/dev/null 2>&1; then
26988 as_ls_L_option=L
26989 else
26990 as_ls_L_option=
26992 as_test_x='
26993 eval sh -c '\''
26994 if test -d "$1"; then
26995 test -d "$1/.";
26996 else
26997 case $1 in #(
26998 -*)set "./$1";;
26999 esac;
27000 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27001 ???[sx]*):;;*)false;;esac;fi
27002 '\'' sh
27005 as_executable_p=$as_test_x
27007 # Sed expression to map a string onto a valid CPP name.
27008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27010 # Sed expression to map a string onto a valid variable name.
27011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27014 exec 6>&1
27015 ## ----------------------------------- ##
27016 ## Main body of $CONFIG_STATUS script. ##
27017 ## ----------------------------------- ##
27018 _ASEOF
27019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27022 # Save the log message, to keep $0 and so on meaningful, and to
27023 # report actual input values of CONFIG_FILES etc. instead of their
27024 # values after options handling.
27025 ac_log="
27026 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27027 generated by GNU Autoconf 2.64. Invocation command line was
27029 CONFIG_FILES = $CONFIG_FILES
27030 CONFIG_HEADERS = $CONFIG_HEADERS
27031 CONFIG_LINKS = $CONFIG_LINKS
27032 CONFIG_COMMANDS = $CONFIG_COMMANDS
27033 $ $0 $@
27035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27038 _ACEOF
27040 case $ac_config_files in *"
27041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27042 esac
27044 case $ac_config_headers in *"
27045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27046 esac
27049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27050 # Files that config.status was made for.
27051 config_files="$ac_config_files"
27052 config_headers="$ac_config_headers"
27053 config_commands="$ac_config_commands"
27055 _ACEOF
27057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27058 ac_cs_usage="\
27059 \`$as_me' instantiates files and other configuration actions
27060 from templates according to the current configuration. Unless the files
27061 and actions are specified as TAGs, all are instantiated by default.
27063 Usage: $0 [OPTION]... [TAG]...
27065 -h, --help print this help, then exit
27066 -V, --version print version number and configuration settings, then exit
27067 -q, --quiet, --silent
27068 do not print progress messages
27069 -d, --debug don't remove temporary files
27070 --recheck update $as_me by reconfiguring in the same conditions
27071 --file=FILE[:TEMPLATE]
27072 instantiate the configuration file FILE
27073 --header=FILE[:TEMPLATE]
27074 instantiate the configuration header FILE
27076 Configuration files:
27077 $config_files
27079 Configuration headers:
27080 $config_headers
27082 Configuration commands:
27083 $config_commands
27085 Report bugs to the package provider.
27086 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27087 General help using GNU software: <http://www.gnu.org/gethelp/>."
27089 _ACEOF
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27091 ac_cs_version="\\
27092 GNU Fortran Runtime Library config.status 0.3
27093 configured by $0, generated by GNU Autoconf 2.64,
27094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27096 Copyright (C) 2009 Free Software Foundation, Inc.
27097 This config.status script is free software; the Free Software Foundation
27098 gives unlimited permission to copy, distribute and modify it."
27100 ac_pwd='$ac_pwd'
27101 srcdir='$srcdir'
27102 INSTALL='$INSTALL'
27103 MKDIR_P='$MKDIR_P'
27104 AWK='$AWK'
27105 test -n "\$AWK" || AWK=awk
27106 _ACEOF
27108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27109 # The default lists apply if the user does not specify any file.
27110 ac_need_defaults=:
27111 while test $# != 0
27113 case $1 in
27114 --*=*)
27115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27117 ac_shift=:
27120 ac_option=$1
27121 ac_optarg=$2
27122 ac_shift=shift
27124 esac
27126 case $ac_option in
27127 # Handling of the options.
27128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27129 ac_cs_recheck=: ;;
27130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27131 $as_echo "$ac_cs_version"; exit ;;
27132 --debug | --debu | --deb | --de | --d | -d )
27133 debug=: ;;
27134 --file | --fil | --fi | --f )
27135 $ac_shift
27136 case $ac_optarg in
27137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27138 esac
27139 as_fn_append CONFIG_FILES " '$ac_optarg'"
27140 ac_need_defaults=false;;
27141 --header | --heade | --head | --hea )
27142 $ac_shift
27143 case $ac_optarg in
27144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27145 esac
27146 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27147 ac_need_defaults=false;;
27148 --he | --h)
27149 # Conflict between --help and --header
27150 as_fn_error "ambiguous option: \`$1'
27151 Try \`$0 --help' for more information.";;
27152 --help | --hel | -h )
27153 $as_echo "$ac_cs_usage"; exit ;;
27154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27156 ac_cs_silent=: ;;
27158 # This is an error.
27159 -*) as_fn_error "unrecognized option: \`$1'
27160 Try \`$0 --help' for more information." ;;
27162 *) as_fn_append ac_config_targets " $1"
27163 ac_need_defaults=false ;;
27165 esac
27166 shift
27167 done
27169 ac_configure_extra_args=
27171 if $ac_cs_silent; then
27172 exec 6>/dev/null
27173 ac_configure_extra_args="$ac_configure_extra_args --silent"
27176 _ACEOF
27177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27178 if \$ac_cs_recheck; then
27179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27180 shift
27181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27182 CONFIG_SHELL='$SHELL'
27183 export CONFIG_SHELL
27184 exec "\$@"
27187 _ACEOF
27188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27189 exec 5>>config.log
27191 echo
27192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27193 ## Running $as_me. ##
27194 _ASBOX
27195 $as_echo "$ac_log"
27196 } >&5
27198 _ACEOF
27199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27201 # INIT-COMMANDS
27204 srcdir="$srcdir"
27205 host="$host"
27206 target="$target"
27207 with_multisubdir="$with_multisubdir"
27208 with_multisrctop="$with_multisrctop"
27209 with_target_subdir="$with_target_subdir"
27210 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27211 multi_basedir="$multi_basedir"
27212 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27213 CC="$CC"
27214 CXX="$CXX"
27215 GFORTRAN="$GFORTRAN"
27216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27219 # The HP-UX ksh and POSIX shell print the target directory to stdout
27220 # if CDPATH is set.
27221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27223 sed_quote_subst='$sed_quote_subst'
27224 double_quote_subst='$double_quote_subst'
27225 delay_variable_subst='$delay_variable_subst'
27226 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27227 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27228 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27229 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27230 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27231 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27232 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27233 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27234 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27235 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27236 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27237 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27238 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27239 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27240 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27241 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27242 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27243 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27244 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27245 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27246 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27247 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27248 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27249 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27250 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27251 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27252 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27253 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27254 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27255 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27256 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27257 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27258 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27259 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27260 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27261 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27262 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27263 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27264 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27265 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27266 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27267 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27268 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27269 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27270 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27271 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27272 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27273 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27274 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"`'
27275 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27276 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27277 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27278 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27279 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27280 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27281 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27282 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27283 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27284 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27285 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27286 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27287 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27288 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27289 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27290 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27291 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27292 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27293 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27294 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27295 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27296 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27297 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27298 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27299 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27300 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27301 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27302 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27303 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27304 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27305 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27306 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27307 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27308 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27309 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27310 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27311 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27312 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27313 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27314 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27315 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27316 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27317 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27318 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27319 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27320 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27321 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27322 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27323 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27324 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27325 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27326 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27327 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27328 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27329 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27330 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27331 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27332 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27333 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27334 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27335 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27336 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27337 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27338 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27339 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27340 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27341 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27342 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27343 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27344 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27345 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27346 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27347 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27348 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27349 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27350 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27351 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27352 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27353 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27354 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27355 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27356 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27357 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27358 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27359 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27360 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27361 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27362 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27363 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27364 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27365 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27366 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27367 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27368 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27369 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27370 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27371 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27372 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27373 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27374 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27375 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27376 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27377 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27378 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27379 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27380 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27381 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27382 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27383 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27384 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27385 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27386 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27387 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27388 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27389 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27390 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27391 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27392 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27393 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27394 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27395 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27396 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27397 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27398 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27399 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27400 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27402 LTCC='$LTCC'
27403 LTCFLAGS='$LTCFLAGS'
27404 compiler='$compiler_DEFAULT'
27406 # A function that is used when there is no print builtin or printf.
27407 func_fallback_echo ()
27409 eval 'cat <<_LTECHO_EOF
27411 _LTECHO_EOF'
27414 # Quote evaled strings.
27415 for var in SED \
27416 GREP \
27417 EGREP \
27418 FGREP \
27419 SHELL \
27420 ECHO \
27421 LD \
27422 NM \
27423 LN_S \
27424 lt_SP2NL \
27425 lt_NL2SP \
27426 reload_flag \
27427 OBJDUMP \
27428 deplibs_check_method \
27429 file_magic_cmd \
27430 AR \
27431 AR_FLAGS \
27432 STRIP \
27433 RANLIB \
27434 CC \
27435 CFLAGS \
27436 compiler \
27437 lt_cv_sys_global_symbol_pipe \
27438 lt_cv_sys_global_symbol_to_cdecl \
27439 lt_cv_sys_global_symbol_to_c_name_address \
27440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27441 lt_prog_compiler_no_builtin_flag \
27442 lt_prog_compiler_wl \
27443 lt_prog_compiler_pic \
27444 lt_prog_compiler_static \
27445 lt_cv_prog_compiler_c_o \
27446 need_locks \
27447 DSYMUTIL \
27448 NMEDIT \
27449 LIPO \
27450 OTOOL \
27451 OTOOL64 \
27452 shrext_cmds \
27453 export_dynamic_flag_spec \
27454 whole_archive_flag_spec \
27455 compiler_needs_object \
27456 with_gnu_ld \
27457 allow_undefined_flag \
27458 no_undefined_flag \
27459 hardcode_libdir_flag_spec \
27460 hardcode_libdir_flag_spec_ld \
27461 hardcode_libdir_separator \
27462 fix_srcfile_path \
27463 exclude_expsyms \
27464 include_expsyms \
27465 file_list_spec \
27466 variables_saved_for_relink \
27467 libname_spec \
27468 library_names_spec \
27469 soname_spec \
27470 install_override_mode \
27471 finish_eval \
27472 old_striplib \
27473 striplib \
27474 compiler_lib_search_dirs \
27475 predep_objects \
27476 postdep_objects \
27477 predeps \
27478 postdeps \
27479 compiler_lib_search_path \
27480 LD_FC \
27481 reload_flag_FC \
27482 compiler_FC \
27483 lt_prog_compiler_no_builtin_flag_FC \
27484 lt_prog_compiler_wl_FC \
27485 lt_prog_compiler_pic_FC \
27486 lt_prog_compiler_static_FC \
27487 lt_cv_prog_compiler_c_o_FC \
27488 export_dynamic_flag_spec_FC \
27489 whole_archive_flag_spec_FC \
27490 compiler_needs_object_FC \
27491 with_gnu_ld_FC \
27492 allow_undefined_flag_FC \
27493 no_undefined_flag_FC \
27494 hardcode_libdir_flag_spec_FC \
27495 hardcode_libdir_flag_spec_ld_FC \
27496 hardcode_libdir_separator_FC \
27497 fix_srcfile_path_FC \
27498 exclude_expsyms_FC \
27499 include_expsyms_FC \
27500 file_list_spec_FC \
27501 compiler_lib_search_dirs_FC \
27502 predep_objects_FC \
27503 postdep_objects_FC \
27504 predeps_FC \
27505 postdeps_FC \
27506 compiler_lib_search_path_FC; do
27507 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27508 *[\\\\\\\`\\"\\\$]*)
27509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27514 esac
27515 done
27517 # Double-quote double-evaled strings.
27518 for var in reload_cmds \
27519 old_postinstall_cmds \
27520 old_postuninstall_cmds \
27521 old_archive_cmds \
27522 extract_expsyms_cmds \
27523 old_archive_from_new_cmds \
27524 old_archive_from_expsyms_cmds \
27525 archive_cmds \
27526 archive_expsym_cmds \
27527 module_cmds \
27528 module_expsym_cmds \
27529 export_symbols_cmds \
27530 prelink_cmds \
27531 postinstall_cmds \
27532 postuninstall_cmds \
27533 finish_cmds \
27534 sys_lib_search_path_spec \
27535 sys_lib_dlsearch_path_spec \
27536 reload_cmds_FC \
27537 old_archive_cmds_FC \
27538 old_archive_from_new_cmds_FC \
27539 old_archive_from_expsyms_cmds_FC \
27540 archive_cmds_FC \
27541 archive_expsym_cmds_FC \
27542 module_cmds_FC \
27543 module_expsym_cmds_FC \
27544 export_symbols_cmds_FC \
27545 prelink_cmds_FC; do
27546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27547 *[\\\\\\\`\\"\\\$]*)
27548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27553 esac
27554 done
27556 ac_aux_dir='$ac_aux_dir'
27557 xsi_shell='$xsi_shell'
27558 lt_shell_append='$lt_shell_append'
27560 # See if we are running on zsh, and set the options which allow our
27561 # commands through without removal of \ escapes INIT.
27562 if test -n "\${ZSH_VERSION+set}" ; then
27563 setopt NO_GLOB_SUBST
27567 PACKAGE='$PACKAGE'
27568 VERSION='$VERSION'
27569 TIMESTAMP='$TIMESTAMP'
27570 RM='$RM'
27571 ofile='$ofile'
27578 GCC="$GCC"
27579 CC="$CC"
27580 acx_cv_header_stdint="$acx_cv_header_stdint"
27581 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27582 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27583 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27584 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27585 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27586 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27587 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27588 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27589 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27590 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27591 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27592 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27593 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27596 _ACEOF
27598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27600 # Handling of arguments.
27601 for ac_config_target in $ac_config_targets
27603 case $ac_config_target in
27604 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27605 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27607 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27608 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27610 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27612 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27613 esac
27614 done
27617 # If the user did not use the arguments to specify the items to instantiate,
27618 # then the envvar interface is used. Set only those that are not.
27619 # We use the long form for the default assignment because of an extremely
27620 # bizarre bug on SunOS 4.1.3.
27621 if $ac_need_defaults; then
27622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27627 # Have a temporary directory for convenience. Make it in the build tree
27628 # simply because there is no reason against having it here, and in addition,
27629 # creating and moving files from /tmp can sometimes cause problems.
27630 # Hook for its removal unless debugging.
27631 # Note that there is a small window in which the directory will not be cleaned:
27632 # after its creation but before its name has been assigned to `$tmp'.
27633 $debug ||
27635 tmp=
27636 trap 'exit_status=$?
27637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27639 trap 'as_fn_exit 1' 1 2 13 15
27641 # Create a (secure) tmp directory for tmp files.
27644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27645 test -n "$tmp" && test -d "$tmp"
27646 } ||
27648 tmp=./conf$$-$RANDOM
27649 (umask 077 && mkdir "$tmp")
27650 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27652 # Set up the scripts for CONFIG_FILES section.
27653 # No need to generate them if there are no CONFIG_FILES.
27654 # This happens for instance with `./config.status config.h'.
27655 if test -n "$CONFIG_FILES"; then
27658 ac_cr=`echo X | tr X '\015'`
27659 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27660 # But we know of no other shell where ac_cr would be empty at this
27661 # point, so we can use a bashism as a fallback.
27662 if test "x$ac_cr" = x; then
27663 eval ac_cr=\$\'\\r\'
27665 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27666 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27667 ac_cs_awk_cr='\r'
27668 else
27669 ac_cs_awk_cr=$ac_cr
27672 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27673 _ACEOF
27677 echo "cat >conf$$subs.awk <<_ACEOF" &&
27678 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27679 echo "_ACEOF"
27680 } >conf$$subs.sh ||
27681 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27682 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27683 ac_delim='%!_!# '
27684 for ac_last_try in false false false false false :; do
27685 . ./conf$$subs.sh ||
27686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27688 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27689 if test $ac_delim_n = $ac_delim_num; then
27690 break
27691 elif $ac_last_try; then
27692 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27693 else
27694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27696 done
27697 rm -f conf$$subs.sh
27699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27700 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27701 _ACEOF
27702 sed -n '
27704 s/^/S["/; s/!.*/"]=/
27707 s/^[^!]*!//
27708 :repl
27709 t repl
27710 s/'"$ac_delim"'$//
27711 t delim
27714 s/\(.\{148\}\).*/\1/
27715 t more1
27716 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27719 b repl
27720 :more1
27721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27724 s/.\{148\}//
27725 t nl
27726 :delim
27728 s/\(.\{148\}\).*/\1/
27729 t more2
27730 s/["\\]/\\&/g; s/^/"/; s/$/"/
27733 :more2
27734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27737 s/.\{148\}//
27738 t delim
27739 ' <conf$$subs.awk | sed '
27740 /^[^""]/{
27742 s/\n//
27744 ' >>$CONFIG_STATUS || ac_write_fail=1
27745 rm -f conf$$subs.awk
27746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27747 _ACAWK
27748 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27749 for (key in S) S_is_set[key] = 1
27750 FS = "\a"
27754 line = $ 0
27755 nfields = split(line, field, "@")
27756 substed = 0
27757 len = length(field[1])
27758 for (i = 2; i < nfields; i++) {
27759 key = field[i]
27760 keylen = length(key)
27761 if (S_is_set[key]) {
27762 value = S[key]
27763 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27764 len += length(value) + length(field[++i])
27765 substed = 1
27766 } else
27767 len += 1 + keylen
27770 print line
27773 _ACAWK
27774 _ACEOF
27775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27776 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27777 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27778 else
27780 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27781 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27782 _ACEOF
27784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27786 # trailing colons and then remove the whole line if VPATH becomes empty
27787 # (actually we leave an empty line to preserve line numbers).
27788 if test "x$srcdir" = x.; then
27789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27790 s/:*\$(srcdir):*/:/
27791 s/:*\${srcdir}:*/:/
27792 s/:*@srcdir@:*/:/
27793 s/^\([^=]*=[ ]*\):*/\1/
27794 s/:*$//
27795 s/^[^=]*=[ ]*$//
27799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27800 fi # test -n "$CONFIG_FILES"
27802 # Set up the scripts for CONFIG_HEADERS section.
27803 # No need to generate them if there are no CONFIG_HEADERS.
27804 # This happens for instance with `./config.status Makefile'.
27805 if test -n "$CONFIG_HEADERS"; then
27806 cat >"$tmp/defines.awk" <<\_ACAWK ||
27807 BEGIN {
27808 _ACEOF
27810 # Transform confdefs.h into an awk script `defines.awk', embedded as
27811 # here-document in config.status, that substitutes the proper values into
27812 # config.h.in to produce config.h.
27814 # Create a delimiter string that does not exist in confdefs.h, to ease
27815 # handling of long lines.
27816 ac_delim='%!_!# '
27817 for ac_last_try in false false :; do
27818 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27819 if test -z "$ac_t"; then
27820 break
27821 elif $ac_last_try; then
27822 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27823 else
27824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27826 done
27828 # For the awk script, D is an array of macro values keyed by name,
27829 # likewise P contains macro parameters if any. Preserve backslash
27830 # newline sequences.
27832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27833 sed -n '
27834 s/.\{148\}/&'"$ac_delim"'/g
27835 t rset
27836 :rset
27837 s/^[ ]*#[ ]*define[ ][ ]*/ /
27838 t def
27840 :def
27841 s/\\$//
27842 t bsnl
27843 s/["\\]/\\&/g
27844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27845 D["\1"]=" \3"/p
27846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27848 :bsnl
27849 s/["\\]/\\&/g
27850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27851 D["\1"]=" \3\\\\\\n"\\/p
27852 t cont
27853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27854 t cont
27856 :cont
27858 s/.\{148\}/&'"$ac_delim"'/g
27859 t clear
27860 :clear
27861 s/\\$//
27862 t bsnlc
27863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27865 :bsnlc
27866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27867 b cont
27868 ' <confdefs.h | sed '
27869 s/'"$ac_delim"'/"\\\
27870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27873 for (key in D) D_is_set[key] = 1
27874 FS = "\a"
27876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27877 line = \$ 0
27878 split(line, arg, " ")
27879 if (arg[1] == "#") {
27880 defundef = arg[2]
27881 mac1 = arg[3]
27882 } else {
27883 defundef = substr(arg[1], 2)
27884 mac1 = arg[2]
27886 split(mac1, mac2, "(") #)
27887 macro = mac2[1]
27888 prefix = substr(line, 1, index(line, defundef) - 1)
27889 if (D_is_set[macro]) {
27890 # Preserve the white space surrounding the "#".
27891 print prefix "define", macro P[macro] D[macro]
27892 next
27893 } else {
27894 # Replace #undef with comments. This is necessary, for example,
27895 # in the case of _POSIX_SOURCE, which is predefined and required
27896 # on some systems where configure will not decide to define it.
27897 if (defundef == "undef") {
27898 print "/*", prefix defundef, macro, "*/"
27899 next
27903 { print }
27904 _ACAWK
27905 _ACEOF
27906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27907 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27908 fi # test -n "$CONFIG_HEADERS"
27911 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27912 shift
27913 for ac_tag
27915 case $ac_tag in
27916 :[FHLC]) ac_mode=$ac_tag; continue;;
27917 esac
27918 case $ac_mode$ac_tag in
27919 :[FHL]*:*);;
27920 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27921 :[FH]-) ac_tag=-:-;;
27922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27923 esac
27924 ac_save_IFS=$IFS
27925 IFS=:
27926 set x $ac_tag
27927 IFS=$ac_save_IFS
27928 shift
27929 ac_file=$1
27930 shift
27932 case $ac_mode in
27933 :L) ac_source=$1;;
27934 :[FH])
27935 ac_file_inputs=
27936 for ac_f
27938 case $ac_f in
27939 -) ac_f="$tmp/stdin";;
27940 *) # Look for the file first in the build tree, then in the source tree
27941 # (if the path is not absolute). The absolute path cannot be DOS-style,
27942 # because $ac_f cannot contain `:'.
27943 test -f "$ac_f" ||
27944 case $ac_f in
27945 [\\/$]*) false;;
27946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27947 esac ||
27948 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27949 esac
27950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27951 as_fn_append ac_file_inputs " '$ac_f'"
27952 done
27954 # Let's still pretend it is `configure' which instantiates (i.e., don't
27955 # use $as_me), people would be surprised to read:
27956 # /* config.h. Generated by config.status. */
27957 configure_input='Generated from '`
27958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27959 `' by configure.'
27960 if test x"$ac_file" != x-; then
27961 configure_input="$ac_file. $configure_input"
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27963 $as_echo "$as_me: creating $ac_file" >&6;}
27965 # Neutralize special characters interpreted by sed in replacement strings.
27966 case $configure_input in #(
27967 *\&* | *\|* | *\\* )
27968 ac_sed_conf_input=`$as_echo "$configure_input" |
27969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27970 *) ac_sed_conf_input=$configure_input;;
27971 esac
27973 case $ac_tag in
27974 *:-:* | *:-) cat >"$tmp/stdin" \
27975 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27976 esac
27978 esac
27980 ac_dir=`$as_dirname -- "$ac_file" ||
27981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27982 X"$ac_file" : 'X\(//\)[^/]' \| \
27983 X"$ac_file" : 'X\(//\)$' \| \
27984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27985 $as_echo X"$ac_file" |
27986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27987 s//\1/
27990 /^X\(\/\/\)[^/].*/{
27991 s//\1/
27994 /^X\(\/\/\)$/{
27995 s//\1/
27998 /^X\(\/\).*/{
27999 s//\1/
28002 s/.*/./; q'`
28003 as_dir="$ac_dir"; as_fn_mkdir_p
28004 ac_builddir=.
28006 case "$ac_dir" in
28007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28010 # A ".." for each directory in $ac_dir_suffix.
28011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28012 case $ac_top_builddir_sub in
28013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28015 esac ;;
28016 esac
28017 ac_abs_top_builddir=$ac_pwd
28018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28019 # for backward compatibility:
28020 ac_top_builddir=$ac_top_build_prefix
28022 case $srcdir in
28023 .) # We are building in place.
28024 ac_srcdir=.
28025 ac_top_srcdir=$ac_top_builddir_sub
28026 ac_abs_top_srcdir=$ac_pwd ;;
28027 [\\/]* | ?:[\\/]* ) # Absolute name.
28028 ac_srcdir=$srcdir$ac_dir_suffix;
28029 ac_top_srcdir=$srcdir
28030 ac_abs_top_srcdir=$srcdir ;;
28031 *) # Relative name.
28032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28033 ac_top_srcdir=$ac_top_build_prefix$srcdir
28034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28035 esac
28036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28039 case $ac_mode in
28042 # CONFIG_FILE
28045 case $INSTALL in
28046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28048 esac
28049 ac_MKDIR_P=$MKDIR_P
28050 case $MKDIR_P in
28051 [\\/$]* | ?:[\\/]* ) ;;
28052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28053 esac
28054 _ACEOF
28056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28057 # If the template does not know about datarootdir, expand it.
28058 # FIXME: This hack should be removed a few years after 2.60.
28059 ac_datarootdir_hack=; ac_datarootdir_seen=
28060 ac_sed_dataroot='
28061 /datarootdir/ {
28065 /@datadir@/p
28066 /@docdir@/p
28067 /@infodir@/p
28068 /@localedir@/p
28069 /@mandir@/p'
28070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28071 *datarootdir*) ac_datarootdir_seen=yes;;
28072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28075 _ACEOF
28076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28077 ac_datarootdir_hack='
28078 s&@datadir@&$datadir&g
28079 s&@docdir@&$docdir&g
28080 s&@infodir@&$infodir&g
28081 s&@localedir@&$localedir&g
28082 s&@mandir@&$mandir&g
28083 s&\\\${datarootdir}&$datarootdir&g' ;;
28084 esac
28085 _ACEOF
28087 # Neutralize VPATH when `$srcdir' = `.'.
28088 # Shell code in configure.ac might set extrasub.
28089 # FIXME: do we really want to maintain this feature?
28090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28091 ac_sed_extra="$ac_vpsub
28092 $extrasub
28093 _ACEOF
28094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28097 s|@configure_input@|$ac_sed_conf_input|;t t
28098 s&@top_builddir@&$ac_top_builddir_sub&;t t
28099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28100 s&@srcdir@&$ac_srcdir&;t t
28101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28102 s&@top_srcdir@&$ac_top_srcdir&;t t
28103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28104 s&@builddir@&$ac_builddir&;t t
28105 s&@abs_builddir@&$ac_abs_builddir&;t t
28106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28107 s&@INSTALL@&$ac_INSTALL&;t t
28108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28109 $ac_datarootdir_hack
28111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28112 || as_fn_error "could not create $ac_file" "$LINENO" 5
28114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28115 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28118 which seems to be undefined. Please make sure it is defined." >&5
28119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28120 which seems to be undefined. Please make sure it is defined." >&2;}
28122 rm -f "$tmp/stdin"
28123 case $ac_file in
28124 -) cat "$tmp/out" && rm -f "$tmp/out";;
28125 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28126 esac \
28127 || as_fn_error "could not create $ac_file" "$LINENO" 5
28131 # CONFIG_HEADER
28133 if test x"$ac_file" != x-; then
28135 $as_echo "/* $configure_input */" \
28136 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28137 } >"$tmp/config.h" \
28138 || as_fn_error "could not create $ac_file" "$LINENO" 5
28139 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28142 else
28143 rm -f "$ac_file"
28144 mv "$tmp/config.h" "$ac_file" \
28145 || as_fn_error "could not create $ac_file" "$LINENO" 5
28147 else
28148 $as_echo "/* $configure_input */" \
28149 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28150 || as_fn_error "could not create -" "$LINENO" 5
28152 # Compute "$ac_file"'s index in $config_headers.
28153 _am_arg="$ac_file"
28154 _am_stamp_count=1
28155 for _am_header in $config_headers :; do
28156 case $_am_header in
28157 $_am_arg | $_am_arg:* )
28158 break ;;
28160 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28161 esac
28162 done
28163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28165 X"$_am_arg" : 'X\(//\)[^/]' \| \
28166 X"$_am_arg" : 'X\(//\)$' \| \
28167 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28168 $as_echo X"$_am_arg" |
28169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28170 s//\1/
28173 /^X\(\/\/\)[^/].*/{
28174 s//\1/
28177 /^X\(\/\/\)$/{
28178 s//\1/
28181 /^X\(\/\).*/{
28182 s//\1/
28185 s/.*/./; q'`/stamp-h$_am_stamp_count
28188 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28189 $as_echo "$as_me: executing $ac_file commands" >&6;}
28191 esac
28194 case $ac_file$ac_mode in
28195 "default-1":C)
28196 # Only add multilib support code if we just rebuilt the top-level
28197 # Makefile.
28198 case " $CONFIG_FILES " in
28199 *" Makefile "*)
28200 ac_file=Makefile . ${multi_basedir}/config-ml.in
28202 esac ;;
28203 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28204 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28205 # are listed without --file. Let's play safe and only enable the eval
28206 # if we detect the quoting.
28207 case $CONFIG_FILES in
28208 *\'*) eval set x "$CONFIG_FILES" ;;
28209 *) set x $CONFIG_FILES ;;
28210 esac
28211 shift
28212 for mf
28214 # Strip MF so we end up with the name of the file.
28215 mf=`echo "$mf" | sed -e 's/:.*$//'`
28216 # Check whether this is an Automake generated Makefile or not.
28217 # We used to match only the files named `Makefile.in', but
28218 # some people rename them; so instead we look at the file content.
28219 # Grep'ing the first line is not enough: some people post-process
28220 # each Makefile.in and add a new line on top of each file to say so.
28221 # Grep'ing the whole file is not good either: AIX grep has a line
28222 # limit of 2048, but all sed's we know have understand at least 4000.
28223 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28224 dirpart=`$as_dirname -- "$mf" ||
28225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28226 X"$mf" : 'X\(//\)[^/]' \| \
28227 X"$mf" : 'X\(//\)$' \| \
28228 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28229 $as_echo X"$mf" |
28230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28231 s//\1/
28234 /^X\(\/\/\)[^/].*/{
28235 s//\1/
28238 /^X\(\/\/\)$/{
28239 s//\1/
28242 /^X\(\/\).*/{
28243 s//\1/
28246 s/.*/./; q'`
28247 else
28248 continue
28250 # Extract the definition of DEPDIR, am__include, and am__quote
28251 # from the Makefile without running `make'.
28252 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28253 test -z "$DEPDIR" && continue
28254 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28255 test -z "am__include" && continue
28256 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28257 # When using ansi2knr, U may be empty or an underscore; expand it
28258 U=`sed -n 's/^U = //p' < "$mf"`
28259 # Find all dependency output files, they are included files with
28260 # $(DEPDIR) in their names. We invoke sed twice because it is the
28261 # simplest approach to changing $(DEPDIR) to its actual value in the
28262 # expansion.
28263 for file in `sed -n "
28264 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28265 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28266 # Make sure the directory exists.
28267 test -f "$dirpart/$file" && continue
28268 fdir=`$as_dirname -- "$file" ||
28269 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28270 X"$file" : 'X\(//\)[^/]' \| \
28271 X"$file" : 'X\(//\)$' \| \
28272 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28273 $as_echo X"$file" |
28274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28275 s//\1/
28278 /^X\(\/\/\)[^/].*/{
28279 s//\1/
28282 /^X\(\/\/\)$/{
28283 s//\1/
28286 /^X\(\/\).*/{
28287 s//\1/
28290 s/.*/./; q'`
28291 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28292 # echo "creating $dirpart/$file"
28293 echo '# dummy' > "$dirpart/$file"
28294 done
28295 done
28298 "libtool":C)
28300 # See if we are running on zsh, and set the options which allow our
28301 # commands through without removal of \ escapes.
28302 if test -n "${ZSH_VERSION+set}" ; then
28303 setopt NO_GLOB_SUBST
28306 cfgfile="${ofile}T"
28307 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28308 $RM "$cfgfile"
28310 cat <<_LT_EOF >> "$cfgfile"
28311 #! $SHELL
28313 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28314 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28316 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28318 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28319 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28320 # Written by Gordon Matzigkeit, 1996
28322 # This file is part of GNU Libtool.
28324 # GNU Libtool is free software; you can redistribute it and/or
28325 # modify it under the terms of the GNU General Public License as
28326 # published by the Free Software Foundation; either version 2 of
28327 # the License, or (at your option) any later version.
28329 # As a special exception to the GNU General Public License,
28330 # if you distribute this file as part of a program or library that
28331 # is built using GNU Libtool, you may include this file under the
28332 # same distribution terms that you use for the rest of that program.
28334 # GNU Libtool is distributed in the hope that it will be useful,
28335 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28336 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28337 # GNU General Public License for more details.
28339 # You should have received a copy of the GNU General Public License
28340 # along with GNU Libtool; see the file COPYING. If not, a copy
28341 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28342 # obtained by writing to the Free Software Foundation, Inc.,
28343 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28346 # The names of the tagged configurations supported by this script.
28347 available_tags="FC "
28349 # ### BEGIN LIBTOOL CONFIG
28351 # A sed program that does not truncate output.
28352 SED=$lt_SED
28354 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28355 Xsed="\$SED -e 1s/^X//"
28357 # A grep program that handles long lines.
28358 GREP=$lt_GREP
28360 # An ERE matcher.
28361 EGREP=$lt_EGREP
28363 # A literal string matcher.
28364 FGREP=$lt_FGREP
28366 # Shell to use when invoking shell scripts.
28367 SHELL=$lt_SHELL
28369 # An echo program that protects backslashes.
28370 ECHO=$lt_ECHO
28372 # Which release of libtool.m4 was used?
28373 macro_version=$macro_version
28374 macro_revision=$macro_revision
28376 # Whether or not to build shared libraries.
28377 build_libtool_libs=$enable_shared
28379 # Whether or not to build static libraries.
28380 build_old_libs=$enable_static
28382 # What type of objects to build.
28383 pic_mode=$pic_mode
28385 # Whether or not to optimize for fast installation.
28386 fast_install=$enable_fast_install
28388 # The host system.
28389 host_alias=$host_alias
28390 host=$host
28391 host_os=$host_os
28393 # The build system.
28394 build_alias=$build_alias
28395 build=$build
28396 build_os=$build_os
28398 # A BSD- or MS-compatible name lister.
28399 NM=$lt_NM
28401 # Whether we need soft or hard links.
28402 LN_S=$lt_LN_S
28404 # What is the maximum length of a command?
28405 max_cmd_len=$max_cmd_len
28407 # Object file suffix (normally "o").
28408 objext=$ac_objext
28410 # Executable file suffix (normally "").
28411 exeext=$exeext
28413 # whether the shell understands "unset".
28414 lt_unset=$lt_unset
28416 # turn spaces into newlines.
28417 SP2NL=$lt_lt_SP2NL
28419 # turn newlines into spaces.
28420 NL2SP=$lt_lt_NL2SP
28422 # An object symbol dumper.
28423 OBJDUMP=$lt_OBJDUMP
28425 # Method to check whether dependent libraries are shared objects.
28426 deplibs_check_method=$lt_deplibs_check_method
28428 # Command to use when deplibs_check_method == "file_magic".
28429 file_magic_cmd=$lt_file_magic_cmd
28431 # The archiver.
28432 AR=$lt_AR
28433 AR_FLAGS=$lt_AR_FLAGS
28435 # A symbol stripping program.
28436 STRIP=$lt_STRIP
28438 # Commands used to install an old-style archive.
28439 RANLIB=$lt_RANLIB
28440 old_postinstall_cmds=$lt_old_postinstall_cmds
28441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28443 # Whether to use a lock for old archive extraction.
28444 lock_old_archive_extraction=$lock_old_archive_extraction
28446 # A C compiler.
28447 LTCC=$lt_CC
28449 # LTCC compiler flags.
28450 LTCFLAGS=$lt_CFLAGS
28452 # Take the output of nm and produce a listing of raw symbols and C names.
28453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28455 # Transform the output of nm in a proper C declaration.
28456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28458 # Transform the output of nm in a C name address pair.
28459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28461 # Transform the output of nm in a C name address pair when lib prefix is needed.
28462 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28464 # The name of the directory that contains temporary libtool files.
28465 objdir=$objdir
28467 # Used to examine libraries when file_magic_cmd begins with "file".
28468 MAGIC_CMD=$MAGIC_CMD
28470 # Must we lock files when doing compilation?
28471 need_locks=$lt_need_locks
28473 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28474 DSYMUTIL=$lt_DSYMUTIL
28476 # Tool to change global to local symbols on Mac OS X.
28477 NMEDIT=$lt_NMEDIT
28479 # Tool to manipulate fat objects and archives on Mac OS X.
28480 LIPO=$lt_LIPO
28482 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28483 OTOOL=$lt_OTOOL
28485 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28486 OTOOL64=$lt_OTOOL64
28488 # Old archive suffix (normally "a").
28489 libext=$libext
28491 # Shared library suffix (normally ".so").
28492 shrext_cmds=$lt_shrext_cmds
28494 # The commands to extract the exported symbol list from a shared archive.
28495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28497 # Variables whose values should be saved in libtool wrapper scripts and
28498 # restored at link time.
28499 variables_saved_for_relink=$lt_variables_saved_for_relink
28501 # Do we need the "lib" prefix for modules?
28502 need_lib_prefix=$need_lib_prefix
28504 # Do we need a version for libraries?
28505 need_version=$need_version
28507 # Library versioning type.
28508 version_type=$version_type
28510 # Shared library runtime path variable.
28511 runpath_var=$runpath_var
28513 # Shared library path variable.
28514 shlibpath_var=$shlibpath_var
28516 # Is shlibpath searched before the hard-coded library search path?
28517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28519 # Format of library name prefix.
28520 libname_spec=$lt_libname_spec
28522 # List of archive names. First name is the real one, the rest are links.
28523 # The last name is the one that the linker finds with -lNAME
28524 library_names_spec=$lt_library_names_spec
28526 # The coded name of the library, if different from the real name.
28527 soname_spec=$lt_soname_spec
28529 # Permission mode override for installation of shared libraries.
28530 install_override_mode=$lt_install_override_mode
28532 # Command to use after installation of a shared archive.
28533 postinstall_cmds=$lt_postinstall_cmds
28535 # Command to use after uninstallation of a shared archive.
28536 postuninstall_cmds=$lt_postuninstall_cmds
28538 # Commands used to finish a libtool library installation in a directory.
28539 finish_cmds=$lt_finish_cmds
28541 # As "finish_cmds", except a single script fragment to be evaled but
28542 # not shown.
28543 finish_eval=$lt_finish_eval
28545 # Whether we should hardcode library paths into libraries.
28546 hardcode_into_libs=$hardcode_into_libs
28548 # Compile-time system search path for libraries.
28549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28551 # Run-time system search path for libraries.
28552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28554 # Whether dlopen is supported.
28555 dlopen_support=$enable_dlopen
28557 # Whether dlopen of programs is supported.
28558 dlopen_self=$enable_dlopen_self
28560 # Whether dlopen of statically linked programs is supported.
28561 dlopen_self_static=$enable_dlopen_self_static
28563 # Commands to strip libraries.
28564 old_striplib=$lt_old_striplib
28565 striplib=$lt_striplib
28568 # The linker used to build libraries.
28569 LD=$lt_LD
28571 # How to create reloadable object files.
28572 reload_flag=$lt_reload_flag
28573 reload_cmds=$lt_reload_cmds
28575 # Commands used to build an old-style archive.
28576 old_archive_cmds=$lt_old_archive_cmds
28578 # A language specific compiler.
28579 CC=$lt_compiler
28581 # Is the compiler the GNU compiler?
28582 with_gcc=$GCC
28584 # Compiler flag to turn off builtin functions.
28585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28587 # How to pass a linker flag through the compiler.
28588 wl=$lt_lt_prog_compiler_wl
28590 # Additional compiler flags for building library objects.
28591 pic_flag=$lt_lt_prog_compiler_pic
28593 # Compiler flag to prevent dynamic linking.
28594 link_static_flag=$lt_lt_prog_compiler_static
28596 # Does compiler simultaneously support -c and -o options?
28597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28599 # Whether or not to add -lc for building shared libraries.
28600 build_libtool_need_lc=$archive_cmds_need_lc
28602 # Whether or not to disallow shared libs when runtime libs are static.
28603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28605 # Compiler flag to allow reflexive dlopens.
28606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28608 # Compiler flag to generate shared objects directly from archives.
28609 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28611 # Whether the compiler copes with passing no objects directly.
28612 compiler_needs_object=$lt_compiler_needs_object
28614 # Create an old-style archive from a shared archive.
28615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28617 # Create a temporary old-style archive to link instead of a shared archive.
28618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28620 # Commands used to build a shared archive.
28621 archive_cmds=$lt_archive_cmds
28622 archive_expsym_cmds=$lt_archive_expsym_cmds
28624 # Commands used to build a loadable module if different from building
28625 # a shared archive.
28626 module_cmds=$lt_module_cmds
28627 module_expsym_cmds=$lt_module_expsym_cmds
28629 # Whether we are building with GNU ld or not.
28630 with_gnu_ld=$lt_with_gnu_ld
28632 # Flag that allows shared libraries with undefined symbols to be built.
28633 allow_undefined_flag=$lt_allow_undefined_flag
28635 # Flag that enforces no undefined symbols.
28636 no_undefined_flag=$lt_no_undefined_flag
28638 # Flag to hardcode \$libdir into a binary during linking.
28639 # This must work even if \$libdir does not exist
28640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28642 # If ld is used when linking, flag to hardcode \$libdir into a binary
28643 # during linking. This must work even if \$libdir does not exist.
28644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28646 # Whether we need a single "-rpath" flag with a separated argument.
28647 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28649 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28650 # DIR into the resulting binary.
28651 hardcode_direct=$hardcode_direct
28653 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28654 # DIR into the resulting binary and the resulting library dependency is
28655 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28656 # library is relocated.
28657 hardcode_direct_absolute=$hardcode_direct_absolute
28659 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28660 # into the resulting binary.
28661 hardcode_minus_L=$hardcode_minus_L
28663 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28664 # into the resulting binary.
28665 hardcode_shlibpath_var=$hardcode_shlibpath_var
28667 # Set to "yes" if building a shared library automatically hardcodes DIR
28668 # into the library and all subsequent libraries and executables linked
28669 # against it.
28670 hardcode_automatic=$hardcode_automatic
28672 # Set to yes if linker adds runtime paths of dependent libraries
28673 # to runtime path list.
28674 inherit_rpath=$inherit_rpath
28676 # Whether libtool must link a program against all its dependency libraries.
28677 link_all_deplibs=$link_all_deplibs
28679 # Fix the shell variable \$srcfile for the compiler.
28680 fix_srcfile_path=$lt_fix_srcfile_path
28682 # Set to "yes" if exported symbols are required.
28683 always_export_symbols=$always_export_symbols
28685 # The commands to list exported symbols.
28686 export_symbols_cmds=$lt_export_symbols_cmds
28688 # Symbols that should not be listed in the preloaded symbols.
28689 exclude_expsyms=$lt_exclude_expsyms
28691 # Symbols that must always be exported.
28692 include_expsyms=$lt_include_expsyms
28694 # Commands necessary for linking programs (against libraries) with templates.
28695 prelink_cmds=$lt_prelink_cmds
28697 # Specify filename containing input files.
28698 file_list_spec=$lt_file_list_spec
28700 # How to hardcode a shared library path into an executable.
28701 hardcode_action=$hardcode_action
28703 # The directories searched by this compiler when creating a shared library.
28704 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28706 # Dependencies to place before and after the objects being linked to
28707 # create a shared library.
28708 predep_objects=$lt_predep_objects
28709 postdep_objects=$lt_postdep_objects
28710 predeps=$lt_predeps
28711 postdeps=$lt_postdeps
28713 # The library search path used internally by the compiler when linking
28714 # a shared library.
28715 compiler_lib_search_path=$lt_compiler_lib_search_path
28717 # ### END LIBTOOL CONFIG
28719 _LT_EOF
28721 case $host_os in
28722 aix3*)
28723 cat <<\_LT_EOF >> "$cfgfile"
28724 # AIX sometimes has problems with the GCC collect2 program. For some
28725 # reason, if we set the COLLECT_NAMES environment variable, the problems
28726 # vanish in a puff of smoke.
28727 if test "X${COLLECT_NAMES+set}" != Xset; then
28728 COLLECT_NAMES=
28729 export COLLECT_NAMES
28731 _LT_EOF
28733 esac
28736 ltmain="$ac_aux_dir/ltmain.sh"
28739 # We use sed instead of cat because bash on DJGPP gets confused if
28740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28741 # text mode, it properly converts lines to CR/LF. This bash problem
28742 # is reportedly fixed, but why not run on old versions too?
28743 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28744 || (rm -f "$cfgfile"; exit 1)
28746 case $xsi_shell in
28747 yes)
28748 cat << \_LT_EOF >> "$cfgfile"
28750 # func_dirname file append nondir_replacement
28751 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28752 # otherwise set result to NONDIR_REPLACEMENT.
28753 func_dirname ()
28755 case ${1} in
28756 */*) func_dirname_result="${1%/*}${2}" ;;
28757 * ) func_dirname_result="${3}" ;;
28758 esac
28761 # func_basename file
28762 func_basename ()
28764 func_basename_result="${1##*/}"
28767 # func_dirname_and_basename file append nondir_replacement
28768 # perform func_basename and func_dirname in a single function
28769 # call:
28770 # dirname: Compute the dirname of FILE. If nonempty,
28771 # add APPEND to the result, otherwise set result
28772 # to NONDIR_REPLACEMENT.
28773 # value returned in "$func_dirname_result"
28774 # basename: Compute filename of FILE.
28775 # value retuned in "$func_basename_result"
28776 # Implementation must be kept synchronized with func_dirname
28777 # and func_basename. For efficiency, we do not delegate to
28778 # those functions but instead duplicate the functionality here.
28779 func_dirname_and_basename ()
28781 case ${1} in
28782 */*) func_dirname_result="${1%/*}${2}" ;;
28783 * ) func_dirname_result="${3}" ;;
28784 esac
28785 func_basename_result="${1##*/}"
28788 # func_stripname prefix suffix name
28789 # strip PREFIX and SUFFIX off of NAME.
28790 # PREFIX and SUFFIX must not contain globbing or regex special
28791 # characters, hashes, percent signs, but SUFFIX may contain a leading
28792 # dot (in which case that matches only a dot).
28793 func_stripname ()
28795 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28796 # positional parameters, so assign one to ordinary parameter first.
28797 func_stripname_result=${3}
28798 func_stripname_result=${func_stripname_result#"${1}"}
28799 func_stripname_result=${func_stripname_result%"${2}"}
28802 # func_opt_split
28803 func_opt_split ()
28805 func_opt_split_opt=${1%%=*}
28806 func_opt_split_arg=${1#*=}
28809 # func_lo2o object
28810 func_lo2o ()
28812 case ${1} in
28813 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28814 *) func_lo2o_result=${1} ;;
28815 esac
28818 # func_xform libobj-or-source
28819 func_xform ()
28821 func_xform_result=${1%.*}.lo
28824 # func_arith arithmetic-term...
28825 func_arith ()
28827 func_arith_result=$(( $* ))
28830 # func_len string
28831 # STRING may not start with a hyphen.
28832 func_len ()
28834 func_len_result=${#1}
28837 _LT_EOF
28839 *) # Bourne compatible functions.
28840 cat << \_LT_EOF >> "$cfgfile"
28842 # func_dirname file append nondir_replacement
28843 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28844 # otherwise set result to NONDIR_REPLACEMENT.
28845 func_dirname ()
28847 # Extract subdirectory from the argument.
28848 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28849 if test "X$func_dirname_result" = "X${1}"; then
28850 func_dirname_result="${3}"
28851 else
28852 func_dirname_result="$func_dirname_result${2}"
28856 # func_basename file
28857 func_basename ()
28859 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28863 # func_stripname prefix suffix name
28864 # strip PREFIX and SUFFIX off of NAME.
28865 # PREFIX and SUFFIX must not contain globbing or regex special
28866 # characters, hashes, percent signs, but SUFFIX may contain a leading
28867 # dot (in which case that matches only a dot).
28868 # func_strip_suffix prefix name
28869 func_stripname ()
28871 case ${2} in
28872 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28873 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28874 esac
28877 # sed scripts:
28878 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28879 my_sed_long_arg='1s/^-[^=]*=//'
28881 # func_opt_split
28882 func_opt_split ()
28884 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28885 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28888 # func_lo2o object
28889 func_lo2o ()
28891 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28894 # func_xform libobj-or-source
28895 func_xform ()
28897 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28900 # func_arith arithmetic-term...
28901 func_arith ()
28903 func_arith_result=`expr "$@"`
28906 # func_len string
28907 # STRING may not start with a hyphen.
28908 func_len ()
28910 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28913 _LT_EOF
28914 esac
28916 case $lt_shell_append in
28917 yes)
28918 cat << \_LT_EOF >> "$cfgfile"
28920 # func_append var value
28921 # Append VALUE to the end of shell variable VAR.
28922 func_append ()
28924 eval "$1+=\$2"
28926 _LT_EOF
28929 cat << \_LT_EOF >> "$cfgfile"
28931 # func_append var value
28932 # Append VALUE to the end of shell variable VAR.
28933 func_append ()
28935 eval "$1=\$$1\$2"
28938 _LT_EOF
28940 esac
28943 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28944 || (rm -f "$cfgfile"; exit 1)
28946 mv -f "$cfgfile" "$ofile" ||
28947 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28948 chmod +x "$ofile"
28951 cat <<_LT_EOF >> "$ofile"
28953 # ### BEGIN LIBTOOL TAG CONFIG: FC
28955 # The linker used to build libraries.
28956 LD=$lt_LD_FC
28958 # How to create reloadable object files.
28959 reload_flag=$lt_reload_flag_FC
28960 reload_cmds=$lt_reload_cmds_FC
28962 # Commands used to build an old-style archive.
28963 old_archive_cmds=$lt_old_archive_cmds_FC
28965 # A language specific compiler.
28966 CC=$lt_compiler_FC
28968 # Is the compiler the GNU compiler?
28969 with_gcc=$GCC_FC
28971 # Compiler flag to turn off builtin functions.
28972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28974 # How to pass a linker flag through the compiler.
28975 wl=$lt_lt_prog_compiler_wl_FC
28977 # Additional compiler flags for building library objects.
28978 pic_flag=$lt_lt_prog_compiler_pic_FC
28980 # Compiler flag to prevent dynamic linking.
28981 link_static_flag=$lt_lt_prog_compiler_static_FC
28983 # Does compiler simultaneously support -c and -o options?
28984 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28986 # Whether or not to add -lc for building shared libraries.
28987 build_libtool_need_lc=$archive_cmds_need_lc_FC
28989 # Whether or not to disallow shared libs when runtime libs are static.
28990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28992 # Compiler flag to allow reflexive dlopens.
28993 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28995 # Compiler flag to generate shared objects directly from archives.
28996 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28998 # Whether the compiler copes with passing no objects directly.
28999 compiler_needs_object=$lt_compiler_needs_object_FC
29001 # Create an old-style archive from a shared archive.
29002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29004 # Create a temporary old-style archive to link instead of a shared archive.
29005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29007 # Commands used to build a shared archive.
29008 archive_cmds=$lt_archive_cmds_FC
29009 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29011 # Commands used to build a loadable module if different from building
29012 # a shared archive.
29013 module_cmds=$lt_module_cmds_FC
29014 module_expsym_cmds=$lt_module_expsym_cmds_FC
29016 # Whether we are building with GNU ld or not.
29017 with_gnu_ld=$lt_with_gnu_ld_FC
29019 # Flag that allows shared libraries with undefined symbols to be built.
29020 allow_undefined_flag=$lt_allow_undefined_flag_FC
29022 # Flag that enforces no undefined symbols.
29023 no_undefined_flag=$lt_no_undefined_flag_FC
29025 # Flag to hardcode \$libdir into a binary during linking.
29026 # This must work even if \$libdir does not exist
29027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29029 # If ld is used when linking, flag to hardcode \$libdir into a binary
29030 # during linking. This must work even if \$libdir does not exist.
29031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29033 # Whether we need a single "-rpath" flag with a separated argument.
29034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29037 # DIR into the resulting binary.
29038 hardcode_direct=$hardcode_direct_FC
29040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29041 # DIR into the resulting binary and the resulting library dependency is
29042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29043 # library is relocated.
29044 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29047 # into the resulting binary.
29048 hardcode_minus_L=$hardcode_minus_L_FC
29050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29051 # into the resulting binary.
29052 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29054 # Set to "yes" if building a shared library automatically hardcodes DIR
29055 # into the library and all subsequent libraries and executables linked
29056 # against it.
29057 hardcode_automatic=$hardcode_automatic_FC
29059 # Set to yes if linker adds runtime paths of dependent libraries
29060 # to runtime path list.
29061 inherit_rpath=$inherit_rpath_FC
29063 # Whether libtool must link a program against all its dependency libraries.
29064 link_all_deplibs=$link_all_deplibs_FC
29066 # Fix the shell variable \$srcfile for the compiler.
29067 fix_srcfile_path=$lt_fix_srcfile_path_FC
29069 # Set to "yes" if exported symbols are required.
29070 always_export_symbols=$always_export_symbols_FC
29072 # The commands to list exported symbols.
29073 export_symbols_cmds=$lt_export_symbols_cmds_FC
29075 # Symbols that should not be listed in the preloaded symbols.
29076 exclude_expsyms=$lt_exclude_expsyms_FC
29078 # Symbols that must always be exported.
29079 include_expsyms=$lt_include_expsyms_FC
29081 # Commands necessary for linking programs (against libraries) with templates.
29082 prelink_cmds=$lt_prelink_cmds_FC
29084 # Specify filename containing input files.
29085 file_list_spec=$lt_file_list_spec_FC
29087 # How to hardcode a shared library path into an executable.
29088 hardcode_action=$hardcode_action_FC
29090 # The directories searched by this compiler when creating a shared library.
29091 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29093 # Dependencies to place before and after the objects being linked to
29094 # create a shared library.
29095 predep_objects=$lt_predep_objects_FC
29096 postdep_objects=$lt_postdep_objects_FC
29097 predeps=$lt_predeps_FC
29098 postdeps=$lt_postdeps_FC
29100 # The library search path used internally by the compiler when linking
29101 # a shared library.
29102 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29104 # ### END LIBTOOL TAG CONFIG: FC
29105 _LT_EOF
29108 "gstdint.h":C)
29109 if test "$GCC" = yes; then
29110 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29111 else
29112 echo "/* generated for $CC */" > tmp-stdint.h
29115 sed 's/^ *//' >> tmp-stdint.h <<EOF
29117 #ifndef GCC_GENERATED_STDINT_H
29118 #define GCC_GENERATED_STDINT_H 1
29120 #include <sys/types.h>
29123 if test "$acx_cv_header_stdint" != stdint.h; then
29124 echo "#include <stddef.h>" >> tmp-stdint.h
29126 if test "$acx_cv_header_stdint" != stddef.h; then
29127 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29130 sed 's/^ *//' >> tmp-stdint.h <<EOF
29131 /* glibc uses these symbols as guards to prevent redefinitions. */
29132 #ifdef __int8_t_defined
29133 #define _INT8_T
29134 #define _INT16_T
29135 #define _INT32_T
29136 #endif
29137 #ifdef __uint32_t_defined
29138 #define _UINT32_T
29139 #endif
29143 # ----------------- done header, emit basic int types -------------
29144 if test "$acx_cv_header_stdint" = stddef.h; then
29145 sed 's/^ *//' >> tmp-stdint.h <<EOF
29147 #ifndef _UINT8_T
29148 #define _UINT8_T
29149 #ifndef __uint8_t_defined
29150 #define __uint8_t_defined
29151 #ifndef uint8_t
29152 typedef unsigned $acx_cv_type_int8_t uint8_t;
29153 #endif
29154 #endif
29155 #endif
29157 #ifndef _UINT16_T
29158 #define _UINT16_T
29159 #ifndef __uint16_t_defined
29160 #define __uint16_t_defined
29161 #ifndef uint16_t
29162 typedef unsigned $acx_cv_type_int16_t uint16_t;
29163 #endif
29164 #endif
29165 #endif
29167 #ifndef _UINT32_T
29168 #define _UINT32_T
29169 #ifndef __uint32_t_defined
29170 #define __uint32_t_defined
29171 #ifndef uint32_t
29172 typedef unsigned $acx_cv_type_int32_t uint32_t;
29173 #endif
29174 #endif
29175 #endif
29177 #ifndef _INT8_T
29178 #define _INT8_T
29179 #ifndef __int8_t_defined
29180 #define __int8_t_defined
29181 #ifndef int8_t
29182 typedef $acx_cv_type_int8_t int8_t;
29183 #endif
29184 #endif
29185 #endif
29187 #ifndef _INT16_T
29188 #define _INT16_T
29189 #ifndef __int16_t_defined
29190 #define __int16_t_defined
29191 #ifndef int16_t
29192 typedef $acx_cv_type_int16_t int16_t;
29193 #endif
29194 #endif
29195 #endif
29197 #ifndef _INT32_T
29198 #define _INT32_T
29199 #ifndef __int32_t_defined
29200 #define __int32_t_defined
29201 #ifndef int32_t
29202 typedef $acx_cv_type_int32_t int32_t;
29203 #endif
29204 #endif
29205 #endif
29207 elif test "$ac_cv_type_u_int32_t" = yes; then
29208 sed 's/^ *//' >> tmp-stdint.h <<EOF
29210 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29211 #ifndef _INT8_T
29212 #define _INT8_T
29213 #endif
29214 #ifndef _INT16_T
29215 #define _INT16_T
29216 #endif
29217 #ifndef _INT32_T
29218 #define _INT32_T
29219 #endif
29221 #ifndef _UINT8_T
29222 #define _UINT8_T
29223 #ifndef __uint8_t_defined
29224 #define __uint8_t_defined
29225 #ifndef uint8_t
29226 typedef u_int8_t uint8_t;
29227 #endif
29228 #endif
29229 #endif
29231 #ifndef _UINT16_T
29232 #define _UINT16_T
29233 #ifndef __uint16_t_defined
29234 #define __uint16_t_defined
29235 #ifndef uint16_t
29236 typedef u_int16_t uint16_t;
29237 #endif
29238 #endif
29239 #endif
29241 #ifndef _UINT32_T
29242 #define _UINT32_T
29243 #ifndef __uint32_t_defined
29244 #define __uint32_t_defined
29245 #ifndef uint32_t
29246 typedef u_int32_t uint32_t;
29247 #endif
29248 #endif
29249 #endif
29251 else
29252 sed 's/^ *//' >> tmp-stdint.h <<EOF
29254 /* Some systems have guard macros to prevent redefinitions, define them. */
29255 #ifndef _INT8_T
29256 #define _INT8_T
29257 #endif
29258 #ifndef _INT16_T
29259 #define _INT16_T
29260 #endif
29261 #ifndef _INT32_T
29262 #define _INT32_T
29263 #endif
29264 #ifndef _UINT8_T
29265 #define _UINT8_T
29266 #endif
29267 #ifndef _UINT16_T
29268 #define _UINT16_T
29269 #endif
29270 #ifndef _UINT32_T
29271 #define _UINT32_T
29272 #endif
29276 # ------------- done basic int types, emit int64_t types ------------
29277 if test "$ac_cv_type_uint64_t" = yes; then
29278 sed 's/^ *//' >> tmp-stdint.h <<EOF
29280 /* system headers have good uint64_t and int64_t */
29281 #ifndef _INT64_T
29282 #define _INT64_T
29283 #endif
29284 #ifndef _UINT64_T
29285 #define _UINT64_T
29286 #endif
29288 elif test "$ac_cv_type_u_int64_t" = yes; then
29289 sed 's/^ *//' >> tmp-stdint.h <<EOF
29291 /* system headers have an u_int64_t (and int64_t) */
29292 #ifndef _INT64_T
29293 #define _INT64_T
29294 #endif
29295 #ifndef _UINT64_T
29296 #define _UINT64_T
29297 #ifndef __uint64_t_defined
29298 #define __uint64_t_defined
29299 #ifndef uint64_t
29300 typedef u_int64_t uint64_t;
29301 #endif
29302 #endif
29303 #endif
29305 elif test -n "$acx_cv_type_int64_t"; then
29306 sed 's/^ *//' >> tmp-stdint.h <<EOF
29308 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29309 #ifndef _INT64_T
29310 #define _INT64_T
29311 #ifndef int64_t
29312 typedef $acx_cv_type_int64_t int64_t;
29313 #endif
29314 #endif
29315 #ifndef _UINT64_T
29316 #define _UINT64_T
29317 #ifndef __uint64_t_defined
29318 #define __uint64_t_defined
29319 #ifndef uint64_t
29320 typedef unsigned $acx_cv_type_int64_t uint64_t;
29321 #endif
29322 #endif
29323 #endif
29325 else
29326 sed 's/^ *//' >> tmp-stdint.h <<EOF
29328 /* some common heuristics for int64_t, using compiler-specific tests */
29329 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29330 #ifndef _INT64_T
29331 #define _INT64_T
29332 #ifndef __int64_t_defined
29333 #ifndef int64_t
29334 typedef long long int64_t;
29335 #endif
29336 #endif
29337 #endif
29338 #ifndef _UINT64_T
29339 #define _UINT64_T
29340 #ifndef uint64_t
29341 typedef unsigned long long uint64_t;
29342 #endif
29343 #endif
29345 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29346 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29347 does not implement __extension__. But that compiler doesn't define
29348 __GNUC_MINOR__. */
29349 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29350 # define __extension__
29351 # endif
29353 # ifndef _INT64_T
29354 # define _INT64_T
29355 # ifndef int64_t
29356 __extension__ typedef long long int64_t;
29357 # endif
29358 # endif
29359 # ifndef _UINT64_T
29360 # define _UINT64_T
29361 # ifndef uint64_t
29362 __extension__ typedef unsigned long long uint64_t;
29363 # endif
29364 # endif
29366 #elif !defined __STRICT_ANSI__
29367 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29369 # ifndef _INT64_T
29370 # define _INT64_T
29371 # ifndef int64_t
29372 typedef __int64 int64_t;
29373 # endif
29374 # endif
29375 # ifndef _UINT64_T
29376 # define _UINT64_T
29377 # ifndef uint64_t
29378 typedef unsigned __int64 uint64_t;
29379 # endif
29380 # endif
29381 # endif /* compiler */
29383 #endif /* ANSI version */
29387 # ------------- done int64_t types, emit intptr types ------------
29388 if test "$ac_cv_type_uintptr_t" != yes; then
29389 sed 's/^ *//' >> tmp-stdint.h <<EOF
29391 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29392 #ifndef __uintptr_t_defined
29393 #ifndef uintptr_t
29394 typedef u$acx_cv_type_intptr_t uintptr_t;
29395 #endif
29396 #endif
29397 #ifndef __intptr_t_defined
29398 #ifndef intptr_t
29399 typedef $acx_cv_type_intptr_t intptr_t;
29400 #endif
29401 #endif
29405 # ------------- done intptr types, emit int_least types ------------
29406 if test "$ac_cv_type_int_least32_t" != yes; then
29407 sed 's/^ *//' >> tmp-stdint.h <<EOF
29409 /* Define int_least types */
29410 typedef int8_t int_least8_t;
29411 typedef int16_t int_least16_t;
29412 typedef int32_t int_least32_t;
29413 #ifdef _INT64_T
29414 typedef int64_t int_least64_t;
29415 #endif
29417 typedef uint8_t uint_least8_t;
29418 typedef uint16_t uint_least16_t;
29419 typedef uint32_t uint_least32_t;
29420 #ifdef _UINT64_T
29421 typedef uint64_t uint_least64_t;
29422 #endif
29426 # ------------- done intptr types, emit int_fast types ------------
29427 if test "$ac_cv_type_int_fast32_t" != yes; then
29428 sed 's/^ *//' >> tmp-stdint.h <<EOF
29430 /* Define int_fast types. short is often slow */
29431 typedef int8_t int_fast8_t;
29432 typedef int int_fast16_t;
29433 typedef int32_t int_fast32_t;
29434 #ifdef _INT64_T
29435 typedef int64_t int_fast64_t;
29436 #endif
29438 typedef uint8_t uint_fast8_t;
29439 typedef unsigned int uint_fast16_t;
29440 typedef uint32_t uint_fast32_t;
29441 #ifdef _UINT64_T
29442 typedef uint64_t uint_fast64_t;
29443 #endif
29447 if test "$ac_cv_type_uintmax_t" != yes; then
29448 sed 's/^ *//' >> tmp-stdint.h <<EOF
29450 /* Define intmax based on what we found */
29451 #ifndef intmax_t
29452 #ifdef _INT64_T
29453 typedef int64_t intmax_t;
29454 #else
29455 typedef long intmax_t;
29456 #endif
29457 #endif
29458 #ifndef uintmax_t
29459 #ifdef _UINT64_T
29460 typedef uint64_t uintmax_t;
29461 #else
29462 typedef unsigned long uintmax_t;
29463 #endif
29464 #endif
29468 sed 's/^ *//' >> tmp-stdint.h <<EOF
29470 #endif /* GCC_GENERATED_STDINT_H */
29473 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29474 rm -f tmp-stdint.h
29475 else
29476 mv -f tmp-stdint.h gstdint.h
29481 esac
29482 done # for ac_tag
29485 as_fn_exit 0
29486 _ACEOF
29487 ac_clean_files=$ac_clean_files_save
29489 test $ac_write_fail = 0 ||
29490 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29493 # configure is writing to config.log, and then calls config.status.
29494 # config.status does its own redirection, appending to config.log.
29495 # Unfortunately, on DOS this fails, as config.log is still kept open
29496 # by configure, so config.status won't be able to write to it; its
29497 # output is simply discarded. So we exec the FD to /dev/null,
29498 # effectively closing config.log, so it can be properly (re)opened and
29499 # appended to by config.status. When coming back to configure, we
29500 # need to make the FD available again.
29501 if test "$no_create" != yes; then
29502 ac_cs_success=:
29503 ac_config_status_args=
29504 test "$silent" = yes &&
29505 ac_config_status_args="$ac_config_status_args --quiet"
29506 exec 5>/dev/null
29507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29508 exec 5>>config.log
29509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29510 # would make configure fail if this is the last instruction.
29511 $ac_cs_success || as_fn_exit $?
29513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}