PR target/60504
[official-gcc.git] / libgfortran / configure
blob23f57c7af379ff53d2b3e2c073f4bf60bc180f5a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 IEEE_FLAGS
609 FPU_HOST_HEADER
610 LIBGFOR_BUILD_QUAD_FALSE
611 LIBGFOR_BUILD_QUAD_TRUE
612 LIBQUADINCLUDE
613 LIBQUADLIB_DEP
614 LIBQUADLIB
615 LIBQUADSPEC
616 extra_ldflags_libgfortran
617 ac_ct_FC
618 FCFLAGS
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 OBJDUMP
629 LN_S
631 ac_ct_DUMPBIN
632 DUMPBIN
634 FGREP
636 LIBTOOL
637 RANLIB
640 SECTION_FLAGS
641 LIBGFOR_USE_SYMVER_SUN_FALSE
642 LIBGFOR_USE_SYMVER_SUN_TRUE
643 LIBGFOR_USE_SYMVER_GNU_FALSE
644 LIBGFOR_USE_SYMVER_GNU_TRUE
645 LIBGFOR_USE_SYMVER_FALSE
646 LIBGFOR_USE_SYMVER_TRUE
647 AM_CFLAGS
648 AM_FCFLAGS
649 toolexeclibdir
650 toolexecdir
651 EGREP
652 GREP
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 am__nodep
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
671 multi_basedir
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_noncanonical
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 onestep
708 onestep_FALSE
709 onestep_TRUE
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 build_os
715 build_vendor
716 build_cpu
717 build
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 with_build_libsubdir
760 enable_version_specific_runtime_libs
761 enable_intermodule
762 enable_maintainer_mode
763 enable_multilib
764 enable_dependency_tracking
765 enable_symvers
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
772 enable_largefile
773 enable_libquadmath_support
774 with_system_libunwind
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
786 FCFLAGS'
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
837 ac_prev=
838 ac_dashdash=
839 for ac_option
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
857 ac_dashdash=yes ;;
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
876 --config-cache | -C)
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 esac
1194 done
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1280 /^X\(\/\/\)$/{
1281 s//\1/
1284 /^X\(\/\).*/{
1285 s//\1/
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1293 else
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1383 cat <<\_ACEOF
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-version-specific-runtime-libs
1408 specify that runtime libraries should be installed
1409 in a compiler-specific directory
1410 --enable-intermodule build the library in one step
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-multilib build many library versions (default)
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --disable-symvers disable symbol versioning for libgfortran
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-largefile omit support for large files
1423 --disable-libquadmath-support
1424 disable libquadmath support for Fortran
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-build-libsubdir=DIR Directory where to find libraries for build system
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-system-libunwind use installed libunwind
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 CPP C preprocessor
1444 FC Fortran compiler command
1445 FCFLAGS Fortran compiler flags
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to the package provider.
1451 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1452 General help using GNU software: <http://www.gnu.org/gethelp/>.
1453 _ACEOF
1454 ac_status=$?
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 GNU Fortran Runtime Library configure 0.3
1516 generated by GNU Autoconf 2.64
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1560 ac_retval=1
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } >/dev/null && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1602 } # ac_fn_c_try_cpp
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 $as_echo_n "(cached) " >&6
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1651 rm -f conftest.err conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 esac
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 eval "$3=\$ac_header_compiler"
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 } # ac_fn_c_check_header_mongrel
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1731 } # ac_fn_c_try_run
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 $as_test_x conftest$ac_exeext
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=1
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 if test x$gcc_no_link = xyes; then
1822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_fc_try_compile LINENO
1881 # ---------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_fc_try_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext
1887 if { { ac_try="$ac_compile"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_compile") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_fc_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest.$ac_objext; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1916 } # ac_fn_fc_try_compile
1918 # ac_fn_fc_try_link LINENO
1919 # ------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_fc_try_link ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_fc_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 $as_test_x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 return $ac_retval
1962 } # ac_fn_fc_try_link
1964 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1965 # -------------------------------------------
1966 # Tests whether TYPE exists after having included INCLUDES, setting cache
1967 # variable VAR accordingly.
1968 ac_fn_c_check_type ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1975 else
1976 eval "$3=no"
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 main ()
1983 if (sizeof ($2))
1984 return 0;
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 if (sizeof (($2)))
1997 return 0;
1999 return 0;
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2004 else
2005 eval "$3=yes"
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 } # ac_fn_c_check_type
2018 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2019 # --------------------------------------------
2020 # Tries to find the compile-time value of EXPR in a program that includes
2021 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2022 # computed
2023 ac_fn_c_compute_int ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 if test "$cross_compiling" = yes; then
2027 # Depending upon the size, compute the lo and hi bounds.
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static int test_array [1 - 2 * !(($2) >= 0)];
2035 test_array [0] = 0
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=0 ac_mid=0
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2051 test_array [0] = 0
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_hi=$ac_mid; break
2059 else
2060 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2061 if test $ac_lo -le $ac_mid; then
2062 ac_lo= ac_hi=
2063 break
2065 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 done
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) < 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_hi=-1 ac_mid=-1
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_lo=$ac_mid; break
2101 else
2102 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2103 if test $ac_mid -le $ac_hi; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 ac_lo= ac_hi=
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 # Binary search between lo and hi bounds.
2118 while test "x$ac_lo" != "x$ac_hi"; do
2119 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 test_array [0] = 0
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid
2135 else
2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 case $ac_lo in #((
2141 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2142 '') ac_retval=1 ;;
2143 esac
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2148 static long int longval () { return $2; }
2149 static unsigned long int ulongval () { return $2; }
2150 #include <stdio.h>
2151 #include <stdlib.h>
2153 main ()
2156 FILE *f = fopen ("conftest.val", "w");
2157 if (! f)
2158 return 1;
2159 if (($2) < 0)
2161 long int i = longval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%ld", i);
2166 else
2168 unsigned long int i = ulongval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%lu", i);
2173 /* Do not output a trailing newline, as this causes \r\n confusion
2174 on some platforms. */
2175 return ferror (f) || fclose (f) != 0;
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_run "$LINENO"; then :
2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2183 else
2184 ac_retval=1
2186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 conftest.$ac_objext conftest.beam conftest.$ac_ext
2188 rm -f conftest.val
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 return $ac_retval
2194 } # ac_fn_c_compute_int
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2212 main ()
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2218 return 0;
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2228 main ()
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2234 return 0;
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 eval "$4=no"
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_check_member
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2256 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2257 generated by GNU Autoconf 2.64. Invocation command line was
2259 $ $0 $@
2261 _ACEOF
2262 exec 5>>config.log
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2286 _ASUNAME
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2297 } >&5
2299 cat >&5 <<_ACEOF
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2306 _ACEOF
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2320 for ac_arg
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2349 as_fn_append ac_configure_args " '$ac_arg'"
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2365 echo
2367 cat <<\_ASBOX
2368 ## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##
2371 _ASBOX
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
2390 (set) 2>&1 |
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2393 sed -n \
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 esac |
2401 sort
2403 echo
2405 cat <<\_ASBOX
2406 ## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##
2409 _ASBOX
2410 echo
2411 for ac_var in $ac_subst_vars
2413 eval ac_val=\$$ac_var
2414 case $ac_val in
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 esac
2417 $as_echo "$ac_var='\''$ac_val'\''"
2418 done | sort
2419 echo
2421 if test -n "$ac_subst_files"; then
2422 cat <<\_ASBOX
2423 ## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##
2426 _ASBOX
2427 echo
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2439 if test -s confdefs.h; then
2440 cat <<\_ASBOX
2441 ## ----------- ##
2442 ## confdefs.h. ##
2443 ## ----------- ##
2444 _ASBOX
2445 echo
2446 cat confdefs.h
2447 echo
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2452 } >&5
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 exit $exit_status
2457 for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 done
2460 ac_signal=0
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2465 $as_echo "/* confdefs.h */" > confdefs.h
2467 # Predefined preprocessor variables.
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2491 _ACEOF
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2496 ac_site_file1=NONE
2497 ac_site_file2=NONE
2498 if test -n "$CONFIG_SITE"; then
2499 ac_site_file1=$CONFIG_SITE
2500 elif test "x$prefix" != xNONE; then
2501 ac_site_file1=$prefix/share/config.site
2502 ac_site_file2=$prefix/etc/config.site
2503 else
2504 ac_site_file1=$ac_default_prefix/share/config.site
2505 ac_site_file2=$ac_default_prefix/etc/config.site
2507 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2509 test "x$ac_site_file" = xNONE && continue
2510 if test -r "$ac_site_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513 sed 's/^/| /' "$ac_site_file" >&5
2514 . "$ac_site_file"
2516 done
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special
2520 # files actually), so we avoid doing that.
2521 if test -f "$cache_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 $as_echo "$as_me: loading cache $cache_file" >&6;}
2524 case $cache_file in
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
2527 esac
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 >$cache_file
2535 as_fn_append ac_header_list " unistd.h"
2536 as_fn_append ac_header_list " sys/time.h"
2537 as_fn_append ac_header_list " sys/times.h"
2538 as_fn_append ac_header_list " sys/resource.h"
2539 as_fn_append ac_header_list " sys/types.h"
2540 as_fn_append ac_header_list " sys/stat.h"
2541 as_fn_append ac_header_list " sys/wait.h"
2542 as_fn_append ac_header_list " floatingpoint.h"
2543 as_fn_append ac_header_list " ieeefp.h"
2544 as_fn_append ac_header_list " fenv.h"
2545 as_fn_append ac_header_list " fptrap.h"
2546 as_fn_append ac_header_list " fpxcp.h"
2547 as_fn_append ac_header_list " pwd.h"
2548 as_fn_append ac_header_list " complex.h"
2549 as_fn_append ac_func_list " getrusage"
2550 as_fn_append ac_func_list " times"
2551 as_fn_append ac_func_list " mkstemp"
2552 as_fn_append ac_func_list " strtof"
2553 as_fn_append ac_func_list " strtold"
2554 as_fn_append ac_func_list " snprintf"
2555 as_fn_append ac_func_list " ftruncate"
2556 as_fn_append ac_func_list " chsize"
2557 as_fn_append ac_func_list " chdir"
2558 as_fn_append ac_func_list " getlogin"
2559 as_fn_append ac_func_list " gethostname"
2560 as_fn_append ac_func_list " kill"
2561 as_fn_append ac_func_list " link"
2562 as_fn_append ac_func_list " symlink"
2563 as_fn_append ac_func_list " sleep"
2564 as_fn_append ac_func_list " ttyname"
2565 as_fn_append ac_func_list " alarm"
2566 as_fn_append ac_func_list " access"
2567 as_fn_append ac_func_list " fork"
2568 as_fn_append ac_func_list " execl"
2569 as_fn_append ac_func_list " wait"
2570 as_fn_append ac_func_list " setmode"
2571 as_fn_append ac_func_list " execve"
2572 as_fn_append ac_func_list " pipe"
2573 as_fn_append ac_func_list " dup2"
2574 as_fn_append ac_func_list " close"
2575 as_fn_append ac_func_list " fcntl"
2576 as_fn_append ac_func_list " strcasestr"
2577 as_fn_append ac_func_list " getrlimit"
2578 as_fn_append ac_func_list " gettimeofday"
2579 as_fn_append ac_func_list " stat"
2580 as_fn_append ac_func_list " fstat"
2581 as_fn_append ac_func_list " lstat"
2582 as_fn_append ac_func_list " getpwuid"
2583 as_fn_append ac_func_list " vsnprintf"
2584 as_fn_append ac_func_list " dup"
2585 as_fn_append ac_func_list " getcwd"
2586 as_fn_append ac_func_list " localtime_r"
2587 as_fn_append ac_func_list " gmtime_r"
2588 as_fn_append ac_func_list " getpwuid_r"
2589 as_fn_append ac_func_list " ttyname_r"
2590 as_fn_append ac_func_list " clock_gettime"
2591 as_fn_append ac_func_list " readlink"
2592 as_fn_append ac_func_list " getgid"
2593 as_fn_append ac_func_list " getpid"
2594 as_fn_append ac_func_list " getppid"
2595 as_fn_append ac_func_list " getuid"
2596 as_fn_append ac_func_list " geteuid"
2597 as_fn_append ac_func_list " umask"
2598 as_fn_append ac_func_list " getegid"
2599 as_fn_append ac_func_list " secure_getenv"
2600 as_fn_append ac_func_list " __secure_getenv"
2601 as_fn_append ac_func_list " mkostemp"
2602 as_fn_append ac_header_list " math.h"
2603 # Check that the precious variables saved in the cache have kept the same
2604 # value.
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2612 set,)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2616 ,set)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,);;
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 fi;;
2640 esac
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2643 case $ac_new_val in
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2646 esac
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 esac
2652 done
2653 if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 ac_config_headers="$ac_config_headers config.h"
2676 ac_aux_dir=
2677 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2678 for ac_t in install-sh install.sh shtool; do
2679 if test -f "$ac_dir/$ac_t"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/$ac_t -c"
2682 break 2
2684 done
2685 done
2686 if test -z "$ac_aux_dir"; then
2687 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 # Make sure we can run config.sub.
2700 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2701 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2704 $as_echo_n "checking build system type... " >&6; }
2705 if test "${ac_cv_build+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 ac_build_alias=$build_alias
2709 test "x$ac_build_alias" = x &&
2710 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2711 test "x$ac_build_alias" = x &&
2712 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2713 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2714 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2718 $as_echo "$ac_cv_build" >&6; }
2719 case $ac_cv_build in
2720 *-*-*) ;;
2721 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2722 esac
2723 build=$ac_cv_build
2724 ac_save_IFS=$IFS; IFS='-'
2725 set x $ac_cv_build
2726 shift
2727 build_cpu=$1
2728 build_vendor=$2
2729 shift; shift
2730 # Remember, the first character of IFS is used to create $*,
2731 # except with old shells:
2732 build_os=$*
2733 IFS=$ac_save_IFS
2734 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2737 case ${build_alias} in
2738 "") build_noncanonical=${build} ;;
2739 *) build_noncanonical=${build_alias} ;;
2740 esac
2742 case ${host_alias} in
2743 "") host_noncanonical=${build_noncanonical} ;;
2744 *) host_noncanonical=${host_alias} ;;
2745 esac
2747 case ${target_alias} in
2748 "") target_noncanonical=${host_noncanonical} ;;
2749 *) target_noncanonical=${target_alias} ;;
2750 esac
2753 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2754 # have matching libraries, they should use host libraries: Makefile.tpl
2755 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2756 # However, they still use the build modules, because the corresponding
2757 # host modules (e.g. bison) are only built for the host when bootstrap
2758 # finishes. So:
2759 # - build_subdir is where we find build modules, and never changes.
2760 # - build_libsubdir is where we find build libraries, and can be overridden.
2762 # Prefix 'build-' so this never conflicts with target_subdir.
2763 build_subdir="build-${build_noncanonical}"
2765 # Check whether --with-build-libsubdir was given.
2766 if test "${with_build_libsubdir+set}" = set; then :
2767 withval=$with_build_libsubdir; build_libsubdir="$withval"
2768 else
2769 build_libsubdir="$build_subdir"
2772 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2773 if ( test $srcdir = . && test -d gcc ) \
2774 || test -d $srcdir/../host-${host_noncanonical}; then
2775 host_subdir="host-${host_noncanonical}"
2776 else
2777 host_subdir=.
2779 # No prefix.
2780 target_subdir=${target_noncanonical}
2783 # -------
2784 # Options
2785 # -------
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2788 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2789 # Check whether --enable-version-specific-runtime-libs was given.
2790 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2791 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2792 yes) version_specific_libs=yes ;;
2793 no) version_specific_libs=no ;;
2794 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2795 esac
2796 else
2797 version_specific_libs=no
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2801 $as_echo "$version_specific_libs" >&6; }
2803 # Build with intermodule optimisations
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2805 $as_echo_n "checking for --enable-intermodule... " >&6; }
2806 # Check whether --enable-intermodule was given.
2807 if test "${enable_intermodule+set}" = set; then :
2808 enableval=$enable_intermodule; case "$enable_intermodule" in
2809 yes) onestep="-onestep";;
2810 *) onestep="";;
2811 esac
2812 else
2813 onestep=""
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2817 $as_echo "$enable_intermodule" >&6; }
2818 if test x$onestep = x-onestep; then
2819 onestep_TRUE=
2820 onestep_FALSE='#'
2821 else
2822 onestep_TRUE='#'
2823 onestep_FALSE=
2828 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2830 # You will slowly go insane if you do not grok the following fact: when
2831 # building this library, the top-level /target/ becomes the library's /host/.
2833 # configure then causes --target to default to --host, exactly like any
2834 # other package using autoconf. Therefore, 'target' and 'host' will
2835 # always be the same. This makes sense both for native and cross compilers
2836 # just think about it for a little while. :-)
2838 # Also, if this library is being configured as part of a cross compiler, the
2839 # top-level configure script will pass the "real" host as $with_cross_host.
2841 # Do not delete or change the following two lines. For why, see
2842 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2844 $as_echo_n "checking host system type... " >&6; }
2845 if test "${ac_cv_host+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test "x$host_alias" = x; then
2849 ac_cv_host=$ac_cv_build
2850 else
2851 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2852 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2857 $as_echo "$ac_cv_host" >&6; }
2858 case $ac_cv_host in
2859 *-*-*) ;;
2860 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2861 esac
2862 host=$ac_cv_host
2863 ac_save_IFS=$IFS; IFS='-'
2864 set x $ac_cv_host
2865 shift
2866 host_cpu=$1
2867 host_vendor=$2
2868 shift; shift
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2871 host_os=$*
2872 IFS=$ac_save_IFS
2873 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2877 $as_echo_n "checking target system type... " >&6; }
2878 if test "${ac_cv_target+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test "x$target_alias" = x; then
2882 ac_cv_target=$ac_cv_host
2883 else
2884 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2885 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2890 $as_echo "$ac_cv_target" >&6; }
2891 case $ac_cv_target in
2892 *-*-*) ;;
2893 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2894 esac
2895 target=$ac_cv_target
2896 ac_save_IFS=$IFS; IFS='-'
2897 set x $ac_cv_target
2898 shift
2899 target_cpu=$1
2900 target_vendor=$2
2901 shift; shift
2902 # Remember, the first character of IFS is used to create $*,
2903 # except with old shells:
2904 target_os=$*
2905 IFS=$ac_save_IFS
2906 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2909 # The aliases save the names the user supplied, while $host etc.
2910 # will get canonicalized.
2911 test -n "$target_alias" &&
2912 test "$program_prefix$program_suffix$program_transform_name" = \
2913 NONENONEs,x,x, &&
2914 program_prefix=${target_alias}-
2919 target_alias=${target_alias-$host_alias}
2922 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2923 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2924 # 1.9.6: minimum required version
2925 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2926 # of other PACKAGE_* variables will, however, and there's nothing
2927 # we can do about that; they come from AC_INIT).
2928 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2929 # file in the top srcdir, etc, etc), so stop complaining.
2930 # no-dist: we don't want 'dist' and related rules.
2931 # -Wall: turns on all automake warnings...
2932 # -Wno-portability: ...except this one, since GNU make is required.
2933 am__api_version='1.11'
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2941 # AIX /bin/install
2942 # AmigaOS /C/install, which installs bootblocks on floppy discs
2943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946 # OS/2's system install, which has a completely different semantic
2947 # ./install, which can be erroneously created by make from ./install.sh.
2948 # Reject install programs that cannot install multiple files.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2950 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2951 if test -z "$INSTALL"; then
2952 if test "${ac_cv_path_install+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 # Account for people who put trailing slashes in PATH elements.
2961 case $as_dir/ in #((
2962 ./ | .// | /[cC]/* | \
2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2965 /usr/ucb/* ) ;;
2967 # OSF1 and SCO ODT 3.0 have their own names for install.
2968 # Don't use installbsd from OSF since it installs stuff as root
2969 # by default.
2970 for ac_prog in ginstall scoinst install; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2973 if test $ac_prog = install &&
2974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # AIX install. It has an incompatible calling convention.
2977 elif test $ac_prog = install &&
2978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # program-specific install script used by HP pwplus--don't use.
2981 else
2982 rm -rf conftest.one conftest.two conftest.dir
2983 echo one > conftest.one
2984 echo two > conftest.two
2985 mkdir conftest.dir
2986 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2987 test -s conftest.one && test -s conftest.two &&
2988 test -s conftest.dir/conftest.one &&
2989 test -s conftest.dir/conftest.two
2990 then
2991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2992 break 3
2996 done
2997 done
2999 esac
3001 done
3002 IFS=$as_save_IFS
3004 rm -rf conftest.one conftest.two conftest.dir
3007 if test "${ac_cv_path_install+set}" = set; then
3008 INSTALL=$ac_cv_path_install
3009 else
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for INSTALL within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the value is a relative name.
3014 INSTALL=$ac_install_sh
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3018 $as_echo "$INSTALL" >&6; }
3020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3021 # It thinks the first close brace ends the variable substitution.
3022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3029 $as_echo_n "checking whether build environment is sane... " >&6; }
3030 # Just in case
3031 sleep 1
3032 echo timestamp > conftest.file
3033 # Reject unsafe characters in $srcdir or the absolute working directory
3034 # name. Accept space and tab only in the latter.
3035 am_lf='
3037 case `pwd` in
3038 *[\\\"\#\$\&\'\`$am_lf]*)
3039 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3040 esac
3041 case $srcdir in
3042 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3043 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3044 esac
3046 # Do `set' in a subshell so we don't clobber the current shell's
3047 # arguments. Must try -L first in case configure is actually a
3048 # symlink; some systems play weird games with the mod time of symlinks
3049 # (eg FreeBSD returns the mod time of the symlink's containing
3050 # directory).
3051 if (
3052 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3053 if test "$*" = "X"; then
3054 # -L didn't work.
3055 set X `ls -t "$srcdir/configure" conftest.file`
3057 rm -f conftest.file
3058 if test "$*" != "X $srcdir/configure conftest.file" \
3059 && test "$*" != "X conftest.file $srcdir/configure"; then
3061 # If neither matched, then we have a broken ls. This can happen
3062 # if, for instance, CONFIG_SHELL is bash and it inherits a
3063 # broken ls alias from the environment. This has actually
3064 # happened. Such a system could not be considered "sane".
3065 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3066 alias in your environment" "$LINENO" 5
3069 test "$2" = conftest.file
3071 then
3072 # Ok.
3074 else
3075 as_fn_error "newly created file is older than distributed files!
3076 Check your system clock" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 $as_echo "yes" >&6; }
3080 test "$program_prefix" != NONE &&
3081 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3085 # Double any \ or $.
3086 # By default was `s,x,x', remove it if useless.
3087 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3088 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 if test x"${MISSING+set}" != xset; then
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3098 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3099 esac
3101 # Use eval to expand $SHELL
3102 if eval "$MISSING --run true"; then
3103 am_missing_run="$MISSING --run "
3104 else
3105 am_missing_run=
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3107 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3110 if test x"${install_sh}" != xset; then
3111 case $am_aux_dir in
3112 *\ * | *\ *)
3113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3115 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 esac
3119 # Installed binaries are usually stripped using `strip' when the user
3120 # run `make install-strip'. However `strip' might not be the right
3121 # tool to use in cross-compilation environments, therefore Automake
3122 # will honor the `STRIP' environment variable to overrule this program.
3123 if test "$cross_compiling" != no; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}strip; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_STRIP+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$STRIP"; then
3133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3146 done
3147 done
3148 IFS=$as_save_IFS
3152 STRIP=$ac_cv_prog_STRIP
3153 if test -n "$STRIP"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3155 $as_echo "$STRIP" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3163 if test -z "$ac_cv_prog_STRIP"; then
3164 ac_ct_STRIP=$STRIP
3165 # Extract the first word of "strip", so it can be a program name with args.
3166 set dummy strip; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$ac_ct_STRIP"; then
3173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_ac_ct_STRIP="strip"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3188 IFS=$as_save_IFS
3192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3193 if test -n "$ac_ct_STRIP"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3195 $as_echo "$ac_ct_STRIP" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3201 if test "x$ac_ct_STRIP" = x; then
3202 STRIP=":"
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 STRIP=$ac_ct_STRIP
3212 else
3213 STRIP="$ac_cv_prog_STRIP"
3217 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3221 if test -z "$MKDIR_P"; then
3222 if test "${ac_cv_path_mkdir+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_prog in mkdir gmkdir; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3234 'mkdir (GNU coreutils) '* | \
3235 'mkdir (coreutils) '* | \
3236 'mkdir (fileutils) '4.1*)
3237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3238 break 3;;
3239 esac
3240 done
3241 done
3242 done
3243 IFS=$as_save_IFS
3247 if test "${ac_cv_path_mkdir+set}" = set; then
3248 MKDIR_P="$ac_cv_path_mkdir -p"
3249 else
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for MKDIR_P within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 test -d ./--version && rmdir ./--version
3255 MKDIR_P="$ac_install_sh -d"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3259 $as_echo "$MKDIR_P" >&6; }
3261 mkdir_p="$MKDIR_P"
3262 case $mkdir_p in
3263 [\\/$]* | ?:[\\/]*) ;;
3264 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3265 esac
3267 for ac_prog in gawk mawk nawk awk
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if test "${ac_cv_prog_AWK+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_AWK="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3290 done
3291 done
3292 IFS=$as_save_IFS
3296 AWK=$ac_cv_prog_AWK
3297 if test -n "$AWK"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3299 $as_echo "$AWK" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$AWK" && break
3307 done
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3310 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311 set x ${MAKE-make}
3312 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3313 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 cat >conftest.make <<\_ACEOF
3317 SHELL = /bin/sh
3318 all:
3319 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320 _ACEOF
3321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3322 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 *@@@%%%=?*=@@@%%%*)
3324 eval ac_cv_prog_make_${ac_make}_set=yes;;
3326 eval ac_cv_prog_make_${ac_make}_set=no;;
3327 esac
3328 rm -f conftest.make
3330 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 SET_MAKE=
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 SET_MAKE="MAKE=${MAKE-make}"
3340 rm -rf .tst 2>/dev/null
3341 mkdir .tst 2>/dev/null
3342 if test -d .tst; then
3343 am__leading_dot=.
3344 else
3345 am__leading_dot=_
3347 rmdir .tst 2>/dev/null
3349 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3350 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3351 # is not polluted with repeated "-I."
3352 am__isrc=' -I$(srcdir)'
3353 # test to see if srcdir already configured
3354 if test -f $srcdir/config.status; then
3355 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3359 # test whether we have cygpath
3360 if test -z "$CYGPATH_W"; then
3361 if (cygpath --version) >/dev/null 2>/dev/null; then
3362 CYGPATH_W='cygpath -w'
3363 else
3364 CYGPATH_W=echo
3369 # Define the identity of the package.
3370 PACKAGE='libgfortran'
3371 VERSION='0.3'
3374 # Some tools Automake needs.
3376 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3379 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3382 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3385 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3388 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3390 # We need awk for the "check" target. The system "awk" is bad on
3391 # some platforms.
3392 # Always define AMTAR for backward compatibility. Yes, it's still used
3393 # in the wild :-( We should find a proper way to deprecate it ...
3394 AMTAR='$${TAR-tar}'
3396 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3405 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3406 # Check whether --enable-maintainer-mode was given.
3407 if test "${enable_maintainer_mode+set}" = set; then :
3408 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3409 else
3410 USE_MAINTAINER_MODE=no
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3414 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3415 if test $USE_MAINTAINER_MODE = yes; then
3416 MAINTAINER_MODE_TRUE=
3417 MAINTAINER_MODE_FALSE='#'
3418 else
3419 MAINTAINER_MODE_TRUE='#'
3420 MAINTAINER_MODE_FALSE=
3423 MAINT=$MAINTAINER_MODE_TRUE
3426 # Default to --enable-multilib
3427 # Check whether --enable-multilib was given.
3428 if test "${enable_multilib+set}" = set; then :
3429 enableval=$enable_multilib; case "$enableval" in
3430 yes) multilib=yes ;;
3431 no) multilib=no ;;
3432 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3433 esac
3434 else
3435 multilib=yes
3439 # We may get other options which we leave undocumented:
3440 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3441 # See config-ml.in if you want the gory details.
3443 if test "$srcdir" = "."; then
3444 if test "$with_target_subdir" != "."; then
3445 multi_basedir="$srcdir/$with_multisrctop../.."
3446 else
3447 multi_basedir="$srcdir/$with_multisrctop.."
3449 else
3450 multi_basedir="$srcdir/.."
3454 # Even if the default multilib is not a cross compilation,
3455 # it may be that some of the other multilibs are.
3456 if test $cross_compiling = no && test $multilib = yes \
3457 && test "x${with_multisubdir}" != x ; then
3458 cross_compiling=maybe
3461 ac_config_commands="$ac_config_commands default-1"
3464 # Handy for debugging:
3465 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3467 # Are we being configured with some form of cross compiler?
3468 # NB: We don't actually need to know this just now, but when, say, a test
3469 # suite is included, we'll have to know.
3470 if test "$build" != "$host"; then
3471 LIBGFOR_IS_NATIVE=false
3473 else
3474 LIBGFOR_IS_NATIVE=true
3477 DEPDIR="${am__leading_dot}deps"
3479 ac_config_commands="$ac_config_commands depfiles"
3482 am_make=${MAKE-make}
3483 cat > confinc << 'END'
3484 am__doit:
3485 @echo this is the am__doit target
3486 .PHONY: am__doit
3488 # If we don't find an include directive, just comment out the code.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3490 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3491 am__include="#"
3492 am__quote=
3493 _am_result=none
3494 # First try GNU make style include.
3495 echo "include confinc" > confmf
3496 # Ignore all kinds of additional output from `make'.
3497 case `$am_make -s -f confmf 2> /dev/null` in #(
3498 *the\ am__doit\ target*)
3499 am__include=include
3500 am__quote=
3501 _am_result=GNU
3503 esac
3504 # Now try BSD make style include.
3505 if test "$am__include" = "#"; then
3506 echo '.include "confinc"' > confmf
3507 case `$am_make -s -f confmf 2> /dev/null` in #(
3508 *the\ am__doit\ target*)
3509 am__include=.include
3510 am__quote="\""
3511 _am_result=BSD
3513 esac
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3518 $as_echo "$_am_result" >&6; }
3519 rm -f confinc confmf
3521 # Check whether --enable-dependency-tracking was given.
3522 if test "${enable_dependency_tracking+set}" = set; then :
3523 enableval=$enable_dependency_tracking;
3526 if test "x$enable_dependency_tracking" != xno; then
3527 am_depcomp="$ac_aux_dir/depcomp"
3528 AMDEPBACKSLASH='\'
3529 am__nodep='_no'
3531 if test "x$enable_dependency_tracking" != xno; then
3532 AMDEP_TRUE=
3533 AMDEP_FALSE='#'
3534 else
3535 AMDEP_TRUE='#'
3536 AMDEP_FALSE=
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3584 if test -z "$ac_cv_prog_CC"; then
3585 ac_ct_CC=$CC
3586 # Extract the first word of "gcc", so it can be a program name with args.
3587 set dummy gcc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_ac_ct_CC="gcc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616 $as_echo "$ac_ct_CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3622 if test "x$ac_ct_CC" = x; then
3623 CC=""
3624 else
3625 case $cross_compiling:$ac_tool_warned in
3626 yes:)
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3629 ac_tool_warned=yes ;;
3630 esac
3631 CC=$ac_ct_CC
3633 else
3634 CC="$ac_cv_prog_CC"
3637 if test -z "$CC"; then
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}cc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656 ac_cv_prog_CC="${ac_tool_prefix}cc"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3662 IFS=$as_save_IFS
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3678 if test -z "$CC"; then
3679 # Extract the first word of "cc", so it can be a program name with args.
3680 set dummy cc; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 ac_prog_rejected=no
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3698 ac_prog_rejected=yes
3699 continue
3701 ac_cv_prog_CC="cc"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3707 IFS=$as_save_IFS
3709 if test $ac_prog_rejected = yes; then
3710 # We found a bogon in the path, so make sure we never use it.
3711 set dummy $ac_cv_prog_CC
3712 shift
3713 if test $# != 0; then
3714 # We chose a different compiler from the bogus one.
3715 # However, it has the same basename, so the bogon will be chosen
3716 # first if we set CC to just the basename; use the full file name.
3717 shift
3718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3734 if test -z "$CC"; then
3735 if test -n "$ac_tool_prefix"; then
3736 for ac_prog in cl.exe
3738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3761 IFS=$as_save_IFS
3765 CC=$ac_cv_prog_CC
3766 if test -n "$CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3775 test -n "$CC" && break
3776 done
3778 if test -z "$CC"; then
3779 ac_ct_CC=$CC
3780 for ac_prog in cl.exe
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783 set dummy $ac_prog; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_ac_ct_CC="$ac_prog"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3803 done
3804 done
3805 IFS=$as_save_IFS
3809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810 if test -n "$ac_ct_CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812 $as_echo "$ac_ct_CC" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3819 test -n "$ac_ct_CC" && break
3820 done
3822 if test "x$ac_ct_CC" = x; then
3823 CC=""
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826 yes:)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3830 esac
3831 CC=$ac_ct_CC
3838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error "no acceptable C compiler found in \$PATH
3841 See \`config.log' for more details." "$LINENO" 5; }
3843 # Provide some information about the compiler.
3844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3845 set X $ac_compile
3846 ac_compiler=$2
3847 for ac_option in --version -v -V -qversion; do
3848 { { ac_try="$ac_compiler $ac_option >&5"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3856 ac_status=$?
3857 if test -s conftest.err; then
3858 sed '10a\
3859 ... rest of stderr output deleted ...
3860 10q' conftest.err >conftest.er1
3861 cat conftest.er1 >&5
3862 rm -f conftest.er1 conftest.err
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }
3866 done
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 # FIXME: Cleanup?
3880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3881 (eval $ac_link) 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 gcc_no_link=no
3886 else
3887 gcc_no_link=yes
3889 if test x$gcc_no_link = xyes; then
3890 # Setting cross_compile will disable run tests; it will
3891 # also disable AC_CHECK_FILE but that's generally
3892 # correct if we can't link.
3893 cross_compiling=yes
3894 EXEEXT=
3895 else
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913 $as_echo_n "checking for C compiler default output file name... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
3965 break;;
3967 break;;
3968 esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972 else
3973 ac_file=''
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3976 $as_echo "$ac_file" >&6; }
3977 if test -z "$ac_file"; then :
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 { as_fn_set_status 77
3984 as_fn_error "C compiler cannot create executables
3985 See \`config.log' for more details." "$LINENO" 5; }; }
3987 ac_exeext=$ac_cv_exeext
3989 # Check that the compiler produces executables we can run. If not, either
3990 # the compiler is broken, or we cross compile.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3992 $as_echo_n "checking whether the C compiler works... " >&6; }
3993 # If not cross compiling, check that we can run a simple program.
3994 if test "$cross_compiling" != yes; then
3995 if { ac_try='./$ac_file'
3996 { { case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_try") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; }; then
4006 cross_compiling=no
4007 else
4008 if test "$cross_compiling" = maybe; then
4009 cross_compiling=yes
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error "cannot run C compiled programs.
4014 If you meant to cross compile, use \`--host'.
4015 See \`config.log' for more details." "$LINENO" 5; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4023 ac_clean_files=$ac_clean_files_save
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4029 $as_echo "$cross_compiling" >&6; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4032 $as_echo_n "checking for suffix of executables... " >&6; }
4033 if { { ac_try="$ac_link"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_link") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; then :
4044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4046 # work properly (i.e., refer to `conftest.exe'), while it won't with
4047 # `rm'.
4048 for ac_file in conftest.exe conftest conftest.*; do
4049 test -f "$ac_file" || continue
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 break;;
4054 * ) break;;
4055 esac
4056 done
4057 else
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error "cannot compute suffix of executables: cannot compile and link
4061 See \`config.log' for more details." "$LINENO" 5; }
4063 rm -f conftest$ac_cv_exeext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4065 $as_echo "$ac_cv_exeext" >&6; }
4067 rm -f conftest.$ac_ext
4068 EXEEXT=$ac_cv_exeext
4069 ac_exeext=$EXEEXT
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072 $as_echo_n "checking for suffix of object files... " >&6; }
4073 if test "${ac_cv_objext+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 rm -f conftest.o conftest.obj
4088 if { { ac_try="$ac_compile"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compile") 2>&5
4096 ac_status=$?
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; then :
4099 for ac_file in conftest.o conftest.obj conftest.*; do
4100 test -f "$ac_file" || continue;
4101 case $ac_file in
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4104 break;;
4105 esac
4106 done
4107 else
4108 $as_echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error "cannot compute suffix of object files: cannot compile
4114 See \`config.log' for more details." "$LINENO" 5; }
4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119 $as_echo "$ac_cv_objext" >&6; }
4120 OBJEXT=$ac_cv_objext
4121 ac_objext=$OBJEXT
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4133 #ifndef __GNUC__
4134 choke me
4135 #endif
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_compiler_gnu=yes
4143 else
4144 ac_compiler_gnu=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152 if test $ac_compiler_gnu = yes; then
4153 GCC=yes
4154 else
4155 GCC=
4157 ac_test_CFLAGS=${CFLAGS+set}
4158 ac_save_CFLAGS=$CFLAGS
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4161 if test "${ac_cv_prog_cc_g+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 ac_save_c_werror_flag=$ac_c_werror_flag
4165 ac_c_werror_flag=yes
4166 ac_cv_prog_cc_g=no
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 main ()
4176 return 0;
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_g=yes
4181 else
4182 CFLAGS=""
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4187 main ()
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4196 else
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4198 CFLAGS="-g"
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4203 main ()
4207 return 0;
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_g=yes
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_c_werror_flag=$ac_save_c_werror_flag
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221 $as_echo "$ac_cv_prog_cc_g" >&6; }
4222 if test "$ac_test_CFLAGS" = set; then
4223 CFLAGS=$ac_save_CFLAGS
4224 elif test $ac_cv_prog_cc_g = yes; then
4225 if test "$GCC" = yes; then
4226 CFLAGS="-g -O2"
4227 else
4228 CFLAGS="-g"
4230 else
4231 if test "$GCC" = yes; then
4232 CFLAGS="-O2"
4233 else
4234 CFLAGS=
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 ac_cv_prog_cc_c89=no
4243 ac_save_CC=$CC
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <stdarg.h>
4247 #include <stdio.h>
4248 #include <sys/types.h>
4249 #include <sys/stat.h>
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254 char **p;
4255 int i;
4257 return p[i];
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4290 main ()
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 return 0;
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 depcc="$CC" am_compiler_list=
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4337 $as_echo_n "checking dependency style of $depcc... " >&6; }
4338 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4342 # We make a subdir and do the tests there. Otherwise we can end up
4343 # making bogus files that we don't know about and never remove. For
4344 # instance it was reported that on HP-UX the gcc test will end up
4345 # making a dummy file named `D' -- because `-MD' means `put the output
4346 # in D'.
4347 rm -rf conftest.dir
4348 mkdir conftest.dir
4349 # Copy depcomp to subdir because otherwise we won't find it if we're
4350 # using a relative directory.
4351 cp "$am_depcomp" conftest.dir
4352 cd conftest.dir
4353 # We will build objects and dependencies in a subdirectory because
4354 # it helps to detect inapplicable dependency modes. For instance
4355 # both Tru64's cc and ICC support -MD to output dependencies as a
4356 # side effect of compilation, but ICC will put the dependencies in
4357 # the current directory while Tru64 will put them in the object
4358 # directory.
4359 mkdir sub
4361 am_cv_CC_dependencies_compiler_type=none
4362 if test "$am_compiler_list" = ""; then
4363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4365 am__universal=false
4366 case " $depcc " in #(
4367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4368 esac
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4378 : > sub/conftest.c
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382 # Solaris 8's {/usr,}/bin/sh.
4383 touch sub/conftst$i.h
4384 done
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4387 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4388 # mode. It turns out that the SunPro C++ compiler does not properly
4389 # handle `-M -o', and we need to detect this. Also, some Intel
4390 # versions had trouble with output in subdirs
4391 am__obj=sub/conftest.${OBJEXT-o}
4392 am__minus_obj="-o $am__obj"
4393 case $depmode in
4394 gcc)
4395 # This depmode causes a compiler race in universal mode.
4396 test "$am__universal" = false || continue
4398 nosideeffect)
4399 # after this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested
4401 if test "x$enable_dependency_tracking" = xyes; then
4402 continue
4403 else
4404 break
4407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4408 # This compiler won't grok `-c -o', but also, the minuso test has
4409 # not run yet. These depmodes are late enough in the game, and
4410 # so weak that their functioning should not be impacted.
4411 am__obj=conftest.${OBJEXT-o}
4412 am__minus_obj=
4414 none) break ;;
4415 esac
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=$am__obj \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425 # icc doesn't choke on unknown options, it will just issue warnings
4426 # or remarks (even with -Werror). So we grep stderr for any message
4427 # that says an option was ignored or not supported.
4428 # When given -MP, icc 7.0 and 7.1 complain thusly:
4429 # icc: Command line warning: ignoring option '-M'; no argument required
4430 # The diagnosis changed in icc 8.0:
4431 # icc: Command line remark: option '-MP' not supported
4432 if (grep 'ignoring option' conftest.err ||
4433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434 am_cv_CC_dependencies_compiler_type=$depmode
4435 break
4438 done
4440 cd ..
4441 rm -rf conftest.dir
4442 else
4443 am_cv_CC_dependencies_compiler_type=none
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4448 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4449 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_TRUE=
4455 am__fastdepCC_FALSE='#'
4456 else
4457 am__fastdepCC_TRUE='#'
4458 am__fastdepCC_FALSE=
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4469 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4470 # On Suns, sometimes $CPP names a directory.
4471 if test -n "$CPP" && test -d "$CPP"; then
4472 CPP=
4474 if test -z "$CPP"; then
4475 if test "${ac_cv_prog_CPP+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 # Double quotes because CPP needs to be expanded
4479 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4481 ac_preproc_ok=false
4482 for ac_c_preproc_warn_flag in '' yes
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #ifdef __STDC__
4493 # include <limits.h>
4494 #else
4495 # include <assert.h>
4496 #endif
4497 Syntax error
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4501 else
4502 # Broken: fails on valid input.
4503 continue
4505 rm -f conftest.err conftest.$ac_ext
4507 # OK, works on sane cases. Now check whether nonexistent headers
4508 # can be detected and how.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <ac_nonexistent.h>
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514 # Broken: success on invalid input.
4515 continue
4516 else
4517 # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4521 rm -f conftest.err conftest.$ac_ext
4523 done
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then :
4527 break
4530 done
4531 ac_cv_prog_CPP=$CPP
4534 CPP=$ac_cv_prog_CPP
4535 else
4536 ac_cv_prog_CPP=$CPP
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4539 $as_echo "$CPP" >&6; }
4540 ac_preproc_ok=false
4541 for ac_c_preproc_warn_flag in '' yes
4543 # Use a header file that comes with gcc, so configuring glibc
4544 # with a fresh cross-compiler works.
4545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4546 # <limits.h> exists even on freestanding compilers.
4547 # On the NeXT, cc -E runs the code through the compiler's parser,
4548 # not just through cpp. "Syntax error" is here to catch this case.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #ifdef __STDC__
4552 # include <limits.h>
4553 #else
4554 # include <assert.h>
4555 #endif
4556 Syntax error
4557 _ACEOF
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4560 else
4561 # Broken: fails on valid input.
4562 continue
4564 rm -f conftest.err conftest.$ac_ext
4566 # OK, works on sane cases. Now check whether nonexistent headers
4567 # can be detected and how.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <ac_nonexistent.h>
4571 _ACEOF
4572 if ac_fn_c_try_cpp "$LINENO"; then :
4573 # Broken: success on invalid input.
4574 continue
4575 else
4576 # Passes both tests.
4577 ac_preproc_ok=:
4578 break
4580 rm -f conftest.err conftest.$ac_ext
4582 done
4583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4584 rm -f conftest.err conftest.$ac_ext
4585 if $ac_preproc_ok; then :
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4591 See \`config.log' for more details." "$LINENO" 5; }
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4602 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4603 if test "${ac_cv_path_GREP+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -z "$GREP"; then
4607 ac_path_GREP_found=false
4608 # Loop through the user's path and test for each of PROGNAME-LIST
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_prog in grep ggrep; do
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4617 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4618 # Check for GNU ac_path_GREP and select it if it is found.
4619 # Check for GNU $ac_path_GREP
4620 case `"$ac_path_GREP" --version 2>&1` in
4621 *GNU*)
4622 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4624 ac_count=0
4625 $as_echo_n 0123456789 >"conftest.in"
4626 while :
4628 cat "conftest.in" "conftest.in" >"conftest.tmp"
4629 mv "conftest.tmp" "conftest.in"
4630 cp "conftest.in" "conftest.nl"
4631 $as_echo 'GREP' >> "conftest.nl"
4632 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634 as_fn_arith $ac_count + 1 && ac_count=$as_val
4635 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4636 # Best one so far, save it but keep looking for a better one
4637 ac_cv_path_GREP="$ac_path_GREP"
4638 ac_path_GREP_max=$ac_count
4640 # 10*(2^10) chars as input seems more than enough
4641 test $ac_count -gt 10 && break
4642 done
4643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4644 esac
4646 $ac_path_GREP_found && break 3
4647 done
4648 done
4649 done
4650 IFS=$as_save_IFS
4651 if test -z "$ac_cv_path_GREP"; then
4652 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654 else
4655 ac_cv_path_GREP=$GREP
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4660 $as_echo "$ac_cv_path_GREP" >&6; }
4661 GREP="$ac_cv_path_GREP"
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4665 $as_echo_n "checking for egrep... " >&6; }
4666 if test "${ac_cv_path_EGREP+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4670 then ac_cv_path_EGREP="$GREP -E"
4671 else
4672 if test -z "$EGREP"; then
4673 ac_path_EGREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_prog in egrep; do
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4683 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4684 # Check for GNU ac_path_EGREP and select it if it is found.
4685 # Check for GNU $ac_path_EGREP
4686 case `"$ac_path_EGREP" --version 2>&1` in
4687 *GNU*)
4688 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4690 ac_count=0
4691 $as_echo_n 0123456789 >"conftest.in"
4692 while :
4694 cat "conftest.in" "conftest.in" >"conftest.tmp"
4695 mv "conftest.tmp" "conftest.in"
4696 cp "conftest.in" "conftest.nl"
4697 $as_echo 'EGREP' >> "conftest.nl"
4698 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700 as_fn_arith $ac_count + 1 && ac_count=$as_val
4701 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4702 # Best one so far, save it but keep looking for a better one
4703 ac_cv_path_EGREP="$ac_path_EGREP"
4704 ac_path_EGREP_max=$ac_count
4706 # 10*(2^10) chars as input seems more than enough
4707 test $ac_count -gt 10 && break
4708 done
4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710 esac
4712 $ac_path_EGREP_found && break 3
4713 done
4714 done
4715 done
4716 IFS=$as_save_IFS
4717 if test -z "$ac_cv_path_EGREP"; then
4718 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4720 else
4721 ac_cv_path_EGREP=$EGREP
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4727 $as_echo "$ac_cv_path_EGREP" >&6; }
4728 EGREP="$ac_cv_path_EGREP"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4732 $as_echo_n "checking for ANSI C header files... " >&6; }
4733 if test "${ac_cv_header_stdc+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <stdlib.h>
4739 #include <stdarg.h>
4740 #include <string.h>
4741 #include <float.h>
4744 main ()
4748 return 0;
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_header_stdc=yes
4753 else
4754 ac_cv_header_stdc=no
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 if test $ac_cv_header_stdc = yes; then
4759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #include <string.h>
4764 _ACEOF
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "memchr" >/dev/null 2>&1; then :
4768 else
4769 ac_cv_header_stdc=no
4771 rm -f conftest*
4775 if test $ac_cv_header_stdc = yes; then
4776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #include <stdlib.h>
4781 _ACEOF
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "free" >/dev/null 2>&1; then :
4785 else
4786 ac_cv_header_stdc=no
4788 rm -f conftest*
4792 if test $ac_cv_header_stdc = yes; then
4793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794 if test "$cross_compiling" = yes; then :
4796 else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #include <ctype.h>
4800 #include <stdlib.h>
4801 #if ((' ' & 0x0FF) == 0x020)
4802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804 #else
4805 # define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810 #endif
4812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4814 main ()
4816 int i;
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4820 return 2;
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_run "$LINENO"; then :
4826 else
4827 ac_cv_header_stdc=no
4829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4830 conftest.$ac_objext conftest.beam conftest.$ac_ext
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4836 $as_echo "$ac_cv_header_stdc" >&6; }
4837 if test $ac_cv_header_stdc = yes; then
4839 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4843 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4844 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4845 inttypes.h stdint.h unistd.h
4846 do :
4847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4848 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4850 eval as_val=\$$as_ac_Header
4851 if test "x$as_val" = x""yes; then :
4852 cat >>confdefs.h <<_ACEOF
4853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4854 _ACEOF
4858 done
4862 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4863 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4864 MINIX=yes
4865 else
4866 MINIX=
4870 if test "$MINIX" = yes; then
4872 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4875 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4878 $as_echo "#define _MINIX 1" >>confdefs.h
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4884 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4885 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4891 # define __EXTENSIONS__ 1
4892 $ac_includes_default
4894 main ()
4898 return 0;
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_safe_to_define___extensions__=yes
4903 else
4904 ac_cv_safe_to_define___extensions__=no
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4909 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4910 test $ac_cv_safe_to_define___extensions__ = yes &&
4911 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4913 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4915 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4917 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4919 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4923 # Calculate toolexeclibdir
4924 # Also toolexecdir, though it's only used in toolexeclibdir
4925 case ${version_specific_libs} in
4926 yes)
4927 # Need the gcc compiler version to know where to install libraries
4928 # and header files if --enable-version-specific-runtime-libs option
4929 # is selected.
4930 toolexecdir='$(libdir)/gcc/$(target_alias)'
4931 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4934 if test -n "$with_cross_host" &&
4935 test x"$with_cross_host" != x"no"; then
4936 # Install a library built with a cross compiler in tooldir, not libdir.
4937 toolexecdir='$(exec_prefix)/$(target_alias)'
4938 toolexeclibdir='$(toolexecdir)/lib'
4939 else
4940 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4941 toolexeclibdir='$(libdir)'
4943 multi_os_directory=`$CC -print-multi-os-directory`
4944 case $multi_os_directory in
4945 .) ;; # Avoid trailing /.
4946 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4947 esac
4949 esac
4953 # Create a spec file, so that compile/link tests don't fail
4954 test -f libgfortran.spec || touch libgfortran.spec
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 # Check the compiler.
4963 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4964 # We must force CC to /not/ be precious variables; otherwise
4965 # the wrong, non-multilib-adjusted value will be used in multilibs.
4966 # As a side effect, we have to subst CFLAGS ourselves.
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_CC+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 $as_echo "$CC" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5014 if test -z "$ac_cv_prog_CC"; then
5015 ac_ct_CC=$CC
5016 # Extract the first word of "gcc", so it can be a program name with args.
5017 set dummy gcc; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$ac_ct_CC"; then
5024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_ac_ct_CC="gcc"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5044 if test -n "$ac_ct_CC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5046 $as_echo "$ac_ct_CC" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5052 if test "x$ac_ct_CC" = x; then
5053 CC=""
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056 yes:)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059 ac_tool_warned=yes ;;
5060 esac
5061 CC=$ac_ct_CC
5063 else
5064 CC="$ac_cv_prog_CC"
5067 if test -z "$CC"; then
5068 if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5070 set dummy ${ac_tool_prefix}cc; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_prog_CC+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 if test -n "$CC"; then
5077 ac_cv_prog_CC="$CC" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_CC="${ac_tool_prefix}cc"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5090 done
5091 done
5092 IFS=$as_save_IFS
5096 CC=$ac_cv_prog_CC
5097 if test -n "$CC"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099 $as_echo "$CC" >&6; }
5100 else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5108 if test -z "$CC"; then
5109 # Extract the first word of "cc", so it can be a program name with args.
5110 set dummy cc; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if test "${ac_cv_prog_CC+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$CC"; then
5117 ac_cv_prog_CC="$CC" # Let the user override the test.
5118 else
5119 ac_prog_rejected=no
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5128 ac_prog_rejected=yes
5129 continue
5131 ac_cv_prog_CC="cc"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5139 if test $ac_prog_rejected = yes; then
5140 # We found a bogon in the path, so make sure we never use it.
5141 set dummy $ac_cv_prog_CC
5142 shift
5143 if test $# != 0; then
5144 # We chose a different compiler from the bogus one.
5145 # However, it has the same basename, so the bogon will be chosen
5146 # first if we set CC to just the basename; use the full file name.
5147 shift
5148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5153 CC=$ac_cv_prog_CC
5154 if test -n "$CC"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5156 $as_echo "$CC" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5164 if test -z "$CC"; then
5165 if test -n "$ac_tool_prefix"; then
5166 for ac_prog in cl.exe
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_CC+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$CC"; then
5176 ac_cv_prog_CC="$CC" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5189 done
5190 done
5191 IFS=$as_save_IFS
5195 CC=$ac_cv_prog_CC
5196 if test -n "$CC"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5198 $as_echo "$CC" >&6; }
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5205 test -n "$CC" && break
5206 done
5208 if test -z "$CC"; then
5209 ac_ct_CC=$CC
5210 for ac_prog in cl.exe
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_CC"; then
5220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_CC="$ac_prog"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5240 if test -n "$ac_ct_CC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5242 $as_echo "$ac_ct_CC" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5249 test -n "$ac_ct_CC" && break
5250 done
5252 if test "x$ac_ct_CC" = x; then
5253 CC=""
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 CC=$ac_ct_CC
5268 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270 as_fn_error "no acceptable C compiler found in \$PATH
5271 See \`config.log' for more details." "$LINENO" 5; }
5273 # Provide some information about the compiler.
5274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5275 set X $ac_compile
5276 ac_compiler=$2
5277 for ac_option in --version -v -V -qversion; do
5278 { { ac_try="$ac_compiler $ac_option >&5"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5284 $as_echo "$ac_try_echo"; } >&5
5285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5286 ac_status=$?
5287 if test -s conftest.err; then
5288 sed '10a\
5289 ... rest of stderr output deleted ...
5290 10q' conftest.err >conftest.er1
5291 cat conftest.er1 >&5
5292 rm -f conftest.er1 conftest.err
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }
5296 done
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5299 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5300 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 main ()
5309 #ifndef __GNUC__
5310 choke me
5311 #endif
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_compiler_gnu=yes
5319 else
5320 ac_compiler_gnu=no
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5327 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5328 if test $ac_compiler_gnu = yes; then
5329 GCC=yes
5330 else
5331 GCC=
5333 ac_test_CFLAGS=${CFLAGS+set}
5334 ac_save_CFLAGS=$CFLAGS
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5336 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5337 if test "${ac_cv_prog_cc_g+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 ac_save_c_werror_flag=$ac_c_werror_flag
5341 ac_c_werror_flag=yes
5342 ac_cv_prog_cc_g=no
5343 CFLAGS="-g"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5348 main ()
5352 return 0;
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 ac_cv_prog_cc_g=yes
5357 else
5358 CFLAGS=""
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5363 main ()
5367 return 0;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5372 else
5373 ac_c_werror_flag=$ac_save_c_werror_flag
5374 CFLAGS="-g"
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 main ()
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_prog_cc_g=yes
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_c_werror_flag=$ac_save_c_werror_flag
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5397 $as_echo "$ac_cv_prog_cc_g" >&6; }
5398 if test "$ac_test_CFLAGS" = set; then
5399 CFLAGS=$ac_save_CFLAGS
5400 elif test $ac_cv_prog_cc_g = yes; then
5401 if test "$GCC" = yes; then
5402 CFLAGS="-g -O2"
5403 else
5404 CFLAGS="-g"
5406 else
5407 if test "$GCC" = yes; then
5408 CFLAGS="-O2"
5409 else
5410 CFLAGS=
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5414 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5415 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 ac_cv_prog_cc_c89=no
5419 ac_save_CC=$CC
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <stdarg.h>
5423 #include <stdio.h>
5424 #include <sys/types.h>
5425 #include <sys/stat.h>
5426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5427 struct buf { int x; };
5428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5429 static char *e (p, i)
5430 char **p;
5431 int i;
5433 return p[i];
5435 static char *f (char * (*g) (char **, int), char **p, ...)
5437 char *s;
5438 va_list v;
5439 va_start (v,p);
5440 s = g (p, va_arg (v,int));
5441 va_end (v);
5442 return s;
5445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5446 function prototypes and stuff, but not '\xHH' hex character constants.
5447 These don't provoke an error unfortunately, instead are silently treated
5448 as 'x'. The following induces an error, until -std is added to get
5449 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5450 array size at least. It's necessary to write '\x00'==0 to get something
5451 that's true only with -std. */
5452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5454 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5455 inside strings and character constants. */
5456 #define FOO(x) 'x'
5457 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5459 int test (int i, double x);
5460 struct s1 {int (*f) (int a);};
5461 struct s2 {int (*f) (double a);};
5462 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5463 int argc;
5464 char **argv;
5466 main ()
5468 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5470 return 0;
5472 _ACEOF
5473 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5474 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5476 CC="$ac_save_CC $ac_arg"
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_prog_cc_c89=$ac_arg
5480 rm -f core conftest.err conftest.$ac_objext
5481 test "x$ac_cv_prog_cc_c89" != "xno" && break
5482 done
5483 rm -f conftest.$ac_ext
5484 CC=$ac_save_CC
5487 # AC_CACHE_VAL
5488 case "x$ac_cv_prog_cc_c89" in
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5491 $as_echo "none needed" >&6; } ;;
5492 xno)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5494 $as_echo "unsupported" >&6; } ;;
5496 CC="$CC $ac_cv_prog_cc_c89"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5498 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5499 esac
5500 if test "x$ac_cv_prog_cc_c89" != xno; then :
5504 ac_ext=c
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510 depcc="$CC" am_compiler_list=
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5513 $as_echo_n "checking dependency style of $depcc... " >&6; }
5514 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5518 # We make a subdir and do the tests there. Otherwise we can end up
5519 # making bogus files that we don't know about and never remove. For
5520 # instance it was reported that on HP-UX the gcc test will end up
5521 # making a dummy file named `D' -- because `-MD' means `put the output
5522 # in D'.
5523 rm -rf conftest.dir
5524 mkdir conftest.dir
5525 # Copy depcomp to subdir because otherwise we won't find it if we're
5526 # using a relative directory.
5527 cp "$am_depcomp" conftest.dir
5528 cd conftest.dir
5529 # We will build objects and dependencies in a subdirectory because
5530 # it helps to detect inapplicable dependency modes. For instance
5531 # both Tru64's cc and ICC support -MD to output dependencies as a
5532 # side effect of compilation, but ICC will put the dependencies in
5533 # the current directory while Tru64 will put them in the object
5534 # directory.
5535 mkdir sub
5537 am_cv_CC_dependencies_compiler_type=none
5538 if test "$am_compiler_list" = ""; then
5539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5541 am__universal=false
5542 case " $depcc " in #(
5543 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5544 esac
5546 for depmode in $am_compiler_list; do
5547 # Setup a source with many dependencies, because some compilers
5548 # like to wrap large dependency lists on column 80 (with \), and
5549 # we should not choose a depcomp mode which is confused by this.
5551 # We need to recreate these files for each test, as the compiler may
5552 # overwrite some of them when testing with obscure command lines.
5553 # This happens at least with the AIX C compiler.
5554 : > sub/conftest.c
5555 for i in 1 2 3 4 5 6; do
5556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5558 # Solaris 8's {/usr,}/bin/sh.
5559 touch sub/conftst$i.h
5560 done
5561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5564 # mode. It turns out that the SunPro C++ compiler does not properly
5565 # handle `-M -o', and we need to detect this. Also, some Intel
5566 # versions had trouble with output in subdirs
5567 am__obj=sub/conftest.${OBJEXT-o}
5568 am__minus_obj="-o $am__obj"
5569 case $depmode in
5570 gcc)
5571 # This depmode causes a compiler race in universal mode.
5572 test "$am__universal" = false || continue
5574 nosideeffect)
5575 # after this tag, mechanisms are not by side-effect, so they'll
5576 # only be used when explicitly requested
5577 if test "x$enable_dependency_tracking" = xyes; then
5578 continue
5579 else
5580 break
5583 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5584 # This compiler won't grok `-c -o', but also, the minuso test has
5585 # not run yet. These depmodes are late enough in the game, and
5586 # so weak that their functioning should not be impacted.
5587 am__obj=conftest.${OBJEXT-o}
5588 am__minus_obj=
5590 none) break ;;
5591 esac
5592 if depmode=$depmode \
5593 source=sub/conftest.c object=$am__obj \
5594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5596 >/dev/null 2>conftest.err &&
5597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5601 # icc doesn't choke on unknown options, it will just issue warnings
5602 # or remarks (even with -Werror). So we grep stderr for any message
5603 # that says an option was ignored or not supported.
5604 # When given -MP, icc 7.0 and 7.1 complain thusly:
5605 # icc: Command line warning: ignoring option '-M'; no argument required
5606 # The diagnosis changed in icc 8.0:
5607 # icc: Command line remark: option '-MP' not supported
5608 if (grep 'ignoring option' conftest.err ||
5609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5610 am_cv_CC_dependencies_compiler_type=$depmode
5611 break
5614 done
5616 cd ..
5617 rm -rf conftest.dir
5618 else
5619 am_cv_CC_dependencies_compiler_type=none
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5624 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5628 test "x$enable_dependency_tracking" != xno \
5629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5630 am__fastdepCC_TRUE=
5631 am__fastdepCC_FALSE='#'
5632 else
5633 am__fastdepCC_TRUE='#'
5634 am__fastdepCC_FALSE=
5642 if test "x$CC" != xcc; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5644 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5647 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5649 set dummy $CC; ac_cc=`$as_echo "$2" |
5650 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5651 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 main ()
5662 return 0;
5664 _ACEOF
5665 # Make sure it works both with $CC and with simple cc.
5666 # We do the test twice because some compilers refuse to overwrite an
5667 # existing .o file with -o, though they will create one.
5668 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5669 rm -f conftest2.*
5670 if { { case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; } &&
5680 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685 $as_echo "$ac_try_echo"; } >&5
5686 (eval "$ac_try") 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; };
5690 then
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5692 if test "x$CC" != xcc; then
5693 # Test first that cc exists at all.
5694 if { ac_try='cc -c conftest.$ac_ext >&5'
5695 { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; }; }; then
5705 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5706 rm -f conftest2.*
5707 if { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; } &&
5717 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5722 $as_echo "$ac_try_echo"; } >&5
5723 (eval "$ac_try") 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; };
5727 then
5728 # cc works too.
5730 else
5731 # cc exists but doesn't like -o.
5732 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5736 else
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5739 rm -f core conftest*
5742 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744 $as_echo "yes" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5749 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5753 # FIXME: we rely on the cache variable name because
5754 # there is no other way.
5755 set dummy $CC
5756 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5757 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5758 if test "$am_t" != yes; then
5759 # Losing compiler, so override with the script.
5760 # FIXME: It is wrong to rewrite CC.
5761 # But if we don't then we get into trouble of one sort or another.
5762 # A longer-term fix would be to have automake use am__CC in this case,
5763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5764 CC="$am_aux_dir/compile $CC"
5769 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5770 if test "x$GCC" = "xyes"; then
5771 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5772 ## We like to use C99 routines when available. This makes sure that
5773 ## __STDC_VERSION__ is set such that libc includes make them available.
5774 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5775 ## Compile the following tests with the same system header contents
5776 ## that we'll encounter when compiling our own source files.
5777 CFLAGS="-std=gnu99 $CFLAGS"
5783 # Check for symbol versioning (copied from libssp).
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5785 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5786 # Check whether --enable-symvers was given.
5787 if test "${enable_symvers+set}" = set; then :
5788 enableval=$enable_symvers; gfortran_use_symver=$enableval
5789 else
5790 gfortran_use_symver=yes
5793 if test "x$gfortran_use_symver" != xno; then
5794 save_LDFLAGS="$LDFLAGS"
5795 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5796 cat > conftest.map <<EOF
5797 FOO_1.0 {
5798 global: *foo*; bar; local: *;
5801 if test x$gcc_no_link = xyes; then
5802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int foo;
5808 main ()
5812 return 0;
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 gfortran_use_symver=gnu
5817 else
5818 gfortran_use_symver=no
5820 rm -f core conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 if test x$gfortran_use_symver = xno; then
5823 case "$target_os" in
5824 solaris2*)
5825 LDFLAGS="$save_LDFLAGS"
5826 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5827 # Sun ld cannot handle wildcards and treats all entries as undefined.
5828 cat > conftest.map <<EOF
5829 FOO_1.0 {
5830 global: foo; local: *;
5833 if test x$gcc_no_link = xyes; then
5834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 int foo;
5840 main ()
5844 return 0;
5846 _ACEOF
5847 if ac_fn_c_try_link "$LINENO"; then :
5848 gfortran_use_symver=sun
5849 else
5850 gfortran_use_symver=no
5852 rm -f core conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
5855 esac
5857 LDFLAGS="$save_LDFLAGS"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5860 $as_echo "$gfortran_use_symver" >&6; }
5861 if test "x$gfortran_use_symver" != xno; then
5862 LIBGFOR_USE_SYMVER_TRUE=
5863 LIBGFOR_USE_SYMVER_FALSE='#'
5864 else
5865 LIBGFOR_USE_SYMVER_TRUE='#'
5866 LIBGFOR_USE_SYMVER_FALSE=
5869 if test "x$gfortran_use_symver" = xgnu; then
5870 LIBGFOR_USE_SYMVER_GNU_TRUE=
5871 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5872 else
5873 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5874 LIBGFOR_USE_SYMVER_GNU_FALSE=
5877 if test "x$gfortran_use_symver" = xsun; then
5878 LIBGFOR_USE_SYMVER_SUN_TRUE=
5879 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5880 else
5881 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5882 LIBGFOR_USE_SYMVER_SUN_FALSE=
5886 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5887 # similarly to how libstdc++ does it
5888 ac_test_CFLAGS="${CFLAGS+set}"
5889 ac_save_CFLAGS="$CFLAGS"
5891 # Check for -ffunction-sections -fdata-sections
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5893 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5894 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5899 main ()
5901 int foo;
5903 return 0;
5905 _ACEOF
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907 ac_fdsections=yes
5908 else
5909 ac_fdsections=no
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 if test "$ac_test_CFLAGS" = set; then
5913 CFLAGS="$ac_save_CFLAGS"
5914 else
5915 # this is the suspicious part
5916 CFLAGS=""
5918 if test x"$ac_fdsections" = x"yes"; then
5919 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5922 $as_echo "$ac_fdsections" >&6; }
5925 # Find other programs we need.
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_AS+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$AS"; then
5935 ac_cv_prog_AS="$AS" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_AS="${ac_tool_prefix}as"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5948 done
5949 done
5950 IFS=$as_save_IFS
5954 AS=$ac_cv_prog_AS
5955 if test -n "$AS"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5957 $as_echo "$AS" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 if test -z "$ac_cv_prog_AS"; then
5966 ac_ct_AS=$AS
5967 # Extract the first word of "as", so it can be a program name with args.
5968 set dummy as; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$ac_ct_AS"; then
5975 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_AS="as"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5990 IFS=$as_save_IFS
5994 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5995 if test -n "$ac_ct_AS"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5997 $as_echo "$ac_ct_AS" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6003 if test "x$ac_ct_AS" = x; then
6004 AS=""
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 AS=$ac_ct_AS
6014 else
6015 AS="$ac_cv_prog_AS"
6018 if test -n "$ac_tool_prefix"; then
6019 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6020 set dummy ${ac_tool_prefix}ar; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if test "${ac_cv_prog_AR+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -n "$AR"; then
6027 ac_cv_prog_AR="$AR" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_AR="${ac_tool_prefix}ar"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6040 done
6041 done
6042 IFS=$as_save_IFS
6046 AR=$ac_cv_prog_AR
6047 if test -n "$AR"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6049 $as_echo "$AR" >&6; }
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6057 if test -z "$ac_cv_prog_AR"; then
6058 ac_ct_AR=$AR
6059 # Extract the first word of "ar", so it can be a program name with args.
6060 set dummy ar; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$ac_ct_AR"; then
6067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_ac_ct_AR="ar"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6080 done
6081 done
6082 IFS=$as_save_IFS
6086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6087 if test -n "$ac_ct_AR"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6089 $as_echo "$ac_ct_AR" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6095 if test "x$ac_ct_AR" = x; then
6096 AR=""
6097 else
6098 case $cross_compiling:$ac_tool_warned in
6099 yes:)
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104 AR=$ac_ct_AR
6106 else
6107 AR="$ac_cv_prog_AR"
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$RANLIB"; then
6119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6132 done
6133 done
6134 IFS=$as_save_IFS
6138 RANLIB=$ac_cv_prog_RANLIB
6139 if test -n "$RANLIB"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6141 $as_echo "$RANLIB" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 if test -z "$ac_cv_prog_RANLIB"; then
6150 ac_ct_RANLIB=$RANLIB
6151 # Extract the first word of "ranlib", so it can be a program name with args.
6152 set dummy ranlib; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$ac_ct_RANLIB"; then
6159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_RANLIB="ranlib"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6172 done
6173 done
6174 IFS=$as_save_IFS
6178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6179 if test -n "$ac_ct_RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6181 $as_echo "$ac_ct_RANLIB" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6187 if test "x$ac_ct_RANLIB" = x; then
6188 RANLIB="ranlib-not-found-in-path-error"
6189 else
6190 case $cross_compiling:$ac_tool_warned in
6191 yes:)
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194 ac_tool_warned=yes ;;
6195 esac
6196 RANLIB=$ac_ct_RANLIB
6198 else
6199 RANLIB="$ac_cv_prog_RANLIB"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6204 set x ${MAKE-make}
6205 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat >conftest.make <<\_ACEOF
6210 SHELL = /bin/sh
6211 all:
6212 @echo '@@@%%%=$(MAKE)=@@@%%%'
6213 _ACEOF
6214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6216 *@@@%%%=?*=@@@%%%*)
6217 eval ac_cv_prog_make_${ac_make}_set=yes;;
6219 eval ac_cv_prog_make_${ac_make}_set=no;;
6220 esac
6221 rm -f conftest.make
6223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6225 $as_echo "yes" >&6; }
6226 SET_MAKE=
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 SET_MAKE="MAKE=${MAKE-make}"
6235 # Configure libtool
6236 #AC_MSG_NOTICE([====== Starting libtool configuration])
6237 enable_dlopen=yes
6241 case `pwd` in
6242 *\ * | *\ *)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6244 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6245 esac
6249 macro_version='2.2.7a'
6250 macro_revision='1.3134'
6264 ltmain="$ac_aux_dir/ltmain.sh"
6266 # Backslashify metacharacters that are still active within
6267 # double-quoted strings.
6268 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6270 # Same as above, but do not quote variable references.
6271 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6273 # Sed substitution to delay expansion of an escaped shell variable in a
6274 # double_quote_subst'ed string.
6275 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6277 # Sed substitution to delay expansion of an escaped single quote.
6278 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6280 # Sed substitution to avoid accidental globbing in evaled expressions
6281 no_glob_subst='s/\*/\\\*/g'
6283 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6288 $as_echo_n "checking how to print strings... " >&6; }
6289 # Test print first, because it will be a builtin if present.
6290 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6292 ECHO='print -r --'
6293 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6294 ECHO='printf %s\n'
6295 else
6296 # Use this function as a fallback that always works.
6297 func_fallback_echo ()
6299 eval 'cat <<_LTECHO_EOF
6301 _LTECHO_EOF'
6303 ECHO='func_fallback_echo'
6306 # func_echo_all arg...
6307 # Invoke $ECHO with all args, space-separated.
6308 func_echo_all ()
6310 $ECHO ""
6313 case "$ECHO" in
6314 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6315 $as_echo "printf" >&6; } ;;
6316 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6317 $as_echo "print -r" >&6; } ;;
6318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6319 $as_echo "cat" >&6; } ;;
6320 esac
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6337 if test "${ac_cv_path_SED+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6341 for ac_i in 1 2 3 4 5 6 7; do
6342 ac_script="$ac_script$as_nl$ac_script"
6343 done
6344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6345 { ac_script=; unset ac_script;}
6346 if test -z "$SED"; then
6347 ac_path_SED_found=false
6348 # Loop through the user's path and test for each of PROGNAME-LIST
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_prog in sed gsed; do
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6357 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6358 # Check for GNU ac_path_SED and select it if it is found.
6359 # Check for GNU $ac_path_SED
6360 case `"$ac_path_SED" --version 2>&1` in
6361 *GNU*)
6362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6364 ac_count=0
6365 $as_echo_n 0123456789 >"conftest.in"
6366 while :
6368 cat "conftest.in" "conftest.in" >"conftest.tmp"
6369 mv "conftest.tmp" "conftest.in"
6370 cp "conftest.in" "conftest.nl"
6371 $as_echo '' >> "conftest.nl"
6372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6374 as_fn_arith $ac_count + 1 && ac_count=$as_val
6375 if test $ac_count -gt ${ac_path_SED_max-0}; then
6376 # Best one so far, save it but keep looking for a better one
6377 ac_cv_path_SED="$ac_path_SED"
6378 ac_path_SED_max=$ac_count
6380 # 10*(2^10) chars as input seems more than enough
6381 test $ac_count -gt 10 && break
6382 done
6383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6384 esac
6386 $ac_path_SED_found && break 3
6387 done
6388 done
6389 done
6390 IFS=$as_save_IFS
6391 if test -z "$ac_cv_path_SED"; then
6392 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6394 else
6395 ac_cv_path_SED=$SED
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6400 $as_echo "$ac_cv_path_SED" >&6; }
6401 SED="$ac_cv_path_SED"
6402 rm -f conftest.sed
6404 test -z "$SED" && SED=sed
6405 Xsed="$SED -e 1s/^X//"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6418 $as_echo_n "checking for fgrep... " >&6; }
6419 if test "${ac_cv_path_FGREP+set}" = set; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6423 then ac_cv_path_FGREP="$GREP -F"
6424 else
6425 if test -z "$FGREP"; then
6426 ac_path_FGREP_found=false
6427 # Loop through the user's path and test for each of PROGNAME-LIST
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_prog in fgrep; do
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6436 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6437 # Check for GNU ac_path_FGREP and select it if it is found.
6438 # Check for GNU $ac_path_FGREP
6439 case `"$ac_path_FGREP" --version 2>&1` in
6440 *GNU*)
6441 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6443 ac_count=0
6444 $as_echo_n 0123456789 >"conftest.in"
6445 while :
6447 cat "conftest.in" "conftest.in" >"conftest.tmp"
6448 mv "conftest.tmp" "conftest.in"
6449 cp "conftest.in" "conftest.nl"
6450 $as_echo 'FGREP' >> "conftest.nl"
6451 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6453 as_fn_arith $ac_count + 1 && ac_count=$as_val
6454 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6455 # Best one so far, save it but keep looking for a better one
6456 ac_cv_path_FGREP="$ac_path_FGREP"
6457 ac_path_FGREP_max=$ac_count
6459 # 10*(2^10) chars as input seems more than enough
6460 test $ac_count -gt 10 && break
6461 done
6462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6463 esac
6465 $ac_path_FGREP_found && break 3
6466 done
6467 done
6468 done
6469 IFS=$as_save_IFS
6470 if test -z "$ac_cv_path_FGREP"; then
6471 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6473 else
6474 ac_cv_path_FGREP=$FGREP
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6480 $as_echo "$ac_cv_path_FGREP" >&6; }
6481 FGREP="$ac_cv_path_FGREP"
6484 test -z "$GREP" && GREP=grep
6504 # Check whether --with-gnu-ld was given.
6505 if test "${with_gnu_ld+set}" = set; then :
6506 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6507 else
6508 with_gnu_ld=no
6511 ac_prog=ld
6512 if test "$GCC" = yes; then
6513 # Check if gcc -print-prog-name=ld gives a path.
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6515 $as_echo_n "checking for ld used by $CC... " >&6; }
6516 case $host in
6517 *-*-mingw*)
6518 # gcc leaves a trailing carriage return which upsets mingw
6519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6522 esac
6523 case $ac_prog in
6524 # Accept absolute paths.
6525 [\\/]* | ?:[\\/]*)
6526 re_direlt='/[^/][^/]*/\.\./'
6527 # Canonicalize the pathname of ld
6528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6531 done
6532 test -z "$LD" && LD="$ac_prog"
6535 # If it fails, then pretend we aren't using GCC.
6536 ac_prog=ld
6539 # If it is relative, then search for the first ld in PATH.
6540 with_gnu_ld=unknown
6542 esac
6543 elif test "$with_gnu_ld" = yes; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6545 $as_echo_n "checking for GNU ld... " >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6548 $as_echo_n "checking for non-GNU ld... " >&6; }
6550 if test "${lt_cv_path_LD+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -z "$LD"; then
6554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6555 for ac_dir in $PATH; do
6556 IFS="$lt_save_ifs"
6557 test -z "$ac_dir" && ac_dir=.
6558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6559 lt_cv_path_LD="$ac_dir/$ac_prog"
6560 # Check to see if the program is GNU ld. I'd rather use --version,
6561 # but apparently some variants of GNU ld only accept -v.
6562 # Break only if it was the GNU/non-GNU ld that we prefer.
6563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6564 *GNU* | *'with BFD'*)
6565 test "$with_gnu_ld" != no && break
6568 test "$with_gnu_ld" != yes && break
6570 esac
6572 done
6573 IFS="$lt_save_ifs"
6574 else
6575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6579 LD="$lt_cv_path_LD"
6580 if test -n "$LD"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6582 $as_echo "$LD" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6587 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6590 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6594 case `$LD -v 2>&1 </dev/null` in
6595 *GNU* | *'with BFD'*)
6596 lt_cv_prog_gnu_ld=yes
6599 lt_cv_prog_gnu_ld=no
6601 esac
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6605 with_gnu_ld=$lt_cv_prog_gnu_ld
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6616 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6617 if test "${lt_cv_path_NM+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$NM"; then
6621 # Let the user override the test.
6622 lt_cv_path_NM="$NM"
6623 else
6624 lt_nm_to_check="${ac_tool_prefix}nm"
6625 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6626 lt_nm_to_check="$lt_nm_to_check nm"
6628 for lt_tmp_nm in $lt_nm_to_check; do
6629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6630 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6631 IFS="$lt_save_ifs"
6632 test -z "$ac_dir" && ac_dir=.
6633 tmp_nm="$ac_dir/$lt_tmp_nm"
6634 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6635 # Check to see if the nm accepts a BSD-compat flag.
6636 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6637 # nm: unknown option "B" ignored
6638 # Tru64's nm complains that /dev/null is an invalid object file
6639 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6640 */dev/null* | *'Invalid file or object type'*)
6641 lt_cv_path_NM="$tmp_nm -B"
6642 break
6645 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6646 */dev/null*)
6647 lt_cv_path_NM="$tmp_nm -p"
6648 break
6651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6652 continue # so that we can try to find one that supports BSD flags
6654 esac
6656 esac
6658 done
6659 IFS="$lt_save_ifs"
6660 done
6661 : ${lt_cv_path_NM=no}
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6665 $as_echo "$lt_cv_path_NM" >&6; }
6666 if test "$lt_cv_path_NM" != "no"; then
6667 NM="$lt_cv_path_NM"
6668 else
6669 # Didn't find any BSD compatible name lister, look for dumpbin.
6670 if test -n "$DUMPBIN"; then :
6671 # Let the user override the test.
6672 else
6673 if test -n "$ac_tool_prefix"; then
6674 for ac_prog in dumpbin "link -dump"
6676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$DUMPBIN"; then
6684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6699 IFS=$as_save_IFS
6703 DUMPBIN=$ac_cv_prog_DUMPBIN
6704 if test -n "$DUMPBIN"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6706 $as_echo "$DUMPBIN" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6713 test -n "$DUMPBIN" && break
6714 done
6716 if test -z "$DUMPBIN"; then
6717 ac_ct_DUMPBIN=$DUMPBIN
6718 for ac_prog in dumpbin "link -dump"
6720 # Extract the first word of "$ac_prog", so it can be a program name with args.
6721 set dummy $ac_prog; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$ac_ct_DUMPBIN"; then
6728 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6741 done
6742 done
6743 IFS=$as_save_IFS
6747 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6748 if test -n "$ac_ct_DUMPBIN"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6750 $as_echo "$ac_ct_DUMPBIN" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6757 test -n "$ac_ct_DUMPBIN" && break
6758 done
6760 if test "x$ac_ct_DUMPBIN" = x; then
6761 DUMPBIN=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764 yes:)
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769 DUMPBIN=$ac_ct_DUMPBIN
6773 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6774 *COFF*)
6775 DUMPBIN="$DUMPBIN -symbols"
6778 DUMPBIN=:
6780 esac
6783 if test "$DUMPBIN" != ":"; then
6784 NM="$DUMPBIN"
6787 test -z "$NM" && NM=nm
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6795 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6796 if test "${lt_cv_nm_interface+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 lt_cv_nm_interface="BSD nm"
6800 echo "int some_variable = 0;" > conftest.$ac_ext
6801 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6802 (eval "$ac_compile" 2>conftest.err)
6803 cat conftest.err >&5
6804 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6806 cat conftest.err >&5
6807 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6808 cat conftest.out >&5
6809 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6810 lt_cv_nm_interface="MS dumpbin"
6812 rm -f conftest*
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6815 $as_echo "$lt_cv_nm_interface" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6818 $as_echo_n "checking whether ln -s works... " >&6; }
6819 LN_S=$as_ln_s
6820 if test "$LN_S" = "ln -s"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6822 $as_echo "yes" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6825 $as_echo "no, using $LN_S" >&6; }
6828 # find the maximum length of command line arguments
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6830 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6831 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6835 teststring="ABCD"
6837 case $build_os in
6838 msdosdjgpp*)
6839 # On DJGPP, this test can blow up pretty badly due to problems in libc
6840 # (any single argument exceeding 2000 bytes causes a buffer overrun
6841 # during glob expansion). Even if it were fixed, the result of this
6842 # check would be larger than it should be.
6843 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6846 gnu*)
6847 # Under GNU Hurd, this test is not required because there is
6848 # no limit to the length of command line arguments.
6849 # Libtool will interpret -1 as no limit whatsoever
6850 lt_cv_sys_max_cmd_len=-1;
6853 cygwin* | mingw* | cegcc*)
6854 # On Win9x/ME, this test blows up -- it succeeds, but takes
6855 # about 5 minutes as the teststring grows exponentially.
6856 # Worse, since 9x/ME are not pre-emptively multitasking,
6857 # you end up with a "frozen" computer, even though with patience
6858 # the test eventually succeeds (with a max line length of 256k).
6859 # Instead, let's just punt: use the minimum linelength reported by
6860 # all of the supported platforms: 8192 (on NT/2K/XP).
6861 lt_cv_sys_max_cmd_len=8192;
6864 mint*)
6865 # On MiNT this can take a long time and run out of memory.
6866 lt_cv_sys_max_cmd_len=8192;
6869 amigaos*)
6870 # On AmigaOS with pdksh, this test takes hours, literally.
6871 # So we just punt and use a minimum line length of 8192.
6872 lt_cv_sys_max_cmd_len=8192;
6875 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6876 # This has been around since 386BSD, at least. Likely further.
6877 if test -x /sbin/sysctl; then
6878 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6879 elif test -x /usr/sbin/sysctl; then
6880 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6881 else
6882 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6884 # And add a safety zone
6885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6889 interix*)
6890 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6891 lt_cv_sys_max_cmd_len=196608
6894 osf*)
6895 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6896 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6897 # nice to cause kernel panics so lets avoid the loop below.
6898 # First set a reasonable default.
6899 lt_cv_sys_max_cmd_len=16384
6901 if test -x /sbin/sysconfig; then
6902 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6903 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6904 esac
6907 sco3.2v5*)
6908 lt_cv_sys_max_cmd_len=102400
6910 sysv5* | sco5v6* | sysv4.2uw2*)
6911 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6912 if test -n "$kargmax"; then
6913 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6914 else
6915 lt_cv_sys_max_cmd_len=32768
6919 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6920 if test -n "$lt_cv_sys_max_cmd_len"; then
6921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6923 else
6924 # Make teststring a little bigger before we do anything with it.
6925 # a 1K string should be a reasonable start.
6926 for i in 1 2 3 4 5 6 7 8 ; do
6927 teststring=$teststring$teststring
6928 done
6929 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6930 # If test is not a shell built-in, we'll probably end up computing a
6931 # maximum length that is only half of the actual maximum length, but
6932 # we can't tell.
6933 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6934 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6935 test $i != 17 # 1/2 MB should be enough
6937 i=`expr $i + 1`
6938 teststring=$teststring$teststring
6939 done
6940 # Only check the string length outside the loop.
6941 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6942 teststring=
6943 # Add a significant safety factor because C++ compilers can tack on
6944 # massive amounts of additional arguments before passing them to the
6945 # linker. It appears as though 1/2 is a usable value.
6946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6949 esac
6953 if test -n $lt_cv_sys_max_cmd_len ; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6955 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6958 $as_echo "none" >&6; }
6960 max_cmd_len=$lt_cv_sys_max_cmd_len
6967 : ${CP="cp -f"}
6968 : ${MV="mv -f"}
6969 : ${RM="rm -f"}
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6972 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6973 # Try some XSI features
6974 xsi_shell=no
6975 ( _lt_dummy="a/b/c"
6976 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6977 = c,a/b,, \
6978 && eval 'test $(( 1 + 1 )) -eq 2 \
6979 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6980 && xsi_shell=yes
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6982 $as_echo "$xsi_shell" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6986 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6987 lt_shell_append=no
6988 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6989 >/dev/null 2>&1 \
6990 && lt_shell_append=yes
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6992 $as_echo "$lt_shell_append" >&6; }
6995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6996 lt_unset=unset
6997 else
6998 lt_unset=false
7005 # test EBCDIC or ASCII
7006 case `echo X|tr X '\101'` in
7007 A) # ASCII based system
7008 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7009 lt_SP2NL='tr \040 \012'
7010 lt_NL2SP='tr \015\012 \040\040'
7012 *) # EBCDIC based system
7013 lt_SP2NL='tr \100 \n'
7014 lt_NL2SP='tr \r\n \100\100'
7016 esac
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7027 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7028 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 lt_cv_ld_reload_flag='-r'
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7034 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7035 reload_flag=$lt_cv_ld_reload_flag
7036 case $reload_flag in
7037 "" | " "*) ;;
7038 *) reload_flag=" $reload_flag" ;;
7039 esac
7040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7041 case $host_os in
7042 darwin*)
7043 if test "$GCC" = yes; then
7044 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7045 else
7046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7049 esac
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$OBJDUMP"; then
7068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7087 OBJDUMP=$ac_cv_prog_OBJDUMP
7088 if test -n "$OBJDUMP"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7090 $as_echo "$OBJDUMP" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7098 if test -z "$ac_cv_prog_OBJDUMP"; then
7099 ac_ct_OBJDUMP=$OBJDUMP
7100 # Extract the first word of "objdump", so it can be a program name with args.
7101 set dummy objdump; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$ac_ct_OBJDUMP"; then
7108 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7128 if test -n "$ac_ct_OBJDUMP"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7130 $as_echo "$ac_ct_OBJDUMP" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 if test "x$ac_ct_OBJDUMP" = x; then
7137 OBJDUMP="false"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145 OBJDUMP=$ac_ct_OBJDUMP
7147 else
7148 OBJDUMP="$ac_cv_prog_OBJDUMP"
7151 test -z "$OBJDUMP" && OBJDUMP=objdump
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7162 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7163 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 lt_cv_file_magic_cmd='$MAGIC_CMD'
7167 lt_cv_file_magic_test_file=
7168 lt_cv_deplibs_check_method='unknown'
7169 # Need to set the preceding variable on all platforms that support
7170 # interlibrary dependencies.
7171 # 'none' -- dependencies not supported.
7172 # `unknown' -- same as none, but documents that we really don't know.
7173 # 'pass_all' -- all dependencies passed with no checks.
7174 # 'test_compile' -- check by making test program.
7175 # 'file_magic [[regex]]' -- check by looking for files in library path
7176 # which responds to the $file_magic_cmd with a given extended regex.
7177 # If you have `file' or equivalent on your system and you're not sure
7178 # whether `pass_all' will *always* work, you probably want this one.
7180 case $host_os in
7181 aix[4-9]*)
7182 lt_cv_deplibs_check_method=pass_all
7185 beos*)
7186 lt_cv_deplibs_check_method=pass_all
7189 bsdi[45]*)
7190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7191 lt_cv_file_magic_cmd='/usr/bin/file -L'
7192 lt_cv_file_magic_test_file=/shlib/libc.so
7195 cygwin*)
7196 # func_win32_libid is a shell function defined in ltmain.sh
7197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7198 lt_cv_file_magic_cmd='func_win32_libid'
7201 mingw* | pw32*)
7202 # Base MSYS/MinGW do not provide the 'file' command needed by
7203 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7204 # unless we find 'file', for example because we are cross-compiling.
7205 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7206 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7208 lt_cv_file_magic_cmd='func_win32_libid'
7209 else
7210 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7211 lt_cv_file_magic_cmd='$OBJDUMP -f'
7215 cegcc*)
7216 # use the weaker test based on 'objdump'. See mingw*.
7217 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7218 lt_cv_file_magic_cmd='$OBJDUMP -f'
7221 darwin* | rhapsody*)
7222 lt_cv_deplibs_check_method=pass_all
7225 freebsd* | dragonfly*)
7226 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7227 case $host_cpu in
7228 i*86 )
7229 # Not sure whether the presence of OpenBSD here was a mistake.
7230 # Let's accept both of them until this is cleared up.
7231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7232 lt_cv_file_magic_cmd=/usr/bin/file
7233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7235 esac
7236 else
7237 lt_cv_deplibs_check_method=pass_all
7241 gnu*)
7242 lt_cv_deplibs_check_method=pass_all
7245 haiku*)
7246 lt_cv_deplibs_check_method=pass_all
7249 hpux10.20* | hpux11*)
7250 lt_cv_file_magic_cmd=/usr/bin/file
7251 case $host_cpu in
7252 ia64*)
7253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7256 hppa*64*)
7257 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]'
7258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7262 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7264 esac
7267 interix[3-9]*)
7268 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7272 irix5* | irix6* | nonstopux*)
7273 case $LD in
7274 *-32|*"-32 ") libmagic=32-bit;;
7275 *-n32|*"-n32 ") libmagic=N32;;
7276 *-64|*"-64 ") libmagic=64-bit;;
7277 *) libmagic=never-match;;
7278 esac
7279 lt_cv_deplibs_check_method=pass_all
7282 # This must be Linux ELF.
7283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7284 lt_cv_deplibs_check_method=pass_all
7287 netbsd*)
7288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7290 else
7291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7295 newos6*)
7296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7297 lt_cv_file_magic_cmd=/usr/bin/file
7298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7301 *nto* | *qnx*)
7302 lt_cv_deplibs_check_method=pass_all
7305 openbsd*)
7306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7308 else
7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7313 osf3* | osf4* | osf5*)
7314 lt_cv_deplibs_check_method=pass_all
7317 rdos*)
7318 lt_cv_deplibs_check_method=pass_all
7321 solaris*)
7322 lt_cv_deplibs_check_method=pass_all
7325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7326 lt_cv_deplibs_check_method=pass_all
7329 sysv4 | sysv4.3*)
7330 case $host_vendor in
7331 motorola)
7332 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]'
7333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7335 ncr)
7336 lt_cv_deplibs_check_method=pass_all
7338 sequent)
7339 lt_cv_file_magic_cmd='/bin/file'
7340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7342 sni)
7343 lt_cv_file_magic_cmd='/bin/file'
7344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7345 lt_cv_file_magic_test_file=/lib/libc.so
7347 siemens)
7348 lt_cv_deplibs_check_method=pass_all
7351 lt_cv_deplibs_check_method=pass_all
7353 esac
7356 tpf*)
7357 lt_cv_deplibs_check_method=pass_all
7359 esac
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7363 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7364 file_magic_cmd=$lt_cv_file_magic_cmd
7365 deplibs_check_method=$lt_cv_deplibs_check_method
7366 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}ar; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_AR+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 if test -n "$AR"; then
7388 ac_cv_prog_AR="$AR" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_AR="${ac_tool_prefix}ar"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7401 done
7402 done
7403 IFS=$as_save_IFS
7407 AR=$ac_cv_prog_AR
7408 if test -n "$AR"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7410 $as_echo "$AR" >&6; }
7411 else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7418 if test -z "$ac_cv_prog_AR"; then
7419 ac_ct_AR=$AR
7420 # Extract the first word of "ar", so it can be a program name with args.
7421 set dummy ar; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$ac_ct_AR"; then
7428 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_ac_ct_AR="ar"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7441 done
7442 done
7443 IFS=$as_save_IFS
7447 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7448 if test -n "$ac_ct_AR"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7450 $as_echo "$ac_ct_AR" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7456 if test "x$ac_ct_AR" = x; then
7457 AR="false"
7458 else
7459 case $cross_compiling:$ac_tool_warned in
7460 yes:)
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465 AR=$ac_ct_AR
7467 else
7468 AR="$ac_cv_prog_AR"
7471 test -z "$AR" && AR=ar
7472 test -z "$AR_FLAGS" && AR_FLAGS=cru
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}strip; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_STRIP+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$STRIP"; then
7493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7506 done
7507 done
7508 IFS=$as_save_IFS
7512 STRIP=$ac_cv_prog_STRIP
7513 if test -n "$STRIP"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7515 $as_echo "$STRIP" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7523 if test -z "$ac_cv_prog_STRIP"; then
7524 ac_ct_STRIP=$STRIP
7525 # Extract the first word of "strip", so it can be a program name with args.
7526 set dummy strip; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_STRIP"; then
7533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_prog_ac_ct_STRIP="strip"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7546 done
7547 done
7548 IFS=$as_save_IFS
7552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7553 if test -n "$ac_ct_STRIP"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7555 $as_echo "$ac_ct_STRIP" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7561 if test "x$ac_ct_STRIP" = x; then
7562 STRIP=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 STRIP=$ac_ct_STRIP
7572 else
7573 STRIP="$ac_cv_prog_STRIP"
7576 test -z "$STRIP" && STRIP=:
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 if test -n "$RANLIB"; then
7592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7605 done
7606 done
7607 IFS=$as_save_IFS
7611 RANLIB=$ac_cv_prog_RANLIB
7612 if test -n "$RANLIB"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7614 $as_echo "$RANLIB" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_RANLIB"; then
7623 ac_ct_RANLIB=$RANLIB
7624 # Extract the first word of "ranlib", so it can be a program name with args.
7625 set dummy ranlib; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 if test -n "$ac_ct_RANLIB"; then
7632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_ac_ct_RANLIB="ranlib"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7645 done
7646 done
7647 IFS=$as_save_IFS
7651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7652 if test -n "$ac_ct_RANLIB"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7654 $as_echo "$ac_ct_RANLIB" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_RANLIB" = x; then
7661 RANLIB=":"
7662 else
7663 case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669 RANLIB=$ac_ct_RANLIB
7671 else
7672 RANLIB="$ac_cv_prog_RANLIB"
7675 test -z "$RANLIB" && RANLIB=:
7682 # Determine commands to create old-style static archives.
7683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7684 old_postinstall_cmds='chmod 644 $oldlib'
7685 old_postuninstall_cmds=
7687 if test -n "$RANLIB"; then
7688 case $host_os in
7689 openbsd*)
7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7693 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7695 esac
7696 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7699 case $host_os in
7700 darwin*)
7701 lock_old_archive_extraction=yes ;;
7703 lock_old_archive_extraction=no ;;
7704 esac
7744 # If no C compiler was specified, use CC.
7745 LTCC=${LTCC-"$CC"}
7747 # If no C compiler flags were specified, use CFLAGS.
7748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7750 # Allow CC to be a program name with arguments.
7751 compiler=$CC
7754 # Check for command to grab the raw symbol name followed by C symbol from nm.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7757 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7761 # These are sane defaults that work on at least a few old systems.
7762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7764 # Character class describing NM global symbol codes.
7765 symcode='[BCDEGRST]'
7767 # Regexp to match symbols that can be accessed directly from C.
7768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7770 # Define system-specific variables.
7771 case $host_os in
7772 aix*)
7773 symcode='[BCDT]'
7775 cygwin* | mingw* | pw32* | cegcc*)
7776 symcode='[ABCDGISTW]'
7778 hpux*)
7779 if test "$host_cpu" = ia64; then
7780 symcode='[ABCDEGRST]'
7783 irix* | nonstopux*)
7784 symcode='[BCDEGRST]'
7786 osf*)
7787 symcode='[BCDEGQRST]'
7789 solaris*)
7790 symcode='[BDRT]'
7792 sco3.2v5*)
7793 symcode='[DT]'
7795 sysv4.2uw2*)
7796 symcode='[DT]'
7798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7799 symcode='[ABDT]'
7801 sysv4)
7802 symcode='[DFNSTU]'
7804 esac
7806 # If we're using GNU nm, then use its standard symbol codes.
7807 case `$NM -V 2>&1` in
7808 *GNU* | *'with BFD'*)
7809 symcode='[ABCDGIRSTW]' ;;
7810 esac
7812 # Transform an extracted symbol line into a proper C declaration.
7813 # Some systems (esp. on ia64) link data and code symbols differently,
7814 # so use this general approach.
7815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7817 # Transform an extracted symbol line into symbol name and symbol address
7818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7819 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'"
7821 # Handle CRLF in mingw tool chain
7822 opt_cr=
7823 case $build_os in
7824 mingw*)
7825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7827 esac
7829 # Try without a prefix underscore, then with it.
7830 for ac_symprfx in "" "_"; do
7832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7833 symxfrm="\\1 $ac_symprfx\\2 \\2"
7835 # Write the raw and C identifiers.
7836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7837 # Fake it for dumpbin and say T for any non-static function
7838 # and D for any global variable.
7839 # Also find C++ and __fastcall symbols from MSVC++,
7840 # which start with @ or ?.
7841 lt_cv_sys_global_symbol_pipe="$AWK '"\
7842 " {last_section=section; section=\$ 3};"\
7843 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7844 " \$ 0!~/External *\|/{next};"\
7845 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7846 " {if(hide[section]) next};"\
7847 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7848 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7849 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7850 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7851 " ' prfx=^$ac_symprfx"
7852 else
7853 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856 # Check to see that the pipe works correctly.
7857 pipe_works=no
7859 rm -f conftest*
7860 cat > conftest.$ac_ext <<_LT_EOF
7861 #ifdef __cplusplus
7862 extern "C" {
7863 #endif
7864 char nm_test_var;
7865 void nm_test_func(void);
7866 void nm_test_func(void){}
7867 #ifdef __cplusplus
7869 #endif
7870 int main(){nm_test_var='a';nm_test_func();return(0);}
7871 _LT_EOF
7873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7874 (eval $ac_compile) 2>&5
7875 ac_status=$?
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }; then
7878 # Now try to grab the symbols.
7879 nlist=conftest.nm
7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; } && test -s "$nlist"; then
7885 # Try sorting and uniquifying the output.
7886 if sort "$nlist" | uniq > "$nlist"T; then
7887 mv -f "$nlist"T "$nlist"
7888 else
7889 rm -f "$nlist"T
7892 # Make sure that we snagged all the symbols we need.
7893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7895 cat <<_LT_EOF > conftest.$ac_ext
7896 #ifdef __cplusplus
7897 extern "C" {
7898 #endif
7900 _LT_EOF
7901 # Now generate the symbol file.
7902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7904 cat <<_LT_EOF >> conftest.$ac_ext
7906 /* The mapping between symbol names and symbols. */
7907 const struct {
7908 const char *name;
7909 void *address;
7911 lt__PROGRAM__LTX_preloaded_symbols[] =
7913 { "@PROGRAM@", (void *) 0 },
7914 _LT_EOF
7915 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7916 cat <<\_LT_EOF >> conftest.$ac_ext
7917 {0, (void *) 0}
7920 /* This works around a problem in FreeBSD linker */
7921 #ifdef FREEBSD_WORKAROUND
7922 static const void *lt_preloaded_setup() {
7923 return lt__PROGRAM__LTX_preloaded_symbols;
7925 #endif
7927 #ifdef __cplusplus
7929 #endif
7930 _LT_EOF
7931 # Now try linking the two files.
7932 mv conftest.$ac_objext conftstm.$ac_objext
7933 lt_save_LIBS="$LIBS"
7934 lt_save_CFLAGS="$CFLAGS"
7935 LIBS="conftstm.$ac_objext"
7936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7938 (eval $ac_link) 2>&5
7939 ac_status=$?
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7942 pipe_works=yes
7944 LIBS="$lt_save_LIBS"
7945 CFLAGS="$lt_save_CFLAGS"
7946 else
7947 echo "cannot find nm_test_func in $nlist" >&5
7949 else
7950 echo "cannot find nm_test_var in $nlist" >&5
7952 else
7953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7955 else
7956 echo "$progname: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7959 rm -rf conftest* conftst*
7961 # Do not use the global_symbol_pipe unless it works.
7962 if test "$pipe_works" = yes; then
7963 break
7964 else
7965 lt_cv_sys_global_symbol_pipe=
7967 done
7971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7972 lt_cv_sys_global_symbol_to_cdecl=
7974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7976 $as_echo "failed" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7979 $as_echo "ok" >&6; }
8003 # Check whether --enable-libtool-lock was given.
8004 if test "${enable_libtool_lock+set}" = set; then :
8005 enableval=$enable_libtool_lock;
8008 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8010 # Some flags need to be propagated to the compiler or linker for good
8011 # libtool support.
8012 case $host in
8013 ia64-*-hpux*)
8014 # Find out which ABI we are using.
8015 echo 'int i;' > conftest.$ac_ext
8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017 (eval $ac_compile) 2>&5
8018 ac_status=$?
8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; }; then
8021 case `/usr/bin/file conftest.$ac_objext` in
8022 *ELF-32*)
8023 HPUX_IA64_MODE="32"
8025 *ELF-64*)
8026 HPUX_IA64_MODE="64"
8028 esac
8030 rm -rf conftest*
8032 *-*-irix6*)
8033 # Find out which ABI we are using.
8034 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036 (eval $ac_compile) 2>&5
8037 ac_status=$?
8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039 test $ac_status = 0; }; then
8040 if test "$lt_cv_prog_gnu_ld" = yes; then
8041 case `/usr/bin/file conftest.$ac_objext` in
8042 *32-bit*)
8043 LD="${LD-ld} -melf32bsmip"
8045 *N32*)
8046 LD="${LD-ld} -melf32bmipn32"
8048 *64-bit*)
8049 LD="${LD-ld} -melf64bmip"
8051 esac
8052 else
8053 case `/usr/bin/file conftest.$ac_objext` in
8054 *32-bit*)
8055 LD="${LD-ld} -32"
8057 *N32*)
8058 LD="${LD-ld} -n32"
8060 *64-bit*)
8061 LD="${LD-ld} -64"
8063 esac
8066 rm -rf conftest*
8069 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8070 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8071 # Find out which ABI we are using.
8072 echo 'int i;' > conftest.$ac_ext
8073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8074 (eval $ac_compile) 2>&5
8075 ac_status=$?
8076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }; then
8078 case `/usr/bin/file conftest.o` in
8079 *32-bit*)
8080 case $host in
8081 x86_64-*kfreebsd*-gnu)
8082 LD="${LD-ld} -m elf_i386_fbsd"
8084 x86_64-*linux*)
8085 case `/usr/bin/file conftest.o` in
8086 *x86-64*)
8087 LD="${LD-ld} -m elf32_x86_64"
8090 LD="${LD-ld} -m elf_i386"
8092 esac
8094 powerpc64le-*linux*)
8095 LD="${LD-ld} -m elf32lppclinux"
8097 powerpc64-*linux*)
8098 LD="${LD-ld} -m elf32ppclinux"
8100 s390x-*linux*)
8101 LD="${LD-ld} -m elf_s390"
8103 sparc64-*linux*)
8104 LD="${LD-ld} -m elf32_sparc"
8106 esac
8108 *64-bit*)
8109 case $host in
8110 x86_64-*kfreebsd*-gnu)
8111 LD="${LD-ld} -m elf_x86_64_fbsd"
8113 x86_64-*linux*)
8114 LD="${LD-ld} -m elf_x86_64"
8116 powerpcle-*linux*)
8117 LD="${LD-ld} -m elf64lppc"
8119 powerpc-*linux*)
8120 LD="${LD-ld} -m elf64ppc"
8122 s390*-*linux*|s390*-*tpf*)
8123 LD="${LD-ld} -m elf64_s390"
8125 sparc*-*linux*)
8126 LD="${LD-ld} -m elf64_sparc"
8128 esac
8130 esac
8132 rm -rf conftest*
8135 *-*-sco3.2v5*)
8136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8137 SAVE_CFLAGS="$CFLAGS"
8138 CFLAGS="$CFLAGS -belf"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8140 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8141 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150 if test x$gcc_no_link = xyes; then
8151 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8157 main ()
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"; then :
8165 lt_cv_cc_needs_belf=yes
8166 else
8167 lt_cv_cc_needs_belf=no
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 ac_ext=c
8172 ac_cpp='$CPP $CPPFLAGS'
8173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8179 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8182 CFLAGS="$SAVE_CFLAGS"
8185 sparc*-*solaris*)
8186 # Find out which ABI we are using.
8187 echo 'int i;' > conftest.$ac_ext
8188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8189 (eval $ac_compile) 2>&5
8190 ac_status=$?
8191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8192 test $ac_status = 0; }; then
8193 case `/usr/bin/file conftest.o` in
8194 *64-bit*)
8195 case $lt_cv_prog_gnu_ld in
8196 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8199 LD="${LD-ld} -64"
8202 esac
8204 esac
8206 rm -rf conftest*
8208 esac
8210 need_locks="$enable_libtool_lock"
8213 case $host_os in
8214 rhapsody* | darwin*)
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$DSYMUTIL"; then
8224 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8243 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8244 if test -n "$DSYMUTIL"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8246 $as_echo "$DSYMUTIL" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 if test -z "$ac_cv_prog_DSYMUTIL"; then
8255 ac_ct_DSYMUTIL=$DSYMUTIL
8256 # Extract the first word of "dsymutil", so it can be a program name with args.
8257 set dummy dsymutil; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$ac_ct_DSYMUTIL"; then
8264 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8284 if test -n "$ac_ct_DSYMUTIL"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8286 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8292 if test "x$ac_ct_DSYMUTIL" = x; then
8293 DSYMUTIL=":"
8294 else
8295 case $cross_compiling:$ac_tool_warned in
8296 yes:)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299 ac_tool_warned=yes ;;
8300 esac
8301 DSYMUTIL=$ac_ct_DSYMUTIL
8303 else
8304 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$NMEDIT"; then
8316 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8329 done
8330 done
8331 IFS=$as_save_IFS
8335 NMEDIT=$ac_cv_prog_NMEDIT
8336 if test -n "$NMEDIT"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8338 $as_echo "$NMEDIT" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 if test -z "$ac_cv_prog_NMEDIT"; then
8347 ac_ct_NMEDIT=$NMEDIT
8348 # Extract the first word of "nmedit", so it can be a program name with args.
8349 set dummy nmedit; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$ac_ct_NMEDIT"; then
8356 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8375 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8376 if test -n "$ac_ct_NMEDIT"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8378 $as_echo "$ac_ct_NMEDIT" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8384 if test "x$ac_ct_NMEDIT" = x; then
8385 NMEDIT=":"
8386 else
8387 case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393 NMEDIT=$ac_ct_NMEDIT
8395 else
8396 NMEDIT="$ac_cv_prog_NMEDIT"
8399 if test -n "$ac_tool_prefix"; then
8400 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_LIPO+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$LIPO"; then
8408 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8427 LIPO=$ac_cv_prog_LIPO
8428 if test -n "$LIPO"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8430 $as_echo "$LIPO" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8438 if test -z "$ac_cv_prog_LIPO"; then
8439 ac_ct_LIPO=$LIPO
8440 # Extract the first word of "lipo", so it can be a program name with args.
8441 set dummy lipo; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 if test -n "$ac_ct_LIPO"; then
8448 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_prog_ac_ct_LIPO="lipo"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8461 done
8462 done
8463 IFS=$as_save_IFS
8467 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8468 if test -n "$ac_ct_LIPO"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8470 $as_echo "$ac_ct_LIPO" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8476 if test "x$ac_ct_LIPO" = x; then
8477 LIPO=":"
8478 else
8479 case $cross_compiling:$ac_tool_warned in
8480 yes:)
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8483 ac_tool_warned=yes ;;
8484 esac
8485 LIPO=$ac_ct_LIPO
8487 else
8488 LIPO="$ac_cv_prog_LIPO"
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}otool; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test -n "$OTOOL"; then
8500 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8513 done
8514 done
8515 IFS=$as_save_IFS
8519 OTOOL=$ac_cv_prog_OTOOL
8520 if test -n "$OTOOL"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8522 $as_echo "$OTOOL" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8530 if test -z "$ac_cv_prog_OTOOL"; then
8531 ac_ct_OTOOL=$OTOOL
8532 # Extract the first word of "otool", so it can be a program name with args.
8533 set dummy otool; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$ac_ct_OTOOL"; then
8540 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_ac_ct_OTOOL="otool"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8559 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8560 if test -n "$ac_ct_OTOOL"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8562 $as_echo "$ac_ct_OTOOL" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8568 if test "x$ac_ct_OTOOL" = x; then
8569 OTOOL=":"
8570 else
8571 case $cross_compiling:$ac_tool_warned in
8572 yes:)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8576 esac
8577 OTOOL=$ac_ct_OTOOL
8579 else
8580 OTOOL="$ac_cv_prog_OTOOL"
8583 if test -n "$ac_tool_prefix"; then
8584 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$OTOOL64"; then
8592 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8607 IFS=$as_save_IFS
8611 OTOOL64=$ac_cv_prog_OTOOL64
8612 if test -n "$OTOOL64"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8614 $as_echo "$OTOOL64" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 if test -z "$ac_cv_prog_OTOOL64"; then
8623 ac_ct_OTOOL64=$OTOOL64
8624 # Extract the first word of "otool64", so it can be a program name with args.
8625 set dummy otool64; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 if test -n "$ac_ct_OTOOL64"; then
8632 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_prog_ac_ct_OTOOL64="otool64"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8645 done
8646 done
8647 IFS=$as_save_IFS
8651 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8652 if test -n "$ac_ct_OTOOL64"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8654 $as_echo "$ac_ct_OTOOL64" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8660 if test "x$ac_ct_OTOOL64" = x; then
8661 OTOOL64=":"
8662 else
8663 case $cross_compiling:$ac_tool_warned in
8664 yes:)
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8668 esac
8669 OTOOL64=$ac_ct_OTOOL64
8671 else
8672 OTOOL64="$ac_cv_prog_OTOOL64"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8702 $as_echo_n "checking for -single_module linker flag... " >&6; }
8703 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 lt_cv_apple_cc_single_mod=no
8707 if test -z "${LT_MULTI_MODULE}"; then
8708 # By default we will add the -single_module flag. You can override
8709 # by either setting the environment variable LT_MULTI_MODULE
8710 # non-empty at configure time, or by adding -multi_module to the
8711 # link flags.
8712 rm -rf libconftest.dylib*
8713 echo "int foo(void){return 1;}" > conftest.c
8714 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8715 -dynamiclib -Wl,-single_module conftest.c" >&5
8716 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8717 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8718 _lt_result=$?
8719 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8720 lt_cv_apple_cc_single_mod=yes
8721 else
8722 cat conftest.err >&5
8724 rm -rf libconftest.dylib*
8725 rm -f conftest.*
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8729 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8731 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8732 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 lt_cv_ld_exported_symbols_list=no
8736 save_LDFLAGS=$LDFLAGS
8737 echo "_main" > conftest.sym
8738 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8739 if test x$gcc_no_link = xyes; then
8740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8746 main ()
8750 return 0;
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 lt_cv_ld_exported_symbols_list=yes
8755 else
8756 lt_cv_ld_exported_symbols_list=no
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LDFLAGS="$save_LDFLAGS"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8764 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8766 $as_echo_n "checking for -force_load linker flag... " >&6; }
8767 if test "${lt_cv_ld_force_load+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 lt_cv_ld_force_load=no
8771 cat > conftest.c << _LT_EOF
8772 int forced_loaded() { return 2;}
8773 _LT_EOF
8774 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8775 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8776 echo "$AR cru libconftest.a conftest.o" >&5
8777 $AR cru libconftest.a conftest.o 2>&5
8778 cat > conftest.c << _LT_EOF
8779 int main() { return 0;}
8780 _LT_EOF
8781 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8782 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8783 _lt_result=$?
8784 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8785 lt_cv_ld_force_load=yes
8786 else
8787 cat conftest.err >&5
8789 rm -f conftest.err libconftest.a conftest conftest.c
8790 rm -rf conftest.dSYM
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8794 $as_echo "$lt_cv_ld_force_load" >&6; }
8795 case $host_os in
8796 rhapsody* | darwin1.[012])
8797 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8798 darwin1.*)
8799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8800 darwin*) # darwin 5.x on
8801 # if running on 10.5 or later, the deployment target defaults
8802 # to the OS version, if on x86, and 10.4, the deployment
8803 # target defaults to 10.4. Don't you love it?
8804 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8805 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8806 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8807 10.[012]*)
8808 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8809 10.*)
8810 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8811 esac
8813 esac
8814 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8815 _lt_dar_single_mod='$single_module'
8817 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8818 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8819 else
8820 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8822 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8823 _lt_dsymutil='~$DSYMUTIL $lib || :'
8824 else
8825 _lt_dsymutil=
8828 esac
8830 for ac_header in dlfcn.h
8831 do :
8832 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8834 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8835 cat >>confdefs.h <<_ACEOF
8836 #define HAVE_DLFCN_H 1
8837 _ACEOF
8841 done
8847 # Set options
8852 enable_win32_dll=no
8855 # Check whether --enable-shared was given.
8856 if test "${enable_shared+set}" = set; then :
8857 enableval=$enable_shared; p=${PACKAGE-default}
8858 case $enableval in
8859 yes) enable_shared=yes ;;
8860 no) enable_shared=no ;;
8862 enable_shared=no
8863 # Look at the argument we got. We use all the common list separators.
8864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8865 for pkg in $enableval; do
8866 IFS="$lt_save_ifs"
8867 if test "X$pkg" = "X$p"; then
8868 enable_shared=yes
8870 done
8871 IFS="$lt_save_ifs"
8873 esac
8874 else
8875 enable_shared=yes
8886 # Check whether --enable-static was given.
8887 if test "${enable_static+set}" = set; then :
8888 enableval=$enable_static; p=${PACKAGE-default}
8889 case $enableval in
8890 yes) enable_static=yes ;;
8891 no) enable_static=no ;;
8893 enable_static=no
8894 # Look at the argument we got. We use all the common list separators.
8895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8896 for pkg in $enableval; do
8897 IFS="$lt_save_ifs"
8898 if test "X$pkg" = "X$p"; then
8899 enable_static=yes
8901 done
8902 IFS="$lt_save_ifs"
8904 esac
8905 else
8906 enable_static=yes
8918 # Check whether --with-pic was given.
8919 if test "${with_pic+set}" = set; then :
8920 withval=$with_pic; pic_mode="$withval"
8921 else
8922 pic_mode=default
8926 test -z "$pic_mode" && pic_mode=default
8934 # Check whether --enable-fast-install was given.
8935 if test "${enable_fast_install+set}" = set; then :
8936 enableval=$enable_fast_install; p=${PACKAGE-default}
8937 case $enableval in
8938 yes) enable_fast_install=yes ;;
8939 no) enable_fast_install=no ;;
8941 enable_fast_install=no
8942 # Look at the argument we got. We use all the common list separators.
8943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8944 for pkg in $enableval; do
8945 IFS="$lt_save_ifs"
8946 if test "X$pkg" = "X$p"; then
8947 enable_fast_install=yes
8949 done
8950 IFS="$lt_save_ifs"
8952 esac
8953 else
8954 enable_fast_install=yes
8967 # This can be used to rebuild libtool when needed
8968 LIBTOOL_DEPS="$ltmain"
8970 # Always use our own libtool.
8971 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8998 test -z "$LN_S" && LN_S="ln -s"
9013 if test -n "${ZSH_VERSION+set}" ; then
9014 setopt NO_GLOB_SUBST
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9018 $as_echo_n "checking for objdir... " >&6; }
9019 if test "${lt_cv_objdir+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 rm -f .libs 2>/dev/null
9023 mkdir .libs 2>/dev/null
9024 if test -d .libs; then
9025 lt_cv_objdir=.libs
9026 else
9027 # MS-DOS does not allow filenames that begin with a dot.
9028 lt_cv_objdir=_libs
9030 rmdir .libs 2>/dev/null
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9033 $as_echo "$lt_cv_objdir" >&6; }
9034 objdir=$lt_cv_objdir
9040 cat >>confdefs.h <<_ACEOF
9041 #define LT_OBJDIR "$lt_cv_objdir/"
9042 _ACEOF
9047 case $host_os in
9048 aix3*)
9049 # AIX sometimes has problems with the GCC collect2 program. For some
9050 # reason, if we set the COLLECT_NAMES environment variable, the problems
9051 # vanish in a puff of smoke.
9052 if test "X${COLLECT_NAMES+set}" != Xset; then
9053 COLLECT_NAMES=
9054 export COLLECT_NAMES
9057 esac
9059 # Global variables:
9060 ofile=libtool
9061 can_build_shared=yes
9063 # All known linkers require a `.a' archive for static linking (except MSVC,
9064 # which needs '.lib').
9065 libext=a
9067 with_gnu_ld="$lt_cv_prog_gnu_ld"
9069 old_CC="$CC"
9070 old_CFLAGS="$CFLAGS"
9072 # Set sane defaults for various variables
9073 test -z "$CC" && CC=cc
9074 test -z "$LTCC" && LTCC=$CC
9075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9076 test -z "$LD" && LD=ld
9077 test -z "$ac_objext" && ac_objext=o
9079 for cc_temp in $compiler""; do
9080 case $cc_temp in
9081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9083 \-*) ;;
9084 *) break;;
9085 esac
9086 done
9087 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9090 # Only perform the check for file, if the check method requires it
9091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9092 case $deplibs_check_method in
9093 file_magic*)
9094 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9096 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9097 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 case $MAGIC_CMD in
9101 [\\/*] | ?:[\\/]*)
9102 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9105 lt_save_MAGIC_CMD="$MAGIC_CMD"
9106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9108 for ac_dir in $ac_dummy; do
9109 IFS="$lt_save_ifs"
9110 test -z "$ac_dir" && ac_dir=.
9111 if test -f $ac_dir/${ac_tool_prefix}file; then
9112 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9113 if test -n "$file_magic_test_file"; then
9114 case $deplibs_check_method in
9115 "file_magic "*)
9116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9119 $EGREP "$file_magic_regex" > /dev/null; then
9121 else
9122 cat <<_LT_EOF 1>&2
9124 *** Warning: the command libtool uses to detect shared libraries,
9125 *** $file_magic_cmd, produces output that libtool cannot recognize.
9126 *** The result is that libtool may fail to recognize shared libraries
9127 *** as such. This will affect the creation of libtool libraries that
9128 *** depend on shared libraries, but programs linked with such libtool
9129 *** libraries will work regardless of this problem. Nevertheless, you
9130 *** may want to report the problem to your system manager and/or to
9131 *** bug-libtool@gnu.org
9133 _LT_EOF
9134 fi ;;
9135 esac
9137 break
9139 done
9140 IFS="$lt_save_ifs"
9141 MAGIC_CMD="$lt_save_MAGIC_CMD"
9143 esac
9146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9147 if test -n "$MAGIC_CMD"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9149 $as_echo "$MAGIC_CMD" >&6; }
9150 else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9159 if test -z "$lt_cv_path_MAGIC_CMD"; then
9160 if test -n "$ac_tool_prefix"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9162 $as_echo_n "checking for file... " >&6; }
9163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 case $MAGIC_CMD in
9167 [\\/*] | ?:[\\/]*)
9168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9171 lt_save_MAGIC_CMD="$MAGIC_CMD"
9172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9174 for ac_dir in $ac_dummy; do
9175 IFS="$lt_save_ifs"
9176 test -z "$ac_dir" && ac_dir=.
9177 if test -f $ac_dir/file; then
9178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9179 if test -n "$file_magic_test_file"; then
9180 case $deplibs_check_method in
9181 "file_magic "*)
9182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9185 $EGREP "$file_magic_regex" > /dev/null; then
9187 else
9188 cat <<_LT_EOF 1>&2
9190 *** Warning: the command libtool uses to detect shared libraries,
9191 *** $file_magic_cmd, produces output that libtool cannot recognize.
9192 *** The result is that libtool may fail to recognize shared libraries
9193 *** as such. This will affect the creation of libtool libraries that
9194 *** depend on shared libraries, but programs linked with such libtool
9195 *** libraries will work regardless of this problem. Nevertheless, you
9196 *** may want to report the problem to your system manager and/or to
9197 *** bug-libtool@gnu.org
9199 _LT_EOF
9200 fi ;;
9201 esac
9203 break
9205 done
9206 IFS="$lt_save_ifs"
9207 MAGIC_CMD="$lt_save_MAGIC_CMD"
9209 esac
9212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9213 if test -n "$MAGIC_CMD"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9215 $as_echo "$MAGIC_CMD" >&6; }
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; }
9222 else
9223 MAGIC_CMD=:
9229 esac
9231 # Use C for the default configuration in the libtool script
9233 lt_save_CC="$CC"
9234 ac_ext=c
9235 ac_cpp='$CPP $CPPFLAGS'
9236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241 # Source file extension for C test sources.
9242 ac_ext=c
9244 # Object file extension for compiled C test sources.
9245 objext=o
9246 objext=$objext
9248 # Code to be used in simple compile tests
9249 lt_simple_compile_test_code="int some_variable = 0;"
9251 # Code to be used in simple link tests
9252 lt_simple_link_test_code='int main(){return(0);}'
9260 # If no C compiler was specified, use CC.
9261 LTCC=${LTCC-"$CC"}
9263 # If no C compiler flags were specified, use CFLAGS.
9264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9266 # Allow CC to be a program name with arguments.
9267 compiler=$CC
9269 # Save the default compiler, since it gets overwritten when the other
9270 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9271 compiler_DEFAULT=$CC
9273 # save warnings/boilerplate of simple test code
9274 ac_outfile=conftest.$ac_objext
9275 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9276 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9277 _lt_compiler_boilerplate=`cat conftest.err`
9278 $RM conftest*
9280 ac_outfile=conftest.$ac_objext
9281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9283 _lt_linker_boilerplate=`cat conftest.err`
9284 $RM -r conftest*
9287 ## CAVEAT EMPTOR:
9288 ## There is no encapsulation within the following macros, do not change
9289 ## the running order or otherwise move them around unless you know exactly
9290 ## what you are doing...
9291 if test -n "$compiler"; then
9293 lt_prog_compiler_no_builtin_flag=
9295 if test "$GCC" = yes; then
9296 case $cc_basename in
9297 nvcc*)
9298 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9300 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9301 esac
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9304 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9305 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 lt_cv_prog_compiler_rtti_exceptions=no
9309 ac_outfile=conftest.$ac_objext
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311 lt_compiler_flag="-fno-rtti -fno-exceptions"
9312 # Insert the option either (1) after the last *FLAGS variable, or
9313 # (2) before a word containing "conftest.", or (3) at the end.
9314 # Note that $ac_compile itself does not contain backslashes and begins
9315 # with a dollar sign (not a hyphen), so the echo should work correctly.
9316 # The option is referenced via a variable to avoid confusing sed.
9317 lt_compile=`echo "$ac_compile" | $SED \
9318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320 -e 's:$: $lt_compiler_flag:'`
9321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9322 (eval "$lt_compile" 2>conftest.err)
9323 ac_status=$?
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 if (exit $ac_status) && test -s "$ac_outfile"; then
9327 # The compiler can only warn and ignore the option if not recognized
9328 # So say no if there are warnings other than the usual output.
9329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9332 lt_cv_prog_compiler_rtti_exceptions=yes
9335 $RM conftest*
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9339 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9341 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9343 else
9354 lt_prog_compiler_wl=
9355 lt_prog_compiler_pic=
9356 lt_prog_compiler_static=
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9359 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9361 if test "$GCC" = yes; then
9362 lt_prog_compiler_wl='-Wl,'
9363 lt_prog_compiler_static='-static'
9365 case $host_os in
9366 aix*)
9367 # All AIX code is PIC.
9368 if test "$host_cpu" = ia64; then
9369 # AIX 5 now supports IA64 processor
9370 lt_prog_compiler_static='-Bstatic'
9372 lt_prog_compiler_pic='-fPIC'
9375 amigaos*)
9376 case $host_cpu in
9377 powerpc)
9378 # see comment about AmigaOS4 .so support
9379 lt_prog_compiler_pic='-fPIC'
9381 m68k)
9382 # FIXME: we need at least 68020 code to build shared libraries, but
9383 # adding the `-m68020' flag to GCC prevents building anything better,
9384 # like `-m68040'.
9385 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9387 esac
9390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9391 # PIC is the default for these OSes.
9394 mingw* | cygwin* | pw32* | os2* | cegcc*)
9395 # This hack is so that the source file can tell whether it is being
9396 # built for inclusion in a dll (and should export symbols for example).
9397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9398 # (--disable-auto-import) libraries
9399 lt_prog_compiler_pic='-DDLL_EXPORT'
9402 darwin* | rhapsody*)
9403 # PIC is the default on this platform
9404 # Common symbols not allowed in MH_DYLIB files
9405 lt_prog_compiler_pic='-fno-common'
9408 haiku*)
9409 # PIC is the default for Haiku.
9410 # The "-static" flag exists, but is broken.
9411 lt_prog_compiler_static=
9414 hpux*)
9415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9417 # sets the default TLS model and affects inlining.
9418 case $host_cpu in
9419 hppa*64*)
9420 # +Z the default
9423 lt_prog_compiler_pic='-fPIC'
9425 esac
9428 interix[3-9]*)
9429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9430 # Instead, we relocate shared libraries at runtime.
9433 msdosdjgpp*)
9434 # Just because we use GCC doesn't mean we suddenly get shared libraries
9435 # on systems that don't support them.
9436 lt_prog_compiler_can_build_shared=no
9437 enable_shared=no
9440 *nto* | *qnx*)
9441 # QNX uses GNU C++, but need to define -shared option too, otherwise
9442 # it will coredump.
9443 lt_prog_compiler_pic='-fPIC -shared'
9446 sysv4*MP*)
9447 if test -d /usr/nec; then
9448 lt_prog_compiler_pic=-Kconform_pic
9453 lt_prog_compiler_pic='-fPIC'
9455 esac
9457 case $cc_basename in
9458 nvcc*) # Cuda Compiler Driver 2.2
9459 lt_prog_compiler_wl='-Xlinker '
9460 lt_prog_compiler_pic='-Xcompiler -fPIC'
9462 esac
9463 else
9464 # PORTME Check for flag to pass linker flags through the system compiler.
9465 case $host_os in
9466 aix*)
9467 lt_prog_compiler_wl='-Wl,'
9468 if test "$host_cpu" = ia64; then
9469 # AIX 5 now supports IA64 processor
9470 lt_prog_compiler_static='-Bstatic'
9471 else
9472 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9476 mingw* | cygwin* | pw32* | os2* | cegcc*)
9477 # This hack is so that the source file can tell whether it is being
9478 # built for inclusion in a dll (and should export symbols for example).
9479 lt_prog_compiler_pic='-DDLL_EXPORT'
9482 hpux9* | hpux10* | hpux11*)
9483 lt_prog_compiler_wl='-Wl,'
9484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9485 # not for PA HP-UX.
9486 case $host_cpu in
9487 hppa*64*|ia64*)
9488 # +Z the default
9491 lt_prog_compiler_pic='+Z'
9493 esac
9494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9495 lt_prog_compiler_static='${wl}-a ${wl}archive'
9498 irix5* | irix6* | nonstopux*)
9499 lt_prog_compiler_wl='-Wl,'
9500 # PIC (with -KPIC) is the default.
9501 lt_prog_compiler_static='-non_shared'
9504 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9505 case $cc_basename in
9506 # old Intel for x86_64 which still supported -KPIC.
9507 ecc*)
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-KPIC'
9510 lt_prog_compiler_static='-static'
9512 # icc used to be incompatible with GCC.
9513 # ICC 10 doesn't accept -KPIC any more.
9514 icc* | ifort*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-fPIC'
9517 lt_prog_compiler_static='-static'
9519 # Lahey Fortran 8.1.
9520 lf95*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='--shared'
9523 lt_prog_compiler_static='--static'
9525 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9526 # Portland Group compilers (*not* the Pentium gcc compiler,
9527 # which looks to be a dead project)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-fpic'
9530 lt_prog_compiler_static='-Bstatic'
9532 ccc*)
9533 lt_prog_compiler_wl='-Wl,'
9534 # All Alpha code is PIC.
9535 lt_prog_compiler_static='-non_shared'
9537 xl* | bgxl* | bgf* | mpixl*)
9538 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-qpic'
9541 lt_prog_compiler_static='-qstaticlink'
9544 case `$CC -V 2>&1 | sed 5q` in
9545 *Sun\ F* | *Sun*Fortran*)
9546 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9547 lt_prog_compiler_pic='-KPIC'
9548 lt_prog_compiler_static='-Bstatic'
9549 lt_prog_compiler_wl=''
9551 *Sun\ C*)
9552 # Sun C 5.9
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9555 lt_prog_compiler_wl='-Wl,'
9557 esac
9559 esac
9562 newsos6)
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9567 *nto* | *qnx*)
9568 # QNX uses GNU C++, but need to define -shared option too, otherwise
9569 # it will coredump.
9570 lt_prog_compiler_pic='-fPIC -shared'
9573 osf3* | osf4* | osf5*)
9574 lt_prog_compiler_wl='-Wl,'
9575 # All OSF/1 code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9579 rdos*)
9580 lt_prog_compiler_static='-non_shared'
9583 solaris*)
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 case $cc_basename in
9587 f77* | f90* | f95*)
9588 lt_prog_compiler_wl='-Qoption ld ';;
9590 lt_prog_compiler_wl='-Wl,';;
9591 esac
9594 sunos4*)
9595 lt_prog_compiler_wl='-Qoption ld '
9596 lt_prog_compiler_pic='-PIC'
9597 lt_prog_compiler_static='-Bstatic'
9600 sysv4 | sysv4.2uw2* | sysv4.3*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-KPIC'
9603 lt_prog_compiler_static='-Bstatic'
9606 sysv4*MP*)
9607 if test -d /usr/nec ;then
9608 lt_prog_compiler_pic='-Kconform_pic'
9609 lt_prog_compiler_static='-Bstatic'
9613 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9619 unicos*)
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_can_build_shared=no
9624 uts4*)
9625 lt_prog_compiler_pic='-pic'
9626 lt_prog_compiler_static='-Bstatic'
9630 lt_prog_compiler_can_build_shared=no
9632 esac
9635 case $host_os in
9636 # For platforms which do not support PIC, -DPIC is meaningless:
9637 *djgpp*)
9638 lt_prog_compiler_pic=
9641 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9643 esac
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9645 $as_echo "$lt_prog_compiler_pic" >&6; }
9653 # Check to make sure the PIC flag actually works.
9655 if test -n "$lt_prog_compiler_pic"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9658 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 lt_cv_prog_compiler_pic_works=no
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9664 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9665 # Insert the option either (1) after the last *FLAGS variable, or
9666 # (2) before a word containing "conftest.", or (3) at the end.
9667 # Note that $ac_compile itself does not contain backslashes and begins
9668 # with a dollar sign (not a hyphen), so the echo should work correctly.
9669 # The option is referenced via a variable to avoid confusing sed.
9670 lt_compile=`echo "$ac_compile" | $SED \
9671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9673 -e 's:$: $lt_compiler_flag:'`
9674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9675 (eval "$lt_compile" 2>conftest.err)
9676 ac_status=$?
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 if (exit $ac_status) && test -s "$ac_outfile"; then
9680 # The compiler can only warn and ignore the option if not recognized
9681 # So say no if there are warnings other than the usual output.
9682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9685 lt_cv_prog_compiler_pic_works=yes
9688 $RM conftest*
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9692 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9694 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9695 case $lt_prog_compiler_pic in
9696 "" | " "*) ;;
9697 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9698 esac
9699 else
9700 lt_prog_compiler_pic=
9701 lt_prog_compiler_can_build_shared=no
9712 # Check to make sure the static flag actually works.
9714 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9717 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 lt_cv_prog_compiler_static_works=no
9721 save_LDFLAGS="$LDFLAGS"
9722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9725 # The linker can only warn and ignore the option if not recognized
9726 # So say no if there are warnings
9727 if test -s conftest.err; then
9728 # Append any errors to the config.log.
9729 cat conftest.err 1>&5
9730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9732 if diff conftest.exp conftest.er2 >/dev/null; then
9733 lt_cv_prog_compiler_static_works=yes
9735 else
9736 lt_cv_prog_compiler_static_works=yes
9739 $RM -r conftest*
9740 LDFLAGS="$save_LDFLAGS"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9744 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9746 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9748 else
9749 lt_prog_compiler_static=
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9760 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 lt_cv_prog_compiler_c_o=no
9764 $RM -r conftest 2>/dev/null
9765 mkdir conftest
9766 cd conftest
9767 mkdir out
9768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770 lt_compiler_flag="-o out/conftest2.$ac_objext"
9771 # Insert the option either (1) after the last *FLAGS variable, or
9772 # (2) before a word containing "conftest.", or (3) at the end.
9773 # Note that $ac_compile itself does not contain backslashes and begins
9774 # with a dollar sign (not a hyphen), so the echo should work correctly.
9775 lt_compile=`echo "$ac_compile" | $SED \
9776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778 -e 's:$: $lt_compiler_flag:'`
9779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9780 (eval "$lt_compile" 2>out/conftest.err)
9781 ac_status=$?
9782 cat out/conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9785 then
9786 # The compiler can only warn and ignore the option if not recognized
9787 # So say no if there are warnings
9788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9791 lt_cv_prog_compiler_c_o=yes
9794 chmod u+w . 2>&5
9795 $RM conftest*
9796 # SGI C++ compiler will create directory out/ii_files/ for
9797 # template instantiation
9798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9799 $RM out/* && rmdir out
9800 cd ..
9801 $RM -r conftest
9802 $RM conftest*
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9815 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 lt_cv_prog_compiler_c_o=no
9819 $RM -r conftest 2>/dev/null
9820 mkdir conftest
9821 cd conftest
9822 mkdir out
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9825 lt_compiler_flag="-o out/conftest2.$ac_objext"
9826 # Insert the option either (1) after the last *FLAGS variable, or
9827 # (2) before a word containing "conftest.", or (3) at the end.
9828 # Note that $ac_compile itself does not contain backslashes and begins
9829 # with a dollar sign (not a hyphen), so the echo should work correctly.
9830 lt_compile=`echo "$ac_compile" | $SED \
9831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9833 -e 's:$: $lt_compiler_flag:'`
9834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9835 (eval "$lt_compile" 2>out/conftest.err)
9836 ac_status=$?
9837 cat out/conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9840 then
9841 # The compiler can only warn and ignore the option if not recognized
9842 # So say no if there are warnings
9843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9846 lt_cv_prog_compiler_c_o=yes
9849 chmod u+w . 2>&5
9850 $RM conftest*
9851 # SGI C++ compiler will create directory out/ii_files/ for
9852 # template instantiation
9853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9854 $RM out/* && rmdir out
9855 cd ..
9856 $RM -r conftest
9857 $RM conftest*
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9861 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9866 hard_links="nottested"
9867 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9868 # do not overwrite the value of need_locks provided by the user
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9870 $as_echo_n "checking if we can lock with hard links... " >&6; }
9871 hard_links=yes
9872 $RM conftest*
9873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9874 touch conftest.a
9875 ln conftest.a conftest.b 2>&5 || hard_links=no
9876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9878 $as_echo "$hard_links" >&6; }
9879 if test "$hard_links" = no; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9881 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9882 need_locks=warn
9884 else
9885 need_locks=no
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9894 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9896 runpath_var=
9897 allow_undefined_flag=
9898 always_export_symbols=no
9899 archive_cmds=
9900 archive_expsym_cmds=
9901 compiler_needs_object=no
9902 enable_shared_with_static_runtimes=no
9903 export_dynamic_flag_spec=
9904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9905 hardcode_automatic=no
9906 hardcode_direct=no
9907 hardcode_direct_absolute=no
9908 hardcode_libdir_flag_spec=
9909 hardcode_libdir_flag_spec_ld=
9910 hardcode_libdir_separator=
9911 hardcode_minus_L=no
9912 hardcode_shlibpath_var=unsupported
9913 inherit_rpath=no
9914 link_all_deplibs=unknown
9915 module_cmds=
9916 module_expsym_cmds=
9917 old_archive_from_new_cmds=
9918 old_archive_from_expsyms_cmds=
9919 thread_safe_flag_spec=
9920 whole_archive_flag_spec=
9921 # include_expsyms should be a list of space-separated symbols to be *always*
9922 # included in the symbol list
9923 include_expsyms=
9924 # exclude_expsyms can be an extended regexp of symbols to exclude
9925 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9926 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9927 # as well as any symbol that contains `d'.
9928 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9929 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9930 # platforms (ab)use it in PIC code, but their linkers get confused if
9931 # the symbol is explicitly referenced. Since portable code cannot
9932 # rely on this symbol name, it's probably fine to never include it in
9933 # preloaded symbol tables.
9934 # Exclude shared library initialization/finalization symbols.
9935 extract_expsyms_cmds=
9937 case $host_os in
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9940 # When not using gcc, we currently assume that we are using
9941 # Microsoft Visual C++.
9942 if test "$GCC" != yes; then
9943 with_gnu_ld=no
9946 interix*)
9947 # we just hope/assume this is gcc and not c89 (= MSVC++)
9948 with_gnu_ld=yes
9950 openbsd*)
9951 with_gnu_ld=no
9953 esac
9955 ld_shlibs=yes
9957 # On some targets, GNU ld is compatible enough with the native linker
9958 # that we're better off using the native interface for both.
9959 lt_use_gnu_ld_interface=no
9960 if test "$with_gnu_ld" = yes; then
9961 case $host_os in
9962 aix*)
9963 # The AIX port of GNU ld has always aspired to compatibility
9964 # with the native linker. However, as the warning in the GNU ld
9965 # block says, versions before 2.19.5* couldn't really create working
9966 # shared libraries, regardless of the interface used.
9967 case `$LD -v 2>&1` in
9968 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9969 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9970 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9972 lt_use_gnu_ld_interface=yes
9974 esac
9977 lt_use_gnu_ld_interface=yes
9979 esac
9982 if test "$lt_use_gnu_ld_interface" = yes; then
9983 # If archive_cmds runs LD, not CC, wlarc should be empty
9984 wlarc='${wl}'
9986 # Set some defaults for GNU ld with shared library support. These
9987 # are reset later if shared libraries are not supported. Putting them
9988 # here allows them to be overridden if necessary.
9989 runpath_var=LD_RUN_PATH
9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991 export_dynamic_flag_spec='${wl}--export-dynamic'
9992 # ancient GNU ld didn't support --whole-archive et. al.
9993 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9994 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9995 else
9996 whole_archive_flag_spec=
9998 supports_anon_versioning=no
9999 case `$LD -v 2>&1` in
10000 *GNU\ gold*) supports_anon_versioning=yes ;;
10001 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10002 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10003 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10004 *\ 2.11.*) ;; # other 2.11 versions
10005 *) supports_anon_versioning=yes ;;
10006 esac
10008 # See if GNU ld supports shared libraries.
10009 case $host_os in
10010 aix[3-9]*)
10011 # On AIX/PPC, the GNU linker is very broken
10012 if test "$host_cpu" != ia64; then
10013 ld_shlibs=no
10014 cat <<_LT_EOF 1>&2
10016 *** Warning: the GNU linker, at least up to release 2.19, is reported
10017 *** to be unable to reliably create shared libraries on AIX.
10018 *** Therefore, libtool is disabling shared libraries support. If you
10019 *** really care for shared libraries, you may want to install binutils
10020 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10021 *** You will then need to restart the configuration process.
10023 _LT_EOF
10027 amigaos*)
10028 case $host_cpu in
10029 powerpc)
10030 # see comment about AmigaOS4 .so support
10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 archive_expsym_cmds=''
10034 m68k)
10035 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)'
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_minus_L=yes
10039 esac
10042 beos*)
10043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10044 allow_undefined_flag=unsupported
10045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10046 # support --undefined. This deserves some investigation. FIXME
10047 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 else
10049 ld_shlibs=no
10053 cygwin* | mingw* | pw32* | cegcc*)
10054 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10055 # as there is no search path for DLLs.
10056 hardcode_libdir_flag_spec='-L$libdir'
10057 export_dynamic_flag_spec='${wl}--export-all-symbols'
10058 allow_undefined_flag=unsupported
10059 always_export_symbols=no
10060 enable_shared_with_static_runtimes=yes
10061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10063 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065 # If the export-symbols file already is a .def file (1st line
10066 # is EXPORTS), use it as is; otherwise, prepend...
10067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10068 cp $export_symbols $output_objdir/$soname.def;
10069 else
10070 echo EXPORTS > $output_objdir/$soname.def;
10071 cat $export_symbols >> $output_objdir/$soname.def;
10073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10074 else
10075 ld_shlibs=no
10079 haiku*)
10080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 link_all_deplibs=yes
10084 interix[3-9]*)
10085 hardcode_direct=no
10086 hardcode_shlibpath_var=no
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 export_dynamic_flag_spec='${wl}-E'
10089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090 # Instead, shared libraries are loaded at an image base (0x10000000 by
10091 # default) and relocated if they conflict, which is a slow very memory
10092 # consuming and fragmenting process. To avoid this, we pick a random,
10093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096 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'
10099 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10100 tmp_diet=no
10101 if test "$host_os" = linux-dietlibc; then
10102 case $cc_basename in
10103 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10104 esac
10106 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10107 && test "$tmp_diet" = no
10108 then
10109 tmp_addflag=
10110 tmp_sharedflag='-shared'
10111 case $cc_basename,$host_cpu in
10112 pgcc*) # Portland Group C compiler
10113 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'
10114 tmp_addflag=' $pic_flag'
10116 pgf77* | pgf90* | pgf95* | pgfortran*)
10117 # Portland Group f77 and f90 compilers
10118 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'
10119 tmp_addflag=' $pic_flag -Mnomain' ;;
10120 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10121 tmp_addflag=' -i_dynamic' ;;
10122 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10123 tmp_addflag=' -i_dynamic -nofor_main' ;;
10124 ifc* | ifort*) # Intel Fortran compiler
10125 tmp_addflag=' -nofor_main' ;;
10126 lf95*) # Lahey Fortran 8.1
10127 whole_archive_flag_spec=
10128 tmp_sharedflag='--shared' ;;
10129 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10130 tmp_sharedflag='-qmkshrobj'
10131 tmp_addflag= ;;
10132 nvcc*) # Cuda Compiler Driver 2.2
10133 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'
10134 compiler_needs_object=yes
10136 esac
10137 case `$CC -V 2>&1 | sed 5q` in
10138 *Sun\ C*) # Sun C 5.9
10139 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'
10140 compiler_needs_object=yes
10141 tmp_sharedflag='-G' ;;
10142 *Sun\ F*) # Sun Fortran 8.3
10143 tmp_sharedflag='-G' ;;
10144 esac
10145 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147 if test "x$supports_anon_versioning" = xyes; then
10148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10150 echo "local: *; };" >> $output_objdir/$libname.ver~
10151 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10154 case $cc_basename in
10155 xlf* | bgf* | bgxlf* | mpixlf*)
10156 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10157 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10158 hardcode_libdir_flag_spec=
10159 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10160 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10161 if test "x$supports_anon_versioning" = xyes; then
10162 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10164 echo "local: *; };" >> $output_objdir/$libname.ver~
10165 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10168 esac
10169 else
10170 ld_shlibs=no
10174 netbsd*)
10175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10176 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10177 wlarc=
10178 else
10179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10184 solaris*)
10185 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10186 ld_shlibs=no
10187 cat <<_LT_EOF 1>&2
10189 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10190 *** create shared libraries on Solaris systems. Therefore, libtool
10191 *** is disabling shared libraries support. We urge you to upgrade GNU
10192 *** binutils to release 2.9.1 or newer. Another option is to modify
10193 *** your PATH or compiler configuration so that the native linker is
10194 *** used, and then restart.
10196 _LT_EOF
10197 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10200 else
10201 ld_shlibs=no
10205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10206 case `$LD -v 2>&1` in
10207 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10208 ld_shlibs=no
10209 cat <<_LT_EOF 1>&2
10211 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10212 *** reliably create shared libraries on SCO systems. Therefore, libtool
10213 *** is disabling shared libraries support. We urge you to upgrade GNU
10214 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10215 *** your PATH or compiler configuration so that the native linker is
10216 *** used, and then restart.
10218 _LT_EOF
10221 # For security reasons, it is highly recommended that you always
10222 # use absolute paths for naming shared libraries, and exclude the
10223 # DT_RUNPATH tag from executables and libraries. But doing so
10224 # requires that you compile everything twice, which is a pain.
10225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10229 else
10230 ld_shlibs=no
10233 esac
10236 sunos4*)
10237 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 wlarc=
10239 hardcode_direct=yes
10240 hardcode_shlibpath_var=no
10244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247 else
10248 ld_shlibs=no
10251 esac
10253 if test "$ld_shlibs" = no; then
10254 runpath_var=
10255 hardcode_libdir_flag_spec=
10256 export_dynamic_flag_spec=
10257 whole_archive_flag_spec=
10259 else
10260 # PORTME fill in a description of your system's linker (not GNU ld)
10261 case $host_os in
10262 aix3*)
10263 allow_undefined_flag=unsupported
10264 always_export_symbols=yes
10265 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'
10266 # Note: this linker hardcodes the directories in LIBPATH if there
10267 # are no directories specified by -L.
10268 hardcode_minus_L=yes
10269 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10270 # Neither direct hardcoding nor static linking is supported with a
10271 # broken collect2.
10272 hardcode_direct=unsupported
10276 aix[4-9]*)
10277 if test "$host_cpu" = ia64; then
10278 # On IA64, the linker does run time linking by default, so we don't
10279 # have to do anything special.
10280 aix_use_runtimelinking=no
10281 exp_sym_flag='-Bexport'
10282 no_entry_flag=""
10283 else
10284 # If we're using GNU nm, then we don't want the "-C" option.
10285 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10286 # Also, AIX nm treats weak defined symbols like other global
10287 # defined symbols, whereas GNU nm marks them as "W".
10288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289 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'
10290 else
10291 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10293 aix_use_runtimelinking=no
10295 # Test if we are trying to use run time linking or normal
10296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297 # need to do runtime linking.
10298 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299 for ld_flag in $LDFLAGS; do
10300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301 aix_use_runtimelinking=yes
10302 break
10304 done
10306 esac
10308 exp_sym_flag='-bexport'
10309 no_entry_flag='-bnoentry'
10312 # When large executables or shared objects are built, AIX ld can
10313 # have problems creating the table of contents. If linking a library
10314 # or program results in "error TOC overflow" add -mminimal-toc to
10315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10318 archive_cmds=''
10319 hardcode_direct=yes
10320 hardcode_direct_absolute=yes
10321 hardcode_libdir_separator=':'
10322 link_all_deplibs=yes
10323 file_list_spec='${wl}-f,'
10325 if test "$GCC" = yes; then
10326 case $host_os in aix4.[012]|aix4.[012].*)
10327 # We only want to do this on AIX 4.2 and lower, the check
10328 # below for broken collect2 doesn't work under 4.3+
10329 collect2name=`${CC} -print-prog-name=collect2`
10330 if test -f "$collect2name" &&
10331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10332 then
10333 # We have reworked collect2
10335 else
10336 # We have old collect2
10337 hardcode_direct=unsupported
10338 # It fails to find uninstalled libraries when the uninstalled
10339 # path is not listed in the libpath. Setting hardcode_minus_L
10340 # to unsupported forces relinking
10341 hardcode_minus_L=yes
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_libdir_separator=
10346 esac
10347 shared_flag='-shared'
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag="$shared_flag "'${wl}-G'
10351 else
10352 # not using gcc
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10356 shared_flag='-G'
10357 else
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10360 else
10361 shared_flag='${wl}-bM:SRE'
10366 export_dynamic_flag_spec='${wl}-bexpall'
10367 # It seems that -bexpall does not export symbols beginning with
10368 # underscore (_), so it is better to generate a list of symbols to export.
10369 always_export_symbols=yes
10370 if test "$aix_use_runtimelinking" = yes; then
10371 # Warning - without using the other runtime loading flags (-brtl),
10372 # -berok will link without error, but may produce a broken library.
10373 allow_undefined_flag='-berok'
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 if test x$gcc_no_link = xyes; then
10377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10383 main ()
10387 return 0;
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10392 lt_aix_libpath_sed='
10393 /Import File Strings/,/^$/ {
10394 /^0/ {
10395 s/^0 *\(.*\)$/\1/
10399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10400 # Check for a 64-bit object if we didn't find anything.
10401 if test -z "$aix_libpath"; then
10402 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10410 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"
10411 else
10412 if test "$host_cpu" = ia64; then
10413 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10414 allow_undefined_flag="-z nodefs"
10415 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"
10416 else
10417 # Determine the default libpath from the value encoded in an
10418 # empty executable.
10419 if test x$gcc_no_link = xyes; then
10420 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10426 main ()
10430 return 0;
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10435 lt_aix_libpath_sed='
10436 /Import File Strings/,/^$/ {
10437 /^0/ {
10438 s/^0 *\(.*\)$/\1/
10442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10443 # Check for a 64-bit object if we didn't find anything.
10444 if test -z "$aix_libpath"; then
10445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10452 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10453 # Warning - without using the other run time loading flags,
10454 # -berok will link without error, but may produce a broken library.
10455 no_undefined_flag=' ${wl}-bernotok'
10456 allow_undefined_flag=' ${wl}-berok'
10457 if test "$with_gnu_ld" = yes; then
10458 # We only use this code for GNU lds that support --whole-archive.
10459 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10460 else
10461 # Exported symbols can be pulled into shared objects from archives
10462 whole_archive_flag_spec='$convenience'
10464 archive_cmds_need_lc=yes
10465 # This is similar to how AIX traditionally builds its shared libraries.
10466 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'
10471 amigaos*)
10472 case $host_cpu in
10473 powerpc)
10474 # see comment about AmigaOS4 .so support
10475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10476 archive_expsym_cmds=''
10478 m68k)
10479 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)'
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_minus_L=yes
10483 esac
10486 bsdi[45]*)
10487 export_dynamic_flag_spec=-rdynamic
10490 cygwin* | mingw* | pw32* | cegcc*)
10491 # When not using gcc, we currently assume that we are using
10492 # Microsoft Visual C++.
10493 # hardcode_libdir_flag_spec is actually meaningless, as there is
10494 # no search path for DLLs.
10495 hardcode_libdir_flag_spec=' '
10496 allow_undefined_flag=unsupported
10497 # Tell ltmain to make .lib files, not .a files.
10498 libext=lib
10499 # Tell ltmain to make .dll files, not .so files.
10500 shrext_cmds=".dll"
10501 # FIXME: Setting linknames here is a bad hack.
10502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10503 # The linker will automatically build a .lib file if we build a DLL.
10504 old_archive_from_new_cmds='true'
10505 # FIXME: Should let the user specify the lib program.
10506 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10507 fix_srcfile_path='`cygpath -w "$srcfile"`'
10508 enable_shared_with_static_runtimes=yes
10511 darwin* | rhapsody*)
10514 archive_cmds_need_lc=no
10515 hardcode_direct=no
10516 hardcode_automatic=yes
10517 hardcode_shlibpath_var=unsupported
10518 if test "$lt_cv_ld_force_load" = "yes"; then
10519 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\"`'
10520 else
10521 whole_archive_flag_spec=''
10523 link_all_deplibs=yes
10524 allow_undefined_flag="$_lt_dar_allow_undefined"
10525 case $cc_basename in
10526 ifort*) _lt_dar_can_shared=yes ;;
10527 *) _lt_dar_can_shared=$GCC ;;
10528 esac
10529 if test "$_lt_dar_can_shared" = "yes"; then
10530 output_verbose_link_cmd=func_echo_all
10531 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10532 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10533 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}"
10534 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}"
10536 else
10537 ld_shlibs=no
10542 dgux*)
10543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544 hardcode_libdir_flag_spec='-L$libdir'
10545 hardcode_shlibpath_var=no
10548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10549 # support. Future versions do this automatically, but an explicit c++rt0.o
10550 # does not break anything, and helps significantly (at the cost of a little
10551 # extra space).
10552 freebsd2.2*)
10553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10554 hardcode_libdir_flag_spec='-R$libdir'
10555 hardcode_direct=yes
10556 hardcode_shlibpath_var=no
10559 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10560 freebsd2.*)
10561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_direct=yes
10563 hardcode_minus_L=yes
10564 hardcode_shlibpath_var=no
10567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10568 freebsd* | dragonfly*)
10569 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10570 hardcode_libdir_flag_spec='-R$libdir'
10571 hardcode_direct=yes
10572 hardcode_shlibpath_var=no
10575 hpux9*)
10576 if test "$GCC" = yes; then
10577 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'
10578 else
10579 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'
10581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10582 hardcode_libdir_separator=:
10583 hardcode_direct=yes
10585 # hardcode_minus_L: Not really in the search PATH,
10586 # but as the default location of the library.
10587 hardcode_minus_L=yes
10588 export_dynamic_flag_spec='${wl}-E'
10591 hpux10*)
10592 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10594 else
10595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10597 if test "$with_gnu_ld" = no; then
10598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10599 hardcode_libdir_flag_spec_ld='+b $libdir'
10600 hardcode_libdir_separator=:
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='${wl}-E'
10604 # hardcode_minus_L: Not really in the search PATH,
10605 # but as the default location of the library.
10606 hardcode_minus_L=yes
10610 hpux11*)
10611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10612 case $host_cpu in
10613 hppa*64*)
10614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 ia64*)
10617 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10622 esac
10623 else
10624 case $host_cpu in
10625 hppa*64*)
10626 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 ia64*)
10629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10633 # Older versions of the 11.00 compiler do not understand -b yet
10634 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10636 $as_echo_n "checking if $CC understands -b... " >&6; }
10637 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 lt_cv_prog_compiler__b=no
10641 save_LDFLAGS="$LDFLAGS"
10642 LDFLAGS="$LDFLAGS -b"
10643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10645 # The linker can only warn and ignore the option if not recognized
10646 # So say no if there are warnings
10647 if test -s conftest.err; then
10648 # Append any errors to the config.log.
10649 cat conftest.err 1>&5
10650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10652 if diff conftest.exp conftest.er2 >/dev/null; then
10653 lt_cv_prog_compiler__b=yes
10655 else
10656 lt_cv_prog_compiler__b=yes
10659 $RM -r conftest*
10660 LDFLAGS="$save_LDFLAGS"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10664 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10666 if test x"$lt_cv_prog_compiler__b" = xyes; then
10667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 else
10669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10673 esac
10675 if test "$with_gnu_ld" = no; then
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_separator=:
10679 case $host_cpu in
10680 hppa*64*|ia64*)
10681 hardcode_direct=no
10682 hardcode_shlibpath_var=no
10685 hardcode_direct=yes
10686 hardcode_direct_absolute=yes
10687 export_dynamic_flag_spec='${wl}-E'
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10693 esac
10697 irix5* | irix6* | nonstopux*)
10698 if test "$GCC" = yes; then
10699 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'
10700 # Try to use the -exported_symbol ld option, if it does not
10701 # work, assume that -exports_file does not work either and
10702 # implicitly export all symbols.
10703 save_LDFLAGS="$LDFLAGS"
10704 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10705 if test x$gcc_no_link = xyes; then
10706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 int foo(void) {}
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 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'
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LDFLAGS="$save_LDFLAGS"
10719 else
10720 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'
10721 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'
10723 archive_cmds_need_lc='no'
10724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725 hardcode_libdir_separator=:
10726 inherit_rpath=yes
10727 link_all_deplibs=yes
10730 netbsd*)
10731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10733 else
10734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10736 hardcode_libdir_flag_spec='-R$libdir'
10737 hardcode_direct=yes
10738 hardcode_shlibpath_var=no
10741 newsos6)
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_direct=yes
10744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator=:
10746 hardcode_shlibpath_var=no
10749 *nto* | *qnx*)
10752 openbsd*)
10753 if test -f /usr/libexec/ld.so; then
10754 hardcode_direct=yes
10755 hardcode_shlibpath_var=no
10756 hardcode_direct_absolute=yes
10757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10761 export_dynamic_flag_spec='${wl}-E'
10762 else
10763 case $host_os in
10764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_libdir_flag_spec='-R$libdir'
10769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10772 esac
10774 else
10775 ld_shlibs=no
10779 os2*)
10780 hardcode_libdir_flag_spec='-L$libdir'
10781 hardcode_minus_L=yes
10782 allow_undefined_flag=unsupported
10783 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'
10784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10787 osf3*)
10788 if test "$GCC" = yes; then
10789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10790 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'
10791 else
10792 allow_undefined_flag=' -expect_unresolved \*'
10793 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'
10795 archive_cmds_need_lc='no'
10796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797 hardcode_libdir_separator=:
10800 osf4* | osf5*) # as osf3* with the addition of -msym flag
10801 if test "$GCC" = yes; then
10802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10803 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'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 else
10806 allow_undefined_flag=' -expect_unresolved \*'
10807 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'
10808 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~
10809 $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'
10811 # Both c and cxx compiler support -rpath directly
10812 hardcode_libdir_flag_spec='-rpath $libdir'
10814 archive_cmds_need_lc='no'
10815 hardcode_libdir_separator=:
10818 solaris*)
10819 no_undefined_flag=' -z defs'
10820 if test "$GCC" = yes; then
10821 wlarc='${wl}'
10822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10825 else
10826 case `$CC -V 2>&1` in
10827 *"Compilers 5.0"*)
10828 wlarc=''
10829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10834 wlarc='${wl}'
10835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10839 esac
10841 hardcode_libdir_flag_spec='-R$libdir'
10842 hardcode_shlibpath_var=no
10843 case $host_os in
10844 solaris2.[0-5] | solaris2.[0-5].*) ;;
10846 # The compiler driver will combine and reorder linker options,
10847 # but understands `-z linker_flag'. GCC discards it without `$wl',
10848 # but is careful enough not to reorder.
10849 # Supported since Solaris 2.6 (maybe 2.5.1?)
10850 if test "$GCC" = yes; then
10851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10852 else
10853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10856 esac
10857 link_all_deplibs=yes
10860 sunos4*)
10861 if test "x$host_vendor" = xsequent; then
10862 # Use $CC to link under sequent, because it throws in some extra .o
10863 # files that make .init and .fini sections work.
10864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10865 else
10866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_direct=yes
10870 hardcode_minus_L=yes
10871 hardcode_shlibpath_var=no
10874 sysv4)
10875 case $host_vendor in
10876 sni)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes # is this really true???
10880 siemens)
10881 ## LD is ld it makes a PLAMLIB
10882 ## CC just makes a GrossModule.
10883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10884 reload_cmds='$CC -r -o $output$reload_objs'
10885 hardcode_direct=no
10887 motorola)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10891 esac
10892 runpath_var='LD_RUN_PATH'
10893 hardcode_shlibpath_var=no
10896 sysv4.3*)
10897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_shlibpath_var=no
10899 export_dynamic_flag_spec='-Bexport'
10902 sysv4*MP*)
10903 if test -d /usr/nec; then
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_shlibpath_var=no
10906 runpath_var=LD_RUN_PATH
10907 hardcode_runpath_var=yes
10908 ld_shlibs=yes
10912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10913 no_undefined_flag='${wl}-z,text'
10914 archive_cmds_need_lc=no
10915 hardcode_shlibpath_var=no
10916 runpath_var='LD_RUN_PATH'
10918 if test "$GCC" = yes; then
10919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 else
10922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 sysv5* | sco3.2v5* | sco5v6*)
10928 # Note: We can NOT use -z defs as we might desire, because we do not
10929 # link with -lc, and that would cause any symbols used from libc to
10930 # always be unresolved, which means just about no library would
10931 # ever link correctly. If we're not using GNU ld we use -z text
10932 # though, which does catch some bad symbols but isn't as heavy-handed
10933 # as -z defs.
10934 no_undefined_flag='${wl}-z,text'
10935 allow_undefined_flag='${wl}-z,nodefs'
10936 archive_cmds_need_lc=no
10937 hardcode_shlibpath_var=no
10938 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10939 hardcode_libdir_separator=':'
10940 link_all_deplibs=yes
10941 export_dynamic_flag_spec='${wl}-Bexport'
10942 runpath_var='LD_RUN_PATH'
10944 if test "$GCC" = yes; then
10945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 uts4*)
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_shlibpath_var=no
10960 ld_shlibs=no
10962 esac
10964 if test x$host_vendor = xsni; then
10965 case $host in
10966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10967 export_dynamic_flag_spec='${wl}-Blargedynsym'
10969 esac
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10974 $as_echo "$ld_shlibs" >&6; }
10975 test "$ld_shlibs" = no && can_build_shared=no
10977 with_gnu_ld=$with_gnu_ld
10994 # Do we need to explicitly link libc?
10996 case "x$archive_cmds_need_lc" in
10997 x|xyes)
10998 # Assume -lc should be added
10999 archive_cmds_need_lc=yes
11001 if test "$enable_shared" = yes && test "$GCC" = yes; then
11002 case $archive_cmds in
11003 *'~'*)
11004 # FIXME: we may have to deal with multi-command sequences.
11006 '$CC '*)
11007 # Test whether the compiler implicitly links with -lc since on some
11008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009 # to ld, don't add -lc before -lgcc.
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11011 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11012 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 $RM conftest*
11016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11019 (eval $ac_compile) 2>&5
11020 ac_status=$?
11021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022 test $ac_status = 0; } 2>conftest.err; then
11023 soname=conftest
11024 lib=conftest
11025 libobjs=conftest.$ac_objext
11026 deplibs=
11027 wl=$lt_prog_compiler_wl
11028 pic_flag=$lt_prog_compiler_pic
11029 compiler_flags=-v
11030 linker_flags=-v
11031 verstring=
11032 output_objdir=.
11033 libname=conftest
11034 lt_save_allow_undefined_flag=$allow_undefined_flag
11035 allow_undefined_flag=
11036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11037 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11038 ac_status=$?
11039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040 test $ac_status = 0; }
11041 then
11042 lt_cv_archive_cmds_need_lc=no
11043 else
11044 lt_cv_archive_cmds_need_lc=yes
11046 allow_undefined_flag=$lt_save_allow_undefined_flag
11047 else
11048 cat conftest.err 1>&5
11050 $RM conftest*
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11054 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11055 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11057 esac
11060 esac
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11221 if test "$GCC" = yes; then
11222 case $host_os in
11223 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11224 *) lt_awk_arg="/^libraries:/" ;;
11225 esac
11226 case $host_os in
11227 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11228 *) lt_sed_strip_eq="s,=/,/,g" ;;
11229 esac
11230 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11231 case $lt_search_path_spec in
11232 *\;*)
11233 # if the path contains ";" then we assume it to be the separator
11234 # otherwise default to the standard path separator (i.e. ":") - it is
11235 # assumed that no part of a normal pathname contains ";" but that should
11236 # okay in the real world where ";" in dirpaths is itself problematic.
11237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11242 esac
11243 # Ok, now we have the path, separated by spaces, we can step through it
11244 # and add multilib dir if necessary.
11245 lt_tmp_lt_search_path_spec=
11246 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11247 for lt_sys_path in $lt_search_path_spec; do
11248 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11250 else
11251 test -d "$lt_sys_path" && \
11252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11254 done
11255 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11256 BEGIN {RS=" "; FS="/|\n";} {
11257 lt_foo="";
11258 lt_count=0;
11259 for (lt_i = NF; lt_i > 0; lt_i--) {
11260 if ($lt_i != "" && $lt_i != ".") {
11261 if ($lt_i == "..") {
11262 lt_count++;
11263 } else {
11264 if (lt_count == 0) {
11265 lt_foo="/" $lt_i lt_foo;
11266 } else {
11267 lt_count--;
11272 if (lt_foo != "") { lt_freq[lt_foo]++; }
11273 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11275 # AWK program above erroneously prepends '/' to C:/dos/paths
11276 # for these hosts.
11277 case $host_os in
11278 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11279 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11280 esac
11281 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11282 else
11283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11285 library_names_spec=
11286 libname_spec='lib$name'
11287 soname_spec=
11288 shrext_cmds=".so"
11289 postinstall_cmds=
11290 postuninstall_cmds=
11291 finish_cmds=
11292 finish_eval=
11293 shlibpath_var=
11294 shlibpath_overrides_runpath=unknown
11295 version_type=none
11296 dynamic_linker="$host_os ld.so"
11297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11298 need_lib_prefix=unknown
11299 hardcode_into_libs=no
11301 # when you set need_version to no, make sure it does not cause -set_version
11302 # flags to be left without arguments
11303 need_version=unknown
11305 case $host_os in
11306 aix3*)
11307 version_type=linux
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11309 shlibpath_var=LIBPATH
11311 # AIX 3 has no versioning support, so we append a major version to the name.
11312 soname_spec='${libname}${release}${shared_ext}$major'
11315 aix[4-9]*)
11316 version_type=linux
11317 need_lib_prefix=no
11318 need_version=no
11319 hardcode_into_libs=yes
11320 if test "$host_cpu" = ia64; then
11321 # AIX 5 supports IA64
11322 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 else
11325 # With GCC up to 2.95.x, collect2 would create an import file
11326 # for dependence libraries. The import file would start with
11327 # the line `#! .'. This would cause the generated library to
11328 # depend on `.', always an invalid library. This was fixed in
11329 # development snapshots of GCC prior to 3.0.
11330 case $host_os in
11331 aix4 | aix4.[01] | aix4.[01].*)
11332 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11333 echo ' yes '
11334 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11336 else
11337 can_build_shared=no
11340 esac
11341 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11342 # soname into executable. Probably we can add versioning support to
11343 # collect2, so additional links can be useful in future.
11344 if test "$aix_use_runtimelinking" = yes; then
11345 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11346 # instead of lib<name>.a to let people know that these are not
11347 # typical AIX shared libraries.
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 else
11350 # We preserve .a as extension for shared libraries through AIX4.2
11351 # and later when we are not doing run time linking.
11352 library_names_spec='${libname}${release}.a $libname.a'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11355 shlibpath_var=LIBPATH
11359 amigaos*)
11360 case $host_cpu in
11361 powerpc)
11362 # Since July 2007 AmigaOS4 officially supports .so libraries.
11363 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 m68k)
11367 library_names_spec='$libname.ixlibrary $libname.a'
11368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11369 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'
11371 esac
11374 beos*)
11375 library_names_spec='${libname}${shared_ext}'
11376 dynamic_linker="$host_os ld.so"
11377 shlibpath_var=LIBRARY_PATH
11380 bsdi[45]*)
11381 version_type=linux
11382 need_version=no
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11389 # the default ld.so.conf also contains /usr/contrib/lib and
11390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11391 # libtool to hard-code these into programs
11394 cygwin* | mingw* | pw32* | cegcc*)
11395 version_type=windows
11396 shrext_cmds=".dll"
11397 need_version=no
11398 need_lib_prefix=no
11400 case $GCC,$host_os in
11401 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11402 library_names_spec='$libname.dll.a'
11403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11404 postinstall_cmds='base_file=`basename \${file}`~
11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11406 dldir=$destdir/`dirname \$dlpath`~
11407 test -d \$dldir || mkdir -p \$dldir~
11408 $install_prog $dir/$dlname \$dldir/$dlname~
11409 chmod a+x \$dldir/$dlname~
11410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11414 dlpath=$dir/\$dldll~
11415 $RM \$dlpath'
11416 shlibpath_overrides_runpath=yes
11418 case $host_os in
11419 cygwin*)
11420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11423 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11425 mingw* | cegcc*)
11426 # MinGW DLLs use traditional 'lib' prefix
11427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 pw32*)
11430 # pw32 DLLs use 'pw' prefix rather than 'lib'
11431 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433 esac
11437 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11439 esac
11440 dynamic_linker='Win32 ld.exe'
11441 # FIXME: first we should search . and the directory the executable is in
11442 shlibpath_var=PATH
11445 darwin* | rhapsody*)
11446 dynamic_linker="$host_os dyld"
11447 version_type=darwin
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11451 soname_spec='${libname}${release}${major}$shared_ext'
11452 shlibpath_overrides_runpath=yes
11453 shlibpath_var=DYLD_LIBRARY_PATH
11454 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11456 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11460 dgux*)
11461 version_type=linux
11462 need_lib_prefix=no
11463 need_version=no
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11469 freebsd* | dragonfly*)
11470 # DragonFly does not have aout. When/if they implement a new
11471 # versioning mechanism, adjust this.
11472 if test -x /usr/bin/objformat; then
11473 objformat=`/usr/bin/objformat`
11474 else
11475 case $host_os in
11476 freebsd[23].*) objformat=aout ;;
11477 *) objformat=elf ;;
11478 esac
11480 version_type=freebsd-$objformat
11481 case $version_type in
11482 freebsd-elf*)
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11484 need_version=no
11485 need_lib_prefix=no
11487 freebsd-*)
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11489 need_version=yes
11491 esac
11492 shlibpath_var=LD_LIBRARY_PATH
11493 case $host_os in
11494 freebsd2.*)
11495 shlibpath_overrides_runpath=yes
11497 freebsd3.[01]* | freebsdelf3.[01]*)
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11506 *) # from 4.6 on, and DragonFly
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11510 esac
11513 gnu*)
11514 version_type=linux
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 hardcode_into_libs=yes
11523 haiku*)
11524 version_type=linux
11525 need_lib_prefix=no
11526 need_version=no
11527 dynamic_linker="$host_os runtime_loader"
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11533 hardcode_into_libs=yes
11536 hpux9* | hpux10* | hpux11*)
11537 # Give a soname corresponding to the major version so that dld.sl refuses to
11538 # link against other versions.
11539 version_type=sunos
11540 need_lib_prefix=no
11541 need_version=no
11542 case $host_cpu in
11543 ia64*)
11544 shrext_cmds='.so'
11545 hardcode_into_libs=yes
11546 dynamic_linker="$host_os dld.so"
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 if test "X$HPUX_IA64_MODE" = X32; then
11552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11553 else
11554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558 hppa*64*)
11559 shrext_cmds='.sl'
11560 hardcode_into_libs=yes
11561 dynamic_linker="$host_os dld.sl"
11562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570 shrext_cmds='.sl'
11571 dynamic_linker="$host_os dld.sl"
11572 shlibpath_var=SHLIB_PATH
11573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11577 esac
11578 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11579 postinstall_cmds='chmod 555 $lib'
11580 # or fails outright, so override atomically:
11581 install_override_mode=555
11584 interix[3-9]*)
11585 version_type=linux
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=no
11593 hardcode_into_libs=yes
11596 irix5* | irix6* | nonstopux*)
11597 case $host_os in
11598 nonstopux*) version_type=nonstopux ;;
11600 if test "$lt_cv_prog_gnu_ld" = yes; then
11601 version_type=linux
11602 else
11603 version_type=irix
11604 fi ;;
11605 esac
11606 need_lib_prefix=no
11607 need_version=no
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11610 case $host_os in
11611 irix5* | nonstopux*)
11612 libsuff= shlibsuff=
11615 case $LD in # libtool.m4 will add one of these switches to LD
11616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11617 libsuff= shlibsuff= libmagic=32-bit;;
11618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11619 libsuff=32 shlibsuff=N32 libmagic=N32;;
11620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11622 *) libsuff= shlibsuff= libmagic=never-match;;
11623 esac
11625 esac
11626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11627 shlibpath_overrides_runpath=no
11628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11630 hardcode_into_libs=yes
11633 # No shared lib support for Linux oldld, aout, or coff.
11634 linux*oldld* | linux*aout* | linux*coff*)
11635 dynamic_linker=no
11638 # This must be Linux ELF.
11639 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11640 version_type=linux
11641 need_lib_prefix=no
11642 need_version=no
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11649 # Some binutils ld are patched to set DT_RUNPATH
11650 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 lt_cv_shlibpath_overrides_runpath=no
11654 save_LDFLAGS=$LDFLAGS
11655 save_libdir=$libdir
11656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11658 if test x$gcc_no_link = xyes; then
11659 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11665 main ()
11669 return 0;
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11674 lt_cv_shlibpath_overrides_runpath=yes
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LDFLAGS=$save_LDFLAGS
11680 libdir=$save_libdir
11684 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11686 # This implies no fast_install, which is unacceptable.
11687 # Some rework will be needed to allow for fast_install
11688 # before this can be enabled.
11689 hardcode_into_libs=yes
11691 # Append ld.so.conf contents to the search path
11692 if test -f /etc/ld.so.conf; then
11693 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' ' '`
11694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11697 # We used to test for /lib/ld.so.1 and disable shared libraries on
11698 # powerpc, because MkLinux only supported shared libraries with the
11699 # GNU dynamic linker. Since this was broken with cross compilers,
11700 # most powerpc-linux boxes support dynamic linking these days and
11701 # people can always --disable-shared, the test was removed, and we
11702 # assume the GNU/Linux dynamic linker is in use.
11703 dynamic_linker='GNU/Linux ld.so'
11706 netbsd*)
11707 version_type=sunos
11708 need_lib_prefix=no
11709 need_version=no
11710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11713 dynamic_linker='NetBSD (a.out) ld.so'
11714 else
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 dynamic_linker='NetBSD ld.elf_so'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 hardcode_into_libs=yes
11724 newsos6)
11725 version_type=linux
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11731 *nto* | *qnx*)
11732 version_type=qnx
11733 need_lib_prefix=no
11734 need_version=no
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=no
11739 hardcode_into_libs=yes
11740 dynamic_linker='ldqnx.so'
11743 openbsd*)
11744 version_type=sunos
11745 sys_lib_dlsearch_path_spec="/usr/lib"
11746 need_lib_prefix=no
11747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11748 case $host_os in
11749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11750 *) need_version=no ;;
11751 esac
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11756 case $host_os in
11757 openbsd2.[89] | openbsd2.[89].*)
11758 shlibpath_overrides_runpath=no
11761 shlibpath_overrides_runpath=yes
11763 esac
11764 else
11765 shlibpath_overrides_runpath=yes
11769 os2*)
11770 libname_spec='$name'
11771 shrext_cmds=".dll"
11772 need_lib_prefix=no
11773 library_names_spec='$libname${shared_ext} $libname.a'
11774 dynamic_linker='OS/2 ld.exe'
11775 shlibpath_var=LIBPATH
11778 osf3* | osf4* | osf5*)
11779 version_type=osf
11780 need_lib_prefix=no
11781 need_version=no
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11789 rdos*)
11790 dynamic_linker=no
11793 solaris*)
11794 version_type=linux
11795 need_lib_prefix=no
11796 need_version=no
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801 hardcode_into_libs=yes
11802 # ldd complains unless libraries are executable
11803 postinstall_cmds='chmod +x $lib'
11806 sunos4*)
11807 version_type=sunos
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11812 if test "$with_gnu_ld" = yes; then
11813 need_lib_prefix=no
11815 need_version=yes
11818 sysv4 | sysv4.3*)
11819 version_type=linux
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 case $host_vendor in
11824 sni)
11825 shlibpath_overrides_runpath=no
11826 need_lib_prefix=no
11827 runpath_var=LD_RUN_PATH
11829 siemens)
11830 need_lib_prefix=no
11832 motorola)
11833 need_lib_prefix=no
11834 need_version=no
11835 shlibpath_overrides_runpath=no
11836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11838 esac
11841 sysv4*MP*)
11842 if test -d /usr/nec ;then
11843 version_type=linux
11844 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11845 soname_spec='$libname${shared_ext}.$major'
11846 shlibpath_var=LD_LIBRARY_PATH
11850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11851 version_type=freebsd-elf
11852 need_lib_prefix=no
11853 need_version=no
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=yes
11858 hardcode_into_libs=yes
11859 if test "$with_gnu_ld" = yes; then
11860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11861 else
11862 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11863 case $host_os in
11864 sco3.2v5*)
11865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11867 esac
11869 sys_lib_dlsearch_path_spec='/usr/lib'
11872 tpf*)
11873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11874 version_type=linux
11875 need_lib_prefix=no
11876 need_version=no
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=no
11880 hardcode_into_libs=yes
11883 uts4*)
11884 version_type=linux
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11891 dynamic_linker=no
11893 esac
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11895 $as_echo "$dynamic_linker" >&6; }
11896 test "$dynamic_linker" = no && can_build_shared=no
11898 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11899 if test "$GCC" = yes; then
11900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11907 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12003 hardcode_action=
12004 if test -n "$hardcode_libdir_flag_spec" ||
12005 test -n "$runpath_var" ||
12006 test "X$hardcode_automatic" = "Xyes" ; then
12008 # We can hardcode non-existent directories.
12009 if test "$hardcode_direct" != no &&
12010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12011 # have to relink, otherwise we might link with an installed library
12012 # when we should be linking with a yet-to-be-installed one
12013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12014 test "$hardcode_minus_L" != no; then
12015 # Linking always hardcodes the temporary library directory.
12016 hardcode_action=relink
12017 else
12018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12019 hardcode_action=immediate
12021 else
12022 # We cannot hardcode anything, or else we can only hardcode existing
12023 # directories.
12024 hardcode_action=unsupported
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12027 $as_echo "$hardcode_action" >&6; }
12029 if test "$hardcode_action" = relink ||
12030 test "$inherit_rpath" = yes; then
12031 # Fast installation is not supported
12032 enable_fast_install=no
12033 elif test "$shlibpath_overrides_runpath" = yes ||
12034 test "$enable_shared" = no; then
12035 # Fast installation is not necessary
12036 enable_fast_install=needless
12044 if test "x$enable_dlopen" != xyes; then
12045 enable_dlopen=unknown
12046 enable_dlopen_self=unknown
12047 enable_dlopen_self_static=unknown
12048 else
12049 lt_cv_dlopen=no
12050 lt_cv_dlopen_libs=
12052 case $host_os in
12053 beos*)
12054 lt_cv_dlopen="load_add_on"
12055 lt_cv_dlopen_libs=
12056 lt_cv_dlopen_self=yes
12059 mingw* | pw32* | cegcc*)
12060 lt_cv_dlopen="LoadLibrary"
12061 lt_cv_dlopen_libs=
12064 cygwin*)
12065 lt_cv_dlopen="dlopen"
12066 lt_cv_dlopen_libs=
12069 darwin*)
12070 # if libdl is installed we need to link against it
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldl $LIBS"
12078 if test x$gcc_no_link = xyes; then
12079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char dlopen ();
12092 main ()
12094 return dlopen ();
12096 return 0;
12098 _ACEOF
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_dl_dlopen=yes
12101 else
12102 ac_cv_lib_dl_dlopen=no
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12109 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12110 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12112 else
12114 lt_cv_dlopen="dyld"
12115 lt_cv_dlopen_libs=
12116 lt_cv_dlopen_self=yes
12123 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12124 if test "x$ac_cv_func_shl_load" = x""yes; then :
12125 lt_cv_dlopen="shl_load"
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12128 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12129 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 ac_check_lib_save_LIBS=$LIBS
12133 LIBS="-ldld $LIBS"
12134 if test x$gcc_no_link = xyes; then
12135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char shl_load ();
12148 main ()
12150 return shl_load ();
12152 return 0;
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_dld_shl_load=yes
12157 else
12158 ac_cv_lib_dld_shl_load=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12165 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12166 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12167 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12168 else
12169 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12170 if test "x$ac_cv_func_dlopen" = x""yes; then :
12171 lt_cv_dlopen="dlopen"
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-ldl $LIBS"
12180 if test x$gcc_no_link = xyes; then
12181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char dlopen ();
12194 main ()
12196 return dlopen ();
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_dl_dlopen=yes
12203 else
12204 ac_cv_lib_dl_dlopen=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12211 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12212 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12216 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12217 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-lsvld $LIBS"
12222 if test x$gcc_no_link = xyes; then
12223 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 /* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 char dlopen ();
12236 main ()
12238 return dlopen ();
12240 return 0;
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_lib_svld_dlopen=yes
12245 else
12246 ac_cv_lib_svld_dlopen=no
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12253 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12254 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12258 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12259 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-ldld $LIBS"
12264 if test x$gcc_no_link = xyes; then
12265 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char dld_link ();
12278 main ()
12280 return dld_link ();
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_dld_dld_link=yes
12287 else
12288 ac_cv_lib_dld_dld_link=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12295 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12296 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12316 esac
12318 if test "x$lt_cv_dlopen" != xno; then
12319 enable_dlopen=yes
12320 else
12321 enable_dlopen=no
12324 case $lt_cv_dlopen in
12325 dlopen)
12326 save_CPPFLAGS="$CPPFLAGS"
12327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12329 save_LDFLAGS="$LDFLAGS"
12330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12332 save_LIBS="$LIBS"
12333 LIBS="$lt_cv_dlopen_libs $LIBS"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12336 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12337 if test "${lt_cv_dlopen_self+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test "$cross_compiling" = yes; then :
12341 lt_cv_dlopen_self=cross
12342 else
12343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344 lt_status=$lt_dlunknown
12345 cat > conftest.$ac_ext <<_LT_EOF
12346 #line 12346 "configure"
12347 #include "confdefs.h"
12349 #if HAVE_DLFCN_H
12350 #include <dlfcn.h>
12351 #endif
12353 #include <stdio.h>
12355 #ifdef RTLD_GLOBAL
12356 # define LT_DLGLOBAL RTLD_GLOBAL
12357 #else
12358 # ifdef DL_GLOBAL
12359 # define LT_DLGLOBAL DL_GLOBAL
12360 # else
12361 # define LT_DLGLOBAL 0
12362 # endif
12363 #endif
12365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366 find out it does not work in some platform. */
12367 #ifndef LT_DLLAZY_OR_NOW
12368 # ifdef RTLD_LAZY
12369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12370 # else
12371 # ifdef DL_LAZY
12372 # define LT_DLLAZY_OR_NOW DL_LAZY
12373 # else
12374 # ifdef RTLD_NOW
12375 # define LT_DLLAZY_OR_NOW RTLD_NOW
12376 # else
12377 # ifdef DL_NOW
12378 # define LT_DLLAZY_OR_NOW DL_NOW
12379 # else
12380 # define LT_DLLAZY_OR_NOW 0
12381 # endif
12382 # endif
12383 # endif
12384 # endif
12385 #endif
12387 /* When -fvisbility=hidden is used, assume the code has been annotated
12388 correspondingly for the symbols needed. */
12389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12390 void fnord () __attribute__((visibility("default")));
12391 #endif
12393 void fnord () { int i=42; }
12394 int main ()
12396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12397 int status = $lt_dlunknown;
12399 if (self)
12401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12402 else
12404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12405 else puts (dlerror ());
12407 /* dlclose (self); */
12409 else
12410 puts (dlerror ());
12412 return status;
12414 _LT_EOF
12415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12420 (./conftest; exit; ) >&5 2>/dev/null
12421 lt_status=$?
12422 case x$lt_status in
12423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12425 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12426 esac
12427 else :
12428 # compilation failed
12429 lt_cv_dlopen_self=no
12432 rm -fr conftest*
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12437 $as_echo "$lt_cv_dlopen_self" >&6; }
12439 if test "x$lt_cv_dlopen_self" = xyes; then
12440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12442 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12443 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 if test "$cross_compiling" = yes; then :
12447 lt_cv_dlopen_self_static=cross
12448 else
12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12450 lt_status=$lt_dlunknown
12451 cat > conftest.$ac_ext <<_LT_EOF
12452 #line 12452 "configure"
12453 #include "confdefs.h"
12455 #if HAVE_DLFCN_H
12456 #include <dlfcn.h>
12457 #endif
12459 #include <stdio.h>
12461 #ifdef RTLD_GLOBAL
12462 # define LT_DLGLOBAL RTLD_GLOBAL
12463 #else
12464 # ifdef DL_GLOBAL
12465 # define LT_DLGLOBAL DL_GLOBAL
12466 # else
12467 # define LT_DLGLOBAL 0
12468 # endif
12469 #endif
12471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12472 find out it does not work in some platform. */
12473 #ifndef LT_DLLAZY_OR_NOW
12474 # ifdef RTLD_LAZY
12475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12476 # else
12477 # ifdef DL_LAZY
12478 # define LT_DLLAZY_OR_NOW DL_LAZY
12479 # else
12480 # ifdef RTLD_NOW
12481 # define LT_DLLAZY_OR_NOW RTLD_NOW
12482 # else
12483 # ifdef DL_NOW
12484 # define LT_DLLAZY_OR_NOW DL_NOW
12485 # else
12486 # define LT_DLLAZY_OR_NOW 0
12487 # endif
12488 # endif
12489 # endif
12490 # endif
12491 #endif
12493 /* When -fvisbility=hidden is used, assume the code has been annotated
12494 correspondingly for the symbols needed. */
12495 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12496 void fnord () __attribute__((visibility("default")));
12497 #endif
12499 void fnord () { int i=42; }
12500 int main ()
12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12503 int status = $lt_dlunknown;
12505 if (self)
12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12508 else
12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511 else puts (dlerror ());
12513 /* dlclose (self); */
12515 else
12516 puts (dlerror ());
12518 return status;
12520 _LT_EOF
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12526 (./conftest; exit; ) >&5 2>/dev/null
12527 lt_status=$?
12528 case x$lt_status in
12529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12532 esac
12533 else :
12534 # compilation failed
12535 lt_cv_dlopen_self_static=no
12538 rm -fr conftest*
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12543 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12546 CPPFLAGS="$save_CPPFLAGS"
12547 LDFLAGS="$save_LDFLAGS"
12548 LIBS="$save_LIBS"
12550 esac
12552 case $lt_cv_dlopen_self in
12553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12554 *) enable_dlopen_self=unknown ;;
12555 esac
12557 case $lt_cv_dlopen_self_static in
12558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12559 *) enable_dlopen_self_static=unknown ;;
12560 esac
12579 striplib=
12580 old_striplib=
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12582 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12583 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 else
12589 # FIXME - insert some real tests, host_os isn't really good enough
12590 case $host_os in
12591 darwin*)
12592 if test -n "$STRIP" ; then
12593 striplib="$STRIP -x"
12594 old_striplib="$STRIP -S"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12596 $as_echo "yes" >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12606 esac
12620 # Report which library types will actually be built
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12622 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12624 $as_echo "$can_build_shared" >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12627 $as_echo_n "checking whether to build shared libraries... " >&6; }
12628 test "$can_build_shared" = "no" && enable_shared=no
12630 # On AIX, shared libraries and static libraries use the same namespace, and
12631 # are all built from PIC.
12632 case $host_os in
12633 aix3*)
12634 test "$enable_shared" = yes && enable_static=no
12635 if test -n "$RANLIB"; then
12636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12637 postinstall_cmds='$RANLIB $lib'
12641 aix[4-9]*)
12642 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12643 test "$enable_shared" = yes && enable_static=no
12646 esac
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12648 $as_echo "$enable_shared" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12651 $as_echo_n "checking whether to build static libraries... " >&6; }
12652 # Make sure either enable_shared or enable_static is yes.
12653 test "$enable_shared" = yes || enable_static=yes
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12655 $as_echo "$enable_static" >&6; }
12661 ac_ext=c
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667 CC="$lt_save_CC"
12681 ac_config_commands="$ac_config_commands libtool"
12686 # Only expand once:
12692 case $host in
12693 *-cygwin* | *-mingw*)
12694 # 'host' will be top-level target in the case of a target lib,
12695 # we must compare to with_cross_host to decide if this is a native
12696 # or cross-compiler and select where to install dlls appropriately.
12697 if test -n "$with_cross_host" &&
12698 test x"$with_cross_host" != x"no"; then
12699 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12700 else
12701 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12705 lt_host_flags=
12707 esac
12713 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12715 # We need gfortran to compile parts of the library
12716 #AC_PROG_FC(gfortran)
12717 FC="$GFORTRAN"
12718 ac_ext=${ac_fc_srcext-f}
12719 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12720 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12722 if test -n "$ac_tool_prefix"; then
12723 for ac_prog in gfortran
12725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if test "${ac_cv_prog_FC+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$FC"; then
12733 ac_cv_prog_FC="$FC" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12746 done
12747 done
12748 IFS=$as_save_IFS
12752 FC=$ac_cv_prog_FC
12753 if test -n "$FC"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12755 $as_echo "$FC" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12762 test -n "$FC" && break
12763 done
12765 if test -z "$FC"; then
12766 ac_ct_FC=$FC
12767 for ac_prog in gfortran
12769 # Extract the first word of "$ac_prog", so it can be a program name with args.
12770 set dummy $ac_prog; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 if test -n "$ac_ct_FC"; then
12777 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12778 else
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12786 ac_cv_prog_ac_ct_FC="$ac_prog"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12790 done
12791 done
12792 IFS=$as_save_IFS
12796 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12797 if test -n "$ac_ct_FC"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12799 $as_echo "$ac_ct_FC" >&6; }
12800 else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12806 test -n "$ac_ct_FC" && break
12807 done
12809 if test "x$ac_ct_FC" = x; then
12810 FC=""
12811 else
12812 case $cross_compiling:$ac_tool_warned in
12813 yes:)
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12816 ac_tool_warned=yes ;;
12817 esac
12818 FC=$ac_ct_FC
12823 # Provide some information about the compiler.
12824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12825 set X $ac_compile
12826 ac_compiler=$2
12827 for ac_option in --version -v -V -qversion; do
12828 { { ac_try="$ac_compiler $ac_option >&5"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832 esac
12833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12834 $as_echo "$ac_try_echo"; } >&5
12835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12836 ac_status=$?
12837 if test -s conftest.err; then
12838 sed '10a\
12839 ... rest of stderr output deleted ...
12840 10q' conftest.err >conftest.er1
12841 cat conftest.er1 >&5
12842 rm -f conftest.er1 conftest.err
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }
12846 done
12847 rm -f a.out
12849 # If we don't use `.F' as extension, the preprocessor is not run on the
12850 # input file. (Note that this only needs to work for GNU compilers.)
12851 ac_save_ext=$ac_ext
12852 ac_ext=F
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12854 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12855 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 cat > conftest.$ac_ext <<_ACEOF
12859 program main
12860 #ifndef __GNUC__
12861 choke me
12862 #endif
12865 _ACEOF
12866 if ac_fn_fc_try_compile "$LINENO"; then :
12867 ac_compiler_gnu=yes
12868 else
12869 ac_compiler_gnu=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12876 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12877 ac_ext=$ac_save_ext
12878 ac_test_FCFLAGS=${FCFLAGS+set}
12879 ac_save_FCFLAGS=$FCFLAGS
12880 FCFLAGS=
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12882 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12883 if test "${ac_cv_prog_fc_g+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 FCFLAGS=-g
12887 cat > conftest.$ac_ext <<_ACEOF
12888 program main
12891 _ACEOF
12892 if ac_fn_fc_try_compile "$LINENO"; then :
12893 ac_cv_prog_fc_g=yes
12894 else
12895 ac_cv_prog_fc_g=no
12897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12901 $as_echo "$ac_cv_prog_fc_g" >&6; }
12902 if test "$ac_test_FCFLAGS" = set; then
12903 FCFLAGS=$ac_save_FCFLAGS
12904 elif test $ac_cv_prog_fc_g = yes; then
12905 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12906 FCFLAGS="-g -O2"
12907 else
12908 FCFLAGS="-g"
12910 else
12911 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12912 FCFLAGS="-O2"
12913 else
12914 FCFLAGS=
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924 ac_ext=${ac_fc_srcext-f}
12925 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12926 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12930 if test -z "$FC" || test "X$FC" = "Xno"; then
12931 _lt_disable_FC=yes
12934 archive_cmds_need_lc_FC=no
12935 allow_undefined_flag_FC=
12936 always_export_symbols_FC=no
12937 archive_expsym_cmds_FC=
12938 export_dynamic_flag_spec_FC=
12939 hardcode_direct_FC=no
12940 hardcode_direct_absolute_FC=no
12941 hardcode_libdir_flag_spec_FC=
12942 hardcode_libdir_flag_spec_ld_FC=
12943 hardcode_libdir_separator_FC=
12944 hardcode_minus_L_FC=no
12945 hardcode_automatic_FC=no
12946 inherit_rpath_FC=no
12947 module_cmds_FC=
12948 module_expsym_cmds_FC=
12949 link_all_deplibs_FC=unknown
12950 old_archive_cmds_FC=$old_archive_cmds
12951 reload_flag_FC=$reload_flag
12952 reload_cmds_FC=$reload_cmds
12953 no_undefined_flag_FC=
12954 whole_archive_flag_spec_FC=
12955 enable_shared_with_static_runtimes_FC=no
12957 # Source file extension for fc test sources.
12958 ac_ext=${ac_fc_srcext-f}
12960 # Object file extension for compiled fc test sources.
12961 objext=o
12962 objext_FC=$objext
12964 # No sense in running all these tests if we already determined that
12965 # the FC compiler isn't working. Some variables (like enable_shared)
12966 # are currently assumed to apply to all compilers on this platform,
12967 # and will be corrupted by setting them based on a non-working compiler.
12968 if test "$_lt_disable_FC" != yes; then
12969 # Code to be used in simple compile tests
12970 lt_simple_compile_test_code="\
12971 subroutine t
12972 return
12976 # Code to be used in simple link tests
12977 lt_simple_link_test_code="\
12978 program t
12982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989 # If no C compiler was specified, use CC.
12990 LTCC=${LTCC-"$CC"}
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995 # Allow CC to be a program name with arguments.
12996 compiler=$CC
12999 # save warnings/boilerplate of simple test code
13000 ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13004 $RM conftest*
13006 ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13010 $RM -r conftest*
13013 # Allow CC to be a program name with arguments.
13014 lt_save_CC="$CC"
13015 lt_save_GCC=$GCC
13016 CC=${FC-"f95"}
13017 compiler=$CC
13018 GCC=$ac_cv_fc_compiler_gnu
13020 compiler_FC=$CC
13021 for cc_temp in $compiler""; do
13022 case $cc_temp in
13023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13025 \-*) ;;
13026 *) break;;
13027 esac
13028 done
13029 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13032 if test -n "$compiler"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13034 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13036 $as_echo "$can_build_shared" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13039 $as_echo_n "checking whether to build shared libraries... " >&6; }
13040 test "$can_build_shared" = "no" && enable_shared=no
13042 # On AIX, shared libraries and static libraries use the same namespace, and
13043 # are all built from PIC.
13044 case $host_os in
13045 aix3*)
13046 test "$enable_shared" = yes && enable_static=no
13047 if test -n "$RANLIB"; then
13048 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13049 postinstall_cmds='$RANLIB $lib'
13052 aix[4-9]*)
13053 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13054 test "$enable_shared" = yes && enable_static=no
13057 esac
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13059 $as_echo "$enable_shared" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13062 $as_echo_n "checking whether to build static libraries... " >&6; }
13063 # Make sure either enable_shared or enable_static is yes.
13064 test "$enable_shared" = yes || enable_static=yes
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13066 $as_echo "$enable_static" >&6; }
13068 GCC_FC="$ac_cv_fc_compiler_gnu"
13069 LD_FC="$LD"
13071 ## CAVEAT EMPTOR:
13072 ## There is no encapsulation within the following macros, do not change
13073 ## the running order or otherwise move them around unless you know exactly
13074 ## what you are doing...
13075 # Dependencies to place before and after the object being linked:
13076 predep_objects_FC=
13077 postdep_objects_FC=
13078 predeps_FC=
13079 postdeps_FC=
13080 compiler_lib_search_path_FC=
13082 cat > conftest.$ac_ext <<_LT_EOF
13083 subroutine foo
13084 implicit none
13085 integer a
13087 return
13089 _LT_EOF
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092 (eval $ac_compile) 2>&5
13093 ac_status=$?
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 # Parse the compiler output and extract the necessary
13097 # objects, libraries and library flags.
13099 # Sentinel used to keep track of whether or not we are before
13100 # the conftest object file.
13101 pre_test_object_deps_done=no
13103 for p in `eval "$output_verbose_link_cmd"`; do
13104 case $p in
13106 -L* | -R* | -l*)
13107 # Some compilers place space between "-{L,R}" and the path.
13108 # Remove the space.
13109 if test $p = "-L" ||
13110 test $p = "-R"; then
13111 prev=$p
13112 continue
13113 else
13114 prev=
13117 if test "$pre_test_object_deps_done" = no; then
13118 case $p in
13119 -L* | -R*)
13120 # Internal compiler library paths should come after those
13121 # provided the user. The postdeps already come after the
13122 # user supplied libs so there is no need to process them.
13123 if test -z "$compiler_lib_search_path_FC"; then
13124 compiler_lib_search_path_FC="${prev}${p}"
13125 else
13126 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13129 # The "-l" case would never come before the object being
13130 # linked, so don't bother handling this case.
13131 esac
13132 else
13133 if test -z "$postdeps_FC"; then
13134 postdeps_FC="${prev}${p}"
13135 else
13136 postdeps_FC="${postdeps_FC} ${prev}${p}"
13141 *.$objext)
13142 # This assumes that the test object file only shows up
13143 # once in the compiler output.
13144 if test "$p" = "conftest.$objext"; then
13145 pre_test_object_deps_done=yes
13146 continue
13149 if test "$pre_test_object_deps_done" = no; then
13150 if test -z "$predep_objects_FC"; then
13151 predep_objects_FC="$p"
13152 else
13153 predep_objects_FC="$predep_objects_FC $p"
13155 else
13156 if test -z "$postdep_objects_FC"; then
13157 postdep_objects_FC="$p"
13158 else
13159 postdep_objects_FC="$postdep_objects_FC $p"
13164 *) ;; # Ignore the rest.
13166 esac
13167 done
13169 # Clean up.
13170 rm -f a.out a.exe
13171 else
13172 echo "libtool.m4: error: problem compiling FC test program"
13175 $RM -f confest.$objext
13177 # PORTME: override above test on systems where it is broken
13180 case " $postdeps_FC " in
13181 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13182 esac
13183 compiler_lib_search_dirs_FC=
13184 if test -n "${compiler_lib_search_path_FC}"; then
13185 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13218 lt_prog_compiler_wl_FC=
13219 lt_prog_compiler_pic_FC=
13220 lt_prog_compiler_static_FC=
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13225 if test "$GCC" = yes; then
13226 lt_prog_compiler_wl_FC='-Wl,'
13227 lt_prog_compiler_static_FC='-static'
13229 case $host_os in
13230 aix*)
13231 # All AIX code is PIC.
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 now supports IA64 processor
13234 lt_prog_compiler_static_FC='-Bstatic'
13236 lt_prog_compiler_pic_FC='-fPIC'
13239 amigaos*)
13240 case $host_cpu in
13241 powerpc)
13242 # see comment about AmigaOS4 .so support
13243 lt_prog_compiler_pic_FC='-fPIC'
13245 m68k)
13246 # FIXME: we need at least 68020 code to build shared libraries, but
13247 # adding the `-m68020' flag to GCC prevents building anything better,
13248 # like `-m68040'.
13249 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13251 esac
13254 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13255 # PIC is the default for these OSes.
13258 mingw* | cygwin* | pw32* | os2* | cegcc*)
13259 # This hack is so that the source file can tell whether it is being
13260 # built for inclusion in a dll (and should export symbols for example).
13261 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13262 # (--disable-auto-import) libraries
13263 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13266 darwin* | rhapsody*)
13267 # PIC is the default on this platform
13268 # Common symbols not allowed in MH_DYLIB files
13269 lt_prog_compiler_pic_FC='-fno-common'
13272 haiku*)
13273 # PIC is the default for Haiku.
13274 # The "-static" flag exists, but is broken.
13275 lt_prog_compiler_static_FC=
13278 hpux*)
13279 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13280 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13281 # sets the default TLS model and affects inlining.
13282 case $host_cpu in
13283 hppa*64*)
13284 # +Z the default
13287 lt_prog_compiler_pic_FC='-fPIC'
13289 esac
13292 interix[3-9]*)
13293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13294 # Instead, we relocate shared libraries at runtime.
13297 msdosdjgpp*)
13298 # Just because we use GCC doesn't mean we suddenly get shared libraries
13299 # on systems that don't support them.
13300 lt_prog_compiler_can_build_shared_FC=no
13301 enable_shared=no
13304 *nto* | *qnx*)
13305 # QNX uses GNU C++, but need to define -shared option too, otherwise
13306 # it will coredump.
13307 lt_prog_compiler_pic_FC='-fPIC -shared'
13310 sysv4*MP*)
13311 if test -d /usr/nec; then
13312 lt_prog_compiler_pic_FC=-Kconform_pic
13317 lt_prog_compiler_pic_FC='-fPIC'
13319 esac
13321 case $cc_basename in
13322 nvcc*) # Cuda Compiler Driver 2.2
13323 lt_prog_compiler_wl_FC='-Xlinker '
13324 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13326 esac
13327 else
13328 # PORTME Check for flag to pass linker flags through the system compiler.
13329 case $host_os in
13330 aix*)
13331 lt_prog_compiler_wl_FC='-Wl,'
13332 if test "$host_cpu" = ia64; then
13333 # AIX 5 now supports IA64 processor
13334 lt_prog_compiler_static_FC='-Bstatic'
13335 else
13336 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13340 mingw* | cygwin* | pw32* | os2* | cegcc*)
13341 # This hack is so that the source file can tell whether it is being
13342 # built for inclusion in a dll (and should export symbols for example).
13343 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13346 hpux9* | hpux10* | hpux11*)
13347 lt_prog_compiler_wl_FC='-Wl,'
13348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13349 # not for PA HP-UX.
13350 case $host_cpu in
13351 hppa*64*|ia64*)
13352 # +Z the default
13355 lt_prog_compiler_pic_FC='+Z'
13357 esac
13358 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13359 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13362 irix5* | irix6* | nonstopux*)
13363 lt_prog_compiler_wl_FC='-Wl,'
13364 # PIC (with -KPIC) is the default.
13365 lt_prog_compiler_static_FC='-non_shared'
13368 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13369 case $cc_basename in
13370 # old Intel for x86_64 which still supported -KPIC.
13371 ecc*)
13372 lt_prog_compiler_wl_FC='-Wl,'
13373 lt_prog_compiler_pic_FC='-KPIC'
13374 lt_prog_compiler_static_FC='-static'
13376 # icc used to be incompatible with GCC.
13377 # ICC 10 doesn't accept -KPIC any more.
13378 icc* | ifort*)
13379 lt_prog_compiler_wl_FC='-Wl,'
13380 lt_prog_compiler_pic_FC='-fPIC'
13381 lt_prog_compiler_static_FC='-static'
13383 # Lahey Fortran 8.1.
13384 lf95*)
13385 lt_prog_compiler_wl_FC='-Wl,'
13386 lt_prog_compiler_pic_FC='--shared'
13387 lt_prog_compiler_static_FC='--static'
13389 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13390 # Portland Group compilers (*not* the Pentium gcc compiler,
13391 # which looks to be a dead project)
13392 lt_prog_compiler_wl_FC='-Wl,'
13393 lt_prog_compiler_pic_FC='-fpic'
13394 lt_prog_compiler_static_FC='-Bstatic'
13396 ccc*)
13397 lt_prog_compiler_wl_FC='-Wl,'
13398 # All Alpha code is PIC.
13399 lt_prog_compiler_static_FC='-non_shared'
13401 xl* | bgxl* | bgf* | mpixl*)
13402 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13403 lt_prog_compiler_wl_FC='-Wl,'
13404 lt_prog_compiler_pic_FC='-qpic'
13405 lt_prog_compiler_static_FC='-qstaticlink'
13408 case `$CC -V 2>&1 | sed 5q` in
13409 *Sun\ F* | *Sun*Fortran*)
13410 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13411 lt_prog_compiler_pic_FC='-KPIC'
13412 lt_prog_compiler_static_FC='-Bstatic'
13413 lt_prog_compiler_wl_FC=''
13415 *Sun\ C*)
13416 # Sun C 5.9
13417 lt_prog_compiler_pic_FC='-KPIC'
13418 lt_prog_compiler_static_FC='-Bstatic'
13419 lt_prog_compiler_wl_FC='-Wl,'
13421 esac
13423 esac
13426 newsos6)
13427 lt_prog_compiler_pic_FC='-KPIC'
13428 lt_prog_compiler_static_FC='-Bstatic'
13431 *nto* | *qnx*)
13432 # QNX uses GNU C++, but need to define -shared option too, otherwise
13433 # it will coredump.
13434 lt_prog_compiler_pic_FC='-fPIC -shared'
13437 osf3* | osf4* | osf5*)
13438 lt_prog_compiler_wl_FC='-Wl,'
13439 # All OSF/1 code is PIC.
13440 lt_prog_compiler_static_FC='-non_shared'
13443 rdos*)
13444 lt_prog_compiler_static_FC='-non_shared'
13447 solaris*)
13448 lt_prog_compiler_pic_FC='-KPIC'
13449 lt_prog_compiler_static_FC='-Bstatic'
13450 case $cc_basename in
13451 f77* | f90* | f95*)
13452 lt_prog_compiler_wl_FC='-Qoption ld ';;
13454 lt_prog_compiler_wl_FC='-Wl,';;
13455 esac
13458 sunos4*)
13459 lt_prog_compiler_wl_FC='-Qoption ld '
13460 lt_prog_compiler_pic_FC='-PIC'
13461 lt_prog_compiler_static_FC='-Bstatic'
13464 sysv4 | sysv4.2uw2* | sysv4.3*)
13465 lt_prog_compiler_wl_FC='-Wl,'
13466 lt_prog_compiler_pic_FC='-KPIC'
13467 lt_prog_compiler_static_FC='-Bstatic'
13470 sysv4*MP*)
13471 if test -d /usr/nec ;then
13472 lt_prog_compiler_pic_FC='-Kconform_pic'
13473 lt_prog_compiler_static_FC='-Bstatic'
13477 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13478 lt_prog_compiler_wl_FC='-Wl,'
13479 lt_prog_compiler_pic_FC='-KPIC'
13480 lt_prog_compiler_static_FC='-Bstatic'
13483 unicos*)
13484 lt_prog_compiler_wl_FC='-Wl,'
13485 lt_prog_compiler_can_build_shared_FC=no
13488 uts4*)
13489 lt_prog_compiler_pic_FC='-pic'
13490 lt_prog_compiler_static_FC='-Bstatic'
13494 lt_prog_compiler_can_build_shared_FC=no
13496 esac
13499 case $host_os in
13500 # For platforms which do not support PIC, -DPIC is meaningless:
13501 *djgpp*)
13502 lt_prog_compiler_pic_FC=
13505 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13507 esac
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13509 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13514 # Check to make sure the PIC flag actually works.
13516 if test -n "$lt_prog_compiler_pic_FC"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13518 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13519 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 lt_cv_prog_compiler_pic_works_FC=no
13523 ac_outfile=conftest.$ac_objext
13524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13525 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13526 # Insert the option either (1) after the last *FLAGS variable, or
13527 # (2) before a word containing "conftest.", or (3) at the end.
13528 # Note that $ac_compile itself does not contain backslashes and begins
13529 # with a dollar sign (not a hyphen), so the echo should work correctly.
13530 # The option is referenced via a variable to avoid confusing sed.
13531 lt_compile=`echo "$ac_compile" | $SED \
13532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13534 -e 's:$: $lt_compiler_flag:'`
13535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13536 (eval "$lt_compile" 2>conftest.err)
13537 ac_status=$?
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 if (exit $ac_status) && test -s "$ac_outfile"; then
13541 # The compiler can only warn and ignore the option if not recognized
13542 # So say no if there are warnings other than the usual output.
13543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13546 lt_cv_prog_compiler_pic_works_FC=yes
13549 $RM conftest*
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13553 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13555 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13556 case $lt_prog_compiler_pic_FC in
13557 "" | " "*) ;;
13558 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13559 esac
13560 else
13561 lt_prog_compiler_pic_FC=
13562 lt_prog_compiler_can_build_shared_FC=no
13570 # Check to make sure the static flag actually works.
13572 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13574 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13575 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 lt_cv_prog_compiler_static_works_FC=no
13579 save_LDFLAGS="$LDFLAGS"
13580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13583 # The linker can only warn and ignore the option if not recognized
13584 # So say no if there are warnings
13585 if test -s conftest.err; then
13586 # Append any errors to the config.log.
13587 cat conftest.err 1>&5
13588 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13590 if diff conftest.exp conftest.er2 >/dev/null; then
13591 lt_cv_prog_compiler_static_works_FC=yes
13593 else
13594 lt_cv_prog_compiler_static_works_FC=yes
13597 $RM -r conftest*
13598 LDFLAGS="$save_LDFLAGS"
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13602 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13604 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13606 else
13607 lt_prog_compiler_static_FC=
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13615 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 lt_cv_prog_compiler_c_o_FC=no
13619 $RM -r conftest 2>/dev/null
13620 mkdir conftest
13621 cd conftest
13622 mkdir out
13623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13625 lt_compiler_flag="-o out/conftest2.$ac_objext"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
13634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13635 (eval "$lt_compile" 2>out/conftest.err)
13636 ac_status=$?
13637 cat out/conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13640 then
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings
13643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13646 lt_cv_prog_compiler_c_o_FC=yes
13649 chmod u+w . 2>&5
13650 $RM conftest*
13651 # SGI C++ compiler will create directory out/ii_files/ for
13652 # template instantiation
13653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13654 $RM out/* && rmdir out
13655 cd ..
13656 $RM -r conftest
13657 $RM conftest*
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13661 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13666 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13667 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 lt_cv_prog_compiler_c_o_FC=no
13671 $RM -r conftest 2>/dev/null
13672 mkdir conftest
13673 cd conftest
13674 mkdir out
13675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13677 lt_compiler_flag="-o out/conftest2.$ac_objext"
13678 # Insert the option either (1) after the last *FLAGS variable, or
13679 # (2) before a word containing "conftest.", or (3) at the end.
13680 # Note that $ac_compile itself does not contain backslashes and begins
13681 # with a dollar sign (not a hyphen), so the echo should work correctly.
13682 lt_compile=`echo "$ac_compile" | $SED \
13683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13685 -e 's:$: $lt_compiler_flag:'`
13686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13687 (eval "$lt_compile" 2>out/conftest.err)
13688 ac_status=$?
13689 cat out/conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13692 then
13693 # The compiler can only warn and ignore the option if not recognized
13694 # So say no if there are warnings
13695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13698 lt_cv_prog_compiler_c_o_FC=yes
13701 chmod u+w . 2>&5
13702 $RM conftest*
13703 # SGI C++ compiler will create directory out/ii_files/ for
13704 # template instantiation
13705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13706 $RM out/* && rmdir out
13707 cd ..
13708 $RM -r conftest
13709 $RM conftest*
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13713 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13718 hard_links="nottested"
13719 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13720 # do not overwrite the value of need_locks provided by the user
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13722 $as_echo_n "checking if we can lock with hard links... " >&6; }
13723 hard_links=yes
13724 $RM conftest*
13725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13726 touch conftest.a
13727 ln conftest.a conftest.b 2>&5 || hard_links=no
13728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13730 $as_echo "$hard_links" >&6; }
13731 if test "$hard_links" = no; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13733 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13734 need_locks=warn
13736 else
13737 need_locks=no
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13743 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13745 runpath_var=
13746 allow_undefined_flag_FC=
13747 always_export_symbols_FC=no
13748 archive_cmds_FC=
13749 archive_expsym_cmds_FC=
13750 compiler_needs_object_FC=no
13751 enable_shared_with_static_runtimes_FC=no
13752 export_dynamic_flag_spec_FC=
13753 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13754 hardcode_automatic_FC=no
13755 hardcode_direct_FC=no
13756 hardcode_direct_absolute_FC=no
13757 hardcode_libdir_flag_spec_FC=
13758 hardcode_libdir_flag_spec_ld_FC=
13759 hardcode_libdir_separator_FC=
13760 hardcode_minus_L_FC=no
13761 hardcode_shlibpath_var_FC=unsupported
13762 inherit_rpath_FC=no
13763 link_all_deplibs_FC=unknown
13764 module_cmds_FC=
13765 module_expsym_cmds_FC=
13766 old_archive_from_new_cmds_FC=
13767 old_archive_from_expsyms_cmds_FC=
13768 thread_safe_flag_spec_FC=
13769 whole_archive_flag_spec_FC=
13770 # include_expsyms should be a list of space-separated symbols to be *always*
13771 # included in the symbol list
13772 include_expsyms_FC=
13773 # exclude_expsyms can be an extended regexp of symbols to exclude
13774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13776 # as well as any symbol that contains `d'.
13777 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13779 # platforms (ab)use it in PIC code, but their linkers get confused if
13780 # the symbol is explicitly referenced. Since portable code cannot
13781 # rely on this symbol name, it's probably fine to never include it in
13782 # preloaded symbol tables.
13783 # Exclude shared library initialization/finalization symbols.
13784 extract_expsyms_cmds=
13786 case $host_os in
13787 cygwin* | mingw* | pw32* | cegcc*)
13788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13789 # When not using gcc, we currently assume that we are using
13790 # Microsoft Visual C++.
13791 if test "$GCC" != yes; then
13792 with_gnu_ld=no
13795 interix*)
13796 # we just hope/assume this is gcc and not c89 (= MSVC++)
13797 with_gnu_ld=yes
13799 openbsd*)
13800 with_gnu_ld=no
13802 esac
13804 ld_shlibs_FC=yes
13806 # On some targets, GNU ld is compatible enough with the native linker
13807 # that we're better off using the native interface for both.
13808 lt_use_gnu_ld_interface=no
13809 if test "$with_gnu_ld" = yes; then
13810 case $host_os in
13811 aix*)
13812 # The AIX port of GNU ld has always aspired to compatibility
13813 # with the native linker. However, as the warning in the GNU ld
13814 # block says, versions before 2.19.5* couldn't really create working
13815 # shared libraries, regardless of the interface used.
13816 case `$LD -v 2>&1` in
13817 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13818 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13819 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13821 lt_use_gnu_ld_interface=yes
13823 esac
13826 lt_use_gnu_ld_interface=yes
13828 esac
13831 if test "$lt_use_gnu_ld_interface" = yes; then
13832 # If archive_cmds runs LD, not CC, wlarc should be empty
13833 wlarc='${wl}'
13835 # Set some defaults for GNU ld with shared library support. These
13836 # are reset later if shared libraries are not supported. Putting them
13837 # here allows them to be overridden if necessary.
13838 runpath_var=LD_RUN_PATH
13839 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13840 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13841 # ancient GNU ld didn't support --whole-archive et. al.
13842 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13843 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13844 else
13845 whole_archive_flag_spec_FC=
13847 supports_anon_versioning=no
13848 case `$LD -v 2>&1` in
13849 *GNU\ gold*) supports_anon_versioning=yes ;;
13850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13853 *\ 2.11.*) ;; # other 2.11 versions
13854 *) supports_anon_versioning=yes ;;
13855 esac
13857 # See if GNU ld supports shared libraries.
13858 case $host_os in
13859 aix[3-9]*)
13860 # On AIX/PPC, the GNU linker is very broken
13861 if test "$host_cpu" != ia64; then
13862 ld_shlibs_FC=no
13863 cat <<_LT_EOF 1>&2
13865 *** Warning: the GNU linker, at least up to release 2.19, is reported
13866 *** to be unable to reliably create shared libraries on AIX.
13867 *** Therefore, libtool is disabling shared libraries support. If you
13868 *** really care for shared libraries, you may want to install binutils
13869 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13870 *** You will then need to restart the configuration process.
13872 _LT_EOF
13876 amigaos*)
13877 case $host_cpu in
13878 powerpc)
13879 # see comment about AmigaOS4 .so support
13880 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13881 archive_expsym_cmds_FC=''
13883 m68k)
13884 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)'
13885 hardcode_libdir_flag_spec_FC='-L$libdir'
13886 hardcode_minus_L_FC=yes
13888 esac
13891 beos*)
13892 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13893 allow_undefined_flag_FC=unsupported
13894 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13895 # support --undefined. This deserves some investigation. FIXME
13896 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13897 else
13898 ld_shlibs_FC=no
13902 cygwin* | mingw* | pw32* | cegcc*)
13903 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13904 # as there is no search path for DLLs.
13905 hardcode_libdir_flag_spec_FC='-L$libdir'
13906 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13907 allow_undefined_flag_FC=unsupported
13908 always_export_symbols_FC=no
13909 enable_shared_with_static_runtimes_FC=yes
13910 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13912 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13913 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13914 # If the export-symbols file already is a .def file (1st line
13915 # is EXPORTS), use it as is; otherwise, prepend...
13916 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13917 cp $export_symbols $output_objdir/$soname.def;
13918 else
13919 echo EXPORTS > $output_objdir/$soname.def;
13920 cat $export_symbols >> $output_objdir/$soname.def;
13922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13923 else
13924 ld_shlibs_FC=no
13928 haiku*)
13929 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13930 link_all_deplibs_FC=yes
13933 interix[3-9]*)
13934 hardcode_direct_FC=no
13935 hardcode_shlibpath_var_FC=no
13936 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13937 export_dynamic_flag_spec_FC='${wl}-E'
13938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13939 # Instead, shared libraries are loaded at an image base (0x10000000 by
13940 # default) and relocated if they conflict, which is a slow very memory
13941 # consuming and fragmenting process. To avoid this, we pick a random,
13942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13944 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'
13945 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'
13948 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13949 tmp_diet=no
13950 if test "$host_os" = linux-dietlibc; then
13951 case $cc_basename in
13952 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13953 esac
13955 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13956 && test "$tmp_diet" = no
13957 then
13958 tmp_addflag=
13959 tmp_sharedflag='-shared'
13960 case $cc_basename,$host_cpu in
13961 pgcc*) # Portland Group C compiler
13962 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'
13963 tmp_addflag=' $pic_flag'
13965 pgf77* | pgf90* | pgf95* | pgfortran*)
13966 # Portland Group f77 and f90 compilers
13967 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'
13968 tmp_addflag=' $pic_flag -Mnomain' ;;
13969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13970 tmp_addflag=' -i_dynamic' ;;
13971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13972 tmp_addflag=' -i_dynamic -nofor_main' ;;
13973 ifc* | ifort*) # Intel Fortran compiler
13974 tmp_addflag=' -nofor_main' ;;
13975 lf95*) # Lahey Fortran 8.1
13976 whole_archive_flag_spec_FC=
13977 tmp_sharedflag='--shared' ;;
13978 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13979 tmp_sharedflag='-qmkshrobj'
13980 tmp_addflag= ;;
13981 nvcc*) # Cuda Compiler Driver 2.2
13982 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'
13983 compiler_needs_object_FC=yes
13985 esac
13986 case `$CC -V 2>&1 | sed 5q` in
13987 *Sun\ C*) # Sun C 5.9
13988 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'
13989 compiler_needs_object_FC=yes
13990 tmp_sharedflag='-G' ;;
13991 *Sun\ F*) # Sun Fortran 8.3
13992 tmp_sharedflag='-G' ;;
13993 esac
13994 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 if test "x$supports_anon_versioning" = xyes; then
13997 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13999 echo "local: *; };" >> $output_objdir/$libname.ver~
14000 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14003 case $cc_basename in
14004 xlf* | bgf* | bgxlf* | mpixlf*)
14005 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14006 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14007 hardcode_libdir_flag_spec_FC=
14008 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14009 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14010 if test "x$supports_anon_versioning" = xyes; then
14011 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14013 echo "local: *; };" >> $output_objdir/$libname.ver~
14014 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14017 esac
14018 else
14019 ld_shlibs_FC=no
14023 netbsd*)
14024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14025 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14026 wlarc=
14027 else
14028 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14033 solaris*)
14034 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14035 ld_shlibs_FC=no
14036 cat <<_LT_EOF 1>&2
14038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14039 *** create shared libraries on Solaris systems. Therefore, libtool
14040 *** is disabling shared libraries support. We urge you to upgrade GNU
14041 *** binutils to release 2.9.1 or newer. Another option is to modify
14042 *** your PATH or compiler configuration so that the native linker is
14043 *** used, and then restart.
14045 _LT_EOF
14046 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049 else
14050 ld_shlibs_FC=no
14054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14055 case `$LD -v 2>&1` in
14056 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14057 ld_shlibs_FC=no
14058 cat <<_LT_EOF 1>&2
14060 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14061 *** reliably create shared libraries on SCO systems. Therefore, libtool
14062 *** is disabling shared libraries support. We urge you to upgrade GNU
14063 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14064 *** your PATH or compiler configuration so that the native linker is
14065 *** used, and then restart.
14067 _LT_EOF
14070 # For security reasons, it is highly recommended that you always
14071 # use absolute paths for naming shared libraries, and exclude the
14072 # DT_RUNPATH tag from executables and libraries. But doing so
14073 # requires that you compile everything twice, which is a pain.
14074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14075 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14076 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14077 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14078 else
14079 ld_shlibs_FC=no
14082 esac
14085 sunos4*)
14086 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14087 wlarc=
14088 hardcode_direct_FC=yes
14089 hardcode_shlibpath_var_FC=no
14093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14094 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14095 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14096 else
14097 ld_shlibs_FC=no
14100 esac
14102 if test "$ld_shlibs_FC" = no; then
14103 runpath_var=
14104 hardcode_libdir_flag_spec_FC=
14105 export_dynamic_flag_spec_FC=
14106 whole_archive_flag_spec_FC=
14108 else
14109 # PORTME fill in a description of your system's linker (not GNU ld)
14110 case $host_os in
14111 aix3*)
14112 allow_undefined_flag_FC=unsupported
14113 always_export_symbols_FC=yes
14114 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'
14115 # Note: this linker hardcodes the directories in LIBPATH if there
14116 # are no directories specified by -L.
14117 hardcode_minus_L_FC=yes
14118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14119 # Neither direct hardcoding nor static linking is supported with a
14120 # broken collect2.
14121 hardcode_direct_FC=unsupported
14125 aix[4-9]*)
14126 if test "$host_cpu" = ia64; then
14127 # On IA64, the linker does run time linking by default, so we don't
14128 # have to do anything special.
14129 aix_use_runtimelinking=no
14130 exp_sym_flag='-Bexport'
14131 no_entry_flag=""
14132 else
14133 # If we're using GNU nm, then we don't want the "-C" option.
14134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14135 # Also, AIX nm treats weak defined symbols like other global
14136 # defined symbols, whereas GNU nm marks them as "W".
14137 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14138 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'
14139 else
14140 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14142 aix_use_runtimelinking=no
14144 # Test if we are trying to use run time linking or normal
14145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14146 # need to do runtime linking.
14147 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14148 for ld_flag in $LDFLAGS; do
14149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14150 aix_use_runtimelinking=yes
14151 break
14153 done
14155 esac
14157 exp_sym_flag='-bexport'
14158 no_entry_flag='-bnoentry'
14161 # When large executables or shared objects are built, AIX ld can
14162 # have problems creating the table of contents. If linking a library
14163 # or program results in "error TOC overflow" add -mminimal-toc to
14164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14167 archive_cmds_FC=''
14168 hardcode_direct_FC=yes
14169 hardcode_direct_absolute_FC=yes
14170 hardcode_libdir_separator_FC=':'
14171 link_all_deplibs_FC=yes
14172 file_list_spec_FC='${wl}-f,'
14174 if test "$GCC" = yes; then
14175 case $host_os in aix4.[012]|aix4.[012].*)
14176 # We only want to do this on AIX 4.2 and lower, the check
14177 # below for broken collect2 doesn't work under 4.3+
14178 collect2name=`${CC} -print-prog-name=collect2`
14179 if test -f "$collect2name" &&
14180 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14181 then
14182 # We have reworked collect2
14184 else
14185 # We have old collect2
14186 hardcode_direct_FC=unsupported
14187 # It fails to find uninstalled libraries when the uninstalled
14188 # path is not listed in the libpath. Setting hardcode_minus_L
14189 # to unsupported forces relinking
14190 hardcode_minus_L_FC=yes
14191 hardcode_libdir_flag_spec_FC='-L$libdir'
14192 hardcode_libdir_separator_FC=
14195 esac
14196 shared_flag='-shared'
14197 if test "$aix_use_runtimelinking" = yes; then
14198 shared_flag="$shared_flag "'${wl}-G'
14200 else
14201 # not using gcc
14202 if test "$host_cpu" = ia64; then
14203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14204 # chokes on -Wl,-G. The following line is correct:
14205 shared_flag='-G'
14206 else
14207 if test "$aix_use_runtimelinking" = yes; then
14208 shared_flag='${wl}-G'
14209 else
14210 shared_flag='${wl}-bM:SRE'
14215 export_dynamic_flag_spec_FC='${wl}-bexpall'
14216 # It seems that -bexpall does not export symbols beginning with
14217 # underscore (_), so it is better to generate a list of symbols to export.
14218 always_export_symbols_FC=yes
14219 if test "$aix_use_runtimelinking" = yes; then
14220 # Warning - without using the other runtime loading flags (-brtl),
14221 # -berok will link without error, but may produce a broken library.
14222 allow_undefined_flag_FC='-berok'
14223 # Determine the default libpath from the value encoded in an
14224 # empty executable.
14225 if test x$gcc_no_link = xyes; then
14226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14228 cat > conftest.$ac_ext <<_ACEOF
14229 program main
14232 _ACEOF
14233 if ac_fn_fc_try_link "$LINENO"; then :
14235 lt_aix_libpath_sed='
14236 /Import File Strings/,/^$/ {
14237 /^0/ {
14238 s/^0 *\(.*\)$/\1/
14242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14243 # Check for a 64-bit object if we didn't find anything.
14244 if test -z "$aix_libpath"; then
14245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14252 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14253 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"
14254 else
14255 if test "$host_cpu" = ia64; then
14256 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14257 allow_undefined_flag_FC="-z nodefs"
14258 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"
14259 else
14260 # Determine the default libpath from the value encoded in an
14261 # empty executable.
14262 if test x$gcc_no_link = xyes; then
14263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14265 cat > conftest.$ac_ext <<_ACEOF
14266 program main
14269 _ACEOF
14270 if ac_fn_fc_try_link "$LINENO"; then :
14272 lt_aix_libpath_sed='
14273 /Import File Strings/,/^$/ {
14274 /^0/ {
14275 s/^0 *\(.*\)$/\1/
14279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 # Check for a 64-bit object if we didn't find anything.
14281 if test -z "$aix_libpath"; then
14282 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14289 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14290 # Warning - without using the other run time loading flags,
14291 # -berok will link without error, but may produce a broken library.
14292 no_undefined_flag_FC=' ${wl}-bernotok'
14293 allow_undefined_flag_FC=' ${wl}-berok'
14294 if test "$with_gnu_ld" = yes; then
14295 # We only use this code for GNU lds that support --whole-archive.
14296 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14297 else
14298 # Exported symbols can be pulled into shared objects from archives
14299 whole_archive_flag_spec_FC='$convenience'
14301 archive_cmds_need_lc_FC=yes
14302 # This is similar to how AIX traditionally builds its shared libraries.
14303 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'
14308 amigaos*)
14309 case $host_cpu in
14310 powerpc)
14311 # see comment about AmigaOS4 .so support
14312 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14313 archive_expsym_cmds_FC=''
14315 m68k)
14316 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)'
14317 hardcode_libdir_flag_spec_FC='-L$libdir'
14318 hardcode_minus_L_FC=yes
14320 esac
14323 bsdi[45]*)
14324 export_dynamic_flag_spec_FC=-rdynamic
14327 cygwin* | mingw* | pw32* | cegcc*)
14328 # When not using gcc, we currently assume that we are using
14329 # Microsoft Visual C++.
14330 # hardcode_libdir_flag_spec is actually meaningless, as there is
14331 # no search path for DLLs.
14332 hardcode_libdir_flag_spec_FC=' '
14333 allow_undefined_flag_FC=unsupported
14334 # Tell ltmain to make .lib files, not .a files.
14335 libext=lib
14336 # Tell ltmain to make .dll files, not .so files.
14337 shrext_cmds=".dll"
14338 # FIXME: Setting linknames here is a bad hack.
14339 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14340 # The linker will automatically build a .lib file if we build a DLL.
14341 old_archive_from_new_cmds_FC='true'
14342 # FIXME: Should let the user specify the lib program.
14343 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14344 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14345 enable_shared_with_static_runtimes_FC=yes
14348 darwin* | rhapsody*)
14351 archive_cmds_need_lc_FC=no
14352 hardcode_direct_FC=no
14353 hardcode_automatic_FC=yes
14354 hardcode_shlibpath_var_FC=unsupported
14355 if test "$lt_cv_ld_force_load" = "yes"; then
14356 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\"`'
14357 else
14358 whole_archive_flag_spec_FC=''
14360 link_all_deplibs_FC=yes
14361 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14362 case $cc_basename in
14363 ifort*) _lt_dar_can_shared=yes ;;
14364 *) _lt_dar_can_shared=$GCC ;;
14365 esac
14366 if test "$_lt_dar_can_shared" = "yes"; then
14367 output_verbose_link_cmd=func_echo_all
14368 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}"
14369 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14370 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}"
14371 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}"
14373 else
14374 ld_shlibs_FC=no
14379 dgux*)
14380 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_libdir_flag_spec_FC='-L$libdir'
14382 hardcode_shlibpath_var_FC=no
14385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14386 # support. Future versions do this automatically, but an explicit c++rt0.o
14387 # does not break anything, and helps significantly (at the cost of a little
14388 # extra space).
14389 freebsd2.2*)
14390 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14391 hardcode_libdir_flag_spec_FC='-R$libdir'
14392 hardcode_direct_FC=yes
14393 hardcode_shlibpath_var_FC=no
14396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14397 freebsd2.*)
14398 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14399 hardcode_direct_FC=yes
14400 hardcode_minus_L_FC=yes
14401 hardcode_shlibpath_var_FC=no
14404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14405 freebsd* | dragonfly*)
14406 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14407 hardcode_libdir_flag_spec_FC='-R$libdir'
14408 hardcode_direct_FC=yes
14409 hardcode_shlibpath_var_FC=no
14412 hpux9*)
14413 if test "$GCC" = yes; then
14414 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'
14415 else
14416 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'
14418 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14419 hardcode_libdir_separator_FC=:
14420 hardcode_direct_FC=yes
14422 # hardcode_minus_L: Not really in the search PATH,
14423 # but as the default location of the library.
14424 hardcode_minus_L_FC=yes
14425 export_dynamic_flag_spec_FC='${wl}-E'
14428 hpux10*)
14429 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14430 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14431 else
14432 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14434 if test "$with_gnu_ld" = no; then
14435 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14436 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14437 hardcode_libdir_separator_FC=:
14438 hardcode_direct_FC=yes
14439 hardcode_direct_absolute_FC=yes
14440 export_dynamic_flag_spec_FC='${wl}-E'
14441 # hardcode_minus_L: Not really in the search PATH,
14442 # but as the default location of the library.
14443 hardcode_minus_L_FC=yes
14447 hpux11*)
14448 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14449 case $host_cpu in
14450 hppa*64*)
14451 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14453 ia64*)
14454 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14457 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14459 esac
14460 else
14461 case $host_cpu in
14462 hppa*64*)
14463 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14465 ia64*)
14466 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14469 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14471 esac
14473 if test "$with_gnu_ld" = no; then
14474 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14475 hardcode_libdir_separator_FC=:
14477 case $host_cpu in
14478 hppa*64*|ia64*)
14479 hardcode_direct_FC=no
14480 hardcode_shlibpath_var_FC=no
14483 hardcode_direct_FC=yes
14484 hardcode_direct_absolute_FC=yes
14485 export_dynamic_flag_spec_FC='${wl}-E'
14487 # hardcode_minus_L: Not really in the search PATH,
14488 # but as the default location of the library.
14489 hardcode_minus_L_FC=yes
14491 esac
14495 irix5* | irix6* | nonstopux*)
14496 if test "$GCC" = yes; then
14497 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'
14498 # Try to use the -exported_symbol ld option, if it does not
14499 # work, assume that -exports_file does not work either and
14500 # implicitly export all symbols.
14501 save_LDFLAGS="$LDFLAGS"
14502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14503 if test x$gcc_no_link = xyes; then
14504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14506 cat > conftest.$ac_ext <<_ACEOF
14507 int foo(void) {}
14508 _ACEOF
14509 if ac_fn_fc_try_link "$LINENO"; then :
14510 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'
14513 rm -f core conftest.err conftest.$ac_objext \
14514 conftest$ac_exeext conftest.$ac_ext
14515 LDFLAGS="$save_LDFLAGS"
14516 else
14517 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'
14518 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'
14520 archive_cmds_need_lc_FC='no'
14521 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14522 hardcode_libdir_separator_FC=:
14523 inherit_rpath_FC=yes
14524 link_all_deplibs_FC=yes
14527 netbsd*)
14528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14529 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14530 else
14531 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14533 hardcode_libdir_flag_spec_FC='-R$libdir'
14534 hardcode_direct_FC=yes
14535 hardcode_shlibpath_var_FC=no
14538 newsos6)
14539 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_direct_FC=yes
14541 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14542 hardcode_libdir_separator_FC=:
14543 hardcode_shlibpath_var_FC=no
14546 *nto* | *qnx*)
14549 openbsd*)
14550 if test -f /usr/libexec/ld.so; then
14551 hardcode_direct_FC=yes
14552 hardcode_shlibpath_var_FC=no
14553 hardcode_direct_absolute_FC=yes
14554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14555 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14556 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14557 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14558 export_dynamic_flag_spec_FC='${wl}-E'
14559 else
14560 case $host_os in
14561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14562 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_libdir_flag_spec_FC='-R$libdir'
14566 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14567 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14569 esac
14571 else
14572 ld_shlibs_FC=no
14576 os2*)
14577 hardcode_libdir_flag_spec_FC='-L$libdir'
14578 hardcode_minus_L_FC=yes
14579 allow_undefined_flag_FC=unsupported
14580 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'
14581 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14584 osf3*)
14585 if test "$GCC" = yes; then
14586 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14587 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'
14588 else
14589 allow_undefined_flag_FC=' -expect_unresolved \*'
14590 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'
14592 archive_cmds_need_lc_FC='no'
14593 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14594 hardcode_libdir_separator_FC=:
14597 osf4* | osf5*) # as osf3* with the addition of -msym flag
14598 if test "$GCC" = yes; then
14599 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14600 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'
14601 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14602 else
14603 allow_undefined_flag_FC=' -expect_unresolved \*'
14604 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'
14605 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~
14606 $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'
14608 # Both c and cxx compiler support -rpath directly
14609 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14611 archive_cmds_need_lc_FC='no'
14612 hardcode_libdir_separator_FC=:
14615 solaris*)
14616 no_undefined_flag_FC=' -z defs'
14617 if test "$GCC" = yes; then
14618 wlarc='${wl}'
14619 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14620 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14621 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14622 else
14623 case `$CC -V 2>&1` in
14624 *"Compilers 5.0"*)
14625 wlarc=''
14626 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14631 wlarc='${wl}'
14632 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14633 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14634 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14636 esac
14638 hardcode_libdir_flag_spec_FC='-R$libdir'
14639 hardcode_shlibpath_var_FC=no
14640 case $host_os in
14641 solaris2.[0-5] | solaris2.[0-5].*) ;;
14643 # The compiler driver will combine and reorder linker options,
14644 # but understands `-z linker_flag'. GCC discards it without `$wl',
14645 # but is careful enough not to reorder.
14646 # Supported since Solaris 2.6 (maybe 2.5.1?)
14647 if test "$GCC" = yes; then
14648 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14649 else
14650 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14653 esac
14654 link_all_deplibs_FC=yes
14657 sunos4*)
14658 if test "x$host_vendor" = xsequent; then
14659 # Use $CC to link under sequent, because it throws in some extra .o
14660 # files that make .init and .fini sections work.
14661 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14662 else
14663 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14665 hardcode_libdir_flag_spec_FC='-L$libdir'
14666 hardcode_direct_FC=yes
14667 hardcode_minus_L_FC=yes
14668 hardcode_shlibpath_var_FC=no
14671 sysv4)
14672 case $host_vendor in
14673 sni)
14674 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_direct_FC=yes # is this really true???
14677 siemens)
14678 ## LD is ld it makes a PLAMLIB
14679 ## CC just makes a GrossModule.
14680 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14681 reload_cmds_FC='$CC -r -o $output$reload_objs'
14682 hardcode_direct_FC=no
14684 motorola)
14685 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14688 esac
14689 runpath_var='LD_RUN_PATH'
14690 hardcode_shlibpath_var_FC=no
14693 sysv4.3*)
14694 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695 hardcode_shlibpath_var_FC=no
14696 export_dynamic_flag_spec_FC='-Bexport'
14699 sysv4*MP*)
14700 if test -d /usr/nec; then
14701 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_shlibpath_var_FC=no
14703 runpath_var=LD_RUN_PATH
14704 hardcode_runpath_var=yes
14705 ld_shlibs_FC=yes
14709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14710 no_undefined_flag_FC='${wl}-z,text'
14711 archive_cmds_need_lc_FC=no
14712 hardcode_shlibpath_var_FC=no
14713 runpath_var='LD_RUN_PATH'
14715 if test "$GCC" = yes; then
14716 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 else
14719 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 sysv5* | sco3.2v5* | sco5v6*)
14725 # Note: We can NOT use -z defs as we might desire, because we do not
14726 # link with -lc, and that would cause any symbols used from libc to
14727 # always be unresolved, which means just about no library would
14728 # ever link correctly. If we're not using GNU ld we use -z text
14729 # though, which does catch some bad symbols but isn't as heavy-handed
14730 # as -z defs.
14731 no_undefined_flag_FC='${wl}-z,text'
14732 allow_undefined_flag_FC='${wl}-z,nodefs'
14733 archive_cmds_need_lc_FC=no
14734 hardcode_shlibpath_var_FC=no
14735 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14736 hardcode_libdir_separator_FC=':'
14737 link_all_deplibs_FC=yes
14738 export_dynamic_flag_spec_FC='${wl}-Bexport'
14739 runpath_var='LD_RUN_PATH'
14741 if test "$GCC" = yes; then
14742 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14743 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744 else
14745 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14746 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 uts4*)
14751 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14752 hardcode_libdir_flag_spec_FC='-L$libdir'
14753 hardcode_shlibpath_var_FC=no
14757 ld_shlibs_FC=no
14759 esac
14761 if test x$host_vendor = xsni; then
14762 case $host in
14763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14764 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14766 esac
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14771 $as_echo "$ld_shlibs_FC" >&6; }
14772 test "$ld_shlibs_FC" = no && can_build_shared=no
14774 with_gnu_ld_FC=$with_gnu_ld
14782 # Do we need to explicitly link libc?
14784 case "x$archive_cmds_need_lc_FC" in
14785 x|xyes)
14786 # Assume -lc should be added
14787 archive_cmds_need_lc_FC=yes
14789 if test "$enable_shared" = yes && test "$GCC" = yes; then
14790 case $archive_cmds_FC in
14791 *'~'*)
14792 # FIXME: we may have to deal with multi-command sequences.
14794 '$CC '*)
14795 # Test whether the compiler implicitly links with -lc since on some
14796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14797 # to ld, don't add -lc before -lgcc.
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14799 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14800 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 $RM conftest*
14804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14807 (eval $ac_compile) 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; } 2>conftest.err; then
14811 soname=conftest
14812 lib=conftest
14813 libobjs=conftest.$ac_objext
14814 deplibs=
14815 wl=$lt_prog_compiler_wl_FC
14816 pic_flag=$lt_prog_compiler_pic_FC
14817 compiler_flags=-v
14818 linker_flags=-v
14819 verstring=
14820 output_objdir=.
14821 libname=conftest
14822 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14823 allow_undefined_flag_FC=
14824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14825 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14826 ac_status=$?
14827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14828 test $ac_status = 0; }
14829 then
14830 lt_cv_archive_cmds_need_lc_FC=no
14831 else
14832 lt_cv_archive_cmds_need_lc_FC=yes
14834 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14835 else
14836 cat conftest.err 1>&5
14838 $RM conftest*
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14842 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14843 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14845 esac
14848 esac
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14916 library_names_spec=
14917 libname_spec='lib$name'
14918 soname_spec=
14919 shrext_cmds=".so"
14920 postinstall_cmds=
14921 postuninstall_cmds=
14922 finish_cmds=
14923 finish_eval=
14924 shlibpath_var=
14925 shlibpath_overrides_runpath=unknown
14926 version_type=none
14927 dynamic_linker="$host_os ld.so"
14928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14929 need_lib_prefix=unknown
14930 hardcode_into_libs=no
14932 # when you set need_version to no, make sure it does not cause -set_version
14933 # flags to be left without arguments
14934 need_version=unknown
14936 case $host_os in
14937 aix3*)
14938 version_type=linux
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14940 shlibpath_var=LIBPATH
14942 # AIX 3 has no versioning support, so we append a major version to the name.
14943 soname_spec='${libname}${release}${shared_ext}$major'
14946 aix[4-9]*)
14947 version_type=linux
14948 need_lib_prefix=no
14949 need_version=no
14950 hardcode_into_libs=yes
14951 if test "$host_cpu" = ia64; then
14952 # AIX 5 supports IA64
14953 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 else
14956 # With GCC up to 2.95.x, collect2 would create an import file
14957 # for dependence libraries. The import file would start with
14958 # the line `#! .'. This would cause the generated library to
14959 # depend on `.', always an invalid library. This was fixed in
14960 # development snapshots of GCC prior to 3.0.
14961 case $host_os in
14962 aix4 | aix4.[01] | aix4.[01].*)
14963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14964 echo ' yes '
14965 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14967 else
14968 can_build_shared=no
14971 esac
14972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14973 # soname into executable. Probably we can add versioning support to
14974 # collect2, so additional links can be useful in future.
14975 if test "$aix_use_runtimelinking" = yes; then
14976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14977 # instead of lib<name>.a to let people know that these are not
14978 # typical AIX shared libraries.
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 else
14981 # We preserve .a as extension for shared libraries through AIX4.2
14982 # and later when we are not doing run time linking.
14983 library_names_spec='${libname}${release}.a $libname.a'
14984 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LIBPATH
14990 amigaos*)
14991 case $host_cpu in
14992 powerpc)
14993 # Since July 2007 AmigaOS4 officially supports .so libraries.
14994 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 m68k)
14998 library_names_spec='$libname.ixlibrary $libname.a'
14999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15000 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'
15002 esac
15005 beos*)
15006 library_names_spec='${libname}${shared_ext}'
15007 dynamic_linker="$host_os ld.so"
15008 shlibpath_var=LIBRARY_PATH
15011 bsdi[45]*)
15012 version_type=linux
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15020 # the default ld.so.conf also contains /usr/contrib/lib and
15021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15022 # libtool to hard-code these into programs
15025 cygwin* | mingw* | pw32* | cegcc*)
15026 version_type=windows
15027 shrext_cmds=".dll"
15028 need_version=no
15029 need_lib_prefix=no
15031 case $GCC,$host_os in
15032 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15033 library_names_spec='$libname.dll.a'
15034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15035 postinstall_cmds='base_file=`basename \${file}`~
15036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15037 dldir=$destdir/`dirname \$dlpath`~
15038 test -d \$dldir || mkdir -p \$dldir~
15039 $install_prog $dir/$dlname \$dldir/$dlname~
15040 chmod a+x \$dldir/$dlname~
15041 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15042 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15045 dlpath=$dir/\$dldll~
15046 $RM \$dlpath'
15047 shlibpath_overrides_runpath=yes
15049 case $host_os in
15050 cygwin*)
15051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15055 mingw* | cegcc*)
15056 # MinGW DLLs use traditional 'lib' prefix
15057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15059 pw32*)
15060 # pw32 DLLs use 'pw' prefix rather than 'lib'
15061 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15063 esac
15067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15069 esac
15070 dynamic_linker='Win32 ld.exe'
15071 # FIXME: first we should search . and the directory the executable is in
15072 shlibpath_var=PATH
15075 darwin* | rhapsody*)
15076 dynamic_linker="$host_os dyld"
15077 version_type=darwin
15078 need_lib_prefix=no
15079 need_version=no
15080 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15081 soname_spec='${libname}${release}${major}$shared_ext'
15082 shlibpath_overrides_runpath=yes
15083 shlibpath_var=DYLD_LIBRARY_PATH
15084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15089 dgux*)
15090 version_type=linux
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15098 freebsd* | dragonfly*)
15099 # DragonFly does not have aout. When/if they implement a new
15100 # versioning mechanism, adjust this.
15101 if test -x /usr/bin/objformat; then
15102 objformat=`/usr/bin/objformat`
15103 else
15104 case $host_os in
15105 freebsd[23].*) objformat=aout ;;
15106 *) objformat=elf ;;
15107 esac
15109 version_type=freebsd-$objformat
15110 case $version_type in
15111 freebsd-elf*)
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15113 need_version=no
15114 need_lib_prefix=no
15116 freebsd-*)
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15118 need_version=yes
15120 esac
15121 shlibpath_var=LD_LIBRARY_PATH
15122 case $host_os in
15123 freebsd2.*)
15124 shlibpath_overrides_runpath=yes
15126 freebsd3.[01]* | freebsdelf3.[01]*)
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15132 shlibpath_overrides_runpath=no
15133 hardcode_into_libs=yes
15135 *) # from 4.6 on, and DragonFly
15136 shlibpath_overrides_runpath=yes
15137 hardcode_into_libs=yes
15139 esac
15142 gnu*)
15143 version_type=linux
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 hardcode_into_libs=yes
15152 haiku*)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 dynamic_linker="$host_os runtime_loader"
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15162 hardcode_into_libs=yes
15165 hpux9* | hpux10* | hpux11*)
15166 # Give a soname corresponding to the major version so that dld.sl refuses to
15167 # link against other versions.
15168 version_type=sunos
15169 need_lib_prefix=no
15170 need_version=no
15171 case $host_cpu in
15172 ia64*)
15173 shrext_cmds='.so'
15174 hardcode_into_libs=yes
15175 dynamic_linker="$host_os dld.so"
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 if test "X$HPUX_IA64_MODE" = X32; then
15181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15182 else
15183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15187 hppa*64*)
15188 shrext_cmds='.sl'
15189 hardcode_into_libs=yes
15190 dynamic_linker="$host_os dld.sl"
15191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199 shrext_cmds='.sl'
15200 dynamic_linker="$host_os dld.sl"
15201 shlibpath_var=SHLIB_PATH
15202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15206 esac
15207 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15208 postinstall_cmds='chmod 555 $lib'
15209 # or fails outright, so override atomically:
15210 install_override_mode=555
15213 interix[3-9]*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 hardcode_into_libs=yes
15225 irix5* | irix6* | nonstopux*)
15226 case $host_os in
15227 nonstopux*) version_type=nonstopux ;;
15229 if test "$lt_cv_prog_gnu_ld" = yes; then
15230 version_type=linux
15231 else
15232 version_type=irix
15233 fi ;;
15234 esac
15235 need_lib_prefix=no
15236 need_version=no
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15239 case $host_os in
15240 irix5* | nonstopux*)
15241 libsuff= shlibsuff=
15244 case $LD in # libtool.m4 will add one of these switches to LD
15245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15246 libsuff= shlibsuff= libmagic=32-bit;;
15247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15248 libsuff=32 shlibsuff=N32 libmagic=N32;;
15249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15251 *) libsuff= shlibsuff= libmagic=never-match;;
15252 esac
15254 esac
15255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15256 shlibpath_overrides_runpath=no
15257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15259 hardcode_into_libs=yes
15262 # No shared lib support for Linux oldld, aout, or coff.
15263 linux*oldld* | linux*aout* | linux*coff*)
15264 dynamic_linker=no
15267 # This must be Linux ELF.
15268 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15269 version_type=linux
15270 need_lib_prefix=no
15271 need_version=no
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=no
15278 # Some binutils ld are patched to set DT_RUNPATH
15279 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 lt_cv_shlibpath_overrides_runpath=no
15283 save_LDFLAGS=$LDFLAGS
15284 save_libdir=$libdir
15285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15287 if test x$gcc_no_link = xyes; then
15288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15290 cat > conftest.$ac_ext <<_ACEOF
15291 program main
15294 _ACEOF
15295 if ac_fn_fc_try_link "$LINENO"; then :
15296 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15297 lt_cv_shlibpath_overrides_runpath=yes
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LDFLAGS=$save_LDFLAGS
15303 libdir=$save_libdir
15307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15309 # This implies no fast_install, which is unacceptable.
15310 # Some rework will be needed to allow for fast_install
15311 # before this can be enabled.
15312 hardcode_into_libs=yes
15314 # Append ld.so.conf contents to the search path
15315 if test -f /etc/ld.so.conf; then
15316 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' ' '`
15317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15320 # We used to test for /lib/ld.so.1 and disable shared libraries on
15321 # powerpc, because MkLinux only supported shared libraries with the
15322 # GNU dynamic linker. Since this was broken with cross compilers,
15323 # most powerpc-linux boxes support dynamic linking these days and
15324 # people can always --disable-shared, the test was removed, and we
15325 # assume the GNU/Linux dynamic linker is in use.
15326 dynamic_linker='GNU/Linux ld.so'
15329 netbsd*)
15330 version_type=sunos
15331 need_lib_prefix=no
15332 need_version=no
15333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15336 dynamic_linker='NetBSD (a.out) ld.so'
15337 else
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 dynamic_linker='NetBSD ld.elf_so'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=yes
15344 hardcode_into_libs=yes
15347 newsos6)
15348 version_type=linux
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15354 *nto* | *qnx*)
15355 version_type=qnx
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='ldqnx.so'
15366 openbsd*)
15367 version_type=sunos
15368 sys_lib_dlsearch_path_spec="/usr/lib"
15369 need_lib_prefix=no
15370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15371 case $host_os in
15372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15373 *) need_version=no ;;
15374 esac
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15377 shlibpath_var=LD_LIBRARY_PATH
15378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15379 case $host_os in
15380 openbsd2.[89] | openbsd2.[89].*)
15381 shlibpath_overrides_runpath=no
15384 shlibpath_overrides_runpath=yes
15386 esac
15387 else
15388 shlibpath_overrides_runpath=yes
15392 os2*)
15393 libname_spec='$name'
15394 shrext_cmds=".dll"
15395 need_lib_prefix=no
15396 library_names_spec='$libname${shared_ext} $libname.a'
15397 dynamic_linker='OS/2 ld.exe'
15398 shlibpath_var=LIBPATH
15401 osf3* | osf4* | osf5*)
15402 version_type=osf
15403 need_lib_prefix=no
15404 need_version=no
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15412 rdos*)
15413 dynamic_linker=no
15416 solaris*)
15417 version_type=linux
15418 need_lib_prefix=no
15419 need_version=no
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=yes
15424 hardcode_into_libs=yes
15425 # ldd complains unless libraries are executable
15426 postinstall_cmds='chmod +x $lib'
15429 sunos4*)
15430 version_type=sunos
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes
15435 if test "$with_gnu_ld" = yes; then
15436 need_lib_prefix=no
15438 need_version=yes
15441 sysv4 | sysv4.3*)
15442 version_type=linux
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 case $host_vendor in
15447 sni)
15448 shlibpath_overrides_runpath=no
15449 need_lib_prefix=no
15450 runpath_var=LD_RUN_PATH
15452 siemens)
15453 need_lib_prefix=no
15455 motorola)
15456 need_lib_prefix=no
15457 need_version=no
15458 shlibpath_overrides_runpath=no
15459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15461 esac
15464 sysv4*MP*)
15465 if test -d /usr/nec ;then
15466 version_type=linux
15467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15468 soname_spec='$libname${shared_ext}.$major'
15469 shlibpath_var=LD_LIBRARY_PATH
15473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15474 version_type=freebsd-elf
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=yes
15481 hardcode_into_libs=yes
15482 if test "$with_gnu_ld" = yes; then
15483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15484 else
15485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15486 case $host_os in
15487 sco3.2v5*)
15488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15490 esac
15492 sys_lib_dlsearch_path_spec='/usr/lib'
15495 tpf*)
15496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15497 version_type=linux
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 shlibpath_var=LD_LIBRARY_PATH
15502 shlibpath_overrides_runpath=no
15503 hardcode_into_libs=yes
15506 uts4*)
15507 version_type=linux
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15514 dynamic_linker=no
15516 esac
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15518 $as_echo "$dynamic_linker" >&6; }
15519 test "$dynamic_linker" = no && can_build_shared=no
15521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15522 if test "$GCC" = yes; then
15523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15526 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15527 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15530 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15572 hardcode_action_FC=
15573 if test -n "$hardcode_libdir_flag_spec_FC" ||
15574 test -n "$runpath_var_FC" ||
15575 test "X$hardcode_automatic_FC" = "Xyes" ; then
15577 # We can hardcode non-existent directories.
15578 if test "$hardcode_direct_FC" != no &&
15579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15580 # have to relink, otherwise we might link with an installed library
15581 # when we should be linking with a yet-to-be-installed one
15582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15583 test "$hardcode_minus_L_FC" != no; then
15584 # Linking always hardcodes the temporary library directory.
15585 hardcode_action_FC=relink
15586 else
15587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15588 hardcode_action_FC=immediate
15590 else
15591 # We cannot hardcode anything, or else we can only hardcode existing
15592 # directories.
15593 hardcode_action_FC=unsupported
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15596 $as_echo "$hardcode_action_FC" >&6; }
15598 if test "$hardcode_action_FC" = relink ||
15599 test "$inherit_rpath_FC" = yes; then
15600 # Fast installation is not supported
15601 enable_fast_install=no
15602 elif test "$shlibpath_overrides_runpath" = yes ||
15603 test "$enable_shared" = no; then
15604 # Fast installation is not necessary
15605 enable_fast_install=needless
15614 fi # test -n "$compiler"
15616 GCC=$lt_save_GCC
15617 CC="$lt_save_CC"
15618 fi # test "$_lt_disable_FC" != yes
15620 ac_ext=c
15621 ac_cpp='$CPP $CPPFLAGS'
15622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15628 # extra LD Flags which are required for targets
15629 case "${host}" in
15630 *-darwin*)
15631 # Darwin needs -single_module when linking libgfortran
15632 extra_ldflags_libgfortran=-Wl,-single_module
15634 esac
15637 # We need a working compiler at that point, otherwise give a clear
15638 # error message and bail out.
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15641 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15642 ac_ext=${ac_fc_srcext-f}
15643 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15644 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15645 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15647 cat > conftest.$ac_ext <<_ACEOF
15649 program foo
15650 real, parameter :: bar = sin (12.34 / 2.5)
15651 end program foo
15652 _ACEOF
15653 if ac_fn_fc_try_compile "$LINENO"; then :
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15655 $as_echo "yes" >&6; }
15656 else
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15659 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 ac_ext=c
15664 ac_cpp='$CPP $CPPFLAGS'
15665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15671 # Check whether --enable-largefile was given.
15672 if test "${enable_largefile+set}" = set; then :
15673 enableval=$enable_largefile;
15676 if test "$enable_largefile" != no; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15679 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15680 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 ac_cv_sys_largefile_CC=no
15684 if test "$GCC" != yes; then
15685 ac_save_CC=$CC
15686 while :; do
15687 # IRIX 6.2 and later do not support large files by default,
15688 # so use the C compiler's -n32 option if that helps.
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691 #include <sys/types.h>
15692 /* Check that off_t can represent 2**63 - 1 correctly.
15693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15694 since some C++ compilers masquerading as C compilers
15695 incorrectly reject 9223372036854775807. */
15696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15698 && LARGE_OFF_T % 2147483647 == 1)
15699 ? 1 : -1];
15701 main ()
15705 return 0;
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 break
15711 rm -f core conftest.err conftest.$ac_objext
15712 CC="$CC -n32"
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714 ac_cv_sys_largefile_CC=' -n32'; break
15716 rm -f core conftest.err conftest.$ac_objext
15717 break
15718 done
15719 CC=$ac_save_CC
15720 rm -f conftest.$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15724 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15725 if test "$ac_cv_sys_largefile_CC" != no; then
15726 CC=$CC$ac_cv_sys_largefile_CC
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15730 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15731 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15732 $as_echo_n "(cached) " >&6
15733 else
15734 while :; do
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 #include <sys/types.h>
15738 /* Check that off_t can represent 2**63 - 1 correctly.
15739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15740 since some C++ compilers masquerading as C compilers
15741 incorrectly reject 9223372036854775807. */
15742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15744 && LARGE_OFF_T % 2147483647 == 1)
15745 ? 1 : -1];
15747 main ()
15751 return 0;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"; then :
15755 ac_cv_sys_file_offset_bits=no; break
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 #define _FILE_OFFSET_BITS 64
15761 #include <sys/types.h>
15762 /* Check that off_t can represent 2**63 - 1 correctly.
15763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15764 since some C++ compilers masquerading as C compilers
15765 incorrectly reject 9223372036854775807. */
15766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15768 && LARGE_OFF_T % 2147483647 == 1)
15769 ? 1 : -1];
15771 main ()
15775 return 0;
15777 _ACEOF
15778 if ac_fn_c_try_compile "$LINENO"; then :
15779 ac_cv_sys_file_offset_bits=64; break
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 ac_cv_sys_file_offset_bits=unknown
15783 break
15784 done
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15787 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15788 case $ac_cv_sys_file_offset_bits in #(
15789 no | unknown) ;;
15791 cat >>confdefs.h <<_ACEOF
15792 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15793 _ACEOF
15795 esac
15796 rm -rf conftest*
15797 if test $ac_cv_sys_file_offset_bits = unknown; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15799 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15800 if test "${ac_cv_sys_large_files+set}" = set; then :
15801 $as_echo_n "(cached) " >&6
15802 else
15803 while :; do
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 #include <sys/types.h>
15807 /* Check that off_t can represent 2**63 - 1 correctly.
15808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15809 since some C++ compilers masquerading as C compilers
15810 incorrectly reject 9223372036854775807. */
15811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15813 && LARGE_OFF_T % 2147483647 == 1)
15814 ? 1 : -1];
15816 main ()
15820 return 0;
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 ac_cv_sys_large_files=no; break
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 #define _LARGE_FILES 1
15830 #include <sys/types.h>
15831 /* Check that off_t can represent 2**63 - 1 correctly.
15832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15833 since some C++ compilers masquerading as C compilers
15834 incorrectly reject 9223372036854775807. */
15835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15837 && LARGE_OFF_T % 2147483647 == 1)
15838 ? 1 : -1];
15840 main ()
15844 return 0;
15846 _ACEOF
15847 if ac_fn_c_try_compile "$LINENO"; then :
15848 ac_cv_sys_large_files=1; break
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 ac_cv_sys_large_files=unknown
15852 break
15853 done
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15856 $as_echo "$ac_cv_sys_large_files" >&6; }
15857 case $ac_cv_sys_large_files in #(
15858 no | unknown) ;;
15860 cat >>confdefs.h <<_ACEOF
15861 #define _LARGE_FILES $ac_cv_sys_large_files
15862 _ACEOF
15864 esac
15865 rm -rf conftest*
15870 # Types
15871 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15872 if test "x$ac_cv_type_off_t" = x""yes; then :
15874 else
15876 cat >>confdefs.h <<_ACEOF
15877 #define off_t long int
15878 _ACEOF
15883 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15884 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15886 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15888 else
15889 for ac_type in 'int' 'long int' 'long long int'; do
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 $ac_includes_default
15894 main ()
15896 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15897 test_array [0] = 0
15900 return 0;
15902 _ACEOF
15903 if ac_fn_c_try_compile "$LINENO"; then :
15905 cat >>confdefs.h <<_ACEOF
15906 #define intptr_t $ac_type
15907 _ACEOF
15909 ac_type=
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912 test -z "$ac_type" && break
15913 done
15918 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15919 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15921 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15923 else
15924 for ac_type in 'unsigned int' 'unsigned long int' \
15925 'unsigned long long int'; do
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928 $ac_includes_default
15930 main ()
15932 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15933 test_array [0] = 0
15936 return 0;
15938 _ACEOF
15939 if ac_fn_c_try_compile "$LINENO"; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define uintptr_t $ac_type
15943 _ACEOF
15945 ac_type=
15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948 test -z "$ac_type" && break
15949 done
15953 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15954 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_PTRDIFF_T 1
15958 _ACEOF
15964 # check header files (we assume C89 is available, so don't check for that)
15968 for ac_header in $ac_header_list
15969 do :
15970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15973 eval as_val=\$$as_ac_Header
15974 if test "x$as_val" = x""yes; then :
15975 cat >>confdefs.h <<_ACEOF
15976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 _ACEOF
15981 done
16015 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16017 acx_cv_header_stdint=stddef.h
16018 acx_cv_header_stdint_kind="(already complete)"
16019 for i in stdint.h $inttype_headers; do
16020 unset ac_cv_type_uintptr_t
16021 unset ac_cv_type_uintmax_t
16022 unset ac_cv_type_int_least32_t
16023 unset ac_cv_type_int_fast32_t
16024 unset ac_cv_type_uint64_t
16025 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16026 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16027 #include <$i>
16029 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16030 acx_cv_header_stdint=$i
16031 else
16032 continue
16035 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16036 #include <$i>
16038 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16040 else
16041 acx_cv_header_stdint_kind="(mostly complete)"
16044 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16045 #include <$i>
16047 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16049 else
16050 acx_cv_header_stdint_kind="(mostly complete)"
16053 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16054 #include <$i>
16056 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16058 else
16059 acx_cv_header_stdint_kind="(mostly complete)"
16062 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16063 #include <$i>
16065 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16067 else
16068 acx_cv_header_stdint_kind="(lacks uint64_t)"
16071 break
16072 done
16073 if test "$acx_cv_header_stdint" = stddef.h; then
16074 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16075 for i in stdint.h $inttype_headers; do
16076 unset ac_cv_type_uintptr_t
16077 unset ac_cv_type_uint32_t
16078 unset ac_cv_type_uint64_t
16079 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16080 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16081 #include <$i>
16083 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16084 acx_cv_header_stdint=$i
16085 else
16086 continue
16089 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16090 #include <$i>
16092 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16096 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16097 #include <$i>
16099 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16103 break
16104 done
16106 if test "$acx_cv_header_stdint" = stddef.h; then
16107 acx_cv_header_stdint_kind="(u_intXX_t style)"
16108 for i in sys/types.h $inttype_headers; do
16109 unset ac_cv_type_u_int32_t
16110 unset ac_cv_type_u_int64_t
16111 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16112 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16113 #include <$i>
16115 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16116 acx_cv_header_stdint=$i
16117 else
16118 continue
16121 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16122 #include <$i>
16124 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16128 break
16129 done
16131 if test "$acx_cv_header_stdint" = stddef.h; then
16132 acx_cv_header_stdint_kind="(using manual detection)"
16135 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16136 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16137 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16138 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16139 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16141 # ----------------- Summarize what we found so far
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16144 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16146 case `$as_basename -- gstdint.h ||
16147 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16148 Xgstdint.h : 'X\(//\)$' \| \
16149 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16150 $as_echo X/gstdint.h |
16151 sed '/^.*\/\([^/][^/]*\)\/*$/{
16152 s//\1/
16155 /^X\/\(\/\/\)$/{
16156 s//\1/
16159 /^X\/\(\/\).*/{
16160 s//\1/
16163 s/.*/./; q'` in
16164 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16165 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16166 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16167 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16168 *) ;;
16169 esac
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16172 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16174 # ----------------- done included file, check C basic types --------
16176 # Lacking an uintptr_t? Test size of void *
16177 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16178 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16181 # This bug is HP SR number 8606223364.
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16183 $as_echo_n "checking size of void *... " >&6; }
16184 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16189 else
16190 if test "$ac_cv_type_void_p" = yes; then
16191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16193 { as_fn_set_status 77
16194 as_fn_error "cannot compute sizeof (void *)
16195 See \`config.log' for more details." "$LINENO" 5; }; }
16196 else
16197 ac_cv_sizeof_void_p=0
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16203 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16207 cat >>confdefs.h <<_ACEOF
16208 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16209 _ACEOF
16212 esac
16214 # Lacking an uint64_t? Test size of long
16215 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16216 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16219 # This bug is HP SR number 8606223364.
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16221 $as_echo_n "checking size of long... " >&6; }
16222 if test "${ac_cv_sizeof_long+set}" = set; then :
16223 $as_echo_n "(cached) " >&6
16224 else
16225 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16227 else
16228 if test "$ac_cv_type_long" = yes; then
16229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16231 { as_fn_set_status 77
16232 as_fn_error "cannot compute sizeof (long)
16233 See \`config.log' for more details." "$LINENO" 5; }; }
16234 else
16235 ac_cv_sizeof_long=0
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16241 $as_echo "$ac_cv_sizeof_long" >&6; }
16245 cat >>confdefs.h <<_ACEOF
16246 #define SIZEOF_LONG $ac_cv_sizeof_long
16247 _ACEOF
16250 esac
16252 if test $acx_cv_header_stdint = stddef.h; then
16253 # Lacking a good header? Test size of everything and deduce all types.
16254 # The cast to long int works around a bug in the HP C Compiler
16255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16257 # This bug is HP SR number 8606223364.
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16259 $as_echo_n "checking size of int... " >&6; }
16260 if test "${ac_cv_sizeof_int+set}" = set; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16265 else
16266 if test "$ac_cv_type_int" = yes; then
16267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16269 { as_fn_set_status 77
16270 as_fn_error "cannot compute sizeof (int)
16271 See \`config.log' for more details." "$LINENO" 5; }; }
16272 else
16273 ac_cv_sizeof_int=0
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16279 $as_echo "$ac_cv_sizeof_int" >&6; }
16283 cat >>confdefs.h <<_ACEOF
16284 #define SIZEOF_INT $ac_cv_sizeof_int
16285 _ACEOF
16288 # The cast to long int works around a bug in the HP C Compiler
16289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16291 # This bug is HP SR number 8606223364.
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16293 $as_echo_n "checking size of short... " >&6; }
16294 if test "${ac_cv_sizeof_short+set}" = set; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16299 else
16300 if test "$ac_cv_type_short" = yes; then
16301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16303 { as_fn_set_status 77
16304 as_fn_error "cannot compute sizeof (short)
16305 See \`config.log' for more details." "$LINENO" 5; }; }
16306 else
16307 ac_cv_sizeof_short=0
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16313 $as_echo "$ac_cv_sizeof_short" >&6; }
16317 cat >>confdefs.h <<_ACEOF
16318 #define SIZEOF_SHORT $ac_cv_sizeof_short
16319 _ACEOF
16322 # The cast to long int works around a bug in the HP C Compiler
16323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16325 # This bug is HP SR number 8606223364.
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16327 $as_echo_n "checking size of char... " >&6; }
16328 if test "${ac_cv_sizeof_char+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16333 else
16334 if test "$ac_cv_type_char" = yes; then
16335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16337 { as_fn_set_status 77
16338 as_fn_error "cannot compute sizeof (char)
16339 See \`config.log' for more details." "$LINENO" 5; }; }
16340 else
16341 ac_cv_sizeof_char=0
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16347 $as_echo "$ac_cv_sizeof_char" >&6; }
16351 cat >>confdefs.h <<_ACEOF
16352 #define SIZEOF_CHAR $ac_cv_sizeof_char
16353 _ACEOF
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16358 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16359 case "$ac_cv_sizeof_char" in
16360 1) acx_cv_type_int8_t=char ;;
16361 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16362 esac
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16364 $as_echo "$acx_cv_type_int8_t" >&6; }
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16367 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16368 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16369 2:*) acx_cv_type_int16_t=int ;;
16370 *:2) acx_cv_type_int16_t=short ;;
16371 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16372 esac
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16374 $as_echo "$acx_cv_type_int16_t" >&6; }
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16377 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16378 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16379 4:*) acx_cv_type_int32_t=int ;;
16380 *:4) acx_cv_type_int32_t=long ;;
16381 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16382 esac
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16384 $as_echo "$acx_cv_type_int32_t" >&6; }
16387 # These tests are here to make the output prettier
16389 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16390 case "$ac_cv_sizeof_long" in
16391 8) acx_cv_type_int64_t=long ;;
16392 esac
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16394 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16396 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16399 # Now we can use the above types
16401 if test "$ac_cv_type_uintptr_t" != yes; then
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16403 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16404 case $ac_cv_sizeof_void_p in
16405 2) acx_cv_type_intptr_t=int16_t ;;
16406 4) acx_cv_type_intptr_t=int32_t ;;
16407 8) acx_cv_type_intptr_t=int64_t ;;
16408 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16409 esac
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16411 $as_echo "$acx_cv_type_intptr_t" >&6; }
16414 # ----------------- done all checks, emit header -------------
16415 ac_config_commands="$ac_config_commands gstdint.h"
16420 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16421 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16423 cat >>confdefs.h <<_ACEOF
16424 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16425 _ACEOF
16429 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16430 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16434 _ACEOF
16438 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16439 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_STRUCT_STAT_ST_RDEV 1
16443 _ACEOF
16449 # Check for library functions.
16450 if test "x${with_newlib}" = "xyes"; then
16451 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16452 # may not work correctly, because the compiler may not be able to
16453 # link executables.
16455 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16458 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16461 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16464 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16467 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16470 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16473 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16476 # At some point, we should differentiate between architectures
16477 # like x86, which have long double versions, and alpha/powerpc/etc.,
16478 # which don't. For the time being, punt.
16479 if test x"long_double_math_on_this_cpu" = x"yes"; then
16481 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16484 else
16488 for ac_func in $ac_func_list
16489 do :
16490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16492 eval as_val=\$$as_ac_var
16493 if test "x$as_val" = x""yes; then :
16494 cat >>confdefs.h <<_ACEOF
16495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16496 _ACEOF
16499 done
16610 # Check strerror_r, cannot be above as versions with two and three arguments exist
16612 ac_save_CFLAGS="$CFLAGS"
16613 CFLAGS="-Wimplicit-function-declaration -Werror"
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 #define _GNU_SOURCE 1
16617 #include <string.h>
16618 #include <locale.h>
16620 main ()
16622 char s[128]; strerror_r(5, s, 128);
16624 return 0;
16626 _ACEOF
16627 if ac_fn_c_try_compile "$LINENO"; then :
16629 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633 CFLAGS="$ac_save_CFLAGS"
16635 ac_save_CFLAGS="$CFLAGS"
16636 CFLAGS="-Wimplicit-function-declaration -Werror"
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 #define _GNU_SOURCE 1
16640 #include <string.h>
16641 #include <locale.h>
16643 main ()
16645 char s[128]; strerror_r(5, s);
16647 return 0;
16649 _ACEOF
16650 if ac_fn_c_try_compile "$LINENO"; then :
16652 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656 CFLAGS="$ac_save_CFLAGS"
16659 # Check for C99 (and other IEEE) math functions
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16661 $as_echo_n "checking for sin in -lm... " >&6; }
16662 if test "${ac_cv_lib_m_sin+set}" = set; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 ac_check_lib_save_LIBS=$LIBS
16666 LIBS="-lm $LIBS"
16667 if test x$gcc_no_link = xyes; then
16668 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16673 /* Override any GCC internal prototype to avoid an error.
16674 Use char because int might match the return type of a GCC
16675 builtin and then its argument prototype would still apply. */
16676 #ifdef __cplusplus
16677 extern "C"
16678 #endif
16679 char sin ();
16681 main ()
16683 return sin ();
16685 return 0;
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"; then :
16689 ac_cv_lib_m_sin=yes
16690 else
16691 ac_cv_lib_m_sin=no
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 LIBS=$ac_check_lib_save_LIBS
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16698 $as_echo "$ac_cv_lib_m_sin" >&6; }
16699 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_LIBM 1
16702 _ACEOF
16704 LIBS="-lm $LIBS"
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16715 $as_echo_n "checking for acosf... " >&6; }
16716 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 if test x$gcc_no_link = xyes; then
16720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16725 #ifdef HAVE_COMPLEX_H
16726 #include <complex.h>
16727 #endif
16728 #ifdef HAVE_MATH_H
16729 #include <math.h>
16730 #endif
16732 int (*ptr)() = (int (*)())acosf;
16735 main ()
16737 return 0;
16740 _ACEOF
16741 if ac_fn_c_try_link "$LINENO"; then :
16742 gcc_cv_math_func_acosf=yes
16743 else
16744 gcc_cv_math_func_acosf=no
16746 rm -f core conftest.err conftest.$ac_objext \
16747 conftest$ac_exeext conftest.$ac_ext
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16750 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16751 if test $gcc_cv_math_func_acosf = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754 #define HAVE_ACOSF 1
16755 _ACEOF
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16763 $as_echo_n "checking for acos... " >&6; }
16764 if test "${gcc_cv_math_func_acos+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767 if test x$gcc_no_link = xyes; then
16768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16773 #ifdef HAVE_COMPLEX_H
16774 #include <complex.h>
16775 #endif
16776 #ifdef HAVE_MATH_H
16777 #include <math.h>
16778 #endif
16780 int (*ptr)() = (int (*)())acos;
16783 main ()
16785 return 0;
16788 _ACEOF
16789 if ac_fn_c_try_link "$LINENO"; then :
16790 gcc_cv_math_func_acos=yes
16791 else
16792 gcc_cv_math_func_acos=no
16794 rm -f core conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16798 $as_echo "$gcc_cv_math_func_acos" >&6; }
16799 if test $gcc_cv_math_func_acos = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_ACOS 1
16803 _ACEOF
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16811 $as_echo_n "checking for acosl... " >&6; }
16812 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 if test x$gcc_no_link = xyes; then
16816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16821 #ifdef HAVE_COMPLEX_H
16822 #include <complex.h>
16823 #endif
16824 #ifdef HAVE_MATH_H
16825 #include <math.h>
16826 #endif
16828 int (*ptr)() = (int (*)())acosl;
16831 main ()
16833 return 0;
16836 _ACEOF
16837 if ac_fn_c_try_link "$LINENO"; then :
16838 gcc_cv_math_func_acosl=yes
16839 else
16840 gcc_cv_math_func_acosl=no
16842 rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16846 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16847 if test $gcc_cv_math_func_acosl = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define HAVE_ACOSL 1
16851 _ACEOF
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16859 $as_echo_n "checking for acoshf... " >&6; }
16860 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 if test x$gcc_no_link = xyes; then
16864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16869 #ifdef HAVE_COMPLEX_H
16870 #include <complex.h>
16871 #endif
16872 #ifdef HAVE_MATH_H
16873 #include <math.h>
16874 #endif
16876 int (*ptr)() = (int (*)())acoshf;
16879 main ()
16881 return 0;
16884 _ACEOF
16885 if ac_fn_c_try_link "$LINENO"; then :
16886 gcc_cv_math_func_acoshf=yes
16887 else
16888 gcc_cv_math_func_acoshf=no
16890 rm -f core conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16894 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16895 if test $gcc_cv_math_func_acoshf = yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_ACOSHF 1
16899 _ACEOF
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16907 $as_echo_n "checking for acosh... " >&6; }
16908 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 if test x$gcc_no_link = xyes; then
16912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16917 #ifdef HAVE_COMPLEX_H
16918 #include <complex.h>
16919 #endif
16920 #ifdef HAVE_MATH_H
16921 #include <math.h>
16922 #endif
16924 int (*ptr)() = (int (*)())acosh;
16927 main ()
16929 return 0;
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"; then :
16934 gcc_cv_math_func_acosh=yes
16935 else
16936 gcc_cv_math_func_acosh=no
16938 rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16942 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16943 if test $gcc_cv_math_func_acosh = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_ACOSH 1
16947 _ACEOF
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16955 $as_echo_n "checking for acoshl... " >&6; }
16956 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16957 $as_echo_n "(cached) " >&6
16958 else
16959 if test x$gcc_no_link = xyes; then
16960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16965 #ifdef HAVE_COMPLEX_H
16966 #include <complex.h>
16967 #endif
16968 #ifdef HAVE_MATH_H
16969 #include <math.h>
16970 #endif
16972 int (*ptr)() = (int (*)())acoshl;
16975 main ()
16977 return 0;
16980 _ACEOF
16981 if ac_fn_c_try_link "$LINENO"; then :
16982 gcc_cv_math_func_acoshl=yes
16983 else
16984 gcc_cv_math_func_acoshl=no
16986 rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16990 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16991 if test $gcc_cv_math_func_acoshl = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_ACOSHL 1
16995 _ACEOF
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17003 $as_echo_n "checking for asinf... " >&6; }
17004 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 if test x$gcc_no_link = xyes; then
17008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17013 #ifdef HAVE_COMPLEX_H
17014 #include <complex.h>
17015 #endif
17016 #ifdef HAVE_MATH_H
17017 #include <math.h>
17018 #endif
17020 int (*ptr)() = (int (*)())asinf;
17023 main ()
17025 return 0;
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17030 gcc_cv_math_func_asinf=yes
17031 else
17032 gcc_cv_math_func_asinf=no
17034 rm -f core conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17038 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17039 if test $gcc_cv_math_func_asinf = yes; then
17041 cat >>confdefs.h <<_ACEOF
17042 #define HAVE_ASINF 1
17043 _ACEOF
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17051 $as_echo_n "checking for asin... " >&6; }
17052 if test "${gcc_cv_math_func_asin+set}" = set; then :
17053 $as_echo_n "(cached) " >&6
17054 else
17055 if test x$gcc_no_link = xyes; then
17056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17061 #ifdef HAVE_COMPLEX_H
17062 #include <complex.h>
17063 #endif
17064 #ifdef HAVE_MATH_H
17065 #include <math.h>
17066 #endif
17068 int (*ptr)() = (int (*)())asin;
17071 main ()
17073 return 0;
17076 _ACEOF
17077 if ac_fn_c_try_link "$LINENO"; then :
17078 gcc_cv_math_func_asin=yes
17079 else
17080 gcc_cv_math_func_asin=no
17082 rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17086 $as_echo "$gcc_cv_math_func_asin" >&6; }
17087 if test $gcc_cv_math_func_asin = yes; then
17089 cat >>confdefs.h <<_ACEOF
17090 #define HAVE_ASIN 1
17091 _ACEOF
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17099 $as_echo_n "checking for asinl... " >&6; }
17100 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 if test x$gcc_no_link = xyes; then
17104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17109 #ifdef HAVE_COMPLEX_H
17110 #include <complex.h>
17111 #endif
17112 #ifdef HAVE_MATH_H
17113 #include <math.h>
17114 #endif
17116 int (*ptr)() = (int (*)())asinl;
17119 main ()
17121 return 0;
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126 gcc_cv_math_func_asinl=yes
17127 else
17128 gcc_cv_math_func_asinl=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17134 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17135 if test $gcc_cv_math_func_asinl = yes; then
17137 cat >>confdefs.h <<_ACEOF
17138 #define HAVE_ASINL 1
17139 _ACEOF
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17147 $as_echo_n "checking for asinhf... " >&6; }
17148 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17149 $as_echo_n "(cached) " >&6
17150 else
17151 if test x$gcc_no_link = xyes; then
17152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17157 #ifdef HAVE_COMPLEX_H
17158 #include <complex.h>
17159 #endif
17160 #ifdef HAVE_MATH_H
17161 #include <math.h>
17162 #endif
17164 int (*ptr)() = (int (*)())asinhf;
17167 main ()
17169 return 0;
17172 _ACEOF
17173 if ac_fn_c_try_link "$LINENO"; then :
17174 gcc_cv_math_func_asinhf=yes
17175 else
17176 gcc_cv_math_func_asinhf=no
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17182 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17183 if test $gcc_cv_math_func_asinhf = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define HAVE_ASINHF 1
17187 _ACEOF
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17195 $as_echo_n "checking for asinh... " >&6; }
17196 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 if test x$gcc_no_link = xyes; then
17200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17205 #ifdef HAVE_COMPLEX_H
17206 #include <complex.h>
17207 #endif
17208 #ifdef HAVE_MATH_H
17209 #include <math.h>
17210 #endif
17212 int (*ptr)() = (int (*)())asinh;
17215 main ()
17217 return 0;
17220 _ACEOF
17221 if ac_fn_c_try_link "$LINENO"; then :
17222 gcc_cv_math_func_asinh=yes
17223 else
17224 gcc_cv_math_func_asinh=no
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17230 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17231 if test $gcc_cv_math_func_asinh = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_ASINH 1
17235 _ACEOF
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17243 $as_echo_n "checking for asinhl... " >&6; }
17244 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17245 $as_echo_n "(cached) " >&6
17246 else
17247 if test x$gcc_no_link = xyes; then
17248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17253 #ifdef HAVE_COMPLEX_H
17254 #include <complex.h>
17255 #endif
17256 #ifdef HAVE_MATH_H
17257 #include <math.h>
17258 #endif
17260 int (*ptr)() = (int (*)())asinhl;
17263 main ()
17265 return 0;
17268 _ACEOF
17269 if ac_fn_c_try_link "$LINENO"; then :
17270 gcc_cv_math_func_asinhl=yes
17271 else
17272 gcc_cv_math_func_asinhl=no
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17278 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17279 if test $gcc_cv_math_func_asinhl = yes; then
17281 cat >>confdefs.h <<_ACEOF
17282 #define HAVE_ASINHL 1
17283 _ACEOF
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17291 $as_echo_n "checking for atan2f... " >&6; }
17292 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17293 $as_echo_n "(cached) " >&6
17294 else
17295 if test x$gcc_no_link = xyes; then
17296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17301 #ifdef HAVE_COMPLEX_H
17302 #include <complex.h>
17303 #endif
17304 #ifdef HAVE_MATH_H
17305 #include <math.h>
17306 #endif
17308 int (*ptr)() = (int (*)())atan2f;
17311 main ()
17313 return 0;
17316 _ACEOF
17317 if ac_fn_c_try_link "$LINENO"; then :
17318 gcc_cv_math_func_atan2f=yes
17319 else
17320 gcc_cv_math_func_atan2f=no
17322 rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17326 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17327 if test $gcc_cv_math_func_atan2f = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define HAVE_ATAN2F 1
17331 _ACEOF
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17339 $as_echo_n "checking for atan2... " >&6; }
17340 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 if test x$gcc_no_link = xyes; then
17344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17349 #ifdef HAVE_COMPLEX_H
17350 #include <complex.h>
17351 #endif
17352 #ifdef HAVE_MATH_H
17353 #include <math.h>
17354 #endif
17356 int (*ptr)() = (int (*)())atan2;
17359 main ()
17361 return 0;
17364 _ACEOF
17365 if ac_fn_c_try_link "$LINENO"; then :
17366 gcc_cv_math_func_atan2=yes
17367 else
17368 gcc_cv_math_func_atan2=no
17370 rm -f core conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17374 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17375 if test $gcc_cv_math_func_atan2 = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define HAVE_ATAN2 1
17379 _ACEOF
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17387 $as_echo_n "checking for atan2l... " >&6; }
17388 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17389 $as_echo_n "(cached) " >&6
17390 else
17391 if test x$gcc_no_link = xyes; then
17392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17397 #ifdef HAVE_COMPLEX_H
17398 #include <complex.h>
17399 #endif
17400 #ifdef HAVE_MATH_H
17401 #include <math.h>
17402 #endif
17404 int (*ptr)() = (int (*)())atan2l;
17407 main ()
17409 return 0;
17412 _ACEOF
17413 if ac_fn_c_try_link "$LINENO"; then :
17414 gcc_cv_math_func_atan2l=yes
17415 else
17416 gcc_cv_math_func_atan2l=no
17418 rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17422 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17423 if test $gcc_cv_math_func_atan2l = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define HAVE_ATAN2L 1
17427 _ACEOF
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17435 $as_echo_n "checking for atanf... " >&6; }
17436 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17437 $as_echo_n "(cached) " >&6
17438 else
17439 if test x$gcc_no_link = xyes; then
17440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17445 #ifdef HAVE_COMPLEX_H
17446 #include <complex.h>
17447 #endif
17448 #ifdef HAVE_MATH_H
17449 #include <math.h>
17450 #endif
17452 int (*ptr)() = (int (*)())atanf;
17455 main ()
17457 return 0;
17460 _ACEOF
17461 if ac_fn_c_try_link "$LINENO"; then :
17462 gcc_cv_math_func_atanf=yes
17463 else
17464 gcc_cv_math_func_atanf=no
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17470 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17471 if test $gcc_cv_math_func_atanf = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_ATANF 1
17475 _ACEOF
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17483 $as_echo_n "checking for atan... " >&6; }
17484 if test "${gcc_cv_math_func_atan+set}" = set; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 if test x$gcc_no_link = xyes; then
17488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17493 #ifdef HAVE_COMPLEX_H
17494 #include <complex.h>
17495 #endif
17496 #ifdef HAVE_MATH_H
17497 #include <math.h>
17498 #endif
17500 int (*ptr)() = (int (*)())atan;
17503 main ()
17505 return 0;
17508 _ACEOF
17509 if ac_fn_c_try_link "$LINENO"; then :
17510 gcc_cv_math_func_atan=yes
17511 else
17512 gcc_cv_math_func_atan=no
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17518 $as_echo "$gcc_cv_math_func_atan" >&6; }
17519 if test $gcc_cv_math_func_atan = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define HAVE_ATAN 1
17523 _ACEOF
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17531 $as_echo_n "checking for atanl... " >&6; }
17532 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17533 $as_echo_n "(cached) " >&6
17534 else
17535 if test x$gcc_no_link = xyes; then
17536 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17541 #ifdef HAVE_COMPLEX_H
17542 #include <complex.h>
17543 #endif
17544 #ifdef HAVE_MATH_H
17545 #include <math.h>
17546 #endif
17548 int (*ptr)() = (int (*)())atanl;
17551 main ()
17553 return 0;
17556 _ACEOF
17557 if ac_fn_c_try_link "$LINENO"; then :
17558 gcc_cv_math_func_atanl=yes
17559 else
17560 gcc_cv_math_func_atanl=no
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17566 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17567 if test $gcc_cv_math_func_atanl = yes; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define HAVE_ATANL 1
17571 _ACEOF
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17579 $as_echo_n "checking for atanhf... " >&6; }
17580 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17581 $as_echo_n "(cached) " >&6
17582 else
17583 if test x$gcc_no_link = xyes; then
17584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17589 #ifdef HAVE_COMPLEX_H
17590 #include <complex.h>
17591 #endif
17592 #ifdef HAVE_MATH_H
17593 #include <math.h>
17594 #endif
17596 int (*ptr)() = (int (*)())atanhf;
17599 main ()
17601 return 0;
17604 _ACEOF
17605 if ac_fn_c_try_link "$LINENO"; then :
17606 gcc_cv_math_func_atanhf=yes
17607 else
17608 gcc_cv_math_func_atanhf=no
17610 rm -f core conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17614 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17615 if test $gcc_cv_math_func_atanhf = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define HAVE_ATANHF 1
17619 _ACEOF
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17627 $as_echo_n "checking for atanh... " >&6; }
17628 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 if test x$gcc_no_link = xyes; then
17632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17637 #ifdef HAVE_COMPLEX_H
17638 #include <complex.h>
17639 #endif
17640 #ifdef HAVE_MATH_H
17641 #include <math.h>
17642 #endif
17644 int (*ptr)() = (int (*)())atanh;
17647 main ()
17649 return 0;
17652 _ACEOF
17653 if ac_fn_c_try_link "$LINENO"; then :
17654 gcc_cv_math_func_atanh=yes
17655 else
17656 gcc_cv_math_func_atanh=no
17658 rm -f core conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17662 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17663 if test $gcc_cv_math_func_atanh = yes; then
17665 cat >>confdefs.h <<_ACEOF
17666 #define HAVE_ATANH 1
17667 _ACEOF
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17675 $as_echo_n "checking for atanhl... " >&6; }
17676 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 if test x$gcc_no_link = xyes; then
17680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17685 #ifdef HAVE_COMPLEX_H
17686 #include <complex.h>
17687 #endif
17688 #ifdef HAVE_MATH_H
17689 #include <math.h>
17690 #endif
17692 int (*ptr)() = (int (*)())atanhl;
17695 main ()
17697 return 0;
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 gcc_cv_math_func_atanhl=yes
17703 else
17704 gcc_cv_math_func_atanhl=no
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17710 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17711 if test $gcc_cv_math_func_atanhl = yes; then
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_ATANHL 1
17715 _ACEOF
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17723 $as_echo_n "checking for cargf... " >&6; }
17724 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17725 $as_echo_n "(cached) " >&6
17726 else
17727 if test x$gcc_no_link = xyes; then
17728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 #ifdef HAVE_COMPLEX_H
17734 #include <complex.h>
17735 #endif
17736 #ifdef HAVE_MATH_H
17737 #include <math.h>
17738 #endif
17740 int (*ptr)() = (int (*)())cargf;
17743 main ()
17745 return 0;
17748 _ACEOF
17749 if ac_fn_c_try_link "$LINENO"; then :
17750 gcc_cv_math_func_cargf=yes
17751 else
17752 gcc_cv_math_func_cargf=no
17754 rm -f core conftest.err conftest.$ac_objext \
17755 conftest$ac_exeext conftest.$ac_ext
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17758 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17759 if test $gcc_cv_math_func_cargf = yes; then
17761 cat >>confdefs.h <<_ACEOF
17762 #define HAVE_CARGF 1
17763 _ACEOF
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17771 $as_echo_n "checking for carg... " >&6; }
17772 if test "${gcc_cv_math_func_carg+set}" = set; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 if test x$gcc_no_link = xyes; then
17776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17781 #ifdef HAVE_COMPLEX_H
17782 #include <complex.h>
17783 #endif
17784 #ifdef HAVE_MATH_H
17785 #include <math.h>
17786 #endif
17788 int (*ptr)() = (int (*)())carg;
17791 main ()
17793 return 0;
17796 _ACEOF
17797 if ac_fn_c_try_link "$LINENO"; then :
17798 gcc_cv_math_func_carg=yes
17799 else
17800 gcc_cv_math_func_carg=no
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17806 $as_echo "$gcc_cv_math_func_carg" >&6; }
17807 if test $gcc_cv_math_func_carg = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define HAVE_CARG 1
17811 _ACEOF
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17819 $as_echo_n "checking for cargl... " >&6; }
17820 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 if test x$gcc_no_link = xyes; then
17824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h. */
17829 #ifdef HAVE_COMPLEX_H
17830 #include <complex.h>
17831 #endif
17832 #ifdef HAVE_MATH_H
17833 #include <math.h>
17834 #endif
17836 int (*ptr)() = (int (*)())cargl;
17839 main ()
17841 return 0;
17844 _ACEOF
17845 if ac_fn_c_try_link "$LINENO"; then :
17846 gcc_cv_math_func_cargl=yes
17847 else
17848 gcc_cv_math_func_cargl=no
17850 rm -f core conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17854 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17855 if test $gcc_cv_math_func_cargl = yes; then
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_CARGL 1
17859 _ACEOF
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17867 $as_echo_n "checking for ceilf... " >&6; }
17868 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 if test x$gcc_no_link = xyes; then
17872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h. */
17877 #ifdef HAVE_COMPLEX_H
17878 #include <complex.h>
17879 #endif
17880 #ifdef HAVE_MATH_H
17881 #include <math.h>
17882 #endif
17884 int (*ptr)() = (int (*)())ceilf;
17887 main ()
17889 return 0;
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 gcc_cv_math_func_ceilf=yes
17895 else
17896 gcc_cv_math_func_ceilf=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17902 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17903 if test $gcc_cv_math_func_ceilf = yes; then
17905 cat >>confdefs.h <<_ACEOF
17906 #define HAVE_CEILF 1
17907 _ACEOF
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17915 $as_echo_n "checking for ceil... " >&6; }
17916 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 if test x$gcc_no_link = xyes; then
17920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17925 #ifdef HAVE_COMPLEX_H
17926 #include <complex.h>
17927 #endif
17928 #ifdef HAVE_MATH_H
17929 #include <math.h>
17930 #endif
17932 int (*ptr)() = (int (*)())ceil;
17935 main ()
17937 return 0;
17940 _ACEOF
17941 if ac_fn_c_try_link "$LINENO"; then :
17942 gcc_cv_math_func_ceil=yes
17943 else
17944 gcc_cv_math_func_ceil=no
17946 rm -f core conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17950 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17951 if test $gcc_cv_math_func_ceil = yes; then
17953 cat >>confdefs.h <<_ACEOF
17954 #define HAVE_CEIL 1
17955 _ACEOF
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17963 $as_echo_n "checking for ceill... " >&6; }
17964 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17966 else
17967 if test x$gcc_no_link = xyes; then
17968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17973 #ifdef HAVE_COMPLEX_H
17974 #include <complex.h>
17975 #endif
17976 #ifdef HAVE_MATH_H
17977 #include <math.h>
17978 #endif
17980 int (*ptr)() = (int (*)())ceill;
17983 main ()
17985 return 0;
17988 _ACEOF
17989 if ac_fn_c_try_link "$LINENO"; then :
17990 gcc_cv_math_func_ceill=yes
17991 else
17992 gcc_cv_math_func_ceill=no
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17998 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17999 if test $gcc_cv_math_func_ceill = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_CEILL 1
18003 _ACEOF
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18011 $as_echo_n "checking for copysignf... " >&6; }
18012 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 if test x$gcc_no_link = xyes; then
18016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18021 #ifdef HAVE_COMPLEX_H
18022 #include <complex.h>
18023 #endif
18024 #ifdef HAVE_MATH_H
18025 #include <math.h>
18026 #endif
18028 int (*ptr)() = (int (*)())copysignf;
18031 main ()
18033 return 0;
18036 _ACEOF
18037 if ac_fn_c_try_link "$LINENO"; then :
18038 gcc_cv_math_func_copysignf=yes
18039 else
18040 gcc_cv_math_func_copysignf=no
18042 rm -f core conftest.err conftest.$ac_objext \
18043 conftest$ac_exeext conftest.$ac_ext
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18046 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18047 if test $gcc_cv_math_func_copysignf = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_COPYSIGNF 1
18051 _ACEOF
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18059 $as_echo_n "checking for copysign... " >&6; }
18060 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18061 $as_echo_n "(cached) " >&6
18062 else
18063 if test x$gcc_no_link = xyes; then
18064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18069 #ifdef HAVE_COMPLEX_H
18070 #include <complex.h>
18071 #endif
18072 #ifdef HAVE_MATH_H
18073 #include <math.h>
18074 #endif
18076 int (*ptr)() = (int (*)())copysign;
18079 main ()
18081 return 0;
18084 _ACEOF
18085 if ac_fn_c_try_link "$LINENO"; then :
18086 gcc_cv_math_func_copysign=yes
18087 else
18088 gcc_cv_math_func_copysign=no
18090 rm -f core conftest.err conftest.$ac_objext \
18091 conftest$ac_exeext conftest.$ac_ext
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18094 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18095 if test $gcc_cv_math_func_copysign = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define HAVE_COPYSIGN 1
18099 _ACEOF
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18107 $as_echo_n "checking for copysignl... " >&6; }
18108 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18110 else
18111 if test x$gcc_no_link = xyes; then
18112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18117 #ifdef HAVE_COMPLEX_H
18118 #include <complex.h>
18119 #endif
18120 #ifdef HAVE_MATH_H
18121 #include <math.h>
18122 #endif
18124 int (*ptr)() = (int (*)())copysignl;
18127 main ()
18129 return 0;
18132 _ACEOF
18133 if ac_fn_c_try_link "$LINENO"; then :
18134 gcc_cv_math_func_copysignl=yes
18135 else
18136 gcc_cv_math_func_copysignl=no
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18142 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18143 if test $gcc_cv_math_func_copysignl = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define HAVE_COPYSIGNL 1
18147 _ACEOF
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18155 $as_echo_n "checking for cosf... " >&6; }
18156 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 if test x$gcc_no_link = xyes; then
18160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18165 #ifdef HAVE_COMPLEX_H
18166 #include <complex.h>
18167 #endif
18168 #ifdef HAVE_MATH_H
18169 #include <math.h>
18170 #endif
18172 int (*ptr)() = (int (*)())cosf;
18175 main ()
18177 return 0;
18180 _ACEOF
18181 if ac_fn_c_try_link "$LINENO"; then :
18182 gcc_cv_math_func_cosf=yes
18183 else
18184 gcc_cv_math_func_cosf=no
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18190 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18191 if test $gcc_cv_math_func_cosf = yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define HAVE_COSF 1
18195 _ACEOF
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18203 $as_echo_n "checking for cos... " >&6; }
18204 if test "${gcc_cv_math_func_cos+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 if test x$gcc_no_link = xyes; then
18208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 #ifdef HAVE_COMPLEX_H
18214 #include <complex.h>
18215 #endif
18216 #ifdef HAVE_MATH_H
18217 #include <math.h>
18218 #endif
18220 int (*ptr)() = (int (*)())cos;
18223 main ()
18225 return 0;
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 gcc_cv_math_func_cos=yes
18231 else
18232 gcc_cv_math_func_cos=no
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18238 $as_echo "$gcc_cv_math_func_cos" >&6; }
18239 if test $gcc_cv_math_func_cos = yes; then
18241 cat >>confdefs.h <<_ACEOF
18242 #define HAVE_COS 1
18243 _ACEOF
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18251 $as_echo_n "checking for cosl... " >&6; }
18252 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18253 $as_echo_n "(cached) " >&6
18254 else
18255 if test x$gcc_no_link = xyes; then
18256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18261 #ifdef HAVE_COMPLEX_H
18262 #include <complex.h>
18263 #endif
18264 #ifdef HAVE_MATH_H
18265 #include <math.h>
18266 #endif
18268 int (*ptr)() = (int (*)())cosl;
18271 main ()
18273 return 0;
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278 gcc_cv_math_func_cosl=yes
18279 else
18280 gcc_cv_math_func_cosl=no
18282 rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18286 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18287 if test $gcc_cv_math_func_cosl = yes; then
18289 cat >>confdefs.h <<_ACEOF
18290 #define HAVE_COSL 1
18291 _ACEOF
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18299 $as_echo_n "checking for ccosf... " >&6; }
18300 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18301 $as_echo_n "(cached) " >&6
18302 else
18303 if test x$gcc_no_link = xyes; then
18304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18309 #ifdef HAVE_COMPLEX_H
18310 #include <complex.h>
18311 #endif
18312 #ifdef HAVE_MATH_H
18313 #include <math.h>
18314 #endif
18316 int (*ptr)() = (int (*)())ccosf;
18319 main ()
18321 return 0;
18324 _ACEOF
18325 if ac_fn_c_try_link "$LINENO"; then :
18326 gcc_cv_math_func_ccosf=yes
18327 else
18328 gcc_cv_math_func_ccosf=no
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18334 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18335 if test $gcc_cv_math_func_ccosf = yes; then
18337 cat >>confdefs.h <<_ACEOF
18338 #define HAVE_CCOSF 1
18339 _ACEOF
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18347 $as_echo_n "checking for ccos... " >&6; }
18348 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18349 $as_echo_n "(cached) " >&6
18350 else
18351 if test x$gcc_no_link = xyes; then
18352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18357 #ifdef HAVE_COMPLEX_H
18358 #include <complex.h>
18359 #endif
18360 #ifdef HAVE_MATH_H
18361 #include <math.h>
18362 #endif
18364 int (*ptr)() = (int (*)())ccos;
18367 main ()
18369 return 0;
18372 _ACEOF
18373 if ac_fn_c_try_link "$LINENO"; then :
18374 gcc_cv_math_func_ccos=yes
18375 else
18376 gcc_cv_math_func_ccos=no
18378 rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18382 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18383 if test $gcc_cv_math_func_ccos = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define HAVE_CCOS 1
18387 _ACEOF
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18395 $as_echo_n "checking for ccosl... " >&6; }
18396 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18397 $as_echo_n "(cached) " >&6
18398 else
18399 if test x$gcc_no_link = xyes; then
18400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18405 #ifdef HAVE_COMPLEX_H
18406 #include <complex.h>
18407 #endif
18408 #ifdef HAVE_MATH_H
18409 #include <math.h>
18410 #endif
18412 int (*ptr)() = (int (*)())ccosl;
18415 main ()
18417 return 0;
18420 _ACEOF
18421 if ac_fn_c_try_link "$LINENO"; then :
18422 gcc_cv_math_func_ccosl=yes
18423 else
18424 gcc_cv_math_func_ccosl=no
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18430 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18431 if test $gcc_cv_math_func_ccosl = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_CCOSL 1
18435 _ACEOF
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18443 $as_echo_n "checking for coshf... " >&6; }
18444 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 if test x$gcc_no_link = xyes; then
18448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18453 #ifdef HAVE_COMPLEX_H
18454 #include <complex.h>
18455 #endif
18456 #ifdef HAVE_MATH_H
18457 #include <math.h>
18458 #endif
18460 int (*ptr)() = (int (*)())coshf;
18463 main ()
18465 return 0;
18468 _ACEOF
18469 if ac_fn_c_try_link "$LINENO"; then :
18470 gcc_cv_math_func_coshf=yes
18471 else
18472 gcc_cv_math_func_coshf=no
18474 rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18478 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18479 if test $gcc_cv_math_func_coshf = yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define HAVE_COSHF 1
18483 _ACEOF
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18491 $as_echo_n "checking for cosh... " >&6; }
18492 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18493 $as_echo_n "(cached) " >&6
18494 else
18495 if test x$gcc_no_link = xyes; then
18496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18501 #ifdef HAVE_COMPLEX_H
18502 #include <complex.h>
18503 #endif
18504 #ifdef HAVE_MATH_H
18505 #include <math.h>
18506 #endif
18508 int (*ptr)() = (int (*)())cosh;
18511 main ()
18513 return 0;
18516 _ACEOF
18517 if ac_fn_c_try_link "$LINENO"; then :
18518 gcc_cv_math_func_cosh=yes
18519 else
18520 gcc_cv_math_func_cosh=no
18522 rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18526 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18527 if test $gcc_cv_math_func_cosh = yes; then
18529 cat >>confdefs.h <<_ACEOF
18530 #define HAVE_COSH 1
18531 _ACEOF
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18539 $as_echo_n "checking for coshl... " >&6; }
18540 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18541 $as_echo_n "(cached) " >&6
18542 else
18543 if test x$gcc_no_link = xyes; then
18544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18549 #ifdef HAVE_COMPLEX_H
18550 #include <complex.h>
18551 #endif
18552 #ifdef HAVE_MATH_H
18553 #include <math.h>
18554 #endif
18556 int (*ptr)() = (int (*)())coshl;
18559 main ()
18561 return 0;
18564 _ACEOF
18565 if ac_fn_c_try_link "$LINENO"; then :
18566 gcc_cv_math_func_coshl=yes
18567 else
18568 gcc_cv_math_func_coshl=no
18570 rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18574 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18575 if test $gcc_cv_math_func_coshl = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define HAVE_COSHL 1
18579 _ACEOF
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18587 $as_echo_n "checking for ccoshf... " >&6; }
18588 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 if test x$gcc_no_link = xyes; then
18592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h. */
18597 #ifdef HAVE_COMPLEX_H
18598 #include <complex.h>
18599 #endif
18600 #ifdef HAVE_MATH_H
18601 #include <math.h>
18602 #endif
18604 int (*ptr)() = (int (*)())ccoshf;
18607 main ()
18609 return 0;
18612 _ACEOF
18613 if ac_fn_c_try_link "$LINENO"; then :
18614 gcc_cv_math_func_ccoshf=yes
18615 else
18616 gcc_cv_math_func_ccoshf=no
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18622 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18623 if test $gcc_cv_math_func_ccoshf = yes; then
18625 cat >>confdefs.h <<_ACEOF
18626 #define HAVE_CCOSHF 1
18627 _ACEOF
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18635 $as_echo_n "checking for ccosh... " >&6; }
18636 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18637 $as_echo_n "(cached) " >&6
18638 else
18639 if test x$gcc_no_link = xyes; then
18640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18645 #ifdef HAVE_COMPLEX_H
18646 #include <complex.h>
18647 #endif
18648 #ifdef HAVE_MATH_H
18649 #include <math.h>
18650 #endif
18652 int (*ptr)() = (int (*)())ccosh;
18655 main ()
18657 return 0;
18660 _ACEOF
18661 if ac_fn_c_try_link "$LINENO"; then :
18662 gcc_cv_math_func_ccosh=yes
18663 else
18664 gcc_cv_math_func_ccosh=no
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18670 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18671 if test $gcc_cv_math_func_ccosh = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_CCOSH 1
18675 _ACEOF
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18683 $as_echo_n "checking for ccoshl... " >&6; }
18684 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18685 $as_echo_n "(cached) " >&6
18686 else
18687 if test x$gcc_no_link = xyes; then
18688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 #ifdef HAVE_COMPLEX_H
18694 #include <complex.h>
18695 #endif
18696 #ifdef HAVE_MATH_H
18697 #include <math.h>
18698 #endif
18700 int (*ptr)() = (int (*)())ccoshl;
18703 main ()
18705 return 0;
18708 _ACEOF
18709 if ac_fn_c_try_link "$LINENO"; then :
18710 gcc_cv_math_func_ccoshl=yes
18711 else
18712 gcc_cv_math_func_ccoshl=no
18714 rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18718 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18719 if test $gcc_cv_math_func_ccoshl = yes; then
18721 cat >>confdefs.h <<_ACEOF
18722 #define HAVE_CCOSHL 1
18723 _ACEOF
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18731 $as_echo_n "checking for expf... " >&6; }
18732 if test "${gcc_cv_math_func_expf+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18734 else
18735 if test x$gcc_no_link = xyes; then
18736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 #ifdef HAVE_COMPLEX_H
18742 #include <complex.h>
18743 #endif
18744 #ifdef HAVE_MATH_H
18745 #include <math.h>
18746 #endif
18748 int (*ptr)() = (int (*)())expf;
18751 main ()
18753 return 0;
18756 _ACEOF
18757 if ac_fn_c_try_link "$LINENO"; then :
18758 gcc_cv_math_func_expf=yes
18759 else
18760 gcc_cv_math_func_expf=no
18762 rm -f core conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18766 $as_echo "$gcc_cv_math_func_expf" >&6; }
18767 if test $gcc_cv_math_func_expf = yes; then
18769 cat >>confdefs.h <<_ACEOF
18770 #define HAVE_EXPF 1
18771 _ACEOF
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18779 $as_echo_n "checking for exp... " >&6; }
18780 if test "${gcc_cv_math_func_exp+set}" = set; then :
18781 $as_echo_n "(cached) " >&6
18782 else
18783 if test x$gcc_no_link = xyes; then
18784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18789 #ifdef HAVE_COMPLEX_H
18790 #include <complex.h>
18791 #endif
18792 #ifdef HAVE_MATH_H
18793 #include <math.h>
18794 #endif
18796 int (*ptr)() = (int (*)())exp;
18799 main ()
18801 return 0;
18804 _ACEOF
18805 if ac_fn_c_try_link "$LINENO"; then :
18806 gcc_cv_math_func_exp=yes
18807 else
18808 gcc_cv_math_func_exp=no
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18814 $as_echo "$gcc_cv_math_func_exp" >&6; }
18815 if test $gcc_cv_math_func_exp = yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_EXP 1
18819 _ACEOF
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18827 $as_echo_n "checking for expl... " >&6; }
18828 if test "${gcc_cv_math_func_expl+set}" = set; then :
18829 $as_echo_n "(cached) " >&6
18830 else
18831 if test x$gcc_no_link = xyes; then
18832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18837 #ifdef HAVE_COMPLEX_H
18838 #include <complex.h>
18839 #endif
18840 #ifdef HAVE_MATH_H
18841 #include <math.h>
18842 #endif
18844 int (*ptr)() = (int (*)())expl;
18847 main ()
18849 return 0;
18852 _ACEOF
18853 if ac_fn_c_try_link "$LINENO"; then :
18854 gcc_cv_math_func_expl=yes
18855 else
18856 gcc_cv_math_func_expl=no
18858 rm -f core conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18862 $as_echo "$gcc_cv_math_func_expl" >&6; }
18863 if test $gcc_cv_math_func_expl = yes; then
18865 cat >>confdefs.h <<_ACEOF
18866 #define HAVE_EXPL 1
18867 _ACEOF
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18875 $as_echo_n "checking for cexpf... " >&6; }
18876 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879 if test x$gcc_no_link = xyes; then
18880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18885 #ifdef HAVE_COMPLEX_H
18886 #include <complex.h>
18887 #endif
18888 #ifdef HAVE_MATH_H
18889 #include <math.h>
18890 #endif
18892 int (*ptr)() = (int (*)())cexpf;
18895 main ()
18897 return 0;
18900 _ACEOF
18901 if ac_fn_c_try_link "$LINENO"; then :
18902 gcc_cv_math_func_cexpf=yes
18903 else
18904 gcc_cv_math_func_cexpf=no
18906 rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18910 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18911 if test $gcc_cv_math_func_cexpf = yes; then
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_CEXPF 1
18915 _ACEOF
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18923 $as_echo_n "checking for cexp... " >&6; }
18924 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18925 $as_echo_n "(cached) " >&6
18926 else
18927 if test x$gcc_no_link = xyes; then
18928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18933 #ifdef HAVE_COMPLEX_H
18934 #include <complex.h>
18935 #endif
18936 #ifdef HAVE_MATH_H
18937 #include <math.h>
18938 #endif
18940 int (*ptr)() = (int (*)())cexp;
18943 main ()
18945 return 0;
18948 _ACEOF
18949 if ac_fn_c_try_link "$LINENO"; then :
18950 gcc_cv_math_func_cexp=yes
18951 else
18952 gcc_cv_math_func_cexp=no
18954 rm -f core conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext conftest.$ac_ext
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18958 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18959 if test $gcc_cv_math_func_cexp = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962 #define HAVE_CEXP 1
18963 _ACEOF
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18971 $as_echo_n "checking for cexpl... " >&6; }
18972 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18973 $as_echo_n "(cached) " >&6
18974 else
18975 if test x$gcc_no_link = xyes; then
18976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18981 #ifdef HAVE_COMPLEX_H
18982 #include <complex.h>
18983 #endif
18984 #ifdef HAVE_MATH_H
18985 #include <math.h>
18986 #endif
18988 int (*ptr)() = (int (*)())cexpl;
18991 main ()
18993 return 0;
18996 _ACEOF
18997 if ac_fn_c_try_link "$LINENO"; then :
18998 gcc_cv_math_func_cexpl=yes
18999 else
19000 gcc_cv_math_func_cexpl=no
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19006 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19007 if test $gcc_cv_math_func_cexpl = yes; then
19009 cat >>confdefs.h <<_ACEOF
19010 #define HAVE_CEXPL 1
19011 _ACEOF
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19019 $as_echo_n "checking for fabsf... " >&6; }
19020 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 if test x$gcc_no_link = xyes; then
19024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19029 #ifdef HAVE_COMPLEX_H
19030 #include <complex.h>
19031 #endif
19032 #ifdef HAVE_MATH_H
19033 #include <math.h>
19034 #endif
19036 int (*ptr)() = (int (*)())fabsf;
19039 main ()
19041 return 0;
19044 _ACEOF
19045 if ac_fn_c_try_link "$LINENO"; then :
19046 gcc_cv_math_func_fabsf=yes
19047 else
19048 gcc_cv_math_func_fabsf=no
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19054 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19055 if test $gcc_cv_math_func_fabsf = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_FABSF 1
19059 _ACEOF
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19067 $as_echo_n "checking for fabs... " >&6; }
19068 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19070 else
19071 if test x$gcc_no_link = xyes; then
19072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19077 #ifdef HAVE_COMPLEX_H
19078 #include <complex.h>
19079 #endif
19080 #ifdef HAVE_MATH_H
19081 #include <math.h>
19082 #endif
19084 int (*ptr)() = (int (*)())fabs;
19087 main ()
19089 return 0;
19092 _ACEOF
19093 if ac_fn_c_try_link "$LINENO"; then :
19094 gcc_cv_math_func_fabs=yes
19095 else
19096 gcc_cv_math_func_fabs=no
19098 rm -f core conftest.err conftest.$ac_objext \
19099 conftest$ac_exeext conftest.$ac_ext
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19102 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19103 if test $gcc_cv_math_func_fabs = yes; then
19105 cat >>confdefs.h <<_ACEOF
19106 #define HAVE_FABS 1
19107 _ACEOF
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19115 $as_echo_n "checking for fabsl... " >&6; }
19116 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19117 $as_echo_n "(cached) " >&6
19118 else
19119 if test x$gcc_no_link = xyes; then
19120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19125 #ifdef HAVE_COMPLEX_H
19126 #include <complex.h>
19127 #endif
19128 #ifdef HAVE_MATH_H
19129 #include <math.h>
19130 #endif
19132 int (*ptr)() = (int (*)())fabsl;
19135 main ()
19137 return 0;
19140 _ACEOF
19141 if ac_fn_c_try_link "$LINENO"; then :
19142 gcc_cv_math_func_fabsl=yes
19143 else
19144 gcc_cv_math_func_fabsl=no
19146 rm -f core conftest.err conftest.$ac_objext \
19147 conftest$ac_exeext conftest.$ac_ext
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19150 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19151 if test $gcc_cv_math_func_fabsl = yes; then
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_FABSL 1
19155 _ACEOF
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19163 $as_echo_n "checking for cabsf... " >&6; }
19164 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19165 $as_echo_n "(cached) " >&6
19166 else
19167 if test x$gcc_no_link = xyes; then
19168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19173 #ifdef HAVE_COMPLEX_H
19174 #include <complex.h>
19175 #endif
19176 #ifdef HAVE_MATH_H
19177 #include <math.h>
19178 #endif
19180 int (*ptr)() = (int (*)())cabsf;
19183 main ()
19185 return 0;
19188 _ACEOF
19189 if ac_fn_c_try_link "$LINENO"; then :
19190 gcc_cv_math_func_cabsf=yes
19191 else
19192 gcc_cv_math_func_cabsf=no
19194 rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19198 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19199 if test $gcc_cv_math_func_cabsf = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define HAVE_CABSF 1
19203 _ACEOF
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19211 $as_echo_n "checking for cabs... " >&6; }
19212 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19213 $as_echo_n "(cached) " >&6
19214 else
19215 if test x$gcc_no_link = xyes; then
19216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219 /* end confdefs.h. */
19221 #ifdef HAVE_COMPLEX_H
19222 #include <complex.h>
19223 #endif
19224 #ifdef HAVE_MATH_H
19225 #include <math.h>
19226 #endif
19228 int (*ptr)() = (int (*)())cabs;
19231 main ()
19233 return 0;
19236 _ACEOF
19237 if ac_fn_c_try_link "$LINENO"; then :
19238 gcc_cv_math_func_cabs=yes
19239 else
19240 gcc_cv_math_func_cabs=no
19242 rm -f core conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19246 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19247 if test $gcc_cv_math_func_cabs = yes; then
19249 cat >>confdefs.h <<_ACEOF
19250 #define HAVE_CABS 1
19251 _ACEOF
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19259 $as_echo_n "checking for cabsl... " >&6; }
19260 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19261 $as_echo_n "(cached) " >&6
19262 else
19263 if test x$gcc_no_link = xyes; then
19264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h. */
19269 #ifdef HAVE_COMPLEX_H
19270 #include <complex.h>
19271 #endif
19272 #ifdef HAVE_MATH_H
19273 #include <math.h>
19274 #endif
19276 int (*ptr)() = (int (*)())cabsl;
19279 main ()
19281 return 0;
19284 _ACEOF
19285 if ac_fn_c_try_link "$LINENO"; then :
19286 gcc_cv_math_func_cabsl=yes
19287 else
19288 gcc_cv_math_func_cabsl=no
19290 rm -f core conftest.err conftest.$ac_objext \
19291 conftest$ac_exeext conftest.$ac_ext
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19294 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19295 if test $gcc_cv_math_func_cabsl = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_CABSL 1
19299 _ACEOF
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19307 $as_echo_n "checking for floorf... " >&6; }
19308 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19309 $as_echo_n "(cached) " >&6
19310 else
19311 if test x$gcc_no_link = xyes; then
19312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19317 #ifdef HAVE_COMPLEX_H
19318 #include <complex.h>
19319 #endif
19320 #ifdef HAVE_MATH_H
19321 #include <math.h>
19322 #endif
19324 int (*ptr)() = (int (*)())floorf;
19327 main ()
19329 return 0;
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334 gcc_cv_math_func_floorf=yes
19335 else
19336 gcc_cv_math_func_floorf=no
19338 rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19342 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19343 if test $gcc_cv_math_func_floorf = yes; then
19345 cat >>confdefs.h <<_ACEOF
19346 #define HAVE_FLOORF 1
19347 _ACEOF
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19355 $as_echo_n "checking for floor... " >&6; }
19356 if test "${gcc_cv_math_func_floor+set}" = set; then :
19357 $as_echo_n "(cached) " >&6
19358 else
19359 if test x$gcc_no_link = xyes; then
19360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19365 #ifdef HAVE_COMPLEX_H
19366 #include <complex.h>
19367 #endif
19368 #ifdef HAVE_MATH_H
19369 #include <math.h>
19370 #endif
19372 int (*ptr)() = (int (*)())floor;
19375 main ()
19377 return 0;
19380 _ACEOF
19381 if ac_fn_c_try_link "$LINENO"; then :
19382 gcc_cv_math_func_floor=yes
19383 else
19384 gcc_cv_math_func_floor=no
19386 rm -f core conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19390 $as_echo "$gcc_cv_math_func_floor" >&6; }
19391 if test $gcc_cv_math_func_floor = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define HAVE_FLOOR 1
19395 _ACEOF
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19403 $as_echo_n "checking for floorl... " >&6; }
19404 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19405 $as_echo_n "(cached) " >&6
19406 else
19407 if test x$gcc_no_link = xyes; then
19408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19413 #ifdef HAVE_COMPLEX_H
19414 #include <complex.h>
19415 #endif
19416 #ifdef HAVE_MATH_H
19417 #include <math.h>
19418 #endif
19420 int (*ptr)() = (int (*)())floorl;
19423 main ()
19425 return 0;
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"; then :
19430 gcc_cv_math_func_floorl=yes
19431 else
19432 gcc_cv_math_func_floorl=no
19434 rm -f core conftest.err conftest.$ac_objext \
19435 conftest$ac_exeext conftest.$ac_ext
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19438 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19439 if test $gcc_cv_math_func_floorl = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_FLOORL 1
19443 _ACEOF
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19451 $as_echo_n "checking for fmodf... " >&6; }
19452 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19453 $as_echo_n "(cached) " >&6
19454 else
19455 if test x$gcc_no_link = xyes; then
19456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19461 #ifdef HAVE_COMPLEX_H
19462 #include <complex.h>
19463 #endif
19464 #ifdef HAVE_MATH_H
19465 #include <math.h>
19466 #endif
19468 int (*ptr)() = (int (*)())fmodf;
19471 main ()
19473 return 0;
19476 _ACEOF
19477 if ac_fn_c_try_link "$LINENO"; then :
19478 gcc_cv_math_func_fmodf=yes
19479 else
19480 gcc_cv_math_func_fmodf=no
19482 rm -f core conftest.err conftest.$ac_objext \
19483 conftest$ac_exeext conftest.$ac_ext
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19486 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19487 if test $gcc_cv_math_func_fmodf = yes; then
19489 cat >>confdefs.h <<_ACEOF
19490 #define HAVE_FMODF 1
19491 _ACEOF
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19499 $as_echo_n "checking for fmod... " >&6; }
19500 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19501 $as_echo_n "(cached) " >&6
19502 else
19503 if test x$gcc_no_link = xyes; then
19504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19509 #ifdef HAVE_COMPLEX_H
19510 #include <complex.h>
19511 #endif
19512 #ifdef HAVE_MATH_H
19513 #include <math.h>
19514 #endif
19516 int (*ptr)() = (int (*)())fmod;
19519 main ()
19521 return 0;
19524 _ACEOF
19525 if ac_fn_c_try_link "$LINENO"; then :
19526 gcc_cv_math_func_fmod=yes
19527 else
19528 gcc_cv_math_func_fmod=no
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19534 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19535 if test $gcc_cv_math_func_fmod = yes; then
19537 cat >>confdefs.h <<_ACEOF
19538 #define HAVE_FMOD 1
19539 _ACEOF
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19547 $as_echo_n "checking for fmodl... " >&6; }
19548 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 if test x$gcc_no_link = xyes; then
19552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19557 #ifdef HAVE_COMPLEX_H
19558 #include <complex.h>
19559 #endif
19560 #ifdef HAVE_MATH_H
19561 #include <math.h>
19562 #endif
19564 int (*ptr)() = (int (*)())fmodl;
19567 main ()
19569 return 0;
19572 _ACEOF
19573 if ac_fn_c_try_link "$LINENO"; then :
19574 gcc_cv_math_func_fmodl=yes
19575 else
19576 gcc_cv_math_func_fmodl=no
19578 rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19582 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19583 if test $gcc_cv_math_func_fmodl = yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_FMODL 1
19587 _ACEOF
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19595 $as_echo_n "checking for frexpf... " >&6; }
19596 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19597 $as_echo_n "(cached) " >&6
19598 else
19599 if test x$gcc_no_link = xyes; then
19600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19605 #ifdef HAVE_COMPLEX_H
19606 #include <complex.h>
19607 #endif
19608 #ifdef HAVE_MATH_H
19609 #include <math.h>
19610 #endif
19612 int (*ptr)() = (int (*)())frexpf;
19615 main ()
19617 return 0;
19620 _ACEOF
19621 if ac_fn_c_try_link "$LINENO"; then :
19622 gcc_cv_math_func_frexpf=yes
19623 else
19624 gcc_cv_math_func_frexpf=no
19626 rm -f core conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19630 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19631 if test $gcc_cv_math_func_frexpf = yes; then
19633 cat >>confdefs.h <<_ACEOF
19634 #define HAVE_FREXPF 1
19635 _ACEOF
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19643 $as_echo_n "checking for frexp... " >&6; }
19644 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19646 else
19647 if test x$gcc_no_link = xyes; then
19648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19653 #ifdef HAVE_COMPLEX_H
19654 #include <complex.h>
19655 #endif
19656 #ifdef HAVE_MATH_H
19657 #include <math.h>
19658 #endif
19660 int (*ptr)() = (int (*)())frexp;
19663 main ()
19665 return 0;
19668 _ACEOF
19669 if ac_fn_c_try_link "$LINENO"; then :
19670 gcc_cv_math_func_frexp=yes
19671 else
19672 gcc_cv_math_func_frexp=no
19674 rm -f core conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19678 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19679 if test $gcc_cv_math_func_frexp = yes; then
19681 cat >>confdefs.h <<_ACEOF
19682 #define HAVE_FREXP 1
19683 _ACEOF
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19691 $as_echo_n "checking for frexpl... " >&6; }
19692 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19693 $as_echo_n "(cached) " >&6
19694 else
19695 if test x$gcc_no_link = xyes; then
19696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19701 #ifdef HAVE_COMPLEX_H
19702 #include <complex.h>
19703 #endif
19704 #ifdef HAVE_MATH_H
19705 #include <math.h>
19706 #endif
19708 int (*ptr)() = (int (*)())frexpl;
19711 main ()
19713 return 0;
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 gcc_cv_math_func_frexpl=yes
19719 else
19720 gcc_cv_math_func_frexpl=no
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19726 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19727 if test $gcc_cv_math_func_frexpl = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define HAVE_FREXPL 1
19731 _ACEOF
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19739 $as_echo_n "checking for hypotf... " >&6; }
19740 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19741 $as_echo_n "(cached) " >&6
19742 else
19743 if test x$gcc_no_link = xyes; then
19744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h. */
19749 #ifdef HAVE_COMPLEX_H
19750 #include <complex.h>
19751 #endif
19752 #ifdef HAVE_MATH_H
19753 #include <math.h>
19754 #endif
19756 int (*ptr)() = (int (*)())hypotf;
19759 main ()
19761 return 0;
19764 _ACEOF
19765 if ac_fn_c_try_link "$LINENO"; then :
19766 gcc_cv_math_func_hypotf=yes
19767 else
19768 gcc_cv_math_func_hypotf=no
19770 rm -f core conftest.err conftest.$ac_objext \
19771 conftest$ac_exeext conftest.$ac_ext
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19774 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19775 if test $gcc_cv_math_func_hypotf = yes; then
19777 cat >>confdefs.h <<_ACEOF
19778 #define HAVE_HYPOTF 1
19779 _ACEOF
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19787 $as_echo_n "checking for hypot... " >&6; }
19788 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19789 $as_echo_n "(cached) " >&6
19790 else
19791 if test x$gcc_no_link = xyes; then
19792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h. */
19797 #ifdef HAVE_COMPLEX_H
19798 #include <complex.h>
19799 #endif
19800 #ifdef HAVE_MATH_H
19801 #include <math.h>
19802 #endif
19804 int (*ptr)() = (int (*)())hypot;
19807 main ()
19809 return 0;
19812 _ACEOF
19813 if ac_fn_c_try_link "$LINENO"; then :
19814 gcc_cv_math_func_hypot=yes
19815 else
19816 gcc_cv_math_func_hypot=no
19818 rm -f core conftest.err conftest.$ac_objext \
19819 conftest$ac_exeext conftest.$ac_ext
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19822 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19823 if test $gcc_cv_math_func_hypot = yes; then
19825 cat >>confdefs.h <<_ACEOF
19826 #define HAVE_HYPOT 1
19827 _ACEOF
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19835 $as_echo_n "checking for hypotl... " >&6; }
19836 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19837 $as_echo_n "(cached) " >&6
19838 else
19839 if test x$gcc_no_link = xyes; then
19840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19845 #ifdef HAVE_COMPLEX_H
19846 #include <complex.h>
19847 #endif
19848 #ifdef HAVE_MATH_H
19849 #include <math.h>
19850 #endif
19852 int (*ptr)() = (int (*)())hypotl;
19855 main ()
19857 return 0;
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 gcc_cv_math_func_hypotl=yes
19863 else
19864 gcc_cv_math_func_hypotl=no
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19870 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19871 if test $gcc_cv_math_func_hypotl = yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_HYPOTL 1
19875 _ACEOF
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19883 $as_echo_n "checking for ldexpf... " >&6; }
19884 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19885 $as_echo_n "(cached) " >&6
19886 else
19887 if test x$gcc_no_link = xyes; then
19888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891 /* end confdefs.h. */
19893 #ifdef HAVE_COMPLEX_H
19894 #include <complex.h>
19895 #endif
19896 #ifdef HAVE_MATH_H
19897 #include <math.h>
19898 #endif
19900 int (*ptr)() = (int (*)())ldexpf;
19903 main ()
19905 return 0;
19908 _ACEOF
19909 if ac_fn_c_try_link "$LINENO"; then :
19910 gcc_cv_math_func_ldexpf=yes
19911 else
19912 gcc_cv_math_func_ldexpf=no
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19918 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19919 if test $gcc_cv_math_func_ldexpf = yes; then
19921 cat >>confdefs.h <<_ACEOF
19922 #define HAVE_LDEXPF 1
19923 _ACEOF
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19931 $as_echo_n "checking for ldexp... " >&6; }
19932 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19933 $as_echo_n "(cached) " >&6
19934 else
19935 if test x$gcc_no_link = xyes; then
19936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19941 #ifdef HAVE_COMPLEX_H
19942 #include <complex.h>
19943 #endif
19944 #ifdef HAVE_MATH_H
19945 #include <math.h>
19946 #endif
19948 int (*ptr)() = (int (*)())ldexp;
19951 main ()
19953 return 0;
19956 _ACEOF
19957 if ac_fn_c_try_link "$LINENO"; then :
19958 gcc_cv_math_func_ldexp=yes
19959 else
19960 gcc_cv_math_func_ldexp=no
19962 rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19966 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19967 if test $gcc_cv_math_func_ldexp = yes; then
19969 cat >>confdefs.h <<_ACEOF
19970 #define HAVE_LDEXP 1
19971 _ACEOF
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19979 $as_echo_n "checking for ldexpl... " >&6; }
19980 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 if test x$gcc_no_link = xyes; then
19984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19989 #ifdef HAVE_COMPLEX_H
19990 #include <complex.h>
19991 #endif
19992 #ifdef HAVE_MATH_H
19993 #include <math.h>
19994 #endif
19996 int (*ptr)() = (int (*)())ldexpl;
19999 main ()
20001 return 0;
20004 _ACEOF
20005 if ac_fn_c_try_link "$LINENO"; then :
20006 gcc_cv_math_func_ldexpl=yes
20007 else
20008 gcc_cv_math_func_ldexpl=no
20010 rm -f core conftest.err conftest.$ac_objext \
20011 conftest$ac_exeext conftest.$ac_ext
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20014 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20015 if test $gcc_cv_math_func_ldexpl = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define HAVE_LDEXPL 1
20019 _ACEOF
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20027 $as_echo_n "checking for logf... " >&6; }
20028 if test "${gcc_cv_math_func_logf+set}" = set; then :
20029 $as_echo_n "(cached) " >&6
20030 else
20031 if test x$gcc_no_link = xyes; then
20032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20037 #ifdef HAVE_COMPLEX_H
20038 #include <complex.h>
20039 #endif
20040 #ifdef HAVE_MATH_H
20041 #include <math.h>
20042 #endif
20044 int (*ptr)() = (int (*)())logf;
20047 main ()
20049 return 0;
20052 _ACEOF
20053 if ac_fn_c_try_link "$LINENO"; then :
20054 gcc_cv_math_func_logf=yes
20055 else
20056 gcc_cv_math_func_logf=no
20058 rm -f core conftest.err conftest.$ac_objext \
20059 conftest$ac_exeext conftest.$ac_ext
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20062 $as_echo "$gcc_cv_math_func_logf" >&6; }
20063 if test $gcc_cv_math_func_logf = yes; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_LOGF 1
20067 _ACEOF
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20075 $as_echo_n "checking for log... " >&6; }
20076 if test "${gcc_cv_math_func_log+set}" = set; then :
20077 $as_echo_n "(cached) " >&6
20078 else
20079 if test x$gcc_no_link = xyes; then
20080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20085 #ifdef HAVE_COMPLEX_H
20086 #include <complex.h>
20087 #endif
20088 #ifdef HAVE_MATH_H
20089 #include <math.h>
20090 #endif
20092 int (*ptr)() = (int (*)())log;
20095 main ()
20097 return 0;
20100 _ACEOF
20101 if ac_fn_c_try_link "$LINENO"; then :
20102 gcc_cv_math_func_log=yes
20103 else
20104 gcc_cv_math_func_log=no
20106 rm -f core conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20110 $as_echo "$gcc_cv_math_func_log" >&6; }
20111 if test $gcc_cv_math_func_log = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define HAVE_LOG 1
20115 _ACEOF
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20123 $as_echo_n "checking for logl... " >&6; }
20124 if test "${gcc_cv_math_func_logl+set}" = set; then :
20125 $as_echo_n "(cached) " >&6
20126 else
20127 if test x$gcc_no_link = xyes; then
20128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20133 #ifdef HAVE_COMPLEX_H
20134 #include <complex.h>
20135 #endif
20136 #ifdef HAVE_MATH_H
20137 #include <math.h>
20138 #endif
20140 int (*ptr)() = (int (*)())logl;
20143 main ()
20145 return 0;
20148 _ACEOF
20149 if ac_fn_c_try_link "$LINENO"; then :
20150 gcc_cv_math_func_logl=yes
20151 else
20152 gcc_cv_math_func_logl=no
20154 rm -f core conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20158 $as_echo "$gcc_cv_math_func_logl" >&6; }
20159 if test $gcc_cv_math_func_logl = yes; then
20161 cat >>confdefs.h <<_ACEOF
20162 #define HAVE_LOGL 1
20163 _ACEOF
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20171 $as_echo_n "checking for clogf... " >&6; }
20172 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20173 $as_echo_n "(cached) " >&6
20174 else
20175 if test x$gcc_no_link = xyes; then
20176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 /* end confdefs.h. */
20181 #ifdef HAVE_COMPLEX_H
20182 #include <complex.h>
20183 #endif
20184 #ifdef HAVE_MATH_H
20185 #include <math.h>
20186 #endif
20188 int (*ptr)() = (int (*)())clogf;
20191 main ()
20193 return 0;
20196 _ACEOF
20197 if ac_fn_c_try_link "$LINENO"; then :
20198 gcc_cv_math_func_clogf=yes
20199 else
20200 gcc_cv_math_func_clogf=no
20202 rm -f core conftest.err conftest.$ac_objext \
20203 conftest$ac_exeext conftest.$ac_ext
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20206 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20207 if test $gcc_cv_math_func_clogf = yes; then
20209 cat >>confdefs.h <<_ACEOF
20210 #define HAVE_CLOGF 1
20211 _ACEOF
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20219 $as_echo_n "checking for clog... " >&6; }
20220 if test "${gcc_cv_math_func_clog+set}" = set; then :
20221 $as_echo_n "(cached) " >&6
20222 else
20223 if test x$gcc_no_link = xyes; then
20224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20229 #ifdef HAVE_COMPLEX_H
20230 #include <complex.h>
20231 #endif
20232 #ifdef HAVE_MATH_H
20233 #include <math.h>
20234 #endif
20236 int (*ptr)() = (int (*)())clog;
20239 main ()
20241 return 0;
20244 _ACEOF
20245 if ac_fn_c_try_link "$LINENO"; then :
20246 gcc_cv_math_func_clog=yes
20247 else
20248 gcc_cv_math_func_clog=no
20250 rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20254 $as_echo "$gcc_cv_math_func_clog" >&6; }
20255 if test $gcc_cv_math_func_clog = yes; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define HAVE_CLOG 1
20259 _ACEOF
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20267 $as_echo_n "checking for clogl... " >&6; }
20268 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20269 $as_echo_n "(cached) " >&6
20270 else
20271 if test x$gcc_no_link = xyes; then
20272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 #ifdef HAVE_COMPLEX_H
20278 #include <complex.h>
20279 #endif
20280 #ifdef HAVE_MATH_H
20281 #include <math.h>
20282 #endif
20284 int (*ptr)() = (int (*)())clogl;
20287 main ()
20289 return 0;
20292 _ACEOF
20293 if ac_fn_c_try_link "$LINENO"; then :
20294 gcc_cv_math_func_clogl=yes
20295 else
20296 gcc_cv_math_func_clogl=no
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20302 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20303 if test $gcc_cv_math_func_clogl = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define HAVE_CLOGL 1
20307 _ACEOF
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20315 $as_echo_n "checking for log10f... " >&6; }
20316 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20317 $as_echo_n "(cached) " >&6
20318 else
20319 if test x$gcc_no_link = xyes; then
20320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20323 /* end confdefs.h. */
20325 #ifdef HAVE_COMPLEX_H
20326 #include <complex.h>
20327 #endif
20328 #ifdef HAVE_MATH_H
20329 #include <math.h>
20330 #endif
20332 int (*ptr)() = (int (*)())log10f;
20335 main ()
20337 return 0;
20340 _ACEOF
20341 if ac_fn_c_try_link "$LINENO"; then :
20342 gcc_cv_math_func_log10f=yes
20343 else
20344 gcc_cv_math_func_log10f=no
20346 rm -f core conftest.err conftest.$ac_objext \
20347 conftest$ac_exeext conftest.$ac_ext
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20350 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20351 if test $gcc_cv_math_func_log10f = yes; then
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_LOG10F 1
20355 _ACEOF
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20363 $as_echo_n "checking for log10... " >&6; }
20364 if test "${gcc_cv_math_func_log10+set}" = set; then :
20365 $as_echo_n "(cached) " >&6
20366 else
20367 if test x$gcc_no_link = xyes; then
20368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20373 #ifdef HAVE_COMPLEX_H
20374 #include <complex.h>
20375 #endif
20376 #ifdef HAVE_MATH_H
20377 #include <math.h>
20378 #endif
20380 int (*ptr)() = (int (*)())log10;
20383 main ()
20385 return 0;
20388 _ACEOF
20389 if ac_fn_c_try_link "$LINENO"; then :
20390 gcc_cv_math_func_log10=yes
20391 else
20392 gcc_cv_math_func_log10=no
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20398 $as_echo "$gcc_cv_math_func_log10" >&6; }
20399 if test $gcc_cv_math_func_log10 = yes; then
20401 cat >>confdefs.h <<_ACEOF
20402 #define HAVE_LOG10 1
20403 _ACEOF
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20411 $as_echo_n "checking for log10l... " >&6; }
20412 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20413 $as_echo_n "(cached) " >&6
20414 else
20415 if test x$gcc_no_link = xyes; then
20416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20421 #ifdef HAVE_COMPLEX_H
20422 #include <complex.h>
20423 #endif
20424 #ifdef HAVE_MATH_H
20425 #include <math.h>
20426 #endif
20428 int (*ptr)() = (int (*)())log10l;
20431 main ()
20433 return 0;
20436 _ACEOF
20437 if ac_fn_c_try_link "$LINENO"; then :
20438 gcc_cv_math_func_log10l=yes
20439 else
20440 gcc_cv_math_func_log10l=no
20442 rm -f core conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20446 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20447 if test $gcc_cv_math_func_log10l = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LOG10L 1
20451 _ACEOF
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20459 $as_echo_n "checking for clog10f... " >&6; }
20460 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 if test x$gcc_no_link = xyes; then
20464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20469 #ifdef HAVE_COMPLEX_H
20470 #include <complex.h>
20471 #endif
20472 #ifdef HAVE_MATH_H
20473 #include <math.h>
20474 #endif
20476 int (*ptr)() = (int (*)())clog10f;
20479 main ()
20481 return 0;
20484 _ACEOF
20485 if ac_fn_c_try_link "$LINENO"; then :
20486 gcc_cv_math_func_clog10f=yes
20487 else
20488 gcc_cv_math_func_clog10f=no
20490 rm -f core conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20494 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20495 if test $gcc_cv_math_func_clog10f = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_CLOG10F 1
20499 _ACEOF
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20507 $as_echo_n "checking for clog10... " >&6; }
20508 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20509 $as_echo_n "(cached) " >&6
20510 else
20511 if test x$gcc_no_link = xyes; then
20512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20517 #ifdef HAVE_COMPLEX_H
20518 #include <complex.h>
20519 #endif
20520 #ifdef HAVE_MATH_H
20521 #include <math.h>
20522 #endif
20524 int (*ptr)() = (int (*)())clog10;
20527 main ()
20529 return 0;
20532 _ACEOF
20533 if ac_fn_c_try_link "$LINENO"; then :
20534 gcc_cv_math_func_clog10=yes
20535 else
20536 gcc_cv_math_func_clog10=no
20538 rm -f core conftest.err conftest.$ac_objext \
20539 conftest$ac_exeext conftest.$ac_ext
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20542 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20543 if test $gcc_cv_math_func_clog10 = yes; then
20545 cat >>confdefs.h <<_ACEOF
20546 #define HAVE_CLOG10 1
20547 _ACEOF
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20555 $as_echo_n "checking for clog10l... " >&6; }
20556 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20557 $as_echo_n "(cached) " >&6
20558 else
20559 if test x$gcc_no_link = xyes; then
20560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563 /* end confdefs.h. */
20565 #ifdef HAVE_COMPLEX_H
20566 #include <complex.h>
20567 #endif
20568 #ifdef HAVE_MATH_H
20569 #include <math.h>
20570 #endif
20572 int (*ptr)() = (int (*)())clog10l;
20575 main ()
20577 return 0;
20580 _ACEOF
20581 if ac_fn_c_try_link "$LINENO"; then :
20582 gcc_cv_math_func_clog10l=yes
20583 else
20584 gcc_cv_math_func_clog10l=no
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20590 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20591 if test $gcc_cv_math_func_clog10l = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_CLOG10L 1
20595 _ACEOF
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20603 $as_echo_n "checking for nextafterf... " >&6; }
20604 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20605 $as_echo_n "(cached) " >&6
20606 else
20607 if test x$gcc_no_link = xyes; then
20608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20613 #ifdef HAVE_COMPLEX_H
20614 #include <complex.h>
20615 #endif
20616 #ifdef HAVE_MATH_H
20617 #include <math.h>
20618 #endif
20620 int (*ptr)() = (int (*)())nextafterf;
20623 main ()
20625 return 0;
20628 _ACEOF
20629 if ac_fn_c_try_link "$LINENO"; then :
20630 gcc_cv_math_func_nextafterf=yes
20631 else
20632 gcc_cv_math_func_nextafterf=no
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20638 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20639 if test $gcc_cv_math_func_nextafterf = yes; then
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_NEXTAFTERF 1
20643 _ACEOF
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20651 $as_echo_n "checking for nextafter... " >&6; }
20652 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20654 else
20655 if test x$gcc_no_link = xyes; then
20656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20661 #ifdef HAVE_COMPLEX_H
20662 #include <complex.h>
20663 #endif
20664 #ifdef HAVE_MATH_H
20665 #include <math.h>
20666 #endif
20668 int (*ptr)() = (int (*)())nextafter;
20671 main ()
20673 return 0;
20676 _ACEOF
20677 if ac_fn_c_try_link "$LINENO"; then :
20678 gcc_cv_math_func_nextafter=yes
20679 else
20680 gcc_cv_math_func_nextafter=no
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20686 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20687 if test $gcc_cv_math_func_nextafter = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_NEXTAFTER 1
20691 _ACEOF
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20699 $as_echo_n "checking for nextafterl... " >&6; }
20700 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 if test x$gcc_no_link = xyes; then
20704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h. */
20709 #ifdef HAVE_COMPLEX_H
20710 #include <complex.h>
20711 #endif
20712 #ifdef HAVE_MATH_H
20713 #include <math.h>
20714 #endif
20716 int (*ptr)() = (int (*)())nextafterl;
20719 main ()
20721 return 0;
20724 _ACEOF
20725 if ac_fn_c_try_link "$LINENO"; then :
20726 gcc_cv_math_func_nextafterl=yes
20727 else
20728 gcc_cv_math_func_nextafterl=no
20730 rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20734 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20735 if test $gcc_cv_math_func_nextafterl = yes; then
20737 cat >>confdefs.h <<_ACEOF
20738 #define HAVE_NEXTAFTERL 1
20739 _ACEOF
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20747 $as_echo_n "checking for powf... " >&6; }
20748 if test "${gcc_cv_math_func_powf+set}" = set; then :
20749 $as_echo_n "(cached) " >&6
20750 else
20751 if test x$gcc_no_link = xyes; then
20752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20757 #ifdef HAVE_COMPLEX_H
20758 #include <complex.h>
20759 #endif
20760 #ifdef HAVE_MATH_H
20761 #include <math.h>
20762 #endif
20764 int (*ptr)() = (int (*)())powf;
20767 main ()
20769 return 0;
20772 _ACEOF
20773 if ac_fn_c_try_link "$LINENO"; then :
20774 gcc_cv_math_func_powf=yes
20775 else
20776 gcc_cv_math_func_powf=no
20778 rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20782 $as_echo "$gcc_cv_math_func_powf" >&6; }
20783 if test $gcc_cv_math_func_powf = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define HAVE_POWF 1
20787 _ACEOF
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20795 $as_echo_n "checking for pow... " >&6; }
20796 if test "${gcc_cv_math_func_pow+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20799 if test x$gcc_no_link = xyes; then
20800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20805 #ifdef HAVE_COMPLEX_H
20806 #include <complex.h>
20807 #endif
20808 #ifdef HAVE_MATH_H
20809 #include <math.h>
20810 #endif
20812 int (*ptr)() = (int (*)())pow;
20815 main ()
20817 return 0;
20820 _ACEOF
20821 if ac_fn_c_try_link "$LINENO"; then :
20822 gcc_cv_math_func_pow=yes
20823 else
20824 gcc_cv_math_func_pow=no
20826 rm -f core conftest.err conftest.$ac_objext \
20827 conftest$ac_exeext conftest.$ac_ext
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20830 $as_echo "$gcc_cv_math_func_pow" >&6; }
20831 if test $gcc_cv_math_func_pow = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_POW 1
20835 _ACEOF
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20843 $as_echo_n "checking for powl... " >&6; }
20844 if test "${gcc_cv_math_func_powl+set}" = set; then :
20845 $as_echo_n "(cached) " >&6
20846 else
20847 if test x$gcc_no_link = xyes; then
20848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h. */
20853 #ifdef HAVE_COMPLEX_H
20854 #include <complex.h>
20855 #endif
20856 #ifdef HAVE_MATH_H
20857 #include <math.h>
20858 #endif
20860 int (*ptr)() = (int (*)())powl;
20863 main ()
20865 return 0;
20868 _ACEOF
20869 if ac_fn_c_try_link "$LINENO"; then :
20870 gcc_cv_math_func_powl=yes
20871 else
20872 gcc_cv_math_func_powl=no
20874 rm -f core conftest.err conftest.$ac_objext \
20875 conftest$ac_exeext conftest.$ac_ext
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20878 $as_echo "$gcc_cv_math_func_powl" >&6; }
20879 if test $gcc_cv_math_func_powl = yes; then
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_POWL 1
20883 _ACEOF
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20891 $as_echo_n "checking for cpowf... " >&6; }
20892 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20893 $as_echo_n "(cached) " >&6
20894 else
20895 if test x$gcc_no_link = xyes; then
20896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20901 #ifdef HAVE_COMPLEX_H
20902 #include <complex.h>
20903 #endif
20904 #ifdef HAVE_MATH_H
20905 #include <math.h>
20906 #endif
20908 int (*ptr)() = (int (*)())cpowf;
20911 main ()
20913 return 0;
20916 _ACEOF
20917 if ac_fn_c_try_link "$LINENO"; then :
20918 gcc_cv_math_func_cpowf=yes
20919 else
20920 gcc_cv_math_func_cpowf=no
20922 rm -f core conftest.err conftest.$ac_objext \
20923 conftest$ac_exeext conftest.$ac_ext
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20926 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20927 if test $gcc_cv_math_func_cpowf = yes; then
20929 cat >>confdefs.h <<_ACEOF
20930 #define HAVE_CPOWF 1
20931 _ACEOF
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20939 $as_echo_n "checking for cpow... " >&6; }
20940 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20941 $as_echo_n "(cached) " >&6
20942 else
20943 if test x$gcc_no_link = xyes; then
20944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h. */
20949 #ifdef HAVE_COMPLEX_H
20950 #include <complex.h>
20951 #endif
20952 #ifdef HAVE_MATH_H
20953 #include <math.h>
20954 #endif
20956 int (*ptr)() = (int (*)())cpow;
20959 main ()
20961 return 0;
20964 _ACEOF
20965 if ac_fn_c_try_link "$LINENO"; then :
20966 gcc_cv_math_func_cpow=yes
20967 else
20968 gcc_cv_math_func_cpow=no
20970 rm -f core conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20974 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20975 if test $gcc_cv_math_func_cpow = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define HAVE_CPOW 1
20979 _ACEOF
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20987 $as_echo_n "checking for cpowl... " >&6; }
20988 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20990 else
20991 if test x$gcc_no_link = xyes; then
20992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
20997 #ifdef HAVE_COMPLEX_H
20998 #include <complex.h>
20999 #endif
21000 #ifdef HAVE_MATH_H
21001 #include <math.h>
21002 #endif
21004 int (*ptr)() = (int (*)())cpowl;
21007 main ()
21009 return 0;
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 gcc_cv_math_func_cpowl=yes
21015 else
21016 gcc_cv_math_func_cpowl=no
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21022 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21023 if test $gcc_cv_math_func_cpowl = yes; then
21025 cat >>confdefs.h <<_ACEOF
21026 #define HAVE_CPOWL 1
21027 _ACEOF
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21035 $as_echo_n "checking for roundf... " >&6; }
21036 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21037 $as_echo_n "(cached) " >&6
21038 else
21039 if test x$gcc_no_link = xyes; then
21040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21045 #ifdef HAVE_COMPLEX_H
21046 #include <complex.h>
21047 #endif
21048 #ifdef HAVE_MATH_H
21049 #include <math.h>
21050 #endif
21052 int (*ptr)() = (int (*)())roundf;
21055 main ()
21057 return 0;
21060 _ACEOF
21061 if ac_fn_c_try_link "$LINENO"; then :
21062 gcc_cv_math_func_roundf=yes
21063 else
21064 gcc_cv_math_func_roundf=no
21066 rm -f core conftest.err conftest.$ac_objext \
21067 conftest$ac_exeext conftest.$ac_ext
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21070 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21071 if test $gcc_cv_math_func_roundf = yes; then
21073 cat >>confdefs.h <<_ACEOF
21074 #define HAVE_ROUNDF 1
21075 _ACEOF
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21083 $as_echo_n "checking for round... " >&6; }
21084 if test "${gcc_cv_math_func_round+set}" = set; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087 if test x$gcc_no_link = xyes; then
21088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21093 #ifdef HAVE_COMPLEX_H
21094 #include <complex.h>
21095 #endif
21096 #ifdef HAVE_MATH_H
21097 #include <math.h>
21098 #endif
21100 int (*ptr)() = (int (*)())round;
21103 main ()
21105 return 0;
21108 _ACEOF
21109 if ac_fn_c_try_link "$LINENO"; then :
21110 gcc_cv_math_func_round=yes
21111 else
21112 gcc_cv_math_func_round=no
21114 rm -f core conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21118 $as_echo "$gcc_cv_math_func_round" >&6; }
21119 if test $gcc_cv_math_func_round = yes; then
21121 cat >>confdefs.h <<_ACEOF
21122 #define HAVE_ROUND 1
21123 _ACEOF
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21131 $as_echo_n "checking for roundl... " >&6; }
21132 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21134 else
21135 if test x$gcc_no_link = xyes; then
21136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h. */
21141 #ifdef HAVE_COMPLEX_H
21142 #include <complex.h>
21143 #endif
21144 #ifdef HAVE_MATH_H
21145 #include <math.h>
21146 #endif
21148 int (*ptr)() = (int (*)())roundl;
21151 main ()
21153 return 0;
21156 _ACEOF
21157 if ac_fn_c_try_link "$LINENO"; then :
21158 gcc_cv_math_func_roundl=yes
21159 else
21160 gcc_cv_math_func_roundl=no
21162 rm -f core conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21166 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21167 if test $gcc_cv_math_func_roundl = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_ROUNDL 1
21171 _ACEOF
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21179 $as_echo_n "checking for lroundf... " >&6; }
21180 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21181 $as_echo_n "(cached) " >&6
21182 else
21183 if test x$gcc_no_link = xyes; then
21184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187 /* end confdefs.h. */
21189 #ifdef HAVE_COMPLEX_H
21190 #include <complex.h>
21191 #endif
21192 #ifdef HAVE_MATH_H
21193 #include <math.h>
21194 #endif
21196 int (*ptr)() = (int (*)())lroundf;
21199 main ()
21201 return 0;
21204 _ACEOF
21205 if ac_fn_c_try_link "$LINENO"; then :
21206 gcc_cv_math_func_lroundf=yes
21207 else
21208 gcc_cv_math_func_lroundf=no
21210 rm -f core conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21214 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21215 if test $gcc_cv_math_func_lroundf = yes; then
21217 cat >>confdefs.h <<_ACEOF
21218 #define HAVE_LROUNDF 1
21219 _ACEOF
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21227 $as_echo_n "checking for lround... " >&6; }
21228 if test "${gcc_cv_math_func_lround+set}" = set; then :
21229 $as_echo_n "(cached) " >&6
21230 else
21231 if test x$gcc_no_link = xyes; then
21232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21235 /* end confdefs.h. */
21237 #ifdef HAVE_COMPLEX_H
21238 #include <complex.h>
21239 #endif
21240 #ifdef HAVE_MATH_H
21241 #include <math.h>
21242 #endif
21244 int (*ptr)() = (int (*)())lround;
21247 main ()
21249 return 0;
21252 _ACEOF
21253 if ac_fn_c_try_link "$LINENO"; then :
21254 gcc_cv_math_func_lround=yes
21255 else
21256 gcc_cv_math_func_lround=no
21258 rm -f core conftest.err conftest.$ac_objext \
21259 conftest$ac_exeext conftest.$ac_ext
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21262 $as_echo "$gcc_cv_math_func_lround" >&6; }
21263 if test $gcc_cv_math_func_lround = yes; then
21265 cat >>confdefs.h <<_ACEOF
21266 #define HAVE_LROUND 1
21267 _ACEOF
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21275 $as_echo_n "checking for lroundl... " >&6; }
21276 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21277 $as_echo_n "(cached) " >&6
21278 else
21279 if test x$gcc_no_link = xyes; then
21280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21283 /* end confdefs.h. */
21285 #ifdef HAVE_COMPLEX_H
21286 #include <complex.h>
21287 #endif
21288 #ifdef HAVE_MATH_H
21289 #include <math.h>
21290 #endif
21292 int (*ptr)() = (int (*)())lroundl;
21295 main ()
21297 return 0;
21300 _ACEOF
21301 if ac_fn_c_try_link "$LINENO"; then :
21302 gcc_cv_math_func_lroundl=yes
21303 else
21304 gcc_cv_math_func_lroundl=no
21306 rm -f core conftest.err conftest.$ac_objext \
21307 conftest$ac_exeext conftest.$ac_ext
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21310 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21311 if test $gcc_cv_math_func_lroundl = yes; then
21313 cat >>confdefs.h <<_ACEOF
21314 #define HAVE_LROUNDL 1
21315 _ACEOF
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21323 $as_echo_n "checking for llroundf... " >&6; }
21324 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21325 $as_echo_n "(cached) " >&6
21326 else
21327 if test x$gcc_no_link = xyes; then
21328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21333 #ifdef HAVE_COMPLEX_H
21334 #include <complex.h>
21335 #endif
21336 #ifdef HAVE_MATH_H
21337 #include <math.h>
21338 #endif
21340 int (*ptr)() = (int (*)())llroundf;
21343 main ()
21345 return 0;
21348 _ACEOF
21349 if ac_fn_c_try_link "$LINENO"; then :
21350 gcc_cv_math_func_llroundf=yes
21351 else
21352 gcc_cv_math_func_llroundf=no
21354 rm -f core conftest.err conftest.$ac_objext \
21355 conftest$ac_exeext conftest.$ac_ext
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21358 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21359 if test $gcc_cv_math_func_llroundf = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define HAVE_LLROUNDF 1
21363 _ACEOF
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21371 $as_echo_n "checking for llround... " >&6; }
21372 if test "${gcc_cv_math_func_llround+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21374 else
21375 if test x$gcc_no_link = xyes; then
21376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21381 #ifdef HAVE_COMPLEX_H
21382 #include <complex.h>
21383 #endif
21384 #ifdef HAVE_MATH_H
21385 #include <math.h>
21386 #endif
21388 int (*ptr)() = (int (*)())llround;
21391 main ()
21393 return 0;
21396 _ACEOF
21397 if ac_fn_c_try_link "$LINENO"; then :
21398 gcc_cv_math_func_llround=yes
21399 else
21400 gcc_cv_math_func_llround=no
21402 rm -f core conftest.err conftest.$ac_objext \
21403 conftest$ac_exeext conftest.$ac_ext
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21406 $as_echo "$gcc_cv_math_func_llround" >&6; }
21407 if test $gcc_cv_math_func_llround = yes; then
21409 cat >>confdefs.h <<_ACEOF
21410 #define HAVE_LLROUND 1
21411 _ACEOF
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21419 $as_echo_n "checking for llroundl... " >&6; }
21420 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21422 else
21423 if test x$gcc_no_link = xyes; then
21424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21429 #ifdef HAVE_COMPLEX_H
21430 #include <complex.h>
21431 #endif
21432 #ifdef HAVE_MATH_H
21433 #include <math.h>
21434 #endif
21436 int (*ptr)() = (int (*)())llroundl;
21439 main ()
21441 return 0;
21444 _ACEOF
21445 if ac_fn_c_try_link "$LINENO"; then :
21446 gcc_cv_math_func_llroundl=yes
21447 else
21448 gcc_cv_math_func_llroundl=no
21450 rm -f core conftest.err conftest.$ac_objext \
21451 conftest$ac_exeext conftest.$ac_ext
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21454 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21455 if test $gcc_cv_math_func_llroundl = yes; then
21457 cat >>confdefs.h <<_ACEOF
21458 #define HAVE_LLROUNDL 1
21459 _ACEOF
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21467 $as_echo_n "checking for scalbnf... " >&6; }
21468 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21469 $as_echo_n "(cached) " >&6
21470 else
21471 if test x$gcc_no_link = xyes; then
21472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21477 #ifdef HAVE_COMPLEX_H
21478 #include <complex.h>
21479 #endif
21480 #ifdef HAVE_MATH_H
21481 #include <math.h>
21482 #endif
21484 int (*ptr)() = (int (*)())scalbnf;
21487 main ()
21489 return 0;
21492 _ACEOF
21493 if ac_fn_c_try_link "$LINENO"; then :
21494 gcc_cv_math_func_scalbnf=yes
21495 else
21496 gcc_cv_math_func_scalbnf=no
21498 rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21502 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21503 if test $gcc_cv_math_func_scalbnf = yes; then
21505 cat >>confdefs.h <<_ACEOF
21506 #define HAVE_SCALBNF 1
21507 _ACEOF
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21515 $as_echo_n "checking for scalbn... " >&6; }
21516 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21517 $as_echo_n "(cached) " >&6
21518 else
21519 if test x$gcc_no_link = xyes; then
21520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21525 #ifdef HAVE_COMPLEX_H
21526 #include <complex.h>
21527 #endif
21528 #ifdef HAVE_MATH_H
21529 #include <math.h>
21530 #endif
21532 int (*ptr)() = (int (*)())scalbn;
21535 main ()
21537 return 0;
21540 _ACEOF
21541 if ac_fn_c_try_link "$LINENO"; then :
21542 gcc_cv_math_func_scalbn=yes
21543 else
21544 gcc_cv_math_func_scalbn=no
21546 rm -f core conftest.err conftest.$ac_objext \
21547 conftest$ac_exeext conftest.$ac_ext
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21550 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21551 if test $gcc_cv_math_func_scalbn = yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define HAVE_SCALBN 1
21555 _ACEOF
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21563 $as_echo_n "checking for scalbnl... " >&6; }
21564 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21566 else
21567 if test x$gcc_no_link = xyes; then
21568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21573 #ifdef HAVE_COMPLEX_H
21574 #include <complex.h>
21575 #endif
21576 #ifdef HAVE_MATH_H
21577 #include <math.h>
21578 #endif
21580 int (*ptr)() = (int (*)())scalbnl;
21583 main ()
21585 return 0;
21588 _ACEOF
21589 if ac_fn_c_try_link "$LINENO"; then :
21590 gcc_cv_math_func_scalbnl=yes
21591 else
21592 gcc_cv_math_func_scalbnl=no
21594 rm -f core conftest.err conftest.$ac_objext \
21595 conftest$ac_exeext conftest.$ac_ext
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21598 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21599 if test $gcc_cv_math_func_scalbnl = yes; then
21601 cat >>confdefs.h <<_ACEOF
21602 #define HAVE_SCALBNL 1
21603 _ACEOF
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21611 $as_echo_n "checking for sinf... " >&6; }
21612 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21613 $as_echo_n "(cached) " >&6
21614 else
21615 if test x$gcc_no_link = xyes; then
21616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h. */
21621 #ifdef HAVE_COMPLEX_H
21622 #include <complex.h>
21623 #endif
21624 #ifdef HAVE_MATH_H
21625 #include <math.h>
21626 #endif
21628 int (*ptr)() = (int (*)())sinf;
21631 main ()
21633 return 0;
21636 _ACEOF
21637 if ac_fn_c_try_link "$LINENO"; then :
21638 gcc_cv_math_func_sinf=yes
21639 else
21640 gcc_cv_math_func_sinf=no
21642 rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21646 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21647 if test $gcc_cv_math_func_sinf = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define HAVE_SINF 1
21651 _ACEOF
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21659 $as_echo_n "checking for sin... " >&6; }
21660 if test "${gcc_cv_math_func_sin+set}" = set; then :
21661 $as_echo_n "(cached) " >&6
21662 else
21663 if test x$gcc_no_link = xyes; then
21664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667 /* end confdefs.h. */
21669 #ifdef HAVE_COMPLEX_H
21670 #include <complex.h>
21671 #endif
21672 #ifdef HAVE_MATH_H
21673 #include <math.h>
21674 #endif
21676 int (*ptr)() = (int (*)())sin;
21679 main ()
21681 return 0;
21684 _ACEOF
21685 if ac_fn_c_try_link "$LINENO"; then :
21686 gcc_cv_math_func_sin=yes
21687 else
21688 gcc_cv_math_func_sin=no
21690 rm -f core conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext conftest.$ac_ext
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21694 $as_echo "$gcc_cv_math_func_sin" >&6; }
21695 if test $gcc_cv_math_func_sin = yes; then
21697 cat >>confdefs.h <<_ACEOF
21698 #define HAVE_SIN 1
21699 _ACEOF
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21707 $as_echo_n "checking for sinl... " >&6; }
21708 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21709 $as_echo_n "(cached) " >&6
21710 else
21711 if test x$gcc_no_link = xyes; then
21712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h. */
21717 #ifdef HAVE_COMPLEX_H
21718 #include <complex.h>
21719 #endif
21720 #ifdef HAVE_MATH_H
21721 #include <math.h>
21722 #endif
21724 int (*ptr)() = (int (*)())sinl;
21727 main ()
21729 return 0;
21732 _ACEOF
21733 if ac_fn_c_try_link "$LINENO"; then :
21734 gcc_cv_math_func_sinl=yes
21735 else
21736 gcc_cv_math_func_sinl=no
21738 rm -f core conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21742 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21743 if test $gcc_cv_math_func_sinl = yes; then
21745 cat >>confdefs.h <<_ACEOF
21746 #define HAVE_SINL 1
21747 _ACEOF
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21755 $as_echo_n "checking for csinf... " >&6; }
21756 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21757 $as_echo_n "(cached) " >&6
21758 else
21759 if test x$gcc_no_link = xyes; then
21760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21765 #ifdef HAVE_COMPLEX_H
21766 #include <complex.h>
21767 #endif
21768 #ifdef HAVE_MATH_H
21769 #include <math.h>
21770 #endif
21772 int (*ptr)() = (int (*)())csinf;
21775 main ()
21777 return 0;
21780 _ACEOF
21781 if ac_fn_c_try_link "$LINENO"; then :
21782 gcc_cv_math_func_csinf=yes
21783 else
21784 gcc_cv_math_func_csinf=no
21786 rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21790 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21791 if test $gcc_cv_math_func_csinf = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794 #define HAVE_CSINF 1
21795 _ACEOF
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21803 $as_echo_n "checking for csin... " >&6; }
21804 if test "${gcc_cv_math_func_csin+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21806 else
21807 if test x$gcc_no_link = xyes; then
21808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21813 #ifdef HAVE_COMPLEX_H
21814 #include <complex.h>
21815 #endif
21816 #ifdef HAVE_MATH_H
21817 #include <math.h>
21818 #endif
21820 int (*ptr)() = (int (*)())csin;
21823 main ()
21825 return 0;
21828 _ACEOF
21829 if ac_fn_c_try_link "$LINENO"; then :
21830 gcc_cv_math_func_csin=yes
21831 else
21832 gcc_cv_math_func_csin=no
21834 rm -f core conftest.err conftest.$ac_objext \
21835 conftest$ac_exeext conftest.$ac_ext
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21838 $as_echo "$gcc_cv_math_func_csin" >&6; }
21839 if test $gcc_cv_math_func_csin = yes; then
21841 cat >>confdefs.h <<_ACEOF
21842 #define HAVE_CSIN 1
21843 _ACEOF
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21851 $as_echo_n "checking for csinl... " >&6; }
21852 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21854 else
21855 if test x$gcc_no_link = xyes; then
21856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21861 #ifdef HAVE_COMPLEX_H
21862 #include <complex.h>
21863 #endif
21864 #ifdef HAVE_MATH_H
21865 #include <math.h>
21866 #endif
21868 int (*ptr)() = (int (*)())csinl;
21871 main ()
21873 return 0;
21876 _ACEOF
21877 if ac_fn_c_try_link "$LINENO"; then :
21878 gcc_cv_math_func_csinl=yes
21879 else
21880 gcc_cv_math_func_csinl=no
21882 rm -f core conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext conftest.$ac_ext
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21886 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21887 if test $gcc_cv_math_func_csinl = yes; then
21889 cat >>confdefs.h <<_ACEOF
21890 #define HAVE_CSINL 1
21891 _ACEOF
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21899 $as_echo_n "checking for sinhf... " >&6; }
21900 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21901 $as_echo_n "(cached) " >&6
21902 else
21903 if test x$gcc_no_link = xyes; then
21904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21907 /* end confdefs.h. */
21909 #ifdef HAVE_COMPLEX_H
21910 #include <complex.h>
21911 #endif
21912 #ifdef HAVE_MATH_H
21913 #include <math.h>
21914 #endif
21916 int (*ptr)() = (int (*)())sinhf;
21919 main ()
21921 return 0;
21924 _ACEOF
21925 if ac_fn_c_try_link "$LINENO"; then :
21926 gcc_cv_math_func_sinhf=yes
21927 else
21928 gcc_cv_math_func_sinhf=no
21930 rm -f core conftest.err conftest.$ac_objext \
21931 conftest$ac_exeext conftest.$ac_ext
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21934 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21935 if test $gcc_cv_math_func_sinhf = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_SINHF 1
21939 _ACEOF
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21947 $as_echo_n "checking for sinh... " >&6; }
21948 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21949 $as_echo_n "(cached) " >&6
21950 else
21951 if test x$gcc_no_link = xyes; then
21952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 #ifdef HAVE_COMPLEX_H
21958 #include <complex.h>
21959 #endif
21960 #ifdef HAVE_MATH_H
21961 #include <math.h>
21962 #endif
21964 int (*ptr)() = (int (*)())sinh;
21967 main ()
21969 return 0;
21972 _ACEOF
21973 if ac_fn_c_try_link "$LINENO"; then :
21974 gcc_cv_math_func_sinh=yes
21975 else
21976 gcc_cv_math_func_sinh=no
21978 rm -f core conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21982 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21983 if test $gcc_cv_math_func_sinh = yes; then
21985 cat >>confdefs.h <<_ACEOF
21986 #define HAVE_SINH 1
21987 _ACEOF
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21995 $as_echo_n "checking for sinhl... " >&6; }
21996 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21997 $as_echo_n "(cached) " >&6
21998 else
21999 if test x$gcc_no_link = xyes; then
22000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22003 /* end confdefs.h. */
22005 #ifdef HAVE_COMPLEX_H
22006 #include <complex.h>
22007 #endif
22008 #ifdef HAVE_MATH_H
22009 #include <math.h>
22010 #endif
22012 int (*ptr)() = (int (*)())sinhl;
22015 main ()
22017 return 0;
22020 _ACEOF
22021 if ac_fn_c_try_link "$LINENO"; then :
22022 gcc_cv_math_func_sinhl=yes
22023 else
22024 gcc_cv_math_func_sinhl=no
22026 rm -f core conftest.err conftest.$ac_objext \
22027 conftest$ac_exeext conftest.$ac_ext
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22030 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22031 if test $gcc_cv_math_func_sinhl = yes; then
22033 cat >>confdefs.h <<_ACEOF
22034 #define HAVE_SINHL 1
22035 _ACEOF
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22043 $as_echo_n "checking for csinhf... " >&6; }
22044 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 if test x$gcc_no_link = xyes; then
22048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22053 #ifdef HAVE_COMPLEX_H
22054 #include <complex.h>
22055 #endif
22056 #ifdef HAVE_MATH_H
22057 #include <math.h>
22058 #endif
22060 int (*ptr)() = (int (*)())csinhf;
22063 main ()
22065 return 0;
22068 _ACEOF
22069 if ac_fn_c_try_link "$LINENO"; then :
22070 gcc_cv_math_func_csinhf=yes
22071 else
22072 gcc_cv_math_func_csinhf=no
22074 rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22078 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22079 if test $gcc_cv_math_func_csinhf = yes; then
22081 cat >>confdefs.h <<_ACEOF
22082 #define HAVE_CSINHF 1
22083 _ACEOF
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22091 $as_echo_n "checking for csinh... " >&6; }
22092 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22093 $as_echo_n "(cached) " >&6
22094 else
22095 if test x$gcc_no_link = xyes; then
22096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22101 #ifdef HAVE_COMPLEX_H
22102 #include <complex.h>
22103 #endif
22104 #ifdef HAVE_MATH_H
22105 #include <math.h>
22106 #endif
22108 int (*ptr)() = (int (*)())csinh;
22111 main ()
22113 return 0;
22116 _ACEOF
22117 if ac_fn_c_try_link "$LINENO"; then :
22118 gcc_cv_math_func_csinh=yes
22119 else
22120 gcc_cv_math_func_csinh=no
22122 rm -f core conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22126 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22127 if test $gcc_cv_math_func_csinh = yes; then
22129 cat >>confdefs.h <<_ACEOF
22130 #define HAVE_CSINH 1
22131 _ACEOF
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22139 $as_echo_n "checking for csinhl... " >&6; }
22140 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22141 $as_echo_n "(cached) " >&6
22142 else
22143 if test x$gcc_no_link = xyes; then
22144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h. */
22149 #ifdef HAVE_COMPLEX_H
22150 #include <complex.h>
22151 #endif
22152 #ifdef HAVE_MATH_H
22153 #include <math.h>
22154 #endif
22156 int (*ptr)() = (int (*)())csinhl;
22159 main ()
22161 return 0;
22164 _ACEOF
22165 if ac_fn_c_try_link "$LINENO"; then :
22166 gcc_cv_math_func_csinhl=yes
22167 else
22168 gcc_cv_math_func_csinhl=no
22170 rm -f core conftest.err conftest.$ac_objext \
22171 conftest$ac_exeext conftest.$ac_ext
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22174 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22175 if test $gcc_cv_math_func_csinhl = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define HAVE_CSINHL 1
22179 _ACEOF
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22187 $as_echo_n "checking for sqrtf... " >&6; }
22188 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22189 $as_echo_n "(cached) " >&6
22190 else
22191 if test x$gcc_no_link = xyes; then
22192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22195 /* end confdefs.h. */
22197 #ifdef HAVE_COMPLEX_H
22198 #include <complex.h>
22199 #endif
22200 #ifdef HAVE_MATH_H
22201 #include <math.h>
22202 #endif
22204 int (*ptr)() = (int (*)())sqrtf;
22207 main ()
22209 return 0;
22212 _ACEOF
22213 if ac_fn_c_try_link "$LINENO"; then :
22214 gcc_cv_math_func_sqrtf=yes
22215 else
22216 gcc_cv_math_func_sqrtf=no
22218 rm -f core conftest.err conftest.$ac_objext \
22219 conftest$ac_exeext conftest.$ac_ext
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22222 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22223 if test $gcc_cv_math_func_sqrtf = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define HAVE_SQRTF 1
22227 _ACEOF
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22235 $as_echo_n "checking for sqrt... " >&6; }
22236 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239 if test x$gcc_no_link = xyes; then
22240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22243 /* end confdefs.h. */
22245 #ifdef HAVE_COMPLEX_H
22246 #include <complex.h>
22247 #endif
22248 #ifdef HAVE_MATH_H
22249 #include <math.h>
22250 #endif
22252 int (*ptr)() = (int (*)())sqrt;
22255 main ()
22257 return 0;
22260 _ACEOF
22261 if ac_fn_c_try_link "$LINENO"; then :
22262 gcc_cv_math_func_sqrt=yes
22263 else
22264 gcc_cv_math_func_sqrt=no
22266 rm -f core conftest.err conftest.$ac_objext \
22267 conftest$ac_exeext conftest.$ac_ext
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22270 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22271 if test $gcc_cv_math_func_sqrt = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274 #define HAVE_SQRT 1
22275 _ACEOF
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22283 $as_echo_n "checking for sqrtl... " >&6; }
22284 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22285 $as_echo_n "(cached) " >&6
22286 else
22287 if test x$gcc_no_link = xyes; then
22288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291 /* end confdefs.h. */
22293 #ifdef HAVE_COMPLEX_H
22294 #include <complex.h>
22295 #endif
22296 #ifdef HAVE_MATH_H
22297 #include <math.h>
22298 #endif
22300 int (*ptr)() = (int (*)())sqrtl;
22303 main ()
22305 return 0;
22308 _ACEOF
22309 if ac_fn_c_try_link "$LINENO"; then :
22310 gcc_cv_math_func_sqrtl=yes
22311 else
22312 gcc_cv_math_func_sqrtl=no
22314 rm -f core conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22318 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22319 if test $gcc_cv_math_func_sqrtl = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define HAVE_SQRTL 1
22323 _ACEOF
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22331 $as_echo_n "checking for csqrtf... " >&6; }
22332 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22333 $as_echo_n "(cached) " >&6
22334 else
22335 if test x$gcc_no_link = xyes; then
22336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h. */
22341 #ifdef HAVE_COMPLEX_H
22342 #include <complex.h>
22343 #endif
22344 #ifdef HAVE_MATH_H
22345 #include <math.h>
22346 #endif
22348 int (*ptr)() = (int (*)())csqrtf;
22351 main ()
22353 return 0;
22356 _ACEOF
22357 if ac_fn_c_try_link "$LINENO"; then :
22358 gcc_cv_math_func_csqrtf=yes
22359 else
22360 gcc_cv_math_func_csqrtf=no
22362 rm -f core conftest.err conftest.$ac_objext \
22363 conftest$ac_exeext conftest.$ac_ext
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22366 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22367 if test $gcc_cv_math_func_csqrtf = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_CSQRTF 1
22371 _ACEOF
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22379 $as_echo_n "checking for csqrt... " >&6; }
22380 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22381 $as_echo_n "(cached) " >&6
22382 else
22383 if test x$gcc_no_link = xyes; then
22384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22389 #ifdef HAVE_COMPLEX_H
22390 #include <complex.h>
22391 #endif
22392 #ifdef HAVE_MATH_H
22393 #include <math.h>
22394 #endif
22396 int (*ptr)() = (int (*)())csqrt;
22399 main ()
22401 return 0;
22404 _ACEOF
22405 if ac_fn_c_try_link "$LINENO"; then :
22406 gcc_cv_math_func_csqrt=yes
22407 else
22408 gcc_cv_math_func_csqrt=no
22410 rm -f core conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22414 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22415 if test $gcc_cv_math_func_csqrt = yes; then
22417 cat >>confdefs.h <<_ACEOF
22418 #define HAVE_CSQRT 1
22419 _ACEOF
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22427 $as_echo_n "checking for csqrtl... " >&6; }
22428 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 if test x$gcc_no_link = xyes; then
22432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22435 /* end confdefs.h. */
22437 #ifdef HAVE_COMPLEX_H
22438 #include <complex.h>
22439 #endif
22440 #ifdef HAVE_MATH_H
22441 #include <math.h>
22442 #endif
22444 int (*ptr)() = (int (*)())csqrtl;
22447 main ()
22449 return 0;
22452 _ACEOF
22453 if ac_fn_c_try_link "$LINENO"; then :
22454 gcc_cv_math_func_csqrtl=yes
22455 else
22456 gcc_cv_math_func_csqrtl=no
22458 rm -f core conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22462 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22463 if test $gcc_cv_math_func_csqrtl = yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_CSQRTL 1
22467 _ACEOF
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22475 $as_echo_n "checking for tanf... " >&6; }
22476 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22477 $as_echo_n "(cached) " >&6
22478 else
22479 if test x$gcc_no_link = xyes; then
22480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h. */
22485 #ifdef HAVE_COMPLEX_H
22486 #include <complex.h>
22487 #endif
22488 #ifdef HAVE_MATH_H
22489 #include <math.h>
22490 #endif
22492 int (*ptr)() = (int (*)())tanf;
22495 main ()
22497 return 0;
22500 _ACEOF
22501 if ac_fn_c_try_link "$LINENO"; then :
22502 gcc_cv_math_func_tanf=yes
22503 else
22504 gcc_cv_math_func_tanf=no
22506 rm -f core conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext conftest.$ac_ext
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22510 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22511 if test $gcc_cv_math_func_tanf = yes; then
22513 cat >>confdefs.h <<_ACEOF
22514 #define HAVE_TANF 1
22515 _ACEOF
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22523 $as_echo_n "checking for tan... " >&6; }
22524 if test "${gcc_cv_math_func_tan+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 if test x$gcc_no_link = xyes; then
22528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22533 #ifdef HAVE_COMPLEX_H
22534 #include <complex.h>
22535 #endif
22536 #ifdef HAVE_MATH_H
22537 #include <math.h>
22538 #endif
22540 int (*ptr)() = (int (*)())tan;
22543 main ()
22545 return 0;
22548 _ACEOF
22549 if ac_fn_c_try_link "$LINENO"; then :
22550 gcc_cv_math_func_tan=yes
22551 else
22552 gcc_cv_math_func_tan=no
22554 rm -f core conftest.err conftest.$ac_objext \
22555 conftest$ac_exeext conftest.$ac_ext
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22558 $as_echo "$gcc_cv_math_func_tan" >&6; }
22559 if test $gcc_cv_math_func_tan = yes; then
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_TAN 1
22563 _ACEOF
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22571 $as_echo_n "checking for tanl... " >&6; }
22572 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 if test x$gcc_no_link = xyes; then
22576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h. */
22581 #ifdef HAVE_COMPLEX_H
22582 #include <complex.h>
22583 #endif
22584 #ifdef HAVE_MATH_H
22585 #include <math.h>
22586 #endif
22588 int (*ptr)() = (int (*)())tanl;
22591 main ()
22593 return 0;
22596 _ACEOF
22597 if ac_fn_c_try_link "$LINENO"; then :
22598 gcc_cv_math_func_tanl=yes
22599 else
22600 gcc_cv_math_func_tanl=no
22602 rm -f core conftest.err conftest.$ac_objext \
22603 conftest$ac_exeext conftest.$ac_ext
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22606 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22607 if test $gcc_cv_math_func_tanl = yes; then
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_TANL 1
22611 _ACEOF
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22619 $as_echo_n "checking for ctanf... " >&6; }
22620 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 if test x$gcc_no_link = xyes; then
22624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h. */
22629 #ifdef HAVE_COMPLEX_H
22630 #include <complex.h>
22631 #endif
22632 #ifdef HAVE_MATH_H
22633 #include <math.h>
22634 #endif
22636 int (*ptr)() = (int (*)())ctanf;
22639 main ()
22641 return 0;
22644 _ACEOF
22645 if ac_fn_c_try_link "$LINENO"; then :
22646 gcc_cv_math_func_ctanf=yes
22647 else
22648 gcc_cv_math_func_ctanf=no
22650 rm -f core conftest.err conftest.$ac_objext \
22651 conftest$ac_exeext conftest.$ac_ext
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22654 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22655 if test $gcc_cv_math_func_ctanf = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define HAVE_CTANF 1
22659 _ACEOF
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22667 $as_echo_n "checking for ctan... " >&6; }
22668 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22669 $as_echo_n "(cached) " >&6
22670 else
22671 if test x$gcc_no_link = xyes; then
22672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h. */
22677 #ifdef HAVE_COMPLEX_H
22678 #include <complex.h>
22679 #endif
22680 #ifdef HAVE_MATH_H
22681 #include <math.h>
22682 #endif
22684 int (*ptr)() = (int (*)())ctan;
22687 main ()
22689 return 0;
22692 _ACEOF
22693 if ac_fn_c_try_link "$LINENO"; then :
22694 gcc_cv_math_func_ctan=yes
22695 else
22696 gcc_cv_math_func_ctan=no
22698 rm -f core conftest.err conftest.$ac_objext \
22699 conftest$ac_exeext conftest.$ac_ext
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22702 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22703 if test $gcc_cv_math_func_ctan = yes; then
22705 cat >>confdefs.h <<_ACEOF
22706 #define HAVE_CTAN 1
22707 _ACEOF
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22715 $as_echo_n "checking for ctanl... " >&6; }
22716 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22718 else
22719 if test x$gcc_no_link = xyes; then
22720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22723 /* end confdefs.h. */
22725 #ifdef HAVE_COMPLEX_H
22726 #include <complex.h>
22727 #endif
22728 #ifdef HAVE_MATH_H
22729 #include <math.h>
22730 #endif
22732 int (*ptr)() = (int (*)())ctanl;
22735 main ()
22737 return 0;
22740 _ACEOF
22741 if ac_fn_c_try_link "$LINENO"; then :
22742 gcc_cv_math_func_ctanl=yes
22743 else
22744 gcc_cv_math_func_ctanl=no
22746 rm -f core conftest.err conftest.$ac_objext \
22747 conftest$ac_exeext conftest.$ac_ext
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22750 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22751 if test $gcc_cv_math_func_ctanl = yes; then
22753 cat >>confdefs.h <<_ACEOF
22754 #define HAVE_CTANL 1
22755 _ACEOF
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22763 $as_echo_n "checking for tanhf... " >&6; }
22764 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22766 else
22767 if test x$gcc_no_link = xyes; then
22768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22773 #ifdef HAVE_COMPLEX_H
22774 #include <complex.h>
22775 #endif
22776 #ifdef HAVE_MATH_H
22777 #include <math.h>
22778 #endif
22780 int (*ptr)() = (int (*)())tanhf;
22783 main ()
22785 return 0;
22788 _ACEOF
22789 if ac_fn_c_try_link "$LINENO"; then :
22790 gcc_cv_math_func_tanhf=yes
22791 else
22792 gcc_cv_math_func_tanhf=no
22794 rm -f core conftest.err conftest.$ac_objext \
22795 conftest$ac_exeext conftest.$ac_ext
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22798 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22799 if test $gcc_cv_math_func_tanhf = yes; then
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_TANHF 1
22803 _ACEOF
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22811 $as_echo_n "checking for tanh... " >&6; }
22812 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22813 $as_echo_n "(cached) " >&6
22814 else
22815 if test x$gcc_no_link = xyes; then
22816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h. */
22821 #ifdef HAVE_COMPLEX_H
22822 #include <complex.h>
22823 #endif
22824 #ifdef HAVE_MATH_H
22825 #include <math.h>
22826 #endif
22828 int (*ptr)() = (int (*)())tanh;
22831 main ()
22833 return 0;
22836 _ACEOF
22837 if ac_fn_c_try_link "$LINENO"; then :
22838 gcc_cv_math_func_tanh=yes
22839 else
22840 gcc_cv_math_func_tanh=no
22842 rm -f core conftest.err conftest.$ac_objext \
22843 conftest$ac_exeext conftest.$ac_ext
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22846 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22847 if test $gcc_cv_math_func_tanh = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_TANH 1
22851 _ACEOF
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22859 $as_echo_n "checking for tanhl... " >&6; }
22860 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22862 else
22863 if test x$gcc_no_link = xyes; then
22864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22867 /* end confdefs.h. */
22869 #ifdef HAVE_COMPLEX_H
22870 #include <complex.h>
22871 #endif
22872 #ifdef HAVE_MATH_H
22873 #include <math.h>
22874 #endif
22876 int (*ptr)() = (int (*)())tanhl;
22879 main ()
22881 return 0;
22884 _ACEOF
22885 if ac_fn_c_try_link "$LINENO"; then :
22886 gcc_cv_math_func_tanhl=yes
22887 else
22888 gcc_cv_math_func_tanhl=no
22890 rm -f core conftest.err conftest.$ac_objext \
22891 conftest$ac_exeext conftest.$ac_ext
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22894 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22895 if test $gcc_cv_math_func_tanhl = yes; then
22897 cat >>confdefs.h <<_ACEOF
22898 #define HAVE_TANHL 1
22899 _ACEOF
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22907 $as_echo_n "checking for ctanhf... " >&6; }
22908 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22910 else
22911 if test x$gcc_no_link = xyes; then
22912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22915 /* end confdefs.h. */
22917 #ifdef HAVE_COMPLEX_H
22918 #include <complex.h>
22919 #endif
22920 #ifdef HAVE_MATH_H
22921 #include <math.h>
22922 #endif
22924 int (*ptr)() = (int (*)())ctanhf;
22927 main ()
22929 return 0;
22932 _ACEOF
22933 if ac_fn_c_try_link "$LINENO"; then :
22934 gcc_cv_math_func_ctanhf=yes
22935 else
22936 gcc_cv_math_func_ctanhf=no
22938 rm -f core conftest.err conftest.$ac_objext \
22939 conftest$ac_exeext conftest.$ac_ext
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22942 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22943 if test $gcc_cv_math_func_ctanhf = yes; then
22945 cat >>confdefs.h <<_ACEOF
22946 #define HAVE_CTANHF 1
22947 _ACEOF
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22955 $as_echo_n "checking for ctanh... " >&6; }
22956 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22957 $as_echo_n "(cached) " >&6
22958 else
22959 if test x$gcc_no_link = xyes; then
22960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22963 /* end confdefs.h. */
22965 #ifdef HAVE_COMPLEX_H
22966 #include <complex.h>
22967 #endif
22968 #ifdef HAVE_MATH_H
22969 #include <math.h>
22970 #endif
22972 int (*ptr)() = (int (*)())ctanh;
22975 main ()
22977 return 0;
22980 _ACEOF
22981 if ac_fn_c_try_link "$LINENO"; then :
22982 gcc_cv_math_func_ctanh=yes
22983 else
22984 gcc_cv_math_func_ctanh=no
22986 rm -f core conftest.err conftest.$ac_objext \
22987 conftest$ac_exeext conftest.$ac_ext
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22990 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22991 if test $gcc_cv_math_func_ctanh = yes; then
22993 cat >>confdefs.h <<_ACEOF
22994 #define HAVE_CTANH 1
22995 _ACEOF
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23003 $as_echo_n "checking for ctanhl... " >&6; }
23004 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23006 else
23007 if test x$gcc_no_link = xyes; then
23008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23013 #ifdef HAVE_COMPLEX_H
23014 #include <complex.h>
23015 #endif
23016 #ifdef HAVE_MATH_H
23017 #include <math.h>
23018 #endif
23020 int (*ptr)() = (int (*)())ctanhl;
23023 main ()
23025 return 0;
23028 _ACEOF
23029 if ac_fn_c_try_link "$LINENO"; then :
23030 gcc_cv_math_func_ctanhl=yes
23031 else
23032 gcc_cv_math_func_ctanhl=no
23034 rm -f core conftest.err conftest.$ac_objext \
23035 conftest$ac_exeext conftest.$ac_ext
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23038 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23039 if test $gcc_cv_math_func_ctanhl = yes; then
23041 cat >>confdefs.h <<_ACEOF
23042 #define HAVE_CTANHL 1
23043 _ACEOF
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23051 $as_echo_n "checking for truncf... " >&6; }
23052 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23053 $as_echo_n "(cached) " >&6
23054 else
23055 if test x$gcc_no_link = xyes; then
23056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059 /* end confdefs.h. */
23061 #ifdef HAVE_COMPLEX_H
23062 #include <complex.h>
23063 #endif
23064 #ifdef HAVE_MATH_H
23065 #include <math.h>
23066 #endif
23068 int (*ptr)() = (int (*)())truncf;
23071 main ()
23073 return 0;
23076 _ACEOF
23077 if ac_fn_c_try_link "$LINENO"; then :
23078 gcc_cv_math_func_truncf=yes
23079 else
23080 gcc_cv_math_func_truncf=no
23082 rm -f core conftest.err conftest.$ac_objext \
23083 conftest$ac_exeext conftest.$ac_ext
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23086 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23087 if test $gcc_cv_math_func_truncf = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_TRUNCF 1
23091 _ACEOF
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23099 $as_echo_n "checking for trunc... " >&6; }
23100 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102 else
23103 if test x$gcc_no_link = xyes; then
23104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h. */
23109 #ifdef HAVE_COMPLEX_H
23110 #include <complex.h>
23111 #endif
23112 #ifdef HAVE_MATH_H
23113 #include <math.h>
23114 #endif
23116 int (*ptr)() = (int (*)())trunc;
23119 main ()
23121 return 0;
23124 _ACEOF
23125 if ac_fn_c_try_link "$LINENO"; then :
23126 gcc_cv_math_func_trunc=yes
23127 else
23128 gcc_cv_math_func_trunc=no
23130 rm -f core conftest.err conftest.$ac_objext \
23131 conftest$ac_exeext conftest.$ac_ext
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23134 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23135 if test $gcc_cv_math_func_trunc = yes; then
23137 cat >>confdefs.h <<_ACEOF
23138 #define HAVE_TRUNC 1
23139 _ACEOF
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23147 $as_echo_n "checking for truncl... " >&6; }
23148 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23149 $as_echo_n "(cached) " >&6
23150 else
23151 if test x$gcc_no_link = xyes; then
23152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h. */
23157 #ifdef HAVE_COMPLEX_H
23158 #include <complex.h>
23159 #endif
23160 #ifdef HAVE_MATH_H
23161 #include <math.h>
23162 #endif
23164 int (*ptr)() = (int (*)())truncl;
23167 main ()
23169 return 0;
23172 _ACEOF
23173 if ac_fn_c_try_link "$LINENO"; then :
23174 gcc_cv_math_func_truncl=yes
23175 else
23176 gcc_cv_math_func_truncl=no
23178 rm -f core conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23182 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23183 if test $gcc_cv_math_func_truncl = yes; then
23185 cat >>confdefs.h <<_ACEOF
23186 #define HAVE_TRUNCL 1
23187 _ACEOF
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23195 $as_echo_n "checking for erff... " >&6; }
23196 if test "${gcc_cv_math_func_erff+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23199 if test x$gcc_no_link = xyes; then
23200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23205 #ifdef HAVE_COMPLEX_H
23206 #include <complex.h>
23207 #endif
23208 #ifdef HAVE_MATH_H
23209 #include <math.h>
23210 #endif
23212 int (*ptr)() = (int (*)())erff;
23215 main ()
23217 return 0;
23220 _ACEOF
23221 if ac_fn_c_try_link "$LINENO"; then :
23222 gcc_cv_math_func_erff=yes
23223 else
23224 gcc_cv_math_func_erff=no
23226 rm -f core conftest.err conftest.$ac_objext \
23227 conftest$ac_exeext conftest.$ac_ext
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23230 $as_echo "$gcc_cv_math_func_erff" >&6; }
23231 if test $gcc_cv_math_func_erff = yes; then
23233 cat >>confdefs.h <<_ACEOF
23234 #define HAVE_ERFF 1
23235 _ACEOF
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23243 $as_echo_n "checking for erf... " >&6; }
23244 if test "${gcc_cv_math_func_erf+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 if test x$gcc_no_link = xyes; then
23248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251 /* end confdefs.h. */
23253 #ifdef HAVE_COMPLEX_H
23254 #include <complex.h>
23255 #endif
23256 #ifdef HAVE_MATH_H
23257 #include <math.h>
23258 #endif
23260 int (*ptr)() = (int (*)())erf;
23263 main ()
23265 return 0;
23268 _ACEOF
23269 if ac_fn_c_try_link "$LINENO"; then :
23270 gcc_cv_math_func_erf=yes
23271 else
23272 gcc_cv_math_func_erf=no
23274 rm -f core conftest.err conftest.$ac_objext \
23275 conftest$ac_exeext conftest.$ac_ext
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23278 $as_echo "$gcc_cv_math_func_erf" >&6; }
23279 if test $gcc_cv_math_func_erf = yes; then
23281 cat >>confdefs.h <<_ACEOF
23282 #define HAVE_ERF 1
23283 _ACEOF
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23291 $as_echo_n "checking for erfl... " >&6; }
23292 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23294 else
23295 if test x$gcc_no_link = xyes; then
23296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299 /* end confdefs.h. */
23301 #ifdef HAVE_COMPLEX_H
23302 #include <complex.h>
23303 #endif
23304 #ifdef HAVE_MATH_H
23305 #include <math.h>
23306 #endif
23308 int (*ptr)() = (int (*)())erfl;
23311 main ()
23313 return 0;
23316 _ACEOF
23317 if ac_fn_c_try_link "$LINENO"; then :
23318 gcc_cv_math_func_erfl=yes
23319 else
23320 gcc_cv_math_func_erfl=no
23322 rm -f core conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23326 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23327 if test $gcc_cv_math_func_erfl = yes; then
23329 cat >>confdefs.h <<_ACEOF
23330 #define HAVE_ERFL 1
23331 _ACEOF
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23339 $as_echo_n "checking for erfcf... " >&6; }
23340 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23341 $as_echo_n "(cached) " >&6
23342 else
23343 if test x$gcc_no_link = xyes; then
23344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347 /* end confdefs.h. */
23349 #ifdef HAVE_COMPLEX_H
23350 #include <complex.h>
23351 #endif
23352 #ifdef HAVE_MATH_H
23353 #include <math.h>
23354 #endif
23356 int (*ptr)() = (int (*)())erfcf;
23359 main ()
23361 return 0;
23364 _ACEOF
23365 if ac_fn_c_try_link "$LINENO"; then :
23366 gcc_cv_math_func_erfcf=yes
23367 else
23368 gcc_cv_math_func_erfcf=no
23370 rm -f core conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23374 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23375 if test $gcc_cv_math_func_erfcf = yes; then
23377 cat >>confdefs.h <<_ACEOF
23378 #define HAVE_ERFCF 1
23379 _ACEOF
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23387 $as_echo_n "checking for erfc... " >&6; }
23388 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23389 $as_echo_n "(cached) " >&6
23390 else
23391 if test x$gcc_no_link = xyes; then
23392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23397 #ifdef HAVE_COMPLEX_H
23398 #include <complex.h>
23399 #endif
23400 #ifdef HAVE_MATH_H
23401 #include <math.h>
23402 #endif
23404 int (*ptr)() = (int (*)())erfc;
23407 main ()
23409 return 0;
23412 _ACEOF
23413 if ac_fn_c_try_link "$LINENO"; then :
23414 gcc_cv_math_func_erfc=yes
23415 else
23416 gcc_cv_math_func_erfc=no
23418 rm -f core conftest.err conftest.$ac_objext \
23419 conftest$ac_exeext conftest.$ac_ext
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23422 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23423 if test $gcc_cv_math_func_erfc = yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define HAVE_ERFC 1
23427 _ACEOF
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23435 $as_echo_n "checking for erfcl... " >&6; }
23436 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23437 $as_echo_n "(cached) " >&6
23438 else
23439 if test x$gcc_no_link = xyes; then
23440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443 /* end confdefs.h. */
23445 #ifdef HAVE_COMPLEX_H
23446 #include <complex.h>
23447 #endif
23448 #ifdef HAVE_MATH_H
23449 #include <math.h>
23450 #endif
23452 int (*ptr)() = (int (*)())erfcl;
23455 main ()
23457 return 0;
23460 _ACEOF
23461 if ac_fn_c_try_link "$LINENO"; then :
23462 gcc_cv_math_func_erfcl=yes
23463 else
23464 gcc_cv_math_func_erfcl=no
23466 rm -f core conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23470 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23471 if test $gcc_cv_math_func_erfcl = yes; then
23473 cat >>confdefs.h <<_ACEOF
23474 #define HAVE_ERFCL 1
23475 _ACEOF
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23483 $as_echo_n "checking for j0f... " >&6; }
23484 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23485 $as_echo_n "(cached) " >&6
23486 else
23487 if test x$gcc_no_link = xyes; then
23488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491 /* end confdefs.h. */
23493 #ifdef HAVE_COMPLEX_H
23494 #include <complex.h>
23495 #endif
23496 #ifdef HAVE_MATH_H
23497 #include <math.h>
23498 #endif
23500 int (*ptr)() = (int (*)())j0f;
23503 main ()
23505 return 0;
23508 _ACEOF
23509 if ac_fn_c_try_link "$LINENO"; then :
23510 gcc_cv_math_func_j0f=yes
23511 else
23512 gcc_cv_math_func_j0f=no
23514 rm -f core conftest.err conftest.$ac_objext \
23515 conftest$ac_exeext conftest.$ac_ext
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23518 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23519 if test $gcc_cv_math_func_j0f = yes; then
23521 cat >>confdefs.h <<_ACEOF
23522 #define HAVE_J0F 1
23523 _ACEOF
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23531 $as_echo_n "checking for j0... " >&6; }
23532 if test "${gcc_cv_math_func_j0+set}" = set; then :
23533 $as_echo_n "(cached) " >&6
23534 else
23535 if test x$gcc_no_link = xyes; then
23536 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23541 #ifdef HAVE_COMPLEX_H
23542 #include <complex.h>
23543 #endif
23544 #ifdef HAVE_MATH_H
23545 #include <math.h>
23546 #endif
23548 int (*ptr)() = (int (*)())j0;
23551 main ()
23553 return 0;
23556 _ACEOF
23557 if ac_fn_c_try_link "$LINENO"; then :
23558 gcc_cv_math_func_j0=yes
23559 else
23560 gcc_cv_math_func_j0=no
23562 rm -f core conftest.err conftest.$ac_objext \
23563 conftest$ac_exeext conftest.$ac_ext
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23566 $as_echo "$gcc_cv_math_func_j0" >&6; }
23567 if test $gcc_cv_math_func_j0 = yes; then
23569 cat >>confdefs.h <<_ACEOF
23570 #define HAVE_J0 1
23571 _ACEOF
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23579 $as_echo_n "checking for j0l... " >&6; }
23580 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23581 $as_echo_n "(cached) " >&6
23582 else
23583 if test x$gcc_no_link = xyes; then
23584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23587 /* end confdefs.h. */
23589 #ifdef HAVE_COMPLEX_H
23590 #include <complex.h>
23591 #endif
23592 #ifdef HAVE_MATH_H
23593 #include <math.h>
23594 #endif
23596 int (*ptr)() = (int (*)())j0l;
23599 main ()
23601 return 0;
23604 _ACEOF
23605 if ac_fn_c_try_link "$LINENO"; then :
23606 gcc_cv_math_func_j0l=yes
23607 else
23608 gcc_cv_math_func_j0l=no
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23614 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23615 if test $gcc_cv_math_func_j0l = yes; then
23617 cat >>confdefs.h <<_ACEOF
23618 #define HAVE_J0L 1
23619 _ACEOF
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23627 $as_echo_n "checking for j1f... " >&6; }
23628 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23630 else
23631 if test x$gcc_no_link = xyes; then
23632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23635 /* end confdefs.h. */
23637 #ifdef HAVE_COMPLEX_H
23638 #include <complex.h>
23639 #endif
23640 #ifdef HAVE_MATH_H
23641 #include <math.h>
23642 #endif
23644 int (*ptr)() = (int (*)())j1f;
23647 main ()
23649 return 0;
23652 _ACEOF
23653 if ac_fn_c_try_link "$LINENO"; then :
23654 gcc_cv_math_func_j1f=yes
23655 else
23656 gcc_cv_math_func_j1f=no
23658 rm -f core conftest.err conftest.$ac_objext \
23659 conftest$ac_exeext conftest.$ac_ext
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23662 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23663 if test $gcc_cv_math_func_j1f = yes; then
23665 cat >>confdefs.h <<_ACEOF
23666 #define HAVE_J1F 1
23667 _ACEOF
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23675 $as_echo_n "checking for j1... " >&6; }
23676 if test "${gcc_cv_math_func_j1+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23678 else
23679 if test x$gcc_no_link = xyes; then
23680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23685 #ifdef HAVE_COMPLEX_H
23686 #include <complex.h>
23687 #endif
23688 #ifdef HAVE_MATH_H
23689 #include <math.h>
23690 #endif
23692 int (*ptr)() = (int (*)())j1;
23695 main ()
23697 return 0;
23700 _ACEOF
23701 if ac_fn_c_try_link "$LINENO"; then :
23702 gcc_cv_math_func_j1=yes
23703 else
23704 gcc_cv_math_func_j1=no
23706 rm -f core conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23710 $as_echo "$gcc_cv_math_func_j1" >&6; }
23711 if test $gcc_cv_math_func_j1 = yes; then
23713 cat >>confdefs.h <<_ACEOF
23714 #define HAVE_J1 1
23715 _ACEOF
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23723 $as_echo_n "checking for j1l... " >&6; }
23724 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 if test x$gcc_no_link = xyes; then
23728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h. */
23733 #ifdef HAVE_COMPLEX_H
23734 #include <complex.h>
23735 #endif
23736 #ifdef HAVE_MATH_H
23737 #include <math.h>
23738 #endif
23740 int (*ptr)() = (int (*)())j1l;
23743 main ()
23745 return 0;
23748 _ACEOF
23749 if ac_fn_c_try_link "$LINENO"; then :
23750 gcc_cv_math_func_j1l=yes
23751 else
23752 gcc_cv_math_func_j1l=no
23754 rm -f core conftest.err conftest.$ac_objext \
23755 conftest$ac_exeext conftest.$ac_ext
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23758 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23759 if test $gcc_cv_math_func_j1l = yes; then
23761 cat >>confdefs.h <<_ACEOF
23762 #define HAVE_J1L 1
23763 _ACEOF
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23771 $as_echo_n "checking for jnf... " >&6; }
23772 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23774 else
23775 if test x$gcc_no_link = xyes; then
23776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23779 /* end confdefs.h. */
23781 #ifdef HAVE_COMPLEX_H
23782 #include <complex.h>
23783 #endif
23784 #ifdef HAVE_MATH_H
23785 #include <math.h>
23786 #endif
23788 int (*ptr)() = (int (*)())jnf;
23791 main ()
23793 return 0;
23796 _ACEOF
23797 if ac_fn_c_try_link "$LINENO"; then :
23798 gcc_cv_math_func_jnf=yes
23799 else
23800 gcc_cv_math_func_jnf=no
23802 rm -f core conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23806 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23807 if test $gcc_cv_math_func_jnf = yes; then
23809 cat >>confdefs.h <<_ACEOF
23810 #define HAVE_JNF 1
23811 _ACEOF
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23819 $as_echo_n "checking for jn... " >&6; }
23820 if test "${gcc_cv_math_func_jn+set}" = set; then :
23821 $as_echo_n "(cached) " >&6
23822 else
23823 if test x$gcc_no_link = xyes; then
23824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23827 /* end confdefs.h. */
23829 #ifdef HAVE_COMPLEX_H
23830 #include <complex.h>
23831 #endif
23832 #ifdef HAVE_MATH_H
23833 #include <math.h>
23834 #endif
23836 int (*ptr)() = (int (*)())jn;
23839 main ()
23841 return 0;
23844 _ACEOF
23845 if ac_fn_c_try_link "$LINENO"; then :
23846 gcc_cv_math_func_jn=yes
23847 else
23848 gcc_cv_math_func_jn=no
23850 rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23854 $as_echo "$gcc_cv_math_func_jn" >&6; }
23855 if test $gcc_cv_math_func_jn = yes; then
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_JN 1
23859 _ACEOF
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23867 $as_echo_n "checking for jnl... " >&6; }
23868 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23869 $as_echo_n "(cached) " >&6
23870 else
23871 if test x$gcc_no_link = xyes; then
23872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23875 /* end confdefs.h. */
23877 #ifdef HAVE_COMPLEX_H
23878 #include <complex.h>
23879 #endif
23880 #ifdef HAVE_MATH_H
23881 #include <math.h>
23882 #endif
23884 int (*ptr)() = (int (*)())jnl;
23887 main ()
23889 return 0;
23892 _ACEOF
23893 if ac_fn_c_try_link "$LINENO"; then :
23894 gcc_cv_math_func_jnl=yes
23895 else
23896 gcc_cv_math_func_jnl=no
23898 rm -f core conftest.err conftest.$ac_objext \
23899 conftest$ac_exeext conftest.$ac_ext
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23902 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23903 if test $gcc_cv_math_func_jnl = yes; then
23905 cat >>confdefs.h <<_ACEOF
23906 #define HAVE_JNL 1
23907 _ACEOF
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23915 $as_echo_n "checking for y0f... " >&6; }
23916 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23917 $as_echo_n "(cached) " >&6
23918 else
23919 if test x$gcc_no_link = xyes; then
23920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23923 /* end confdefs.h. */
23925 #ifdef HAVE_COMPLEX_H
23926 #include <complex.h>
23927 #endif
23928 #ifdef HAVE_MATH_H
23929 #include <math.h>
23930 #endif
23932 int (*ptr)() = (int (*)())y0f;
23935 main ()
23937 return 0;
23940 _ACEOF
23941 if ac_fn_c_try_link "$LINENO"; then :
23942 gcc_cv_math_func_y0f=yes
23943 else
23944 gcc_cv_math_func_y0f=no
23946 rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23950 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23951 if test $gcc_cv_math_func_y0f = yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define HAVE_Y0F 1
23955 _ACEOF
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23963 $as_echo_n "checking for y0... " >&6; }
23964 if test "${gcc_cv_math_func_y0+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23966 else
23967 if test x$gcc_no_link = xyes; then
23968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971 /* end confdefs.h. */
23973 #ifdef HAVE_COMPLEX_H
23974 #include <complex.h>
23975 #endif
23976 #ifdef HAVE_MATH_H
23977 #include <math.h>
23978 #endif
23980 int (*ptr)() = (int (*)())y0;
23983 main ()
23985 return 0;
23988 _ACEOF
23989 if ac_fn_c_try_link "$LINENO"; then :
23990 gcc_cv_math_func_y0=yes
23991 else
23992 gcc_cv_math_func_y0=no
23994 rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23998 $as_echo "$gcc_cv_math_func_y0" >&6; }
23999 if test $gcc_cv_math_func_y0 = yes; then
24001 cat >>confdefs.h <<_ACEOF
24002 #define HAVE_Y0 1
24003 _ACEOF
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24011 $as_echo_n "checking for y0l... " >&6; }
24012 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24013 $as_echo_n "(cached) " >&6
24014 else
24015 if test x$gcc_no_link = xyes; then
24016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24019 /* end confdefs.h. */
24021 #ifdef HAVE_COMPLEX_H
24022 #include <complex.h>
24023 #endif
24024 #ifdef HAVE_MATH_H
24025 #include <math.h>
24026 #endif
24028 int (*ptr)() = (int (*)())y0l;
24031 main ()
24033 return 0;
24036 _ACEOF
24037 if ac_fn_c_try_link "$LINENO"; then :
24038 gcc_cv_math_func_y0l=yes
24039 else
24040 gcc_cv_math_func_y0l=no
24042 rm -f core conftest.err conftest.$ac_objext \
24043 conftest$ac_exeext conftest.$ac_ext
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24046 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24047 if test $gcc_cv_math_func_y0l = yes; then
24049 cat >>confdefs.h <<_ACEOF
24050 #define HAVE_Y0L 1
24051 _ACEOF
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24059 $as_echo_n "checking for y1f... " >&6; }
24060 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24061 $as_echo_n "(cached) " >&6
24062 else
24063 if test x$gcc_no_link = xyes; then
24064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h. */
24069 #ifdef HAVE_COMPLEX_H
24070 #include <complex.h>
24071 #endif
24072 #ifdef HAVE_MATH_H
24073 #include <math.h>
24074 #endif
24076 int (*ptr)() = (int (*)())y1f;
24079 main ()
24081 return 0;
24084 _ACEOF
24085 if ac_fn_c_try_link "$LINENO"; then :
24086 gcc_cv_math_func_y1f=yes
24087 else
24088 gcc_cv_math_func_y1f=no
24090 rm -f core conftest.err conftest.$ac_objext \
24091 conftest$ac_exeext conftest.$ac_ext
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24094 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24095 if test $gcc_cv_math_func_y1f = yes; then
24097 cat >>confdefs.h <<_ACEOF
24098 #define HAVE_Y1F 1
24099 _ACEOF
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24107 $as_echo_n "checking for y1... " >&6; }
24108 if test "${gcc_cv_math_func_y1+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24110 else
24111 if test x$gcc_no_link = xyes; then
24112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24115 /* end confdefs.h. */
24117 #ifdef HAVE_COMPLEX_H
24118 #include <complex.h>
24119 #endif
24120 #ifdef HAVE_MATH_H
24121 #include <math.h>
24122 #endif
24124 int (*ptr)() = (int (*)())y1;
24127 main ()
24129 return 0;
24132 _ACEOF
24133 if ac_fn_c_try_link "$LINENO"; then :
24134 gcc_cv_math_func_y1=yes
24135 else
24136 gcc_cv_math_func_y1=no
24138 rm -f core conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24142 $as_echo "$gcc_cv_math_func_y1" >&6; }
24143 if test $gcc_cv_math_func_y1 = yes; then
24145 cat >>confdefs.h <<_ACEOF
24146 #define HAVE_Y1 1
24147 _ACEOF
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24155 $as_echo_n "checking for y1l... " >&6; }
24156 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24158 else
24159 if test x$gcc_no_link = xyes; then
24160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24163 /* end confdefs.h. */
24165 #ifdef HAVE_COMPLEX_H
24166 #include <complex.h>
24167 #endif
24168 #ifdef HAVE_MATH_H
24169 #include <math.h>
24170 #endif
24172 int (*ptr)() = (int (*)())y1l;
24175 main ()
24177 return 0;
24180 _ACEOF
24181 if ac_fn_c_try_link "$LINENO"; then :
24182 gcc_cv_math_func_y1l=yes
24183 else
24184 gcc_cv_math_func_y1l=no
24186 rm -f core conftest.err conftest.$ac_objext \
24187 conftest$ac_exeext conftest.$ac_ext
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24190 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24191 if test $gcc_cv_math_func_y1l = yes; then
24193 cat >>confdefs.h <<_ACEOF
24194 #define HAVE_Y1L 1
24195 _ACEOF
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24203 $as_echo_n "checking for ynf... " >&6; }
24204 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24207 if test x$gcc_no_link = xyes; then
24208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h. */
24213 #ifdef HAVE_COMPLEX_H
24214 #include <complex.h>
24215 #endif
24216 #ifdef HAVE_MATH_H
24217 #include <math.h>
24218 #endif
24220 int (*ptr)() = (int (*)())ynf;
24223 main ()
24225 return 0;
24228 _ACEOF
24229 if ac_fn_c_try_link "$LINENO"; then :
24230 gcc_cv_math_func_ynf=yes
24231 else
24232 gcc_cv_math_func_ynf=no
24234 rm -f core conftest.err conftest.$ac_objext \
24235 conftest$ac_exeext conftest.$ac_ext
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24238 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24239 if test $gcc_cv_math_func_ynf = yes; then
24241 cat >>confdefs.h <<_ACEOF
24242 #define HAVE_YNF 1
24243 _ACEOF
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24251 $as_echo_n "checking for yn... " >&6; }
24252 if test "${gcc_cv_math_func_yn+set}" = set; then :
24253 $as_echo_n "(cached) " >&6
24254 else
24255 if test x$gcc_no_link = xyes; then
24256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24259 /* end confdefs.h. */
24261 #ifdef HAVE_COMPLEX_H
24262 #include <complex.h>
24263 #endif
24264 #ifdef HAVE_MATH_H
24265 #include <math.h>
24266 #endif
24268 int (*ptr)() = (int (*)())yn;
24271 main ()
24273 return 0;
24276 _ACEOF
24277 if ac_fn_c_try_link "$LINENO"; then :
24278 gcc_cv_math_func_yn=yes
24279 else
24280 gcc_cv_math_func_yn=no
24282 rm -f core conftest.err conftest.$ac_objext \
24283 conftest$ac_exeext conftest.$ac_ext
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24286 $as_echo "$gcc_cv_math_func_yn" >&6; }
24287 if test $gcc_cv_math_func_yn = yes; then
24289 cat >>confdefs.h <<_ACEOF
24290 #define HAVE_YN 1
24291 _ACEOF
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24299 $as_echo_n "checking for ynl... " >&6; }
24300 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24301 $as_echo_n "(cached) " >&6
24302 else
24303 if test x$gcc_no_link = xyes; then
24304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24307 /* end confdefs.h. */
24309 #ifdef HAVE_COMPLEX_H
24310 #include <complex.h>
24311 #endif
24312 #ifdef HAVE_MATH_H
24313 #include <math.h>
24314 #endif
24316 int (*ptr)() = (int (*)())ynl;
24319 main ()
24321 return 0;
24324 _ACEOF
24325 if ac_fn_c_try_link "$LINENO"; then :
24326 gcc_cv_math_func_ynl=yes
24327 else
24328 gcc_cv_math_func_ynl=no
24330 rm -f core conftest.err conftest.$ac_objext \
24331 conftest$ac_exeext conftest.$ac_ext
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24334 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24335 if test $gcc_cv_math_func_ynl = yes; then
24337 cat >>confdefs.h <<_ACEOF
24338 #define HAVE_YNL 1
24339 _ACEOF
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24347 $as_echo_n "checking for tgamma... " >&6; }
24348 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24350 else
24351 if test x$gcc_no_link = xyes; then
24352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24355 /* end confdefs.h. */
24357 #ifdef HAVE_COMPLEX_H
24358 #include <complex.h>
24359 #endif
24360 #ifdef HAVE_MATH_H
24361 #include <math.h>
24362 #endif
24364 int (*ptr)() = (int (*)())tgamma;
24367 main ()
24369 return 0;
24372 _ACEOF
24373 if ac_fn_c_try_link "$LINENO"; then :
24374 gcc_cv_math_func_tgamma=yes
24375 else
24376 gcc_cv_math_func_tgamma=no
24378 rm -f core conftest.err conftest.$ac_objext \
24379 conftest$ac_exeext conftest.$ac_ext
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24382 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24383 if test $gcc_cv_math_func_tgamma = yes; then
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_TGAMMA 1
24387 _ACEOF
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24395 $as_echo_n "checking for tgammaf... " >&6; }
24396 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24397 $as_echo_n "(cached) " >&6
24398 else
24399 if test x$gcc_no_link = xyes; then
24400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24405 #ifdef HAVE_COMPLEX_H
24406 #include <complex.h>
24407 #endif
24408 #ifdef HAVE_MATH_H
24409 #include <math.h>
24410 #endif
24412 int (*ptr)() = (int (*)())tgammaf;
24415 main ()
24417 return 0;
24420 _ACEOF
24421 if ac_fn_c_try_link "$LINENO"; then :
24422 gcc_cv_math_func_tgammaf=yes
24423 else
24424 gcc_cv_math_func_tgammaf=no
24426 rm -f core conftest.err conftest.$ac_objext \
24427 conftest$ac_exeext conftest.$ac_ext
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24430 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24431 if test $gcc_cv_math_func_tgammaf = yes; then
24433 cat >>confdefs.h <<_ACEOF
24434 #define HAVE_TGAMMAF 1
24435 _ACEOF
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24443 $as_echo_n "checking for tgammal... " >&6; }
24444 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24445 $as_echo_n "(cached) " >&6
24446 else
24447 if test x$gcc_no_link = xyes; then
24448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24453 #ifdef HAVE_COMPLEX_H
24454 #include <complex.h>
24455 #endif
24456 #ifdef HAVE_MATH_H
24457 #include <math.h>
24458 #endif
24460 int (*ptr)() = (int (*)())tgammal;
24463 main ()
24465 return 0;
24468 _ACEOF
24469 if ac_fn_c_try_link "$LINENO"; then :
24470 gcc_cv_math_func_tgammal=yes
24471 else
24472 gcc_cv_math_func_tgammal=no
24474 rm -f core conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24478 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24479 if test $gcc_cv_math_func_tgammal = yes; then
24481 cat >>confdefs.h <<_ACEOF
24482 #define HAVE_TGAMMAL 1
24483 _ACEOF
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24491 $as_echo_n "checking for lgamma... " >&6; }
24492 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 if test x$gcc_no_link = xyes; then
24496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h. */
24501 #ifdef HAVE_COMPLEX_H
24502 #include <complex.h>
24503 #endif
24504 #ifdef HAVE_MATH_H
24505 #include <math.h>
24506 #endif
24508 int (*ptr)() = (int (*)())lgamma;
24511 main ()
24513 return 0;
24516 _ACEOF
24517 if ac_fn_c_try_link "$LINENO"; then :
24518 gcc_cv_math_func_lgamma=yes
24519 else
24520 gcc_cv_math_func_lgamma=no
24522 rm -f core conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24526 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24527 if test $gcc_cv_math_func_lgamma = yes; then
24529 cat >>confdefs.h <<_ACEOF
24530 #define HAVE_LGAMMA 1
24531 _ACEOF
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24539 $as_echo_n "checking for lgammaf... " >&6; }
24540 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543 if test x$gcc_no_link = xyes; then
24544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547 /* end confdefs.h. */
24549 #ifdef HAVE_COMPLEX_H
24550 #include <complex.h>
24551 #endif
24552 #ifdef HAVE_MATH_H
24553 #include <math.h>
24554 #endif
24556 int (*ptr)() = (int (*)())lgammaf;
24559 main ()
24561 return 0;
24564 _ACEOF
24565 if ac_fn_c_try_link "$LINENO"; then :
24566 gcc_cv_math_func_lgammaf=yes
24567 else
24568 gcc_cv_math_func_lgammaf=no
24570 rm -f core conftest.err conftest.$ac_objext \
24571 conftest$ac_exeext conftest.$ac_ext
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24574 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24575 if test $gcc_cv_math_func_lgammaf = yes; then
24577 cat >>confdefs.h <<_ACEOF
24578 #define HAVE_LGAMMAF 1
24579 _ACEOF
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24587 $as_echo_n "checking for lgammal... " >&6; }
24588 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24589 $as_echo_n "(cached) " >&6
24590 else
24591 if test x$gcc_no_link = xyes; then
24592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h. */
24597 #ifdef HAVE_COMPLEX_H
24598 #include <complex.h>
24599 #endif
24600 #ifdef HAVE_MATH_H
24601 #include <math.h>
24602 #endif
24604 int (*ptr)() = (int (*)())lgammal;
24607 main ()
24609 return 0;
24612 _ACEOF
24613 if ac_fn_c_try_link "$LINENO"; then :
24614 gcc_cv_math_func_lgammal=yes
24615 else
24616 gcc_cv_math_func_lgammal=no
24618 rm -f core conftest.err conftest.$ac_objext \
24619 conftest$ac_exeext conftest.$ac_ext
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24622 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24623 if test $gcc_cv_math_func_lgammal = yes; then
24625 cat >>confdefs.h <<_ACEOF
24626 #define HAVE_LGAMMAL 1
24627 _ACEOF
24632 # Check for GFORTRAN_C99_1.1 funcs
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24637 $as_echo_n "checking for cacos... " >&6; }
24638 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24639 $as_echo_n "(cached) " >&6
24640 else
24641 if test x$gcc_no_link = xyes; then
24642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24645 /* end confdefs.h. */
24647 #ifdef HAVE_COMPLEX_H
24648 #include <complex.h>
24649 #endif
24650 #ifdef HAVE_MATH_H
24651 #include <math.h>
24652 #endif
24654 int (*ptr)() = (int (*)())cacos;
24657 main ()
24659 return 0;
24662 _ACEOF
24663 if ac_fn_c_try_link "$LINENO"; then :
24664 gcc_cv_math_func_cacos=yes
24665 else
24666 gcc_cv_math_func_cacos=no
24668 rm -f core conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24672 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24673 if test $gcc_cv_math_func_cacos = yes; then
24675 cat >>confdefs.h <<_ACEOF
24676 #define HAVE_CACOS 1
24677 _ACEOF
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24685 $as_echo_n "checking for cacosf... " >&6; }
24686 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 if test x$gcc_no_link = xyes; then
24690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693 /* end confdefs.h. */
24695 #ifdef HAVE_COMPLEX_H
24696 #include <complex.h>
24697 #endif
24698 #ifdef HAVE_MATH_H
24699 #include <math.h>
24700 #endif
24702 int (*ptr)() = (int (*)())cacosf;
24705 main ()
24707 return 0;
24710 _ACEOF
24711 if ac_fn_c_try_link "$LINENO"; then :
24712 gcc_cv_math_func_cacosf=yes
24713 else
24714 gcc_cv_math_func_cacosf=no
24716 rm -f core conftest.err conftest.$ac_objext \
24717 conftest$ac_exeext conftest.$ac_ext
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24720 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24721 if test $gcc_cv_math_func_cacosf = yes; then
24723 cat >>confdefs.h <<_ACEOF
24724 #define HAVE_CACOSF 1
24725 _ACEOF
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24733 $as_echo_n "checking for cacosh... " >&6; }
24734 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24735 $as_echo_n "(cached) " >&6
24736 else
24737 if test x$gcc_no_link = xyes; then
24738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24741 /* end confdefs.h. */
24743 #ifdef HAVE_COMPLEX_H
24744 #include <complex.h>
24745 #endif
24746 #ifdef HAVE_MATH_H
24747 #include <math.h>
24748 #endif
24750 int (*ptr)() = (int (*)())cacosh;
24753 main ()
24755 return 0;
24758 _ACEOF
24759 if ac_fn_c_try_link "$LINENO"; then :
24760 gcc_cv_math_func_cacosh=yes
24761 else
24762 gcc_cv_math_func_cacosh=no
24764 rm -f core conftest.err conftest.$ac_objext \
24765 conftest$ac_exeext conftest.$ac_ext
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24768 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24769 if test $gcc_cv_math_func_cacosh = yes; then
24771 cat >>confdefs.h <<_ACEOF
24772 #define HAVE_CACOSH 1
24773 _ACEOF
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24781 $as_echo_n "checking for cacoshf... " >&6; }
24782 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785 if test x$gcc_no_link = xyes; then
24786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24789 /* end confdefs.h. */
24791 #ifdef HAVE_COMPLEX_H
24792 #include <complex.h>
24793 #endif
24794 #ifdef HAVE_MATH_H
24795 #include <math.h>
24796 #endif
24798 int (*ptr)() = (int (*)())cacoshf;
24801 main ()
24803 return 0;
24806 _ACEOF
24807 if ac_fn_c_try_link "$LINENO"; then :
24808 gcc_cv_math_func_cacoshf=yes
24809 else
24810 gcc_cv_math_func_cacoshf=no
24812 rm -f core conftest.err conftest.$ac_objext \
24813 conftest$ac_exeext conftest.$ac_ext
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24816 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24817 if test $gcc_cv_math_func_cacoshf = yes; then
24819 cat >>confdefs.h <<_ACEOF
24820 #define HAVE_CACOSHF 1
24821 _ACEOF
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24829 $as_echo_n "checking for cacoshl... " >&6; }
24830 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24832 else
24833 if test x$gcc_no_link = xyes; then
24834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24837 /* end confdefs.h. */
24839 #ifdef HAVE_COMPLEX_H
24840 #include <complex.h>
24841 #endif
24842 #ifdef HAVE_MATH_H
24843 #include <math.h>
24844 #endif
24846 int (*ptr)() = (int (*)())cacoshl;
24849 main ()
24851 return 0;
24854 _ACEOF
24855 if ac_fn_c_try_link "$LINENO"; then :
24856 gcc_cv_math_func_cacoshl=yes
24857 else
24858 gcc_cv_math_func_cacoshl=no
24860 rm -f core conftest.err conftest.$ac_objext \
24861 conftest$ac_exeext conftest.$ac_ext
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24864 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24865 if test $gcc_cv_math_func_cacoshl = yes; then
24867 cat >>confdefs.h <<_ACEOF
24868 #define HAVE_CACOSHL 1
24869 _ACEOF
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24877 $as_echo_n "checking for cacosl... " >&6; }
24878 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24880 else
24881 if test x$gcc_no_link = xyes; then
24882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24885 /* end confdefs.h. */
24887 #ifdef HAVE_COMPLEX_H
24888 #include <complex.h>
24889 #endif
24890 #ifdef HAVE_MATH_H
24891 #include <math.h>
24892 #endif
24894 int (*ptr)() = (int (*)())cacosl;
24897 main ()
24899 return 0;
24902 _ACEOF
24903 if ac_fn_c_try_link "$LINENO"; then :
24904 gcc_cv_math_func_cacosl=yes
24905 else
24906 gcc_cv_math_func_cacosl=no
24908 rm -f core conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24912 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24913 if test $gcc_cv_math_func_cacosl = yes; then
24915 cat >>confdefs.h <<_ACEOF
24916 #define HAVE_CACOSL 1
24917 _ACEOF
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24925 $as_echo_n "checking for casin... " >&6; }
24926 if test "${gcc_cv_math_func_casin+set}" = set; then :
24927 $as_echo_n "(cached) " >&6
24928 else
24929 if test x$gcc_no_link = xyes; then
24930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933 /* end confdefs.h. */
24935 #ifdef HAVE_COMPLEX_H
24936 #include <complex.h>
24937 #endif
24938 #ifdef HAVE_MATH_H
24939 #include <math.h>
24940 #endif
24942 int (*ptr)() = (int (*)())casin;
24945 main ()
24947 return 0;
24950 _ACEOF
24951 if ac_fn_c_try_link "$LINENO"; then :
24952 gcc_cv_math_func_casin=yes
24953 else
24954 gcc_cv_math_func_casin=no
24956 rm -f core conftest.err conftest.$ac_objext \
24957 conftest$ac_exeext conftest.$ac_ext
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24960 $as_echo "$gcc_cv_math_func_casin" >&6; }
24961 if test $gcc_cv_math_func_casin = yes; then
24963 cat >>confdefs.h <<_ACEOF
24964 #define HAVE_CASIN 1
24965 _ACEOF
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24973 $as_echo_n "checking for casinf... " >&6; }
24974 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24977 if test x$gcc_no_link = xyes; then
24978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h. */
24983 #ifdef HAVE_COMPLEX_H
24984 #include <complex.h>
24985 #endif
24986 #ifdef HAVE_MATH_H
24987 #include <math.h>
24988 #endif
24990 int (*ptr)() = (int (*)())casinf;
24993 main ()
24995 return 0;
24998 _ACEOF
24999 if ac_fn_c_try_link "$LINENO"; then :
25000 gcc_cv_math_func_casinf=yes
25001 else
25002 gcc_cv_math_func_casinf=no
25004 rm -f core conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25008 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25009 if test $gcc_cv_math_func_casinf = yes; then
25011 cat >>confdefs.h <<_ACEOF
25012 #define HAVE_CASINF 1
25013 _ACEOF
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25021 $as_echo_n "checking for casinh... " >&6; }
25022 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 if test x$gcc_no_link = xyes; then
25026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25031 #ifdef HAVE_COMPLEX_H
25032 #include <complex.h>
25033 #endif
25034 #ifdef HAVE_MATH_H
25035 #include <math.h>
25036 #endif
25038 int (*ptr)() = (int (*)())casinh;
25041 main ()
25043 return 0;
25046 _ACEOF
25047 if ac_fn_c_try_link "$LINENO"; then :
25048 gcc_cv_math_func_casinh=yes
25049 else
25050 gcc_cv_math_func_casinh=no
25052 rm -f core conftest.err conftest.$ac_objext \
25053 conftest$ac_exeext conftest.$ac_ext
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25056 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25057 if test $gcc_cv_math_func_casinh = yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define HAVE_CASINH 1
25061 _ACEOF
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25069 $as_echo_n "checking for casinhf... " >&6; }
25070 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25072 else
25073 if test x$gcc_no_link = xyes; then
25074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25077 /* end confdefs.h. */
25079 #ifdef HAVE_COMPLEX_H
25080 #include <complex.h>
25081 #endif
25082 #ifdef HAVE_MATH_H
25083 #include <math.h>
25084 #endif
25086 int (*ptr)() = (int (*)())casinhf;
25089 main ()
25091 return 0;
25094 _ACEOF
25095 if ac_fn_c_try_link "$LINENO"; then :
25096 gcc_cv_math_func_casinhf=yes
25097 else
25098 gcc_cv_math_func_casinhf=no
25100 rm -f core conftest.err conftest.$ac_objext \
25101 conftest$ac_exeext conftest.$ac_ext
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25104 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25105 if test $gcc_cv_math_func_casinhf = yes; then
25107 cat >>confdefs.h <<_ACEOF
25108 #define HAVE_CASINHF 1
25109 _ACEOF
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25117 $as_echo_n "checking for casinhl... " >&6; }
25118 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25119 $as_echo_n "(cached) " >&6
25120 else
25121 if test x$gcc_no_link = xyes; then
25122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25125 /* end confdefs.h. */
25127 #ifdef HAVE_COMPLEX_H
25128 #include <complex.h>
25129 #endif
25130 #ifdef HAVE_MATH_H
25131 #include <math.h>
25132 #endif
25134 int (*ptr)() = (int (*)())casinhl;
25137 main ()
25139 return 0;
25142 _ACEOF
25143 if ac_fn_c_try_link "$LINENO"; then :
25144 gcc_cv_math_func_casinhl=yes
25145 else
25146 gcc_cv_math_func_casinhl=no
25148 rm -f core conftest.err conftest.$ac_objext \
25149 conftest$ac_exeext conftest.$ac_ext
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25152 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25153 if test $gcc_cv_math_func_casinhl = yes; then
25155 cat >>confdefs.h <<_ACEOF
25156 #define HAVE_CASINHL 1
25157 _ACEOF
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25165 $as_echo_n "checking for casinl... " >&6; }
25166 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25168 else
25169 if test x$gcc_no_link = xyes; then
25170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25173 /* end confdefs.h. */
25175 #ifdef HAVE_COMPLEX_H
25176 #include <complex.h>
25177 #endif
25178 #ifdef HAVE_MATH_H
25179 #include <math.h>
25180 #endif
25182 int (*ptr)() = (int (*)())casinl;
25185 main ()
25187 return 0;
25190 _ACEOF
25191 if ac_fn_c_try_link "$LINENO"; then :
25192 gcc_cv_math_func_casinl=yes
25193 else
25194 gcc_cv_math_func_casinl=no
25196 rm -f core conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25200 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25201 if test $gcc_cv_math_func_casinl = yes; then
25203 cat >>confdefs.h <<_ACEOF
25204 #define HAVE_CASINL 1
25205 _ACEOF
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25213 $as_echo_n "checking for catan... " >&6; }
25214 if test "${gcc_cv_math_func_catan+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25216 else
25217 if test x$gcc_no_link = xyes; then
25218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25223 #ifdef HAVE_COMPLEX_H
25224 #include <complex.h>
25225 #endif
25226 #ifdef HAVE_MATH_H
25227 #include <math.h>
25228 #endif
25230 int (*ptr)() = (int (*)())catan;
25233 main ()
25235 return 0;
25238 _ACEOF
25239 if ac_fn_c_try_link "$LINENO"; then :
25240 gcc_cv_math_func_catan=yes
25241 else
25242 gcc_cv_math_func_catan=no
25244 rm -f core conftest.err conftest.$ac_objext \
25245 conftest$ac_exeext conftest.$ac_ext
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25248 $as_echo "$gcc_cv_math_func_catan" >&6; }
25249 if test $gcc_cv_math_func_catan = yes; then
25251 cat >>confdefs.h <<_ACEOF
25252 #define HAVE_CATAN 1
25253 _ACEOF
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25261 $as_echo_n "checking for catanf... " >&6; }
25262 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25264 else
25265 if test x$gcc_no_link = xyes; then
25266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25269 /* end confdefs.h. */
25271 #ifdef HAVE_COMPLEX_H
25272 #include <complex.h>
25273 #endif
25274 #ifdef HAVE_MATH_H
25275 #include <math.h>
25276 #endif
25278 int (*ptr)() = (int (*)())catanf;
25281 main ()
25283 return 0;
25286 _ACEOF
25287 if ac_fn_c_try_link "$LINENO"; then :
25288 gcc_cv_math_func_catanf=yes
25289 else
25290 gcc_cv_math_func_catanf=no
25292 rm -f core conftest.err conftest.$ac_objext \
25293 conftest$ac_exeext conftest.$ac_ext
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25296 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25297 if test $gcc_cv_math_func_catanf = yes; then
25299 cat >>confdefs.h <<_ACEOF
25300 #define HAVE_CATANF 1
25301 _ACEOF
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25309 $as_echo_n "checking for catanh... " >&6; }
25310 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25312 else
25313 if test x$gcc_no_link = xyes; then
25314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h. */
25319 #ifdef HAVE_COMPLEX_H
25320 #include <complex.h>
25321 #endif
25322 #ifdef HAVE_MATH_H
25323 #include <math.h>
25324 #endif
25326 int (*ptr)() = (int (*)())catanh;
25329 main ()
25331 return 0;
25334 _ACEOF
25335 if ac_fn_c_try_link "$LINENO"; then :
25336 gcc_cv_math_func_catanh=yes
25337 else
25338 gcc_cv_math_func_catanh=no
25340 rm -f core conftest.err conftest.$ac_objext \
25341 conftest$ac_exeext conftest.$ac_ext
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25344 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25345 if test $gcc_cv_math_func_catanh = yes; then
25347 cat >>confdefs.h <<_ACEOF
25348 #define HAVE_CATANH 1
25349 _ACEOF
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25357 $as_echo_n "checking for catanhf... " >&6; }
25358 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25359 $as_echo_n "(cached) " >&6
25360 else
25361 if test x$gcc_no_link = xyes; then
25362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 #ifdef HAVE_COMPLEX_H
25368 #include <complex.h>
25369 #endif
25370 #ifdef HAVE_MATH_H
25371 #include <math.h>
25372 #endif
25374 int (*ptr)() = (int (*)())catanhf;
25377 main ()
25379 return 0;
25382 _ACEOF
25383 if ac_fn_c_try_link "$LINENO"; then :
25384 gcc_cv_math_func_catanhf=yes
25385 else
25386 gcc_cv_math_func_catanhf=no
25388 rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25392 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25393 if test $gcc_cv_math_func_catanhf = yes; then
25395 cat >>confdefs.h <<_ACEOF
25396 #define HAVE_CATANHF 1
25397 _ACEOF
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25405 $as_echo_n "checking for catanhl... " >&6; }
25406 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25408 else
25409 if test x$gcc_no_link = xyes; then
25410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413 /* end confdefs.h. */
25415 #ifdef HAVE_COMPLEX_H
25416 #include <complex.h>
25417 #endif
25418 #ifdef HAVE_MATH_H
25419 #include <math.h>
25420 #endif
25422 int (*ptr)() = (int (*)())catanhl;
25425 main ()
25427 return 0;
25430 _ACEOF
25431 if ac_fn_c_try_link "$LINENO"; then :
25432 gcc_cv_math_func_catanhl=yes
25433 else
25434 gcc_cv_math_func_catanhl=no
25436 rm -f core conftest.err conftest.$ac_objext \
25437 conftest$ac_exeext conftest.$ac_ext
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25440 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25441 if test $gcc_cv_math_func_catanhl = yes; then
25443 cat >>confdefs.h <<_ACEOF
25444 #define HAVE_CATANHL 1
25445 _ACEOF
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25453 $as_echo_n "checking for catanl... " >&6; }
25454 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 if test x$gcc_no_link = xyes; then
25458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h. */
25463 #ifdef HAVE_COMPLEX_H
25464 #include <complex.h>
25465 #endif
25466 #ifdef HAVE_MATH_H
25467 #include <math.h>
25468 #endif
25470 int (*ptr)() = (int (*)())catanl;
25473 main ()
25475 return 0;
25478 _ACEOF
25479 if ac_fn_c_try_link "$LINENO"; then :
25480 gcc_cv_math_func_catanl=yes
25481 else
25482 gcc_cv_math_func_catanl=no
25484 rm -f core conftest.err conftest.$ac_objext \
25485 conftest$ac_exeext conftest.$ac_ext
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25488 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25489 if test $gcc_cv_math_func_catanl = yes; then
25491 cat >>confdefs.h <<_ACEOF
25492 #define HAVE_CATANL 1
25493 _ACEOF
25498 # On AIX, clog is present in libm as __clog
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25500 $as_echo_n "checking for __clog in -lm... " >&6; }
25501 if test "${ac_cv_lib_m___clog+set}" = set; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lm $LIBS"
25506 if test x$gcc_no_link = xyes; then
25507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25512 /* Override any GCC internal prototype to avoid an error.
25513 Use char because int might match the return type of a GCC
25514 builtin and then its argument prototype would still apply. */
25515 #ifdef __cplusplus
25516 extern "C"
25517 #endif
25518 char __clog ();
25520 main ()
25522 return __clog ();
25524 return 0;
25526 _ACEOF
25527 if ac_fn_c_try_link "$LINENO"; then :
25528 ac_cv_lib_m___clog=yes
25529 else
25530 ac_cv_lib_m___clog=no
25532 rm -f core conftest.err conftest.$ac_objext \
25533 conftest$ac_exeext conftest.$ac_ext
25534 LIBS=$ac_check_lib_save_LIBS
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25537 $as_echo "$ac_cv_lib_m___clog" >&6; }
25538 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25540 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25545 # Check whether the system has a working stat()
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25548 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25549 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25551 else
25553 if test "$cross_compiling" = yes; then :
25555 case "${target}" in
25556 *mingw*) libgfor_cv_have_working_stat=no ;;
25557 *) libgfor_cv_have_working_stat=yes;;
25558 esac
25559 else
25560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25561 /* end confdefs.h. */
25563 #include <stdio.h>
25564 #include <sys/types.h>
25565 #include <sys/stat.h>
25566 #include <unistd.h>
25568 int main ()
25570 FILE *f, *g;
25571 struct stat st1, st2;
25573 f = fopen ("foo", "w");
25574 g = fopen ("bar", "w");
25575 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25576 return 1;
25577 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25578 return 1;
25579 fclose(f);
25580 fclose(g);
25581 return 0;
25583 _ACEOF
25584 if ac_fn_c_try_run "$LINENO"; then :
25585 libgfor_cv_have_working_stat=yes
25586 else
25587 libgfor_cv_have_working_stat=no
25589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25590 conftest.$ac_objext conftest.beam conftest.$ac_ext
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25595 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25596 if test x"$libgfor_cv_have_working_stat" = xyes; then
25598 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25602 # Check whether __mingw_snprintf() is present
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25605 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25606 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25607 $as_echo_n "(cached) " >&6
25608 else
25610 if test x$gcc_no_link = xyes; then
25611 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25616 #include <stdio.h>
25617 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25620 main ()
25623 __mingw_snprintf (NULL, 0, "%d\n", 1);
25626 return 0;
25628 _ACEOF
25629 if ac_fn_c_try_link "$LINENO"; then :
25630 eval "libgfor_cv_have_mingw_snprintf=yes"
25631 else
25632 eval "libgfor_cv_have_mingw_snprintf=no"
25634 rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25639 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25640 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25642 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25647 # Check whether libquadmath should be used
25648 # Check whether --enable-libquadmath-support was given.
25649 if test "${enable_libquadmath_support+set}" = set; then :
25650 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25651 else
25652 ENABLE_LIBQUADMATH_SUPPORT=yes
25655 enable_libquadmath_support=
25656 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25657 enable_libquadmath_support=no
25660 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25662 LIBQUADSPEC=
25664 if test "x$enable_libquadmath_support" != xno; then
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25667 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25668 if test "${libgfor_cv_have_float128+set}" = set; then :
25669 $as_echo_n "(cached) " >&6
25670 else
25672 if test x$gcc_no_link = xyes; then
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25676 typedef _Complex float __attribute__((mode(TC))) __complex128;
25678 __float128 foo (__float128 x)
25681 __complex128 z1, z2;
25683 z1 = x;
25684 z2 = x / 7.Q;
25685 z2 /= z1;
25687 return (__float128) z2;
25690 __float128 bar (__float128 x)
25692 return x * __builtin_huge_valq ();
25696 main ()
25699 foo (1.2Q);
25700 bar (1.2Q);
25703 return 0;
25705 _ACEOF
25706 if ac_fn_c_try_compile "$LINENO"; then :
25708 libgfor_cv_have_float128=yes
25710 else
25712 libgfor_cv_have_float128=no
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716 else
25717 if test x$gcc_no_link = xyes; then
25718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25723 typedef _Complex float __attribute__((mode(TC))) __complex128;
25725 __float128 foo (__float128 x)
25728 __complex128 z1, z2;
25730 z1 = x;
25731 z2 = x / 7.Q;
25732 z2 /= z1;
25734 return (__float128) z2;
25737 __float128 bar (__float128 x)
25739 return x * __builtin_huge_valq ();
25743 main ()
25746 foo (1.2Q);
25747 bar (1.2Q);
25750 return 0;
25752 _ACEOF
25753 if ac_fn_c_try_link "$LINENO"; then :
25755 libgfor_cv_have_float128=yes
25757 else
25759 libgfor_cv_have_float128=no
25762 rm -f core conftest.err conftest.$ac_objext \
25763 conftest$ac_exeext conftest.$ac_ext
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25767 $as_echo "$libgfor_cv_have_float128" >&6; }
25769 if test "x$libgfor_cv_have_float128" = xyes; then
25771 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25774 ac_xsave_c_werror_flag=$ac_c_werror_flag
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25776 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25777 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25778 $as_echo_n "(cached) " >&6
25779 else
25781 # Test for native Solaris options first.
25782 # No whitespace after -z to pass it through -Wl.
25783 libgfor_cv_as_needed_option="-zignore"
25784 libgfor_cv_no_as_needed_option="-zrecord"
25785 save_LDFLAGS="$LDFLAGS"
25786 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25787 libgfor_cv_have_as_needed=no
25789 ac_c_werror_flag=yes
25790 if test x$gcc_no_link = xyes; then
25791 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h. */
25797 main ()
25801 return 0;
25803 _ACEOF
25804 if ac_fn_c_try_link "$LINENO"; then :
25805 libgfor_cv_have_as_needed=yes
25806 else
25807 libgfor_cv_have_as_needed=no
25809 rm -f core conftest.err conftest.$ac_objext \
25810 conftest$ac_exeext conftest.$ac_ext
25811 LDFLAGS="$save_LDFLAGS"
25812 if test "x$libgfor_cv_have_as_needed" = xno; then
25813 libgfor_cv_as_needed_option="--as-needed"
25814 libgfor_cv_no_as_needed_option="--no-as-needed"
25815 save_LDFLAGS="$LDFLAGS"
25816 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25817 libgfor_cv_have_as_needed=no
25819 ac_c_werror_flag=yes
25820 if test x$gcc_no_link = xyes; then
25821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h. */
25827 main ()
25831 return 0;
25833 _ACEOF
25834 if ac_fn_c_try_link "$LINENO"; then :
25835 libgfor_cv_have_as_needed=yes
25836 else
25837 libgfor_cv_have_as_needed=no
25839 rm -f core conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
25841 LDFLAGS="$save_LDFLAGS"
25843 ac_c_werror_flag=$ac_xsave_c_werror_flag
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25847 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25849 if test "x$libgfor_cv_have_as_needed" = xyes; then
25850 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25851 else
25852 LIBQUADSPEC="-lquadmath"
25854 if test -f ../libquadmath/libquadmath.la; then
25855 LIBQUADLIB=../libquadmath/libquadmath.la
25856 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25857 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25858 else
25859 LIBQUADLIB="-lquadmath"
25860 LIBQUADLIB_DEP=
25861 LIBQUADINCLUDE=
25864 else
25865 # for --disable-quadmath
25866 LIBQUADLIB=
25867 LIBQUADLIB_DEP=
25868 LIBQUADINCLUDE=
25876 if test "x$libgfor_cv_have_float128" = xyes; then
25877 LIBGFOR_BUILD_QUAD_TRUE=
25878 LIBGFOR_BUILD_QUAD_FALSE='#'
25879 else
25880 LIBGFOR_BUILD_QUAD_TRUE='#'
25881 LIBGFOR_BUILD_QUAD_FALSE=
25886 # Check for GNU libc feenableexcept
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25888 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25889 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 ac_check_lib_save_LIBS=$LIBS
25893 LIBS="-lm $LIBS"
25894 if test x$gcc_no_link = xyes; then
25895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h. */
25900 /* Override any GCC internal prototype to avoid an error.
25901 Use char because int might match the return type of a GCC
25902 builtin and then its argument prototype would still apply. */
25903 #ifdef __cplusplus
25904 extern "C"
25905 #endif
25906 char feenableexcept ();
25908 main ()
25910 return feenableexcept ();
25912 return 0;
25914 _ACEOF
25915 if ac_fn_c_try_link "$LINENO"; then :
25916 ac_cv_lib_m_feenableexcept=yes
25917 else
25918 ac_cv_lib_m_feenableexcept=no
25920 rm -f core conftest.err conftest.$ac_objext \
25921 conftest$ac_exeext conftest.$ac_ext
25922 LIBS=$ac_check_lib_save_LIBS
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25925 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25926 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25927 have_feenableexcept=yes
25928 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25933 # At least for glibc, clock_gettime is in librt. But don't
25934 # pull that in if it still doesn't give us the function we want. This
25935 # test is copied from libgomp, and modified to not link in -lrt as
25936 # libgfortran calls clock_gettime via a weak reference if it's found
25937 # in librt.
25938 if test $ac_cv_func_clock_gettime = no; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25940 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25941 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 ac_check_lib_save_LIBS=$LIBS
25945 LIBS="-lrt $LIBS"
25946 if test x$gcc_no_link = xyes; then
25947 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25952 /* Override any GCC internal prototype to avoid an error.
25953 Use char because int might match the return type of a GCC
25954 builtin and then its argument prototype would still apply. */
25955 #ifdef __cplusplus
25956 extern "C"
25957 #endif
25958 char clock_gettime ();
25960 main ()
25962 return clock_gettime ();
25964 return 0;
25966 _ACEOF
25967 if ac_fn_c_try_link "$LINENO"; then :
25968 ac_cv_lib_rt_clock_gettime=yes
25969 else
25970 ac_cv_lib_rt_clock_gettime=no
25972 rm -f core conftest.err conftest.$ac_objext \
25973 conftest$ac_exeext conftest.$ac_ext
25974 LIBS=$ac_check_lib_save_LIBS
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25977 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25978 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25980 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25986 # Check for SysV fpsetmask
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25989 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25990 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25992 else
25994 if test x$gcc_no_link = xyes; then
25995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25998 /* end confdefs.h. */
26000 #if HAVE_FLOATINGPOINT_H
26001 # include <floatingpoint.h>
26002 #endif /* HAVE_FLOATINGPOINT_H */
26003 #if HAVE_IEEEFP_H
26004 # include <ieeefp.h>
26005 #endif /* HAVE_IEEEFP_H */
26007 main ()
26009 fpsetmask(0);
26011 return 0;
26013 _ACEOF
26014 if ac_fn_c_try_link "$LINENO"; then :
26015 eval "libgfor_cv_have_fpsetmask=yes"
26016 else
26017 eval "libgfor_cv_have_fpsetmask=no"
26019 rm -f core conftest.err conftest.$ac_objext \
26020 conftest$ac_exeext conftest.$ac_ext
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26024 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26025 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26026 have_fpsetmask=yes
26028 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26032 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "#include <ieeefp.h>
26034 if test "x$ac_cv_type_fp_except" = x""yes; then :
26036 cat >>confdefs.h <<_ACEOF
26037 #define HAVE_FP_EXCEPT 1
26038 _ACEOF
26042 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "#include <ieeefp.h>
26044 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26046 cat >>confdefs.h <<_ACEOF
26047 #define HAVE_FP_EXCEPT_T 1
26048 _ACEOF
26053 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "#include <ieeefp.h>
26055 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26057 cat >>confdefs.h <<_ACEOF
26058 #define HAVE_FP_RND 1
26059 _ACEOF
26063 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "#include <ieeefp.h>
26065 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26067 cat >>confdefs.h <<_ACEOF
26068 #define HAVE_FP_RND_T 1
26069 _ACEOF
26075 # Check for AIX fp_trap and fp_enable
26076 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26077 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26078 have_fp_trap=yes
26079 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26083 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26084 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26085 have_fp_enable=yes
26086 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26091 # Runs configure.host to set up necessary host-dependent shell variables.
26092 # We then display a message about it, and propagate them through the
26093 # build chain.
26094 . ${srcdir}/configure.host
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26096 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26097 FPU_HOST_HEADER=config/${fpu_host}.h
26100 # Some targets require additional compiler options for IEEE compatibility.
26101 IEEE_FLAGS="${ieee_flags}"
26105 # Check for POSIX getpwuid_r
26107 # There are two versions of getpwuid_r, the POSIX one with 5
26108 # arguments, and another one with 4 arguments used by at least HP-UX
26109 # 10.2.
26110 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26112 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26113 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26115 else
26117 if test x$gcc_no_link = xyes; then
26118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121 /* end confdefs.h. */
26123 #include <stdio.h>
26124 #include <sys/types.h>
26125 #include <pwd.h>
26127 main ()
26130 getpwuid_r(0, NULL, NULL, 0, NULL);
26133 return 0;
26135 _ACEOF
26136 if ac_fn_c_try_link "$LINENO"; then :
26137 libgfor_cv_posix_getpwuid_r="yes"
26138 else
26139 libgfor_cv_posix_getpwuid_r="no"
26141 rm -f core conftest.err conftest.$ac_objext \
26142 conftest$ac_exeext conftest.$ac_ext
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26145 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26147 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26149 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26154 # Check out attribute support.
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26157 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26158 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26160 else
26162 save_CFLAGS="$CFLAGS"
26163 CFLAGS="$CFLAGS -Werror"
26164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26165 /* end confdefs.h. */
26166 void __attribute__((visibility("hidden"))) foo(void) { }
26168 main ()
26172 return 0;
26174 _ACEOF
26175 if ac_fn_c_try_compile "$LINENO"; then :
26176 libgfor_cv_have_attribute_visibility=yes
26177 else
26178 libgfor_cv_have_attribute_visibility=no
26180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 CFLAGS="$save_CFLAGS"
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26184 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26185 if test $libgfor_cv_have_attribute_visibility = yes; then
26187 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26192 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26193 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26194 $as_echo_n "(cached) " >&6
26195 else
26197 save_CFLAGS="$CFLAGS"
26198 CFLAGS="$CFLAGS -Werror"
26199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h. */
26201 void __attribute__((dllexport)) foo(void) { }
26203 main ()
26207 return 0;
26209 _ACEOF
26210 if ac_fn_c_try_compile "$LINENO"; then :
26211 libgfor_cv_have_attribute_dllexport=yes
26212 else
26213 libgfor_cv_have_attribute_dllexport=no
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 CFLAGS="$save_CFLAGS"
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26219 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26220 if test $libgfor_cv_have_attribute_dllexport = yes; then
26222 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26227 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26228 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26229 $as_echo_n "(cached) " >&6
26230 else
26232 if test x$gcc_no_link = xyes; then
26233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236 /* end confdefs.h. */
26238 void foo(void) { }
26239 extern void bar(void) __attribute__((alias("foo")));
26241 main ()
26243 bar();
26245 return 0;
26247 _ACEOF
26248 if ac_fn_c_try_link "$LINENO"; then :
26249 libgfor_cv_have_attribute_alias=yes
26250 else
26251 libgfor_cv_have_attribute_alias=no
26253 rm -f core conftest.err conftest.$ac_objext \
26254 conftest$ac_exeext conftest.$ac_ext
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26257 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26258 if test $libgfor_cv_have_attribute_alias = yes; then
26260 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26264 # Check out sync builtins support.
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26267 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26268 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26272 if test x$gcc_no_link = xyes; then
26273 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26277 int foovar = 0;
26279 main ()
26282 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26283 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26285 return 0;
26287 _ACEOF
26288 if ac_fn_c_try_link "$LINENO"; then :
26289 libgfor_cv_have_sync_fetch_and_add=yes
26290 else
26291 libgfor_cv_have_sync_fetch_and_add=no
26293 rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26297 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26298 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26300 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26304 # Check out #pragma weak.
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26307 $as_echo_n "checking whether pragma weak works... " >&6; }
26308 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26312 gfor_save_CFLAGS="$CFLAGS"
26313 CFLAGS="$CFLAGS -Wunknown-pragmas"
26314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26317 void foo (void);
26318 #pragma weak foo
26321 main ()
26323 if (foo) foo ();
26325 return 0;
26327 _ACEOF
26328 if ac_fn_c_try_compile "$LINENO"; then :
26329 libgfor_cv_have_pragma_weak=yes
26330 else
26331 libgfor_cv_have_pragma_weak=no
26333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26336 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26337 if test $libgfor_cv_have_pragma_weak = yes; then
26339 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26342 case "$host" in
26343 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26345 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26348 esac
26350 # Various other checks on target
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26353 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26354 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26355 $as_echo_n "(cached) " >&6
26356 else
26358 if test "$cross_compiling" = yes; then :
26360 case "${target}" in
26361 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26362 *) libgfor_cv_have_unlink_open_file=yes;;
26363 esac
26364 else
26365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h. */
26368 #include <errno.h>
26369 #include <fcntl.h>
26370 #include <unistd.h>
26371 #include <sys/stat.h>
26373 int main ()
26375 int fd;
26377 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26378 if (fd <= 0)
26379 return 0;
26380 if (unlink ("testfile") == -1)
26381 return 1;
26382 write (fd, "This is a test\n", 15);
26383 close (fd);
26385 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26386 return 0;
26387 else
26388 return 1;
26390 _ACEOF
26391 if ac_fn_c_try_run "$LINENO"; then :
26392 libgfor_cv_have_unlink_open_file=yes
26393 else
26394 libgfor_cv_have_unlink_open_file=no
26396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26397 conftest.$ac_objext conftest.beam conftest.$ac_ext
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26402 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26403 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26405 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26409 # Check whether line terminator is LF or CRLF
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26412 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26413 if test "${libgfor_cv_have_crlf+set}" = set; then :
26414 $as_echo_n "(cached) " >&6
26415 else
26417 if test "$cross_compiling" = yes; then :
26419 case "${target}" in
26420 *mingw*) libgfor_cv_have_crlf=yes ;;
26421 *) libgfor_cv_have_crlf=no;;
26422 esac
26423 else
26424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26425 /* end confdefs.h. */
26427 /* This test program should exit with status 0 if system uses a CRLF as
26428 line terminator, and status 1 otherwise.
26429 Since it is used to check for mingw systems, and should return 0 in any
26430 other case, in case of a failure we will not use CRLF. */
26431 #include <sys/stat.h>
26432 #include <stdlib.h>
26433 #include <fcntl.h>
26434 #include <stdio.h>
26436 int main ()
26438 #ifndef O_BINARY
26439 exit(1);
26440 #else
26441 int fd, bytes;
26442 char buff[5];
26444 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26445 if (fd < 0)
26446 exit(1);
26447 if (write (fd, "\n", 1) < 0)
26448 perror ("write");
26450 close (fd);
26452 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26453 exit(1);
26454 bytes = read (fd, buff, 5);
26455 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26456 exit(0);
26457 else
26458 exit(1);
26459 #endif
26461 _ACEOF
26462 if ac_fn_c_try_run "$LINENO"; then :
26463 libgfor_cv_have_crlf=yes
26464 else
26465 libgfor_cv_have_crlf=no
26467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26468 conftest.$ac_objext conftest.beam conftest.$ac_ext
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26473 $as_echo "$libgfor_cv_have_crlf" >&6; }
26474 if test x"$libgfor_cv_have_crlf" = xyes; then
26476 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26480 # Check whether we have _Unwind_GetIPInfo for backtrace
26483 # Check whether --with-system-libunwind was given.
26484 if test "${with_system_libunwind+set}" = set; then :
26485 withval=$with_system_libunwind;
26488 # If system-libunwind was not specifically set, pick a default setting.
26489 if test x$with_system_libunwind = x; then
26490 case ${target} in
26491 ia64-*-hpux*) with_system_libunwind=yes ;;
26492 *) with_system_libunwind=no ;;
26493 esac
26495 # Based on system-libunwind and target, do we have ipinfo?
26496 if test x$with_system_libunwind = xyes; then
26497 case ${target} in
26498 ia64-*-*) have_unwind_getipinfo=no ;;
26499 *) have_unwind_getipinfo=yes ;;
26500 esac
26501 else
26502 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26504 case ${target} in
26505 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26506 *) have_unwind_getipinfo=yes ;;
26507 esac
26511 if test x$have_unwind_getipinfo = xyes; then
26513 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26518 cat >confcache <<\_ACEOF
26519 # This file is a shell script that caches the results of configure
26520 # tests run on this system so they can be shared between configure
26521 # scripts and configure runs, see configure's option --config-cache.
26522 # It is not useful on other systems. If it contains results you don't
26523 # want to keep, you may remove or edit it.
26525 # config.status only pays attention to the cache file if you give it
26526 # the --recheck option to rerun configure.
26528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26530 # following values.
26532 _ACEOF
26534 # The following way of writing the cache mishandles newlines in values,
26535 # but we know of no workaround that is simple, portable, and efficient.
26536 # So, we kill variables containing newlines.
26537 # Ultrix sh set writes to stderr and can't be redirected directly,
26538 # and sets the high bit in the cache file unless we assign to the vars.
26540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26541 eval ac_val=\$$ac_var
26542 case $ac_val in #(
26543 *${as_nl}*)
26544 case $ac_var in #(
26545 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26546 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26547 esac
26548 case $ac_var in #(
26549 _ | IFS | as_nl) ;; #(
26550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26551 *) { eval $ac_var=; unset $ac_var;} ;;
26552 esac ;;
26553 esac
26554 done
26556 (set) 2>&1 |
26557 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26558 *${as_nl}ac_space=\ *)
26559 # `set' does not quote correctly, so add quotes: double-quote
26560 # substitution turns \\\\ into \\, and sed turns \\ into \.
26561 sed -n \
26562 "s/'/'\\\\''/g;
26563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26564 ;; #(
26566 # `set' quotes correctly as required by POSIX, so do not add quotes.
26567 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26569 esac |
26570 sort
26572 sed '
26573 /^ac_cv_env_/b end
26574 t clear
26575 :clear
26576 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26577 t end
26578 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26579 :end' >>confcache
26580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26581 if test -w "$cache_file"; then
26582 test "x$cache_file" != "x/dev/null" &&
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26584 $as_echo "$as_me: updating cache $cache_file" >&6;}
26585 cat confcache >$cache_file
26586 else
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26588 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26591 rm -f confcache
26593 if test ${multilib} = yes; then
26594 multilib_arg="--enable-multilib"
26595 else
26596 multilib_arg=
26599 # Write our Makefile and spec file.
26600 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26602 cat >confcache <<\_ACEOF
26603 # This file is a shell script that caches the results of configure
26604 # tests run on this system so they can be shared between configure
26605 # scripts and configure runs, see configure's option --config-cache.
26606 # It is not useful on other systems. If it contains results you don't
26607 # want to keep, you may remove or edit it.
26609 # config.status only pays attention to the cache file if you give it
26610 # the --recheck option to rerun configure.
26612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26614 # following values.
26616 _ACEOF
26618 # The following way of writing the cache mishandles newlines in values,
26619 # but we know of no workaround that is simple, portable, and efficient.
26620 # So, we kill variables containing newlines.
26621 # Ultrix sh set writes to stderr and can't be redirected directly,
26622 # and sets the high bit in the cache file unless we assign to the vars.
26624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26625 eval ac_val=\$$ac_var
26626 case $ac_val in #(
26627 *${as_nl}*)
26628 case $ac_var in #(
26629 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26631 esac
26632 case $ac_var in #(
26633 _ | IFS | as_nl) ;; #(
26634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26635 *) { eval $ac_var=; unset $ac_var;} ;;
26636 esac ;;
26637 esac
26638 done
26640 (set) 2>&1 |
26641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26642 *${as_nl}ac_space=\ *)
26643 # `set' does not quote correctly, so add quotes: double-quote
26644 # substitution turns \\\\ into \\, and sed turns \\ into \.
26645 sed -n \
26646 "s/'/'\\\\''/g;
26647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26648 ;; #(
26650 # `set' quotes correctly as required by POSIX, so do not add quotes.
26651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26653 esac |
26654 sort
26656 sed '
26657 /^ac_cv_env_/b end
26658 t clear
26659 :clear
26660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26661 t end
26662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26663 :end' >>confcache
26664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26665 if test -w "$cache_file"; then
26666 test "x$cache_file" != "x/dev/null" &&
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26668 $as_echo "$as_me: updating cache $cache_file" >&6;}
26669 cat confcache >$cache_file
26670 else
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26675 rm -f confcache
26677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26678 # Let make expand exec_prefix.
26679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26681 DEFS=-DHAVE_CONFIG_H
26683 ac_libobjs=
26684 ac_ltlibobjs=
26685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26686 # 1. Remove the extension, and $U if already installed.
26687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26690 # will be set to the directory where LIBOBJS objects are built.
26691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26693 done
26694 LIBOBJS=$ac_libobjs
26696 LTLIBOBJS=$ac_ltlibobjs
26699 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26700 as_fn_error "conditional \"onestep\" was never defined.
26701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26703 if test -n "$EXEEXT"; then
26704 am__EXEEXT_TRUE=
26705 am__EXEEXT_FALSE='#'
26706 else
26707 am__EXEEXT_TRUE='#'
26708 am__EXEEXT_FALSE=
26711 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26712 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26715 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26716 as_fn_error "conditional \"AMDEP\" was never defined.
26717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26719 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26720 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26723 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26724 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26727 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26728 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26731 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26732 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26735 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26736 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26739 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26740 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26744 : ${CONFIG_STATUS=./config.status}
26745 ac_write_fail=0
26746 ac_clean_files_save=$ac_clean_files
26747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26750 as_write_fail=0
26751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26752 #! $SHELL
26753 # Generated by $as_me.
26754 # Run this file to recreate the current configuration.
26755 # Compiler output produced by configure, useful for debugging
26756 # configure, is in config.log if it exists.
26758 debug=false
26759 ac_cs_recheck=false
26760 ac_cs_silent=false
26762 SHELL=\${CONFIG_SHELL-$SHELL}
26763 export SHELL
26764 _ASEOF
26765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26766 ## -------------------- ##
26767 ## M4sh Initialization. ##
26768 ## -------------------- ##
26770 # Be more Bourne compatible
26771 DUALCASE=1; export DUALCASE # for MKS sh
26772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26773 emulate sh
26774 NULLCMD=:
26775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26776 # is contrary to our usage. Disable this feature.
26777 alias -g '${1+"$@"}'='"$@"'
26778 setopt NO_GLOB_SUBST
26779 else
26780 case `(set -o) 2>/dev/null` in #(
26781 *posix*) :
26782 set -o posix ;; #(
26783 *) :
26785 esac
26789 as_nl='
26791 export as_nl
26792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26796 # Prefer a ksh shell builtin over an external printf program on Solaris,
26797 # but without wasting forks for bash or zsh.
26798 if test -z "$BASH_VERSION$ZSH_VERSION" \
26799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26800 as_echo='print -r --'
26801 as_echo_n='print -rn --'
26802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26803 as_echo='printf %s\n'
26804 as_echo_n='printf %s'
26805 else
26806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26808 as_echo_n='/usr/ucb/echo -n'
26809 else
26810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26811 as_echo_n_body='eval
26812 arg=$1;
26813 case $arg in #(
26814 *"$as_nl"*)
26815 expr "X$arg" : "X\\(.*\\)$as_nl";
26816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26817 esac;
26818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26820 export as_echo_n_body
26821 as_echo_n='sh -c $as_echo_n_body as_echo'
26823 export as_echo_body
26824 as_echo='sh -c $as_echo_body as_echo'
26827 # The user is always right.
26828 if test "${PATH_SEPARATOR+set}" != set; then
26829 PATH_SEPARATOR=:
26830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26832 PATH_SEPARATOR=';'
26837 # IFS
26838 # We need space, tab and new line, in precisely that order. Quoting is
26839 # there to prevent editors from complaining about space-tab.
26840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26841 # splitting by setting IFS to empty value.)
26842 IFS=" "" $as_nl"
26844 # Find who we are. Look in the path if we contain no directory separator.
26845 case $0 in #((
26846 *[\\/]* ) as_myself=$0 ;;
26847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26848 for as_dir in $PATH
26850 IFS=$as_save_IFS
26851 test -z "$as_dir" && as_dir=.
26852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26853 done
26854 IFS=$as_save_IFS
26857 esac
26858 # We did not find ourselves, most probably we were run as `sh COMMAND'
26859 # in which case we are not to be found in the path.
26860 if test "x$as_myself" = x; then
26861 as_myself=$0
26863 if test ! -f "$as_myself"; then
26864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26865 exit 1
26868 # Unset variables that we do not need and which cause bugs (e.g. in
26869 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26870 # suppresses any "Segmentation fault" message there. '((' could
26871 # trigger a bug in pdksh 5.2.14.
26872 for as_var in BASH_ENV ENV MAIL MAILPATH
26873 do eval test x\${$as_var+set} = xset \
26874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26875 done
26876 PS1='$ '
26877 PS2='> '
26878 PS4='+ '
26880 # NLS nuisances.
26881 LC_ALL=C
26882 export LC_ALL
26883 LANGUAGE=C
26884 export LANGUAGE
26886 # CDPATH.
26887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26890 # as_fn_error ERROR [LINENO LOG_FD]
26891 # ---------------------------------
26892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26894 # script with status $?, using 1 if that was 0.
26895 as_fn_error ()
26897 as_status=$?; test $as_status -eq 0 && as_status=1
26898 if test "$3"; then
26899 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26902 $as_echo "$as_me: error: $1" >&2
26903 as_fn_exit $as_status
26904 } # as_fn_error
26907 # as_fn_set_status STATUS
26908 # -----------------------
26909 # Set $? to STATUS, without forking.
26910 as_fn_set_status ()
26912 return $1
26913 } # as_fn_set_status
26915 # as_fn_exit STATUS
26916 # -----------------
26917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26918 as_fn_exit ()
26920 set +e
26921 as_fn_set_status $1
26922 exit $1
26923 } # as_fn_exit
26925 # as_fn_unset VAR
26926 # ---------------
26927 # Portably unset VAR.
26928 as_fn_unset ()
26930 { eval $1=; unset $1;}
26932 as_unset=as_fn_unset
26933 # as_fn_append VAR VALUE
26934 # ----------------------
26935 # Append the text in VALUE to the end of the definition contained in VAR. Take
26936 # advantage of any shell optimizations that allow amortized linear growth over
26937 # repeated appends, instead of the typical quadratic growth present in naive
26938 # implementations.
26939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26940 eval 'as_fn_append ()
26942 eval $1+=\$2
26944 else
26945 as_fn_append ()
26947 eval $1=\$$1\$2
26949 fi # as_fn_append
26951 # as_fn_arith ARG...
26952 # ------------------
26953 # Perform arithmetic evaluation on the ARGs, and store the result in the
26954 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26955 # must be portable across $(()) and expr.
26956 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26957 eval 'as_fn_arith ()
26959 as_val=$(( $* ))
26961 else
26962 as_fn_arith ()
26964 as_val=`expr "$@" || test $? -eq 1`
26966 fi # as_fn_arith
26969 if expr a : '\(a\)' >/dev/null 2>&1 &&
26970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26971 as_expr=expr
26972 else
26973 as_expr=false
26976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26977 as_basename=basename
26978 else
26979 as_basename=false
26982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26983 as_dirname=dirname
26984 else
26985 as_dirname=false
26988 as_me=`$as_basename -- "$0" ||
26989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26990 X"$0" : 'X\(//\)$' \| \
26991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26992 $as_echo X/"$0" |
26993 sed '/^.*\/\([^/][^/]*\)\/*$/{
26994 s//\1/
26997 /^X\/\(\/\/\)$/{
26998 s//\1/
27001 /^X\/\(\/\).*/{
27002 s//\1/
27005 s/.*/./; q'`
27007 # Avoid depending upon Character Ranges.
27008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27011 as_cr_digits='0123456789'
27012 as_cr_alnum=$as_cr_Letters$as_cr_digits
27014 ECHO_C= ECHO_N= ECHO_T=
27015 case `echo -n x` in #(((((
27016 -n*)
27017 case `echo 'xy\c'` in
27018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27019 xy) ECHO_C='\c';;
27020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27021 ECHO_T=' ';;
27022 esac;;
27024 ECHO_N='-n';;
27025 esac
27027 rm -f conf$$ conf$$.exe conf$$.file
27028 if test -d conf$$.dir; then
27029 rm -f conf$$.dir/conf$$.file
27030 else
27031 rm -f conf$$.dir
27032 mkdir conf$$.dir 2>/dev/null
27034 if (echo >conf$$.file) 2>/dev/null; then
27035 if ln -s conf$$.file conf$$ 2>/dev/null; then
27036 as_ln_s='ln -s'
27037 # ... but there are two gotchas:
27038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27040 # In both cases, we have to default to `cp -p'.
27041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27042 as_ln_s='cp -p'
27043 elif ln conf$$.file conf$$ 2>/dev/null; then
27044 as_ln_s=ln
27045 else
27046 as_ln_s='cp -p'
27048 else
27049 as_ln_s='cp -p'
27051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27052 rmdir conf$$.dir 2>/dev/null
27055 # as_fn_mkdir_p
27056 # -------------
27057 # Create "$as_dir" as a directory, including parents if necessary.
27058 as_fn_mkdir_p ()
27061 case $as_dir in #(
27062 -*) as_dir=./$as_dir;;
27063 esac
27064 test -d "$as_dir" || eval $as_mkdir_p || {
27065 as_dirs=
27066 while :; do
27067 case $as_dir in #(
27068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27069 *) as_qdir=$as_dir;;
27070 esac
27071 as_dirs="'$as_qdir' $as_dirs"
27072 as_dir=`$as_dirname -- "$as_dir" ||
27073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27074 X"$as_dir" : 'X\(//\)[^/]' \| \
27075 X"$as_dir" : 'X\(//\)$' \| \
27076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27077 $as_echo X"$as_dir" |
27078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27079 s//\1/
27082 /^X\(\/\/\)[^/].*/{
27083 s//\1/
27086 /^X\(\/\/\)$/{
27087 s//\1/
27090 /^X\(\/\).*/{
27091 s//\1/
27094 s/.*/./; q'`
27095 test -d "$as_dir" && break
27096 done
27097 test -z "$as_dirs" || eval "mkdir $as_dirs"
27098 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27101 } # as_fn_mkdir_p
27102 if mkdir -p . 2>/dev/null; then
27103 as_mkdir_p='mkdir -p "$as_dir"'
27104 else
27105 test -d ./-p && rmdir ./-p
27106 as_mkdir_p=false
27109 if test -x / >/dev/null 2>&1; then
27110 as_test_x='test -x'
27111 else
27112 if ls -dL / >/dev/null 2>&1; then
27113 as_ls_L_option=L
27114 else
27115 as_ls_L_option=
27117 as_test_x='
27118 eval sh -c '\''
27119 if test -d "$1"; then
27120 test -d "$1/.";
27121 else
27122 case $1 in #(
27123 -*)set "./$1";;
27124 esac;
27125 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27126 ???[sx]*):;;*)false;;esac;fi
27127 '\'' sh
27130 as_executable_p=$as_test_x
27132 # Sed expression to map a string onto a valid CPP name.
27133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27135 # Sed expression to map a string onto a valid variable name.
27136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27139 exec 6>&1
27140 ## ----------------------------------- ##
27141 ## Main body of $CONFIG_STATUS script. ##
27142 ## ----------------------------------- ##
27143 _ASEOF
27144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27147 # Save the log message, to keep $0 and so on meaningful, and to
27148 # report actual input values of CONFIG_FILES etc. instead of their
27149 # values after options handling.
27150 ac_log="
27151 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27152 generated by GNU Autoconf 2.64. Invocation command line was
27154 CONFIG_FILES = $CONFIG_FILES
27155 CONFIG_HEADERS = $CONFIG_HEADERS
27156 CONFIG_LINKS = $CONFIG_LINKS
27157 CONFIG_COMMANDS = $CONFIG_COMMANDS
27158 $ $0 $@
27160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27163 _ACEOF
27165 case $ac_config_files in *"
27166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27167 esac
27169 case $ac_config_headers in *"
27170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27171 esac
27174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27175 # Files that config.status was made for.
27176 config_files="$ac_config_files"
27177 config_headers="$ac_config_headers"
27178 config_commands="$ac_config_commands"
27180 _ACEOF
27182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27183 ac_cs_usage="\
27184 \`$as_me' instantiates files and other configuration actions
27185 from templates according to the current configuration. Unless the files
27186 and actions are specified as TAGs, all are instantiated by default.
27188 Usage: $0 [OPTION]... [TAG]...
27190 -h, --help print this help, then exit
27191 -V, --version print version number and configuration settings, then exit
27192 -q, --quiet, --silent
27193 do not print progress messages
27194 -d, --debug don't remove temporary files
27195 --recheck update $as_me by reconfiguring in the same conditions
27196 --file=FILE[:TEMPLATE]
27197 instantiate the configuration file FILE
27198 --header=FILE[:TEMPLATE]
27199 instantiate the configuration header FILE
27201 Configuration files:
27202 $config_files
27204 Configuration headers:
27205 $config_headers
27207 Configuration commands:
27208 $config_commands
27210 Report bugs to the package provider.
27211 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27212 General help using GNU software: <http://www.gnu.org/gethelp/>."
27214 _ACEOF
27215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27216 ac_cs_version="\\
27217 GNU Fortran Runtime Library config.status 0.3
27218 configured by $0, generated by GNU Autoconf 2.64,
27219 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27221 Copyright (C) 2009 Free Software Foundation, Inc.
27222 This config.status script is free software; the Free Software Foundation
27223 gives unlimited permission to copy, distribute and modify it."
27225 ac_pwd='$ac_pwd'
27226 srcdir='$srcdir'
27227 INSTALL='$INSTALL'
27228 MKDIR_P='$MKDIR_P'
27229 AWK='$AWK'
27230 test -n "\$AWK" || AWK=awk
27231 _ACEOF
27233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27234 # The default lists apply if the user does not specify any file.
27235 ac_need_defaults=:
27236 while test $# != 0
27238 case $1 in
27239 --*=*)
27240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27242 ac_shift=:
27245 ac_option=$1
27246 ac_optarg=$2
27247 ac_shift=shift
27249 esac
27251 case $ac_option in
27252 # Handling of the options.
27253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27254 ac_cs_recheck=: ;;
27255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27256 $as_echo "$ac_cs_version"; exit ;;
27257 --debug | --debu | --deb | --de | --d | -d )
27258 debug=: ;;
27259 --file | --fil | --fi | --f )
27260 $ac_shift
27261 case $ac_optarg in
27262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27263 esac
27264 as_fn_append CONFIG_FILES " '$ac_optarg'"
27265 ac_need_defaults=false;;
27266 --header | --heade | --head | --hea )
27267 $ac_shift
27268 case $ac_optarg in
27269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27270 esac
27271 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27272 ac_need_defaults=false;;
27273 --he | --h)
27274 # Conflict between --help and --header
27275 as_fn_error "ambiguous option: \`$1'
27276 Try \`$0 --help' for more information.";;
27277 --help | --hel | -h )
27278 $as_echo "$ac_cs_usage"; exit ;;
27279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27281 ac_cs_silent=: ;;
27283 # This is an error.
27284 -*) as_fn_error "unrecognized option: \`$1'
27285 Try \`$0 --help' for more information." ;;
27287 *) as_fn_append ac_config_targets " $1"
27288 ac_need_defaults=false ;;
27290 esac
27291 shift
27292 done
27294 ac_configure_extra_args=
27296 if $ac_cs_silent; then
27297 exec 6>/dev/null
27298 ac_configure_extra_args="$ac_configure_extra_args --silent"
27301 _ACEOF
27302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27303 if \$ac_cs_recheck; then
27304 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27305 shift
27306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27307 CONFIG_SHELL='$SHELL'
27308 export CONFIG_SHELL
27309 exec "\$@"
27312 _ACEOF
27313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27314 exec 5>>config.log
27316 echo
27317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27318 ## Running $as_me. ##
27319 _ASBOX
27320 $as_echo "$ac_log"
27321 } >&5
27323 _ACEOF
27324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27326 # INIT-COMMANDS
27329 srcdir="$srcdir"
27330 host="$host"
27331 target="$target"
27332 with_multisubdir="$with_multisubdir"
27333 with_multisrctop="$with_multisrctop"
27334 with_target_subdir="$with_target_subdir"
27335 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27336 multi_basedir="$multi_basedir"
27337 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27338 CC="$CC"
27339 CXX="$CXX"
27340 GFORTRAN="$GFORTRAN"
27341 GCJ="$GCJ"
27342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27345 # The HP-UX ksh and POSIX shell print the target directory to stdout
27346 # if CDPATH is set.
27347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27349 sed_quote_subst='$sed_quote_subst'
27350 double_quote_subst='$double_quote_subst'
27351 delay_variable_subst='$delay_variable_subst'
27352 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27353 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27354 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27355 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27356 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27357 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27358 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27359 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27360 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27361 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27362 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27363 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27364 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27365 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27366 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27367 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27368 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27369 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27370 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27371 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27372 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27373 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27374 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27375 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27376 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27377 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27378 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27379 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27380 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27381 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27382 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27383 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27384 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27385 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27386 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27387 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27388 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27389 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27390 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27391 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27392 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27393 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27394 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27395 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27396 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27397 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27398 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27399 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27400 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"`'
27401 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27402 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27403 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27404 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27405 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27406 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27407 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27408 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27409 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27410 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27411 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27412 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27413 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27414 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27415 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27416 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27417 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27418 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27419 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27420 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27421 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27422 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27423 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27424 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27425 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27426 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27427 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27428 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27429 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27430 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27431 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27432 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27433 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27434 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27435 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27436 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27437 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27438 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27439 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27440 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27441 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27442 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27443 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27444 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27445 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27446 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27447 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27448 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27449 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27450 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27451 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27452 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27453 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27454 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27455 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27456 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27457 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27458 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27459 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27460 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27461 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27462 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27463 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27464 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27465 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27466 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27467 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27468 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27469 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27470 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27471 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27472 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27473 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27474 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27475 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27476 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27477 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27478 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27479 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27480 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27481 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27482 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27483 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27484 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27485 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27486 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27487 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27488 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27489 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27490 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27491 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27492 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27493 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27494 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27495 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27496 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27497 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27498 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27499 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27500 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27501 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27502 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27503 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27504 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27505 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27506 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27507 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27508 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27509 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27510 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27511 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27512 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27513 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27514 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27515 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27516 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27517 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27518 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27519 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27520 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27521 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27522 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27523 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27524 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27525 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27526 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27528 LTCC='$LTCC'
27529 LTCFLAGS='$LTCFLAGS'
27530 compiler='$compiler_DEFAULT'
27532 # A function that is used when there is no print builtin or printf.
27533 func_fallback_echo ()
27535 eval 'cat <<_LTECHO_EOF
27537 _LTECHO_EOF'
27540 # Quote evaled strings.
27541 for var in SHELL \
27542 ECHO \
27543 SED \
27544 GREP \
27545 EGREP \
27546 FGREP \
27547 LD \
27548 NM \
27549 LN_S \
27550 lt_SP2NL \
27551 lt_NL2SP \
27552 reload_flag \
27553 OBJDUMP \
27554 deplibs_check_method \
27555 file_magic_cmd \
27556 AR \
27557 AR_FLAGS \
27558 STRIP \
27559 RANLIB \
27560 CC \
27561 CFLAGS \
27562 compiler \
27563 lt_cv_sys_global_symbol_pipe \
27564 lt_cv_sys_global_symbol_to_cdecl \
27565 lt_cv_sys_global_symbol_to_c_name_address \
27566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27567 lt_prog_compiler_no_builtin_flag \
27568 lt_prog_compiler_wl \
27569 lt_prog_compiler_pic \
27570 lt_prog_compiler_static \
27571 lt_cv_prog_compiler_c_o \
27572 need_locks \
27573 DSYMUTIL \
27574 NMEDIT \
27575 LIPO \
27576 OTOOL \
27577 OTOOL64 \
27578 shrext_cmds \
27579 export_dynamic_flag_spec \
27580 whole_archive_flag_spec \
27581 compiler_needs_object \
27582 with_gnu_ld \
27583 allow_undefined_flag \
27584 no_undefined_flag \
27585 hardcode_libdir_flag_spec \
27586 hardcode_libdir_flag_spec_ld \
27587 hardcode_libdir_separator \
27588 fix_srcfile_path \
27589 exclude_expsyms \
27590 include_expsyms \
27591 file_list_spec \
27592 variables_saved_for_relink \
27593 libname_spec \
27594 library_names_spec \
27595 soname_spec \
27596 install_override_mode \
27597 finish_eval \
27598 old_striplib \
27599 striplib \
27600 compiler_lib_search_dirs \
27601 predep_objects \
27602 postdep_objects \
27603 predeps \
27604 postdeps \
27605 compiler_lib_search_path \
27606 LD_FC \
27607 reload_flag_FC \
27608 compiler_FC \
27609 lt_prog_compiler_no_builtin_flag_FC \
27610 lt_prog_compiler_wl_FC \
27611 lt_prog_compiler_pic_FC \
27612 lt_prog_compiler_static_FC \
27613 lt_cv_prog_compiler_c_o_FC \
27614 export_dynamic_flag_spec_FC \
27615 whole_archive_flag_spec_FC \
27616 compiler_needs_object_FC \
27617 with_gnu_ld_FC \
27618 allow_undefined_flag_FC \
27619 no_undefined_flag_FC \
27620 hardcode_libdir_flag_spec_FC \
27621 hardcode_libdir_flag_spec_ld_FC \
27622 hardcode_libdir_separator_FC \
27623 fix_srcfile_path_FC \
27624 exclude_expsyms_FC \
27625 include_expsyms_FC \
27626 file_list_spec_FC \
27627 compiler_lib_search_dirs_FC \
27628 predep_objects_FC \
27629 postdep_objects_FC \
27630 predeps_FC \
27631 postdeps_FC \
27632 compiler_lib_search_path_FC; do
27633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27634 *[\\\\\\\`\\"\\\$]*)
27635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27640 esac
27641 done
27643 # Double-quote double-evaled strings.
27644 for var in reload_cmds \
27645 old_postinstall_cmds \
27646 old_postuninstall_cmds \
27647 old_archive_cmds \
27648 extract_expsyms_cmds \
27649 old_archive_from_new_cmds \
27650 old_archive_from_expsyms_cmds \
27651 archive_cmds \
27652 archive_expsym_cmds \
27653 module_cmds \
27654 module_expsym_cmds \
27655 export_symbols_cmds \
27656 prelink_cmds \
27657 postinstall_cmds \
27658 postuninstall_cmds \
27659 finish_cmds \
27660 sys_lib_search_path_spec \
27661 sys_lib_dlsearch_path_spec \
27662 reload_cmds_FC \
27663 old_archive_cmds_FC \
27664 old_archive_from_new_cmds_FC \
27665 old_archive_from_expsyms_cmds_FC \
27666 archive_cmds_FC \
27667 archive_expsym_cmds_FC \
27668 module_cmds_FC \
27669 module_expsym_cmds_FC \
27670 export_symbols_cmds_FC \
27671 prelink_cmds_FC; do
27672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27673 *[\\\\\\\`\\"\\\$]*)
27674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27679 esac
27680 done
27682 ac_aux_dir='$ac_aux_dir'
27683 xsi_shell='$xsi_shell'
27684 lt_shell_append='$lt_shell_append'
27686 # See if we are running on zsh, and set the options which allow our
27687 # commands through without removal of \ escapes INIT.
27688 if test -n "\${ZSH_VERSION+set}" ; then
27689 setopt NO_GLOB_SUBST
27693 PACKAGE='$PACKAGE'
27694 VERSION='$VERSION'
27695 TIMESTAMP='$TIMESTAMP'
27696 RM='$RM'
27697 ofile='$ofile'
27704 GCC="$GCC"
27705 CC="$CC"
27706 acx_cv_header_stdint="$acx_cv_header_stdint"
27707 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27708 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27709 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27710 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27711 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27712 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27713 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27714 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27715 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27716 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27717 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27718 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27719 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27722 _ACEOF
27724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27726 # Handling of arguments.
27727 for ac_config_target in $ac_config_targets
27729 case $ac_config_target in
27730 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27731 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27733 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27734 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27736 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27739 esac
27740 done
27743 # If the user did not use the arguments to specify the items to instantiate,
27744 # then the envvar interface is used. Set only those that are not.
27745 # We use the long form for the default assignment because of an extremely
27746 # bizarre bug on SunOS 4.1.3.
27747 if $ac_need_defaults; then
27748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27753 # Have a temporary directory for convenience. Make it in the build tree
27754 # simply because there is no reason against having it here, and in addition,
27755 # creating and moving files from /tmp can sometimes cause problems.
27756 # Hook for its removal unless debugging.
27757 # Note that there is a small window in which the directory will not be cleaned:
27758 # after its creation but before its name has been assigned to `$tmp'.
27759 $debug ||
27761 tmp=
27762 trap 'exit_status=$?
27763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27765 trap 'as_fn_exit 1' 1 2 13 15
27767 # Create a (secure) tmp directory for tmp files.
27770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27771 test -n "$tmp" && test -d "$tmp"
27772 } ||
27774 tmp=./conf$$-$RANDOM
27775 (umask 077 && mkdir "$tmp")
27776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27778 # Set up the scripts for CONFIG_FILES section.
27779 # No need to generate them if there are no CONFIG_FILES.
27780 # This happens for instance with `./config.status config.h'.
27781 if test -n "$CONFIG_FILES"; then
27784 ac_cr=`echo X | tr X '\015'`
27785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27786 # But we know of no other shell where ac_cr would be empty at this
27787 # point, so we can use a bashism as a fallback.
27788 if test "x$ac_cr" = x; then
27789 eval ac_cr=\$\'\\r\'
27791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27793 ac_cs_awk_cr='\r'
27794 else
27795 ac_cs_awk_cr=$ac_cr
27798 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27799 _ACEOF
27803 echo "cat >conf$$subs.awk <<_ACEOF" &&
27804 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27805 echo "_ACEOF"
27806 } >conf$$subs.sh ||
27807 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27809 ac_delim='%!_!# '
27810 for ac_last_try in false false false false false :; do
27811 . ./conf$$subs.sh ||
27812 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27814 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27815 if test $ac_delim_n = $ac_delim_num; then
27816 break
27817 elif $ac_last_try; then
27818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27819 else
27820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27822 done
27823 rm -f conf$$subs.sh
27825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27826 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27827 _ACEOF
27828 sed -n '
27830 s/^/S["/; s/!.*/"]=/
27833 s/^[^!]*!//
27834 :repl
27835 t repl
27836 s/'"$ac_delim"'$//
27837 t delim
27840 s/\(.\{148\}\).*/\1/
27841 t more1
27842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27845 b repl
27846 :more1
27847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27850 s/.\{148\}//
27851 t nl
27852 :delim
27854 s/\(.\{148\}\).*/\1/
27855 t more2
27856 s/["\\]/\\&/g; s/^/"/; s/$/"/
27859 :more2
27860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27863 s/.\{148\}//
27864 t delim
27865 ' <conf$$subs.awk | sed '
27866 /^[^""]/{
27868 s/\n//
27870 ' >>$CONFIG_STATUS || ac_write_fail=1
27871 rm -f conf$$subs.awk
27872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27873 _ACAWK
27874 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27875 for (key in S) S_is_set[key] = 1
27876 FS = "\a"
27880 line = $ 0
27881 nfields = split(line, field, "@")
27882 substed = 0
27883 len = length(field[1])
27884 for (i = 2; i < nfields; i++) {
27885 key = field[i]
27886 keylen = length(key)
27887 if (S_is_set[key]) {
27888 value = S[key]
27889 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27890 len += length(value) + length(field[++i])
27891 substed = 1
27892 } else
27893 len += 1 + keylen
27896 print line
27899 _ACAWK
27900 _ACEOF
27901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27903 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27904 else
27906 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27907 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27908 _ACEOF
27910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27912 # trailing colons and then remove the whole line if VPATH becomes empty
27913 # (actually we leave an empty line to preserve line numbers).
27914 if test "x$srcdir" = x.; then
27915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27916 s/:*\$(srcdir):*/:/
27917 s/:*\${srcdir}:*/:/
27918 s/:*@srcdir@:*/:/
27919 s/^\([^=]*=[ ]*\):*/\1/
27920 s/:*$//
27921 s/^[^=]*=[ ]*$//
27925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27926 fi # test -n "$CONFIG_FILES"
27928 # Set up the scripts for CONFIG_HEADERS section.
27929 # No need to generate them if there are no CONFIG_HEADERS.
27930 # This happens for instance with `./config.status Makefile'.
27931 if test -n "$CONFIG_HEADERS"; then
27932 cat >"$tmp/defines.awk" <<\_ACAWK ||
27933 BEGIN {
27934 _ACEOF
27936 # Transform confdefs.h into an awk script `defines.awk', embedded as
27937 # here-document in config.status, that substitutes the proper values into
27938 # config.h.in to produce config.h.
27940 # Create a delimiter string that does not exist in confdefs.h, to ease
27941 # handling of long lines.
27942 ac_delim='%!_!# '
27943 for ac_last_try in false false :; do
27944 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27945 if test -z "$ac_t"; then
27946 break
27947 elif $ac_last_try; then
27948 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27949 else
27950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27952 done
27954 # For the awk script, D is an array of macro values keyed by name,
27955 # likewise P contains macro parameters if any. Preserve backslash
27956 # newline sequences.
27958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27959 sed -n '
27960 s/.\{148\}/&'"$ac_delim"'/g
27961 t rset
27962 :rset
27963 s/^[ ]*#[ ]*define[ ][ ]*/ /
27964 t def
27966 :def
27967 s/\\$//
27968 t bsnl
27969 s/["\\]/\\&/g
27970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27971 D["\1"]=" \3"/p
27972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27974 :bsnl
27975 s/["\\]/\\&/g
27976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27977 D["\1"]=" \3\\\\\\n"\\/p
27978 t cont
27979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27980 t cont
27982 :cont
27984 s/.\{148\}/&'"$ac_delim"'/g
27985 t clear
27986 :clear
27987 s/\\$//
27988 t bsnlc
27989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27991 :bsnlc
27992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27993 b cont
27994 ' <confdefs.h | sed '
27995 s/'"$ac_delim"'/"\\\
27996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27999 for (key in D) D_is_set[key] = 1
28000 FS = "\a"
28002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28003 line = \$ 0
28004 split(line, arg, " ")
28005 if (arg[1] == "#") {
28006 defundef = arg[2]
28007 mac1 = arg[3]
28008 } else {
28009 defundef = substr(arg[1], 2)
28010 mac1 = arg[2]
28012 split(mac1, mac2, "(") #)
28013 macro = mac2[1]
28014 prefix = substr(line, 1, index(line, defundef) - 1)
28015 if (D_is_set[macro]) {
28016 # Preserve the white space surrounding the "#".
28017 print prefix "define", macro P[macro] D[macro]
28018 next
28019 } else {
28020 # Replace #undef with comments. This is necessary, for example,
28021 # in the case of _POSIX_SOURCE, which is predefined and required
28022 # on some systems where configure will not decide to define it.
28023 if (defundef == "undef") {
28024 print "/*", prefix defundef, macro, "*/"
28025 next
28029 { print }
28030 _ACAWK
28031 _ACEOF
28032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28033 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28034 fi # test -n "$CONFIG_HEADERS"
28037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28038 shift
28039 for ac_tag
28041 case $ac_tag in
28042 :[FHLC]) ac_mode=$ac_tag; continue;;
28043 esac
28044 case $ac_mode$ac_tag in
28045 :[FHL]*:*);;
28046 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28047 :[FH]-) ac_tag=-:-;;
28048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28049 esac
28050 ac_save_IFS=$IFS
28051 IFS=:
28052 set x $ac_tag
28053 IFS=$ac_save_IFS
28054 shift
28055 ac_file=$1
28056 shift
28058 case $ac_mode in
28059 :L) ac_source=$1;;
28060 :[FH])
28061 ac_file_inputs=
28062 for ac_f
28064 case $ac_f in
28065 -) ac_f="$tmp/stdin";;
28066 *) # Look for the file first in the build tree, then in the source tree
28067 # (if the path is not absolute). The absolute path cannot be DOS-style,
28068 # because $ac_f cannot contain `:'.
28069 test -f "$ac_f" ||
28070 case $ac_f in
28071 [\\/$]*) false;;
28072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28073 esac ||
28074 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28075 esac
28076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28077 as_fn_append ac_file_inputs " '$ac_f'"
28078 done
28080 # Let's still pretend it is `configure' which instantiates (i.e., don't
28081 # use $as_me), people would be surprised to read:
28082 # /* config.h. Generated by config.status. */
28083 configure_input='Generated from '`
28084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28085 `' by configure.'
28086 if test x"$ac_file" != x-; then
28087 configure_input="$ac_file. $configure_input"
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28089 $as_echo "$as_me: creating $ac_file" >&6;}
28091 # Neutralize special characters interpreted by sed in replacement strings.
28092 case $configure_input in #(
28093 *\&* | *\|* | *\\* )
28094 ac_sed_conf_input=`$as_echo "$configure_input" |
28095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28096 *) ac_sed_conf_input=$configure_input;;
28097 esac
28099 case $ac_tag in
28100 *:-:* | *:-) cat >"$tmp/stdin" \
28101 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28102 esac
28104 esac
28106 ac_dir=`$as_dirname -- "$ac_file" ||
28107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28108 X"$ac_file" : 'X\(//\)[^/]' \| \
28109 X"$ac_file" : 'X\(//\)$' \| \
28110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28111 $as_echo X"$ac_file" |
28112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28113 s//\1/
28116 /^X\(\/\/\)[^/].*/{
28117 s//\1/
28120 /^X\(\/\/\)$/{
28121 s//\1/
28124 /^X\(\/\).*/{
28125 s//\1/
28128 s/.*/./; q'`
28129 as_dir="$ac_dir"; as_fn_mkdir_p
28130 ac_builddir=.
28132 case "$ac_dir" in
28133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28136 # A ".." for each directory in $ac_dir_suffix.
28137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28138 case $ac_top_builddir_sub in
28139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28141 esac ;;
28142 esac
28143 ac_abs_top_builddir=$ac_pwd
28144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28145 # for backward compatibility:
28146 ac_top_builddir=$ac_top_build_prefix
28148 case $srcdir in
28149 .) # We are building in place.
28150 ac_srcdir=.
28151 ac_top_srcdir=$ac_top_builddir_sub
28152 ac_abs_top_srcdir=$ac_pwd ;;
28153 [\\/]* | ?:[\\/]* ) # Absolute name.
28154 ac_srcdir=$srcdir$ac_dir_suffix;
28155 ac_top_srcdir=$srcdir
28156 ac_abs_top_srcdir=$srcdir ;;
28157 *) # Relative name.
28158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28159 ac_top_srcdir=$ac_top_build_prefix$srcdir
28160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28161 esac
28162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28165 case $ac_mode in
28168 # CONFIG_FILE
28171 case $INSTALL in
28172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28174 esac
28175 ac_MKDIR_P=$MKDIR_P
28176 case $MKDIR_P in
28177 [\\/$]* | ?:[\\/]* ) ;;
28178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28179 esac
28180 _ACEOF
28182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28183 # If the template does not know about datarootdir, expand it.
28184 # FIXME: This hack should be removed a few years after 2.60.
28185 ac_datarootdir_hack=; ac_datarootdir_seen=
28186 ac_sed_dataroot='
28187 /datarootdir/ {
28191 /@datadir@/p
28192 /@docdir@/p
28193 /@infodir@/p
28194 /@localedir@/p
28195 /@mandir@/p'
28196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28197 *datarootdir*) ac_datarootdir_seen=yes;;
28198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28201 _ACEOF
28202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28203 ac_datarootdir_hack='
28204 s&@datadir@&$datadir&g
28205 s&@docdir@&$docdir&g
28206 s&@infodir@&$infodir&g
28207 s&@localedir@&$localedir&g
28208 s&@mandir@&$mandir&g
28209 s&\\\${datarootdir}&$datarootdir&g' ;;
28210 esac
28211 _ACEOF
28213 # Neutralize VPATH when `$srcdir' = `.'.
28214 # Shell code in configure.ac might set extrasub.
28215 # FIXME: do we really want to maintain this feature?
28216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28217 ac_sed_extra="$ac_vpsub
28218 $extrasub
28219 _ACEOF
28220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28223 s|@configure_input@|$ac_sed_conf_input|;t t
28224 s&@top_builddir@&$ac_top_builddir_sub&;t t
28225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28226 s&@srcdir@&$ac_srcdir&;t t
28227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28228 s&@top_srcdir@&$ac_top_srcdir&;t t
28229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28230 s&@builddir@&$ac_builddir&;t t
28231 s&@abs_builddir@&$ac_abs_builddir&;t t
28232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28233 s&@INSTALL@&$ac_INSTALL&;t t
28234 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28235 $ac_datarootdir_hack
28237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28238 || as_fn_error "could not create $ac_file" "$LINENO" 5
28240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28241 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28244 which seems to be undefined. Please make sure it is defined." >&5
28245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28246 which seems to be undefined. Please make sure it is defined." >&2;}
28248 rm -f "$tmp/stdin"
28249 case $ac_file in
28250 -) cat "$tmp/out" && rm -f "$tmp/out";;
28251 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28252 esac \
28253 || as_fn_error "could not create $ac_file" "$LINENO" 5
28257 # CONFIG_HEADER
28259 if test x"$ac_file" != x-; then
28261 $as_echo "/* $configure_input */" \
28262 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28263 } >"$tmp/config.h" \
28264 || as_fn_error "could not create $ac_file" "$LINENO" 5
28265 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28268 else
28269 rm -f "$ac_file"
28270 mv "$tmp/config.h" "$ac_file" \
28271 || as_fn_error "could not create $ac_file" "$LINENO" 5
28273 else
28274 $as_echo "/* $configure_input */" \
28275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28276 || as_fn_error "could not create -" "$LINENO" 5
28278 # Compute "$ac_file"'s index in $config_headers.
28279 _am_arg="$ac_file"
28280 _am_stamp_count=1
28281 for _am_header in $config_headers :; do
28282 case $_am_header in
28283 $_am_arg | $_am_arg:* )
28284 break ;;
28286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28287 esac
28288 done
28289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28291 X"$_am_arg" : 'X\(//\)[^/]' \| \
28292 X"$_am_arg" : 'X\(//\)$' \| \
28293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28294 $as_echo X"$_am_arg" |
28295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28296 s//\1/
28299 /^X\(\/\/\)[^/].*/{
28300 s//\1/
28303 /^X\(\/\/\)$/{
28304 s//\1/
28307 /^X\(\/\).*/{
28308 s//\1/
28311 s/.*/./; q'`/stamp-h$_am_stamp_count
28314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28315 $as_echo "$as_me: executing $ac_file commands" >&6;}
28317 esac
28320 case $ac_file$ac_mode in
28321 "default-1":C)
28322 # Only add multilib support code if we just rebuilt the top-level
28323 # Makefile.
28324 case " $CONFIG_FILES " in
28325 *" Makefile "*)
28326 ac_file=Makefile . ${multi_basedir}/config-ml.in
28328 esac ;;
28329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28330 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28331 # are listed without --file. Let's play safe and only enable the eval
28332 # if we detect the quoting.
28333 case $CONFIG_FILES in
28334 *\'*) eval set x "$CONFIG_FILES" ;;
28335 *) set x $CONFIG_FILES ;;
28336 esac
28337 shift
28338 for mf
28340 # Strip MF so we end up with the name of the file.
28341 mf=`echo "$mf" | sed -e 's/:.*$//'`
28342 # Check whether this is an Automake generated Makefile or not.
28343 # We used to match only the files named `Makefile.in', but
28344 # some people rename them; so instead we look at the file content.
28345 # Grep'ing the first line is not enough: some people post-process
28346 # each Makefile.in and add a new line on top of each file to say so.
28347 # Grep'ing the whole file is not good either: AIX grep has a line
28348 # limit of 2048, but all sed's we know have understand at least 4000.
28349 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28350 dirpart=`$as_dirname -- "$mf" ||
28351 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28352 X"$mf" : 'X\(//\)[^/]' \| \
28353 X"$mf" : 'X\(//\)$' \| \
28354 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28355 $as_echo X"$mf" |
28356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28357 s//\1/
28360 /^X\(\/\/\)[^/].*/{
28361 s//\1/
28364 /^X\(\/\/\)$/{
28365 s//\1/
28368 /^X\(\/\).*/{
28369 s//\1/
28372 s/.*/./; q'`
28373 else
28374 continue
28376 # Extract the definition of DEPDIR, am__include, and am__quote
28377 # from the Makefile without running `make'.
28378 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28379 test -z "$DEPDIR" && continue
28380 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28381 test -z "am__include" && continue
28382 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28383 # When using ansi2knr, U may be empty or an underscore; expand it
28384 U=`sed -n 's/^U = //p' < "$mf"`
28385 # Find all dependency output files, they are included files with
28386 # $(DEPDIR) in their names. We invoke sed twice because it is the
28387 # simplest approach to changing $(DEPDIR) to its actual value in the
28388 # expansion.
28389 for file in `sed -n "
28390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28392 # Make sure the directory exists.
28393 test -f "$dirpart/$file" && continue
28394 fdir=`$as_dirname -- "$file" ||
28395 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28396 X"$file" : 'X\(//\)[^/]' \| \
28397 X"$file" : 'X\(//\)$' \| \
28398 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28399 $as_echo X"$file" |
28400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28401 s//\1/
28404 /^X\(\/\/\)[^/].*/{
28405 s//\1/
28408 /^X\(\/\/\)$/{
28409 s//\1/
28412 /^X\(\/\).*/{
28413 s//\1/
28416 s/.*/./; q'`
28417 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28418 # echo "creating $dirpart/$file"
28419 echo '# dummy' > "$dirpart/$file"
28420 done
28421 done
28424 "libtool":C)
28426 # See if we are running on zsh, and set the options which allow our
28427 # commands through without removal of \ escapes.
28428 if test -n "${ZSH_VERSION+set}" ; then
28429 setopt NO_GLOB_SUBST
28432 cfgfile="${ofile}T"
28433 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28434 $RM "$cfgfile"
28436 cat <<_LT_EOF >> "$cfgfile"
28437 #! $SHELL
28439 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28440 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28442 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28444 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28445 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28446 # Written by Gordon Matzigkeit, 1996
28448 # This file is part of GNU Libtool.
28450 # GNU Libtool is free software; you can redistribute it and/or
28451 # modify it under the terms of the GNU General Public License as
28452 # published by the Free Software Foundation; either version 2 of
28453 # the License, or (at your option) any later version.
28455 # As a special exception to the GNU General Public License,
28456 # if you distribute this file as part of a program or library that
28457 # is built using GNU Libtool, you may include this file under the
28458 # same distribution terms that you use for the rest of that program.
28460 # GNU Libtool is distributed in the hope that it will be useful,
28461 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28462 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28463 # GNU General Public License for more details.
28465 # You should have received a copy of the GNU General Public License
28466 # along with GNU Libtool; see the file COPYING. If not, a copy
28467 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28468 # obtained by writing to the Free Software Foundation, Inc.,
28469 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28472 # The names of the tagged configurations supported by this script.
28473 available_tags="FC "
28475 # ### BEGIN LIBTOOL CONFIG
28477 # Which release of libtool.m4 was used?
28478 macro_version=$macro_version
28479 macro_revision=$macro_revision
28481 # Whether or not to build shared libraries.
28482 build_libtool_libs=$enable_shared
28484 # Whether or not to build static libraries.
28485 build_old_libs=$enable_static
28487 # What type of objects to build.
28488 pic_mode=$pic_mode
28490 # Whether or not to optimize for fast installation.
28491 fast_install=$enable_fast_install
28493 # Shell to use when invoking shell scripts.
28494 SHELL=$lt_SHELL
28496 # An echo program that protects backslashes.
28497 ECHO=$lt_ECHO
28499 # The host system.
28500 host_alias=$host_alias
28501 host=$host
28502 host_os=$host_os
28504 # The build system.
28505 build_alias=$build_alias
28506 build=$build
28507 build_os=$build_os
28509 # A sed program that does not truncate output.
28510 SED=$lt_SED
28512 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28513 Xsed="\$SED -e 1s/^X//"
28515 # A grep program that handles long lines.
28516 GREP=$lt_GREP
28518 # An ERE matcher.
28519 EGREP=$lt_EGREP
28521 # A literal string matcher.
28522 FGREP=$lt_FGREP
28524 # A BSD- or MS-compatible name lister.
28525 NM=$lt_NM
28527 # Whether we need soft or hard links.
28528 LN_S=$lt_LN_S
28530 # What is the maximum length of a command?
28531 max_cmd_len=$max_cmd_len
28533 # Object file suffix (normally "o").
28534 objext=$ac_objext
28536 # Executable file suffix (normally "").
28537 exeext=$exeext
28539 # whether the shell understands "unset".
28540 lt_unset=$lt_unset
28542 # turn spaces into newlines.
28543 SP2NL=$lt_lt_SP2NL
28545 # turn newlines into spaces.
28546 NL2SP=$lt_lt_NL2SP
28548 # An object symbol dumper.
28549 OBJDUMP=$lt_OBJDUMP
28551 # Method to check whether dependent libraries are shared objects.
28552 deplibs_check_method=$lt_deplibs_check_method
28554 # Command to use when deplibs_check_method == "file_magic".
28555 file_magic_cmd=$lt_file_magic_cmd
28557 # The archiver.
28558 AR=$lt_AR
28559 AR_FLAGS=$lt_AR_FLAGS
28561 # A symbol stripping program.
28562 STRIP=$lt_STRIP
28564 # Commands used to install an old-style archive.
28565 RANLIB=$lt_RANLIB
28566 old_postinstall_cmds=$lt_old_postinstall_cmds
28567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28569 # Whether to use a lock for old archive extraction.
28570 lock_old_archive_extraction=$lock_old_archive_extraction
28572 # A C compiler.
28573 LTCC=$lt_CC
28575 # LTCC compiler flags.
28576 LTCFLAGS=$lt_CFLAGS
28578 # Take the output of nm and produce a listing of raw symbols and C names.
28579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28581 # Transform the output of nm in a proper C declaration.
28582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28584 # Transform the output of nm in a C name address pair.
28585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28587 # Transform the output of nm in a C name address pair when lib prefix is needed.
28588 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28590 # The name of the directory that contains temporary libtool files.
28591 objdir=$objdir
28593 # Used to examine libraries when file_magic_cmd begins with "file".
28594 MAGIC_CMD=$MAGIC_CMD
28596 # Must we lock files when doing compilation?
28597 need_locks=$lt_need_locks
28599 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28600 DSYMUTIL=$lt_DSYMUTIL
28602 # Tool to change global to local symbols on Mac OS X.
28603 NMEDIT=$lt_NMEDIT
28605 # Tool to manipulate fat objects and archives on Mac OS X.
28606 LIPO=$lt_LIPO
28608 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28609 OTOOL=$lt_OTOOL
28611 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28612 OTOOL64=$lt_OTOOL64
28614 # Old archive suffix (normally "a").
28615 libext=$libext
28617 # Shared library suffix (normally ".so").
28618 shrext_cmds=$lt_shrext_cmds
28620 # The commands to extract the exported symbol list from a shared archive.
28621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28623 # Variables whose values should be saved in libtool wrapper scripts and
28624 # restored at link time.
28625 variables_saved_for_relink=$lt_variables_saved_for_relink
28627 # Do we need the "lib" prefix for modules?
28628 need_lib_prefix=$need_lib_prefix
28630 # Do we need a version for libraries?
28631 need_version=$need_version
28633 # Library versioning type.
28634 version_type=$version_type
28636 # Shared library runtime path variable.
28637 runpath_var=$runpath_var
28639 # Shared library path variable.
28640 shlibpath_var=$shlibpath_var
28642 # Is shlibpath searched before the hard-coded library search path?
28643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28645 # Format of library name prefix.
28646 libname_spec=$lt_libname_spec
28648 # List of archive names. First name is the real one, the rest are links.
28649 # The last name is the one that the linker finds with -lNAME
28650 library_names_spec=$lt_library_names_spec
28652 # The coded name of the library, if different from the real name.
28653 soname_spec=$lt_soname_spec
28655 # Permission mode override for installation of shared libraries.
28656 install_override_mode=$lt_install_override_mode
28658 # Command to use after installation of a shared archive.
28659 postinstall_cmds=$lt_postinstall_cmds
28661 # Command to use after uninstallation of a shared archive.
28662 postuninstall_cmds=$lt_postuninstall_cmds
28664 # Commands used to finish a libtool library installation in a directory.
28665 finish_cmds=$lt_finish_cmds
28667 # As "finish_cmds", except a single script fragment to be evaled but
28668 # not shown.
28669 finish_eval=$lt_finish_eval
28671 # Whether we should hardcode library paths into libraries.
28672 hardcode_into_libs=$hardcode_into_libs
28674 # Compile-time system search path for libraries.
28675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28677 # Run-time system search path for libraries.
28678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28680 # Whether dlopen is supported.
28681 dlopen_support=$enable_dlopen
28683 # Whether dlopen of programs is supported.
28684 dlopen_self=$enable_dlopen_self
28686 # Whether dlopen of statically linked programs is supported.
28687 dlopen_self_static=$enable_dlopen_self_static
28689 # Commands to strip libraries.
28690 old_striplib=$lt_old_striplib
28691 striplib=$lt_striplib
28694 # The linker used to build libraries.
28695 LD=$lt_LD
28697 # How to create reloadable object files.
28698 reload_flag=$lt_reload_flag
28699 reload_cmds=$lt_reload_cmds
28701 # Commands used to build an old-style archive.
28702 old_archive_cmds=$lt_old_archive_cmds
28704 # A language specific compiler.
28705 CC=$lt_compiler
28707 # Is the compiler the GNU compiler?
28708 with_gcc=$GCC
28710 # Compiler flag to turn off builtin functions.
28711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28713 # How to pass a linker flag through the compiler.
28714 wl=$lt_lt_prog_compiler_wl
28716 # Additional compiler flags for building library objects.
28717 pic_flag=$lt_lt_prog_compiler_pic
28719 # Compiler flag to prevent dynamic linking.
28720 link_static_flag=$lt_lt_prog_compiler_static
28722 # Does compiler simultaneously support -c and -o options?
28723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28725 # Whether or not to add -lc for building shared libraries.
28726 build_libtool_need_lc=$archive_cmds_need_lc
28728 # Whether or not to disallow shared libs when runtime libs are static.
28729 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28731 # Compiler flag to allow reflexive dlopens.
28732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28734 # Compiler flag to generate shared objects directly from archives.
28735 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28737 # Whether the compiler copes with passing no objects directly.
28738 compiler_needs_object=$lt_compiler_needs_object
28740 # Create an old-style archive from a shared archive.
28741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28743 # Create a temporary old-style archive to link instead of a shared archive.
28744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28746 # Commands used to build a shared archive.
28747 archive_cmds=$lt_archive_cmds
28748 archive_expsym_cmds=$lt_archive_expsym_cmds
28750 # Commands used to build a loadable module if different from building
28751 # a shared archive.
28752 module_cmds=$lt_module_cmds
28753 module_expsym_cmds=$lt_module_expsym_cmds
28755 # Whether we are building with GNU ld or not.
28756 with_gnu_ld=$lt_with_gnu_ld
28758 # Flag that allows shared libraries with undefined symbols to be built.
28759 allow_undefined_flag=$lt_allow_undefined_flag
28761 # Flag that enforces no undefined symbols.
28762 no_undefined_flag=$lt_no_undefined_flag
28764 # Flag to hardcode \$libdir into a binary during linking.
28765 # This must work even if \$libdir does not exist
28766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28768 # If ld is used when linking, flag to hardcode \$libdir into a binary
28769 # during linking. This must work even if \$libdir does not exist.
28770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28772 # Whether we need a single "-rpath" flag with a separated argument.
28773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28776 # DIR into the resulting binary.
28777 hardcode_direct=$hardcode_direct
28779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28780 # DIR into the resulting binary and the resulting library dependency is
28781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28782 # library is relocated.
28783 hardcode_direct_absolute=$hardcode_direct_absolute
28785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28786 # into the resulting binary.
28787 hardcode_minus_L=$hardcode_minus_L
28789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28790 # into the resulting binary.
28791 hardcode_shlibpath_var=$hardcode_shlibpath_var
28793 # Set to "yes" if building a shared library automatically hardcodes DIR
28794 # into the library and all subsequent libraries and executables linked
28795 # against it.
28796 hardcode_automatic=$hardcode_automatic
28798 # Set to yes if linker adds runtime paths of dependent libraries
28799 # to runtime path list.
28800 inherit_rpath=$inherit_rpath
28802 # Whether libtool must link a program against all its dependency libraries.
28803 link_all_deplibs=$link_all_deplibs
28805 # Fix the shell variable \$srcfile for the compiler.
28806 fix_srcfile_path=$lt_fix_srcfile_path
28808 # Set to "yes" if exported symbols are required.
28809 always_export_symbols=$always_export_symbols
28811 # The commands to list exported symbols.
28812 export_symbols_cmds=$lt_export_symbols_cmds
28814 # Symbols that should not be listed in the preloaded symbols.
28815 exclude_expsyms=$lt_exclude_expsyms
28817 # Symbols that must always be exported.
28818 include_expsyms=$lt_include_expsyms
28820 # Commands necessary for linking programs (against libraries) with templates.
28821 prelink_cmds=$lt_prelink_cmds
28823 # Specify filename containing input files.
28824 file_list_spec=$lt_file_list_spec
28826 # How to hardcode a shared library path into an executable.
28827 hardcode_action=$hardcode_action
28829 # The directories searched by this compiler when creating a shared library.
28830 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28832 # Dependencies to place before and after the objects being linked to
28833 # create a shared library.
28834 predep_objects=$lt_predep_objects
28835 postdep_objects=$lt_postdep_objects
28836 predeps=$lt_predeps
28837 postdeps=$lt_postdeps
28839 # The library search path used internally by the compiler when linking
28840 # a shared library.
28841 compiler_lib_search_path=$lt_compiler_lib_search_path
28843 # ### END LIBTOOL CONFIG
28845 _LT_EOF
28847 case $host_os in
28848 aix3*)
28849 cat <<\_LT_EOF >> "$cfgfile"
28850 # AIX sometimes has problems with the GCC collect2 program. For some
28851 # reason, if we set the COLLECT_NAMES environment variable, the problems
28852 # vanish in a puff of smoke.
28853 if test "X${COLLECT_NAMES+set}" != Xset; then
28854 COLLECT_NAMES=
28855 export COLLECT_NAMES
28857 _LT_EOF
28859 esac
28862 ltmain="$ac_aux_dir/ltmain.sh"
28865 # We use sed instead of cat because bash on DJGPP gets confused if
28866 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28867 # text mode, it properly converts lines to CR/LF. This bash problem
28868 # is reportedly fixed, but why not run on old versions too?
28869 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28870 || (rm -f "$cfgfile"; exit 1)
28872 case $xsi_shell in
28873 yes)
28874 cat << \_LT_EOF >> "$cfgfile"
28876 # func_dirname file append nondir_replacement
28877 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28878 # otherwise set result to NONDIR_REPLACEMENT.
28879 func_dirname ()
28881 case ${1} in
28882 */*) func_dirname_result="${1%/*}${2}" ;;
28883 * ) func_dirname_result="${3}" ;;
28884 esac
28887 # func_basename file
28888 func_basename ()
28890 func_basename_result="${1##*/}"
28893 # func_dirname_and_basename file append nondir_replacement
28894 # perform func_basename and func_dirname in a single function
28895 # call:
28896 # dirname: Compute the dirname of FILE. If nonempty,
28897 # add APPEND to the result, otherwise set result
28898 # to NONDIR_REPLACEMENT.
28899 # value returned in "$func_dirname_result"
28900 # basename: Compute filename of FILE.
28901 # value retuned in "$func_basename_result"
28902 # Implementation must be kept synchronized with func_dirname
28903 # and func_basename. For efficiency, we do not delegate to
28904 # those functions but instead duplicate the functionality here.
28905 func_dirname_and_basename ()
28907 case ${1} in
28908 */*) func_dirname_result="${1%/*}${2}" ;;
28909 * ) func_dirname_result="${3}" ;;
28910 esac
28911 func_basename_result="${1##*/}"
28914 # func_stripname prefix suffix name
28915 # strip PREFIX and SUFFIX off of NAME.
28916 # PREFIX and SUFFIX must not contain globbing or regex special
28917 # characters, hashes, percent signs, but SUFFIX may contain a leading
28918 # dot (in which case that matches only a dot).
28919 func_stripname ()
28921 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28922 # positional parameters, so assign one to ordinary parameter first.
28923 func_stripname_result=${3}
28924 func_stripname_result=${func_stripname_result#"${1}"}
28925 func_stripname_result=${func_stripname_result%"${2}"}
28928 # func_opt_split
28929 func_opt_split ()
28931 func_opt_split_opt=${1%%=*}
28932 func_opt_split_arg=${1#*=}
28935 # func_lo2o object
28936 func_lo2o ()
28938 case ${1} in
28939 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28940 *) func_lo2o_result=${1} ;;
28941 esac
28944 # func_xform libobj-or-source
28945 func_xform ()
28947 func_xform_result=${1%.*}.lo
28950 # func_arith arithmetic-term...
28951 func_arith ()
28953 func_arith_result=$(( $* ))
28956 # func_len string
28957 # STRING may not start with a hyphen.
28958 func_len ()
28960 func_len_result=${#1}
28963 _LT_EOF
28965 *) # Bourne compatible functions.
28966 cat << \_LT_EOF >> "$cfgfile"
28968 # func_dirname file append nondir_replacement
28969 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28970 # otherwise set result to NONDIR_REPLACEMENT.
28971 func_dirname ()
28973 # Extract subdirectory from the argument.
28974 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28975 if test "X$func_dirname_result" = "X${1}"; then
28976 func_dirname_result="${3}"
28977 else
28978 func_dirname_result="$func_dirname_result${2}"
28982 # func_basename file
28983 func_basename ()
28985 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28989 # func_stripname prefix suffix name
28990 # strip PREFIX and SUFFIX off of NAME.
28991 # PREFIX and SUFFIX must not contain globbing or regex special
28992 # characters, hashes, percent signs, but SUFFIX may contain a leading
28993 # dot (in which case that matches only a dot).
28994 # func_strip_suffix prefix name
28995 func_stripname ()
28997 case ${2} in
28998 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28999 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29000 esac
29003 # sed scripts:
29004 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29005 my_sed_long_arg='1s/^-[^=]*=//'
29007 # func_opt_split
29008 func_opt_split ()
29010 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29011 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29014 # func_lo2o object
29015 func_lo2o ()
29017 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29020 # func_xform libobj-or-source
29021 func_xform ()
29023 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29026 # func_arith arithmetic-term...
29027 func_arith ()
29029 func_arith_result=`expr "$@"`
29032 # func_len string
29033 # STRING may not start with a hyphen.
29034 func_len ()
29036 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29039 _LT_EOF
29040 esac
29042 case $lt_shell_append in
29043 yes)
29044 cat << \_LT_EOF >> "$cfgfile"
29046 # func_append var value
29047 # Append VALUE to the end of shell variable VAR.
29048 func_append ()
29050 eval "$1+=\$2"
29052 _LT_EOF
29055 cat << \_LT_EOF >> "$cfgfile"
29057 # func_append var value
29058 # Append VALUE to the end of shell variable VAR.
29059 func_append ()
29061 eval "$1=\$$1\$2"
29064 _LT_EOF
29066 esac
29069 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29070 || (rm -f "$cfgfile"; exit 1)
29072 mv -f "$cfgfile" "$ofile" ||
29073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29074 chmod +x "$ofile"
29077 cat <<_LT_EOF >> "$ofile"
29079 # ### BEGIN LIBTOOL TAG CONFIG: FC
29081 # The linker used to build libraries.
29082 LD=$lt_LD_FC
29084 # How to create reloadable object files.
29085 reload_flag=$lt_reload_flag_FC
29086 reload_cmds=$lt_reload_cmds_FC
29088 # Commands used to build an old-style archive.
29089 old_archive_cmds=$lt_old_archive_cmds_FC
29091 # A language specific compiler.
29092 CC=$lt_compiler_FC
29094 # Is the compiler the GNU compiler?
29095 with_gcc=$GCC_FC
29097 # Compiler flag to turn off builtin functions.
29098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29100 # How to pass a linker flag through the compiler.
29101 wl=$lt_lt_prog_compiler_wl_FC
29103 # Additional compiler flags for building library objects.
29104 pic_flag=$lt_lt_prog_compiler_pic_FC
29106 # Compiler flag to prevent dynamic linking.
29107 link_static_flag=$lt_lt_prog_compiler_static_FC
29109 # Does compiler simultaneously support -c and -o options?
29110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29112 # Whether or not to add -lc for building shared libraries.
29113 build_libtool_need_lc=$archive_cmds_need_lc_FC
29115 # Whether or not to disallow shared libs when runtime libs are static.
29116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29118 # Compiler flag to allow reflexive dlopens.
29119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29121 # Compiler flag to generate shared objects directly from archives.
29122 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29124 # Whether the compiler copes with passing no objects directly.
29125 compiler_needs_object=$lt_compiler_needs_object_FC
29127 # Create an old-style archive from a shared archive.
29128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29130 # Create a temporary old-style archive to link instead of a shared archive.
29131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29133 # Commands used to build a shared archive.
29134 archive_cmds=$lt_archive_cmds_FC
29135 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29137 # Commands used to build a loadable module if different from building
29138 # a shared archive.
29139 module_cmds=$lt_module_cmds_FC
29140 module_expsym_cmds=$lt_module_expsym_cmds_FC
29142 # Whether we are building with GNU ld or not.
29143 with_gnu_ld=$lt_with_gnu_ld_FC
29145 # Flag that allows shared libraries with undefined symbols to be built.
29146 allow_undefined_flag=$lt_allow_undefined_flag_FC
29148 # Flag that enforces no undefined symbols.
29149 no_undefined_flag=$lt_no_undefined_flag_FC
29151 # Flag to hardcode \$libdir into a binary during linking.
29152 # This must work even if \$libdir does not exist
29153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29155 # If ld is used when linking, flag to hardcode \$libdir into a binary
29156 # during linking. This must work even if \$libdir does not exist.
29157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29159 # Whether we need a single "-rpath" flag with a separated argument.
29160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29163 # DIR into the resulting binary.
29164 hardcode_direct=$hardcode_direct_FC
29166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29167 # DIR into the resulting binary and the resulting library dependency is
29168 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29169 # library is relocated.
29170 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29172 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29173 # into the resulting binary.
29174 hardcode_minus_L=$hardcode_minus_L_FC
29176 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29177 # into the resulting binary.
29178 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29180 # Set to "yes" if building a shared library automatically hardcodes DIR
29181 # into the library and all subsequent libraries and executables linked
29182 # against it.
29183 hardcode_automatic=$hardcode_automatic_FC
29185 # Set to yes if linker adds runtime paths of dependent libraries
29186 # to runtime path list.
29187 inherit_rpath=$inherit_rpath_FC
29189 # Whether libtool must link a program against all its dependency libraries.
29190 link_all_deplibs=$link_all_deplibs_FC
29192 # Fix the shell variable \$srcfile for the compiler.
29193 fix_srcfile_path=$lt_fix_srcfile_path_FC
29195 # Set to "yes" if exported symbols are required.
29196 always_export_symbols=$always_export_symbols_FC
29198 # The commands to list exported symbols.
29199 export_symbols_cmds=$lt_export_symbols_cmds_FC
29201 # Symbols that should not be listed in the preloaded symbols.
29202 exclude_expsyms=$lt_exclude_expsyms_FC
29204 # Symbols that must always be exported.
29205 include_expsyms=$lt_include_expsyms_FC
29207 # Commands necessary for linking programs (against libraries) with templates.
29208 prelink_cmds=$lt_prelink_cmds_FC
29210 # Specify filename containing input files.
29211 file_list_spec=$lt_file_list_spec_FC
29213 # How to hardcode a shared library path into an executable.
29214 hardcode_action=$hardcode_action_FC
29216 # The directories searched by this compiler when creating a shared library.
29217 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29219 # Dependencies to place before and after the objects being linked to
29220 # create a shared library.
29221 predep_objects=$lt_predep_objects_FC
29222 postdep_objects=$lt_postdep_objects_FC
29223 predeps=$lt_predeps_FC
29224 postdeps=$lt_postdeps_FC
29226 # The library search path used internally by the compiler when linking
29227 # a shared library.
29228 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29230 # ### END LIBTOOL TAG CONFIG: FC
29231 _LT_EOF
29234 "gstdint.h":C)
29235 if test "$GCC" = yes; then
29236 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29237 else
29238 echo "/* generated for $CC */" > tmp-stdint.h
29241 sed 's/^ *//' >> tmp-stdint.h <<EOF
29243 #ifndef GCC_GENERATED_STDINT_H
29244 #define GCC_GENERATED_STDINT_H 1
29246 #include <sys/types.h>
29249 if test "$acx_cv_header_stdint" != stdint.h; then
29250 echo "#include <stddef.h>" >> tmp-stdint.h
29252 if test "$acx_cv_header_stdint" != stddef.h; then
29253 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29256 sed 's/^ *//' >> tmp-stdint.h <<EOF
29257 /* glibc uses these symbols as guards to prevent redefinitions. */
29258 #ifdef __int8_t_defined
29259 #define _INT8_T
29260 #define _INT16_T
29261 #define _INT32_T
29262 #endif
29263 #ifdef __uint32_t_defined
29264 #define _UINT32_T
29265 #endif
29269 # ----------------- done header, emit basic int types -------------
29270 if test "$acx_cv_header_stdint" = stddef.h; then
29271 sed 's/^ *//' >> tmp-stdint.h <<EOF
29273 #ifndef _UINT8_T
29274 #define _UINT8_T
29275 #ifndef __uint8_t_defined
29276 #define __uint8_t_defined
29277 #ifndef uint8_t
29278 typedef unsigned $acx_cv_type_int8_t uint8_t;
29279 #endif
29280 #endif
29281 #endif
29283 #ifndef _UINT16_T
29284 #define _UINT16_T
29285 #ifndef __uint16_t_defined
29286 #define __uint16_t_defined
29287 #ifndef uint16_t
29288 typedef unsigned $acx_cv_type_int16_t uint16_t;
29289 #endif
29290 #endif
29291 #endif
29293 #ifndef _UINT32_T
29294 #define _UINT32_T
29295 #ifndef __uint32_t_defined
29296 #define __uint32_t_defined
29297 #ifndef uint32_t
29298 typedef unsigned $acx_cv_type_int32_t uint32_t;
29299 #endif
29300 #endif
29301 #endif
29303 #ifndef _INT8_T
29304 #define _INT8_T
29305 #ifndef __int8_t_defined
29306 #define __int8_t_defined
29307 #ifndef int8_t
29308 typedef $acx_cv_type_int8_t int8_t;
29309 #endif
29310 #endif
29311 #endif
29313 #ifndef _INT16_T
29314 #define _INT16_T
29315 #ifndef __int16_t_defined
29316 #define __int16_t_defined
29317 #ifndef int16_t
29318 typedef $acx_cv_type_int16_t int16_t;
29319 #endif
29320 #endif
29321 #endif
29323 #ifndef _INT32_T
29324 #define _INT32_T
29325 #ifndef __int32_t_defined
29326 #define __int32_t_defined
29327 #ifndef int32_t
29328 typedef $acx_cv_type_int32_t int32_t;
29329 #endif
29330 #endif
29331 #endif
29333 elif test "$ac_cv_type_u_int32_t" = yes; then
29334 sed 's/^ *//' >> tmp-stdint.h <<EOF
29336 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29337 #ifndef _INT8_T
29338 #define _INT8_T
29339 #endif
29340 #ifndef _INT16_T
29341 #define _INT16_T
29342 #endif
29343 #ifndef _INT32_T
29344 #define _INT32_T
29345 #endif
29347 #ifndef _UINT8_T
29348 #define _UINT8_T
29349 #ifndef __uint8_t_defined
29350 #define __uint8_t_defined
29351 #ifndef uint8_t
29352 typedef u_int8_t uint8_t;
29353 #endif
29354 #endif
29355 #endif
29357 #ifndef _UINT16_T
29358 #define _UINT16_T
29359 #ifndef __uint16_t_defined
29360 #define __uint16_t_defined
29361 #ifndef uint16_t
29362 typedef u_int16_t uint16_t;
29363 #endif
29364 #endif
29365 #endif
29367 #ifndef _UINT32_T
29368 #define _UINT32_T
29369 #ifndef __uint32_t_defined
29370 #define __uint32_t_defined
29371 #ifndef uint32_t
29372 typedef u_int32_t uint32_t;
29373 #endif
29374 #endif
29375 #endif
29377 else
29378 sed 's/^ *//' >> tmp-stdint.h <<EOF
29380 /* Some systems have guard macros to prevent redefinitions, define them. */
29381 #ifndef _INT8_T
29382 #define _INT8_T
29383 #endif
29384 #ifndef _INT16_T
29385 #define _INT16_T
29386 #endif
29387 #ifndef _INT32_T
29388 #define _INT32_T
29389 #endif
29390 #ifndef _UINT8_T
29391 #define _UINT8_T
29392 #endif
29393 #ifndef _UINT16_T
29394 #define _UINT16_T
29395 #endif
29396 #ifndef _UINT32_T
29397 #define _UINT32_T
29398 #endif
29402 # ------------- done basic int types, emit int64_t types ------------
29403 if test "$ac_cv_type_uint64_t" = yes; then
29404 sed 's/^ *//' >> tmp-stdint.h <<EOF
29406 /* system headers have good uint64_t and int64_t */
29407 #ifndef _INT64_T
29408 #define _INT64_T
29409 #endif
29410 #ifndef _UINT64_T
29411 #define _UINT64_T
29412 #endif
29414 elif test "$ac_cv_type_u_int64_t" = yes; then
29415 sed 's/^ *//' >> tmp-stdint.h <<EOF
29417 /* system headers have an u_int64_t (and int64_t) */
29418 #ifndef _INT64_T
29419 #define _INT64_T
29420 #endif
29421 #ifndef _UINT64_T
29422 #define _UINT64_T
29423 #ifndef __uint64_t_defined
29424 #define __uint64_t_defined
29425 #ifndef uint64_t
29426 typedef u_int64_t uint64_t;
29427 #endif
29428 #endif
29429 #endif
29431 elif test -n "$acx_cv_type_int64_t"; then
29432 sed 's/^ *//' >> tmp-stdint.h <<EOF
29434 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29435 #ifndef _INT64_T
29436 #define _INT64_T
29437 #ifndef int64_t
29438 typedef $acx_cv_type_int64_t int64_t;
29439 #endif
29440 #endif
29441 #ifndef _UINT64_T
29442 #define _UINT64_T
29443 #ifndef __uint64_t_defined
29444 #define __uint64_t_defined
29445 #ifndef uint64_t
29446 typedef unsigned $acx_cv_type_int64_t uint64_t;
29447 #endif
29448 #endif
29449 #endif
29451 else
29452 sed 's/^ *//' >> tmp-stdint.h <<EOF
29454 /* some common heuristics for int64_t, using compiler-specific tests */
29455 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29456 #ifndef _INT64_T
29457 #define _INT64_T
29458 #ifndef __int64_t_defined
29459 #ifndef int64_t
29460 typedef long long int64_t;
29461 #endif
29462 #endif
29463 #endif
29464 #ifndef _UINT64_T
29465 #define _UINT64_T
29466 #ifndef uint64_t
29467 typedef unsigned long long uint64_t;
29468 #endif
29469 #endif
29471 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29472 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29473 does not implement __extension__. But that compiler doesn't define
29474 __GNUC_MINOR__. */
29475 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29476 # define __extension__
29477 # endif
29479 # ifndef _INT64_T
29480 # define _INT64_T
29481 # ifndef int64_t
29482 __extension__ typedef long long int64_t;
29483 # endif
29484 # endif
29485 # ifndef _UINT64_T
29486 # define _UINT64_T
29487 # ifndef uint64_t
29488 __extension__ typedef unsigned long long uint64_t;
29489 # endif
29490 # endif
29492 #elif !defined __STRICT_ANSI__
29493 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29495 # ifndef _INT64_T
29496 # define _INT64_T
29497 # ifndef int64_t
29498 typedef __int64 int64_t;
29499 # endif
29500 # endif
29501 # ifndef _UINT64_T
29502 # define _UINT64_T
29503 # ifndef uint64_t
29504 typedef unsigned __int64 uint64_t;
29505 # endif
29506 # endif
29507 # endif /* compiler */
29509 #endif /* ANSI version */
29513 # ------------- done int64_t types, emit intptr types ------------
29514 if test "$ac_cv_type_uintptr_t" != yes; then
29515 sed 's/^ *//' >> tmp-stdint.h <<EOF
29517 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29518 #ifndef __uintptr_t_defined
29519 #ifndef uintptr_t
29520 typedef u$acx_cv_type_intptr_t uintptr_t;
29521 #endif
29522 #endif
29523 #ifndef __intptr_t_defined
29524 #ifndef intptr_t
29525 typedef $acx_cv_type_intptr_t intptr_t;
29526 #endif
29527 #endif
29531 # ------------- done intptr types, emit int_least types ------------
29532 if test "$ac_cv_type_int_least32_t" != yes; then
29533 sed 's/^ *//' >> tmp-stdint.h <<EOF
29535 /* Define int_least types */
29536 typedef int8_t int_least8_t;
29537 typedef int16_t int_least16_t;
29538 typedef int32_t int_least32_t;
29539 #ifdef _INT64_T
29540 typedef int64_t int_least64_t;
29541 #endif
29543 typedef uint8_t uint_least8_t;
29544 typedef uint16_t uint_least16_t;
29545 typedef uint32_t uint_least32_t;
29546 #ifdef _UINT64_T
29547 typedef uint64_t uint_least64_t;
29548 #endif
29552 # ------------- done intptr types, emit int_fast types ------------
29553 if test "$ac_cv_type_int_fast32_t" != yes; then
29554 sed 's/^ *//' >> tmp-stdint.h <<EOF
29556 /* Define int_fast types. short is often slow */
29557 typedef int8_t int_fast8_t;
29558 typedef int int_fast16_t;
29559 typedef int32_t int_fast32_t;
29560 #ifdef _INT64_T
29561 typedef int64_t int_fast64_t;
29562 #endif
29564 typedef uint8_t uint_fast8_t;
29565 typedef unsigned int uint_fast16_t;
29566 typedef uint32_t uint_fast32_t;
29567 #ifdef _UINT64_T
29568 typedef uint64_t uint_fast64_t;
29569 #endif
29573 if test "$ac_cv_type_uintmax_t" != yes; then
29574 sed 's/^ *//' >> tmp-stdint.h <<EOF
29576 /* Define intmax based on what we found */
29577 #ifndef intmax_t
29578 #ifdef _INT64_T
29579 typedef int64_t intmax_t;
29580 #else
29581 typedef long intmax_t;
29582 #endif
29583 #endif
29584 #ifndef uintmax_t
29585 #ifdef _UINT64_T
29586 typedef uint64_t uintmax_t;
29587 #else
29588 typedef unsigned long uintmax_t;
29589 #endif
29590 #endif
29594 sed 's/^ *//' >> tmp-stdint.h <<EOF
29596 #endif /* GCC_GENERATED_STDINT_H */
29599 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29600 rm -f tmp-stdint.h
29601 else
29602 mv -f tmp-stdint.h gstdint.h
29607 esac
29608 done # for ac_tag
29611 as_fn_exit 0
29612 _ACEOF
29613 ac_clean_files=$ac_clean_files_save
29615 test $ac_write_fail = 0 ||
29616 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29619 # configure is writing to config.log, and then calls config.status.
29620 # config.status does its own redirection, appending to config.log.
29621 # Unfortunately, on DOS this fails, as config.log is still kept open
29622 # by configure, so config.status won't be able to write to it; its
29623 # output is simply discarded. So we exec the FD to /dev/null,
29624 # effectively closing config.log, so it can be properly (re)opened and
29625 # appended to by config.status. When coming back to configure, we
29626 # need to make the FD available again.
29627 if test "$no_create" != yes; then
29628 ac_cs_success=:
29629 ac_config_status_args=
29630 test "$silent" = yes &&
29631 ac_config_status_args="$ac_config_status_args --quiet"
29632 exec 5>/dev/null
29633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29634 exec 5>>config.log
29635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29636 # would make configure fail if this is the last instruction.
29637 $ac_cs_success || as_fn_exit $?
29639 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29641 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}