Daily bump.
[official-gcc.git] / libgfortran / configure
blob8601d8440fa909e520f50a5fdbc23de620d5b7f8
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 " pwd.h"
2547 as_fn_append ac_header_list " complex.h"
2548 as_fn_append ac_func_list " getrusage"
2549 as_fn_append ac_func_list " times"
2550 as_fn_append ac_func_list " mkstemp"
2551 as_fn_append ac_func_list " strtof"
2552 as_fn_append ac_func_list " strtold"
2553 as_fn_append ac_func_list " snprintf"
2554 as_fn_append ac_func_list " ftruncate"
2555 as_fn_append ac_func_list " chsize"
2556 as_fn_append ac_func_list " chdir"
2557 as_fn_append ac_func_list " getlogin"
2558 as_fn_append ac_func_list " gethostname"
2559 as_fn_append ac_func_list " kill"
2560 as_fn_append ac_func_list " link"
2561 as_fn_append ac_func_list " symlink"
2562 as_fn_append ac_func_list " sleep"
2563 as_fn_append ac_func_list " ttyname"
2564 as_fn_append ac_func_list " alarm"
2565 as_fn_append ac_func_list " access"
2566 as_fn_append ac_func_list " fork"
2567 as_fn_append ac_func_list " execl"
2568 as_fn_append ac_func_list " wait"
2569 as_fn_append ac_func_list " setmode"
2570 as_fn_append ac_func_list " execve"
2571 as_fn_append ac_func_list " pipe"
2572 as_fn_append ac_func_list " dup2"
2573 as_fn_append ac_func_list " close"
2574 as_fn_append ac_func_list " strcasestr"
2575 as_fn_append ac_func_list " getrlimit"
2576 as_fn_append ac_func_list " gettimeofday"
2577 as_fn_append ac_func_list " stat"
2578 as_fn_append ac_func_list " fstat"
2579 as_fn_append ac_func_list " lstat"
2580 as_fn_append ac_func_list " getpwuid"
2581 as_fn_append ac_func_list " vsnprintf"
2582 as_fn_append ac_func_list " dup"
2583 as_fn_append ac_func_list " getcwd"
2584 as_fn_append ac_func_list " localtime_r"
2585 as_fn_append ac_func_list " gmtime_r"
2586 as_fn_append ac_func_list " getpwuid_r"
2587 as_fn_append ac_func_list " ttyname_r"
2588 as_fn_append ac_func_list " clock_gettime"
2589 as_fn_append ac_func_list " readlink"
2590 as_fn_append ac_func_list " getgid"
2591 as_fn_append ac_func_list " getpid"
2592 as_fn_append ac_func_list " getppid"
2593 as_fn_append ac_func_list " getuid"
2594 as_fn_append ac_func_list " geteuid"
2595 as_fn_append ac_func_list " umask"
2596 as_fn_append ac_func_list " getegid"
2597 as_fn_append ac_func_list " secure_getenv"
2598 as_fn_append ac_func_list " __secure_getenv"
2599 as_fn_append ac_header_list " math.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2649 done
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 ac_config_headers="$ac_config_headers config.h"
2673 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t in install-sh install.sh shtool; do
2676 if test -f "$ac_dir/$ac_t"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/$ac_t -c"
2679 break 2
2681 done
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 # Make sure we can run config.sub.
2697 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701 $as_echo_n "checking build system type... " >&6; }
2702 if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 ac_build_alias=$build_alias
2706 test "x$ac_build_alias" = x &&
2707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2708 test "x$ac_build_alias" = x &&
2709 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715 $as_echo "$ac_cv_build" >&6; }
2716 case $ac_cv_build in
2717 *-*-*) ;;
2718 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2719 esac
2720 build=$ac_cv_build
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_build
2723 shift
2724 build_cpu=$1
2725 build_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 build_os=$*
2730 IFS=$ac_save_IFS
2731 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734 case ${build_alias} in
2735 "") build_noncanonical=${build} ;;
2736 *) build_noncanonical=${build_alias} ;;
2737 esac
2739 case ${host_alias} in
2740 "") host_noncanonical=${build_noncanonical} ;;
2741 *) host_noncanonical=${host_alias} ;;
2742 esac
2744 case ${target_alias} in
2745 "") target_noncanonical=${host_noncanonical} ;;
2746 *) target_noncanonical=${target_alias} ;;
2747 esac
2750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751 # have matching libraries, they should use host libraries: Makefile.tpl
2752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753 # However, they still use the build modules, because the corresponding
2754 # host modules (e.g. bison) are only built for the host when bootstrap
2755 # finishes. So:
2756 # - build_subdir is where we find build modules, and never changes.
2757 # - build_libsubdir is where we find build libraries, and can be overridden.
2759 # Prefix 'build-' so this never conflicts with target_subdir.
2760 build_subdir="build-${build_noncanonical}"
2762 # Check whether --with-build-libsubdir was given.
2763 if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
2765 else
2766 build_libsubdir="$build_subdir"
2769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770 if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773 else
2774 host_subdir=.
2776 # No prefix.
2777 target_subdir=${target_noncanonical}
2780 # -------
2781 # Options
2782 # -------
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2785 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2786 # Check whether --enable-version-specific-runtime-libs was given.
2787 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2788 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2789 yes) version_specific_libs=yes ;;
2790 no) version_specific_libs=no ;;
2791 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2792 esac
2793 else
2794 version_specific_libs=no
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2798 $as_echo "$version_specific_libs" >&6; }
2800 # Build with intermodule optimisations
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2802 $as_echo_n "checking for --enable-intermodule... " >&6; }
2803 # Check whether --enable-intermodule was given.
2804 if test "${enable_intermodule+set}" = set; then :
2805 enableval=$enable_intermodule; case "$enable_intermodule" in
2806 yes) onestep="-onestep";;
2807 *) onestep="";;
2808 esac
2809 else
2810 onestep=""
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2814 $as_echo "$enable_intermodule" >&6; }
2815 if test x$onestep = x-onestep; then
2816 onestep_TRUE=
2817 onestep_FALSE='#'
2818 else
2819 onestep_TRUE='#'
2820 onestep_FALSE=
2825 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2827 # You will slowly go insane if you do not grok the following fact: when
2828 # building this library, the top-level /target/ becomes the library's /host/.
2830 # configure then causes --target to default to --host, exactly like any
2831 # other package using autoconf. Therefore, 'target' and 'host' will
2832 # always be the same. This makes sense both for native and cross compilers
2833 # just think about it for a little while. :-)
2835 # Also, if this library is being configured as part of a cross compiler, the
2836 # top-level configure script will pass the "real" host as $with_cross_host.
2838 # Do not delete or change the following two lines. For why, see
2839 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if test "${ac_cv_host+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test "x$host_alias" = x; then
2846 ac_cv_host=$ac_cv_build
2847 else
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2855 case $ac_cv_host in
2856 *-*-*) ;;
2857 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2858 esac
2859 host=$ac_cv_host
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_host
2862 shift
2863 host_cpu=$1
2864 host_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 host_os=$*
2869 IFS=$ac_save_IFS
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2874 $as_echo_n "checking target system type... " >&6; }
2875 if test "${ac_cv_target+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test "x$target_alias" = x; then
2879 ac_cv_target=$ac_cv_host
2880 else
2881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2882 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2887 $as_echo "$ac_cv_target" >&6; }
2888 case $ac_cv_target in
2889 *-*-*) ;;
2890 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2891 esac
2892 target=$ac_cv_target
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_target
2895 shift
2896 target_cpu=$1
2897 target_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 target_os=$*
2902 IFS=$ac_save_IFS
2903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2906 # The aliases save the names the user supplied, while $host etc.
2907 # will get canonicalized.
2908 test -n "$target_alias" &&
2909 test "$program_prefix$program_suffix$program_transform_name" = \
2910 NONENONEs,x,x, &&
2911 program_prefix=${target_alias}-
2916 target_alias=${target_alias-$host_alias}
2919 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2920 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2921 # 1.9.6: minimum required version
2922 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2923 # of other PACKAGE_* variables will, however, and there's nothing
2924 # we can do about that; they come from AC_INIT).
2925 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2926 # file in the top srcdir, etc, etc), so stop complaining.
2927 # no-dist: we don't want 'dist' and related rules.
2928 # -Wall: turns on all automake warnings...
2929 # -Wno-portability: ...except this one, since GNU make is required.
2930 am__api_version='1.11'
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2938 # AIX /bin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if test "${ac_cv_path_install+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962 /usr/ucb/* ) ;;
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2966 # by default.
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2978 else
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2982 mkdir conftest.dir
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2987 then
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 break 3
2993 done
2994 done
2996 esac
2998 done
2999 IFS=$as_save_IFS
3001 rm -rf conftest.one conftest.two conftest.dir
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3006 else
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 INSTALL=$ac_install_sh
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 # Just in case
3028 sleep 1
3029 echo timestamp > conftest.file
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3032 am_lf='
3034 case `pwd` in
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041 esac
3043 # Do `set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050 if test "$*" = "X"; then
3051 # -L didn't work.
3052 set X `ls -t "$srcdir/configure" conftest.file`
3054 rm -f conftest.file
3055 if test "$*" != "X $srcdir/configure conftest.file" \
3056 && test "$*" != "X conftest.file $srcdir/configure"; then
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
3062 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3063 alias in your environment" "$LINENO" 5
3066 test "$2" = conftest.file
3068 then
3069 # Ok.
3071 else
3072 as_fn_error "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082 # Double any \ or $.
3083 # By default was `s,x,x', remove it if useless.
3084 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3090 if test x"${MISSING+set}" != xset; then
3091 case $am_aux_dir in
3092 *\ * | *\ *)
3093 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3095 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096 esac
3098 # Use eval to expand $SHELL
3099 if eval "$MISSING --run true"; then
3100 am_missing_run="$MISSING --run "
3101 else
3102 am_missing_run=
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3107 if test x"${install_sh}" != xset; then
3108 case $am_aux_dir in
3109 *\ * | *\ *)
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3113 esac
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'. However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_STRIP+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$ac_cv_prog_STRIP"; then
3161 ac_ct_STRIP=$STRIP
3162 # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3198 if test "x$ac_ct_STRIP" = x; then
3199 STRIP=":"
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207 STRIP=$ac_ct_STRIP
3209 else
3210 STRIP="$ac_cv_prog_STRIP"
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218 if test -z "$MKDIR_P"; then
3219 if test "${ac_cv_path_mkdir+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in mkdir gmkdir; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231 'mkdir (GNU coreutils) '* | \
3232 'mkdir (coreutils) '* | \
3233 'mkdir (fileutils) '4.1*)
3234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3235 break 3;;
3236 esac
3237 done
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 if test "${ac_cv_path_mkdir+set}" = set; then
3245 MKDIR_P="$ac_cv_path_mkdir -p"
3246 else
3247 # As a last resort, use the slow shell script. Don't cache a
3248 # value for MKDIR_P within a source directory, because that will
3249 # break other packages using the cache if that directory is
3250 # removed, or if the value is a relative name.
3251 test -d ./--version && rmdir ./--version
3252 MKDIR_P="$ac_install_sh -d"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256 $as_echo "$MKDIR_P" >&6; }
3258 mkdir_p="$MKDIR_P"
3259 case $mkdir_p in
3260 [\\/$]* | ?:[\\/]*) ;;
3261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3262 esac
3264 for ac_prog in gawk mawk nawk awk
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_AWK+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_AWK="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3293 AWK=$ac_cv_prog_AWK
3294 if test -n "$AWK"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296 $as_echo "$AWK" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$AWK" && break
3304 done
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 set x ${MAKE-make}
3309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat >conftest.make <<\_ACEOF
3314 SHELL = /bin/sh
3315 all:
3316 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 _ACEOF
3318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 *@@@%%%=?*=@@@%%%*)
3321 eval ac_cv_prog_make_${ac_make}_set=yes;;
3323 eval ac_cv_prog_make_${ac_make}_set=no;;
3324 esac
3325 rm -f conftest.make
3327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 SET_MAKE=
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 SET_MAKE="MAKE=${MAKE-make}"
3337 rm -rf .tst 2>/dev/null
3338 mkdir .tst 2>/dev/null
3339 if test -d .tst; then
3340 am__leading_dot=.
3341 else
3342 am__leading_dot=_
3344 rmdir .tst 2>/dev/null
3346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348 # is not polluted with repeated "-I."
3349 am__isrc=' -I$(srcdir)'
3350 # test to see if srcdir already configured
3351 if test -f $srcdir/config.status; then
3352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3356 # test whether we have cygpath
3357 if test -z "$CYGPATH_W"; then
3358 if (cygpath --version) >/dev/null 2>/dev/null; then
3359 CYGPATH_W='cygpath -w'
3360 else
3361 CYGPATH_W=echo
3366 # Define the identity of the package.
3367 PACKAGE='libgfortran'
3368 VERSION='0.3'
3371 # Some tools Automake needs.
3373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3387 # We need awk for the "check" target. The system "awk" is bad on
3388 # some platforms.
3389 # Always define AMTAR for backward compatibility. Yes, it's still used
3390 # in the wild :-( We should find a proper way to deprecate it ...
3391 AMTAR='$${TAR-tar}'
3393 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3403 # Check whether --enable-maintainer-mode was given.
3404 if test "${enable_maintainer_mode+set}" = set; then :
3405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3406 else
3407 USE_MAINTAINER_MODE=no
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3412 if test $USE_MAINTAINER_MODE = yes; then
3413 MAINTAINER_MODE_TRUE=
3414 MAINTAINER_MODE_FALSE='#'
3415 else
3416 MAINTAINER_MODE_TRUE='#'
3417 MAINTAINER_MODE_FALSE=
3420 MAINT=$MAINTAINER_MODE_TRUE
3423 # Default to --enable-multilib
3424 # Check whether --enable-multilib was given.
3425 if test "${enable_multilib+set}" = set; then :
3426 enableval=$enable_multilib; case "$enableval" in
3427 yes) multilib=yes ;;
3428 no) multilib=no ;;
3429 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3430 esac
3431 else
3432 multilib=yes
3436 # We may get other options which we leave undocumented:
3437 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3438 # See config-ml.in if you want the gory details.
3440 if test "$srcdir" = "."; then
3441 if test "$with_target_subdir" != "."; then
3442 multi_basedir="$srcdir/$with_multisrctop../.."
3443 else
3444 multi_basedir="$srcdir/$with_multisrctop.."
3446 else
3447 multi_basedir="$srcdir/.."
3451 # Even if the default multilib is not a cross compilation,
3452 # it may be that some of the other multilibs are.
3453 if test $cross_compiling = no && test $multilib = yes \
3454 && test "x${with_multisubdir}" != x ; then
3455 cross_compiling=maybe
3458 ac_config_commands="$ac_config_commands default-1"
3461 # Handy for debugging:
3462 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3464 # Are we being configured with some form of cross compiler?
3465 # NB: We don't actually need to know this just now, but when, say, a test
3466 # suite is included, we'll have to know.
3467 if test "$build" != "$host"; then
3468 LIBGFOR_IS_NATIVE=false
3470 else
3471 LIBGFOR_IS_NATIVE=true
3474 DEPDIR="${am__leading_dot}deps"
3476 ac_config_commands="$ac_config_commands depfiles"
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3481 am__doit:
3482 @echo this is the am__doit target
3483 .PHONY: am__doit
3485 # If we don't find an include directive, just comment out the code.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3488 am__include="#"
3489 am__quote=
3490 _am_result=none
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # Ignore all kinds of additional output from `make'.
3494 case `$am_make -s -f confmf 2> /dev/null` in #(
3495 *the\ am__doit\ target*)
3496 am__include=include
3497 am__quote=
3498 _am_result=GNU
3500 esac
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3510 esac
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515 $as_echo "$_am_result" >&6; }
3516 rm -f confinc confmf
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526 am__nodep='_no'
3528 if test "x$enable_dependency_tracking" != xno; then
3529 AMDEP_TRUE=
3530 AMDEP_FALSE='#'
3531 else
3532 AMDEP_TRUE='#'
3533 AMDEP_FALSE=
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3581 if test -z "$ac_cv_prog_CC"; then
3582 ac_ct_CC=$CC
3583 # Extract the first word of "gcc", so it can be a program name with args.
3584 set dummy gcc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$ac_ct_CC"; then
3591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_ac_ct_CC="gcc"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3604 done
3605 done
3606 IFS=$as_save_IFS
3610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3611 if test -n "$ac_ct_CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3613 $as_echo "$ac_ct_CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3630 else
3631 CC="$ac_cv_prog_CC"
3634 if test -z "$CC"; then
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 ac_cv_prog_CC="${ac_tool_prefix}cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3675 if test -z "$CC"; then
3676 # Extract the first word of "cc", so it can be a program name with args.
3677 set dummy cc; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 ac_prog_rejected=no
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3695 ac_prog_rejected=yes
3696 continue
3698 ac_cv_prog_CC="cc"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3704 IFS=$as_save_IFS
3706 if test $ac_prog_rejected = yes; then
3707 # We found a bogon in the path, so make sure we never use it.
3708 set dummy $ac_cv_prog_CC
3709 shift
3710 if test $# != 0; then
3711 # We chose a different compiler from the bogus one.
3712 # However, it has the same basename, so the bogon will be chosen
3713 # first if we set CC to just the basename; use the full file name.
3714 shift
3715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3720 CC=$ac_cv_prog_CC
3721 if test -n "$CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3724 else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3731 if test -z "$CC"; then
3732 if test -n "$ac_tool_prefix"; then
3733 for ac_prog in cl.exe
3735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_CC+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3756 done
3757 done
3758 IFS=$as_save_IFS
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3772 test -n "$CC" && break
3773 done
3775 if test -z "$CC"; then
3776 ac_ct_CC=$CC
3777 for ac_prog in cl.exe
3779 # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_ac_ct_CC="$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3800 done
3801 done
3802 IFS=$as_save_IFS
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3816 test -n "$ac_ct_CC" && break
3817 done
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error "no acceptable C compiler found in \$PATH
3838 See \`config.log' for more details." "$LINENO" 5; }
3840 # Provide some information about the compiler.
3841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3842 set X $ac_compile
3843 ac_compiler=$2
3844 for ac_option in --version -v -V -qversion; do
3845 { { ac_try="$ac_compiler $ac_option >&5"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853 ac_status=$?
3854 if test -s conftest.err; then
3855 sed '10a\
3856 ... rest of stderr output deleted ...
3857 10q' conftest.err >conftest.er1
3858 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }
3863 done
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3869 main ()
3873 return 0;
3875 _ACEOF
3876 # FIXME: Cleanup?
3877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3878 (eval $ac_link) 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 gcc_no_link=no
3883 else
3884 gcc_no_link=yes
3886 if test x$gcc_no_link = xyes; then
3887 # Setting cross_compile will disable run tests; it will
3888 # also disable AC_CHECK_FILE but that's generally
3889 # correct if we can't link.
3890 cross_compiling=yes
3891 EXEEXT=
3892 else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3897 main ()
3901 return 0;
3903 _ACEOF
3904 ac_clean_files_save=$ac_clean_files
3905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3906 # Try to create an executable without -o first, disregard a.out.
3907 # It will help us diagnose broken compilers, and finding out an intuition
3908 # of exeext.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3910 $as_echo_n "checking for C compiler default output file name... " >&6; }
3911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3913 # The possible output files:
3914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3916 ac_rmfiles=
3917 for ac_file in $ac_files
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3922 esac
3923 done
3924 rm -f $ac_rmfiles
3926 if { { ac_try="$ac_link_default"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933 (eval "$ac_link_default") 2>&5
3934 ac_status=$?
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then :
3937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3940 # so that the user can short-circuit this test for compilers unknown to
3941 # Autoconf.
3942 for ac_file in $ac_files ''
3944 test -f "$ac_file" || continue
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3948 [ab].out )
3949 # We found the default executable, but exeext='' is most
3950 # certainly right.
3951 break;;
3952 *.* )
3953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3954 then :; else
3955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957 # We set ac_cv_exeext here because the later test for it is not
3958 # safe: cross compilers may not add the suffix if given an `-o'
3959 # argument, so we may need to know it at that point already.
3960 # Even if this section looks crufty: it has the advantage of
3961 # actually working.
3962 break;;
3964 break;;
3965 esac
3966 done
3967 test "$ac_cv_exeext" = no && ac_cv_exeext=
3969 else
3970 ac_file=''
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3973 $as_echo "$ac_file" >&6; }
3974 if test -z "$ac_file"; then :
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 { as_fn_set_status 77
3981 as_fn_error "C compiler cannot create executables
3982 See \`config.log' for more details." "$LINENO" 5; }; }
3984 ac_exeext=$ac_cv_exeext
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3989 $as_echo_n "checking whether the C compiler works... " >&6; }
3990 # If not cross compiling, check that we can run a simple program.
3991 if test "$cross_compiling" != yes; then
3992 if { ac_try='./$ac_file'
3993 { { case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_try") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; }; then
4003 cross_compiling=no
4004 else
4005 if test "$cross_compiling" = maybe; then
4006 cross_compiling=yes
4007 else
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error "cannot run C compiled programs.
4011 If you meant to cross compile, use \`--host'.
4012 See \`config.log' for more details." "$LINENO" 5; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017 $as_echo "yes" >&6; }
4019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4020 ac_clean_files=$ac_clean_files_save
4021 # Check that the compiler produces executables we can run. If not, either
4022 # the compiler is broken, or we cross compile.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4024 $as_echo_n "checking whether we are cross compiling... " >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4026 $as_echo "$cross_compiling" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4029 $as_echo_n "checking for suffix of executables... " >&6; }
4030 if { { ac_try="$ac_link"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4043 # work properly (i.e., refer to `conftest.exe'), while it won't with
4044 # `rm'.
4045 for ac_file in conftest.exe conftest conftest.*; do
4046 test -f "$ac_file" || continue
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4050 break;;
4051 * ) break;;
4052 esac
4053 done
4054 else
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error "cannot compute suffix of executables: cannot compile and link
4058 See \`config.log' for more details." "$LINENO" 5; }
4060 rm -f conftest$ac_cv_exeext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4062 $as_echo "$ac_cv_exeext" >&6; }
4064 rm -f conftest.$ac_ext
4065 EXEEXT=$ac_cv_exeext
4066 ac_exeext=$EXEEXT
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069 $as_echo_n "checking for suffix of object files... " >&6; }
4070 if test "${ac_cv_objext+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.o conftest.obj
4085 if { { ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4098 case $ac_file in
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4101 break;;
4102 esac
4103 done
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 as_fn_error "cannot compute suffix of object files: cannot compile
4111 See \`config.log' for more details." "$LINENO" 5; }
4113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116 $as_echo "$ac_cv_objext" >&6; }
4117 OBJEXT=$ac_cv_objext
4118 ac_objext=$OBJEXT
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4128 main ()
4130 #ifndef __GNUC__
4131 choke me
4132 #endif
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_compiler_gnu=yes
4140 else
4141 ac_compiler_gnu=no
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151 else
4152 GCC=
4154 ac_test_CFLAGS=${CFLAGS+set}
4155 ac_save_CFLAGS=$CFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4158 if test "${ac_cv_prog_cc_g+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4163 ac_cv_prog_cc_g=no
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_g=yes
4178 else
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 main ()
4188 return 0;
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4193 else
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4204 return 0;
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_g=yes
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 $as_echo "$ac_cv_prog_cc_g" >&6; }
4219 if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4227 else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_cv_prog_cc_c89=no
4240 ac_save_CC=$CC
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <stdarg.h>
4244 #include <stdio.h>
4245 #include <sys/types.h>
4246 #include <sys/stat.h>
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4251 char **p;
4252 int i;
4254 return p[i];
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4258 char *s;
4259 va_list v;
4260 va_start (v,p);
4261 s = g (p, va_arg (v,int));
4262 va_end (v);
4263 return s;
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4277 #define FOO(x) 'x'
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 int argc;
4285 char **argv;
4287 main ()
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4291 return 0;
4293 _ACEOF
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 done
4304 rm -f conftest.$ac_ext
4305 CC=$ac_save_CC
4308 # AC_CACHE_VAL
4309 case "x$ac_cv_prog_cc_c89" in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4313 xno)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 depcc="$CC" am_compiler_list=
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4334 $as_echo_n "checking dependency style of $depcc... " >&6; }
4335 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4339 # We make a subdir and do the tests there. Otherwise we can end up
4340 # making bogus files that we don't know about and never remove. For
4341 # instance it was reported that on HP-UX the gcc test will end up
4342 # making a dummy file named `D' -- because `-MD' means `put the output
4343 # in D'.
4344 rm -rf conftest.dir
4345 mkdir conftest.dir
4346 # Copy depcomp to subdir because otherwise we won't find it if we're
4347 # using a relative directory.
4348 cp "$am_depcomp" conftest.dir
4349 cd conftest.dir
4350 # We will build objects and dependencies in a subdirectory because
4351 # it helps to detect inapplicable dependency modes. For instance
4352 # both Tru64's cc and ICC support -MD to output dependencies as a
4353 # side effect of compilation, but ICC will put the dependencies in
4354 # the current directory while Tru64 will put them in the object
4355 # directory.
4356 mkdir sub
4358 am_cv_CC_dependencies_compiler_type=none
4359 if test "$am_compiler_list" = ""; then
4360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4362 am__universal=false
4363 case " $depcc " in #(
4364 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4365 esac
4367 for depmode in $am_compiler_list; do
4368 # Setup a source with many dependencies, because some compilers
4369 # like to wrap large dependency lists on column 80 (with \), and
4370 # we should not choose a depcomp mode which is confused by this.
4372 # We need to recreate these files for each test, as the compiler may
4373 # overwrite some of them when testing with obscure command lines.
4374 # This happens at least with the AIX C compiler.
4375 : > sub/conftest.c
4376 for i in 1 2 3 4 5 6; do
4377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4378 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4379 # Solaris 8's {/usr,}/bin/sh.
4380 touch sub/conftst$i.h
4381 done
4382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4384 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4385 # mode. It turns out that the SunPro C++ compiler does not properly
4386 # handle `-M -o', and we need to detect this. Also, some Intel
4387 # versions had trouble with output in subdirs
4388 am__obj=sub/conftest.${OBJEXT-o}
4389 am__minus_obj="-o $am__obj"
4390 case $depmode in
4391 gcc)
4392 # This depmode causes a compiler race in universal mode.
4393 test "$am__universal" = false || continue
4395 nosideeffect)
4396 # after this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested
4398 if test "x$enable_dependency_tracking" = xyes; then
4399 continue
4400 else
4401 break
4404 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4405 # This compiler won't grok `-c -o', but also, the minuso test has
4406 # not run yet. These depmodes are late enough in the game, and
4407 # so weak that their functioning should not be impacted.
4408 am__obj=conftest.${OBJEXT-o}
4409 am__minus_obj=
4411 none) break ;;
4412 esac
4413 if depmode=$depmode \
4414 source=sub/conftest.c object=$am__obj \
4415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4417 >/dev/null 2>conftest.err &&
4418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4422 # icc doesn't choke on unknown options, it will just issue warnings
4423 # or remarks (even with -Werror). So we grep stderr for any message
4424 # that says an option was ignored or not supported.
4425 # When given -MP, icc 7.0 and 7.1 complain thusly:
4426 # icc: Command line warning: ignoring option '-M'; no argument required
4427 # The diagnosis changed in icc 8.0:
4428 # icc: Command line remark: option '-MP' not supported
4429 if (grep 'ignoring option' conftest.err ||
4430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4431 am_cv_CC_dependencies_compiler_type=$depmode
4432 break
4435 done
4437 cd ..
4438 rm -rf conftest.dir
4439 else
4440 am_cv_CC_dependencies_compiler_type=none
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4445 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4446 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
4453 else
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4469 CPP=
4471 if test -z "$CPP"; then
4472 if test "${ac_cv_prog_CPP+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 # Double quotes because CPP needs to be expanded
4476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4478 ac_preproc_ok=false
4479 for ac_c_preproc_warn_flag in '' yes
4481 # Use a header file that comes with gcc, so configuring glibc
4482 # with a fresh cross-compiler works.
4483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484 # <limits.h> exists even on freestanding compilers.
4485 # On the NeXT, cc -E runs the code through the compiler's parser,
4486 # not just through cpp. "Syntax error" is here to catch this case.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494 Syntax error
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4498 else
4499 # Broken: fails on valid input.
4500 continue
4502 rm -f conftest.err conftest.$ac_ext
4504 # OK, works on sane cases. Now check whether nonexistent headers
4505 # can be detected and how.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <ac_nonexistent.h>
4509 _ACEOF
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4511 # Broken: success on invalid input.
4512 continue
4513 else
4514 # Passes both tests.
4515 ac_preproc_ok=:
4516 break
4518 rm -f conftest.err conftest.$ac_ext
4520 done
4521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4522 rm -f conftest.err conftest.$ac_ext
4523 if $ac_preproc_ok; then :
4524 break
4527 done
4528 ac_cv_prog_CPP=$CPP
4531 CPP=$ac_cv_prog_CPP
4532 else
4533 ac_cv_prog_CPP=$CPP
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4536 $as_echo "$CPP" >&6; }
4537 ac_preproc_ok=false
4538 for ac_c_preproc_warn_flag in '' yes
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #ifdef __STDC__
4549 # include <limits.h>
4550 #else
4551 # include <assert.h>
4552 #endif
4553 Syntax error
4554 _ACEOF
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4557 else
4558 # Broken: fails on valid input.
4559 continue
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <ac_nonexistent.h>
4568 _ACEOF
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4570 # Broken: success on invalid input.
4571 continue
4572 else
4573 # Passes both tests.
4574 ac_preproc_ok=:
4575 break
4577 rm -f conftest.err conftest.$ac_ext
4579 done
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then :
4584 else
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." "$LINENO" 5; }
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4600 if test "${ac_cv_path_GREP+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -z "$GREP"; then
4604 ac_path_GREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in grep ggrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616 # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in
4618 *GNU*)
4619 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo 'GREP' >> "conftest.nl"
4629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_GREP="$ac_path_GREP"
4635 ac_path_GREP_max=$ac_count
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4643 $ac_path_GREP_found && break 3
4644 done
4645 done
4646 done
4647 IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_GREP"; then
4649 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651 else
4652 ac_cv_path_GREP=$GREP
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4657 $as_echo "$ac_cv_path_GREP" >&6; }
4658 GREP="$ac_cv_path_GREP"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if test "${ac_cv_path_EGREP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4667 then ac_cv_path_EGREP="$GREP -E"
4668 else
4669 if test -z "$EGREP"; then
4670 ac_path_EGREP_found=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_prog in egrep; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682 # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4684 *GNU*)
4685 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687 ac_count=0
4688 $as_echo_n 0123456789 >"conftest.in"
4689 while :
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo 'EGREP' >> "conftest.nl"
4695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_EGREP="$ac_path_EGREP"
4701 ac_path_EGREP_max=$ac_count
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4705 done
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4709 $ac_path_EGREP_found && break 3
4710 done
4711 done
4712 done
4713 IFS=$as_save_IFS
4714 if test -z "$ac_cv_path_EGREP"; then
4715 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4717 else
4718 ac_cv_path_EGREP=$EGREP
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725 EGREP="$ac_cv_path_EGREP"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4729 $as_echo_n "checking for ANSI C header files... " >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <stdlib.h>
4736 #include <stdarg.h>
4737 #include <string.h>
4738 #include <float.h>
4741 main ()
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_header_stdc=yes
4750 else
4751 ac_cv_header_stdc=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 if test $ac_cv_header_stdc = yes; then
4756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <string.h>
4761 _ACEOF
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "memchr" >/dev/null 2>&1; then :
4765 else
4766 ac_cv_header_stdc=no
4768 rm -f conftest*
4772 if test $ac_cv_header_stdc = yes; then
4773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <stdlib.h>
4778 _ACEOF
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4780 $EGREP "free" >/dev/null 2>&1; then :
4782 else
4783 ac_cv_header_stdc=no
4785 rm -f conftest*
4789 if test $ac_cv_header_stdc = yes; then
4790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4791 if test "$cross_compiling" = yes; then :
4793 else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <ctype.h>
4797 #include <stdlib.h>
4798 #if ((' ' & 0x0FF) == 0x020)
4799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 #else
4802 # define ISLOWER(c) \
4803 (('a' <= (c) && (c) <= 'i') \
4804 || ('j' <= (c) && (c) <= 'r') \
4805 || ('s' <= (c) && (c) <= 'z'))
4806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4807 #endif
4809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4811 main ()
4813 int i;
4814 for (i = 0; i < 256; i++)
4815 if (XOR (islower (i), ISLOWER (i))
4816 || toupper (i) != TOUPPER (i))
4817 return 2;
4818 return 0;
4820 _ACEOF
4821 if ac_fn_c_try_run "$LINENO"; then :
4823 else
4824 ac_cv_header_stdc=no
4826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4827 conftest.$ac_objext conftest.beam conftest.$ac_ext
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4833 $as_echo "$ac_cv_header_stdc" >&6; }
4834 if test $ac_cv_header_stdc = yes; then
4836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4842 inttypes.h stdint.h unistd.h
4843 do :
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4847 eval as_val=\$$as_ac_Header
4848 if test "x$as_val" = x""yes; then :
4849 cat >>confdefs.h <<_ACEOF
4850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4851 _ACEOF
4855 done
4859 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4860 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4861 MINIX=yes
4862 else
4863 MINIX=
4867 if test "$MINIX" = yes; then
4869 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4872 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4875 $as_echo "#define _MINIX 1" >>confdefs.h
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4881 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4882 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4888 # define __EXTENSIONS__ 1
4889 $ac_includes_default
4891 main ()
4895 return 0;
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_safe_to_define___extensions__=yes
4900 else
4901 ac_cv_safe_to_define___extensions__=no
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4906 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4907 test $ac_cv_safe_to_define___extensions__ = yes &&
4908 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4910 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4912 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4914 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4916 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4920 # Calculate toolexeclibdir
4921 # Also toolexecdir, though it's only used in toolexeclibdir
4922 case ${version_specific_libs} in
4923 yes)
4924 # Need the gcc compiler version to know where to install libraries
4925 # and header files if --enable-version-specific-runtime-libs option
4926 # is selected.
4927 toolexecdir='$(libdir)/gcc/$(target_alias)'
4928 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4931 if test -n "$with_cross_host" &&
4932 test x"$with_cross_host" != x"no"; then
4933 # Install a library built with a cross compiler in tooldir, not libdir.
4934 toolexecdir='$(exec_prefix)/$(target_alias)'
4935 toolexeclibdir='$(toolexecdir)/lib'
4936 else
4937 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4938 toolexeclibdir='$(libdir)'
4940 multi_os_directory=`$CC -print-multi-os-directory`
4941 case $multi_os_directory in
4942 .) ;; # Avoid trailing /.
4943 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4944 esac
4946 esac
4950 # Create a spec file, so that compile/link tests don't fail
4951 test -f libgfortran.spec || touch libgfortran.spec
4953 ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 # Check the compiler.
4960 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4961 # We must force CC to /not/ be precious variables; otherwise
4962 # the wrong, non-multilib-adjusted value will be used in multilibs.
4963 # As a side effect, we have to subst CFLAGS ourselves.
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_prog_CC+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$CC"; then
4981 ac_cv_prog_CC="$CC" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4994 done
4995 done
4996 IFS=$as_save_IFS
5000 CC=$ac_cv_prog_CC
5001 if test -n "$CC"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003 $as_echo "$CC" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5011 if test -z "$ac_cv_prog_CC"; then
5012 ac_ct_CC=$CC
5013 # Extract the first word of "gcc", so it can be a program name with args.
5014 set dummy gcc; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_ac_ct_CC="gcc"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041 if test -n "$ac_ct_CC"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5043 $as_echo "$ac_ct_CC" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5049 if test "x$ac_ct_CC" = x; then
5050 CC=""
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053 yes:)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058 CC=$ac_ct_CC
5060 else
5061 CC="$ac_cv_prog_CC"
5064 if test -z "$CC"; then
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}cc; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_CC+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CC"; then
5074 ac_cv_prog_CC="$CC" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CC="${ac_tool_prefix}cc"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 CC=$ac_cv_prog_CC
5094 if test -n "$CC"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5096 $as_echo "$CC" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5105 if test -z "$CC"; then
5106 # Extract the first word of "cc", so it can be a program name with args.
5107 set dummy cc; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_CC+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$CC"; then
5114 ac_cv_prog_CC="$CC" # Let the user override the test.
5115 else
5116 ac_prog_rejected=no
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5125 ac_prog_rejected=yes
5126 continue
5128 ac_cv_prog_CC="cc"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5136 if test $ac_prog_rejected = yes; then
5137 # We found a bogon in the path, so make sure we never use it.
5138 set dummy $ac_cv_prog_CC
5139 shift
5140 if test $# != 0; then
5141 # We chose a different compiler from the bogus one.
5142 # However, it has the same basename, so the bogon will be chosen
5143 # first if we set CC to just the basename; use the full file name.
5144 shift
5145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5150 CC=$ac_cv_prog_CC
5151 if test -n "$CC"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5153 $as_echo "$CC" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5161 if test -z "$CC"; then
5162 if test -n "$ac_tool_prefix"; then
5163 for ac_prog in cl.exe
5165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_CC+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 CC=$ac_cv_prog_CC
5193 if test -n "$CC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5195 $as_echo "$CC" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 test -n "$CC" && break
5203 done
5205 if test -z "$CC"; then
5206 ac_ct_CC=$CC
5207 for ac_prog in cl.exe
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$ac_ct_CC"; then
5217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_CC="$ac_prog"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5230 done
5231 done
5232 IFS=$as_save_IFS
5236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5237 if test -n "$ac_ct_CC"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5239 $as_echo "$ac_ct_CC" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5246 test -n "$ac_ct_CC" && break
5247 done
5249 if test "x$ac_ct_CC" = x; then
5250 CC=""
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 CC=$ac_ct_CC
5265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5267 as_fn_error "no acceptable C compiler found in \$PATH
5268 See \`config.log' for more details." "$LINENO" 5; }
5270 # Provide some information about the compiler.
5271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5272 set X $ac_compile
5273 ac_compiler=$2
5274 for ac_option in --version -v -V -qversion; do
5275 { { ac_try="$ac_compiler $ac_option >&5"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 $as_echo "$ac_try_echo"; } >&5
5282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5283 ac_status=$?
5284 if test -s conftest.err; then
5285 sed '10a\
5286 ... rest of stderr output deleted ...
5287 10q' conftest.err >conftest.er1
5288 cat conftest.er1 >&5
5289 rm -f conftest.er1 conftest.err
5291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292 test $ac_status = 0; }
5293 done
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5297 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 main ()
5306 #ifndef __GNUC__
5307 choke me
5308 #endif
5311 return 0;
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_compiler_gnu=yes
5316 else
5317 ac_compiler_gnu=no
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5324 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5325 if test $ac_compiler_gnu = yes; then
5326 GCC=yes
5327 else
5328 GCC=
5330 ac_test_CFLAGS=${CFLAGS+set}
5331 ac_save_CFLAGS=$CFLAGS
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5333 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5334 if test "${ac_cv_prog_cc_g+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 ac_save_c_werror_flag=$ac_c_werror_flag
5338 ac_c_werror_flag=yes
5339 ac_cv_prog_cc_g=no
5340 CFLAGS="-g"
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5345 main ()
5349 return 0;
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_prog_cc_g=yes
5354 else
5355 CFLAGS=""
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5369 else
5370 ac_c_werror_flag=$ac_save_c_werror_flag
5371 CFLAGS="-g"
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5376 main ()
5380 return 0;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_prog_cc_g=yes
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_c_werror_flag=$ac_save_c_werror_flag
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5394 $as_echo "$ac_cv_prog_cc_g" >&6; }
5395 if test "$ac_test_CFLAGS" = set; then
5396 CFLAGS=$ac_save_CFLAGS
5397 elif test $ac_cv_prog_cc_g = yes; then
5398 if test "$GCC" = yes; then
5399 CFLAGS="-g -O2"
5400 else
5401 CFLAGS="-g"
5403 else
5404 if test "$GCC" = yes; then
5405 CFLAGS="-O2"
5406 else
5407 CFLAGS=
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5412 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 ac_cv_prog_cc_c89=no
5416 ac_save_CC=$CC
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <stdarg.h>
5420 #include <stdio.h>
5421 #include <sys/types.h>
5422 #include <sys/stat.h>
5423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5424 struct buf { int x; };
5425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5426 static char *e (p, i)
5427 char **p;
5428 int i;
5430 return p[i];
5432 static char *f (char * (*g) (char **, int), char **p, ...)
5434 char *s;
5435 va_list v;
5436 va_start (v,p);
5437 s = g (p, va_arg (v,int));
5438 va_end (v);
5439 return s;
5442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5443 function prototypes and stuff, but not '\xHH' hex character constants.
5444 These don't provoke an error unfortunately, instead are silently treated
5445 as 'x'. The following induces an error, until -std is added to get
5446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5447 array size at least. It's necessary to write '\x00'==0 to get something
5448 that's true only with -std. */
5449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5452 inside strings and character constants. */
5453 #define FOO(x) 'x'
5454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5456 int test (int i, double x);
5457 struct s1 {int (*f) (int a);};
5458 struct s2 {int (*f) (double a);};
5459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5460 int argc;
5461 char **argv;
5463 main ()
5465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5467 return 0;
5469 _ACEOF
5470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5473 CC="$ac_save_CC $ac_arg"
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_prog_cc_c89=$ac_arg
5477 rm -f core conftest.err conftest.$ac_objext
5478 test "x$ac_cv_prog_cc_c89" != "xno" && break
5479 done
5480 rm -f conftest.$ac_ext
5481 CC=$ac_save_CC
5484 # AC_CACHE_VAL
5485 case "x$ac_cv_prog_cc_c89" in
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5488 $as_echo "none needed" >&6; } ;;
5489 xno)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5491 $as_echo "unsupported" >&6; } ;;
5493 CC="$CC $ac_cv_prog_cc_c89"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5496 esac
5497 if test "x$ac_cv_prog_cc_c89" != xno; then :
5501 ac_ext=c
5502 ac_cpp='$CPP $CPPFLAGS'
5503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 depcc="$CC" am_compiler_list=
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5510 $as_echo_n "checking dependency style of $depcc... " >&6; }
5511 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5515 # We make a subdir and do the tests there. Otherwise we can end up
5516 # making bogus files that we don't know about and never remove. For
5517 # instance it was reported that on HP-UX the gcc test will end up
5518 # making a dummy file named `D' -- because `-MD' means `put the output
5519 # in D'.
5520 rm -rf conftest.dir
5521 mkdir conftest.dir
5522 # Copy depcomp to subdir because otherwise we won't find it if we're
5523 # using a relative directory.
5524 cp "$am_depcomp" conftest.dir
5525 cd conftest.dir
5526 # We will build objects and dependencies in a subdirectory because
5527 # it helps to detect inapplicable dependency modes. For instance
5528 # both Tru64's cc and ICC support -MD to output dependencies as a
5529 # side effect of compilation, but ICC will put the dependencies in
5530 # the current directory while Tru64 will put them in the object
5531 # directory.
5532 mkdir sub
5534 am_cv_CC_dependencies_compiler_type=none
5535 if test "$am_compiler_list" = ""; then
5536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5538 am__universal=false
5539 case " $depcc " in #(
5540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5541 esac
5543 for depmode in $am_compiler_list; do
5544 # Setup a source with many dependencies, because some compilers
5545 # like to wrap large dependency lists on column 80 (with \), and
5546 # we should not choose a depcomp mode which is confused by this.
5548 # We need to recreate these files for each test, as the compiler may
5549 # overwrite some of them when testing with obscure command lines.
5550 # This happens at least with the AIX C compiler.
5551 : > sub/conftest.c
5552 for i in 1 2 3 4 5 6; do
5553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5555 # Solaris 8's {/usr,}/bin/sh.
5556 touch sub/conftst$i.h
5557 done
5558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5561 # mode. It turns out that the SunPro C++ compiler does not properly
5562 # handle `-M -o', and we need to detect this. Also, some Intel
5563 # versions had trouble with output in subdirs
5564 am__obj=sub/conftest.${OBJEXT-o}
5565 am__minus_obj="-o $am__obj"
5566 case $depmode in
5567 gcc)
5568 # This depmode causes a compiler race in universal mode.
5569 test "$am__universal" = false || continue
5571 nosideeffect)
5572 # after this tag, mechanisms are not by side-effect, so they'll
5573 # only be used when explicitly requested
5574 if test "x$enable_dependency_tracking" = xyes; then
5575 continue
5576 else
5577 break
5580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5581 # This compiler won't grok `-c -o', but also, the minuso test has
5582 # not run yet. These depmodes are late enough in the game, and
5583 # so weak that their functioning should not be impacted.
5584 am__obj=conftest.${OBJEXT-o}
5585 am__minus_obj=
5587 none) break ;;
5588 esac
5589 if depmode=$depmode \
5590 source=sub/conftest.c object=$am__obj \
5591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5593 >/dev/null 2>conftest.err &&
5594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5598 # icc doesn't choke on unknown options, it will just issue warnings
5599 # or remarks (even with -Werror). So we grep stderr for any message
5600 # that says an option was ignored or not supported.
5601 # When given -MP, icc 7.0 and 7.1 complain thusly:
5602 # icc: Command line warning: ignoring option '-M'; no argument required
5603 # The diagnosis changed in icc 8.0:
5604 # icc: Command line remark: option '-MP' not supported
5605 if (grep 'ignoring option' conftest.err ||
5606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5607 am_cv_CC_dependencies_compiler_type=$depmode
5608 break
5611 done
5613 cd ..
5614 rm -rf conftest.dir
5615 else
5616 am_cv_CC_dependencies_compiler_type=none
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5621 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5622 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5625 test "x$enable_dependency_tracking" != xno \
5626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5627 am__fastdepCC_TRUE=
5628 am__fastdepCC_FALSE='#'
5629 else
5630 am__fastdepCC_TRUE='#'
5631 am__fastdepCC_FALSE=
5639 if test "x$CC" != xcc; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5641 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5644 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5646 set dummy $CC; ac_cc=`$as_echo "$2" |
5647 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5655 main ()
5659 return 0;
5661 _ACEOF
5662 # Make sure it works both with $CC and with simple cc.
5663 # We do the test twice because some compilers refuse to overwrite an
5664 # existing .o file with -o, though they will create one.
5665 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5689 if test "x$CC" != xcc; then
5690 # Test first that cc exists at all.
5691 if { ac_try='cc -c conftest.$ac_ext >&5'
5692 { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }; then
5702 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5703 rm -f conftest2.*
5704 if { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 $as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; } &&
5714 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719 $as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; };
5724 then
5725 # cc works too.
5727 else
5728 # cc exists but doesn't like -o.
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5733 else
5734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5736 rm -f core conftest*
5739 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5746 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5750 # FIXME: we rely on the cache variable name because
5751 # there is no other way.
5752 set dummy $CC
5753 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5754 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5755 if test "$am_t" != yes; then
5756 # Losing compiler, so override with the script.
5757 # FIXME: It is wrong to rewrite CC.
5758 # But if we don't then we get into trouble of one sort or another.
5759 # A longer-term fix would be to have automake use am__CC in this case,
5760 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5761 CC="$am_aux_dir/compile $CC"
5766 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5767 if test "x$GCC" = "xyes"; then
5768 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5769 ## We like to use C99 routines when available. This makes sure that
5770 ## __STDC_VERSION__ is set such that libc includes make them available.
5771 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5772 ## Compile the following tests with the same system header contents
5773 ## that we'll encounter when compiling our own source files.
5774 CFLAGS="-std=gnu99 $CFLAGS"
5780 # Check for symbol versioning (copied from libssp).
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5782 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5783 # Check whether --enable-symvers was given.
5784 if test "${enable_symvers+set}" = set; then :
5785 enableval=$enable_symvers; gfortran_use_symver=$enableval
5786 else
5787 gfortran_use_symver=yes
5790 if test "x$gfortran_use_symver" != xno; then
5791 save_LDFLAGS="$LDFLAGS"
5792 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5793 cat > conftest.map <<EOF
5794 FOO_1.0 {
5795 global: *foo*; bar; local: *;
5798 if test x$gcc_no_link = xyes; then
5799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int foo;
5805 main ()
5809 return 0;
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 gfortran_use_symver=gnu
5814 else
5815 gfortran_use_symver=no
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819 if test x$gfortran_use_symver = xno; then
5820 case "$target_os" in
5821 solaris2*)
5822 LDFLAGS="$save_LDFLAGS"
5823 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5824 # Sun ld cannot handle wildcards and treats all entries as undefined.
5825 cat > conftest.map <<EOF
5826 FOO_1.0 {
5827 global: foo; local: *;
5830 if test x$gcc_no_link = xyes; then
5831 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int foo;
5837 main ()
5841 return 0;
5843 _ACEOF
5844 if ac_fn_c_try_link "$LINENO"; then :
5845 gfortran_use_symver=sun
5846 else
5847 gfortran_use_symver=no
5849 rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5852 esac
5854 LDFLAGS="$save_LDFLAGS"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5857 $as_echo "$gfortran_use_symver" >&6; }
5858 if test "x$gfortran_use_symver" != xno; then
5859 LIBGFOR_USE_SYMVER_TRUE=
5860 LIBGFOR_USE_SYMVER_FALSE='#'
5861 else
5862 LIBGFOR_USE_SYMVER_TRUE='#'
5863 LIBGFOR_USE_SYMVER_FALSE=
5866 if test "x$gfortran_use_symver" = xgnu; then
5867 LIBGFOR_USE_SYMVER_GNU_TRUE=
5868 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5869 else
5870 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5871 LIBGFOR_USE_SYMVER_GNU_FALSE=
5874 if test "x$gfortran_use_symver" = xsun; then
5875 LIBGFOR_USE_SYMVER_SUN_TRUE=
5876 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5877 else
5878 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5879 LIBGFOR_USE_SYMVER_SUN_FALSE=
5883 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5884 # similarly to how libstdc++ does it
5885 ac_test_CFLAGS="${CFLAGS+set}"
5886 ac_save_CFLAGS="$CFLAGS"
5888 # Check for -ffunction-sections -fdata-sections
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5890 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5891 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5896 main ()
5898 int foo;
5900 return 0;
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_fdsections=yes
5905 else
5906 ac_fdsections=no
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 if test "$ac_test_CFLAGS" = set; then
5910 CFLAGS="$ac_save_CFLAGS"
5911 else
5912 # this is the suspicious part
5913 CFLAGS=""
5915 if test x"$ac_fdsections" = x"yes"; then
5916 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5919 $as_echo "$ac_fdsections" >&6; }
5922 # Find other programs we need.
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}as; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_AS+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$AS"; then
5932 ac_cv_prog_AS="$AS" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_AS="${ac_tool_prefix}as"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5945 done
5946 done
5947 IFS=$as_save_IFS
5951 AS=$ac_cv_prog_AS
5952 if test -n "$AS"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5954 $as_echo "$AS" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5962 if test -z "$ac_cv_prog_AS"; then
5963 ac_ct_AS=$AS
5964 # Extract the first word of "as", so it can be a program name with args.
5965 set dummy as; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if test -n "$ac_ct_AS"; then
5972 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_AS="as"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5985 done
5986 done
5987 IFS=$as_save_IFS
5991 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5992 if test -n "$ac_ct_AS"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5994 $as_echo "$ac_ct_AS" >&6; }
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6000 if test "x$ac_ct_AS" = x; then
6001 AS=""
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 AS=$ac_ct_AS
6011 else
6012 AS="$ac_cv_prog_AS"
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}ar; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_AR+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test -n "$AR"; then
6024 ac_cv_prog_AR="$AR" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_AR="${ac_tool_prefix}ar"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6037 done
6038 done
6039 IFS=$as_save_IFS
6043 AR=$ac_cv_prog_AR
6044 if test -n "$AR"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6046 $as_echo "$AR" >&6; }
6047 else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6054 if test -z "$ac_cv_prog_AR"; then
6055 ac_ct_AR=$AR
6056 # Extract the first word of "ar", so it can be a program name with args.
6057 set dummy ar; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$ac_ct_AR"; then
6064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_AR="ar"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6077 done
6078 done
6079 IFS=$as_save_IFS
6083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6084 if test -n "$ac_ct_AR"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6086 $as_echo "$ac_ct_AR" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6092 if test "x$ac_ct_AR" = x; then
6093 AR=""
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101 AR=$ac_ct_AR
6103 else
6104 AR="$ac_cv_prog_AR"
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6129 done
6130 done
6131 IFS=$as_save_IFS
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138 $as_echo "$RANLIB" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_RANLIB="ranlib"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6169 done
6170 done
6171 IFS=$as_save_IFS
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178 $as_echo "$ac_ct_RANLIB" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$ac_ct_RANLIB" = x; then
6185 RANLIB="ranlib-not-found-in-path-error"
6186 else
6187 case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193 RANLIB=$ac_ct_RANLIB
6195 else
6196 RANLIB="$ac_cv_prog_RANLIB"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6201 set x ${MAKE-make}
6202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat >conftest.make <<\_ACEOF
6207 SHELL = /bin/sh
6208 all:
6209 @echo '@@@%%%=$(MAKE)=@@@%%%'
6210 _ACEOF
6211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6213 *@@@%%%=?*=@@@%%%*)
6214 eval ac_cv_prog_make_${ac_make}_set=yes;;
6216 eval ac_cv_prog_make_${ac_make}_set=no;;
6217 esac
6218 rm -f conftest.make
6220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6222 $as_echo "yes" >&6; }
6223 SET_MAKE=
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 SET_MAKE="MAKE=${MAKE-make}"
6232 # Configure libtool
6233 #AC_MSG_NOTICE([====== Starting libtool configuration])
6234 enable_dlopen=yes
6238 case `pwd` in
6239 *\ * | *\ *)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6241 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6242 esac
6246 macro_version='2.2.7a'
6247 macro_revision='1.3134'
6261 ltmain="$ac_aux_dir/ltmain.sh"
6263 # Backslashify metacharacters that are still active within
6264 # double-quoted strings.
6265 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6267 # Same as above, but do not quote variable references.
6268 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6270 # Sed substitution to delay expansion of an escaped shell variable in a
6271 # double_quote_subst'ed string.
6272 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6274 # Sed substitution to delay expansion of an escaped single quote.
6275 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6277 # Sed substitution to avoid accidental globbing in evaled expressions
6278 no_glob_subst='s/\*/\\\*/g'
6280 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6285 $as_echo_n "checking how to print strings... " >&6; }
6286 # Test print first, because it will be a builtin if present.
6287 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6288 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6289 ECHO='print -r --'
6290 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6291 ECHO='printf %s\n'
6292 else
6293 # Use this function as a fallback that always works.
6294 func_fallback_echo ()
6296 eval 'cat <<_LTECHO_EOF
6298 _LTECHO_EOF'
6300 ECHO='func_fallback_echo'
6303 # func_echo_all arg...
6304 # Invoke $ECHO with all args, space-separated.
6305 func_echo_all ()
6307 $ECHO ""
6310 case "$ECHO" in
6311 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6312 $as_echo "printf" >&6; } ;;
6313 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6314 $as_echo "print -r" >&6; } ;;
6315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6316 $as_echo "cat" >&6; } ;;
6317 esac
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6333 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6334 if test "${ac_cv_path_SED+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6338 for ac_i in 1 2 3 4 5 6 7; do
6339 ac_script="$ac_script$as_nl$ac_script"
6340 done
6341 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6342 { ac_script=; unset ac_script;}
6343 if test -z "$SED"; then
6344 ac_path_SED_found=false
6345 # Loop through the user's path and test for each of PROGNAME-LIST
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_prog in sed gsed; do
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6354 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6355 # Check for GNU ac_path_SED and select it if it is found.
6356 # Check for GNU $ac_path_SED
6357 case `"$ac_path_SED" --version 2>&1` in
6358 *GNU*)
6359 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6361 ac_count=0
6362 $as_echo_n 0123456789 >"conftest.in"
6363 while :
6365 cat "conftest.in" "conftest.in" >"conftest.tmp"
6366 mv "conftest.tmp" "conftest.in"
6367 cp "conftest.in" "conftest.nl"
6368 $as_echo '' >> "conftest.nl"
6369 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6371 as_fn_arith $ac_count + 1 && ac_count=$as_val
6372 if test $ac_count -gt ${ac_path_SED_max-0}; then
6373 # Best one so far, save it but keep looking for a better one
6374 ac_cv_path_SED="$ac_path_SED"
6375 ac_path_SED_max=$ac_count
6377 # 10*(2^10) chars as input seems more than enough
6378 test $ac_count -gt 10 && break
6379 done
6380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6381 esac
6383 $ac_path_SED_found && break 3
6384 done
6385 done
6386 done
6387 IFS=$as_save_IFS
6388 if test -z "$ac_cv_path_SED"; then
6389 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6391 else
6392 ac_cv_path_SED=$SED
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6397 $as_echo "$ac_cv_path_SED" >&6; }
6398 SED="$ac_cv_path_SED"
6399 rm -f conftest.sed
6401 test -z "$SED" && SED=sed
6402 Xsed="$SED -e 1s/^X//"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6415 $as_echo_n "checking for fgrep... " >&6; }
6416 if test "${ac_cv_path_FGREP+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6420 then ac_cv_path_FGREP="$GREP -F"
6421 else
6422 if test -z "$FGREP"; then
6423 ac_path_FGREP_found=false
6424 # Loop through the user's path and test for each of PROGNAME-LIST
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_prog in fgrep; do
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6433 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6434 # Check for GNU ac_path_FGREP and select it if it is found.
6435 # Check for GNU $ac_path_FGREP
6436 case `"$ac_path_FGREP" --version 2>&1` in
6437 *GNU*)
6438 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6440 ac_count=0
6441 $as_echo_n 0123456789 >"conftest.in"
6442 while :
6444 cat "conftest.in" "conftest.in" >"conftest.tmp"
6445 mv "conftest.tmp" "conftest.in"
6446 cp "conftest.in" "conftest.nl"
6447 $as_echo 'FGREP' >> "conftest.nl"
6448 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6450 as_fn_arith $ac_count + 1 && ac_count=$as_val
6451 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6452 # Best one so far, save it but keep looking for a better one
6453 ac_cv_path_FGREP="$ac_path_FGREP"
6454 ac_path_FGREP_max=$ac_count
6456 # 10*(2^10) chars as input seems more than enough
6457 test $ac_count -gt 10 && break
6458 done
6459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6460 esac
6462 $ac_path_FGREP_found && break 3
6463 done
6464 done
6465 done
6466 IFS=$as_save_IFS
6467 if test -z "$ac_cv_path_FGREP"; then
6468 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6470 else
6471 ac_cv_path_FGREP=$FGREP
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6477 $as_echo "$ac_cv_path_FGREP" >&6; }
6478 FGREP="$ac_cv_path_FGREP"
6481 test -z "$GREP" && GREP=grep
6501 # Check whether --with-gnu-ld was given.
6502 if test "${with_gnu_ld+set}" = set; then :
6503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6504 else
6505 with_gnu_ld=no
6508 ac_prog=ld
6509 if test "$GCC" = yes; then
6510 # Check if gcc -print-prog-name=ld gives a path.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6512 $as_echo_n "checking for ld used by $CC... " >&6; }
6513 case $host in
6514 *-*-mingw*)
6515 # gcc leaves a trailing carriage return which upsets mingw
6516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6519 esac
6520 case $ac_prog in
6521 # Accept absolute paths.
6522 [\\/]* | ?:[\\/]*)
6523 re_direlt='/[^/][^/]*/\.\./'
6524 # Canonicalize the pathname of ld
6525 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6526 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6527 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6528 done
6529 test -z "$LD" && LD="$ac_prog"
6532 # If it fails, then pretend we aren't using GCC.
6533 ac_prog=ld
6536 # If it is relative, then search for the first ld in PATH.
6537 with_gnu_ld=unknown
6539 esac
6540 elif test "$with_gnu_ld" = yes; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6542 $as_echo_n "checking for GNU ld... " >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6545 $as_echo_n "checking for non-GNU ld... " >&6; }
6547 if test "${lt_cv_path_LD+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -z "$LD"; then
6551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6552 for ac_dir in $PATH; do
6553 IFS="$lt_save_ifs"
6554 test -z "$ac_dir" && ac_dir=.
6555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6556 lt_cv_path_LD="$ac_dir/$ac_prog"
6557 # Check to see if the program is GNU ld. I'd rather use --version,
6558 # but apparently some variants of GNU ld only accept -v.
6559 # Break only if it was the GNU/non-GNU ld that we prefer.
6560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6561 *GNU* | *'with BFD'*)
6562 test "$with_gnu_ld" != no && break
6565 test "$with_gnu_ld" != yes && break
6567 esac
6569 done
6570 IFS="$lt_save_ifs"
6571 else
6572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6576 LD="$lt_cv_path_LD"
6577 if test -n "$LD"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6579 $as_echo "$LD" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6587 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6591 case `$LD -v 2>&1 </dev/null` in
6592 *GNU* | *'with BFD'*)
6593 lt_cv_prog_gnu_ld=yes
6596 lt_cv_prog_gnu_ld=no
6598 esac
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6601 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6602 with_gnu_ld=$lt_cv_prog_gnu_ld
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6613 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6614 if test "${lt_cv_path_NM+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$NM"; then
6618 # Let the user override the test.
6619 lt_cv_path_NM="$NM"
6620 else
6621 lt_nm_to_check="${ac_tool_prefix}nm"
6622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623 lt_nm_to_check="$lt_nm_to_check nm"
6625 for lt_tmp_nm in $lt_nm_to_check; do
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628 IFS="$lt_save_ifs"
6629 test -z "$ac_dir" && ac_dir=.
6630 tmp_nm="$ac_dir/$lt_tmp_nm"
6631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632 # Check to see if the nm accepts a BSD-compat flag.
6633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634 # nm: unknown option "B" ignored
6635 # Tru64's nm complains that /dev/null is an invalid object file
6636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637 */dev/null* | *'Invalid file or object type'*)
6638 lt_cv_path_NM="$tmp_nm -B"
6639 break
6642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643 */dev/null*)
6644 lt_cv_path_NM="$tmp_nm -p"
6645 break
6648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649 continue # so that we can try to find one that supports BSD flags
6651 esac
6653 esac
6655 done
6656 IFS="$lt_save_ifs"
6657 done
6658 : ${lt_cv_path_NM=no}
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6662 $as_echo "$lt_cv_path_NM" >&6; }
6663 if test "$lt_cv_path_NM" != "no"; then
6664 NM="$lt_cv_path_NM"
6665 else
6666 # Didn't find any BSD compatible name lister, look for dumpbin.
6667 if test -n "$DUMPBIN"; then :
6668 # Let the user override the test.
6669 else
6670 if test -n "$ac_tool_prefix"; then
6671 for ac_prog in dumpbin "link -dump"
6673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$DUMPBIN"; then
6681 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6694 done
6695 done
6696 IFS=$as_save_IFS
6700 DUMPBIN=$ac_cv_prog_DUMPBIN
6701 if test -n "$DUMPBIN"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6703 $as_echo "$DUMPBIN" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6710 test -n "$DUMPBIN" && break
6711 done
6713 if test -z "$DUMPBIN"; then
6714 ac_ct_DUMPBIN=$DUMPBIN
6715 for ac_prog in dumpbin "link -dump"
6717 # Extract the first word of "$ac_prog", so it can be a program name with args.
6718 set dummy $ac_prog; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_DUMPBIN"; then
6725 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6745 if test -n "$ac_ct_DUMPBIN"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6747 $as_echo "$ac_ct_DUMPBIN" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6754 test -n "$ac_ct_DUMPBIN" && break
6755 done
6757 if test "x$ac_ct_DUMPBIN" = x; then
6758 DUMPBIN=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 DUMPBIN=$ac_ct_DUMPBIN
6770 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6771 *COFF*)
6772 DUMPBIN="$DUMPBIN -symbols"
6775 DUMPBIN=:
6777 esac
6780 if test "$DUMPBIN" != ":"; then
6781 NM="$DUMPBIN"
6784 test -z "$NM" && NM=nm
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6792 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6793 if test "${lt_cv_nm_interface+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 lt_cv_nm_interface="BSD nm"
6797 echo "int some_variable = 0;" > conftest.$ac_ext
6798 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6799 (eval "$ac_compile" 2>conftest.err)
6800 cat conftest.err >&5
6801 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6803 cat conftest.err >&5
6804 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6805 cat conftest.out >&5
6806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6807 lt_cv_nm_interface="MS dumpbin"
6809 rm -f conftest*
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6812 $as_echo "$lt_cv_nm_interface" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6815 $as_echo_n "checking whether ln -s works... " >&6; }
6816 LN_S=$as_ln_s
6817 if test "$LN_S" = "ln -s"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 $as_echo "yes" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6822 $as_echo "no, using $LN_S" >&6; }
6825 # find the maximum length of command line arguments
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6827 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6828 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6832 teststring="ABCD"
6834 case $build_os in
6835 msdosdjgpp*)
6836 # On DJGPP, this test can blow up pretty badly due to problems in libc
6837 # (any single argument exceeding 2000 bytes causes a buffer overrun
6838 # during glob expansion). Even if it were fixed, the result of this
6839 # check would be larger than it should be.
6840 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6843 gnu*)
6844 # Under GNU Hurd, this test is not required because there is
6845 # no limit to the length of command line arguments.
6846 # Libtool will interpret -1 as no limit whatsoever
6847 lt_cv_sys_max_cmd_len=-1;
6850 cygwin* | mingw* | cegcc*)
6851 # On Win9x/ME, this test blows up -- it succeeds, but takes
6852 # about 5 minutes as the teststring grows exponentially.
6853 # Worse, since 9x/ME are not pre-emptively multitasking,
6854 # you end up with a "frozen" computer, even though with patience
6855 # the test eventually succeeds (with a max line length of 256k).
6856 # Instead, let's just punt: use the minimum linelength reported by
6857 # all of the supported platforms: 8192 (on NT/2K/XP).
6858 lt_cv_sys_max_cmd_len=8192;
6861 mint*)
6862 # On MiNT this can take a long time and run out of memory.
6863 lt_cv_sys_max_cmd_len=8192;
6866 amigaos*)
6867 # On AmigaOS with pdksh, this test takes hours, literally.
6868 # So we just punt and use a minimum line length of 8192.
6869 lt_cv_sys_max_cmd_len=8192;
6872 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6873 # This has been around since 386BSD, at least. Likely further.
6874 if test -x /sbin/sysctl; then
6875 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6876 elif test -x /usr/sbin/sysctl; then
6877 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6878 else
6879 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6881 # And add a safety zone
6882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6886 interix*)
6887 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6888 lt_cv_sys_max_cmd_len=196608
6891 osf*)
6892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6894 # nice to cause kernel panics so lets avoid the loop below.
6895 # First set a reasonable default.
6896 lt_cv_sys_max_cmd_len=16384
6898 if test -x /sbin/sysconfig; then
6899 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6900 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6901 esac
6904 sco3.2v5*)
6905 lt_cv_sys_max_cmd_len=102400
6907 sysv5* | sco5v6* | sysv4.2uw2*)
6908 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6909 if test -n "$kargmax"; then
6910 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6911 else
6912 lt_cv_sys_max_cmd_len=32768
6916 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6917 if test -n "$lt_cv_sys_max_cmd_len"; then
6918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6920 else
6921 # Make teststring a little bigger before we do anything with it.
6922 # a 1K string should be a reasonable start.
6923 for i in 1 2 3 4 5 6 7 8 ; do
6924 teststring=$teststring$teststring
6925 done
6926 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6927 # If test is not a shell built-in, we'll probably end up computing a
6928 # maximum length that is only half of the actual maximum length, but
6929 # we can't tell.
6930 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6931 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6932 test $i != 17 # 1/2 MB should be enough
6934 i=`expr $i + 1`
6935 teststring=$teststring$teststring
6936 done
6937 # Only check the string length outside the loop.
6938 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6939 teststring=
6940 # Add a significant safety factor because C++ compilers can tack on
6941 # massive amounts of additional arguments before passing them to the
6942 # linker. It appears as though 1/2 is a usable value.
6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6946 esac
6950 if test -n $lt_cv_sys_max_cmd_len ; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6952 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6955 $as_echo "none" >&6; }
6957 max_cmd_len=$lt_cv_sys_max_cmd_len
6964 : ${CP="cp -f"}
6965 : ${MV="mv -f"}
6966 : ${RM="rm -f"}
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6969 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6970 # Try some XSI features
6971 xsi_shell=no
6972 ( _lt_dummy="a/b/c"
6973 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6974 = c,a/b,, \
6975 && eval 'test $(( 1 + 1 )) -eq 2 \
6976 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6977 && xsi_shell=yes
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6979 $as_echo "$xsi_shell" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6983 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6984 lt_shell_append=no
6985 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6986 >/dev/null 2>&1 \
6987 && lt_shell_append=yes
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6989 $as_echo "$lt_shell_append" >&6; }
6992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6993 lt_unset=unset
6994 else
6995 lt_unset=false
7002 # test EBCDIC or ASCII
7003 case `echo X|tr X '\101'` in
7004 A) # ASCII based system
7005 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7006 lt_SP2NL='tr \040 \012'
7007 lt_NL2SP='tr \015\012 \040\040'
7009 *) # EBCDIC based system
7010 lt_SP2NL='tr \100 \n'
7011 lt_NL2SP='tr \r\n \100\100'
7013 esac
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7024 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7025 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_ld_reload_flag='-r'
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7031 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7032 reload_flag=$lt_cv_ld_reload_flag
7033 case $reload_flag in
7034 "" | " "*) ;;
7035 *) reload_flag=" $reload_flag" ;;
7036 esac
7037 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7038 case $host_os in
7039 darwin*)
7040 if test "$GCC" = yes; then
7041 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7042 else
7043 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7046 esac
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$OBJDUMP"; then
7065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7078 done
7079 done
7080 IFS=$as_save_IFS
7084 OBJDUMP=$ac_cv_prog_OBJDUMP
7085 if test -n "$OBJDUMP"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7087 $as_echo "$OBJDUMP" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7095 if test -z "$ac_cv_prog_OBJDUMP"; then
7096 ac_ct_OBJDUMP=$OBJDUMP
7097 # Extract the first word of "objdump", so it can be a program name with args.
7098 set dummy objdump; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$ac_ct_OBJDUMP"; then
7105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7127 $as_echo "$ac_ct_OBJDUMP" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7133 if test "x$ac_ct_OBJDUMP" = x; then
7134 OBJDUMP="false"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137 yes:)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7141 esac
7142 OBJDUMP=$ac_ct_OBJDUMP
7144 else
7145 OBJDUMP="$ac_cv_prog_OBJDUMP"
7148 test -z "$OBJDUMP" && OBJDUMP=objdump
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7160 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 lt_cv_file_magic_cmd='$MAGIC_CMD'
7164 lt_cv_file_magic_test_file=
7165 lt_cv_deplibs_check_method='unknown'
7166 # Need to set the preceding variable on all platforms that support
7167 # interlibrary dependencies.
7168 # 'none' -- dependencies not supported.
7169 # `unknown' -- same as none, but documents that we really don't know.
7170 # 'pass_all' -- all dependencies passed with no checks.
7171 # 'test_compile' -- check by making test program.
7172 # 'file_magic [[regex]]' -- check by looking for files in library path
7173 # which responds to the $file_magic_cmd with a given extended regex.
7174 # If you have `file' or equivalent on your system and you're not sure
7175 # whether `pass_all' will *always* work, you probably want this one.
7177 case $host_os in
7178 aix[4-9]*)
7179 lt_cv_deplibs_check_method=pass_all
7182 beos*)
7183 lt_cv_deplibs_check_method=pass_all
7186 bsdi[45]*)
7187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7188 lt_cv_file_magic_cmd='/usr/bin/file -L'
7189 lt_cv_file_magic_test_file=/shlib/libc.so
7192 cygwin*)
7193 # func_win32_libid is a shell function defined in ltmain.sh
7194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7195 lt_cv_file_magic_cmd='func_win32_libid'
7198 mingw* | pw32*)
7199 # Base MSYS/MinGW do not provide the 'file' command needed by
7200 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7201 # unless we find 'file', for example because we are cross-compiling.
7202 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7203 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7205 lt_cv_file_magic_cmd='func_win32_libid'
7206 else
7207 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7208 lt_cv_file_magic_cmd='$OBJDUMP -f'
7212 cegcc*)
7213 # use the weaker test based on 'objdump'. See mingw*.
7214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7215 lt_cv_file_magic_cmd='$OBJDUMP -f'
7218 darwin* | rhapsody*)
7219 lt_cv_deplibs_check_method=pass_all
7222 freebsd* | dragonfly*)
7223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7224 case $host_cpu in
7225 i*86 )
7226 # Not sure whether the presence of OpenBSD here was a mistake.
7227 # Let's accept both of them until this is cleared up.
7228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7229 lt_cv_file_magic_cmd=/usr/bin/file
7230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7232 esac
7233 else
7234 lt_cv_deplibs_check_method=pass_all
7238 gnu*)
7239 lt_cv_deplibs_check_method=pass_all
7242 haiku*)
7243 lt_cv_deplibs_check_method=pass_all
7246 hpux10.20* | hpux11*)
7247 lt_cv_file_magic_cmd=/usr/bin/file
7248 case $host_cpu in
7249 ia64*)
7250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7253 hppa*64*)
7254 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]'
7255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7259 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7261 esac
7264 interix[3-9]*)
7265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7269 irix5* | irix6* | nonstopux*)
7270 case $LD in
7271 *-32|*"-32 ") libmagic=32-bit;;
7272 *-n32|*"-n32 ") libmagic=N32;;
7273 *-64|*"-64 ") libmagic=64-bit;;
7274 *) libmagic=never-match;;
7275 esac
7276 lt_cv_deplibs_check_method=pass_all
7279 # This must be Linux ELF.
7280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7281 lt_cv_deplibs_check_method=pass_all
7284 netbsd*)
7285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7287 else
7288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7292 newos6*)
7293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7294 lt_cv_file_magic_cmd=/usr/bin/file
7295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7298 *nto* | *qnx*)
7299 lt_cv_deplibs_check_method=pass_all
7302 openbsd*)
7303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7305 else
7306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7310 osf3* | osf4* | osf5*)
7311 lt_cv_deplibs_check_method=pass_all
7314 rdos*)
7315 lt_cv_deplibs_check_method=pass_all
7318 solaris*)
7319 lt_cv_deplibs_check_method=pass_all
7322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7323 lt_cv_deplibs_check_method=pass_all
7326 sysv4 | sysv4.3*)
7327 case $host_vendor in
7328 motorola)
7329 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]'
7330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7332 ncr)
7333 lt_cv_deplibs_check_method=pass_all
7335 sequent)
7336 lt_cv_file_magic_cmd='/bin/file'
7337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7339 sni)
7340 lt_cv_file_magic_cmd='/bin/file'
7341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7342 lt_cv_file_magic_test_file=/lib/libc.so
7344 siemens)
7345 lt_cv_deplibs_check_method=pass_all
7348 lt_cv_deplibs_check_method=pass_all
7350 esac
7353 tpf*)
7354 lt_cv_deplibs_check_method=pass_all
7356 esac
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7360 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7361 file_magic_cmd=$lt_cv_file_magic_cmd
7362 deplibs_check_method=$lt_cv_deplibs_check_method
7363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}ar; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_AR+set}" = set; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$AR"; then
7385 ac_cv_prog_AR="$AR" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_AR="${ac_tool_prefix}ar"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7398 done
7399 done
7400 IFS=$as_save_IFS
7404 AR=$ac_cv_prog_AR
7405 if test -n "$AR"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7407 $as_echo "$AR" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7415 if test -z "$ac_cv_prog_AR"; then
7416 ac_ct_AR=$AR
7417 # Extract the first word of "ar", so it can be a program name with args.
7418 set dummy ar; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$ac_ct_AR"; then
7425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_ac_ct_AR="ar"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7438 done
7439 done
7440 IFS=$as_save_IFS
7444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7445 if test -n "$ac_ct_AR"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7447 $as_echo "$ac_ct_AR" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7453 if test "x$ac_ct_AR" = x; then
7454 AR="false"
7455 else
7456 case $cross_compiling:$ac_tool_warned in
7457 yes:)
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7461 esac
7462 AR=$ac_ct_AR
7464 else
7465 AR="$ac_cv_prog_AR"
7468 test -z "$AR" && AR=ar
7469 test -z "$AR_FLAGS" && AR_FLAGS=cru
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}strip; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_STRIP+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$STRIP"; then
7490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7505 IFS=$as_save_IFS
7509 STRIP=$ac_cv_prog_STRIP
7510 if test -n "$STRIP"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7512 $as_echo "$STRIP" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7520 if test -z "$ac_cv_prog_STRIP"; then
7521 ac_ct_STRIP=$STRIP
7522 # Extract the first word of "strip", so it can be a program name with args.
7523 set dummy strip; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$ac_ct_STRIP"; then
7530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_prog_ac_ct_STRIP="strip"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7543 done
7544 done
7545 IFS=$as_save_IFS
7549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7550 if test -n "$ac_ct_STRIP"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7552 $as_echo "$ac_ct_STRIP" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7558 if test "x$ac_ct_STRIP" = x; then
7559 STRIP=":"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567 STRIP=$ac_ct_STRIP
7569 else
7570 STRIP="$ac_cv_prog_STRIP"
7573 test -z "$STRIP" && STRIP=:
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 RANLIB=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_RANLIB" = x; then
7658 RANLIB=":"
7659 else
7660 case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666 RANLIB=$ac_ct_RANLIB
7668 else
7669 RANLIB="$ac_cv_prog_RANLIB"
7672 test -z "$RANLIB" && RANLIB=:
7679 # Determine commands to create old-style static archives.
7680 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7681 old_postinstall_cmds='chmod 644 $oldlib'
7682 old_postuninstall_cmds=
7684 if test -n "$RANLIB"; then
7685 case $host_os in
7686 openbsd*)
7687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7692 esac
7693 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7696 case $host_os in
7697 darwin*)
7698 lock_old_archive_extraction=yes ;;
7700 lock_old_archive_extraction=no ;;
7701 esac
7741 # If no C compiler was specified, use CC.
7742 LTCC=${LTCC-"$CC"}
7744 # If no C compiler flags were specified, use CFLAGS.
7745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7747 # Allow CC to be a program name with arguments.
7748 compiler=$CC
7751 # Check for command to grab the raw symbol name followed by C symbol from nm.
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7753 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7754 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7758 # These are sane defaults that work on at least a few old systems.
7759 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7761 # Character class describing NM global symbol codes.
7762 symcode='[BCDEGRST]'
7764 # Regexp to match symbols that can be accessed directly from C.
7765 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7767 # Define system-specific variables.
7768 case $host_os in
7769 aix*)
7770 symcode='[BCDT]'
7772 cygwin* | mingw* | pw32* | cegcc*)
7773 symcode='[ABCDGISTW]'
7775 hpux*)
7776 if test "$host_cpu" = ia64; then
7777 symcode='[ABCDEGRST]'
7780 irix* | nonstopux*)
7781 symcode='[BCDEGRST]'
7783 osf*)
7784 symcode='[BCDEGQRST]'
7786 solaris*)
7787 symcode='[BDRT]'
7789 sco3.2v5*)
7790 symcode='[DT]'
7792 sysv4.2uw2*)
7793 symcode='[DT]'
7795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7796 symcode='[ABDT]'
7798 sysv4)
7799 symcode='[DFNSTU]'
7801 esac
7803 # If we're using GNU nm, then use its standard symbol codes.
7804 case `$NM -V 2>&1` in
7805 *GNU* | *'with BFD'*)
7806 symcode='[ABCDGIRSTW]' ;;
7807 esac
7809 # Transform an extracted symbol line into a proper C declaration.
7810 # Some systems (esp. on ia64) link data and code symbols differently,
7811 # so use this general approach.
7812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7814 # Transform an extracted symbol line into symbol name and symbol address
7815 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7816 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'"
7818 # Handle CRLF in mingw tool chain
7819 opt_cr=
7820 case $build_os in
7821 mingw*)
7822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7824 esac
7826 # Try without a prefix underscore, then with it.
7827 for ac_symprfx in "" "_"; do
7829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7830 symxfrm="\\1 $ac_symprfx\\2 \\2"
7832 # Write the raw and C identifiers.
7833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7834 # Fake it for dumpbin and say T for any non-static function
7835 # and D for any global variable.
7836 # Also find C++ and __fastcall symbols from MSVC++,
7837 # which start with @ or ?.
7838 lt_cv_sys_global_symbol_pipe="$AWK '"\
7839 " {last_section=section; section=\$ 3};"\
7840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7841 " \$ 0!~/External *\|/{next};"\
7842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7843 " {if(hide[section]) next};"\
7844 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7845 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7846 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7847 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7848 " ' prfx=^$ac_symprfx"
7849 else
7850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7853 # Check to see that the pipe works correctly.
7854 pipe_works=no
7856 rm -f conftest*
7857 cat > conftest.$ac_ext <<_LT_EOF
7858 #ifdef __cplusplus
7859 extern "C" {
7860 #endif
7861 char nm_test_var;
7862 void nm_test_func(void);
7863 void nm_test_func(void){}
7864 #ifdef __cplusplus
7866 #endif
7867 int main(){nm_test_var='a';nm_test_func();return(0);}
7868 _LT_EOF
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7871 (eval $ac_compile) 2>&5
7872 ac_status=$?
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; }; then
7875 # Now try to grab the symbols.
7876 nlist=conftest.nm
7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; } && test -s "$nlist"; then
7882 # Try sorting and uniquifying the output.
7883 if sort "$nlist" | uniq > "$nlist"T; then
7884 mv -f "$nlist"T "$nlist"
7885 else
7886 rm -f "$nlist"T
7889 # Make sure that we snagged all the symbols we need.
7890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7892 cat <<_LT_EOF > conftest.$ac_ext
7893 #ifdef __cplusplus
7894 extern "C" {
7895 #endif
7897 _LT_EOF
7898 # Now generate the symbol file.
7899 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7901 cat <<_LT_EOF >> conftest.$ac_ext
7903 /* The mapping between symbol names and symbols. */
7904 const struct {
7905 const char *name;
7906 void *address;
7908 lt__PROGRAM__LTX_preloaded_symbols[] =
7910 { "@PROGRAM@", (void *) 0 },
7911 _LT_EOF
7912 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7913 cat <<\_LT_EOF >> conftest.$ac_ext
7914 {0, (void *) 0}
7917 /* This works around a problem in FreeBSD linker */
7918 #ifdef FREEBSD_WORKAROUND
7919 static const void *lt_preloaded_setup() {
7920 return lt__PROGRAM__LTX_preloaded_symbols;
7922 #endif
7924 #ifdef __cplusplus
7926 #endif
7927 _LT_EOF
7928 # Now try linking the two files.
7929 mv conftest.$ac_objext conftstm.$ac_objext
7930 lt_save_LIBS="$LIBS"
7931 lt_save_CFLAGS="$CFLAGS"
7932 LIBS="conftstm.$ac_objext"
7933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7935 (eval $ac_link) 2>&5
7936 ac_status=$?
7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7939 pipe_works=yes
7941 LIBS="$lt_save_LIBS"
7942 CFLAGS="$lt_save_CFLAGS"
7943 else
7944 echo "cannot find nm_test_func in $nlist" >&5
7946 else
7947 echo "cannot find nm_test_var in $nlist" >&5
7949 else
7950 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7952 else
7953 echo "$progname: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7956 rm -rf conftest* conftst*
7958 # Do not use the global_symbol_pipe unless it works.
7959 if test "$pipe_works" = yes; then
7960 break
7961 else
7962 lt_cv_sys_global_symbol_pipe=
7964 done
7968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7969 lt_cv_sys_global_symbol_to_cdecl=
7971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7973 $as_echo "failed" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7976 $as_echo "ok" >&6; }
8000 # Check whether --enable-libtool-lock was given.
8001 if test "${enable_libtool_lock+set}" = set; then :
8002 enableval=$enable_libtool_lock;
8005 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8007 # Some flags need to be propagated to the compiler or linker for good
8008 # libtool support.
8009 case $host in
8010 ia64-*-hpux*)
8011 # Find out which ABI we are using.
8012 echo 'int i;' > conftest.$ac_ext
8013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8014 (eval $ac_compile) 2>&5
8015 ac_status=$?
8016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8017 test $ac_status = 0; }; then
8018 case `/usr/bin/file conftest.$ac_objext` in
8019 *ELF-32*)
8020 HPUX_IA64_MODE="32"
8022 *ELF-64*)
8023 HPUX_IA64_MODE="64"
8025 esac
8027 rm -rf conftest*
8029 *-*-irix6*)
8030 # Find out which ABI we are using.
8031 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8033 (eval $ac_compile) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }; then
8037 if test "$lt_cv_prog_gnu_ld" = yes; then
8038 case `/usr/bin/file conftest.$ac_objext` in
8039 *32-bit*)
8040 LD="${LD-ld} -melf32bsmip"
8042 *N32*)
8043 LD="${LD-ld} -melf32bmipn32"
8045 *64-bit*)
8046 LD="${LD-ld} -melf64bmip"
8048 esac
8049 else
8050 case `/usr/bin/file conftest.$ac_objext` in
8051 *32-bit*)
8052 LD="${LD-ld} -32"
8054 *N32*)
8055 LD="${LD-ld} -n32"
8057 *64-bit*)
8058 LD="${LD-ld} -64"
8060 esac
8063 rm -rf conftest*
8066 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8067 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8068 # Find out which ABI we are using.
8069 echo 'int i;' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8072 ac_status=$?
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 case `/usr/bin/file conftest.o` in
8076 *32-bit*)
8077 case $host in
8078 x86_64-*kfreebsd*-gnu)
8079 LD="${LD-ld} -m elf_i386_fbsd"
8081 x86_64-*linux*)
8082 case `/usr/bin/file conftest.o` in
8083 *x86-64*)
8084 LD="${LD-ld} -m elf32_x86_64"
8087 LD="${LD-ld} -m elf_i386"
8089 esac
8091 ppc64-*linux*|powerpc64-*linux*)
8092 LD="${LD-ld} -m elf32ppclinux"
8094 s390x-*linux*)
8095 LD="${LD-ld} -m elf_s390"
8097 sparc64-*linux*)
8098 LD="${LD-ld} -m elf32_sparc"
8100 esac
8102 *64-bit*)
8103 case $host in
8104 x86_64-*kfreebsd*-gnu)
8105 LD="${LD-ld} -m elf_x86_64_fbsd"
8107 x86_64-*linux*)
8108 LD="${LD-ld} -m elf_x86_64"
8110 ppc*-*linux*|powerpc*-*linux*)
8111 LD="${LD-ld} -m elf64ppc"
8113 s390*-*linux*|s390*-*tpf*)
8114 LD="${LD-ld} -m elf64_s390"
8116 sparc*-*linux*)
8117 LD="${LD-ld} -m elf64_sparc"
8119 esac
8121 esac
8123 rm -rf conftest*
8126 *-*-sco3.2v5*)
8127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8128 SAVE_CFLAGS="$CFLAGS"
8129 CFLAGS="$CFLAGS -belf"
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8131 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8132 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141 if test x$gcc_no_link = xyes; then
8142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8148 main ()
8152 return 0;
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 lt_cv_cc_needs_belf=yes
8157 else
8158 lt_cv_cc_needs_belf=no
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 ac_ext=c
8163 ac_cpp='$CPP $CPPFLAGS'
8164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8170 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8171 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8172 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8173 CFLAGS="$SAVE_CFLAGS"
8176 sparc*-*solaris*)
8177 # Find out which ABI we are using.
8178 echo 'int i;' > conftest.$ac_ext
8179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8183 test $ac_status = 0; }; then
8184 case `/usr/bin/file conftest.o` in
8185 *64-bit*)
8186 case $lt_cv_prog_gnu_ld in
8187 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8190 LD="${LD-ld} -64"
8193 esac
8195 esac
8197 rm -rf conftest*
8199 esac
8201 need_locks="$enable_libtool_lock"
8204 case $host_os in
8205 rhapsody* | darwin*)
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$DSYMUTIL"; then
8215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8230 IFS=$as_save_IFS
8234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8235 if test -n "$DSYMUTIL"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8237 $as_echo "$DSYMUTIL" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_DSYMUTIL"; then
8246 ac_ct_DSYMUTIL=$DSYMUTIL
8247 # Extract the first word of "dsymutil", so it can be a program name with args.
8248 set dummy dsymutil; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$ac_ct_DSYMUTIL"; then
8255 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8277 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_ct_DSYMUTIL" = x; then
8284 DSYMUTIL=":"
8285 else
8286 case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292 DSYMUTIL=$ac_ct_DSYMUTIL
8294 else
8295 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$NMEDIT"; then
8307 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8320 done
8321 done
8322 IFS=$as_save_IFS
8326 NMEDIT=$ac_cv_prog_NMEDIT
8327 if test -n "$NMEDIT"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8329 $as_echo "$NMEDIT" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 if test -z "$ac_cv_prog_NMEDIT"; then
8338 ac_ct_NMEDIT=$NMEDIT
8339 # Extract the first word of "nmedit", so it can be a program name with args.
8340 set dummy nmedit; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$ac_ct_NMEDIT"; then
8347 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8366 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8367 if test -n "$ac_ct_NMEDIT"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8369 $as_echo "$ac_ct_NMEDIT" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8375 if test "x$ac_ct_NMEDIT" = x; then
8376 NMEDIT=":"
8377 else
8378 case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384 NMEDIT=$ac_ct_NMEDIT
8386 else
8387 NMEDIT="$ac_cv_prog_NMEDIT"
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_LIPO+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$LIPO"; then
8399 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 LIPO=$ac_cv_prog_LIPO
8419 if test -n "$LIPO"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8421 $as_echo "$LIPO" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_LIPO"; then
8430 ac_ct_LIPO=$LIPO
8431 # Extract the first word of "lipo", so it can be a program name with args.
8432 set dummy lipo; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$ac_ct_LIPO"; then
8439 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448 ac_cv_prog_ac_ct_LIPO="lipo"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8452 done
8453 done
8454 IFS=$as_save_IFS
8458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8459 if test -n "$ac_ct_LIPO"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8461 $as_echo "$ac_ct_LIPO" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8467 if test "x$ac_ct_LIPO" = x; then
8468 LIPO=":"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 LIPO=$ac_ct_LIPO
8478 else
8479 LIPO="$ac_cv_prog_LIPO"
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$OTOOL"; then
8491 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8504 done
8505 done
8506 IFS=$as_save_IFS
8510 OTOOL=$ac_cv_prog_OTOOL
8511 if test -n "$OTOOL"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8513 $as_echo "$OTOOL" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8521 if test -z "$ac_cv_prog_OTOOL"; then
8522 ac_ct_OTOOL=$OTOOL
8523 # Extract the first word of "otool", so it can be a program name with args.
8524 set dummy otool; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 if test -n "$ac_ct_OTOOL"; then
8531 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_ac_ct_OTOOL="otool"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8544 done
8545 done
8546 IFS=$as_save_IFS
8550 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8551 if test -n "$ac_ct_OTOOL"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8553 $as_echo "$ac_ct_OTOOL" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 if test "x$ac_ct_OTOOL" = x; then
8560 OTOOL=":"
8561 else
8562 case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568 OTOOL=$ac_ct_OTOOL
8570 else
8571 OTOOL="$ac_cv_prog_OTOOL"
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$OTOOL64"; then
8583 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8602 OTOOL64=$ac_cv_prog_OTOOL64
8603 if test -n "$OTOOL64"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8605 $as_echo "$OTOOL64" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 if test -z "$ac_cv_prog_OTOOL64"; then
8614 ac_ct_OTOOL64=$OTOOL64
8615 # Extract the first word of "otool64", so it can be a program name with args.
8616 set dummy otool64; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test -n "$ac_ct_OTOOL64"; then
8623 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_ac_ct_OTOOL64="otool64"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8636 done
8637 done
8638 IFS=$as_save_IFS
8642 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8643 if test -n "$ac_ct_OTOOL64"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8645 $as_echo "$ac_ct_OTOOL64" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8651 if test "x$ac_ct_OTOOL64" = x; then
8652 OTOOL64=":"
8653 else
8654 case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660 OTOOL64=$ac_ct_OTOOL64
8662 else
8663 OTOOL64="$ac_cv_prog_OTOOL64"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8693 $as_echo_n "checking for -single_module linker flag... " >&6; }
8694 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 lt_cv_apple_cc_single_mod=no
8698 if test -z "${LT_MULTI_MODULE}"; then
8699 # By default we will add the -single_module flag. You can override
8700 # by either setting the environment variable LT_MULTI_MODULE
8701 # non-empty at configure time, or by adding -multi_module to the
8702 # link flags.
8703 rm -rf libconftest.dylib*
8704 echo "int foo(void){return 1;}" > conftest.c
8705 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8706 -dynamiclib -Wl,-single_module conftest.c" >&5
8707 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8708 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8709 _lt_result=$?
8710 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8711 lt_cv_apple_cc_single_mod=yes
8712 else
8713 cat conftest.err >&5
8715 rm -rf libconftest.dylib*
8716 rm -f conftest.*
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8722 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8723 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_ld_exported_symbols_list=no
8727 save_LDFLAGS=$LDFLAGS
8728 echo "_main" > conftest.sym
8729 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8730 if test x$gcc_no_link = xyes; then
8731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8737 main ()
8741 return 0;
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"; then :
8745 lt_cv_ld_exported_symbols_list=yes
8746 else
8747 lt_cv_ld_exported_symbols_list=no
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LDFLAGS="$save_LDFLAGS"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8755 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8757 $as_echo_n "checking for -force_load linker flag... " >&6; }
8758 if test "${lt_cv_ld_force_load+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 lt_cv_ld_force_load=no
8762 cat > conftest.c << _LT_EOF
8763 int forced_loaded() { return 2;}
8764 _LT_EOF
8765 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8766 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8767 echo "$AR cru libconftest.a conftest.o" >&5
8768 $AR cru libconftest.a conftest.o 2>&5
8769 cat > conftest.c << _LT_EOF
8770 int main() { return 0;}
8771 _LT_EOF
8772 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8773 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8774 _lt_result=$?
8775 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8776 lt_cv_ld_force_load=yes
8777 else
8778 cat conftest.err >&5
8780 rm -f conftest.err libconftest.a conftest conftest.c
8781 rm -rf conftest.dSYM
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8785 $as_echo "$lt_cv_ld_force_load" >&6; }
8786 case $host_os in
8787 rhapsody* | darwin1.[012])
8788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8789 darwin1.*)
8790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8791 darwin*) # darwin 5.x on
8792 # if running on 10.5 or later, the deployment target defaults
8793 # to the OS version, if on x86, and 10.4, the deployment
8794 # target defaults to 10.4. Don't you love it?
8795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8796 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8798 10.[012]*)
8799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8800 10.*)
8801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8802 esac
8804 esac
8805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8806 _lt_dar_single_mod='$single_module'
8808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8810 else
8811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8814 _lt_dsymutil='~$DSYMUTIL $lib || :'
8815 else
8816 _lt_dsymutil=
8819 esac
8821 for ac_header in dlfcn.h
8822 do :
8823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8825 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DLFCN_H 1
8828 _ACEOF
8832 done
8838 # Set options
8843 enable_win32_dll=no
8846 # Check whether --enable-shared was given.
8847 if test "${enable_shared+set}" = set; then :
8848 enableval=$enable_shared; p=${PACKAGE-default}
8849 case $enableval in
8850 yes) enable_shared=yes ;;
8851 no) enable_shared=no ;;
8853 enable_shared=no
8854 # Look at the argument we got. We use all the common list separators.
8855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8856 for pkg in $enableval; do
8857 IFS="$lt_save_ifs"
8858 if test "X$pkg" = "X$p"; then
8859 enable_shared=yes
8861 done
8862 IFS="$lt_save_ifs"
8864 esac
8865 else
8866 enable_shared=yes
8877 # Check whether --enable-static was given.
8878 if test "${enable_static+set}" = set; then :
8879 enableval=$enable_static; p=${PACKAGE-default}
8880 case $enableval in
8881 yes) enable_static=yes ;;
8882 no) enable_static=no ;;
8884 enable_static=no
8885 # Look at the argument we got. We use all the common list separators.
8886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8887 for pkg in $enableval; do
8888 IFS="$lt_save_ifs"
8889 if test "X$pkg" = "X$p"; then
8890 enable_static=yes
8892 done
8893 IFS="$lt_save_ifs"
8895 esac
8896 else
8897 enable_static=yes
8909 # Check whether --with-pic was given.
8910 if test "${with_pic+set}" = set; then :
8911 withval=$with_pic; pic_mode="$withval"
8912 else
8913 pic_mode=default
8917 test -z "$pic_mode" && pic_mode=default
8925 # Check whether --enable-fast-install was given.
8926 if test "${enable_fast_install+set}" = set; then :
8927 enableval=$enable_fast_install; p=${PACKAGE-default}
8928 case $enableval in
8929 yes) enable_fast_install=yes ;;
8930 no) enable_fast_install=no ;;
8932 enable_fast_install=no
8933 # Look at the argument we got. We use all the common list separators.
8934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8935 for pkg in $enableval; do
8936 IFS="$lt_save_ifs"
8937 if test "X$pkg" = "X$p"; then
8938 enable_fast_install=yes
8940 done
8941 IFS="$lt_save_ifs"
8943 esac
8944 else
8945 enable_fast_install=yes
8958 # This can be used to rebuild libtool when needed
8959 LIBTOOL_DEPS="$ltmain"
8961 # Always use our own libtool.
8962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8989 test -z "$LN_S" && LN_S="ln -s"
9004 if test -n "${ZSH_VERSION+set}" ; then
9005 setopt NO_GLOB_SUBST
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9009 $as_echo_n "checking for objdir... " >&6; }
9010 if test "${lt_cv_objdir+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 rm -f .libs 2>/dev/null
9014 mkdir .libs 2>/dev/null
9015 if test -d .libs; then
9016 lt_cv_objdir=.libs
9017 else
9018 # MS-DOS does not allow filenames that begin with a dot.
9019 lt_cv_objdir=_libs
9021 rmdir .libs 2>/dev/null
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9024 $as_echo "$lt_cv_objdir" >&6; }
9025 objdir=$lt_cv_objdir
9031 cat >>confdefs.h <<_ACEOF
9032 #define LT_OBJDIR "$lt_cv_objdir/"
9033 _ACEOF
9038 case $host_os in
9039 aix3*)
9040 # AIX sometimes has problems with the GCC collect2 program. For some
9041 # reason, if we set the COLLECT_NAMES environment variable, the problems
9042 # vanish in a puff of smoke.
9043 if test "X${COLLECT_NAMES+set}" != Xset; then
9044 COLLECT_NAMES=
9045 export COLLECT_NAMES
9048 esac
9050 # Global variables:
9051 ofile=libtool
9052 can_build_shared=yes
9054 # All known linkers require a `.a' archive for static linking (except MSVC,
9055 # which needs '.lib').
9056 libext=a
9058 with_gnu_ld="$lt_cv_prog_gnu_ld"
9060 old_CC="$CC"
9061 old_CFLAGS="$CFLAGS"
9063 # Set sane defaults for various variables
9064 test -z "$CC" && CC=cc
9065 test -z "$LTCC" && LTCC=$CC
9066 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9067 test -z "$LD" && LD=ld
9068 test -z "$ac_objext" && ac_objext=o
9070 for cc_temp in $compiler""; do
9071 case $cc_temp in
9072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9074 \-*) ;;
9075 *) break;;
9076 esac
9077 done
9078 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9081 # Only perform the check for file, if the check method requires it
9082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9083 case $deplibs_check_method in
9084 file_magic*)
9085 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9087 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9088 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 case $MAGIC_CMD in
9092 [\\/*] | ?:[\\/]*)
9093 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9096 lt_save_MAGIC_CMD="$MAGIC_CMD"
9097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9098 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9099 for ac_dir in $ac_dummy; do
9100 IFS="$lt_save_ifs"
9101 test -z "$ac_dir" && ac_dir=.
9102 if test -f $ac_dir/${ac_tool_prefix}file; then
9103 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9104 if test -n "$file_magic_test_file"; then
9105 case $deplibs_check_method in
9106 "file_magic "*)
9107 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9110 $EGREP "$file_magic_regex" > /dev/null; then
9112 else
9113 cat <<_LT_EOF 1>&2
9115 *** Warning: the command libtool uses to detect shared libraries,
9116 *** $file_magic_cmd, produces output that libtool cannot recognize.
9117 *** The result is that libtool may fail to recognize shared libraries
9118 *** as such. This will affect the creation of libtool libraries that
9119 *** depend on shared libraries, but programs linked with such libtool
9120 *** libraries will work regardless of this problem. Nevertheless, you
9121 *** may want to report the problem to your system manager and/or to
9122 *** bug-libtool@gnu.org
9124 _LT_EOF
9125 fi ;;
9126 esac
9128 break
9130 done
9131 IFS="$lt_save_ifs"
9132 MAGIC_CMD="$lt_save_MAGIC_CMD"
9134 esac
9137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9138 if test -n "$MAGIC_CMD"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9140 $as_echo "$MAGIC_CMD" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9150 if test -z "$lt_cv_path_MAGIC_CMD"; then
9151 if test -n "$ac_tool_prefix"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9153 $as_echo_n "checking for file... " >&6; }
9154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 case $MAGIC_CMD in
9158 [\\/*] | ?:[\\/]*)
9159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9162 lt_save_MAGIC_CMD="$MAGIC_CMD"
9163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9165 for ac_dir in $ac_dummy; do
9166 IFS="$lt_save_ifs"
9167 test -z "$ac_dir" && ac_dir=.
9168 if test -f $ac_dir/file; then
9169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9170 if test -n "$file_magic_test_file"; then
9171 case $deplibs_check_method in
9172 "file_magic "*)
9173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9176 $EGREP "$file_magic_regex" > /dev/null; then
9178 else
9179 cat <<_LT_EOF 1>&2
9181 *** Warning: the command libtool uses to detect shared libraries,
9182 *** $file_magic_cmd, produces output that libtool cannot recognize.
9183 *** The result is that libtool may fail to recognize shared libraries
9184 *** as such. This will affect the creation of libtool libraries that
9185 *** depend on shared libraries, but programs linked with such libtool
9186 *** libraries will work regardless of this problem. Nevertheless, you
9187 *** may want to report the problem to your system manager and/or to
9188 *** bug-libtool@gnu.org
9190 _LT_EOF
9191 fi ;;
9192 esac
9194 break
9196 done
9197 IFS="$lt_save_ifs"
9198 MAGIC_CMD="$lt_save_MAGIC_CMD"
9200 esac
9203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9204 if test -n "$MAGIC_CMD"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9206 $as_echo "$MAGIC_CMD" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9213 else
9214 MAGIC_CMD=:
9220 esac
9222 # Use C for the default configuration in the libtool script
9224 lt_save_CC="$CC"
9225 ac_ext=c
9226 ac_cpp='$CPP $CPPFLAGS'
9227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232 # Source file extension for C test sources.
9233 ac_ext=c
9235 # Object file extension for compiled C test sources.
9236 objext=o
9237 objext=$objext
9239 # Code to be used in simple compile tests
9240 lt_simple_compile_test_code="int some_variable = 0;"
9242 # Code to be used in simple link tests
9243 lt_simple_link_test_code='int main(){return(0);}'
9251 # If no C compiler was specified, use CC.
9252 LTCC=${LTCC-"$CC"}
9254 # If no C compiler flags were specified, use CFLAGS.
9255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9257 # Allow CC to be a program name with arguments.
9258 compiler=$CC
9260 # Save the default compiler, since it gets overwritten when the other
9261 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9262 compiler_DEFAULT=$CC
9264 # save warnings/boilerplate of simple test code
9265 ac_outfile=conftest.$ac_objext
9266 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9267 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9268 _lt_compiler_boilerplate=`cat conftest.err`
9269 $RM conftest*
9271 ac_outfile=conftest.$ac_objext
9272 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9273 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9274 _lt_linker_boilerplate=`cat conftest.err`
9275 $RM -r conftest*
9278 ## CAVEAT EMPTOR:
9279 ## There is no encapsulation within the following macros, do not change
9280 ## the running order or otherwise move them around unless you know exactly
9281 ## what you are doing...
9282 if test -n "$compiler"; then
9284 lt_prog_compiler_no_builtin_flag=
9286 if test "$GCC" = yes; then
9287 case $cc_basename in
9288 nvcc*)
9289 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9291 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9292 esac
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9295 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 lt_cv_prog_compiler_rtti_exceptions=no
9300 ac_outfile=conftest.$ac_objext
9301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302 lt_compiler_flag="-fno-rtti -fno-exceptions"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 # The option is referenced via a variable to avoid confusing sed.
9308 lt_compile=`echo "$ac_compile" | $SED \
9309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9311 -e 's:$: $lt_compiler_flag:'`
9312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9313 (eval "$lt_compile" 2>conftest.err)
9314 ac_status=$?
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 if (exit $ac_status) && test -s "$ac_outfile"; then
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings other than the usual output.
9320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_rtti_exceptions=yes
9326 $RM conftest*
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9330 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9332 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9333 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9334 else
9345 lt_prog_compiler_wl=
9346 lt_prog_compiler_pic=
9347 lt_prog_compiler_static=
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9352 if test "$GCC" = yes; then
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_static='-static'
9356 case $host_os in
9357 aix*)
9358 # All AIX code is PIC.
9359 if test "$host_cpu" = ia64; then
9360 # AIX 5 now supports IA64 processor
9361 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_pic='-fPIC'
9366 amigaos*)
9367 case $host_cpu in
9368 powerpc)
9369 # see comment about AmigaOS4 .so support
9370 lt_prog_compiler_pic='-fPIC'
9372 m68k)
9373 # FIXME: we need at least 68020 code to build shared libraries, but
9374 # adding the `-m68020' flag to GCC prevents building anything better,
9375 # like `-m68040'.
9376 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9378 esac
9381 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9382 # PIC is the default for these OSes.
9385 mingw* | cygwin* | pw32* | os2* | cegcc*)
9386 # This hack is so that the source file can tell whether it is being
9387 # built for inclusion in a dll (and should export symbols for example).
9388 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9389 # (--disable-auto-import) libraries
9390 lt_prog_compiler_pic='-DDLL_EXPORT'
9393 darwin* | rhapsody*)
9394 # PIC is the default on this platform
9395 # Common symbols not allowed in MH_DYLIB files
9396 lt_prog_compiler_pic='-fno-common'
9399 haiku*)
9400 # PIC is the default for Haiku.
9401 # The "-static" flag exists, but is broken.
9402 lt_prog_compiler_static=
9405 hpux*)
9406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9408 # sets the default TLS model and affects inlining.
9409 case $host_cpu in
9410 hppa*64*)
9411 # +Z the default
9414 lt_prog_compiler_pic='-fPIC'
9416 esac
9419 interix[3-9]*)
9420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9421 # Instead, we relocate shared libraries at runtime.
9424 msdosdjgpp*)
9425 # Just because we use GCC doesn't mean we suddenly get shared libraries
9426 # on systems that don't support them.
9427 lt_prog_compiler_can_build_shared=no
9428 enable_shared=no
9431 *nto* | *qnx*)
9432 # QNX uses GNU C++, but need to define -shared option too, otherwise
9433 # it will coredump.
9434 lt_prog_compiler_pic='-fPIC -shared'
9437 sysv4*MP*)
9438 if test -d /usr/nec; then
9439 lt_prog_compiler_pic=-Kconform_pic
9444 lt_prog_compiler_pic='-fPIC'
9446 esac
9448 case $cc_basename in
9449 nvcc*) # Cuda Compiler Driver 2.2
9450 lt_prog_compiler_wl='-Xlinker '
9451 lt_prog_compiler_pic='-Xcompiler -fPIC'
9453 esac
9454 else
9455 # PORTME Check for flag to pass linker flags through the system compiler.
9456 case $host_os in
9457 aix*)
9458 lt_prog_compiler_wl='-Wl,'
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 now supports IA64 processor
9461 lt_prog_compiler_static='-Bstatic'
9462 else
9463 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9467 mingw* | cygwin* | pw32* | os2* | cegcc*)
9468 # This hack is so that the source file can tell whether it is being
9469 # built for inclusion in a dll (and should export symbols for example).
9470 lt_prog_compiler_pic='-DDLL_EXPORT'
9473 hpux9* | hpux10* | hpux11*)
9474 lt_prog_compiler_wl='-Wl,'
9475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9476 # not for PA HP-UX.
9477 case $host_cpu in
9478 hppa*64*|ia64*)
9479 # +Z the default
9482 lt_prog_compiler_pic='+Z'
9484 esac
9485 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9486 lt_prog_compiler_static='${wl}-a ${wl}archive'
9489 irix5* | irix6* | nonstopux*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # PIC (with -KPIC) is the default.
9492 lt_prog_compiler_static='-non_shared'
9495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9496 case $cc_basename in
9497 # old Intel for x86_64 which still supported -KPIC.
9498 ecc*)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-static'
9503 # icc used to be incompatible with GCC.
9504 # ICC 10 doesn't accept -KPIC any more.
9505 icc* | ifort*)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-fPIC'
9508 lt_prog_compiler_static='-static'
9510 # Lahey Fortran 8.1.
9511 lf95*)
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_pic='--shared'
9514 lt_prog_compiler_static='--static'
9516 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group compilers (*not* the Pentium gcc compiler,
9518 # which looks to be a dead project)
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-fpic'
9521 lt_prog_compiler_static='-Bstatic'
9523 ccc*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # All Alpha code is PIC.
9526 lt_prog_compiler_static='-non_shared'
9528 xl* | bgxl* | bgf* | mpixl*)
9529 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-qpic'
9532 lt_prog_compiler_static='-qstaticlink'
9535 case `$CC -V 2>&1 | sed 5q` in
9536 *Sun\ F* | *Sun*Fortran*)
9537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9540 lt_prog_compiler_wl=''
9542 *Sun\ C*)
9543 # Sun C 5.9
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 lt_prog_compiler_wl='-Wl,'
9548 esac
9550 esac
9553 newsos6)
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9558 *nto* | *qnx*)
9559 # QNX uses GNU C++, but need to define -shared option too, otherwise
9560 # it will coredump.
9561 lt_prog_compiler_pic='-fPIC -shared'
9564 osf3* | osf4* | osf5*)
9565 lt_prog_compiler_wl='-Wl,'
9566 # All OSF/1 code is PIC.
9567 lt_prog_compiler_static='-non_shared'
9570 rdos*)
9571 lt_prog_compiler_static='-non_shared'
9574 solaris*)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 case $cc_basename in
9578 f77* | f90* | f95*)
9579 lt_prog_compiler_wl='-Qoption ld ';;
9581 lt_prog_compiler_wl='-Wl,';;
9582 esac
9585 sunos4*)
9586 lt_prog_compiler_wl='-Qoption ld '
9587 lt_prog_compiler_pic='-PIC'
9588 lt_prog_compiler_static='-Bstatic'
9591 sysv4 | sysv4.2uw2* | sysv4.3*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9597 sysv4*MP*)
9598 if test -d /usr/nec ;then
9599 lt_prog_compiler_pic='-Kconform_pic'
9600 lt_prog_compiler_static='-Bstatic'
9604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9610 unicos*)
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_can_build_shared=no
9615 uts4*)
9616 lt_prog_compiler_pic='-pic'
9617 lt_prog_compiler_static='-Bstatic'
9621 lt_prog_compiler_can_build_shared=no
9623 esac
9626 case $host_os in
9627 # For platforms which do not support PIC, -DPIC is meaningless:
9628 *djgpp*)
9629 lt_prog_compiler_pic=
9632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9634 esac
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9636 $as_echo "$lt_prog_compiler_pic" >&6; }
9644 # Check to make sure the PIC flag actually works.
9646 if test -n "$lt_prog_compiler_pic"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9648 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9649 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_pic_works=no
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 # The option is referenced via a variable to avoid confusing sed.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>conftest.err)
9667 ac_status=$?
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s "$ac_outfile"; then
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings other than the usual output.
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_pic_works=yes
9679 $RM conftest*
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9683 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9685 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9686 case $lt_prog_compiler_pic in
9687 "" | " "*) ;;
9688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9689 esac
9690 else
9691 lt_prog_compiler_pic=
9692 lt_prog_compiler_can_build_shared=no
9703 # Check to make sure the static flag actually works.
9705 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9707 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9708 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 lt_cv_prog_compiler_static_works=no
9712 save_LDFLAGS="$LDFLAGS"
9713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9716 # The linker can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 if test -s conftest.err; then
9719 # Append any errors to the config.log.
9720 cat conftest.err 1>&5
9721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9723 if diff conftest.exp conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler_static_works=yes
9726 else
9727 lt_cv_prog_compiler_static_works=yes
9730 $RM -r conftest*
9731 LDFLAGS="$save_LDFLAGS"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9735 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9737 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9739 else
9740 lt_prog_compiler_static=
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9751 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 lt_cv_prog_compiler_c_o=no
9755 $RM -r conftest 2>/dev/null
9756 mkdir conftest
9757 cd conftest
9758 mkdir out
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9761 lt_compiler_flag="-o out/conftest2.$ac_objext"
9762 # Insert the option either (1) after the last *FLAGS variable, or
9763 # (2) before a word containing "conftest.", or (3) at the end.
9764 # Note that $ac_compile itself does not contain backslashes and begins
9765 # with a dollar sign (not a hyphen), so the echo should work correctly.
9766 lt_compile=`echo "$ac_compile" | $SED \
9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9769 -e 's:$: $lt_compiler_flag:'`
9770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9771 (eval "$lt_compile" 2>out/conftest.err)
9772 ac_status=$?
9773 cat out/conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9776 then
9777 # The compiler can only warn and ignore the option if not recognized
9778 # So say no if there are warnings
9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_c_o=yes
9785 chmod u+w . 2>&5
9786 $RM conftest*
9787 # SGI C++ compiler will create directory out/ii_files/ for
9788 # template instantiation
9789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9790 $RM out/* && rmdir out
9791 cd ..
9792 $RM -r conftest
9793 $RM conftest*
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9797 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 lt_cv_prog_compiler_c_o=no
9810 $RM -r conftest 2>/dev/null
9811 mkdir conftest
9812 cd conftest
9813 mkdir out
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 lt_compiler_flag="-o out/conftest2.$ac_objext"
9817 # Insert the option either (1) after the last *FLAGS variable, or
9818 # (2) before a word containing "conftest.", or (3) at the end.
9819 # Note that $ac_compile itself does not contain backslashes and begins
9820 # with a dollar sign (not a hyphen), so the echo should work correctly.
9821 lt_compile=`echo "$ac_compile" | $SED \
9822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824 -e 's:$: $lt_compiler_flag:'`
9825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9826 (eval "$lt_compile" 2>out/conftest.err)
9827 ac_status=$?
9828 cat out/conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9831 then
9832 # The compiler can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_c_o=yes
9840 chmod u+w . 2>&5
9841 $RM conftest*
9842 # SGI C++ compiler will create directory out/ii_files/ for
9843 # template instantiation
9844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845 $RM out/* && rmdir out
9846 cd ..
9847 $RM -r conftest
9848 $RM conftest*
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9857 hard_links="nottested"
9858 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9859 # do not overwrite the value of need_locks provided by the user
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9861 $as_echo_n "checking if we can lock with hard links... " >&6; }
9862 hard_links=yes
9863 $RM conftest*
9864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9865 touch conftest.a
9866 ln conftest.a conftest.b 2>&5 || hard_links=no
9867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9869 $as_echo "$hard_links" >&6; }
9870 if test "$hard_links" = no; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9873 need_locks=warn
9875 else
9876 need_locks=no
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9887 runpath_var=
9888 allow_undefined_flag=
9889 always_export_symbols=no
9890 archive_cmds=
9891 archive_expsym_cmds=
9892 compiler_needs_object=no
9893 enable_shared_with_static_runtimes=no
9894 export_dynamic_flag_spec=
9895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9896 hardcode_automatic=no
9897 hardcode_direct=no
9898 hardcode_direct_absolute=no
9899 hardcode_libdir_flag_spec=
9900 hardcode_libdir_flag_spec_ld=
9901 hardcode_libdir_separator=
9902 hardcode_minus_L=no
9903 hardcode_shlibpath_var=unsupported
9904 inherit_rpath=no
9905 link_all_deplibs=unknown
9906 module_cmds=
9907 module_expsym_cmds=
9908 old_archive_from_new_cmds=
9909 old_archive_from_expsyms_cmds=
9910 thread_safe_flag_spec=
9911 whole_archive_flag_spec=
9912 # include_expsyms should be a list of space-separated symbols to be *always*
9913 # included in the symbol list
9914 include_expsyms=
9915 # exclude_expsyms can be an extended regexp of symbols to exclude
9916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9918 # as well as any symbol that contains `d'.
9919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9921 # platforms (ab)use it in PIC code, but their linkers get confused if
9922 # the symbol is explicitly referenced. Since portable code cannot
9923 # rely on this symbol name, it's probably fine to never include it in
9924 # preloaded symbol tables.
9925 # Exclude shared library initialization/finalization symbols.
9926 extract_expsyms_cmds=
9928 case $host_os in
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9931 # When not using gcc, we currently assume that we are using
9932 # Microsoft Visual C++.
9933 if test "$GCC" != yes; then
9934 with_gnu_ld=no
9937 interix*)
9938 # we just hope/assume this is gcc and not c89 (= MSVC++)
9939 with_gnu_ld=yes
9941 openbsd*)
9942 with_gnu_ld=no
9944 esac
9946 ld_shlibs=yes
9948 # On some targets, GNU ld is compatible enough with the native linker
9949 # that we're better off using the native interface for both.
9950 lt_use_gnu_ld_interface=no
9951 if test "$with_gnu_ld" = yes; then
9952 case $host_os in
9953 aix*)
9954 # The AIX port of GNU ld has always aspired to compatibility
9955 # with the native linker. However, as the warning in the GNU ld
9956 # block says, versions before 2.19.5* couldn't really create working
9957 # shared libraries, regardless of the interface used.
9958 case `$LD -v 2>&1` in
9959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9963 lt_use_gnu_ld_interface=yes
9965 esac
9968 lt_use_gnu_ld_interface=yes
9970 esac
9973 if test "$lt_use_gnu_ld_interface" = yes; then
9974 # If archive_cmds runs LD, not CC, wlarc should be empty
9975 wlarc='${wl}'
9977 # Set some defaults for GNU ld with shared library support. These
9978 # are reset later if shared libraries are not supported. Putting them
9979 # here allows them to be overridden if necessary.
9980 runpath_var=LD_RUN_PATH
9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982 export_dynamic_flag_spec='${wl}--export-dynamic'
9983 # ancient GNU ld didn't support --whole-archive et. al.
9984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9985 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9986 else
9987 whole_archive_flag_spec=
9989 supports_anon_versioning=no
9990 case `$LD -v 2>&1` in
9991 *GNU\ gold*) supports_anon_versioning=yes ;;
9992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9995 *\ 2.11.*) ;; # other 2.11 versions
9996 *) supports_anon_versioning=yes ;;
9997 esac
9999 # See if GNU ld supports shared libraries.
10000 case $host_os in
10001 aix[3-9]*)
10002 # On AIX/PPC, the GNU linker is very broken
10003 if test "$host_cpu" != ia64; then
10004 ld_shlibs=no
10005 cat <<_LT_EOF 1>&2
10007 *** Warning: the GNU linker, at least up to release 2.19, is reported
10008 *** to be unable to reliably create shared libraries on AIX.
10009 *** Therefore, libtool is disabling shared libraries support. If you
10010 *** really care for shared libraries, you may want to install binutils
10011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10012 *** You will then need to restart the configuration process.
10014 _LT_EOF
10018 amigaos*)
10019 case $host_cpu in
10020 powerpc)
10021 # see comment about AmigaOS4 .so support
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 archive_expsym_cmds=''
10025 m68k)
10026 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)'
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_minus_L=yes
10030 esac
10033 beos*)
10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035 allow_undefined_flag=unsupported
10036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10037 # support --undefined. This deserves some investigation. FIXME
10038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 else
10040 ld_shlibs=no
10044 cygwin* | mingw* | pw32* | cegcc*)
10045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10046 # as there is no search path for DLLs.
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 export_dynamic_flag_spec='${wl}--export-all-symbols'
10049 allow_undefined_flag=unsupported
10050 always_export_symbols=no
10051 enable_shared_with_static_runtimes=yes
10052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056 # If the export-symbols file already is a .def file (1st line
10057 # is EXPORTS), use it as is; otherwise, prepend...
10058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059 cp $export_symbols $output_objdir/$soname.def;
10060 else
10061 echo EXPORTS > $output_objdir/$soname.def;
10062 cat $export_symbols >> $output_objdir/$soname.def;
10064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065 else
10066 ld_shlibs=no
10070 haiku*)
10071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10072 link_all_deplibs=yes
10075 interix[3-9]*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10079 export_dynamic_flag_spec='${wl}-E'
10080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10081 # Instead, shared libraries are loaded at an image base (0x10000000 by
10082 # default) and relocated if they conflict, which is a slow very memory
10083 # consuming and fragmenting process. To avoid this, we pick a random,
10084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10087 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'
10090 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10091 tmp_diet=no
10092 if test "$host_os" = linux-dietlibc; then
10093 case $cc_basename in
10094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10095 esac
10097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10098 && test "$tmp_diet" = no
10099 then
10100 tmp_addflag=
10101 tmp_sharedflag='-shared'
10102 case $cc_basename,$host_cpu in
10103 pgcc*) # Portland Group C compiler
10104 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'
10105 tmp_addflag=' $pic_flag'
10107 pgf77* | pgf90* | pgf95* | pgfortran*)
10108 # Portland Group f77 and f90 compilers
10109 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'
10110 tmp_addflag=' $pic_flag -Mnomain' ;;
10111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10112 tmp_addflag=' -i_dynamic' ;;
10113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10114 tmp_addflag=' -i_dynamic -nofor_main' ;;
10115 ifc* | ifort*) # Intel Fortran compiler
10116 tmp_addflag=' -nofor_main' ;;
10117 lf95*) # Lahey Fortran 8.1
10118 whole_archive_flag_spec=
10119 tmp_sharedflag='--shared' ;;
10120 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10121 tmp_sharedflag='-qmkshrobj'
10122 tmp_addflag= ;;
10123 nvcc*) # Cuda Compiler Driver 2.2
10124 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'
10125 compiler_needs_object=yes
10127 esac
10128 case `$CC -V 2>&1 | sed 5q` in
10129 *Sun\ C*) # Sun C 5.9
10130 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'
10131 compiler_needs_object=yes
10132 tmp_sharedflag='-G' ;;
10133 *Sun\ F*) # Sun Fortran 8.3
10134 tmp_sharedflag='-G' ;;
10135 esac
10136 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 if test "x$supports_anon_versioning" = xyes; then
10139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10141 echo "local: *; };" >> $output_objdir/$libname.ver~
10142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10145 case $cc_basename in
10146 xlf* | bgf* | bgxlf* | mpixlf*)
10147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10148 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10149 hardcode_libdir_flag_spec=
10150 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10151 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10152 if test "x$supports_anon_versioning" = xyes; then
10153 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10155 echo "local: *; };" >> $output_objdir/$libname.ver~
10156 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10159 esac
10160 else
10161 ld_shlibs=no
10165 netbsd*)
10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10168 wlarc=
10169 else
10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 solaris*)
10176 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10177 ld_shlibs=no
10178 cat <<_LT_EOF 1>&2
10180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10181 *** create shared libraries on Solaris systems. Therefore, libtool
10182 *** is disabling shared libraries support. We urge you to upgrade GNU
10183 *** binutils to release 2.9.1 or newer. Another option is to modify
10184 *** your PATH or compiler configuration so that the native linker is
10185 *** used, and then restart.
10187 _LT_EOF
10188 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10191 else
10192 ld_shlibs=no
10196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10197 case `$LD -v 2>&1` in
10198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10199 ld_shlibs=no
10200 cat <<_LT_EOF 1>&2
10202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10203 *** reliably create shared libraries on SCO systems. Therefore, libtool
10204 *** is disabling shared libraries support. We urge you to upgrade GNU
10205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10206 *** your PATH or compiler configuration so that the native linker is
10207 *** used, and then restart.
10209 _LT_EOF
10212 # For security reasons, it is highly recommended that you always
10213 # use absolute paths for naming shared libraries, and exclude the
10214 # DT_RUNPATH tag from executables and libraries. But doing so
10215 # requires that you compile everything twice, which is a pain.
10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220 else
10221 ld_shlibs=no
10224 esac
10227 sunos4*)
10228 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10229 wlarc=
10230 hardcode_direct=yes
10231 hardcode_shlibpath_var=no
10235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10238 else
10239 ld_shlibs=no
10242 esac
10244 if test "$ld_shlibs" = no; then
10245 runpath_var=
10246 hardcode_libdir_flag_spec=
10247 export_dynamic_flag_spec=
10248 whole_archive_flag_spec=
10250 else
10251 # PORTME fill in a description of your system's linker (not GNU ld)
10252 case $host_os in
10253 aix3*)
10254 allow_undefined_flag=unsupported
10255 always_export_symbols=yes
10256 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'
10257 # Note: this linker hardcodes the directories in LIBPATH if there
10258 # are no directories specified by -L.
10259 hardcode_minus_L=yes
10260 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10261 # Neither direct hardcoding nor static linking is supported with a
10262 # broken collect2.
10263 hardcode_direct=unsupported
10267 aix[4-9]*)
10268 if test "$host_cpu" = ia64; then
10269 # On IA64, the linker does run time linking by default, so we don't
10270 # have to do anything special.
10271 aix_use_runtimelinking=no
10272 exp_sym_flag='-Bexport'
10273 no_entry_flag=""
10274 else
10275 # If we're using GNU nm, then we don't want the "-C" option.
10276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10277 # Also, AIX nm treats weak defined symbols like other global
10278 # defined symbols, whereas GNU nm marks them as "W".
10279 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10280 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'
10281 else
10282 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'
10284 aix_use_runtimelinking=no
10286 # Test if we are trying to use run time linking or normal
10287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10288 # need to do runtime linking.
10289 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10290 for ld_flag in $LDFLAGS; do
10291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10292 aix_use_runtimelinking=yes
10293 break
10295 done
10297 esac
10299 exp_sym_flag='-bexport'
10300 no_entry_flag='-bnoentry'
10303 # When large executables or shared objects are built, AIX ld can
10304 # have problems creating the table of contents. If linking a library
10305 # or program results in "error TOC overflow" add -mminimal-toc to
10306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10309 archive_cmds=''
10310 hardcode_direct=yes
10311 hardcode_direct_absolute=yes
10312 hardcode_libdir_separator=':'
10313 link_all_deplibs=yes
10314 file_list_spec='${wl}-f,'
10316 if test "$GCC" = yes; then
10317 case $host_os in aix4.[012]|aix4.[012].*)
10318 # We only want to do this on AIX 4.2 and lower, the check
10319 # below for broken collect2 doesn't work under 4.3+
10320 collect2name=`${CC} -print-prog-name=collect2`
10321 if test -f "$collect2name" &&
10322 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10323 then
10324 # We have reworked collect2
10326 else
10327 # We have old collect2
10328 hardcode_direct=unsupported
10329 # It fails to find uninstalled libraries when the uninstalled
10330 # path is not listed in the libpath. Setting hardcode_minus_L
10331 # to unsupported forces relinking
10332 hardcode_minus_L=yes
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_libdir_separator=
10337 esac
10338 shared_flag='-shared'
10339 if test "$aix_use_runtimelinking" = yes; then
10340 shared_flag="$shared_flag "'${wl}-G'
10342 else
10343 # not using gcc
10344 if test "$host_cpu" = ia64; then
10345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346 # chokes on -Wl,-G. The following line is correct:
10347 shared_flag='-G'
10348 else
10349 if test "$aix_use_runtimelinking" = yes; then
10350 shared_flag='${wl}-G'
10351 else
10352 shared_flag='${wl}-bM:SRE'
10357 export_dynamic_flag_spec='${wl}-bexpall'
10358 # It seems that -bexpall does not export symbols beginning with
10359 # underscore (_), so it is better to generate a list of symbols to export.
10360 always_export_symbols=yes
10361 if test "$aix_use_runtimelinking" = yes; then
10362 # Warning - without using the other runtime loading flags (-brtl),
10363 # -berok will link without error, but may produce a broken library.
10364 allow_undefined_flag='-berok'
10365 # Determine the default libpath from the value encoded in an
10366 # empty executable.
10367 if test x$gcc_no_link = xyes; then
10368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10374 main ()
10378 return 0;
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"; then :
10383 lt_aix_libpath_sed='
10384 /Import File Strings/,/^$/ {
10385 /^0/ {
10386 s/^0 *\(.*\)$/\1/
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391 # Check for a 64-bit object if we didn't find anything.
10392 if test -z "$aix_libpath"; then
10393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10401 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"
10402 else
10403 if test "$host_cpu" = ia64; then
10404 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10405 allow_undefined_flag="-z nodefs"
10406 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"
10407 else
10408 # Determine the default libpath from the value encoded in an
10409 # empty executable.
10410 if test x$gcc_no_link = xyes; then
10411 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10417 main ()
10421 return 0;
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10426 lt_aix_libpath_sed='
10427 /Import File Strings/,/^$/ {
10428 /^0/ {
10429 s/^0 *\(.*\)$/\1/
10433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10434 # Check for a 64-bit object if we didn't find anything.
10435 if test -z "$aix_libpath"; then
10436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10444 # Warning - without using the other run time loading flags,
10445 # -berok will link without error, but may produce a broken library.
10446 no_undefined_flag=' ${wl}-bernotok'
10447 allow_undefined_flag=' ${wl}-berok'
10448 if test "$with_gnu_ld" = yes; then
10449 # We only use this code for GNU lds that support --whole-archive.
10450 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10451 else
10452 # Exported symbols can be pulled into shared objects from archives
10453 whole_archive_flag_spec='$convenience'
10455 archive_cmds_need_lc=yes
10456 # This is similar to how AIX traditionally builds its shared libraries.
10457 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'
10462 amigaos*)
10463 case $host_cpu in
10464 powerpc)
10465 # see comment about AmigaOS4 .so support
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467 archive_expsym_cmds=''
10469 m68k)
10470 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)'
10471 hardcode_libdir_flag_spec='-L$libdir'
10472 hardcode_minus_L=yes
10474 esac
10477 bsdi[45]*)
10478 export_dynamic_flag_spec=-rdynamic
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 # When not using gcc, we currently assume that we are using
10483 # Microsoft Visual C++.
10484 # hardcode_libdir_flag_spec is actually meaningless, as there is
10485 # no search path for DLLs.
10486 hardcode_libdir_flag_spec=' '
10487 allow_undefined_flag=unsupported
10488 # Tell ltmain to make .lib files, not .a files.
10489 libext=lib
10490 # Tell ltmain to make .dll files, not .so files.
10491 shrext_cmds=".dll"
10492 # FIXME: Setting linknames here is a bad hack.
10493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10494 # The linker will automatically build a .lib file if we build a DLL.
10495 old_archive_from_new_cmds='true'
10496 # FIXME: Should let the user specify the lib program.
10497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10498 fix_srcfile_path='`cygpath -w "$srcfile"`'
10499 enable_shared_with_static_runtimes=yes
10502 darwin* | rhapsody*)
10505 archive_cmds_need_lc=no
10506 hardcode_direct=no
10507 hardcode_automatic=yes
10508 hardcode_shlibpath_var=unsupported
10509 if test "$lt_cv_ld_force_load" = "yes"; then
10510 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\"`'
10511 else
10512 whole_archive_flag_spec=''
10514 link_all_deplibs=yes
10515 allow_undefined_flag="$_lt_dar_allow_undefined"
10516 case $cc_basename in
10517 ifort*) _lt_dar_can_shared=yes ;;
10518 *) _lt_dar_can_shared=$GCC ;;
10519 esac
10520 if test "$_lt_dar_can_shared" = "yes"; then
10521 output_verbose_link_cmd=func_echo_all
10522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10524 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}"
10525 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}"
10527 else
10528 ld_shlibs=no
10533 dgux*)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10540 # support. Future versions do this automatically, but an explicit c++rt0.o
10541 # does not break anything, and helps significantly (at the cost of a little
10542 # extra space).
10543 freebsd2.2*)
10544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10551 freebsd2.*)
10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10559 freebsd* | dragonfly*)
10560 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10566 hpux9*)
10567 if test "$GCC" = yes; then
10568 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'
10569 else
10570 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'
10572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10573 hardcode_libdir_separator=:
10574 hardcode_direct=yes
10576 # hardcode_minus_L: Not really in the search PATH,
10577 # but as the default location of the library.
10578 hardcode_minus_L=yes
10579 export_dynamic_flag_spec='${wl}-E'
10582 hpux10*)
10583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10585 else
10586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10588 if test "$with_gnu_ld" = no; then
10589 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10590 hardcode_libdir_flag_spec_ld='+b $libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10593 hardcode_direct_absolute=yes
10594 export_dynamic_flag_spec='${wl}-E'
10595 # hardcode_minus_L: Not really in the search PATH,
10596 # but as the default location of the library.
10597 hardcode_minus_L=yes
10601 hpux11*)
10602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10603 case $host_cpu in
10604 hppa*64*)
10605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 ia64*)
10608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10613 esac
10614 else
10615 case $host_cpu in
10616 hppa*64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 ia64*)
10620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10624 # Older versions of the 11.00 compiler do not understand -b yet
10625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10627 $as_echo_n "checking if $CC understands -b... " >&6; }
10628 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 lt_cv_prog_compiler__b=no
10632 save_LDFLAGS="$LDFLAGS"
10633 LDFLAGS="$LDFLAGS -b"
10634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10636 # The linker can only warn and ignore the option if not recognized
10637 # So say no if there are warnings
10638 if test -s conftest.err; then
10639 # Append any errors to the config.log.
10640 cat conftest.err 1>&5
10641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10643 if diff conftest.exp conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler__b=yes
10646 else
10647 lt_cv_prog_compiler__b=yes
10650 $RM -r conftest*
10651 LDFLAGS="$save_LDFLAGS"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10657 if test x"$lt_cv_prog_compiler__b" = xyes; then
10658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659 else
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10664 esac
10666 if test "$with_gnu_ld" = no; then
10667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10668 hardcode_libdir_separator=:
10670 case $host_cpu in
10671 hppa*64*|ia64*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 export_dynamic_flag_spec='${wl}-E'
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10684 esac
10688 irix5* | irix6* | nonstopux*)
10689 if test "$GCC" = yes; then
10690 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'
10691 # Try to use the -exported_symbol ld option, if it does not
10692 # work, assume that -exports_file does not work either and
10693 # implicitly export all symbols.
10694 save_LDFLAGS="$LDFLAGS"
10695 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10696 if test x$gcc_no_link = xyes; then
10697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 int foo(void) {}
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 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'
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LDFLAGS="$save_LDFLAGS"
10710 else
10711 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'
10712 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'
10714 archive_cmds_need_lc='no'
10715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10716 hardcode_libdir_separator=:
10717 inherit_rpath=yes
10718 link_all_deplibs=yes
10721 netbsd*)
10722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10724 else
10725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10732 newsos6)
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_direct=yes
10735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10736 hardcode_libdir_separator=:
10737 hardcode_shlibpath_var=no
10740 *nto* | *qnx*)
10743 openbsd*)
10744 if test -f /usr/libexec/ld.so; then
10745 hardcode_direct=yes
10746 hardcode_shlibpath_var=no
10747 hardcode_direct_absolute=yes
10748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10752 export_dynamic_flag_spec='${wl}-E'
10753 else
10754 case $host_os in
10755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-R$libdir'
10760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10763 esac
10765 else
10766 ld_shlibs=no
10770 os2*)
10771 hardcode_libdir_flag_spec='-L$libdir'
10772 hardcode_minus_L=yes
10773 allow_undefined_flag=unsupported
10774 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'
10775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10778 osf3*)
10779 if test "$GCC" = yes; then
10780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10781 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'
10782 else
10783 allow_undefined_flag=' -expect_unresolved \*'
10784 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'
10786 archive_cmds_need_lc='no'
10787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10788 hardcode_libdir_separator=:
10791 osf4* | osf5*) # as osf3* with the addition of -msym flag
10792 if test "$GCC" = yes; then
10793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10794 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'
10795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10796 else
10797 allow_undefined_flag=' -expect_unresolved \*'
10798 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'
10799 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~
10800 $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'
10802 # Both c and cxx compiler support -rpath directly
10803 hardcode_libdir_flag_spec='-rpath $libdir'
10805 archive_cmds_need_lc='no'
10806 hardcode_libdir_separator=:
10809 solaris*)
10810 no_undefined_flag=' -z defs'
10811 if test "$GCC" = yes; then
10812 wlarc='${wl}'
10813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10816 else
10817 case `$CC -V 2>&1` in
10818 *"Compilers 5.0"*)
10819 wlarc=''
10820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10825 wlarc='${wl}'
10826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10830 esac
10832 hardcode_libdir_flag_spec='-R$libdir'
10833 hardcode_shlibpath_var=no
10834 case $host_os in
10835 solaris2.[0-5] | solaris2.[0-5].*) ;;
10837 # The compiler driver will combine and reorder linker options,
10838 # but understands `-z linker_flag'. GCC discards it without `$wl',
10839 # but is careful enough not to reorder.
10840 # Supported since Solaris 2.6 (maybe 2.5.1?)
10841 if test "$GCC" = yes; then
10842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10843 else
10844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10847 esac
10848 link_all_deplibs=yes
10851 sunos4*)
10852 if test "x$host_vendor" = xsequent; then
10853 # Use $CC to link under sequent, because it throws in some extra .o
10854 # files that make .init and .fini sections work.
10855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10856 else
10857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 hardcode_direct=yes
10861 hardcode_minus_L=yes
10862 hardcode_shlibpath_var=no
10865 sysv4)
10866 case $host_vendor in
10867 sni)
10868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869 hardcode_direct=yes # is this really true???
10871 siemens)
10872 ## LD is ld it makes a PLAMLIB
10873 ## CC just makes a GrossModule.
10874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10875 reload_cmds='$CC -r -o $output$reload_objs'
10876 hardcode_direct=no
10878 motorola)
10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10882 esac
10883 runpath_var='LD_RUN_PATH'
10884 hardcode_shlibpath_var=no
10887 sysv4.3*)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_shlibpath_var=no
10890 export_dynamic_flag_spec='-Bexport'
10893 sysv4*MP*)
10894 if test -d /usr/nec; then
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_shlibpath_var=no
10897 runpath_var=LD_RUN_PATH
10898 hardcode_runpath_var=yes
10899 ld_shlibs=yes
10903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10904 no_undefined_flag='${wl}-z,text'
10905 archive_cmds_need_lc=no
10906 hardcode_shlibpath_var=no
10907 runpath_var='LD_RUN_PATH'
10909 if test "$GCC" = yes; then
10910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 else
10913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 sysv5* | sco3.2v5* | sco5v6*)
10919 # Note: We can NOT use -z defs as we might desire, because we do not
10920 # link with -lc, and that would cause any symbols used from libc to
10921 # always be unresolved, which means just about no library would
10922 # ever link correctly. If we're not using GNU ld we use -z text
10923 # though, which does catch some bad symbols but isn't as heavy-handed
10924 # as -z defs.
10925 no_undefined_flag='${wl}-z,text'
10926 allow_undefined_flag='${wl}-z,nodefs'
10927 archive_cmds_need_lc=no
10928 hardcode_shlibpath_var=no
10929 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10930 hardcode_libdir_separator=':'
10931 link_all_deplibs=yes
10932 export_dynamic_flag_spec='${wl}-Bexport'
10933 runpath_var='LD_RUN_PATH'
10935 if test "$GCC" = yes; then
10936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 uts4*)
10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_shlibpath_var=no
10951 ld_shlibs=no
10953 esac
10955 if test x$host_vendor = xsni; then
10956 case $host in
10957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10958 export_dynamic_flag_spec='${wl}-Blargedynsym'
10960 esac
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10965 $as_echo "$ld_shlibs" >&6; }
10966 test "$ld_shlibs" = no && can_build_shared=no
10968 with_gnu_ld=$with_gnu_ld
10985 # Do we need to explicitly link libc?
10987 case "x$archive_cmds_need_lc" in
10988 x|xyes)
10989 # Assume -lc should be added
10990 archive_cmds_need_lc=yes
10992 if test "$enable_shared" = yes && test "$GCC" = yes; then
10993 case $archive_cmds in
10994 *'~'*)
10995 # FIXME: we may have to deal with multi-command sequences.
10997 '$CC '*)
10998 # Test whether the compiler implicitly links with -lc since on some
10999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11000 # to ld, don't add -lc before -lgcc.
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11002 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 $RM conftest*
11007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11010 (eval $ac_compile) 2>&5
11011 ac_status=$?
11012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11013 test $ac_status = 0; } 2>conftest.err; then
11014 soname=conftest
11015 lib=conftest
11016 libobjs=conftest.$ac_objext
11017 deplibs=
11018 wl=$lt_prog_compiler_wl
11019 pic_flag=$lt_prog_compiler_pic
11020 compiler_flags=-v
11021 linker_flags=-v
11022 verstring=
11023 output_objdir=.
11024 libname=conftest
11025 lt_save_allow_undefined_flag=$allow_undefined_flag
11026 allow_undefined_flag=
11027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11028 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11029 ac_status=$?
11030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11031 test $ac_status = 0; }
11032 then
11033 lt_cv_archive_cmds_need_lc=no
11034 else
11035 lt_cv_archive_cmds_need_lc=yes
11037 allow_undefined_flag=$lt_save_allow_undefined_flag
11038 else
11039 cat conftest.err 1>&5
11041 $RM conftest*
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11045 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11046 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11048 esac
11051 esac
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11210 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11212 if test "$GCC" = yes; then
11213 case $host_os in
11214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11215 *) lt_awk_arg="/^libraries:/" ;;
11216 esac
11217 case $host_os in
11218 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11219 *) lt_sed_strip_eq="s,=/,/,g" ;;
11220 esac
11221 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11222 case $lt_search_path_spec in
11223 *\;*)
11224 # if the path contains ";" then we assume it to be the separator
11225 # otherwise default to the standard path separator (i.e. ":") - it is
11226 # assumed that no part of a normal pathname contains ";" but that should
11227 # okay in the real world where ";" in dirpaths is itself problematic.
11228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11233 esac
11234 # Ok, now we have the path, separated by spaces, we can step through it
11235 # and add multilib dir if necessary.
11236 lt_tmp_lt_search_path_spec=
11237 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11238 for lt_sys_path in $lt_search_path_spec; do
11239 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11241 else
11242 test -d "$lt_sys_path" && \
11243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11245 done
11246 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11247 BEGIN {RS=" "; FS="/|\n";} {
11248 lt_foo="";
11249 lt_count=0;
11250 for (lt_i = NF; lt_i > 0; lt_i--) {
11251 if ($lt_i != "" && $lt_i != ".") {
11252 if ($lt_i == "..") {
11253 lt_count++;
11254 } else {
11255 if (lt_count == 0) {
11256 lt_foo="/" $lt_i lt_foo;
11257 } else {
11258 lt_count--;
11263 if (lt_foo != "") { lt_freq[lt_foo]++; }
11264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11266 # AWK program above erroneously prepends '/' to C:/dos/paths
11267 # for these hosts.
11268 case $host_os in
11269 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11270 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11271 esac
11272 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11273 else
11274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11276 library_names_spec=
11277 libname_spec='lib$name'
11278 soname_spec=
11279 shrext_cmds=".so"
11280 postinstall_cmds=
11281 postuninstall_cmds=
11282 finish_cmds=
11283 finish_eval=
11284 shlibpath_var=
11285 shlibpath_overrides_runpath=unknown
11286 version_type=none
11287 dynamic_linker="$host_os ld.so"
11288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11289 need_lib_prefix=unknown
11290 hardcode_into_libs=no
11292 # when you set need_version to no, make sure it does not cause -set_version
11293 # flags to be left without arguments
11294 need_version=unknown
11296 case $host_os in
11297 aix3*)
11298 version_type=linux
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11300 shlibpath_var=LIBPATH
11302 # AIX 3 has no versioning support, so we append a major version to the name.
11303 soname_spec='${libname}${release}${shared_ext}$major'
11306 aix[4-9]*)
11307 version_type=linux
11308 need_lib_prefix=no
11309 need_version=no
11310 hardcode_into_libs=yes
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 supports IA64
11313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 else
11316 # With GCC up to 2.95.x, collect2 would create an import file
11317 # for dependence libraries. The import file would start with
11318 # the line `#! .'. This would cause the generated library to
11319 # depend on `.', always an invalid library. This was fixed in
11320 # development snapshots of GCC prior to 3.0.
11321 case $host_os in
11322 aix4 | aix4.[01] | aix4.[01].*)
11323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11324 echo ' yes '
11325 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11327 else
11328 can_build_shared=no
11331 esac
11332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11333 # soname into executable. Probably we can add versioning support to
11334 # collect2, so additional links can be useful in future.
11335 if test "$aix_use_runtimelinking" = yes; then
11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337 # instead of lib<name>.a to let people know that these are not
11338 # typical AIX shared libraries.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 else
11341 # We preserve .a as extension for shared libraries through AIX4.2
11342 # and later when we are not doing run time linking.
11343 library_names_spec='${libname}${release}.a $libname.a'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LIBPATH
11350 amigaos*)
11351 case $host_cpu in
11352 powerpc)
11353 # Since July 2007 AmigaOS4 officially supports .so libraries.
11354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 m68k)
11358 library_names_spec='$libname.ixlibrary $libname.a'
11359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11360 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'
11362 esac
11365 beos*)
11366 library_names_spec='${libname}${shared_ext}'
11367 dynamic_linker="$host_os ld.so"
11368 shlibpath_var=LIBRARY_PATH
11371 bsdi[45]*)
11372 version_type=linux
11373 need_version=no
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11380 # the default ld.so.conf also contains /usr/contrib/lib and
11381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11382 # libtool to hard-code these into programs
11385 cygwin* | mingw* | pw32* | cegcc*)
11386 version_type=windows
11387 shrext_cmds=".dll"
11388 need_version=no
11389 need_lib_prefix=no
11391 case $GCC,$host_os in
11392 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11393 library_names_spec='$libname.dll.a'
11394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11395 postinstall_cmds='base_file=`basename \${file}`~
11396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11397 dldir=$destdir/`dirname \$dlpath`~
11398 test -d \$dldir || mkdir -p \$dldir~
11399 $install_prog $dir/$dlname \$dldir/$dlname~
11400 chmod a+x \$dldir/$dlname~
11401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11405 dlpath=$dir/\$dldll~
11406 $RM \$dlpath'
11407 shlibpath_overrides_runpath=yes
11409 case $host_os in
11410 cygwin*)
11411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11416 mingw* | cegcc*)
11417 # MinGW DLLs use traditional 'lib' prefix
11418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420 pw32*)
11421 # pw32 DLLs use 'pw' prefix rather than 'lib'
11422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11424 esac
11428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11430 esac
11431 dynamic_linker='Win32 ld.exe'
11432 # FIXME: first we should search . and the directory the executable is in
11433 shlibpath_var=PATH
11436 darwin* | rhapsody*)
11437 dynamic_linker="$host_os dyld"
11438 version_type=darwin
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11442 soname_spec='${libname}${release}${major}$shared_ext'
11443 shlibpath_overrides_runpath=yes
11444 shlibpath_var=DYLD_LIBRARY_PATH
11445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11451 dgux*)
11452 version_type=linux
11453 need_lib_prefix=no
11454 need_version=no
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11460 freebsd* | dragonfly*)
11461 # DragonFly does not have aout. When/if they implement a new
11462 # versioning mechanism, adjust this.
11463 if test -x /usr/bin/objformat; then
11464 objformat=`/usr/bin/objformat`
11465 else
11466 case $host_os in
11467 freebsd[23].*) objformat=aout ;;
11468 *) objformat=elf ;;
11469 esac
11471 version_type=freebsd-$objformat
11472 case $version_type in
11473 freebsd-elf*)
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11475 need_version=no
11476 need_lib_prefix=no
11478 freebsd-*)
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11480 need_version=yes
11482 esac
11483 shlibpath_var=LD_LIBRARY_PATH
11484 case $host_os in
11485 freebsd2.*)
11486 shlibpath_overrides_runpath=yes
11488 freebsd3.[01]* | freebsdelf3.[01]*)
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11497 *) # from 4.6 on, and DragonFly
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11501 esac
11504 gnu*)
11505 version_type=linux
11506 need_lib_prefix=no
11507 need_version=no
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 hardcode_into_libs=yes
11514 haiku*)
11515 version_type=linux
11516 need_lib_prefix=no
11517 need_version=no
11518 dynamic_linker="$host_os runtime_loader"
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11524 hardcode_into_libs=yes
11527 hpux9* | hpux10* | hpux11*)
11528 # Give a soname corresponding to the major version so that dld.sl refuses to
11529 # link against other versions.
11530 version_type=sunos
11531 need_lib_prefix=no
11532 need_version=no
11533 case $host_cpu in
11534 ia64*)
11535 shrext_cmds='.so'
11536 hardcode_into_libs=yes
11537 dynamic_linker="$host_os dld.so"
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 if test "X$HPUX_IA64_MODE" = X32; then
11543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11544 else
11545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11549 hppa*64*)
11550 shrext_cmds='.sl'
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.sl"
11553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561 shrext_cmds='.sl'
11562 dynamic_linker="$host_os dld.sl"
11563 shlibpath_var=SHLIB_PATH
11564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11568 esac
11569 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11570 postinstall_cmds='chmod 555 $lib'
11571 # or fails outright, so override atomically:
11572 install_override_mode=555
11575 interix[3-9]*)
11576 version_type=linux
11577 need_lib_prefix=no
11578 need_version=no
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11587 irix5* | irix6* | nonstopux*)
11588 case $host_os in
11589 nonstopux*) version_type=nonstopux ;;
11591 if test "$lt_cv_prog_gnu_ld" = yes; then
11592 version_type=linux
11593 else
11594 version_type=irix
11595 fi ;;
11596 esac
11597 need_lib_prefix=no
11598 need_version=no
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11601 case $host_os in
11602 irix5* | nonstopux*)
11603 libsuff= shlibsuff=
11606 case $LD in # libtool.m4 will add one of these switches to LD
11607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11608 libsuff= shlibsuff= libmagic=32-bit;;
11609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11610 libsuff=32 shlibsuff=N32 libmagic=N32;;
11611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11613 *) libsuff= shlibsuff= libmagic=never-match;;
11614 esac
11616 esac
11617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11618 shlibpath_overrides_runpath=no
11619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11621 hardcode_into_libs=yes
11624 # No shared lib support for Linux oldld, aout, or coff.
11625 linux*oldld* | linux*aout* | linux*coff*)
11626 dynamic_linker=no
11629 # This must be Linux ELF.
11630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11631 version_type=linux
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=no
11640 # Some binutils ld are patched to set DT_RUNPATH
11641 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 lt_cv_shlibpath_overrides_runpath=no
11645 save_LDFLAGS=$LDFLAGS
11646 save_libdir=$libdir
11647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11649 if test x$gcc_no_link = xyes; then
11650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11656 main ()
11660 return 0;
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11665 lt_cv_shlibpath_overrides_runpath=yes
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LDFLAGS=$save_LDFLAGS
11671 libdir=$save_libdir
11675 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11677 # This implies no fast_install, which is unacceptable.
11678 # Some rework will be needed to allow for fast_install
11679 # before this can be enabled.
11680 hardcode_into_libs=yes
11682 # Append ld.so.conf contents to the search path
11683 if test -f /etc/ld.so.conf; then
11684 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' ' '`
11685 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11688 # We used to test for /lib/ld.so.1 and disable shared libraries on
11689 # powerpc, because MkLinux only supported shared libraries with the
11690 # GNU dynamic linker. Since this was broken with cross compilers,
11691 # most powerpc-linux boxes support dynamic linking these days and
11692 # people can always --disable-shared, the test was removed, and we
11693 # assume the GNU/Linux dynamic linker is in use.
11694 dynamic_linker='GNU/Linux ld.so'
11697 netbsd*)
11698 version_type=sunos
11699 need_lib_prefix=no
11700 need_version=no
11701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11704 dynamic_linker='NetBSD (a.out) ld.so'
11705 else
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 dynamic_linker='NetBSD ld.elf_so'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=yes
11712 hardcode_into_libs=yes
11715 newsos6)
11716 version_type=linux
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes
11722 *nto* | *qnx*)
11723 version_type=qnx
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=no
11730 hardcode_into_libs=yes
11731 dynamic_linker='ldqnx.so'
11734 openbsd*)
11735 version_type=sunos
11736 sys_lib_dlsearch_path_spec="/usr/lib"
11737 need_lib_prefix=no
11738 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11739 case $host_os in
11740 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11741 *) need_version=no ;;
11742 esac
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11747 case $host_os in
11748 openbsd2.[89] | openbsd2.[89].*)
11749 shlibpath_overrides_runpath=no
11752 shlibpath_overrides_runpath=yes
11754 esac
11755 else
11756 shlibpath_overrides_runpath=yes
11760 os2*)
11761 libname_spec='$name'
11762 shrext_cmds=".dll"
11763 need_lib_prefix=no
11764 library_names_spec='$libname${shared_ext} $libname.a'
11765 dynamic_linker='OS/2 ld.exe'
11766 shlibpath_var=LIBPATH
11769 osf3* | osf4* | osf5*)
11770 version_type=osf
11771 need_lib_prefix=no
11772 need_version=no
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11777 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11780 rdos*)
11781 dynamic_linker=no
11784 solaris*)
11785 version_type=linux
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 hardcode_into_libs=yes
11793 # ldd complains unless libraries are executable
11794 postinstall_cmds='chmod +x $lib'
11797 sunos4*)
11798 version_type=sunos
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 if test "$with_gnu_ld" = yes; then
11804 need_lib_prefix=no
11806 need_version=yes
11809 sysv4 | sysv4.3*)
11810 version_type=linux
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 case $host_vendor in
11815 sni)
11816 shlibpath_overrides_runpath=no
11817 need_lib_prefix=no
11818 runpath_var=LD_RUN_PATH
11820 siemens)
11821 need_lib_prefix=no
11823 motorola)
11824 need_lib_prefix=no
11825 need_version=no
11826 shlibpath_overrides_runpath=no
11827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11829 esac
11832 sysv4*MP*)
11833 if test -d /usr/nec ;then
11834 version_type=linux
11835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11836 soname_spec='$libname${shared_ext}.$major'
11837 shlibpath_var=LD_LIBRARY_PATH
11841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11842 version_type=freebsd-elf
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=yes
11849 hardcode_into_libs=yes
11850 if test "$with_gnu_ld" = yes; then
11851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11852 else
11853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11854 case $host_os in
11855 sco3.2v5*)
11856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11858 esac
11860 sys_lib_dlsearch_path_spec='/usr/lib'
11863 tpf*)
11864 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11865 version_type=linux
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=no
11871 hardcode_into_libs=yes
11874 uts4*)
11875 version_type=linux
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11882 dynamic_linker=no
11884 esac
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11886 $as_echo "$dynamic_linker" >&6; }
11887 test "$dynamic_linker" = no && can_build_shared=no
11889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11890 if test "$GCC" = yes; then
11891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11894 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11895 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11897 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11898 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11993 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11994 hardcode_action=
11995 if test -n "$hardcode_libdir_flag_spec" ||
11996 test -n "$runpath_var" ||
11997 test "X$hardcode_automatic" = "Xyes" ; then
11999 # We can hardcode non-existent directories.
12000 if test "$hardcode_direct" != no &&
12001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12002 # have to relink, otherwise we might link with an installed library
12003 # when we should be linking with a yet-to-be-installed one
12004 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12005 test "$hardcode_minus_L" != no; then
12006 # Linking always hardcodes the temporary library directory.
12007 hardcode_action=relink
12008 else
12009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12010 hardcode_action=immediate
12012 else
12013 # We cannot hardcode anything, or else we can only hardcode existing
12014 # directories.
12015 hardcode_action=unsupported
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12018 $as_echo "$hardcode_action" >&6; }
12020 if test "$hardcode_action" = relink ||
12021 test "$inherit_rpath" = yes; then
12022 # Fast installation is not supported
12023 enable_fast_install=no
12024 elif test "$shlibpath_overrides_runpath" = yes ||
12025 test "$enable_shared" = no; then
12026 # Fast installation is not necessary
12027 enable_fast_install=needless
12035 if test "x$enable_dlopen" != xyes; then
12036 enable_dlopen=unknown
12037 enable_dlopen_self=unknown
12038 enable_dlopen_self_static=unknown
12039 else
12040 lt_cv_dlopen=no
12041 lt_cv_dlopen_libs=
12043 case $host_os in
12044 beos*)
12045 lt_cv_dlopen="load_add_on"
12046 lt_cv_dlopen_libs=
12047 lt_cv_dlopen_self=yes
12050 mingw* | pw32* | cegcc*)
12051 lt_cv_dlopen="LoadLibrary"
12052 lt_cv_dlopen_libs=
12055 cygwin*)
12056 lt_cv_dlopen="dlopen"
12057 lt_cv_dlopen_libs=
12060 darwin*)
12061 # if libdl is installed we need to link against it
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12063 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-ldl $LIBS"
12069 if test x$gcc_no_link = xyes; then
12070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dlopen ();
12083 main ()
12085 return dlopen ();
12087 return 0;
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_dl_dlopen=yes
12092 else
12093 ac_cv_lib_dl_dlopen=no
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103 else
12105 lt_cv_dlopen="dyld"
12106 lt_cv_dlopen_libs=
12107 lt_cv_dlopen_self=yes
12114 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12115 if test "x$ac_cv_func_shl_load" = x""yes; then :
12116 lt_cv_dlopen="shl_load"
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12119 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldld $LIBS"
12125 if test x$gcc_no_link = xyes; then
12126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char shl_load ();
12139 main ()
12141 return shl_load ();
12143 return 0;
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_lib_dld_shl_load=yes
12148 else
12149 ac_cv_lib_dld_shl_load=no
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12156 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12157 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12159 else
12160 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12161 if test "x$ac_cv_func_dlopen" = x""yes; then :
12162 lt_cv_dlopen="dlopen"
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12165 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12166 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldl $LIBS"
12171 if test x$gcc_no_link = xyes; then
12172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char dlopen ();
12185 main ()
12187 return dlopen ();
12189 return 0;
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_dl_dlopen=yes
12194 else
12195 ac_cv_lib_dl_dlopen=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12203 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12207 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12208 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lsvld $LIBS"
12213 if test x$gcc_no_link = xyes; then
12214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char dlopen ();
12227 main ()
12229 return dlopen ();
12231 return 0;
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_svld_dlopen=yes
12236 else
12237 ac_cv_lib_svld_dlopen=no
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12244 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12245 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12249 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12250 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld $LIBS"
12255 if test x$gcc_no_link = xyes; then
12256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dld_link ();
12269 main ()
12271 return dld_link ();
12273 return 0;
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_dld_dld_link=yes
12278 else
12279 ac_cv_lib_dld_dld_link=no
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12286 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12287 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12288 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12307 esac
12309 if test "x$lt_cv_dlopen" != xno; then
12310 enable_dlopen=yes
12311 else
12312 enable_dlopen=no
12315 case $lt_cv_dlopen in
12316 dlopen)
12317 save_CPPFLAGS="$CPPFLAGS"
12318 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12320 save_LDFLAGS="$LDFLAGS"
12321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12323 save_LIBS="$LIBS"
12324 LIBS="$lt_cv_dlopen_libs $LIBS"
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12327 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12328 if test "${lt_cv_dlopen_self+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test "$cross_compiling" = yes; then :
12332 lt_cv_dlopen_self=cross
12333 else
12334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335 lt_status=$lt_dlunknown
12336 cat > conftest.$ac_ext <<_LT_EOF
12337 #line 12337 "configure"
12338 #include "confdefs.h"
12340 #if HAVE_DLFCN_H
12341 #include <dlfcn.h>
12342 #endif
12344 #include <stdio.h>
12346 #ifdef RTLD_GLOBAL
12347 # define LT_DLGLOBAL RTLD_GLOBAL
12348 #else
12349 # ifdef DL_GLOBAL
12350 # define LT_DLGLOBAL DL_GLOBAL
12351 # else
12352 # define LT_DLGLOBAL 0
12353 # endif
12354 #endif
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357 find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12359 # ifdef RTLD_LAZY
12360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12361 # else
12362 # ifdef DL_LAZY
12363 # define LT_DLLAZY_OR_NOW DL_LAZY
12364 # else
12365 # ifdef RTLD_NOW
12366 # define LT_DLLAZY_OR_NOW RTLD_NOW
12367 # else
12368 # ifdef DL_NOW
12369 # define LT_DLLAZY_OR_NOW DL_NOW
12370 # else
12371 # define LT_DLLAZY_OR_NOW 0
12372 # endif
12373 # endif
12374 # endif
12375 # endif
12376 #endif
12378 /* When -fvisbility=hidden is used, assume the code has been annotated
12379 correspondingly for the symbols needed. */
12380 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12381 void fnord () __attribute__((visibility("default")));
12382 #endif
12384 void fnord () { int i=42; }
12385 int main ()
12387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12388 int status = $lt_dlunknown;
12390 if (self)
12392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12393 else
12395 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12396 else puts (dlerror ());
12398 /* dlclose (self); */
12400 else
12401 puts (dlerror ());
12403 return status;
12405 _LT_EOF
12406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) >&5 2>/dev/null
12412 lt_status=$?
12413 case x$lt_status in
12414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12417 esac
12418 else :
12419 # compilation failed
12420 lt_cv_dlopen_self=no
12423 rm -fr conftest*
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12428 $as_echo "$lt_cv_dlopen_self" >&6; }
12430 if test "x$lt_cv_dlopen_self" = xyes; then
12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12433 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12434 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test "$cross_compiling" = yes; then :
12438 lt_cv_dlopen_self_static=cross
12439 else
12440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12441 lt_status=$lt_dlunknown
12442 cat > conftest.$ac_ext <<_LT_EOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12446 #if HAVE_DLFCN_H
12447 #include <dlfcn.h>
12448 #endif
12450 #include <stdio.h>
12452 #ifdef RTLD_GLOBAL
12453 # define LT_DLGLOBAL RTLD_GLOBAL
12454 #else
12455 # ifdef DL_GLOBAL
12456 # define LT_DLGLOBAL DL_GLOBAL
12457 # else
12458 # define LT_DLGLOBAL 0
12459 # endif
12460 #endif
12462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12463 find out it does not work in some platform. */
12464 #ifndef LT_DLLAZY_OR_NOW
12465 # ifdef RTLD_LAZY
12466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12467 # else
12468 # ifdef DL_LAZY
12469 # define LT_DLLAZY_OR_NOW DL_LAZY
12470 # else
12471 # ifdef RTLD_NOW
12472 # define LT_DLLAZY_OR_NOW RTLD_NOW
12473 # else
12474 # ifdef DL_NOW
12475 # define LT_DLLAZY_OR_NOW DL_NOW
12476 # else
12477 # define LT_DLLAZY_OR_NOW 0
12478 # endif
12479 # endif
12480 # endif
12481 # endif
12482 #endif
12484 /* When -fvisbility=hidden is used, assume the code has been annotated
12485 correspondingly for the symbols needed. */
12486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12487 void fnord () __attribute__((visibility("default")));
12488 #endif
12490 void fnord () { int i=42; }
12491 int main ()
12493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12494 int status = $lt_dlunknown;
12496 if (self)
12498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12499 else
12501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12502 else puts (dlerror ());
12504 /* dlclose (self); */
12506 else
12507 puts (dlerror ());
12509 return status;
12511 _LT_EOF
12512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12517 (./conftest; exit; ) >&5 2>/dev/null
12518 lt_status=$?
12519 case x$lt_status in
12520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12523 esac
12524 else :
12525 # compilation failed
12526 lt_cv_dlopen_self_static=no
12529 rm -fr conftest*
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12534 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12537 CPPFLAGS="$save_CPPFLAGS"
12538 LDFLAGS="$save_LDFLAGS"
12539 LIBS="$save_LIBS"
12541 esac
12543 case $lt_cv_dlopen_self in
12544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12545 *) enable_dlopen_self=unknown ;;
12546 esac
12548 case $lt_cv_dlopen_self_static in
12549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12550 *) enable_dlopen_self_static=unknown ;;
12551 esac
12570 striplib=
12571 old_striplib=
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12573 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578 $as_echo "yes" >&6; }
12579 else
12580 # FIXME - insert some real tests, host_os isn't really good enough
12581 case $host_os in
12582 darwin*)
12583 if test -n "$STRIP" ; then
12584 striplib="$STRIP -x"
12585 old_striplib="$STRIP -S"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12597 esac
12611 # Report which library types will actually be built
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12613 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12615 $as_echo "$can_build_shared" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12618 $as_echo_n "checking whether to build shared libraries... " >&6; }
12619 test "$can_build_shared" = "no" && enable_shared=no
12621 # On AIX, shared libraries and static libraries use the same namespace, and
12622 # are all built from PIC.
12623 case $host_os in
12624 aix3*)
12625 test "$enable_shared" = yes && enable_static=no
12626 if test -n "$RANLIB"; then
12627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12628 postinstall_cmds='$RANLIB $lib'
12632 aix[4-9]*)
12633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12634 test "$enable_shared" = yes && enable_static=no
12637 esac
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12639 $as_echo "$enable_shared" >&6; }
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12642 $as_echo_n "checking whether to build static libraries... " >&6; }
12643 # Make sure either enable_shared or enable_static is yes.
12644 test "$enable_shared" = yes || enable_static=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12646 $as_echo "$enable_static" >&6; }
12652 ac_ext=c
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12658 CC="$lt_save_CC"
12672 ac_config_commands="$ac_config_commands libtool"
12677 # Only expand once:
12683 case $host in
12684 *-cygwin* | *-mingw*)
12685 # 'host' will be top-level target in the case of a target lib,
12686 # we must compare to with_cross_host to decide if this is a native
12687 # or cross-compiler and select where to install dlls appropriately.
12688 if test -n "$with_cross_host" &&
12689 test x"$with_cross_host" != x"no"; then
12690 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12691 else
12692 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12696 lt_host_flags=
12698 esac
12704 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12706 # We need gfortran to compile parts of the library
12707 #AC_PROG_FC(gfortran)
12708 FC="$GFORTRAN"
12709 ac_ext=${ac_fc_srcext-f}
12710 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12711 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12713 if test -n "$ac_tool_prefix"; then
12714 for ac_prog in gfortran
12716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if test "${ac_cv_prog_FC+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$FC"; then
12724 ac_cv_prog_FC="$FC" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12733 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12737 done
12738 done
12739 IFS=$as_save_IFS
12743 FC=$ac_cv_prog_FC
12744 if test -n "$FC"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12746 $as_echo "$FC" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12753 test -n "$FC" && break
12754 done
12756 if test -z "$FC"; then
12757 ac_ct_FC=$FC
12758 for ac_prog in gfortran
12760 # Extract the first word of "$ac_prog", so it can be a program name with args.
12761 set dummy $ac_prog; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test -n "$ac_ct_FC"; then
12768 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12769 else
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12777 ac_cv_prog_ac_ct_FC="$ac_prog"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12781 done
12782 done
12783 IFS=$as_save_IFS
12787 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12788 if test -n "$ac_ct_FC"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12790 $as_echo "$ac_ct_FC" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12797 test -n "$ac_ct_FC" && break
12798 done
12800 if test "x$ac_ct_FC" = x; then
12801 FC=""
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804 yes:)
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807 ac_tool_warned=yes ;;
12808 esac
12809 FC=$ac_ct_FC
12814 # Provide some information about the compiler.
12815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12816 set X $ac_compile
12817 ac_compiler=$2
12818 for ac_option in --version -v -V -qversion; do
12819 { { ac_try="$ac_compiler $ac_option >&5"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12825 $as_echo "$ac_try_echo"; } >&5
12826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12827 ac_status=$?
12828 if test -s conftest.err; then
12829 sed '10a\
12830 ... rest of stderr output deleted ...
12831 10q' conftest.err >conftest.er1
12832 cat conftest.er1 >&5
12833 rm -f conftest.er1 conftest.err
12835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836 test $ac_status = 0; }
12837 done
12838 rm -f a.out
12840 # If we don't use `.F' as extension, the preprocessor is not run on the
12841 # input file. (Note that this only needs to work for GNU compilers.)
12842 ac_save_ext=$ac_ext
12843 ac_ext=F
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12845 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12846 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat > conftest.$ac_ext <<_ACEOF
12850 program main
12851 #ifndef __GNUC__
12852 choke me
12853 #endif
12856 _ACEOF
12857 if ac_fn_fc_try_compile "$LINENO"; then :
12858 ac_compiler_gnu=yes
12859 else
12860 ac_compiler_gnu=no
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12867 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12868 ac_ext=$ac_save_ext
12869 ac_test_FCFLAGS=${FCFLAGS+set}
12870 ac_save_FCFLAGS=$FCFLAGS
12871 FCFLAGS=
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12873 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12874 if test "${ac_cv_prog_fc_g+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 FCFLAGS=-g
12878 cat > conftest.$ac_ext <<_ACEOF
12879 program main
12882 _ACEOF
12883 if ac_fn_fc_try_compile "$LINENO"; then :
12884 ac_cv_prog_fc_g=yes
12885 else
12886 ac_cv_prog_fc_g=no
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12892 $as_echo "$ac_cv_prog_fc_g" >&6; }
12893 if test "$ac_test_FCFLAGS" = set; then
12894 FCFLAGS=$ac_save_FCFLAGS
12895 elif test $ac_cv_prog_fc_g = yes; then
12896 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12897 FCFLAGS="-g -O2"
12898 else
12899 FCFLAGS="-g"
12901 else
12902 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12903 FCFLAGS="-O2"
12904 else
12905 FCFLAGS=
12909 ac_ext=c
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915 ac_ext=${ac_fc_srcext-f}
12916 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12917 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12921 if test -z "$FC" || test "X$FC" = "Xno"; then
12922 _lt_disable_FC=yes
12925 archive_cmds_need_lc_FC=no
12926 allow_undefined_flag_FC=
12927 always_export_symbols_FC=no
12928 archive_expsym_cmds_FC=
12929 export_dynamic_flag_spec_FC=
12930 hardcode_direct_FC=no
12931 hardcode_direct_absolute_FC=no
12932 hardcode_libdir_flag_spec_FC=
12933 hardcode_libdir_flag_spec_ld_FC=
12934 hardcode_libdir_separator_FC=
12935 hardcode_minus_L_FC=no
12936 hardcode_automatic_FC=no
12937 inherit_rpath_FC=no
12938 module_cmds_FC=
12939 module_expsym_cmds_FC=
12940 link_all_deplibs_FC=unknown
12941 old_archive_cmds_FC=$old_archive_cmds
12942 reload_flag_FC=$reload_flag
12943 reload_cmds_FC=$reload_cmds
12944 no_undefined_flag_FC=
12945 whole_archive_flag_spec_FC=
12946 enable_shared_with_static_runtimes_FC=no
12948 # Source file extension for fc test sources.
12949 ac_ext=${ac_fc_srcext-f}
12951 # Object file extension for compiled fc test sources.
12952 objext=o
12953 objext_FC=$objext
12955 # No sense in running all these tests if we already determined that
12956 # the FC compiler isn't working. Some variables (like enable_shared)
12957 # are currently assumed to apply to all compilers on this platform,
12958 # and will be corrupted by setting them based on a non-working compiler.
12959 if test "$_lt_disable_FC" != yes; then
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code="\
12962 subroutine t
12963 return
12967 # Code to be used in simple link tests
12968 lt_simple_link_test_code="\
12969 program t
12973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12980 # If no C compiler was specified, use CC.
12981 LTCC=${LTCC-"$CC"}
12983 # If no C compiler flags were specified, use CFLAGS.
12984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12986 # Allow CC to be a program name with arguments.
12987 compiler=$CC
12990 # save warnings/boilerplate of simple test code
12991 ac_outfile=conftest.$ac_objext
12992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12994 _lt_compiler_boilerplate=`cat conftest.err`
12995 $RM conftest*
12997 ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13000 _lt_linker_boilerplate=`cat conftest.err`
13001 $RM -r conftest*
13004 # Allow CC to be a program name with arguments.
13005 lt_save_CC="$CC"
13006 lt_save_GCC=$GCC
13007 CC=${FC-"f95"}
13008 compiler=$CC
13009 GCC=$ac_cv_fc_compiler_gnu
13011 compiler_FC=$CC
13012 for cc_temp in $compiler""; do
13013 case $cc_temp in
13014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13016 \-*) ;;
13017 *) break;;
13018 esac
13019 done
13020 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13023 if test -n "$compiler"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13027 $as_echo "$can_build_shared" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13030 $as_echo_n "checking whether to build shared libraries... " >&6; }
13031 test "$can_build_shared" = "no" && enable_shared=no
13033 # On AIX, shared libraries and static libraries use the same namespace, and
13034 # are all built from PIC.
13035 case $host_os in
13036 aix3*)
13037 test "$enable_shared" = yes && enable_static=no
13038 if test -n "$RANLIB"; then
13039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13040 postinstall_cmds='$RANLIB $lib'
13043 aix[4-9]*)
13044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13045 test "$enable_shared" = yes && enable_static=no
13048 esac
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13050 $as_echo "$enable_shared" >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13053 $as_echo_n "checking whether to build static libraries... " >&6; }
13054 # Make sure either enable_shared or enable_static is yes.
13055 test "$enable_shared" = yes || enable_static=yes
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13057 $as_echo "$enable_static" >&6; }
13059 GCC_FC="$ac_cv_fc_compiler_gnu"
13060 LD_FC="$LD"
13062 ## CAVEAT EMPTOR:
13063 ## There is no encapsulation within the following macros, do not change
13064 ## the running order or otherwise move them around unless you know exactly
13065 ## what you are doing...
13066 # Dependencies to place before and after the object being linked:
13067 predep_objects_FC=
13068 postdep_objects_FC=
13069 predeps_FC=
13070 postdeps_FC=
13071 compiler_lib_search_path_FC=
13073 cat > conftest.$ac_ext <<_LT_EOF
13074 subroutine foo
13075 implicit none
13076 integer a
13078 return
13080 _LT_EOF
13082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13083 (eval $ac_compile) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }; then
13087 # Parse the compiler output and extract the necessary
13088 # objects, libraries and library flags.
13090 # Sentinel used to keep track of whether or not we are before
13091 # the conftest object file.
13092 pre_test_object_deps_done=no
13094 for p in `eval "$output_verbose_link_cmd"`; do
13095 case $p in
13097 -L* | -R* | -l*)
13098 # Some compilers place space between "-{L,R}" and the path.
13099 # Remove the space.
13100 if test $p = "-L" ||
13101 test $p = "-R"; then
13102 prev=$p
13103 continue
13104 else
13105 prev=
13108 if test "$pre_test_object_deps_done" = no; then
13109 case $p in
13110 -L* | -R*)
13111 # Internal compiler library paths should come after those
13112 # provided the user. The postdeps already come after the
13113 # user supplied libs so there is no need to process them.
13114 if test -z "$compiler_lib_search_path_FC"; then
13115 compiler_lib_search_path_FC="${prev}${p}"
13116 else
13117 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13120 # The "-l" case would never come before the object being
13121 # linked, so don't bother handling this case.
13122 esac
13123 else
13124 if test -z "$postdeps_FC"; then
13125 postdeps_FC="${prev}${p}"
13126 else
13127 postdeps_FC="${postdeps_FC} ${prev}${p}"
13132 *.$objext)
13133 # This assumes that the test object file only shows up
13134 # once in the compiler output.
13135 if test "$p" = "conftest.$objext"; then
13136 pre_test_object_deps_done=yes
13137 continue
13140 if test "$pre_test_object_deps_done" = no; then
13141 if test -z "$predep_objects_FC"; then
13142 predep_objects_FC="$p"
13143 else
13144 predep_objects_FC="$predep_objects_FC $p"
13146 else
13147 if test -z "$postdep_objects_FC"; then
13148 postdep_objects_FC="$p"
13149 else
13150 postdep_objects_FC="$postdep_objects_FC $p"
13155 *) ;; # Ignore the rest.
13157 esac
13158 done
13160 # Clean up.
13161 rm -f a.out a.exe
13162 else
13163 echo "libtool.m4: error: problem compiling FC test program"
13166 $RM -f confest.$objext
13168 # PORTME: override above test on systems where it is broken
13171 case " $postdeps_FC " in
13172 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13173 esac
13174 compiler_lib_search_dirs_FC=
13175 if test -n "${compiler_lib_search_path_FC}"; then
13176 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13209 lt_prog_compiler_wl_FC=
13210 lt_prog_compiler_pic_FC=
13211 lt_prog_compiler_static_FC=
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13214 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13216 if test "$GCC" = yes; then
13217 lt_prog_compiler_wl_FC='-Wl,'
13218 lt_prog_compiler_static_FC='-static'
13220 case $host_os in
13221 aix*)
13222 # All AIX code is PIC.
13223 if test "$host_cpu" = ia64; then
13224 # AIX 5 now supports IA64 processor
13225 lt_prog_compiler_static_FC='-Bstatic'
13227 lt_prog_compiler_pic_FC='-fPIC'
13230 amigaos*)
13231 case $host_cpu in
13232 powerpc)
13233 # see comment about AmigaOS4 .so support
13234 lt_prog_compiler_pic_FC='-fPIC'
13236 m68k)
13237 # FIXME: we need at least 68020 code to build shared libraries, but
13238 # adding the `-m68020' flag to GCC prevents building anything better,
13239 # like `-m68040'.
13240 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13242 esac
13245 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246 # PIC is the default for these OSes.
13249 mingw* | cygwin* | pw32* | os2* | cegcc*)
13250 # This hack is so that the source file can tell whether it is being
13251 # built for inclusion in a dll (and should export symbols for example).
13252 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13253 # (--disable-auto-import) libraries
13254 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13257 darwin* | rhapsody*)
13258 # PIC is the default on this platform
13259 # Common symbols not allowed in MH_DYLIB files
13260 lt_prog_compiler_pic_FC='-fno-common'
13263 haiku*)
13264 # PIC is the default for Haiku.
13265 # The "-static" flag exists, but is broken.
13266 lt_prog_compiler_static_FC=
13269 hpux*)
13270 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13271 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13272 # sets the default TLS model and affects inlining.
13273 case $host_cpu in
13274 hppa*64*)
13275 # +Z the default
13278 lt_prog_compiler_pic_FC='-fPIC'
13280 esac
13283 interix[3-9]*)
13284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13285 # Instead, we relocate shared libraries at runtime.
13288 msdosdjgpp*)
13289 # Just because we use GCC doesn't mean we suddenly get shared libraries
13290 # on systems that don't support them.
13291 lt_prog_compiler_can_build_shared_FC=no
13292 enable_shared=no
13295 *nto* | *qnx*)
13296 # QNX uses GNU C++, but need to define -shared option too, otherwise
13297 # it will coredump.
13298 lt_prog_compiler_pic_FC='-fPIC -shared'
13301 sysv4*MP*)
13302 if test -d /usr/nec; then
13303 lt_prog_compiler_pic_FC=-Kconform_pic
13308 lt_prog_compiler_pic_FC='-fPIC'
13310 esac
13312 case $cc_basename in
13313 nvcc*) # Cuda Compiler Driver 2.2
13314 lt_prog_compiler_wl_FC='-Xlinker '
13315 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13317 esac
13318 else
13319 # PORTME Check for flag to pass linker flags through the system compiler.
13320 case $host_os in
13321 aix*)
13322 lt_prog_compiler_wl_FC='-Wl,'
13323 if test "$host_cpu" = ia64; then
13324 # AIX 5 now supports IA64 processor
13325 lt_prog_compiler_static_FC='-Bstatic'
13326 else
13327 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13331 mingw* | cygwin* | pw32* | os2* | cegcc*)
13332 # This hack is so that the source file can tell whether it is being
13333 # built for inclusion in a dll (and should export symbols for example).
13334 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13337 hpux9* | hpux10* | hpux11*)
13338 lt_prog_compiler_wl_FC='-Wl,'
13339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13340 # not for PA HP-UX.
13341 case $host_cpu in
13342 hppa*64*|ia64*)
13343 # +Z the default
13346 lt_prog_compiler_pic_FC='+Z'
13348 esac
13349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13350 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13353 irix5* | irix6* | nonstopux*)
13354 lt_prog_compiler_wl_FC='-Wl,'
13355 # PIC (with -KPIC) is the default.
13356 lt_prog_compiler_static_FC='-non_shared'
13359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13360 case $cc_basename in
13361 # old Intel for x86_64 which still supported -KPIC.
13362 ecc*)
13363 lt_prog_compiler_wl_FC='-Wl,'
13364 lt_prog_compiler_pic_FC='-KPIC'
13365 lt_prog_compiler_static_FC='-static'
13367 # icc used to be incompatible with GCC.
13368 # ICC 10 doesn't accept -KPIC any more.
13369 icc* | ifort*)
13370 lt_prog_compiler_wl_FC='-Wl,'
13371 lt_prog_compiler_pic_FC='-fPIC'
13372 lt_prog_compiler_static_FC='-static'
13374 # Lahey Fortran 8.1.
13375 lf95*)
13376 lt_prog_compiler_wl_FC='-Wl,'
13377 lt_prog_compiler_pic_FC='--shared'
13378 lt_prog_compiler_static_FC='--static'
13380 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13381 # Portland Group compilers (*not* the Pentium gcc compiler,
13382 # which looks to be a dead project)
13383 lt_prog_compiler_wl_FC='-Wl,'
13384 lt_prog_compiler_pic_FC='-fpic'
13385 lt_prog_compiler_static_FC='-Bstatic'
13387 ccc*)
13388 lt_prog_compiler_wl_FC='-Wl,'
13389 # All Alpha code is PIC.
13390 lt_prog_compiler_static_FC='-non_shared'
13392 xl* | bgxl* | bgf* | mpixl*)
13393 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13394 lt_prog_compiler_wl_FC='-Wl,'
13395 lt_prog_compiler_pic_FC='-qpic'
13396 lt_prog_compiler_static_FC='-qstaticlink'
13399 case `$CC -V 2>&1 | sed 5q` in
13400 *Sun\ F* | *Sun*Fortran*)
13401 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13402 lt_prog_compiler_pic_FC='-KPIC'
13403 lt_prog_compiler_static_FC='-Bstatic'
13404 lt_prog_compiler_wl_FC=''
13406 *Sun\ C*)
13407 # Sun C 5.9
13408 lt_prog_compiler_pic_FC='-KPIC'
13409 lt_prog_compiler_static_FC='-Bstatic'
13410 lt_prog_compiler_wl_FC='-Wl,'
13412 esac
13414 esac
13417 newsos6)
13418 lt_prog_compiler_pic_FC='-KPIC'
13419 lt_prog_compiler_static_FC='-Bstatic'
13422 *nto* | *qnx*)
13423 # QNX uses GNU C++, but need to define -shared option too, otherwise
13424 # it will coredump.
13425 lt_prog_compiler_pic_FC='-fPIC -shared'
13428 osf3* | osf4* | osf5*)
13429 lt_prog_compiler_wl_FC='-Wl,'
13430 # All OSF/1 code is PIC.
13431 lt_prog_compiler_static_FC='-non_shared'
13434 rdos*)
13435 lt_prog_compiler_static_FC='-non_shared'
13438 solaris*)
13439 lt_prog_compiler_pic_FC='-KPIC'
13440 lt_prog_compiler_static_FC='-Bstatic'
13441 case $cc_basename in
13442 f77* | f90* | f95*)
13443 lt_prog_compiler_wl_FC='-Qoption ld ';;
13445 lt_prog_compiler_wl_FC='-Wl,';;
13446 esac
13449 sunos4*)
13450 lt_prog_compiler_wl_FC='-Qoption ld '
13451 lt_prog_compiler_pic_FC='-PIC'
13452 lt_prog_compiler_static_FC='-Bstatic'
13455 sysv4 | sysv4.2uw2* | sysv4.3*)
13456 lt_prog_compiler_wl_FC='-Wl,'
13457 lt_prog_compiler_pic_FC='-KPIC'
13458 lt_prog_compiler_static_FC='-Bstatic'
13461 sysv4*MP*)
13462 if test -d /usr/nec ;then
13463 lt_prog_compiler_pic_FC='-Kconform_pic'
13464 lt_prog_compiler_static_FC='-Bstatic'
13468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13469 lt_prog_compiler_wl_FC='-Wl,'
13470 lt_prog_compiler_pic_FC='-KPIC'
13471 lt_prog_compiler_static_FC='-Bstatic'
13474 unicos*)
13475 lt_prog_compiler_wl_FC='-Wl,'
13476 lt_prog_compiler_can_build_shared_FC=no
13479 uts4*)
13480 lt_prog_compiler_pic_FC='-pic'
13481 lt_prog_compiler_static_FC='-Bstatic'
13485 lt_prog_compiler_can_build_shared_FC=no
13487 esac
13490 case $host_os in
13491 # For platforms which do not support PIC, -DPIC is meaningless:
13492 *djgpp*)
13493 lt_prog_compiler_pic_FC=
13496 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13498 esac
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13500 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13505 # Check to make sure the PIC flag actually works.
13507 if test -n "$lt_prog_compiler_pic_FC"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13510 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_prog_compiler_pic_works_FC=no
13514 ac_outfile=conftest.$ac_objext
13515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13516 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13517 # Insert the option either (1) after the last *FLAGS variable, or
13518 # (2) before a word containing "conftest.", or (3) at the end.
13519 # Note that $ac_compile itself does not contain backslashes and begins
13520 # with a dollar sign (not a hyphen), so the echo should work correctly.
13521 # The option is referenced via a variable to avoid confusing sed.
13522 lt_compile=`echo "$ac_compile" | $SED \
13523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13525 -e 's:$: $lt_compiler_flag:'`
13526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13527 (eval "$lt_compile" 2>conftest.err)
13528 ac_status=$?
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 if (exit $ac_status) && test -s "$ac_outfile"; then
13532 # The compiler can only warn and ignore the option if not recognized
13533 # So say no if there are warnings other than the usual output.
13534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13537 lt_cv_prog_compiler_pic_works_FC=yes
13540 $RM conftest*
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13544 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13546 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13547 case $lt_prog_compiler_pic_FC in
13548 "" | " "*) ;;
13549 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13550 esac
13551 else
13552 lt_prog_compiler_pic_FC=
13553 lt_prog_compiler_can_build_shared_FC=no
13561 # Check to make sure the static flag actually works.
13563 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13565 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13566 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 lt_cv_prog_compiler_static_works_FC=no
13570 save_LDFLAGS="$LDFLAGS"
13571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13574 # The linker can only warn and ignore the option if not recognized
13575 # So say no if there are warnings
13576 if test -s conftest.err; then
13577 # Append any errors to the config.log.
13578 cat conftest.err 1>&5
13579 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13581 if diff conftest.exp conftest.er2 >/dev/null; then
13582 lt_cv_prog_compiler_static_works_FC=yes
13584 else
13585 lt_cv_prog_compiler_static_works_FC=yes
13588 $RM -r conftest*
13589 LDFLAGS="$save_LDFLAGS"
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13593 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13595 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13597 else
13598 lt_prog_compiler_static_FC=
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13606 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 lt_cv_prog_compiler_c_o_FC=no
13610 $RM -r conftest 2>/dev/null
13611 mkdir conftest
13612 cd conftest
13613 mkdir out
13614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13616 lt_compiler_flag="-o out/conftest2.$ac_objext"
13617 # Insert the option either (1) after the last *FLAGS variable, or
13618 # (2) before a word containing "conftest.", or (3) at the end.
13619 # Note that $ac_compile itself does not contain backslashes and begins
13620 # with a dollar sign (not a hyphen), so the echo should work correctly.
13621 lt_compile=`echo "$ac_compile" | $SED \
13622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13624 -e 's:$: $lt_compiler_flag:'`
13625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13626 (eval "$lt_compile" 2>out/conftest.err)
13627 ac_status=$?
13628 cat out/conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13631 then
13632 # The compiler can only warn and ignore the option if not recognized
13633 # So say no if there are warnings
13634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13637 lt_cv_prog_compiler_c_o_FC=yes
13640 chmod u+w . 2>&5
13641 $RM conftest*
13642 # SGI C++ compiler will create directory out/ii_files/ for
13643 # template instantiation
13644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13645 $RM out/* && rmdir out
13646 cd ..
13647 $RM -r conftest
13648 $RM conftest*
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13652 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13658 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 lt_cv_prog_compiler_c_o_FC=no
13662 $RM -r conftest 2>/dev/null
13663 mkdir conftest
13664 cd conftest
13665 mkdir out
13666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13668 lt_compiler_flag="-o out/conftest2.$ac_objext"
13669 # Insert the option either (1) after the last *FLAGS variable, or
13670 # (2) before a word containing "conftest.", or (3) at the end.
13671 # Note that $ac_compile itself does not contain backslashes and begins
13672 # with a dollar sign (not a hyphen), so the echo should work correctly.
13673 lt_compile=`echo "$ac_compile" | $SED \
13674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13676 -e 's:$: $lt_compiler_flag:'`
13677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13678 (eval "$lt_compile" 2>out/conftest.err)
13679 ac_status=$?
13680 cat out/conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13683 then
13684 # The compiler can only warn and ignore the option if not recognized
13685 # So say no if there are warnings
13686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13689 lt_cv_prog_compiler_c_o_FC=yes
13692 chmod u+w . 2>&5
13693 $RM conftest*
13694 # SGI C++ compiler will create directory out/ii_files/ for
13695 # template instantiation
13696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13697 $RM out/* && rmdir out
13698 cd ..
13699 $RM -r conftest
13700 $RM conftest*
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13704 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13709 hard_links="nottested"
13710 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13711 # do not overwrite the value of need_locks provided by the user
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13713 $as_echo_n "checking if we can lock with hard links... " >&6; }
13714 hard_links=yes
13715 $RM conftest*
13716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13717 touch conftest.a
13718 ln conftest.a conftest.b 2>&5 || hard_links=no
13719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13721 $as_echo "$hard_links" >&6; }
13722 if test "$hard_links" = no; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13725 need_locks=warn
13727 else
13728 need_locks=no
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13736 runpath_var=
13737 allow_undefined_flag_FC=
13738 always_export_symbols_FC=no
13739 archive_cmds_FC=
13740 archive_expsym_cmds_FC=
13741 compiler_needs_object_FC=no
13742 enable_shared_with_static_runtimes_FC=no
13743 export_dynamic_flag_spec_FC=
13744 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13745 hardcode_automatic_FC=no
13746 hardcode_direct_FC=no
13747 hardcode_direct_absolute_FC=no
13748 hardcode_libdir_flag_spec_FC=
13749 hardcode_libdir_flag_spec_ld_FC=
13750 hardcode_libdir_separator_FC=
13751 hardcode_minus_L_FC=no
13752 hardcode_shlibpath_var_FC=unsupported
13753 inherit_rpath_FC=no
13754 link_all_deplibs_FC=unknown
13755 module_cmds_FC=
13756 module_expsym_cmds_FC=
13757 old_archive_from_new_cmds_FC=
13758 old_archive_from_expsyms_cmds_FC=
13759 thread_safe_flag_spec_FC=
13760 whole_archive_flag_spec_FC=
13761 # include_expsyms should be a list of space-separated symbols to be *always*
13762 # included in the symbol list
13763 include_expsyms_FC=
13764 # exclude_expsyms can be an extended regexp of symbols to exclude
13765 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13766 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13767 # as well as any symbol that contains `d'.
13768 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13769 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13770 # platforms (ab)use it in PIC code, but their linkers get confused if
13771 # the symbol is explicitly referenced. Since portable code cannot
13772 # rely on this symbol name, it's probably fine to never include it in
13773 # preloaded symbol tables.
13774 # Exclude shared library initialization/finalization symbols.
13775 extract_expsyms_cmds=
13777 case $host_os in
13778 cygwin* | mingw* | pw32* | cegcc*)
13779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13780 # When not using gcc, we currently assume that we are using
13781 # Microsoft Visual C++.
13782 if test "$GCC" != yes; then
13783 with_gnu_ld=no
13786 interix*)
13787 # we just hope/assume this is gcc and not c89 (= MSVC++)
13788 with_gnu_ld=yes
13790 openbsd*)
13791 with_gnu_ld=no
13793 esac
13795 ld_shlibs_FC=yes
13797 # On some targets, GNU ld is compatible enough with the native linker
13798 # that we're better off using the native interface for both.
13799 lt_use_gnu_ld_interface=no
13800 if test "$with_gnu_ld" = yes; then
13801 case $host_os in
13802 aix*)
13803 # The AIX port of GNU ld has always aspired to compatibility
13804 # with the native linker. However, as the warning in the GNU ld
13805 # block says, versions before 2.19.5* couldn't really create working
13806 # shared libraries, regardless of the interface used.
13807 case `$LD -v 2>&1` in
13808 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13809 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13810 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13812 lt_use_gnu_ld_interface=yes
13814 esac
13817 lt_use_gnu_ld_interface=yes
13819 esac
13822 if test "$lt_use_gnu_ld_interface" = yes; then
13823 # If archive_cmds runs LD, not CC, wlarc should be empty
13824 wlarc='${wl}'
13826 # Set some defaults for GNU ld with shared library support. These
13827 # are reset later if shared libraries are not supported. Putting them
13828 # here allows them to be overridden if necessary.
13829 runpath_var=LD_RUN_PATH
13830 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13831 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13832 # ancient GNU ld didn't support --whole-archive et. al.
13833 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13834 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13835 else
13836 whole_archive_flag_spec_FC=
13838 supports_anon_versioning=no
13839 case `$LD -v 2>&1` in
13840 *GNU\ gold*) supports_anon_versioning=yes ;;
13841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13844 *\ 2.11.*) ;; # other 2.11 versions
13845 *) supports_anon_versioning=yes ;;
13846 esac
13848 # See if GNU ld supports shared libraries.
13849 case $host_os in
13850 aix[3-9]*)
13851 # On AIX/PPC, the GNU linker is very broken
13852 if test "$host_cpu" != ia64; then
13853 ld_shlibs_FC=no
13854 cat <<_LT_EOF 1>&2
13856 *** Warning: the GNU linker, at least up to release 2.19, is reported
13857 *** to be unable to reliably create shared libraries on AIX.
13858 *** Therefore, libtool is disabling shared libraries support. If you
13859 *** really care for shared libraries, you may want to install binutils
13860 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13861 *** You will then need to restart the configuration process.
13863 _LT_EOF
13867 amigaos*)
13868 case $host_cpu in
13869 powerpc)
13870 # see comment about AmigaOS4 .so support
13871 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872 archive_expsym_cmds_FC=''
13874 m68k)
13875 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)'
13876 hardcode_libdir_flag_spec_FC='-L$libdir'
13877 hardcode_minus_L_FC=yes
13879 esac
13882 beos*)
13883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13884 allow_undefined_flag_FC=unsupported
13885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13886 # support --undefined. This deserves some investigation. FIXME
13887 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 else
13889 ld_shlibs_FC=no
13893 cygwin* | mingw* | pw32* | cegcc*)
13894 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13895 # as there is no search path for DLLs.
13896 hardcode_libdir_flag_spec_FC='-L$libdir'
13897 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13898 allow_undefined_flag_FC=unsupported
13899 always_export_symbols_FC=no
13900 enable_shared_with_static_runtimes_FC=yes
13901 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13904 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13905 # If the export-symbols file already is a .def file (1st line
13906 # is EXPORTS), use it as is; otherwise, prepend...
13907 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13908 cp $export_symbols $output_objdir/$soname.def;
13909 else
13910 echo EXPORTS > $output_objdir/$soname.def;
13911 cat $export_symbols >> $output_objdir/$soname.def;
13913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13914 else
13915 ld_shlibs_FC=no
13919 haiku*)
13920 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 link_all_deplibs_FC=yes
13924 interix[3-9]*)
13925 hardcode_direct_FC=no
13926 hardcode_shlibpath_var_FC=no
13927 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13928 export_dynamic_flag_spec_FC='${wl}-E'
13929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13930 # Instead, shared libraries are loaded at an image base (0x10000000 by
13931 # default) and relocated if they conflict, which is a slow very memory
13932 # consuming and fragmenting process. To avoid this, we pick a random,
13933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13935 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'
13936 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'
13939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13940 tmp_diet=no
13941 if test "$host_os" = linux-dietlibc; then
13942 case $cc_basename in
13943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13944 esac
13946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13947 && test "$tmp_diet" = no
13948 then
13949 tmp_addflag=
13950 tmp_sharedflag='-shared'
13951 case $cc_basename,$host_cpu in
13952 pgcc*) # Portland Group C compiler
13953 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'
13954 tmp_addflag=' $pic_flag'
13956 pgf77* | pgf90* | pgf95* | pgfortran*)
13957 # Portland Group f77 and f90 compilers
13958 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'
13959 tmp_addflag=' $pic_flag -Mnomain' ;;
13960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13961 tmp_addflag=' -i_dynamic' ;;
13962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13963 tmp_addflag=' -i_dynamic -nofor_main' ;;
13964 ifc* | ifort*) # Intel Fortran compiler
13965 tmp_addflag=' -nofor_main' ;;
13966 lf95*) # Lahey Fortran 8.1
13967 whole_archive_flag_spec_FC=
13968 tmp_sharedflag='--shared' ;;
13969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13970 tmp_sharedflag='-qmkshrobj'
13971 tmp_addflag= ;;
13972 nvcc*) # Cuda Compiler Driver 2.2
13973 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'
13974 compiler_needs_object_FC=yes
13976 esac
13977 case `$CC -V 2>&1 | sed 5q` in
13978 *Sun\ C*) # Sun C 5.9
13979 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'
13980 compiler_needs_object_FC=yes
13981 tmp_sharedflag='-G' ;;
13982 *Sun\ F*) # Sun Fortran 8.3
13983 tmp_sharedflag='-G' ;;
13984 esac
13985 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987 if test "x$supports_anon_versioning" = xyes; then
13988 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13990 echo "local: *; };" >> $output_objdir/$libname.ver~
13991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13994 case $cc_basename in
13995 xlf* | bgf* | bgxlf* | mpixlf*)
13996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13997 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13998 hardcode_libdir_flag_spec_FC=
13999 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14000 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14001 if test "x$supports_anon_versioning" = xyes; then
14002 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14004 echo "local: *; };" >> $output_objdir/$libname.ver~
14005 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14008 esac
14009 else
14010 ld_shlibs_FC=no
14014 netbsd*)
14015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14016 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14017 wlarc=
14018 else
14019 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14024 solaris*)
14025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14026 ld_shlibs_FC=no
14027 cat <<_LT_EOF 1>&2
14029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14030 *** create shared libraries on Solaris systems. Therefore, libtool
14031 *** is disabling shared libraries support. We urge you to upgrade GNU
14032 *** binutils to release 2.9.1 or newer. Another option is to modify
14033 *** your PATH or compiler configuration so that the native linker is
14034 *** used, and then restart.
14036 _LT_EOF
14037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14038 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040 else
14041 ld_shlibs_FC=no
14045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14046 case `$LD -v 2>&1` in
14047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14048 ld_shlibs_FC=no
14049 cat <<_LT_EOF 1>&2
14051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14052 *** reliably create shared libraries on SCO systems. Therefore, libtool
14053 *** is disabling shared libraries support. We urge you to upgrade GNU
14054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14055 *** your PATH or compiler configuration so that the native linker is
14056 *** used, and then restart.
14058 _LT_EOF
14061 # For security reasons, it is highly recommended that you always
14062 # use absolute paths for naming shared libraries, and exclude the
14063 # DT_RUNPATH tag from executables and libraries. But doing so
14064 # requires that you compile everything twice, which is a pain.
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14067 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14069 else
14070 ld_shlibs_FC=no
14073 esac
14076 sunos4*)
14077 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078 wlarc=
14079 hardcode_direct_FC=yes
14080 hardcode_shlibpath_var_FC=no
14084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14085 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14087 else
14088 ld_shlibs_FC=no
14091 esac
14093 if test "$ld_shlibs_FC" = no; then
14094 runpath_var=
14095 hardcode_libdir_flag_spec_FC=
14096 export_dynamic_flag_spec_FC=
14097 whole_archive_flag_spec_FC=
14099 else
14100 # PORTME fill in a description of your system's linker (not GNU ld)
14101 case $host_os in
14102 aix3*)
14103 allow_undefined_flag_FC=unsupported
14104 always_export_symbols_FC=yes
14105 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'
14106 # Note: this linker hardcodes the directories in LIBPATH if there
14107 # are no directories specified by -L.
14108 hardcode_minus_L_FC=yes
14109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14110 # Neither direct hardcoding nor static linking is supported with a
14111 # broken collect2.
14112 hardcode_direct_FC=unsupported
14116 aix[4-9]*)
14117 if test "$host_cpu" = ia64; then
14118 # On IA64, the linker does run time linking by default, so we don't
14119 # have to do anything special.
14120 aix_use_runtimelinking=no
14121 exp_sym_flag='-Bexport'
14122 no_entry_flag=""
14123 else
14124 # If we're using GNU nm, then we don't want the "-C" option.
14125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14126 # Also, AIX nm treats weak defined symbols like other global
14127 # defined symbols, whereas GNU nm marks them as "W".
14128 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14129 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'
14130 else
14131 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'
14133 aix_use_runtimelinking=no
14135 # Test if we are trying to use run time linking or normal
14136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14137 # need to do runtime linking.
14138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14139 for ld_flag in $LDFLAGS; do
14140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14141 aix_use_runtimelinking=yes
14142 break
14144 done
14146 esac
14148 exp_sym_flag='-bexport'
14149 no_entry_flag='-bnoentry'
14152 # When large executables or shared objects are built, AIX ld can
14153 # have problems creating the table of contents. If linking a library
14154 # or program results in "error TOC overflow" add -mminimal-toc to
14155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14158 archive_cmds_FC=''
14159 hardcode_direct_FC=yes
14160 hardcode_direct_absolute_FC=yes
14161 hardcode_libdir_separator_FC=':'
14162 link_all_deplibs_FC=yes
14163 file_list_spec_FC='${wl}-f,'
14165 if test "$GCC" = yes; then
14166 case $host_os in aix4.[012]|aix4.[012].*)
14167 # We only want to do this on AIX 4.2 and lower, the check
14168 # below for broken collect2 doesn't work under 4.3+
14169 collect2name=`${CC} -print-prog-name=collect2`
14170 if test -f "$collect2name" &&
14171 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14172 then
14173 # We have reworked collect2
14175 else
14176 # We have old collect2
14177 hardcode_direct_FC=unsupported
14178 # It fails to find uninstalled libraries when the uninstalled
14179 # path is not listed in the libpath. Setting hardcode_minus_L
14180 # to unsupported forces relinking
14181 hardcode_minus_L_FC=yes
14182 hardcode_libdir_flag_spec_FC='-L$libdir'
14183 hardcode_libdir_separator_FC=
14186 esac
14187 shared_flag='-shared'
14188 if test "$aix_use_runtimelinking" = yes; then
14189 shared_flag="$shared_flag "'${wl}-G'
14191 else
14192 # not using gcc
14193 if test "$host_cpu" = ia64; then
14194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14195 # chokes on -Wl,-G. The following line is correct:
14196 shared_flag='-G'
14197 else
14198 if test "$aix_use_runtimelinking" = yes; then
14199 shared_flag='${wl}-G'
14200 else
14201 shared_flag='${wl}-bM:SRE'
14206 export_dynamic_flag_spec_FC='${wl}-bexpall'
14207 # It seems that -bexpall does not export symbols beginning with
14208 # underscore (_), so it is better to generate a list of symbols to export.
14209 always_export_symbols_FC=yes
14210 if test "$aix_use_runtimelinking" = yes; then
14211 # Warning - without using the other runtime loading flags (-brtl),
14212 # -berok will link without error, but may produce a broken library.
14213 allow_undefined_flag_FC='-berok'
14214 # Determine the default libpath from the value encoded in an
14215 # empty executable.
14216 if test x$gcc_no_link = xyes; then
14217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14219 cat > conftest.$ac_ext <<_ACEOF
14220 program main
14223 _ACEOF
14224 if ac_fn_fc_try_link "$LINENO"; then :
14226 lt_aix_libpath_sed='
14227 /Import File Strings/,/^$/ {
14228 /^0/ {
14229 s/^0 *\(.*\)$/\1/
14233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14234 # Check for a 64-bit object if we didn't find anything.
14235 if test -z "$aix_libpath"; then
14236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14243 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14244 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"
14245 else
14246 if test "$host_cpu" = ia64; then
14247 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14248 allow_undefined_flag_FC="-z nodefs"
14249 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"
14250 else
14251 # Determine the default libpath from the value encoded in an
14252 # empty executable.
14253 if test x$gcc_no_link = xyes; then
14254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14256 cat > conftest.$ac_ext <<_ACEOF
14257 program main
14260 _ACEOF
14261 if ac_fn_fc_try_link "$LINENO"; then :
14263 lt_aix_libpath_sed='
14264 /Import File Strings/,/^$/ {
14265 /^0/ {
14266 s/^0 *\(.*\)$/\1/
14270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14271 # Check for a 64-bit object if we didn't find anything.
14272 if test -z "$aix_libpath"; then
14273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14280 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14281 # Warning - without using the other run time loading flags,
14282 # -berok will link without error, but may produce a broken library.
14283 no_undefined_flag_FC=' ${wl}-bernotok'
14284 allow_undefined_flag_FC=' ${wl}-berok'
14285 if test "$with_gnu_ld" = yes; then
14286 # We only use this code for GNU lds that support --whole-archive.
14287 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14288 else
14289 # Exported symbols can be pulled into shared objects from archives
14290 whole_archive_flag_spec_FC='$convenience'
14292 archive_cmds_need_lc_FC=yes
14293 # This is similar to how AIX traditionally builds its shared libraries.
14294 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'
14299 amigaos*)
14300 case $host_cpu in
14301 powerpc)
14302 # see comment about AmigaOS4 .so support
14303 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 archive_expsym_cmds_FC=''
14306 m68k)
14307 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)'
14308 hardcode_libdir_flag_spec_FC='-L$libdir'
14309 hardcode_minus_L_FC=yes
14311 esac
14314 bsdi[45]*)
14315 export_dynamic_flag_spec_FC=-rdynamic
14318 cygwin* | mingw* | pw32* | cegcc*)
14319 # When not using gcc, we currently assume that we are using
14320 # Microsoft Visual C++.
14321 # hardcode_libdir_flag_spec is actually meaningless, as there is
14322 # no search path for DLLs.
14323 hardcode_libdir_flag_spec_FC=' '
14324 allow_undefined_flag_FC=unsupported
14325 # Tell ltmain to make .lib files, not .a files.
14326 libext=lib
14327 # Tell ltmain to make .dll files, not .so files.
14328 shrext_cmds=".dll"
14329 # FIXME: Setting linknames here is a bad hack.
14330 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14331 # The linker will automatically build a .lib file if we build a DLL.
14332 old_archive_from_new_cmds_FC='true'
14333 # FIXME: Should let the user specify the lib program.
14334 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14335 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14336 enable_shared_with_static_runtimes_FC=yes
14339 darwin* | rhapsody*)
14342 archive_cmds_need_lc_FC=no
14343 hardcode_direct_FC=no
14344 hardcode_automatic_FC=yes
14345 hardcode_shlibpath_var_FC=unsupported
14346 if test "$lt_cv_ld_force_load" = "yes"; then
14347 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\"`'
14348 else
14349 whole_archive_flag_spec_FC=''
14351 link_all_deplibs_FC=yes
14352 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14353 case $cc_basename in
14354 ifort*) _lt_dar_can_shared=yes ;;
14355 *) _lt_dar_can_shared=$GCC ;;
14356 esac
14357 if test "$_lt_dar_can_shared" = "yes"; then
14358 output_verbose_link_cmd=func_echo_all
14359 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}"
14360 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14361 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}"
14362 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}"
14364 else
14365 ld_shlibs_FC=no
14370 dgux*)
14371 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14372 hardcode_libdir_flag_spec_FC='-L$libdir'
14373 hardcode_shlibpath_var_FC=no
14376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14377 # support. Future versions do this automatically, but an explicit c++rt0.o
14378 # does not break anything, and helps significantly (at the cost of a little
14379 # extra space).
14380 freebsd2.2*)
14381 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14382 hardcode_libdir_flag_spec_FC='-R$libdir'
14383 hardcode_direct_FC=yes
14384 hardcode_shlibpath_var_FC=no
14387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14388 freebsd2.*)
14389 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_direct_FC=yes
14391 hardcode_minus_L_FC=yes
14392 hardcode_shlibpath_var_FC=no
14395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14396 freebsd* | dragonfly*)
14397 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14398 hardcode_libdir_flag_spec_FC='-R$libdir'
14399 hardcode_direct_FC=yes
14400 hardcode_shlibpath_var_FC=no
14403 hpux9*)
14404 if test "$GCC" = yes; then
14405 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'
14406 else
14407 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'
14409 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14410 hardcode_libdir_separator_FC=:
14411 hardcode_direct_FC=yes
14413 # hardcode_minus_L: Not really in the search PATH,
14414 # but as the default location of the library.
14415 hardcode_minus_L_FC=yes
14416 export_dynamic_flag_spec_FC='${wl}-E'
14419 hpux10*)
14420 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14421 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14422 else
14423 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14425 if test "$with_gnu_ld" = no; then
14426 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14427 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14428 hardcode_libdir_separator_FC=:
14429 hardcode_direct_FC=yes
14430 hardcode_direct_absolute_FC=yes
14431 export_dynamic_flag_spec_FC='${wl}-E'
14432 # hardcode_minus_L: Not really in the search PATH,
14433 # but as the default location of the library.
14434 hardcode_minus_L_FC=yes
14438 hpux11*)
14439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14440 case $host_cpu in
14441 hppa*64*)
14442 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14444 ia64*)
14445 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14448 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14450 esac
14451 else
14452 case $host_cpu in
14453 hppa*64*)
14454 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14456 ia64*)
14457 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14460 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14462 esac
14464 if test "$with_gnu_ld" = no; then
14465 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14466 hardcode_libdir_separator_FC=:
14468 case $host_cpu in
14469 hppa*64*|ia64*)
14470 hardcode_direct_FC=no
14471 hardcode_shlibpath_var_FC=no
14474 hardcode_direct_FC=yes
14475 hardcode_direct_absolute_FC=yes
14476 export_dynamic_flag_spec_FC='${wl}-E'
14478 # hardcode_minus_L: Not really in the search PATH,
14479 # but as the default location of the library.
14480 hardcode_minus_L_FC=yes
14482 esac
14486 irix5* | irix6* | nonstopux*)
14487 if test "$GCC" = yes; then
14488 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'
14489 # Try to use the -exported_symbol ld option, if it does not
14490 # work, assume that -exports_file does not work either and
14491 # implicitly export all symbols.
14492 save_LDFLAGS="$LDFLAGS"
14493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14494 if test x$gcc_no_link = xyes; then
14495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14497 cat > conftest.$ac_ext <<_ACEOF
14498 int foo(void) {}
14499 _ACEOF
14500 if ac_fn_fc_try_link "$LINENO"; then :
14501 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'
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LDFLAGS="$save_LDFLAGS"
14507 else
14508 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'
14509 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'
14511 archive_cmds_need_lc_FC='no'
14512 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14513 hardcode_libdir_separator_FC=:
14514 inherit_rpath_FC=yes
14515 link_all_deplibs_FC=yes
14518 netbsd*)
14519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14520 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14521 else
14522 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14524 hardcode_libdir_flag_spec_FC='-R$libdir'
14525 hardcode_direct_FC=yes
14526 hardcode_shlibpath_var_FC=no
14529 newsos6)
14530 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531 hardcode_direct_FC=yes
14532 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14533 hardcode_libdir_separator_FC=:
14534 hardcode_shlibpath_var_FC=no
14537 *nto* | *qnx*)
14540 openbsd*)
14541 if test -f /usr/libexec/ld.so; then
14542 hardcode_direct_FC=yes
14543 hardcode_shlibpath_var_FC=no
14544 hardcode_direct_absolute_FC=yes
14545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14548 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14549 export_dynamic_flag_spec_FC='${wl}-E'
14550 else
14551 case $host_os in
14552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14553 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_libdir_flag_spec_FC='-R$libdir'
14557 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14558 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14560 esac
14562 else
14563 ld_shlibs_FC=no
14567 os2*)
14568 hardcode_libdir_flag_spec_FC='-L$libdir'
14569 hardcode_minus_L_FC=yes
14570 allow_undefined_flag_FC=unsupported
14571 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'
14572 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14575 osf3*)
14576 if test "$GCC" = yes; then
14577 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14578 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'
14579 else
14580 allow_undefined_flag_FC=' -expect_unresolved \*'
14581 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'
14583 archive_cmds_need_lc_FC='no'
14584 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14585 hardcode_libdir_separator_FC=:
14588 osf4* | osf5*) # as osf3* with the addition of -msym flag
14589 if test "$GCC" = yes; then
14590 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14591 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'
14592 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14593 else
14594 allow_undefined_flag_FC=' -expect_unresolved \*'
14595 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'
14596 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~
14597 $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'
14599 # Both c and cxx compiler support -rpath directly
14600 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14602 archive_cmds_need_lc_FC='no'
14603 hardcode_libdir_separator_FC=:
14606 solaris*)
14607 no_undefined_flag_FC=' -z defs'
14608 if test "$GCC" = yes; then
14609 wlarc='${wl}'
14610 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14612 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14613 else
14614 case `$CC -V 2>&1` in
14615 *"Compilers 5.0"*)
14616 wlarc=''
14617 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14622 wlarc='${wl}'
14623 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14625 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14627 esac
14629 hardcode_libdir_flag_spec_FC='-R$libdir'
14630 hardcode_shlibpath_var_FC=no
14631 case $host_os in
14632 solaris2.[0-5] | solaris2.[0-5].*) ;;
14634 # The compiler driver will combine and reorder linker options,
14635 # but understands `-z linker_flag'. GCC discards it without `$wl',
14636 # but is careful enough not to reorder.
14637 # Supported since Solaris 2.6 (maybe 2.5.1?)
14638 if test "$GCC" = yes; then
14639 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14640 else
14641 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14644 esac
14645 link_all_deplibs_FC=yes
14648 sunos4*)
14649 if test "x$host_vendor" = xsequent; then
14650 # Use $CC to link under sequent, because it throws in some extra .o
14651 # files that make .init and .fini sections work.
14652 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14653 else
14654 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14656 hardcode_libdir_flag_spec_FC='-L$libdir'
14657 hardcode_direct_FC=yes
14658 hardcode_minus_L_FC=yes
14659 hardcode_shlibpath_var_FC=no
14662 sysv4)
14663 case $host_vendor in
14664 sni)
14665 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct_FC=yes # is this really true???
14668 siemens)
14669 ## LD is ld it makes a PLAMLIB
14670 ## CC just makes a GrossModule.
14671 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14672 reload_cmds_FC='$CC -r -o $output$reload_objs'
14673 hardcode_direct_FC=no
14675 motorola)
14676 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14679 esac
14680 runpath_var='LD_RUN_PATH'
14681 hardcode_shlibpath_var_FC=no
14684 sysv4.3*)
14685 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_shlibpath_var_FC=no
14687 export_dynamic_flag_spec_FC='-Bexport'
14690 sysv4*MP*)
14691 if test -d /usr/nec; then
14692 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693 hardcode_shlibpath_var_FC=no
14694 runpath_var=LD_RUN_PATH
14695 hardcode_runpath_var=yes
14696 ld_shlibs_FC=yes
14700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14701 no_undefined_flag_FC='${wl}-z,text'
14702 archive_cmds_need_lc_FC=no
14703 hardcode_shlibpath_var_FC=no
14704 runpath_var='LD_RUN_PATH'
14706 if test "$GCC" = yes; then
14707 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14709 else
14710 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 sysv5* | sco3.2v5* | sco5v6*)
14716 # Note: We can NOT use -z defs as we might desire, because we do not
14717 # link with -lc, and that would cause any symbols used from libc to
14718 # always be unresolved, which means just about no library would
14719 # ever link correctly. If we're not using GNU ld we use -z text
14720 # though, which does catch some bad symbols but isn't as heavy-handed
14721 # as -z defs.
14722 no_undefined_flag_FC='${wl}-z,text'
14723 allow_undefined_flag_FC='${wl}-z,nodefs'
14724 archive_cmds_need_lc_FC=no
14725 hardcode_shlibpath_var_FC=no
14726 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14727 hardcode_libdir_separator_FC=':'
14728 link_all_deplibs_FC=yes
14729 export_dynamic_flag_spec_FC='${wl}-Bexport'
14730 runpath_var='LD_RUN_PATH'
14732 if test "$GCC" = yes; then
14733 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14735 else
14736 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741 uts4*)
14742 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_FC='-L$libdir'
14744 hardcode_shlibpath_var_FC=no
14748 ld_shlibs_FC=no
14750 esac
14752 if test x$host_vendor = xsni; then
14753 case $host in
14754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14755 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14757 esac
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14762 $as_echo "$ld_shlibs_FC" >&6; }
14763 test "$ld_shlibs_FC" = no && can_build_shared=no
14765 with_gnu_ld_FC=$with_gnu_ld
14773 # Do we need to explicitly link libc?
14775 case "x$archive_cmds_need_lc_FC" in
14776 x|xyes)
14777 # Assume -lc should be added
14778 archive_cmds_need_lc_FC=yes
14780 if test "$enable_shared" = yes && test "$GCC" = yes; then
14781 case $archive_cmds_FC in
14782 *'~'*)
14783 # FIXME: we may have to deal with multi-command sequences.
14785 '$CC '*)
14786 # Test whether the compiler implicitly links with -lc since on some
14787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14788 # to ld, don't add -lc before -lgcc.
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14791 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 $RM conftest*
14795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14798 (eval $ac_compile) 2>&5
14799 ac_status=$?
14800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14801 test $ac_status = 0; } 2>conftest.err; then
14802 soname=conftest
14803 lib=conftest
14804 libobjs=conftest.$ac_objext
14805 deplibs=
14806 wl=$lt_prog_compiler_wl_FC
14807 pic_flag=$lt_prog_compiler_pic_FC
14808 compiler_flags=-v
14809 linker_flags=-v
14810 verstring=
14811 output_objdir=.
14812 libname=conftest
14813 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14814 allow_undefined_flag_FC=
14815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14816 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14817 ac_status=$?
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }
14820 then
14821 lt_cv_archive_cmds_need_lc_FC=no
14822 else
14823 lt_cv_archive_cmds_need_lc_FC=yes
14825 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14826 else
14827 cat conftest.err 1>&5
14829 $RM conftest*
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14833 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14834 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14836 esac
14839 esac
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14907 library_names_spec=
14908 libname_spec='lib$name'
14909 soname_spec=
14910 shrext_cmds=".so"
14911 postinstall_cmds=
14912 postuninstall_cmds=
14913 finish_cmds=
14914 finish_eval=
14915 shlibpath_var=
14916 shlibpath_overrides_runpath=unknown
14917 version_type=none
14918 dynamic_linker="$host_os ld.so"
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14920 need_lib_prefix=unknown
14921 hardcode_into_libs=no
14923 # when you set need_version to no, make sure it does not cause -set_version
14924 # flags to be left without arguments
14925 need_version=unknown
14927 case $host_os in
14928 aix3*)
14929 version_type=linux
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14931 shlibpath_var=LIBPATH
14933 # AIX 3 has no versioning support, so we append a major version to the name.
14934 soname_spec='${libname}${release}${shared_ext}$major'
14937 aix[4-9]*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
14941 hardcode_into_libs=yes
14942 if test "$host_cpu" = ia64; then
14943 # AIX 5 supports IA64
14944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 else
14947 # With GCC up to 2.95.x, collect2 would create an import file
14948 # for dependence libraries. The import file would start with
14949 # the line `#! .'. This would cause the generated library to
14950 # depend on `.', always an invalid library. This was fixed in
14951 # development snapshots of GCC prior to 3.0.
14952 case $host_os in
14953 aix4 | aix4.[01] | aix4.[01].*)
14954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14955 echo ' yes '
14956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14958 else
14959 can_build_shared=no
14962 esac
14963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14964 # soname into executable. Probably we can add versioning support to
14965 # collect2, so additional links can be useful in future.
14966 if test "$aix_use_runtimelinking" = yes; then
14967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14968 # instead of lib<name>.a to let people know that these are not
14969 # typical AIX shared libraries.
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 else
14972 # We preserve .a as extension for shared libraries through AIX4.2
14973 # and later when we are not doing run time linking.
14974 library_names_spec='${libname}${release}.a $libname.a'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14977 shlibpath_var=LIBPATH
14981 amigaos*)
14982 case $host_cpu in
14983 powerpc)
14984 # Since July 2007 AmigaOS4 officially supports .so libraries.
14985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 m68k)
14989 library_names_spec='$libname.ixlibrary $libname.a'
14990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14991 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'
14993 esac
14996 beos*)
14997 library_names_spec='${libname}${shared_ext}'
14998 dynamic_linker="$host_os ld.so"
14999 shlibpath_var=LIBRARY_PATH
15002 bsdi[45]*)
15003 version_type=linux
15004 need_version=no
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15011 # the default ld.so.conf also contains /usr/contrib/lib and
15012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15013 # libtool to hard-code these into programs
15016 cygwin* | mingw* | pw32* | cegcc*)
15017 version_type=windows
15018 shrext_cmds=".dll"
15019 need_version=no
15020 need_lib_prefix=no
15022 case $GCC,$host_os in
15023 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15024 library_names_spec='$libname.dll.a'
15025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15026 postinstall_cmds='base_file=`basename \${file}`~
15027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15028 dldir=$destdir/`dirname \$dlpath`~
15029 test -d \$dldir || mkdir -p \$dldir~
15030 $install_prog $dir/$dlname \$dldir/$dlname~
15031 chmod a+x \$dldir/$dlname~
15032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15036 dlpath=$dir/\$dldll~
15037 $RM \$dlpath'
15038 shlibpath_overrides_runpath=yes
15040 case $host_os in
15041 cygwin*)
15042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15046 mingw* | cegcc*)
15047 # MinGW DLLs use traditional 'lib' prefix
15048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050 pw32*)
15051 # pw32 DLLs use 'pw' prefix rather than 'lib'
15052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15054 esac
15058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15060 esac
15061 dynamic_linker='Win32 ld.exe'
15062 # FIXME: first we should search . and the directory the executable is in
15063 shlibpath_var=PATH
15066 darwin* | rhapsody*)
15067 dynamic_linker="$host_os dyld"
15068 version_type=darwin
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15072 soname_spec='${libname}${release}${major}$shared_ext'
15073 shlibpath_overrides_runpath=yes
15074 shlibpath_var=DYLD_LIBRARY_PATH
15075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15080 dgux*)
15081 version_type=linux
15082 need_lib_prefix=no
15083 need_version=no
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 shlibpath_var=LD_LIBRARY_PATH
15089 freebsd* | dragonfly*)
15090 # DragonFly does not have aout. When/if they implement a new
15091 # versioning mechanism, adjust this.
15092 if test -x /usr/bin/objformat; then
15093 objformat=`/usr/bin/objformat`
15094 else
15095 case $host_os in
15096 freebsd[23].*) objformat=aout ;;
15097 *) objformat=elf ;;
15098 esac
15100 version_type=freebsd-$objformat
15101 case $version_type in
15102 freebsd-elf*)
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15104 need_version=no
15105 need_lib_prefix=no
15107 freebsd-*)
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15109 need_version=yes
15111 esac
15112 shlibpath_var=LD_LIBRARY_PATH
15113 case $host_os in
15114 freebsd2.*)
15115 shlibpath_overrides_runpath=yes
15117 freebsd3.[01]* | freebsdelf3.[01]*)
15118 shlibpath_overrides_runpath=yes
15119 hardcode_into_libs=yes
15121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15126 *) # from 4.6 on, and DragonFly
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15130 esac
15133 gnu*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 hardcode_into_libs=yes
15143 haiku*)
15144 version_type=linux
15145 need_lib_prefix=no
15146 need_version=no
15147 dynamic_linker="$host_os runtime_loader"
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15153 hardcode_into_libs=yes
15156 hpux9* | hpux10* | hpux11*)
15157 # Give a soname corresponding to the major version so that dld.sl refuses to
15158 # link against other versions.
15159 version_type=sunos
15160 need_lib_prefix=no
15161 need_version=no
15162 case $host_cpu in
15163 ia64*)
15164 shrext_cmds='.so'
15165 hardcode_into_libs=yes
15166 dynamic_linker="$host_os dld.so"
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 if test "X$HPUX_IA64_MODE" = X32; then
15172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15173 else
15174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15178 hppa*64*)
15179 shrext_cmds='.sl'
15180 hardcode_into_libs=yes
15181 dynamic_linker="$host_os dld.sl"
15182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15190 shrext_cmds='.sl'
15191 dynamic_linker="$host_os dld.sl"
15192 shlibpath_var=SHLIB_PATH
15193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15197 esac
15198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15199 postinstall_cmds='chmod 555 $lib'
15200 # or fails outright, so override atomically:
15201 install_override_mode=555
15204 interix[3-9]*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213 hardcode_into_libs=yes
15216 irix5* | irix6* | nonstopux*)
15217 case $host_os in
15218 nonstopux*) version_type=nonstopux ;;
15220 if test "$lt_cv_prog_gnu_ld" = yes; then
15221 version_type=linux
15222 else
15223 version_type=irix
15224 fi ;;
15225 esac
15226 need_lib_prefix=no
15227 need_version=no
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 case $host_os in
15231 irix5* | nonstopux*)
15232 libsuff= shlibsuff=
15235 case $LD in # libtool.m4 will add one of these switches to LD
15236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15237 libsuff= shlibsuff= libmagic=32-bit;;
15238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15239 libsuff=32 shlibsuff=N32 libmagic=N32;;
15240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15242 *) libsuff= shlibsuff= libmagic=never-match;;
15243 esac
15245 esac
15246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15247 shlibpath_overrides_runpath=no
15248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15250 hardcode_into_libs=yes
15253 # No shared lib support for Linux oldld, aout, or coff.
15254 linux*oldld* | linux*aout* | linux*coff*)
15255 dynamic_linker=no
15258 # This must be Linux ELF.
15259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15260 version_type=linux
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15269 # Some binutils ld are patched to set DT_RUNPATH
15270 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 lt_cv_shlibpath_overrides_runpath=no
15274 save_LDFLAGS=$LDFLAGS
15275 save_libdir=$libdir
15276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15278 if test x$gcc_no_link = xyes; then
15279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15281 cat > conftest.$ac_ext <<_ACEOF
15282 program main
15285 _ACEOF
15286 if ac_fn_fc_try_link "$LINENO"; then :
15287 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15288 lt_cv_shlibpath_overrides_runpath=yes
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 LDFLAGS=$save_LDFLAGS
15294 libdir=$save_libdir
15298 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15300 # This implies no fast_install, which is unacceptable.
15301 # Some rework will be needed to allow for fast_install
15302 # before this can be enabled.
15303 hardcode_into_libs=yes
15305 # Append ld.so.conf contents to the search path
15306 if test -f /etc/ld.so.conf; then
15307 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' ' '`
15308 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15311 # We used to test for /lib/ld.so.1 and disable shared libraries on
15312 # powerpc, because MkLinux only supported shared libraries with the
15313 # GNU dynamic linker. Since this was broken with cross compilers,
15314 # most powerpc-linux boxes support dynamic linking these days and
15315 # people can always --disable-shared, the test was removed, and we
15316 # assume the GNU/Linux dynamic linker is in use.
15317 dynamic_linker='GNU/Linux ld.so'
15320 netbsd*)
15321 version_type=sunos
15322 need_lib_prefix=no
15323 need_version=no
15324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15327 dynamic_linker='NetBSD (a.out) ld.so'
15328 else
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 dynamic_linker='NetBSD ld.elf_so'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 hardcode_into_libs=yes
15338 newsos6)
15339 version_type=linux
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 shlibpath_overrides_runpath=yes
15345 *nto* | *qnx*)
15346 version_type=qnx
15347 need_lib_prefix=no
15348 need_version=no
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=no
15353 hardcode_into_libs=yes
15354 dynamic_linker='ldqnx.so'
15357 openbsd*)
15358 version_type=sunos
15359 sys_lib_dlsearch_path_spec="/usr/lib"
15360 need_lib_prefix=no
15361 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15362 case $host_os in
15363 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15364 *) need_version=no ;;
15365 esac
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15370 case $host_os in
15371 openbsd2.[89] | openbsd2.[89].*)
15372 shlibpath_overrides_runpath=no
15375 shlibpath_overrides_runpath=yes
15377 esac
15378 else
15379 shlibpath_overrides_runpath=yes
15383 os2*)
15384 libname_spec='$name'
15385 shrext_cmds=".dll"
15386 need_lib_prefix=no
15387 library_names_spec='$libname${shared_ext} $libname.a'
15388 dynamic_linker='OS/2 ld.exe'
15389 shlibpath_var=LIBPATH
15392 osf3* | osf4* | osf5*)
15393 version_type=osf
15394 need_lib_prefix=no
15395 need_version=no
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15400 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15403 rdos*)
15404 dynamic_linker=no
15407 solaris*)
15408 version_type=linux
15409 need_lib_prefix=no
15410 need_version=no
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15416 # ldd complains unless libraries are executable
15417 postinstall_cmds='chmod +x $lib'
15420 sunos4*)
15421 version_type=sunos
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15423 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes
15426 if test "$with_gnu_ld" = yes; then
15427 need_lib_prefix=no
15429 need_version=yes
15432 sysv4 | sysv4.3*)
15433 version_type=linux
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 case $host_vendor in
15438 sni)
15439 shlibpath_overrides_runpath=no
15440 need_lib_prefix=no
15441 runpath_var=LD_RUN_PATH
15443 siemens)
15444 need_lib_prefix=no
15446 motorola)
15447 need_lib_prefix=no
15448 need_version=no
15449 shlibpath_overrides_runpath=no
15450 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15452 esac
15455 sysv4*MP*)
15456 if test -d /usr/nec ;then
15457 version_type=linux
15458 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15459 soname_spec='$libname${shared_ext}.$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15465 version_type=freebsd-elf
15466 need_lib_prefix=no
15467 need_version=no
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 shlibpath_overrides_runpath=yes
15472 hardcode_into_libs=yes
15473 if test "$with_gnu_ld" = yes; then
15474 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15475 else
15476 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15477 case $host_os in
15478 sco3.2v5*)
15479 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15481 esac
15483 sys_lib_dlsearch_path_spec='/usr/lib'
15486 tpf*)
15487 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15488 version_type=linux
15489 need_lib_prefix=no
15490 need_version=no
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=no
15494 hardcode_into_libs=yes
15497 uts4*)
15498 version_type=linux
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 shlibpath_var=LD_LIBRARY_PATH
15505 dynamic_linker=no
15507 esac
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15509 $as_echo "$dynamic_linker" >&6; }
15510 test "$dynamic_linker" = no && can_build_shared=no
15512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15513 if test "$GCC" = yes; then
15514 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15517 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15518 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15520 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15521 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15562 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15563 hardcode_action_FC=
15564 if test -n "$hardcode_libdir_flag_spec_FC" ||
15565 test -n "$runpath_var_FC" ||
15566 test "X$hardcode_automatic_FC" = "Xyes" ; then
15568 # We can hardcode non-existent directories.
15569 if test "$hardcode_direct_FC" != no &&
15570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15571 # have to relink, otherwise we might link with an installed library
15572 # when we should be linking with a yet-to-be-installed one
15573 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15574 test "$hardcode_minus_L_FC" != no; then
15575 # Linking always hardcodes the temporary library directory.
15576 hardcode_action_FC=relink
15577 else
15578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15579 hardcode_action_FC=immediate
15581 else
15582 # We cannot hardcode anything, or else we can only hardcode existing
15583 # directories.
15584 hardcode_action_FC=unsupported
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15587 $as_echo "$hardcode_action_FC" >&6; }
15589 if test "$hardcode_action_FC" = relink ||
15590 test "$inherit_rpath_FC" = yes; then
15591 # Fast installation is not supported
15592 enable_fast_install=no
15593 elif test "$shlibpath_overrides_runpath" = yes ||
15594 test "$enable_shared" = no; then
15595 # Fast installation is not necessary
15596 enable_fast_install=needless
15605 fi # test -n "$compiler"
15607 GCC=$lt_save_GCC
15608 CC="$lt_save_CC"
15609 fi # test "$_lt_disable_FC" != yes
15611 ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15619 # extra LD Flags which are required for targets
15620 case "${host}" in
15621 *-darwin*)
15622 # Darwin needs -single_module when linking libgfortran
15623 extra_ldflags_libgfortran=-Wl,-single_module
15625 esac
15628 # We need a working compiler at that point, otherwise give a clear
15629 # error message and bail out.
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15632 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15633 ac_ext=${ac_fc_srcext-f}
15634 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15635 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15636 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15638 cat > conftest.$ac_ext <<_ACEOF
15640 program foo
15641 real, parameter :: bar = sin (12.34 / 2.5)
15642 end program foo
15643 _ACEOF
15644 if ac_fn_fc_try_compile "$LINENO"; then :
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646 $as_echo "yes" >&6; }
15647 else
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15650 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 ac_ext=c
15655 ac_cpp='$CPP $CPPFLAGS'
15656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15662 # Check whether --enable-largefile was given.
15663 if test "${enable_largefile+set}" = set; then :
15664 enableval=$enable_largefile;
15667 if test "$enable_largefile" != no; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15670 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15671 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 ac_cv_sys_largefile_CC=no
15675 if test "$GCC" != yes; then
15676 ac_save_CC=$CC
15677 while :; do
15678 # IRIX 6.2 and later do not support large files by default,
15679 # so use the C compiler's -n32 option if that helps.
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <sys/types.h>
15683 /* Check that off_t can represent 2**63 - 1 correctly.
15684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15685 since some C++ compilers masquerading as C compilers
15686 incorrectly reject 9223372036854775807. */
15687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15689 && LARGE_OFF_T % 2147483647 == 1)
15690 ? 1 : -1];
15692 main ()
15696 return 0;
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"; then :
15700 break
15702 rm -f core conftest.err conftest.$ac_objext
15703 CC="$CC -n32"
15704 if ac_fn_c_try_compile "$LINENO"; then :
15705 ac_cv_sys_largefile_CC=' -n32'; break
15707 rm -f core conftest.err conftest.$ac_objext
15708 break
15709 done
15710 CC=$ac_save_CC
15711 rm -f conftest.$ac_ext
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15716 if test "$ac_cv_sys_largefile_CC" != no; then
15717 CC=$CC$ac_cv_sys_largefile_CC
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 while :; do
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 #include <sys/types.h>
15729 /* Check that off_t can represent 2**63 - 1 correctly.
15730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15731 since some C++ compilers masquerading as C compilers
15732 incorrectly reject 9223372036854775807. */
15733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15735 && LARGE_OFF_T % 2147483647 == 1)
15736 ? 1 : -1];
15738 main ()
15742 return 0;
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 ac_cv_sys_file_offset_bits=no; break
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 #define _FILE_OFFSET_BITS 64
15752 #include <sys/types.h>
15753 /* Check that off_t can represent 2**63 - 1 correctly.
15754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15755 since some C++ compilers masquerading as C compilers
15756 incorrectly reject 9223372036854775807. */
15757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15759 && LARGE_OFF_T % 2147483647 == 1)
15760 ? 1 : -1];
15762 main ()
15766 return 0;
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 ac_cv_sys_file_offset_bits=64; break
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 ac_cv_sys_file_offset_bits=unknown
15774 break
15775 done
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15778 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15779 case $ac_cv_sys_file_offset_bits in #(
15780 no | unknown) ;;
15782 cat >>confdefs.h <<_ACEOF
15783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15784 _ACEOF
15786 esac
15787 rm -rf conftest*
15788 if test $ac_cv_sys_file_offset_bits = unknown; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15790 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15791 if test "${ac_cv_sys_large_files+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 while :; do
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 #include <sys/types.h>
15798 /* Check that off_t can represent 2**63 - 1 correctly.
15799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15800 since some C++ compilers masquerading as C compilers
15801 incorrectly reject 9223372036854775807. */
15802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15804 && LARGE_OFF_T % 2147483647 == 1)
15805 ? 1 : -1];
15807 main ()
15811 return 0;
15813 _ACEOF
15814 if ac_fn_c_try_compile "$LINENO"; then :
15815 ac_cv_sys_large_files=no; break
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #define _LARGE_FILES 1
15821 #include <sys/types.h>
15822 /* Check that off_t can represent 2**63 - 1 correctly.
15823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15824 since some C++ compilers masquerading as C compilers
15825 incorrectly reject 9223372036854775807. */
15826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15828 && LARGE_OFF_T % 2147483647 == 1)
15829 ? 1 : -1];
15831 main ()
15835 return 0;
15837 _ACEOF
15838 if ac_fn_c_try_compile "$LINENO"; then :
15839 ac_cv_sys_large_files=1; break
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 ac_cv_sys_large_files=unknown
15843 break
15844 done
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15847 $as_echo "$ac_cv_sys_large_files" >&6; }
15848 case $ac_cv_sys_large_files in #(
15849 no | unknown) ;;
15851 cat >>confdefs.h <<_ACEOF
15852 #define _LARGE_FILES $ac_cv_sys_large_files
15853 _ACEOF
15855 esac
15856 rm -rf conftest*
15861 # Types
15862 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15863 if test "x$ac_cv_type_off_t" = x""yes; then :
15865 else
15867 cat >>confdefs.h <<_ACEOF
15868 #define off_t long int
15869 _ACEOF
15874 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15875 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15877 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15879 else
15880 for ac_type in 'int' 'long int' 'long long int'; do
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 $ac_includes_default
15885 main ()
15887 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15888 test_array [0] = 0
15891 return 0;
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"; then :
15896 cat >>confdefs.h <<_ACEOF
15897 #define intptr_t $ac_type
15898 _ACEOF
15900 ac_type=
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 test -z "$ac_type" && break
15904 done
15909 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15912 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15914 else
15915 for ac_type in 'unsigned int' 'unsigned long int' \
15916 'unsigned long long int'; do
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 $ac_includes_default
15921 main ()
15923 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15924 test_array [0] = 0
15927 return 0;
15929 _ACEOF
15930 if ac_fn_c_try_compile "$LINENO"; then :
15932 cat >>confdefs.h <<_ACEOF
15933 #define uintptr_t $ac_type
15934 _ACEOF
15936 ac_type=
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 test -z "$ac_type" && break
15940 done
15944 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15945 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15947 cat >>confdefs.h <<_ACEOF
15948 #define HAVE_PTRDIFF_T 1
15949 _ACEOF
15955 # check header files (we assume C89 is available, so don't check for that)
15959 for ac_header in $ac_header_list
15960 do :
15961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15964 eval as_val=\$$as_ac_Header
15965 if test "x$as_val" = x""yes; then :
15966 cat >>confdefs.h <<_ACEOF
15967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15972 done
16004 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16006 acx_cv_header_stdint=stddef.h
16007 acx_cv_header_stdint_kind="(already complete)"
16008 for i in stdint.h $inttype_headers; do
16009 unset ac_cv_type_uintptr_t
16010 unset ac_cv_type_uintmax_t
16011 unset ac_cv_type_int_least32_t
16012 unset ac_cv_type_int_fast32_t
16013 unset ac_cv_type_uint64_t
16014 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16015 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16016 #include <$i>
16018 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16019 acx_cv_header_stdint=$i
16020 else
16021 continue
16024 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16025 #include <$i>
16027 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16029 else
16030 acx_cv_header_stdint_kind="(mostly complete)"
16033 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16034 #include <$i>
16036 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16038 else
16039 acx_cv_header_stdint_kind="(mostly complete)"
16042 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16043 #include <$i>
16045 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16047 else
16048 acx_cv_header_stdint_kind="(mostly complete)"
16051 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16052 #include <$i>
16054 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16056 else
16057 acx_cv_header_stdint_kind="(lacks uint64_t)"
16060 break
16061 done
16062 if test "$acx_cv_header_stdint" = stddef.h; then
16063 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16064 for i in stdint.h $inttype_headers; do
16065 unset ac_cv_type_uintptr_t
16066 unset ac_cv_type_uint32_t
16067 unset ac_cv_type_uint64_t
16068 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16069 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16070 #include <$i>
16072 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16073 acx_cv_header_stdint=$i
16074 else
16075 continue
16078 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16079 #include <$i>
16081 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16085 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16086 #include <$i>
16088 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16092 break
16093 done
16095 if test "$acx_cv_header_stdint" = stddef.h; then
16096 acx_cv_header_stdint_kind="(u_intXX_t style)"
16097 for i in sys/types.h $inttype_headers; do
16098 unset ac_cv_type_u_int32_t
16099 unset ac_cv_type_u_int64_t
16100 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16101 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16102 #include <$i>
16104 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16105 acx_cv_header_stdint=$i
16106 else
16107 continue
16110 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16111 #include <$i>
16113 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16117 break
16118 done
16120 if test "$acx_cv_header_stdint" = stddef.h; then
16121 acx_cv_header_stdint_kind="(using manual detection)"
16124 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16125 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16126 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16127 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16128 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16130 # ----------------- Summarize what we found so far
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16133 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16135 case `$as_basename -- gstdint.h ||
16136 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16137 Xgstdint.h : 'X\(//\)$' \| \
16138 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X/gstdint.h |
16140 sed '/^.*\/\([^/][^/]*\)\/*$/{
16141 s//\1/
16144 /^X\/\(\/\/\)$/{
16145 s//\1/
16148 /^X\/\(\/\).*/{
16149 s//\1/
16152 s/.*/./; q'` in
16153 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16154 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16155 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16156 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16157 *) ;;
16158 esac
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16161 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16163 # ----------------- done included file, check C basic types --------
16165 # Lacking an uintptr_t? Test size of void *
16166 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16167 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16170 # This bug is HP SR number 8606223364.
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16172 $as_echo_n "checking size of void *... " >&6; }
16173 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16178 else
16179 if test "$ac_cv_type_void_p" = yes; then
16180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16182 { as_fn_set_status 77
16183 as_fn_error "cannot compute sizeof (void *)
16184 See \`config.log' for more details." "$LINENO" 5; }; }
16185 else
16186 ac_cv_sizeof_void_p=0
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16192 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16196 cat >>confdefs.h <<_ACEOF
16197 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16198 _ACEOF
16201 esac
16203 # Lacking an uint64_t? Test size of long
16204 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16205 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16208 # This bug is HP SR number 8606223364.
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16210 $as_echo_n "checking size of long... " >&6; }
16211 if test "${ac_cv_sizeof_long+set}" = set; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16216 else
16217 if test "$ac_cv_type_long" = yes; then
16218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16220 { as_fn_set_status 77
16221 as_fn_error "cannot compute sizeof (long)
16222 See \`config.log' for more details." "$LINENO" 5; }; }
16223 else
16224 ac_cv_sizeof_long=0
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16230 $as_echo "$ac_cv_sizeof_long" >&6; }
16234 cat >>confdefs.h <<_ACEOF
16235 #define SIZEOF_LONG $ac_cv_sizeof_long
16236 _ACEOF
16239 esac
16241 if test $acx_cv_header_stdint = stddef.h; then
16242 # Lacking a good header? Test size of everything and deduce all types.
16243 # The cast to long int works around a bug in the HP C Compiler
16244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16246 # This bug is HP SR number 8606223364.
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16248 $as_echo_n "checking size of int... " >&6; }
16249 if test "${ac_cv_sizeof_int+set}" = set; then :
16250 $as_echo_n "(cached) " >&6
16251 else
16252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16254 else
16255 if test "$ac_cv_type_int" = yes; then
16256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16258 { as_fn_set_status 77
16259 as_fn_error "cannot compute sizeof (int)
16260 See \`config.log' for more details." "$LINENO" 5; }; }
16261 else
16262 ac_cv_sizeof_int=0
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16268 $as_echo "$ac_cv_sizeof_int" >&6; }
16272 cat >>confdefs.h <<_ACEOF
16273 #define SIZEOF_INT $ac_cv_sizeof_int
16274 _ACEOF
16277 # The cast to long int works around a bug in the HP C Compiler
16278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16280 # This bug is HP SR number 8606223364.
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16282 $as_echo_n "checking size of short... " >&6; }
16283 if test "${ac_cv_sizeof_short+set}" = set; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16288 else
16289 if test "$ac_cv_type_short" = yes; then
16290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16292 { as_fn_set_status 77
16293 as_fn_error "cannot compute sizeof (short)
16294 See \`config.log' for more details." "$LINENO" 5; }; }
16295 else
16296 ac_cv_sizeof_short=0
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16302 $as_echo "$ac_cv_sizeof_short" >&6; }
16306 cat >>confdefs.h <<_ACEOF
16307 #define SIZEOF_SHORT $ac_cv_sizeof_short
16308 _ACEOF
16311 # The cast to long int works around a bug in the HP C Compiler
16312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16314 # This bug is HP SR number 8606223364.
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16316 $as_echo_n "checking size of char... " >&6; }
16317 if test "${ac_cv_sizeof_char+set}" = set; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16322 else
16323 if test "$ac_cv_type_char" = yes; then
16324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16326 { as_fn_set_status 77
16327 as_fn_error "cannot compute sizeof (char)
16328 See \`config.log' for more details." "$LINENO" 5; }; }
16329 else
16330 ac_cv_sizeof_char=0
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16336 $as_echo "$ac_cv_sizeof_char" >&6; }
16340 cat >>confdefs.h <<_ACEOF
16341 #define SIZEOF_CHAR $ac_cv_sizeof_char
16342 _ACEOF
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16347 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16348 case "$ac_cv_sizeof_char" in
16349 1) acx_cv_type_int8_t=char ;;
16350 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16351 esac
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16353 $as_echo "$acx_cv_type_int8_t" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16356 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16357 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16358 2:*) acx_cv_type_int16_t=int ;;
16359 *:2) acx_cv_type_int16_t=short ;;
16360 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16361 esac
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16363 $as_echo "$acx_cv_type_int16_t" >&6; }
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16366 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16367 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16368 4:*) acx_cv_type_int32_t=int ;;
16369 *:4) acx_cv_type_int32_t=long ;;
16370 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16371 esac
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16373 $as_echo "$acx_cv_type_int32_t" >&6; }
16376 # These tests are here to make the output prettier
16378 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16379 case "$ac_cv_sizeof_long" in
16380 8) acx_cv_type_int64_t=long ;;
16381 esac
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16383 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16385 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16388 # Now we can use the above types
16390 if test "$ac_cv_type_uintptr_t" != yes; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16392 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16393 case $ac_cv_sizeof_void_p in
16394 2) acx_cv_type_intptr_t=int16_t ;;
16395 4) acx_cv_type_intptr_t=int32_t ;;
16396 8) acx_cv_type_intptr_t=int64_t ;;
16397 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16398 esac
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16400 $as_echo "$acx_cv_type_intptr_t" >&6; }
16403 # ----------------- done all checks, emit header -------------
16404 ac_config_commands="$ac_config_commands gstdint.h"
16409 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16410 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16414 _ACEOF
16418 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16419 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16421 cat >>confdefs.h <<_ACEOF
16422 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16423 _ACEOF
16427 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16428 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16430 cat >>confdefs.h <<_ACEOF
16431 #define HAVE_STRUCT_STAT_ST_RDEV 1
16432 _ACEOF
16438 # Check for library functions.
16442 for ac_func in $ac_func_list
16443 do :
16444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16446 eval as_val=\$$as_ac_var
16447 if test "x$as_val" = x""yes; then :
16448 cat >>confdefs.h <<_ACEOF
16449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16450 _ACEOF
16453 done
16559 # Check strerror_r, cannot be above as versions with two and three arguments exist
16561 ac_save_CFLAGS="$CFLAGS"
16562 CFLAGS="-Wimplicit-function-declaration -Werror"
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #define _GNU_SOURCE 1
16566 #include <string.h>
16567 #include <locale.h>
16569 main ()
16571 char s[128]; strerror_r(5, s, 128);
16573 return 0;
16575 _ACEOF
16576 if ac_fn_c_try_compile "$LINENO"; then :
16578 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 CFLAGS="$ac_save_CFLAGS"
16584 ac_save_CFLAGS="$CFLAGS"
16585 CFLAGS="-Wimplicit-function-declaration -Werror"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #define _GNU_SOURCE 1
16589 #include <string.h>
16590 #include <locale.h>
16592 main ()
16594 char s[128]; strerror_r(5, s);
16596 return 0;
16598 _ACEOF
16599 if ac_fn_c_try_compile "$LINENO"; then :
16601 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 CFLAGS="$ac_save_CFLAGS"
16608 # Check for C99 (and other IEEE) math functions
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16610 $as_echo_n "checking for sin in -lm... " >&6; }
16611 if test "${ac_cv_lib_m_sin+set}" = set; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 ac_check_lib_save_LIBS=$LIBS
16615 LIBS="-lm $LIBS"
16616 if test x$gcc_no_link = xyes; then
16617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16622 /* Override any GCC internal prototype to avoid an error.
16623 Use char because int might match the return type of a GCC
16624 builtin and then its argument prototype would still apply. */
16625 #ifdef __cplusplus
16626 extern "C"
16627 #endif
16628 char sin ();
16630 main ()
16632 return sin ();
16634 return 0;
16636 _ACEOF
16637 if ac_fn_c_try_link "$LINENO"; then :
16638 ac_cv_lib_m_sin=yes
16639 else
16640 ac_cv_lib_m_sin=no
16642 rm -f core conftest.err conftest.$ac_objext \
16643 conftest$ac_exeext conftest.$ac_ext
16644 LIBS=$ac_check_lib_save_LIBS
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16647 $as_echo "$ac_cv_lib_m_sin" >&6; }
16648 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_LIBM 1
16651 _ACEOF
16653 LIBS="-lm $LIBS"
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16664 $as_echo_n "checking for acosf... " >&6; }
16665 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 if test x$gcc_no_link = xyes; then
16669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16674 #ifdef HAVE_COMPLEX_H
16675 #include <complex.h>
16676 #endif
16677 #ifdef HAVE_MATH_H
16678 #include <math.h>
16679 #endif
16681 int (*ptr)() = (int (*)())acosf;
16684 main ()
16686 return 0;
16689 _ACEOF
16690 if ac_fn_c_try_link "$LINENO"; then :
16691 gcc_cv_math_func_acosf=yes
16692 else
16693 gcc_cv_math_func_acosf=no
16695 rm -f core conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16699 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16700 if test $gcc_cv_math_func_acosf = yes; then
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_ACOSF 1
16704 _ACEOF
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16712 $as_echo_n "checking for acos... " >&6; }
16713 if test "${gcc_cv_math_func_acos+set}" = set; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 if test x$gcc_no_link = xyes; then
16717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16722 #ifdef HAVE_COMPLEX_H
16723 #include <complex.h>
16724 #endif
16725 #ifdef HAVE_MATH_H
16726 #include <math.h>
16727 #endif
16729 int (*ptr)() = (int (*)())acos;
16732 main ()
16734 return 0;
16737 _ACEOF
16738 if ac_fn_c_try_link "$LINENO"; then :
16739 gcc_cv_math_func_acos=yes
16740 else
16741 gcc_cv_math_func_acos=no
16743 rm -f core conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16747 $as_echo "$gcc_cv_math_func_acos" >&6; }
16748 if test $gcc_cv_math_func_acos = yes; then
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_ACOS 1
16752 _ACEOF
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16760 $as_echo_n "checking for acosl... " >&6; }
16761 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 if test x$gcc_no_link = xyes; then
16765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16770 #ifdef HAVE_COMPLEX_H
16771 #include <complex.h>
16772 #endif
16773 #ifdef HAVE_MATH_H
16774 #include <math.h>
16775 #endif
16777 int (*ptr)() = (int (*)())acosl;
16780 main ()
16782 return 0;
16785 _ACEOF
16786 if ac_fn_c_try_link "$LINENO"; then :
16787 gcc_cv_math_func_acosl=yes
16788 else
16789 gcc_cv_math_func_acosl=no
16791 rm -f core conftest.err conftest.$ac_objext \
16792 conftest$ac_exeext conftest.$ac_ext
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16795 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16796 if test $gcc_cv_math_func_acosl = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define HAVE_ACOSL 1
16800 _ACEOF
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16808 $as_echo_n "checking for acoshf... " >&6; }
16809 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 if test x$gcc_no_link = xyes; then
16813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16818 #ifdef HAVE_COMPLEX_H
16819 #include <complex.h>
16820 #endif
16821 #ifdef HAVE_MATH_H
16822 #include <math.h>
16823 #endif
16825 int (*ptr)() = (int (*)())acoshf;
16828 main ()
16830 return 0;
16833 _ACEOF
16834 if ac_fn_c_try_link "$LINENO"; then :
16835 gcc_cv_math_func_acoshf=yes
16836 else
16837 gcc_cv_math_func_acoshf=no
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16843 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16844 if test $gcc_cv_math_func_acoshf = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_ACOSHF 1
16848 _ACEOF
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16856 $as_echo_n "checking for acosh... " >&6; }
16857 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 if test x$gcc_no_link = xyes; then
16861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16866 #ifdef HAVE_COMPLEX_H
16867 #include <complex.h>
16868 #endif
16869 #ifdef HAVE_MATH_H
16870 #include <math.h>
16871 #endif
16873 int (*ptr)() = (int (*)())acosh;
16876 main ()
16878 return 0;
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 gcc_cv_math_func_acosh=yes
16884 else
16885 gcc_cv_math_func_acosh=no
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16891 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16892 if test $gcc_cv_math_func_acosh = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895 #define HAVE_ACOSH 1
16896 _ACEOF
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16904 $as_echo_n "checking for acoshl... " >&6; }
16905 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 if test x$gcc_no_link = xyes; then
16909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16914 #ifdef HAVE_COMPLEX_H
16915 #include <complex.h>
16916 #endif
16917 #ifdef HAVE_MATH_H
16918 #include <math.h>
16919 #endif
16921 int (*ptr)() = (int (*)())acoshl;
16924 main ()
16926 return 0;
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 gcc_cv_math_func_acoshl=yes
16932 else
16933 gcc_cv_math_func_acoshl=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16939 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16940 if test $gcc_cv_math_func_acoshl = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_ACOSHL 1
16944 _ACEOF
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16952 $as_echo_n "checking for asinf... " >&6; }
16953 if test "${gcc_cv_math_func_asinf+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 if test x$gcc_no_link = xyes; then
16957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16962 #ifdef HAVE_COMPLEX_H
16963 #include <complex.h>
16964 #endif
16965 #ifdef HAVE_MATH_H
16966 #include <math.h>
16967 #endif
16969 int (*ptr)() = (int (*)())asinf;
16972 main ()
16974 return 0;
16977 _ACEOF
16978 if ac_fn_c_try_link "$LINENO"; then :
16979 gcc_cv_math_func_asinf=yes
16980 else
16981 gcc_cv_math_func_asinf=no
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
16987 $as_echo "$gcc_cv_math_func_asinf" >&6; }
16988 if test $gcc_cv_math_func_asinf = yes; then
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_ASINF 1
16992 _ACEOF
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17000 $as_echo_n "checking for asin... " >&6; }
17001 if test "${gcc_cv_math_func_asin+set}" = set; then :
17002 $as_echo_n "(cached) " >&6
17003 else
17004 if test x$gcc_no_link = xyes; then
17005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17010 #ifdef HAVE_COMPLEX_H
17011 #include <complex.h>
17012 #endif
17013 #ifdef HAVE_MATH_H
17014 #include <math.h>
17015 #endif
17017 int (*ptr)() = (int (*)())asin;
17020 main ()
17022 return 0;
17025 _ACEOF
17026 if ac_fn_c_try_link "$LINENO"; then :
17027 gcc_cv_math_func_asin=yes
17028 else
17029 gcc_cv_math_func_asin=no
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17035 $as_echo "$gcc_cv_math_func_asin" >&6; }
17036 if test $gcc_cv_math_func_asin = yes; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define HAVE_ASIN 1
17040 _ACEOF
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17048 $as_echo_n "checking for asinl... " >&6; }
17049 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 if test x$gcc_no_link = xyes; then
17053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056 /* end confdefs.h. */
17058 #ifdef HAVE_COMPLEX_H
17059 #include <complex.h>
17060 #endif
17061 #ifdef HAVE_MATH_H
17062 #include <math.h>
17063 #endif
17065 int (*ptr)() = (int (*)())asinl;
17068 main ()
17070 return 0;
17073 _ACEOF
17074 if ac_fn_c_try_link "$LINENO"; then :
17075 gcc_cv_math_func_asinl=yes
17076 else
17077 gcc_cv_math_func_asinl=no
17079 rm -f core conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17083 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17084 if test $gcc_cv_math_func_asinl = yes; then
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_ASINL 1
17088 _ACEOF
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17096 $as_echo_n "checking for asinhf... " >&6; }
17097 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 if test x$gcc_no_link = xyes; then
17101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17106 #ifdef HAVE_COMPLEX_H
17107 #include <complex.h>
17108 #endif
17109 #ifdef HAVE_MATH_H
17110 #include <math.h>
17111 #endif
17113 int (*ptr)() = (int (*)())asinhf;
17116 main ()
17118 return 0;
17121 _ACEOF
17122 if ac_fn_c_try_link "$LINENO"; then :
17123 gcc_cv_math_func_asinhf=yes
17124 else
17125 gcc_cv_math_func_asinhf=no
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17131 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17132 if test $gcc_cv_math_func_asinhf = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_ASINHF 1
17136 _ACEOF
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17144 $as_echo_n "checking for asinh... " >&6; }
17145 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 if test x$gcc_no_link = xyes; then
17149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17154 #ifdef HAVE_COMPLEX_H
17155 #include <complex.h>
17156 #endif
17157 #ifdef HAVE_MATH_H
17158 #include <math.h>
17159 #endif
17161 int (*ptr)() = (int (*)())asinh;
17164 main ()
17166 return 0;
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 gcc_cv_math_func_asinh=yes
17172 else
17173 gcc_cv_math_func_asinh=no
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17179 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17180 if test $gcc_cv_math_func_asinh = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_ASINH 1
17184 _ACEOF
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17192 $as_echo_n "checking for asinhl... " >&6; }
17193 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 if test x$gcc_no_link = xyes; then
17197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17202 #ifdef HAVE_COMPLEX_H
17203 #include <complex.h>
17204 #endif
17205 #ifdef HAVE_MATH_H
17206 #include <math.h>
17207 #endif
17209 int (*ptr)() = (int (*)())asinhl;
17212 main ()
17214 return 0;
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 gcc_cv_math_func_asinhl=yes
17220 else
17221 gcc_cv_math_func_asinhl=no
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17227 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17228 if test $gcc_cv_math_func_asinhl = yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define HAVE_ASINHL 1
17232 _ACEOF
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17240 $as_echo_n "checking for atan2f... " >&6; }
17241 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 if test x$gcc_no_link = xyes; then
17245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 #ifdef HAVE_COMPLEX_H
17251 #include <complex.h>
17252 #endif
17253 #ifdef HAVE_MATH_H
17254 #include <math.h>
17255 #endif
17257 int (*ptr)() = (int (*)())atan2f;
17260 main ()
17262 return 0;
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 gcc_cv_math_func_atan2f=yes
17268 else
17269 gcc_cv_math_func_atan2f=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17275 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17276 if test $gcc_cv_math_func_atan2f = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define HAVE_ATAN2F 1
17280 _ACEOF
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17288 $as_echo_n "checking for atan2... " >&6; }
17289 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 if test x$gcc_no_link = xyes; then
17293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17298 #ifdef HAVE_COMPLEX_H
17299 #include <complex.h>
17300 #endif
17301 #ifdef HAVE_MATH_H
17302 #include <math.h>
17303 #endif
17305 int (*ptr)() = (int (*)())atan2;
17308 main ()
17310 return 0;
17313 _ACEOF
17314 if ac_fn_c_try_link "$LINENO"; then :
17315 gcc_cv_math_func_atan2=yes
17316 else
17317 gcc_cv_math_func_atan2=no
17319 rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17323 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17324 if test $gcc_cv_math_func_atan2 = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_ATAN2 1
17328 _ACEOF
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17336 $as_echo_n "checking for atan2l... " >&6; }
17337 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17338 $as_echo_n "(cached) " >&6
17339 else
17340 if test x$gcc_no_link = xyes; then
17341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 #ifdef HAVE_COMPLEX_H
17347 #include <complex.h>
17348 #endif
17349 #ifdef HAVE_MATH_H
17350 #include <math.h>
17351 #endif
17353 int (*ptr)() = (int (*)())atan2l;
17356 main ()
17358 return 0;
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 gcc_cv_math_func_atan2l=yes
17364 else
17365 gcc_cv_math_func_atan2l=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17371 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17372 if test $gcc_cv_math_func_atan2l = yes; then
17374 cat >>confdefs.h <<_ACEOF
17375 #define HAVE_ATAN2L 1
17376 _ACEOF
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17384 $as_echo_n "checking for atanf... " >&6; }
17385 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 if test x$gcc_no_link = xyes; then
17389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17394 #ifdef HAVE_COMPLEX_H
17395 #include <complex.h>
17396 #endif
17397 #ifdef HAVE_MATH_H
17398 #include <math.h>
17399 #endif
17401 int (*ptr)() = (int (*)())atanf;
17404 main ()
17406 return 0;
17409 _ACEOF
17410 if ac_fn_c_try_link "$LINENO"; then :
17411 gcc_cv_math_func_atanf=yes
17412 else
17413 gcc_cv_math_func_atanf=no
17415 rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17419 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17420 if test $gcc_cv_math_func_atanf = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define HAVE_ATANF 1
17424 _ACEOF
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17432 $as_echo_n "checking for atan... " >&6; }
17433 if test "${gcc_cv_math_func_atan+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 if test x$gcc_no_link = xyes; then
17437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17442 #ifdef HAVE_COMPLEX_H
17443 #include <complex.h>
17444 #endif
17445 #ifdef HAVE_MATH_H
17446 #include <math.h>
17447 #endif
17449 int (*ptr)() = (int (*)())atan;
17452 main ()
17454 return 0;
17457 _ACEOF
17458 if ac_fn_c_try_link "$LINENO"; then :
17459 gcc_cv_math_func_atan=yes
17460 else
17461 gcc_cv_math_func_atan=no
17463 rm -f core conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17467 $as_echo "$gcc_cv_math_func_atan" >&6; }
17468 if test $gcc_cv_math_func_atan = yes; then
17470 cat >>confdefs.h <<_ACEOF
17471 #define HAVE_ATAN 1
17472 _ACEOF
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17480 $as_echo_n "checking for atanl... " >&6; }
17481 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 if test x$gcc_no_link = xyes; then
17485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17490 #ifdef HAVE_COMPLEX_H
17491 #include <complex.h>
17492 #endif
17493 #ifdef HAVE_MATH_H
17494 #include <math.h>
17495 #endif
17497 int (*ptr)() = (int (*)())atanl;
17500 main ()
17502 return 0;
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 gcc_cv_math_func_atanl=yes
17508 else
17509 gcc_cv_math_func_atanl=no
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17515 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17516 if test $gcc_cv_math_func_atanl = yes; then
17518 cat >>confdefs.h <<_ACEOF
17519 #define HAVE_ATANL 1
17520 _ACEOF
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17528 $as_echo_n "checking for atanhf... " >&6; }
17529 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 if test x$gcc_no_link = xyes; then
17533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536 /* end confdefs.h. */
17538 #ifdef HAVE_COMPLEX_H
17539 #include <complex.h>
17540 #endif
17541 #ifdef HAVE_MATH_H
17542 #include <math.h>
17543 #endif
17545 int (*ptr)() = (int (*)())atanhf;
17548 main ()
17550 return 0;
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 gcc_cv_math_func_atanhf=yes
17556 else
17557 gcc_cv_math_func_atanhf=no
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17563 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17564 if test $gcc_cv_math_func_atanhf = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define HAVE_ATANHF 1
17568 _ACEOF
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17576 $as_echo_n "checking for atanh... " >&6; }
17577 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 if test x$gcc_no_link = xyes; then
17581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17586 #ifdef HAVE_COMPLEX_H
17587 #include <complex.h>
17588 #endif
17589 #ifdef HAVE_MATH_H
17590 #include <math.h>
17591 #endif
17593 int (*ptr)() = (int (*)())atanh;
17596 main ()
17598 return 0;
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 gcc_cv_math_func_atanh=yes
17604 else
17605 gcc_cv_math_func_atanh=no
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17611 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17612 if test $gcc_cv_math_func_atanh = yes; then
17614 cat >>confdefs.h <<_ACEOF
17615 #define HAVE_ATANH 1
17616 _ACEOF
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17624 $as_echo_n "checking for atanhl... " >&6; }
17625 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 if test x$gcc_no_link = xyes; then
17629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17634 #ifdef HAVE_COMPLEX_H
17635 #include <complex.h>
17636 #endif
17637 #ifdef HAVE_MATH_H
17638 #include <math.h>
17639 #endif
17641 int (*ptr)() = (int (*)())atanhl;
17644 main ()
17646 return 0;
17649 _ACEOF
17650 if ac_fn_c_try_link "$LINENO"; then :
17651 gcc_cv_math_func_atanhl=yes
17652 else
17653 gcc_cv_math_func_atanhl=no
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17659 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17660 if test $gcc_cv_math_func_atanhl = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define HAVE_ATANHL 1
17664 _ACEOF
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17672 $as_echo_n "checking for cargf... " >&6; }
17673 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676 if test x$gcc_no_link = xyes; then
17677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17682 #ifdef HAVE_COMPLEX_H
17683 #include <complex.h>
17684 #endif
17685 #ifdef HAVE_MATH_H
17686 #include <math.h>
17687 #endif
17689 int (*ptr)() = (int (*)())cargf;
17692 main ()
17694 return 0;
17697 _ACEOF
17698 if ac_fn_c_try_link "$LINENO"; then :
17699 gcc_cv_math_func_cargf=yes
17700 else
17701 gcc_cv_math_func_cargf=no
17703 rm -f core conftest.err conftest.$ac_objext \
17704 conftest$ac_exeext conftest.$ac_ext
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17707 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17708 if test $gcc_cv_math_func_cargf = yes; then
17710 cat >>confdefs.h <<_ACEOF
17711 #define HAVE_CARGF 1
17712 _ACEOF
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17720 $as_echo_n "checking for carg... " >&6; }
17721 if test "${gcc_cv_math_func_carg+set}" = set; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 if test x$gcc_no_link = xyes; then
17725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17730 #ifdef HAVE_COMPLEX_H
17731 #include <complex.h>
17732 #endif
17733 #ifdef HAVE_MATH_H
17734 #include <math.h>
17735 #endif
17737 int (*ptr)() = (int (*)())carg;
17740 main ()
17742 return 0;
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"; then :
17747 gcc_cv_math_func_carg=yes
17748 else
17749 gcc_cv_math_func_carg=no
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17755 $as_echo "$gcc_cv_math_func_carg" >&6; }
17756 if test $gcc_cv_math_func_carg = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define HAVE_CARG 1
17760 _ACEOF
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17768 $as_echo_n "checking for cargl... " >&6; }
17769 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 if test x$gcc_no_link = xyes; then
17773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17778 #ifdef HAVE_COMPLEX_H
17779 #include <complex.h>
17780 #endif
17781 #ifdef HAVE_MATH_H
17782 #include <math.h>
17783 #endif
17785 int (*ptr)() = (int (*)())cargl;
17788 main ()
17790 return 0;
17793 _ACEOF
17794 if ac_fn_c_try_link "$LINENO"; then :
17795 gcc_cv_math_func_cargl=yes
17796 else
17797 gcc_cv_math_func_cargl=no
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17803 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17804 if test $gcc_cv_math_func_cargl = yes; then
17806 cat >>confdefs.h <<_ACEOF
17807 #define HAVE_CARGL 1
17808 _ACEOF
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17816 $as_echo_n "checking for ceilf... " >&6; }
17817 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17819 else
17820 if test x$gcc_no_link = xyes; then
17821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17826 #ifdef HAVE_COMPLEX_H
17827 #include <complex.h>
17828 #endif
17829 #ifdef HAVE_MATH_H
17830 #include <math.h>
17831 #endif
17833 int (*ptr)() = (int (*)())ceilf;
17836 main ()
17838 return 0;
17841 _ACEOF
17842 if ac_fn_c_try_link "$LINENO"; then :
17843 gcc_cv_math_func_ceilf=yes
17844 else
17845 gcc_cv_math_func_ceilf=no
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17851 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17852 if test $gcc_cv_math_func_ceilf = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_CEILF 1
17856 _ACEOF
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17864 $as_echo_n "checking for ceil... " >&6; }
17865 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 if test x$gcc_no_link = xyes; then
17869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17874 #ifdef HAVE_COMPLEX_H
17875 #include <complex.h>
17876 #endif
17877 #ifdef HAVE_MATH_H
17878 #include <math.h>
17879 #endif
17881 int (*ptr)() = (int (*)())ceil;
17884 main ()
17886 return 0;
17889 _ACEOF
17890 if ac_fn_c_try_link "$LINENO"; then :
17891 gcc_cv_math_func_ceil=yes
17892 else
17893 gcc_cv_math_func_ceil=no
17895 rm -f core conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17899 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17900 if test $gcc_cv_math_func_ceil = yes; then
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_CEIL 1
17904 _ACEOF
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17912 $as_echo_n "checking for ceill... " >&6; }
17913 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 if test x$gcc_no_link = xyes; then
17917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17922 #ifdef HAVE_COMPLEX_H
17923 #include <complex.h>
17924 #endif
17925 #ifdef HAVE_MATH_H
17926 #include <math.h>
17927 #endif
17929 int (*ptr)() = (int (*)())ceill;
17932 main ()
17934 return 0;
17937 _ACEOF
17938 if ac_fn_c_try_link "$LINENO"; then :
17939 gcc_cv_math_func_ceill=yes
17940 else
17941 gcc_cv_math_func_ceill=no
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17947 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17948 if test $gcc_cv_math_func_ceill = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define HAVE_CEILL 1
17952 _ACEOF
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17960 $as_echo_n "checking for copysignf... " >&6; }
17961 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 if test x$gcc_no_link = xyes; then
17965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17970 #ifdef HAVE_COMPLEX_H
17971 #include <complex.h>
17972 #endif
17973 #ifdef HAVE_MATH_H
17974 #include <math.h>
17975 #endif
17977 int (*ptr)() = (int (*)())copysignf;
17980 main ()
17982 return 0;
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"; then :
17987 gcc_cv_math_func_copysignf=yes
17988 else
17989 gcc_cv_math_func_copysignf=no
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
17995 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
17996 if test $gcc_cv_math_func_copysignf = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_COPYSIGNF 1
18000 _ACEOF
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18008 $as_echo_n "checking for copysign... " >&6; }
18009 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 if test x$gcc_no_link = xyes; then
18013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18018 #ifdef HAVE_COMPLEX_H
18019 #include <complex.h>
18020 #endif
18021 #ifdef HAVE_MATH_H
18022 #include <math.h>
18023 #endif
18025 int (*ptr)() = (int (*)())copysign;
18028 main ()
18030 return 0;
18033 _ACEOF
18034 if ac_fn_c_try_link "$LINENO"; then :
18035 gcc_cv_math_func_copysign=yes
18036 else
18037 gcc_cv_math_func_copysign=no
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18043 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18044 if test $gcc_cv_math_func_copysign = yes; then
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_COPYSIGN 1
18048 _ACEOF
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18056 $as_echo_n "checking for copysignl... " >&6; }
18057 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060 if test x$gcc_no_link = xyes; then
18061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18066 #ifdef HAVE_COMPLEX_H
18067 #include <complex.h>
18068 #endif
18069 #ifdef HAVE_MATH_H
18070 #include <math.h>
18071 #endif
18073 int (*ptr)() = (int (*)())copysignl;
18076 main ()
18078 return 0;
18081 _ACEOF
18082 if ac_fn_c_try_link "$LINENO"; then :
18083 gcc_cv_math_func_copysignl=yes
18084 else
18085 gcc_cv_math_func_copysignl=no
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18091 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18092 if test $gcc_cv_math_func_copysignl = yes; then
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_COPYSIGNL 1
18096 _ACEOF
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18104 $as_echo_n "checking for cosf... " >&6; }
18105 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108 if test x$gcc_no_link = xyes; then
18109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18114 #ifdef HAVE_COMPLEX_H
18115 #include <complex.h>
18116 #endif
18117 #ifdef HAVE_MATH_H
18118 #include <math.h>
18119 #endif
18121 int (*ptr)() = (int (*)())cosf;
18124 main ()
18126 return 0;
18129 _ACEOF
18130 if ac_fn_c_try_link "$LINENO"; then :
18131 gcc_cv_math_func_cosf=yes
18132 else
18133 gcc_cv_math_func_cosf=no
18135 rm -f core conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18139 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18140 if test $gcc_cv_math_func_cosf = yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_COSF 1
18144 _ACEOF
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18152 $as_echo_n "checking for cos... " >&6; }
18153 if test "${gcc_cv_math_func_cos+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 if test x$gcc_no_link = xyes; then
18157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18162 #ifdef HAVE_COMPLEX_H
18163 #include <complex.h>
18164 #endif
18165 #ifdef HAVE_MATH_H
18166 #include <math.h>
18167 #endif
18169 int (*ptr)() = (int (*)())cos;
18172 main ()
18174 return 0;
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18179 gcc_cv_math_func_cos=yes
18180 else
18181 gcc_cv_math_func_cos=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18187 $as_echo "$gcc_cv_math_func_cos" >&6; }
18188 if test $gcc_cv_math_func_cos = yes; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_COS 1
18192 _ACEOF
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18200 $as_echo_n "checking for cosl... " >&6; }
18201 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18202 $as_echo_n "(cached) " >&6
18203 else
18204 if test x$gcc_no_link = xyes; then
18205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18210 #ifdef HAVE_COMPLEX_H
18211 #include <complex.h>
18212 #endif
18213 #ifdef HAVE_MATH_H
18214 #include <math.h>
18215 #endif
18217 int (*ptr)() = (int (*)())cosl;
18220 main ()
18222 return 0;
18225 _ACEOF
18226 if ac_fn_c_try_link "$LINENO"; then :
18227 gcc_cv_math_func_cosl=yes
18228 else
18229 gcc_cv_math_func_cosl=no
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18235 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18236 if test $gcc_cv_math_func_cosl = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define HAVE_COSL 1
18240 _ACEOF
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18248 $as_echo_n "checking for ccosf... " >&6; }
18249 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 if test x$gcc_no_link = xyes; then
18253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18258 #ifdef HAVE_COMPLEX_H
18259 #include <complex.h>
18260 #endif
18261 #ifdef HAVE_MATH_H
18262 #include <math.h>
18263 #endif
18265 int (*ptr)() = (int (*)())ccosf;
18268 main ()
18270 return 0;
18273 _ACEOF
18274 if ac_fn_c_try_link "$LINENO"; then :
18275 gcc_cv_math_func_ccosf=yes
18276 else
18277 gcc_cv_math_func_ccosf=no
18279 rm -f core conftest.err conftest.$ac_objext \
18280 conftest$ac_exeext conftest.$ac_ext
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18283 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18284 if test $gcc_cv_math_func_ccosf = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define HAVE_CCOSF 1
18288 _ACEOF
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18296 $as_echo_n "checking for ccos... " >&6; }
18297 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 if test x$gcc_no_link = xyes; then
18301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h. */
18306 #ifdef HAVE_COMPLEX_H
18307 #include <complex.h>
18308 #endif
18309 #ifdef HAVE_MATH_H
18310 #include <math.h>
18311 #endif
18313 int (*ptr)() = (int (*)())ccos;
18316 main ()
18318 return 0;
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323 gcc_cv_math_func_ccos=yes
18324 else
18325 gcc_cv_math_func_ccos=no
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18331 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18332 if test $gcc_cv_math_func_ccos = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_CCOS 1
18336 _ACEOF
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18344 $as_echo_n "checking for ccosl... " >&6; }
18345 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 if test x$gcc_no_link = xyes; then
18349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18354 #ifdef HAVE_COMPLEX_H
18355 #include <complex.h>
18356 #endif
18357 #ifdef HAVE_MATH_H
18358 #include <math.h>
18359 #endif
18361 int (*ptr)() = (int (*)())ccosl;
18364 main ()
18366 return 0;
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18371 gcc_cv_math_func_ccosl=yes
18372 else
18373 gcc_cv_math_func_ccosl=no
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18379 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18380 if test $gcc_cv_math_func_ccosl = yes; then
18382 cat >>confdefs.h <<_ACEOF
18383 #define HAVE_CCOSL 1
18384 _ACEOF
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18392 $as_echo_n "checking for coshf... " >&6; }
18393 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18394 $as_echo_n "(cached) " >&6
18395 else
18396 if test x$gcc_no_link = xyes; then
18397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18402 #ifdef HAVE_COMPLEX_H
18403 #include <complex.h>
18404 #endif
18405 #ifdef HAVE_MATH_H
18406 #include <math.h>
18407 #endif
18409 int (*ptr)() = (int (*)())coshf;
18412 main ()
18414 return 0;
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 gcc_cv_math_func_coshf=yes
18420 else
18421 gcc_cv_math_func_coshf=no
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18427 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18428 if test $gcc_cv_math_func_coshf = yes; then
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_COSHF 1
18432 _ACEOF
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18440 $as_echo_n "checking for cosh... " >&6; }
18441 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 if test x$gcc_no_link = xyes; then
18445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18450 #ifdef HAVE_COMPLEX_H
18451 #include <complex.h>
18452 #endif
18453 #ifdef HAVE_MATH_H
18454 #include <math.h>
18455 #endif
18457 int (*ptr)() = (int (*)())cosh;
18460 main ()
18462 return 0;
18465 _ACEOF
18466 if ac_fn_c_try_link "$LINENO"; then :
18467 gcc_cv_math_func_cosh=yes
18468 else
18469 gcc_cv_math_func_cosh=no
18471 rm -f core conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18475 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18476 if test $gcc_cv_math_func_cosh = yes; then
18478 cat >>confdefs.h <<_ACEOF
18479 #define HAVE_COSH 1
18480 _ACEOF
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18488 $as_echo_n "checking for coshl... " >&6; }
18489 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 if test x$gcc_no_link = xyes; then
18493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 #ifdef HAVE_COMPLEX_H
18499 #include <complex.h>
18500 #endif
18501 #ifdef HAVE_MATH_H
18502 #include <math.h>
18503 #endif
18505 int (*ptr)() = (int (*)())coshl;
18508 main ()
18510 return 0;
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 gcc_cv_math_func_coshl=yes
18516 else
18517 gcc_cv_math_func_coshl=no
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18523 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18524 if test $gcc_cv_math_func_coshl = yes; then
18526 cat >>confdefs.h <<_ACEOF
18527 #define HAVE_COSHL 1
18528 _ACEOF
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18536 $as_echo_n "checking for ccoshf... " >&6; }
18537 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 if test x$gcc_no_link = xyes; then
18541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18546 #ifdef HAVE_COMPLEX_H
18547 #include <complex.h>
18548 #endif
18549 #ifdef HAVE_MATH_H
18550 #include <math.h>
18551 #endif
18553 int (*ptr)() = (int (*)())ccoshf;
18556 main ()
18558 return 0;
18561 _ACEOF
18562 if ac_fn_c_try_link "$LINENO"; then :
18563 gcc_cv_math_func_ccoshf=yes
18564 else
18565 gcc_cv_math_func_ccoshf=no
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18571 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18572 if test $gcc_cv_math_func_ccoshf = yes; then
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_CCOSHF 1
18576 _ACEOF
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18584 $as_echo_n "checking for ccosh... " >&6; }
18585 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18586 $as_echo_n "(cached) " >&6
18587 else
18588 if test x$gcc_no_link = xyes; then
18589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18594 #ifdef HAVE_COMPLEX_H
18595 #include <complex.h>
18596 #endif
18597 #ifdef HAVE_MATH_H
18598 #include <math.h>
18599 #endif
18601 int (*ptr)() = (int (*)())ccosh;
18604 main ()
18606 return 0;
18609 _ACEOF
18610 if ac_fn_c_try_link "$LINENO"; then :
18611 gcc_cv_math_func_ccosh=yes
18612 else
18613 gcc_cv_math_func_ccosh=no
18615 rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18619 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18620 if test $gcc_cv_math_func_ccosh = yes; then
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_CCOSH 1
18624 _ACEOF
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18632 $as_echo_n "checking for ccoshl... " >&6; }
18633 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18634 $as_echo_n "(cached) " >&6
18635 else
18636 if test x$gcc_no_link = xyes; then
18637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18642 #ifdef HAVE_COMPLEX_H
18643 #include <complex.h>
18644 #endif
18645 #ifdef HAVE_MATH_H
18646 #include <math.h>
18647 #endif
18649 int (*ptr)() = (int (*)())ccoshl;
18652 main ()
18654 return 0;
18657 _ACEOF
18658 if ac_fn_c_try_link "$LINENO"; then :
18659 gcc_cv_math_func_ccoshl=yes
18660 else
18661 gcc_cv_math_func_ccoshl=no
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18667 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18668 if test $gcc_cv_math_func_ccoshl = yes; then
18670 cat >>confdefs.h <<_ACEOF
18671 #define HAVE_CCOSHL 1
18672 _ACEOF
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18680 $as_echo_n "checking for expf... " >&6; }
18681 if test "${gcc_cv_math_func_expf+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18683 else
18684 if test x$gcc_no_link = xyes; then
18685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18690 #ifdef HAVE_COMPLEX_H
18691 #include <complex.h>
18692 #endif
18693 #ifdef HAVE_MATH_H
18694 #include <math.h>
18695 #endif
18697 int (*ptr)() = (int (*)())expf;
18700 main ()
18702 return 0;
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"; then :
18707 gcc_cv_math_func_expf=yes
18708 else
18709 gcc_cv_math_func_expf=no
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18715 $as_echo "$gcc_cv_math_func_expf" >&6; }
18716 if test $gcc_cv_math_func_expf = yes; then
18718 cat >>confdefs.h <<_ACEOF
18719 #define HAVE_EXPF 1
18720 _ACEOF
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18728 $as_echo_n "checking for exp... " >&6; }
18729 if test "${gcc_cv_math_func_exp+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18731 else
18732 if test x$gcc_no_link = xyes; then
18733 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18738 #ifdef HAVE_COMPLEX_H
18739 #include <complex.h>
18740 #endif
18741 #ifdef HAVE_MATH_H
18742 #include <math.h>
18743 #endif
18745 int (*ptr)() = (int (*)())exp;
18748 main ()
18750 return 0;
18753 _ACEOF
18754 if ac_fn_c_try_link "$LINENO"; then :
18755 gcc_cv_math_func_exp=yes
18756 else
18757 gcc_cv_math_func_exp=no
18759 rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18763 $as_echo "$gcc_cv_math_func_exp" >&6; }
18764 if test $gcc_cv_math_func_exp = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_EXP 1
18768 _ACEOF
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18776 $as_echo_n "checking for expl... " >&6; }
18777 if test "${gcc_cv_math_func_expl+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18779 else
18780 if test x$gcc_no_link = xyes; then
18781 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18786 #ifdef HAVE_COMPLEX_H
18787 #include <complex.h>
18788 #endif
18789 #ifdef HAVE_MATH_H
18790 #include <math.h>
18791 #endif
18793 int (*ptr)() = (int (*)())expl;
18796 main ()
18798 return 0;
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 gcc_cv_math_func_expl=yes
18804 else
18805 gcc_cv_math_func_expl=no
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18811 $as_echo "$gcc_cv_math_func_expl" >&6; }
18812 if test $gcc_cv_math_func_expl = yes; then
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_EXPL 1
18816 _ACEOF
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18824 $as_echo_n "checking for cexpf... " >&6; }
18825 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18826 $as_echo_n "(cached) " >&6
18827 else
18828 if test x$gcc_no_link = xyes; then
18829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18834 #ifdef HAVE_COMPLEX_H
18835 #include <complex.h>
18836 #endif
18837 #ifdef HAVE_MATH_H
18838 #include <math.h>
18839 #endif
18841 int (*ptr)() = (int (*)())cexpf;
18844 main ()
18846 return 0;
18849 _ACEOF
18850 if ac_fn_c_try_link "$LINENO"; then :
18851 gcc_cv_math_func_cexpf=yes
18852 else
18853 gcc_cv_math_func_cexpf=no
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18859 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18860 if test $gcc_cv_math_func_cexpf = yes; then
18862 cat >>confdefs.h <<_ACEOF
18863 #define HAVE_CEXPF 1
18864 _ACEOF
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18872 $as_echo_n "checking for cexp... " >&6; }
18873 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18874 $as_echo_n "(cached) " >&6
18875 else
18876 if test x$gcc_no_link = xyes; then
18877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18882 #ifdef HAVE_COMPLEX_H
18883 #include <complex.h>
18884 #endif
18885 #ifdef HAVE_MATH_H
18886 #include <math.h>
18887 #endif
18889 int (*ptr)() = (int (*)())cexp;
18892 main ()
18894 return 0;
18897 _ACEOF
18898 if ac_fn_c_try_link "$LINENO"; then :
18899 gcc_cv_math_func_cexp=yes
18900 else
18901 gcc_cv_math_func_cexp=no
18903 rm -f core conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18907 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18908 if test $gcc_cv_math_func_cexp = yes; then
18910 cat >>confdefs.h <<_ACEOF
18911 #define HAVE_CEXP 1
18912 _ACEOF
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18920 $as_echo_n "checking for cexpl... " >&6; }
18921 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18922 $as_echo_n "(cached) " >&6
18923 else
18924 if test x$gcc_no_link = xyes; then
18925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18930 #ifdef HAVE_COMPLEX_H
18931 #include <complex.h>
18932 #endif
18933 #ifdef HAVE_MATH_H
18934 #include <math.h>
18935 #endif
18937 int (*ptr)() = (int (*)())cexpl;
18940 main ()
18942 return 0;
18945 _ACEOF
18946 if ac_fn_c_try_link "$LINENO"; then :
18947 gcc_cv_math_func_cexpl=yes
18948 else
18949 gcc_cv_math_func_cexpl=no
18951 rm -f core conftest.err conftest.$ac_objext \
18952 conftest$ac_exeext conftest.$ac_ext
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18955 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
18956 if test $gcc_cv_math_func_cexpl = yes; then
18958 cat >>confdefs.h <<_ACEOF
18959 #define HAVE_CEXPL 1
18960 _ACEOF
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18968 $as_echo_n "checking for fabsf... " >&6; }
18969 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
18970 $as_echo_n "(cached) " >&6
18971 else
18972 if test x$gcc_no_link = xyes; then
18973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18978 #ifdef HAVE_COMPLEX_H
18979 #include <complex.h>
18980 #endif
18981 #ifdef HAVE_MATH_H
18982 #include <math.h>
18983 #endif
18985 int (*ptr)() = (int (*)())fabsf;
18988 main ()
18990 return 0;
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"; then :
18995 gcc_cv_math_func_fabsf=yes
18996 else
18997 gcc_cv_math_func_fabsf=no
18999 rm -f core conftest.err conftest.$ac_objext \
19000 conftest$ac_exeext conftest.$ac_ext
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19003 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19004 if test $gcc_cv_math_func_fabsf = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_FABSF 1
19008 _ACEOF
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19016 $as_echo_n "checking for fabs... " >&6; }
19017 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19020 if test x$gcc_no_link = xyes; then
19021 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 #ifdef HAVE_COMPLEX_H
19027 #include <complex.h>
19028 #endif
19029 #ifdef HAVE_MATH_H
19030 #include <math.h>
19031 #endif
19033 int (*ptr)() = (int (*)())fabs;
19036 main ()
19038 return 0;
19041 _ACEOF
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 gcc_cv_math_func_fabs=yes
19044 else
19045 gcc_cv_math_func_fabs=no
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19051 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19052 if test $gcc_cv_math_func_fabs = yes; then
19054 cat >>confdefs.h <<_ACEOF
19055 #define HAVE_FABS 1
19056 _ACEOF
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19064 $as_echo_n "checking for fabsl... " >&6; }
19065 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 if test x$gcc_no_link = xyes; then
19069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19074 #ifdef HAVE_COMPLEX_H
19075 #include <complex.h>
19076 #endif
19077 #ifdef HAVE_MATH_H
19078 #include <math.h>
19079 #endif
19081 int (*ptr)() = (int (*)())fabsl;
19084 main ()
19086 return 0;
19089 _ACEOF
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 gcc_cv_math_func_fabsl=yes
19092 else
19093 gcc_cv_math_func_fabsl=no
19095 rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19099 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19100 if test $gcc_cv_math_func_fabsl = yes; then
19102 cat >>confdefs.h <<_ACEOF
19103 #define HAVE_FABSL 1
19104 _ACEOF
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19112 $as_echo_n "checking for cabsf... " >&6; }
19113 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test x$gcc_no_link = xyes; then
19117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h. */
19122 #ifdef HAVE_COMPLEX_H
19123 #include <complex.h>
19124 #endif
19125 #ifdef HAVE_MATH_H
19126 #include <math.h>
19127 #endif
19129 int (*ptr)() = (int (*)())cabsf;
19132 main ()
19134 return 0;
19137 _ACEOF
19138 if ac_fn_c_try_link "$LINENO"; then :
19139 gcc_cv_math_func_cabsf=yes
19140 else
19141 gcc_cv_math_func_cabsf=no
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19147 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19148 if test $gcc_cv_math_func_cabsf = yes; then
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_CABSF 1
19152 _ACEOF
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19160 $as_echo_n "checking for cabs... " >&6; }
19161 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19162 $as_echo_n "(cached) " >&6
19163 else
19164 if test x$gcc_no_link = xyes; then
19165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19170 #ifdef HAVE_COMPLEX_H
19171 #include <complex.h>
19172 #endif
19173 #ifdef HAVE_MATH_H
19174 #include <math.h>
19175 #endif
19177 int (*ptr)() = (int (*)())cabs;
19180 main ()
19182 return 0;
19185 _ACEOF
19186 if ac_fn_c_try_link "$LINENO"; then :
19187 gcc_cv_math_func_cabs=yes
19188 else
19189 gcc_cv_math_func_cabs=no
19191 rm -f core conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19195 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19196 if test $gcc_cv_math_func_cabs = yes; then
19198 cat >>confdefs.h <<_ACEOF
19199 #define HAVE_CABS 1
19200 _ACEOF
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19208 $as_echo_n "checking for cabsl... " >&6; }
19209 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 if test x$gcc_no_link = xyes; then
19213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19218 #ifdef HAVE_COMPLEX_H
19219 #include <complex.h>
19220 #endif
19221 #ifdef HAVE_MATH_H
19222 #include <math.h>
19223 #endif
19225 int (*ptr)() = (int (*)())cabsl;
19228 main ()
19230 return 0;
19233 _ACEOF
19234 if ac_fn_c_try_link "$LINENO"; then :
19235 gcc_cv_math_func_cabsl=yes
19236 else
19237 gcc_cv_math_func_cabsl=no
19239 rm -f core conftest.err conftest.$ac_objext \
19240 conftest$ac_exeext conftest.$ac_ext
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19243 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19244 if test $gcc_cv_math_func_cabsl = yes; then
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_CABSL 1
19248 _ACEOF
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19256 $as_echo_n "checking for floorf... " >&6; }
19257 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 if test x$gcc_no_link = xyes; then
19261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19264 /* end confdefs.h. */
19266 #ifdef HAVE_COMPLEX_H
19267 #include <complex.h>
19268 #endif
19269 #ifdef HAVE_MATH_H
19270 #include <math.h>
19271 #endif
19273 int (*ptr)() = (int (*)())floorf;
19276 main ()
19278 return 0;
19281 _ACEOF
19282 if ac_fn_c_try_link "$LINENO"; then :
19283 gcc_cv_math_func_floorf=yes
19284 else
19285 gcc_cv_math_func_floorf=no
19287 rm -f core conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19291 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19292 if test $gcc_cv_math_func_floorf = yes; then
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_FLOORF 1
19296 _ACEOF
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19304 $as_echo_n "checking for floor... " >&6; }
19305 if test "${gcc_cv_math_func_floor+set}" = set; then :
19306 $as_echo_n "(cached) " >&6
19307 else
19308 if test x$gcc_no_link = xyes; then
19309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19314 #ifdef HAVE_COMPLEX_H
19315 #include <complex.h>
19316 #endif
19317 #ifdef HAVE_MATH_H
19318 #include <math.h>
19319 #endif
19321 int (*ptr)() = (int (*)())floor;
19324 main ()
19326 return 0;
19329 _ACEOF
19330 if ac_fn_c_try_link "$LINENO"; then :
19331 gcc_cv_math_func_floor=yes
19332 else
19333 gcc_cv_math_func_floor=no
19335 rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19339 $as_echo "$gcc_cv_math_func_floor" >&6; }
19340 if test $gcc_cv_math_func_floor = yes; then
19342 cat >>confdefs.h <<_ACEOF
19343 #define HAVE_FLOOR 1
19344 _ACEOF
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19352 $as_echo_n "checking for floorl... " >&6; }
19353 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19354 $as_echo_n "(cached) " >&6
19355 else
19356 if test x$gcc_no_link = xyes; then
19357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19362 #ifdef HAVE_COMPLEX_H
19363 #include <complex.h>
19364 #endif
19365 #ifdef HAVE_MATH_H
19366 #include <math.h>
19367 #endif
19369 int (*ptr)() = (int (*)())floorl;
19372 main ()
19374 return 0;
19377 _ACEOF
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 gcc_cv_math_func_floorl=yes
19380 else
19381 gcc_cv_math_func_floorl=no
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19387 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19388 if test $gcc_cv_math_func_floorl = yes; then
19390 cat >>confdefs.h <<_ACEOF
19391 #define HAVE_FLOORL 1
19392 _ACEOF
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19400 $as_echo_n "checking for fmodf... " >&6; }
19401 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19402 $as_echo_n "(cached) " >&6
19403 else
19404 if test x$gcc_no_link = xyes; then
19405 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19410 #ifdef HAVE_COMPLEX_H
19411 #include <complex.h>
19412 #endif
19413 #ifdef HAVE_MATH_H
19414 #include <math.h>
19415 #endif
19417 int (*ptr)() = (int (*)())fmodf;
19420 main ()
19422 return 0;
19425 _ACEOF
19426 if ac_fn_c_try_link "$LINENO"; then :
19427 gcc_cv_math_func_fmodf=yes
19428 else
19429 gcc_cv_math_func_fmodf=no
19431 rm -f core conftest.err conftest.$ac_objext \
19432 conftest$ac_exeext conftest.$ac_ext
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19435 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19436 if test $gcc_cv_math_func_fmodf = yes; then
19438 cat >>confdefs.h <<_ACEOF
19439 #define HAVE_FMODF 1
19440 _ACEOF
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19448 $as_echo_n "checking for fmod... " >&6; }
19449 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19450 $as_echo_n "(cached) " >&6
19451 else
19452 if test x$gcc_no_link = xyes; then
19453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19458 #ifdef HAVE_COMPLEX_H
19459 #include <complex.h>
19460 #endif
19461 #ifdef HAVE_MATH_H
19462 #include <math.h>
19463 #endif
19465 int (*ptr)() = (int (*)())fmod;
19468 main ()
19470 return 0;
19473 _ACEOF
19474 if ac_fn_c_try_link "$LINENO"; then :
19475 gcc_cv_math_func_fmod=yes
19476 else
19477 gcc_cv_math_func_fmod=no
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19483 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19484 if test $gcc_cv_math_func_fmod = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_FMOD 1
19488 _ACEOF
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19496 $as_echo_n "checking for fmodl... " >&6; }
19497 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19498 $as_echo_n "(cached) " >&6
19499 else
19500 if test x$gcc_no_link = xyes; then
19501 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19506 #ifdef HAVE_COMPLEX_H
19507 #include <complex.h>
19508 #endif
19509 #ifdef HAVE_MATH_H
19510 #include <math.h>
19511 #endif
19513 int (*ptr)() = (int (*)())fmodl;
19516 main ()
19518 return 0;
19521 _ACEOF
19522 if ac_fn_c_try_link "$LINENO"; then :
19523 gcc_cv_math_func_fmodl=yes
19524 else
19525 gcc_cv_math_func_fmodl=no
19527 rm -f core conftest.err conftest.$ac_objext \
19528 conftest$ac_exeext conftest.$ac_ext
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19531 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19532 if test $gcc_cv_math_func_fmodl = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535 #define HAVE_FMODL 1
19536 _ACEOF
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19544 $as_echo_n "checking for frexpf... " >&6; }
19545 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19546 $as_echo_n "(cached) " >&6
19547 else
19548 if test x$gcc_no_link = xyes; then
19549 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19554 #ifdef HAVE_COMPLEX_H
19555 #include <complex.h>
19556 #endif
19557 #ifdef HAVE_MATH_H
19558 #include <math.h>
19559 #endif
19561 int (*ptr)() = (int (*)())frexpf;
19564 main ()
19566 return 0;
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"; then :
19571 gcc_cv_math_func_frexpf=yes
19572 else
19573 gcc_cv_math_func_frexpf=no
19575 rm -f core conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19579 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19580 if test $gcc_cv_math_func_frexpf = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_FREXPF 1
19584 _ACEOF
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19592 $as_echo_n "checking for frexp... " >&6; }
19593 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19595 else
19596 if test x$gcc_no_link = xyes; then
19597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h. */
19602 #ifdef HAVE_COMPLEX_H
19603 #include <complex.h>
19604 #endif
19605 #ifdef HAVE_MATH_H
19606 #include <math.h>
19607 #endif
19609 int (*ptr)() = (int (*)())frexp;
19612 main ()
19614 return 0;
19617 _ACEOF
19618 if ac_fn_c_try_link "$LINENO"; then :
19619 gcc_cv_math_func_frexp=yes
19620 else
19621 gcc_cv_math_func_frexp=no
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext conftest.$ac_ext
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19627 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19628 if test $gcc_cv_math_func_frexp = yes; then
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_FREXP 1
19632 _ACEOF
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19640 $as_echo_n "checking for frexpl... " >&6; }
19641 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 if test x$gcc_no_link = xyes; then
19645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19650 #ifdef HAVE_COMPLEX_H
19651 #include <complex.h>
19652 #endif
19653 #ifdef HAVE_MATH_H
19654 #include <math.h>
19655 #endif
19657 int (*ptr)() = (int (*)())frexpl;
19660 main ()
19662 return 0;
19665 _ACEOF
19666 if ac_fn_c_try_link "$LINENO"; then :
19667 gcc_cv_math_func_frexpl=yes
19668 else
19669 gcc_cv_math_func_frexpl=no
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19675 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19676 if test $gcc_cv_math_func_frexpl = yes; then
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_FREXPL 1
19680 _ACEOF
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19688 $as_echo_n "checking for hypotf... " >&6; }
19689 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19690 $as_echo_n "(cached) " >&6
19691 else
19692 if test x$gcc_no_link = xyes; then
19693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19698 #ifdef HAVE_COMPLEX_H
19699 #include <complex.h>
19700 #endif
19701 #ifdef HAVE_MATH_H
19702 #include <math.h>
19703 #endif
19705 int (*ptr)() = (int (*)())hypotf;
19708 main ()
19710 return 0;
19713 _ACEOF
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 gcc_cv_math_func_hypotf=yes
19716 else
19717 gcc_cv_math_func_hypotf=no
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19723 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19724 if test $gcc_cv_math_func_hypotf = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define HAVE_HYPOTF 1
19728 _ACEOF
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19736 $as_echo_n "checking for hypot... " >&6; }
19737 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19738 $as_echo_n "(cached) " >&6
19739 else
19740 if test x$gcc_no_link = xyes; then
19741 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19746 #ifdef HAVE_COMPLEX_H
19747 #include <complex.h>
19748 #endif
19749 #ifdef HAVE_MATH_H
19750 #include <math.h>
19751 #endif
19753 int (*ptr)() = (int (*)())hypot;
19756 main ()
19758 return 0;
19761 _ACEOF
19762 if ac_fn_c_try_link "$LINENO"; then :
19763 gcc_cv_math_func_hypot=yes
19764 else
19765 gcc_cv_math_func_hypot=no
19767 rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19771 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19772 if test $gcc_cv_math_func_hypot = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_HYPOT 1
19776 _ACEOF
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19784 $as_echo_n "checking for hypotl... " >&6; }
19785 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19788 if test x$gcc_no_link = xyes; then
19789 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h. */
19794 #ifdef HAVE_COMPLEX_H
19795 #include <complex.h>
19796 #endif
19797 #ifdef HAVE_MATH_H
19798 #include <math.h>
19799 #endif
19801 int (*ptr)() = (int (*)())hypotl;
19804 main ()
19806 return 0;
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 gcc_cv_math_func_hypotl=yes
19812 else
19813 gcc_cv_math_func_hypotl=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19819 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19820 if test $gcc_cv_math_func_hypotl = yes; then
19822 cat >>confdefs.h <<_ACEOF
19823 #define HAVE_HYPOTL 1
19824 _ACEOF
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19832 $as_echo_n "checking for ldexpf... " >&6; }
19833 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19834 $as_echo_n "(cached) " >&6
19835 else
19836 if test x$gcc_no_link = xyes; then
19837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19842 #ifdef HAVE_COMPLEX_H
19843 #include <complex.h>
19844 #endif
19845 #ifdef HAVE_MATH_H
19846 #include <math.h>
19847 #endif
19849 int (*ptr)() = (int (*)())ldexpf;
19852 main ()
19854 return 0;
19857 _ACEOF
19858 if ac_fn_c_try_link "$LINENO"; then :
19859 gcc_cv_math_func_ldexpf=yes
19860 else
19861 gcc_cv_math_func_ldexpf=no
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19867 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19868 if test $gcc_cv_math_func_ldexpf = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_LDEXPF 1
19872 _ACEOF
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19880 $as_echo_n "checking for ldexp... " >&6; }
19881 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19883 else
19884 if test x$gcc_no_link = xyes; then
19885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19890 #ifdef HAVE_COMPLEX_H
19891 #include <complex.h>
19892 #endif
19893 #ifdef HAVE_MATH_H
19894 #include <math.h>
19895 #endif
19897 int (*ptr)() = (int (*)())ldexp;
19900 main ()
19902 return 0;
19905 _ACEOF
19906 if ac_fn_c_try_link "$LINENO"; then :
19907 gcc_cv_math_func_ldexp=yes
19908 else
19909 gcc_cv_math_func_ldexp=no
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19915 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19916 if test $gcc_cv_math_func_ldexp = yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_LDEXP 1
19920 _ACEOF
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19928 $as_echo_n "checking for ldexpl... " >&6; }
19929 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19930 $as_echo_n "(cached) " >&6
19931 else
19932 if test x$gcc_no_link = xyes; then
19933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19938 #ifdef HAVE_COMPLEX_H
19939 #include <complex.h>
19940 #endif
19941 #ifdef HAVE_MATH_H
19942 #include <math.h>
19943 #endif
19945 int (*ptr)() = (int (*)())ldexpl;
19948 main ()
19950 return 0;
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 gcc_cv_math_func_ldexpl=yes
19956 else
19957 gcc_cv_math_func_ldexpl=no
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19963 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19964 if test $gcc_cv_math_func_ldexpl = yes; then
19966 cat >>confdefs.h <<_ACEOF
19967 #define HAVE_LDEXPL 1
19968 _ACEOF
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
19976 $as_echo_n "checking for logf... " >&6; }
19977 if test "${gcc_cv_math_func_logf+set}" = set; then :
19978 $as_echo_n "(cached) " >&6
19979 else
19980 if test x$gcc_no_link = xyes; then
19981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19986 #ifdef HAVE_COMPLEX_H
19987 #include <complex.h>
19988 #endif
19989 #ifdef HAVE_MATH_H
19990 #include <math.h>
19991 #endif
19993 int (*ptr)() = (int (*)())logf;
19996 main ()
19998 return 0;
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"; then :
20003 gcc_cv_math_func_logf=yes
20004 else
20005 gcc_cv_math_func_logf=no
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20011 $as_echo "$gcc_cv_math_func_logf" >&6; }
20012 if test $gcc_cv_math_func_logf = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_LOGF 1
20016 _ACEOF
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20024 $as_echo_n "checking for log... " >&6; }
20025 if test "${gcc_cv_math_func_log+set}" = set; then :
20026 $as_echo_n "(cached) " >&6
20027 else
20028 if test x$gcc_no_link = xyes; then
20029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20034 #ifdef HAVE_COMPLEX_H
20035 #include <complex.h>
20036 #endif
20037 #ifdef HAVE_MATH_H
20038 #include <math.h>
20039 #endif
20041 int (*ptr)() = (int (*)())log;
20044 main ()
20046 return 0;
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 gcc_cv_math_func_log=yes
20052 else
20053 gcc_cv_math_func_log=no
20055 rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20059 $as_echo "$gcc_cv_math_func_log" >&6; }
20060 if test $gcc_cv_math_func_log = yes; then
20062 cat >>confdefs.h <<_ACEOF
20063 #define HAVE_LOG 1
20064 _ACEOF
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20072 $as_echo_n "checking for logl... " >&6; }
20073 if test "${gcc_cv_math_func_logl+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 if test x$gcc_no_link = xyes; then
20077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20082 #ifdef HAVE_COMPLEX_H
20083 #include <complex.h>
20084 #endif
20085 #ifdef HAVE_MATH_H
20086 #include <math.h>
20087 #endif
20089 int (*ptr)() = (int (*)())logl;
20092 main ()
20094 return 0;
20097 _ACEOF
20098 if ac_fn_c_try_link "$LINENO"; then :
20099 gcc_cv_math_func_logl=yes
20100 else
20101 gcc_cv_math_func_logl=no
20103 rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20107 $as_echo "$gcc_cv_math_func_logl" >&6; }
20108 if test $gcc_cv_math_func_logl = yes; then
20110 cat >>confdefs.h <<_ACEOF
20111 #define HAVE_LOGL 1
20112 _ACEOF
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20120 $as_echo_n "checking for clogf... " >&6; }
20121 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20123 else
20124 if test x$gcc_no_link = xyes; then
20125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20130 #ifdef HAVE_COMPLEX_H
20131 #include <complex.h>
20132 #endif
20133 #ifdef HAVE_MATH_H
20134 #include <math.h>
20135 #endif
20137 int (*ptr)() = (int (*)())clogf;
20140 main ()
20142 return 0;
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147 gcc_cv_math_func_clogf=yes
20148 else
20149 gcc_cv_math_func_clogf=no
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20155 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20156 if test $gcc_cv_math_func_clogf = yes; then
20158 cat >>confdefs.h <<_ACEOF
20159 #define HAVE_CLOGF 1
20160 _ACEOF
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20168 $as_echo_n "checking for clog... " >&6; }
20169 if test "${gcc_cv_math_func_clog+set}" = set; then :
20170 $as_echo_n "(cached) " >&6
20171 else
20172 if test x$gcc_no_link = xyes; then
20173 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20178 #ifdef HAVE_COMPLEX_H
20179 #include <complex.h>
20180 #endif
20181 #ifdef HAVE_MATH_H
20182 #include <math.h>
20183 #endif
20185 int (*ptr)() = (int (*)())clog;
20188 main ()
20190 return 0;
20193 _ACEOF
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 gcc_cv_math_func_clog=yes
20196 else
20197 gcc_cv_math_func_clog=no
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20203 $as_echo "$gcc_cv_math_func_clog" >&6; }
20204 if test $gcc_cv_math_func_clog = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_CLOG 1
20208 _ACEOF
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20216 $as_echo_n "checking for clogl... " >&6; }
20217 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20218 $as_echo_n "(cached) " >&6
20219 else
20220 if test x$gcc_no_link = xyes; then
20221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20226 #ifdef HAVE_COMPLEX_H
20227 #include <complex.h>
20228 #endif
20229 #ifdef HAVE_MATH_H
20230 #include <math.h>
20231 #endif
20233 int (*ptr)() = (int (*)())clogl;
20236 main ()
20238 return 0;
20241 _ACEOF
20242 if ac_fn_c_try_link "$LINENO"; then :
20243 gcc_cv_math_func_clogl=yes
20244 else
20245 gcc_cv_math_func_clogl=no
20247 rm -f core conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20251 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20252 if test $gcc_cv_math_func_clogl = yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_CLOGL 1
20256 _ACEOF
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20264 $as_echo_n "checking for log10f... " >&6; }
20265 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20266 $as_echo_n "(cached) " >&6
20267 else
20268 if test x$gcc_no_link = xyes; then
20269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20274 #ifdef HAVE_COMPLEX_H
20275 #include <complex.h>
20276 #endif
20277 #ifdef HAVE_MATH_H
20278 #include <math.h>
20279 #endif
20281 int (*ptr)() = (int (*)())log10f;
20284 main ()
20286 return 0;
20289 _ACEOF
20290 if ac_fn_c_try_link "$LINENO"; then :
20291 gcc_cv_math_func_log10f=yes
20292 else
20293 gcc_cv_math_func_log10f=no
20295 rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20299 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20300 if test $gcc_cv_math_func_log10f = yes; then
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_LOG10F 1
20304 _ACEOF
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20312 $as_echo_n "checking for log10... " >&6; }
20313 if test "${gcc_cv_math_func_log10+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20315 else
20316 if test x$gcc_no_link = xyes; then
20317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20322 #ifdef HAVE_COMPLEX_H
20323 #include <complex.h>
20324 #endif
20325 #ifdef HAVE_MATH_H
20326 #include <math.h>
20327 #endif
20329 int (*ptr)() = (int (*)())log10;
20332 main ()
20334 return 0;
20337 _ACEOF
20338 if ac_fn_c_try_link "$LINENO"; then :
20339 gcc_cv_math_func_log10=yes
20340 else
20341 gcc_cv_math_func_log10=no
20343 rm -f core conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20347 $as_echo "$gcc_cv_math_func_log10" >&6; }
20348 if test $gcc_cv_math_func_log10 = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_LOG10 1
20352 _ACEOF
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20360 $as_echo_n "checking for log10l... " >&6; }
20361 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20362 $as_echo_n "(cached) " >&6
20363 else
20364 if test x$gcc_no_link = xyes; then
20365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h. */
20370 #ifdef HAVE_COMPLEX_H
20371 #include <complex.h>
20372 #endif
20373 #ifdef HAVE_MATH_H
20374 #include <math.h>
20375 #endif
20377 int (*ptr)() = (int (*)())log10l;
20380 main ()
20382 return 0;
20385 _ACEOF
20386 if ac_fn_c_try_link "$LINENO"; then :
20387 gcc_cv_math_func_log10l=yes
20388 else
20389 gcc_cv_math_func_log10l=no
20391 rm -f core conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20395 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20396 if test $gcc_cv_math_func_log10l = yes; then
20398 cat >>confdefs.h <<_ACEOF
20399 #define HAVE_LOG10L 1
20400 _ACEOF
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20408 $as_echo_n "checking for clog10f... " >&6; }
20409 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20410 $as_echo_n "(cached) " >&6
20411 else
20412 if test x$gcc_no_link = xyes; then
20413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20418 #ifdef HAVE_COMPLEX_H
20419 #include <complex.h>
20420 #endif
20421 #ifdef HAVE_MATH_H
20422 #include <math.h>
20423 #endif
20425 int (*ptr)() = (int (*)())clog10f;
20428 main ()
20430 return 0;
20433 _ACEOF
20434 if ac_fn_c_try_link "$LINENO"; then :
20435 gcc_cv_math_func_clog10f=yes
20436 else
20437 gcc_cv_math_func_clog10f=no
20439 rm -f core conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20443 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20444 if test $gcc_cv_math_func_clog10f = yes; then
20446 cat >>confdefs.h <<_ACEOF
20447 #define HAVE_CLOG10F 1
20448 _ACEOF
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20456 $as_echo_n "checking for clog10... " >&6; }
20457 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20458 $as_echo_n "(cached) " >&6
20459 else
20460 if test x$gcc_no_link = xyes; then
20461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20466 #ifdef HAVE_COMPLEX_H
20467 #include <complex.h>
20468 #endif
20469 #ifdef HAVE_MATH_H
20470 #include <math.h>
20471 #endif
20473 int (*ptr)() = (int (*)())clog10;
20476 main ()
20478 return 0;
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 gcc_cv_math_func_clog10=yes
20484 else
20485 gcc_cv_math_func_clog10=no
20487 rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20491 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20492 if test $gcc_cv_math_func_clog10 = yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_CLOG10 1
20496 _ACEOF
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20504 $as_echo_n "checking for clog10l... " >&6; }
20505 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20506 $as_echo_n "(cached) " >&6
20507 else
20508 if test x$gcc_no_link = xyes; then
20509 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20512 /* end confdefs.h. */
20514 #ifdef HAVE_COMPLEX_H
20515 #include <complex.h>
20516 #endif
20517 #ifdef HAVE_MATH_H
20518 #include <math.h>
20519 #endif
20521 int (*ptr)() = (int (*)())clog10l;
20524 main ()
20526 return 0;
20529 _ACEOF
20530 if ac_fn_c_try_link "$LINENO"; then :
20531 gcc_cv_math_func_clog10l=yes
20532 else
20533 gcc_cv_math_func_clog10l=no
20535 rm -f core conftest.err conftest.$ac_objext \
20536 conftest$ac_exeext conftest.$ac_ext
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20539 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20540 if test $gcc_cv_math_func_clog10l = yes; then
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_CLOG10L 1
20544 _ACEOF
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20552 $as_echo_n "checking for nextafterf... " >&6; }
20553 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20554 $as_echo_n "(cached) " >&6
20555 else
20556 if test x$gcc_no_link = xyes; then
20557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20562 #ifdef HAVE_COMPLEX_H
20563 #include <complex.h>
20564 #endif
20565 #ifdef HAVE_MATH_H
20566 #include <math.h>
20567 #endif
20569 int (*ptr)() = (int (*)())nextafterf;
20572 main ()
20574 return 0;
20577 _ACEOF
20578 if ac_fn_c_try_link "$LINENO"; then :
20579 gcc_cv_math_func_nextafterf=yes
20580 else
20581 gcc_cv_math_func_nextafterf=no
20583 rm -f core conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20587 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20588 if test $gcc_cv_math_func_nextafterf = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_NEXTAFTERF 1
20592 _ACEOF
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20600 $as_echo_n "checking for nextafter... " >&6; }
20601 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 if test x$gcc_no_link = xyes; then
20605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20610 #ifdef HAVE_COMPLEX_H
20611 #include <complex.h>
20612 #endif
20613 #ifdef HAVE_MATH_H
20614 #include <math.h>
20615 #endif
20617 int (*ptr)() = (int (*)())nextafter;
20620 main ()
20622 return 0;
20625 _ACEOF
20626 if ac_fn_c_try_link "$LINENO"; then :
20627 gcc_cv_math_func_nextafter=yes
20628 else
20629 gcc_cv_math_func_nextafter=no
20631 rm -f core conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20635 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20636 if test $gcc_cv_math_func_nextafter = yes; then
20638 cat >>confdefs.h <<_ACEOF
20639 #define HAVE_NEXTAFTER 1
20640 _ACEOF
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20648 $as_echo_n "checking for nextafterl... " >&6; }
20649 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20650 $as_echo_n "(cached) " >&6
20651 else
20652 if test x$gcc_no_link = xyes; then
20653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20658 #ifdef HAVE_COMPLEX_H
20659 #include <complex.h>
20660 #endif
20661 #ifdef HAVE_MATH_H
20662 #include <math.h>
20663 #endif
20665 int (*ptr)() = (int (*)())nextafterl;
20668 main ()
20670 return 0;
20673 _ACEOF
20674 if ac_fn_c_try_link "$LINENO"; then :
20675 gcc_cv_math_func_nextafterl=yes
20676 else
20677 gcc_cv_math_func_nextafterl=no
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20683 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20684 if test $gcc_cv_math_func_nextafterl = yes; then
20686 cat >>confdefs.h <<_ACEOF
20687 #define HAVE_NEXTAFTERL 1
20688 _ACEOF
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20696 $as_echo_n "checking for powf... " >&6; }
20697 if test "${gcc_cv_math_func_powf+set}" = set; then :
20698 $as_echo_n "(cached) " >&6
20699 else
20700 if test x$gcc_no_link = xyes; then
20701 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20706 #ifdef HAVE_COMPLEX_H
20707 #include <complex.h>
20708 #endif
20709 #ifdef HAVE_MATH_H
20710 #include <math.h>
20711 #endif
20713 int (*ptr)() = (int (*)())powf;
20716 main ()
20718 return 0;
20721 _ACEOF
20722 if ac_fn_c_try_link "$LINENO"; then :
20723 gcc_cv_math_func_powf=yes
20724 else
20725 gcc_cv_math_func_powf=no
20727 rm -f core conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext conftest.$ac_ext
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20731 $as_echo "$gcc_cv_math_func_powf" >&6; }
20732 if test $gcc_cv_math_func_powf = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_POWF 1
20736 _ACEOF
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20744 $as_echo_n "checking for pow... " >&6; }
20745 if test "${gcc_cv_math_func_pow+set}" = set; then :
20746 $as_echo_n "(cached) " >&6
20747 else
20748 if test x$gcc_no_link = xyes; then
20749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20754 #ifdef HAVE_COMPLEX_H
20755 #include <complex.h>
20756 #endif
20757 #ifdef HAVE_MATH_H
20758 #include <math.h>
20759 #endif
20761 int (*ptr)() = (int (*)())pow;
20764 main ()
20766 return 0;
20769 _ACEOF
20770 if ac_fn_c_try_link "$LINENO"; then :
20771 gcc_cv_math_func_pow=yes
20772 else
20773 gcc_cv_math_func_pow=no
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20779 $as_echo "$gcc_cv_math_func_pow" >&6; }
20780 if test $gcc_cv_math_func_pow = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define HAVE_POW 1
20784 _ACEOF
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20792 $as_echo_n "checking for powl... " >&6; }
20793 if test "${gcc_cv_math_func_powl+set}" = set; then :
20794 $as_echo_n "(cached) " >&6
20795 else
20796 if test x$gcc_no_link = xyes; then
20797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20802 #ifdef HAVE_COMPLEX_H
20803 #include <complex.h>
20804 #endif
20805 #ifdef HAVE_MATH_H
20806 #include <math.h>
20807 #endif
20809 int (*ptr)() = (int (*)())powl;
20812 main ()
20814 return 0;
20817 _ACEOF
20818 if ac_fn_c_try_link "$LINENO"; then :
20819 gcc_cv_math_func_powl=yes
20820 else
20821 gcc_cv_math_func_powl=no
20823 rm -f core conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20827 $as_echo "$gcc_cv_math_func_powl" >&6; }
20828 if test $gcc_cv_math_func_powl = yes; then
20830 cat >>confdefs.h <<_ACEOF
20831 #define HAVE_POWL 1
20832 _ACEOF
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20840 $as_echo_n "checking for cpowf... " >&6; }
20841 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20842 $as_echo_n "(cached) " >&6
20843 else
20844 if test x$gcc_no_link = xyes; then
20845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20850 #ifdef HAVE_COMPLEX_H
20851 #include <complex.h>
20852 #endif
20853 #ifdef HAVE_MATH_H
20854 #include <math.h>
20855 #endif
20857 int (*ptr)() = (int (*)())cpowf;
20860 main ()
20862 return 0;
20865 _ACEOF
20866 if ac_fn_c_try_link "$LINENO"; then :
20867 gcc_cv_math_func_cpowf=yes
20868 else
20869 gcc_cv_math_func_cpowf=no
20871 rm -f core conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20875 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20876 if test $gcc_cv_math_func_cpowf = yes; then
20878 cat >>confdefs.h <<_ACEOF
20879 #define HAVE_CPOWF 1
20880 _ACEOF
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20888 $as_echo_n "checking for cpow... " >&6; }
20889 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20891 else
20892 if test x$gcc_no_link = xyes; then
20893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h. */
20898 #ifdef HAVE_COMPLEX_H
20899 #include <complex.h>
20900 #endif
20901 #ifdef HAVE_MATH_H
20902 #include <math.h>
20903 #endif
20905 int (*ptr)() = (int (*)())cpow;
20908 main ()
20910 return 0;
20913 _ACEOF
20914 if ac_fn_c_try_link "$LINENO"; then :
20915 gcc_cv_math_func_cpow=yes
20916 else
20917 gcc_cv_math_func_cpow=no
20919 rm -f core conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20923 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20924 if test $gcc_cv_math_func_cpow = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define HAVE_CPOW 1
20928 _ACEOF
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20936 $as_echo_n "checking for cpowl... " >&6; }
20937 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20938 $as_echo_n "(cached) " >&6
20939 else
20940 if test x$gcc_no_link = xyes; then
20941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20946 #ifdef HAVE_COMPLEX_H
20947 #include <complex.h>
20948 #endif
20949 #ifdef HAVE_MATH_H
20950 #include <math.h>
20951 #endif
20953 int (*ptr)() = (int (*)())cpowl;
20956 main ()
20958 return 0;
20961 _ACEOF
20962 if ac_fn_c_try_link "$LINENO"; then :
20963 gcc_cv_math_func_cpowl=yes
20964 else
20965 gcc_cv_math_func_cpowl=no
20967 rm -f core conftest.err conftest.$ac_objext \
20968 conftest$ac_exeext conftest.$ac_ext
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20971 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
20972 if test $gcc_cv_math_func_cpowl = yes; then
20974 cat >>confdefs.h <<_ACEOF
20975 #define HAVE_CPOWL 1
20976 _ACEOF
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
20984 $as_echo_n "checking for roundf... " >&6; }
20985 if test "${gcc_cv_math_func_roundf+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20987 else
20988 if test x$gcc_no_link = xyes; then
20989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20994 #ifdef HAVE_COMPLEX_H
20995 #include <complex.h>
20996 #endif
20997 #ifdef HAVE_MATH_H
20998 #include <math.h>
20999 #endif
21001 int (*ptr)() = (int (*)())roundf;
21004 main ()
21006 return 0;
21009 _ACEOF
21010 if ac_fn_c_try_link "$LINENO"; then :
21011 gcc_cv_math_func_roundf=yes
21012 else
21013 gcc_cv_math_func_roundf=no
21015 rm -f core conftest.err conftest.$ac_objext \
21016 conftest$ac_exeext conftest.$ac_ext
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21019 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21020 if test $gcc_cv_math_func_roundf = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_ROUNDF 1
21024 _ACEOF
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21032 $as_echo_n "checking for round... " >&6; }
21033 if test "${gcc_cv_math_func_round+set}" = set; then :
21034 $as_echo_n "(cached) " >&6
21035 else
21036 if test x$gcc_no_link = xyes; then
21037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21042 #ifdef HAVE_COMPLEX_H
21043 #include <complex.h>
21044 #endif
21045 #ifdef HAVE_MATH_H
21046 #include <math.h>
21047 #endif
21049 int (*ptr)() = (int (*)())round;
21052 main ()
21054 return 0;
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 gcc_cv_math_func_round=yes
21060 else
21061 gcc_cv_math_func_round=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21067 $as_echo "$gcc_cv_math_func_round" >&6; }
21068 if test $gcc_cv_math_func_round = yes; then
21070 cat >>confdefs.h <<_ACEOF
21071 #define HAVE_ROUND 1
21072 _ACEOF
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21080 $as_echo_n "checking for roundl... " >&6; }
21081 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 if test x$gcc_no_link = xyes; then
21085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21090 #ifdef HAVE_COMPLEX_H
21091 #include <complex.h>
21092 #endif
21093 #ifdef HAVE_MATH_H
21094 #include <math.h>
21095 #endif
21097 int (*ptr)() = (int (*)())roundl;
21100 main ()
21102 return 0;
21105 _ACEOF
21106 if ac_fn_c_try_link "$LINENO"; then :
21107 gcc_cv_math_func_roundl=yes
21108 else
21109 gcc_cv_math_func_roundl=no
21111 rm -f core conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21115 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21116 if test $gcc_cv_math_func_roundl = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_ROUNDL 1
21120 _ACEOF
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21128 $as_echo_n "checking for lroundf... " >&6; }
21129 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 if test x$gcc_no_link = xyes; then
21133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21138 #ifdef HAVE_COMPLEX_H
21139 #include <complex.h>
21140 #endif
21141 #ifdef HAVE_MATH_H
21142 #include <math.h>
21143 #endif
21145 int (*ptr)() = (int (*)())lroundf;
21148 main ()
21150 return 0;
21153 _ACEOF
21154 if ac_fn_c_try_link "$LINENO"; then :
21155 gcc_cv_math_func_lroundf=yes
21156 else
21157 gcc_cv_math_func_lroundf=no
21159 rm -f core conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21163 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21164 if test $gcc_cv_math_func_lroundf = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_LROUNDF 1
21168 _ACEOF
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21176 $as_echo_n "checking for lround... " >&6; }
21177 if test "${gcc_cv_math_func_lround+set}" = set; then :
21178 $as_echo_n "(cached) " >&6
21179 else
21180 if test x$gcc_no_link = xyes; then
21181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184 /* end confdefs.h. */
21186 #ifdef HAVE_COMPLEX_H
21187 #include <complex.h>
21188 #endif
21189 #ifdef HAVE_MATH_H
21190 #include <math.h>
21191 #endif
21193 int (*ptr)() = (int (*)())lround;
21196 main ()
21198 return 0;
21201 _ACEOF
21202 if ac_fn_c_try_link "$LINENO"; then :
21203 gcc_cv_math_func_lround=yes
21204 else
21205 gcc_cv_math_func_lround=no
21207 rm -f core conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21211 $as_echo "$gcc_cv_math_func_lround" >&6; }
21212 if test $gcc_cv_math_func_lround = yes; then
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_LROUND 1
21216 _ACEOF
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21224 $as_echo_n "checking for lroundl... " >&6; }
21225 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21226 $as_echo_n "(cached) " >&6
21227 else
21228 if test x$gcc_no_link = xyes; then
21229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21234 #ifdef HAVE_COMPLEX_H
21235 #include <complex.h>
21236 #endif
21237 #ifdef HAVE_MATH_H
21238 #include <math.h>
21239 #endif
21241 int (*ptr)() = (int (*)())lroundl;
21244 main ()
21246 return 0;
21249 _ACEOF
21250 if ac_fn_c_try_link "$LINENO"; then :
21251 gcc_cv_math_func_lroundl=yes
21252 else
21253 gcc_cv_math_func_lroundl=no
21255 rm -f core conftest.err conftest.$ac_objext \
21256 conftest$ac_exeext conftest.$ac_ext
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21259 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21260 if test $gcc_cv_math_func_lroundl = yes; then
21262 cat >>confdefs.h <<_ACEOF
21263 #define HAVE_LROUNDL 1
21264 _ACEOF
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21272 $as_echo_n "checking for llroundf... " >&6; }
21273 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21274 $as_echo_n "(cached) " >&6
21275 else
21276 if test x$gcc_no_link = xyes; then
21277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h. */
21282 #ifdef HAVE_COMPLEX_H
21283 #include <complex.h>
21284 #endif
21285 #ifdef HAVE_MATH_H
21286 #include <math.h>
21287 #endif
21289 int (*ptr)() = (int (*)())llroundf;
21292 main ()
21294 return 0;
21297 _ACEOF
21298 if ac_fn_c_try_link "$LINENO"; then :
21299 gcc_cv_math_func_llroundf=yes
21300 else
21301 gcc_cv_math_func_llroundf=no
21303 rm -f core conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21307 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21308 if test $gcc_cv_math_func_llroundf = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311 #define HAVE_LLROUNDF 1
21312 _ACEOF
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21320 $as_echo_n "checking for llround... " >&6; }
21321 if test "${gcc_cv_math_func_llround+set}" = set; then :
21322 $as_echo_n "(cached) " >&6
21323 else
21324 if test x$gcc_no_link = xyes; then
21325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21330 #ifdef HAVE_COMPLEX_H
21331 #include <complex.h>
21332 #endif
21333 #ifdef HAVE_MATH_H
21334 #include <math.h>
21335 #endif
21337 int (*ptr)() = (int (*)())llround;
21340 main ()
21342 return 0;
21345 _ACEOF
21346 if ac_fn_c_try_link "$LINENO"; then :
21347 gcc_cv_math_func_llround=yes
21348 else
21349 gcc_cv_math_func_llround=no
21351 rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21355 $as_echo "$gcc_cv_math_func_llround" >&6; }
21356 if test $gcc_cv_math_func_llround = yes; then
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_LLROUND 1
21360 _ACEOF
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21368 $as_echo_n "checking for llroundl... " >&6; }
21369 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21370 $as_echo_n "(cached) " >&6
21371 else
21372 if test x$gcc_no_link = xyes; then
21373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21378 #ifdef HAVE_COMPLEX_H
21379 #include <complex.h>
21380 #endif
21381 #ifdef HAVE_MATH_H
21382 #include <math.h>
21383 #endif
21385 int (*ptr)() = (int (*)())llroundl;
21388 main ()
21390 return 0;
21393 _ACEOF
21394 if ac_fn_c_try_link "$LINENO"; then :
21395 gcc_cv_math_func_llroundl=yes
21396 else
21397 gcc_cv_math_func_llroundl=no
21399 rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21403 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21404 if test $gcc_cv_math_func_llroundl = yes; then
21406 cat >>confdefs.h <<_ACEOF
21407 #define HAVE_LLROUNDL 1
21408 _ACEOF
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21416 $as_echo_n "checking for scalbnf... " >&6; }
21417 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21419 else
21420 if test x$gcc_no_link = xyes; then
21421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21426 #ifdef HAVE_COMPLEX_H
21427 #include <complex.h>
21428 #endif
21429 #ifdef HAVE_MATH_H
21430 #include <math.h>
21431 #endif
21433 int (*ptr)() = (int (*)())scalbnf;
21436 main ()
21438 return 0;
21441 _ACEOF
21442 if ac_fn_c_try_link "$LINENO"; then :
21443 gcc_cv_math_func_scalbnf=yes
21444 else
21445 gcc_cv_math_func_scalbnf=no
21447 rm -f core conftest.err conftest.$ac_objext \
21448 conftest$ac_exeext conftest.$ac_ext
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21451 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21452 if test $gcc_cv_math_func_scalbnf = yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define HAVE_SCALBNF 1
21456 _ACEOF
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21464 $as_echo_n "checking for scalbn... " >&6; }
21465 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21466 $as_echo_n "(cached) " >&6
21467 else
21468 if test x$gcc_no_link = xyes; then
21469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21474 #ifdef HAVE_COMPLEX_H
21475 #include <complex.h>
21476 #endif
21477 #ifdef HAVE_MATH_H
21478 #include <math.h>
21479 #endif
21481 int (*ptr)() = (int (*)())scalbn;
21484 main ()
21486 return 0;
21489 _ACEOF
21490 if ac_fn_c_try_link "$LINENO"; then :
21491 gcc_cv_math_func_scalbn=yes
21492 else
21493 gcc_cv_math_func_scalbn=no
21495 rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21499 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21500 if test $gcc_cv_math_func_scalbn = yes; then
21502 cat >>confdefs.h <<_ACEOF
21503 #define HAVE_SCALBN 1
21504 _ACEOF
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21512 $as_echo_n "checking for scalbnl... " >&6; }
21513 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21514 $as_echo_n "(cached) " >&6
21515 else
21516 if test x$gcc_no_link = xyes; then
21517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520 /* end confdefs.h. */
21522 #ifdef HAVE_COMPLEX_H
21523 #include <complex.h>
21524 #endif
21525 #ifdef HAVE_MATH_H
21526 #include <math.h>
21527 #endif
21529 int (*ptr)() = (int (*)())scalbnl;
21532 main ()
21534 return 0;
21537 _ACEOF
21538 if ac_fn_c_try_link "$LINENO"; then :
21539 gcc_cv_math_func_scalbnl=yes
21540 else
21541 gcc_cv_math_func_scalbnl=no
21543 rm -f core conftest.err conftest.$ac_objext \
21544 conftest$ac_exeext conftest.$ac_ext
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21547 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21548 if test $gcc_cv_math_func_scalbnl = yes; then
21550 cat >>confdefs.h <<_ACEOF
21551 #define HAVE_SCALBNL 1
21552 _ACEOF
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21560 $as_echo_n "checking for sinf... " >&6; }
21561 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21562 $as_echo_n "(cached) " >&6
21563 else
21564 if test x$gcc_no_link = xyes; then
21565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21570 #ifdef HAVE_COMPLEX_H
21571 #include <complex.h>
21572 #endif
21573 #ifdef HAVE_MATH_H
21574 #include <math.h>
21575 #endif
21577 int (*ptr)() = (int (*)())sinf;
21580 main ()
21582 return 0;
21585 _ACEOF
21586 if ac_fn_c_try_link "$LINENO"; then :
21587 gcc_cv_math_func_sinf=yes
21588 else
21589 gcc_cv_math_func_sinf=no
21591 rm -f core conftest.err conftest.$ac_objext \
21592 conftest$ac_exeext conftest.$ac_ext
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21595 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21596 if test $gcc_cv_math_func_sinf = yes; then
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_SINF 1
21600 _ACEOF
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21608 $as_echo_n "checking for sin... " >&6; }
21609 if test "${gcc_cv_math_func_sin+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21611 else
21612 if test x$gcc_no_link = xyes; then
21613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 /* end confdefs.h. */
21618 #ifdef HAVE_COMPLEX_H
21619 #include <complex.h>
21620 #endif
21621 #ifdef HAVE_MATH_H
21622 #include <math.h>
21623 #endif
21625 int (*ptr)() = (int (*)())sin;
21628 main ()
21630 return 0;
21633 _ACEOF
21634 if ac_fn_c_try_link "$LINENO"; then :
21635 gcc_cv_math_func_sin=yes
21636 else
21637 gcc_cv_math_func_sin=no
21639 rm -f core conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21643 $as_echo "$gcc_cv_math_func_sin" >&6; }
21644 if test $gcc_cv_math_func_sin = yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define HAVE_SIN 1
21648 _ACEOF
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21656 $as_echo_n "checking for sinl... " >&6; }
21657 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 if test x$gcc_no_link = xyes; then
21661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21666 #ifdef HAVE_COMPLEX_H
21667 #include <complex.h>
21668 #endif
21669 #ifdef HAVE_MATH_H
21670 #include <math.h>
21671 #endif
21673 int (*ptr)() = (int (*)())sinl;
21676 main ()
21678 return 0;
21681 _ACEOF
21682 if ac_fn_c_try_link "$LINENO"; then :
21683 gcc_cv_math_func_sinl=yes
21684 else
21685 gcc_cv_math_func_sinl=no
21687 rm -f core conftest.err conftest.$ac_objext \
21688 conftest$ac_exeext conftest.$ac_ext
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21691 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21692 if test $gcc_cv_math_func_sinl = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define HAVE_SINL 1
21696 _ACEOF
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21704 $as_echo_n "checking for csinf... " >&6; }
21705 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21706 $as_echo_n "(cached) " >&6
21707 else
21708 if test x$gcc_no_link = xyes; then
21709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21714 #ifdef HAVE_COMPLEX_H
21715 #include <complex.h>
21716 #endif
21717 #ifdef HAVE_MATH_H
21718 #include <math.h>
21719 #endif
21721 int (*ptr)() = (int (*)())csinf;
21724 main ()
21726 return 0;
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731 gcc_cv_math_func_csinf=yes
21732 else
21733 gcc_cv_math_func_csinf=no
21735 rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21739 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21740 if test $gcc_cv_math_func_csinf = yes; then
21742 cat >>confdefs.h <<_ACEOF
21743 #define HAVE_CSINF 1
21744 _ACEOF
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21752 $as_echo_n "checking for csin... " >&6; }
21753 if test "${gcc_cv_math_func_csin+set}" = set; then :
21754 $as_echo_n "(cached) " >&6
21755 else
21756 if test x$gcc_no_link = xyes; then
21757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21762 #ifdef HAVE_COMPLEX_H
21763 #include <complex.h>
21764 #endif
21765 #ifdef HAVE_MATH_H
21766 #include <math.h>
21767 #endif
21769 int (*ptr)() = (int (*)())csin;
21772 main ()
21774 return 0;
21777 _ACEOF
21778 if ac_fn_c_try_link "$LINENO"; then :
21779 gcc_cv_math_func_csin=yes
21780 else
21781 gcc_cv_math_func_csin=no
21783 rm -f core conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21787 $as_echo "$gcc_cv_math_func_csin" >&6; }
21788 if test $gcc_cv_math_func_csin = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_CSIN 1
21792 _ACEOF
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21800 $as_echo_n "checking for csinl... " >&6; }
21801 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
21803 else
21804 if test x$gcc_no_link = xyes; then
21805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21810 #ifdef HAVE_COMPLEX_H
21811 #include <complex.h>
21812 #endif
21813 #ifdef HAVE_MATH_H
21814 #include <math.h>
21815 #endif
21817 int (*ptr)() = (int (*)())csinl;
21820 main ()
21822 return 0;
21825 _ACEOF
21826 if ac_fn_c_try_link "$LINENO"; then :
21827 gcc_cv_math_func_csinl=yes
21828 else
21829 gcc_cv_math_func_csinl=no
21831 rm -f core conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21835 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21836 if test $gcc_cv_math_func_csinl = yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define HAVE_CSINL 1
21840 _ACEOF
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21848 $as_echo_n "checking for sinhf... " >&6; }
21849 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 if test x$gcc_no_link = xyes; then
21853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21858 #ifdef HAVE_COMPLEX_H
21859 #include <complex.h>
21860 #endif
21861 #ifdef HAVE_MATH_H
21862 #include <math.h>
21863 #endif
21865 int (*ptr)() = (int (*)())sinhf;
21868 main ()
21870 return 0;
21873 _ACEOF
21874 if ac_fn_c_try_link "$LINENO"; then :
21875 gcc_cv_math_func_sinhf=yes
21876 else
21877 gcc_cv_math_func_sinhf=no
21879 rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21883 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21884 if test $gcc_cv_math_func_sinhf = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887 #define HAVE_SINHF 1
21888 _ACEOF
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21896 $as_echo_n "checking for sinh... " >&6; }
21897 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 if test x$gcc_no_link = xyes; then
21901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h. */
21906 #ifdef HAVE_COMPLEX_H
21907 #include <complex.h>
21908 #endif
21909 #ifdef HAVE_MATH_H
21910 #include <math.h>
21911 #endif
21913 int (*ptr)() = (int (*)())sinh;
21916 main ()
21918 return 0;
21921 _ACEOF
21922 if ac_fn_c_try_link "$LINENO"; then :
21923 gcc_cv_math_func_sinh=yes
21924 else
21925 gcc_cv_math_func_sinh=no
21927 rm -f core conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21931 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21932 if test $gcc_cv_math_func_sinh = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define HAVE_SINH 1
21936 _ACEOF
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21944 $as_echo_n "checking for sinhl... " >&6; }
21945 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21947 else
21948 if test x$gcc_no_link = xyes; then
21949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21954 #ifdef HAVE_COMPLEX_H
21955 #include <complex.h>
21956 #endif
21957 #ifdef HAVE_MATH_H
21958 #include <math.h>
21959 #endif
21961 int (*ptr)() = (int (*)())sinhl;
21964 main ()
21966 return 0;
21969 _ACEOF
21970 if ac_fn_c_try_link "$LINENO"; then :
21971 gcc_cv_math_func_sinhl=yes
21972 else
21973 gcc_cv_math_func_sinhl=no
21975 rm -f core conftest.err conftest.$ac_objext \
21976 conftest$ac_exeext conftest.$ac_ext
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
21979 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
21980 if test $gcc_cv_math_func_sinhl = yes; then
21982 cat >>confdefs.h <<_ACEOF
21983 #define HAVE_SINHL 1
21984 _ACEOF
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
21992 $as_echo_n "checking for csinhf... " >&6; }
21993 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
21994 $as_echo_n "(cached) " >&6
21995 else
21996 if test x$gcc_no_link = xyes; then
21997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22002 #ifdef HAVE_COMPLEX_H
22003 #include <complex.h>
22004 #endif
22005 #ifdef HAVE_MATH_H
22006 #include <math.h>
22007 #endif
22009 int (*ptr)() = (int (*)())csinhf;
22012 main ()
22014 return 0;
22017 _ACEOF
22018 if ac_fn_c_try_link "$LINENO"; then :
22019 gcc_cv_math_func_csinhf=yes
22020 else
22021 gcc_cv_math_func_csinhf=no
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22027 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22028 if test $gcc_cv_math_func_csinhf = yes; then
22030 cat >>confdefs.h <<_ACEOF
22031 #define HAVE_CSINHF 1
22032 _ACEOF
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22040 $as_echo_n "checking for csinh... " >&6; }
22041 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22042 $as_echo_n "(cached) " >&6
22043 else
22044 if test x$gcc_no_link = xyes; then
22045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22050 #ifdef HAVE_COMPLEX_H
22051 #include <complex.h>
22052 #endif
22053 #ifdef HAVE_MATH_H
22054 #include <math.h>
22055 #endif
22057 int (*ptr)() = (int (*)())csinh;
22060 main ()
22062 return 0;
22065 _ACEOF
22066 if ac_fn_c_try_link "$LINENO"; then :
22067 gcc_cv_math_func_csinh=yes
22068 else
22069 gcc_cv_math_func_csinh=no
22071 rm -f core conftest.err conftest.$ac_objext \
22072 conftest$ac_exeext conftest.$ac_ext
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22075 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22076 if test $gcc_cv_math_func_csinh = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079 #define HAVE_CSINH 1
22080 _ACEOF
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22088 $as_echo_n "checking for csinhl... " >&6; }
22089 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22090 $as_echo_n "(cached) " >&6
22091 else
22092 if test x$gcc_no_link = xyes; then
22093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22098 #ifdef HAVE_COMPLEX_H
22099 #include <complex.h>
22100 #endif
22101 #ifdef HAVE_MATH_H
22102 #include <math.h>
22103 #endif
22105 int (*ptr)() = (int (*)())csinhl;
22108 main ()
22110 return 0;
22113 _ACEOF
22114 if ac_fn_c_try_link "$LINENO"; then :
22115 gcc_cv_math_func_csinhl=yes
22116 else
22117 gcc_cv_math_func_csinhl=no
22119 rm -f core conftest.err conftest.$ac_objext \
22120 conftest$ac_exeext conftest.$ac_ext
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22123 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22124 if test $gcc_cv_math_func_csinhl = yes; then
22126 cat >>confdefs.h <<_ACEOF
22127 #define HAVE_CSINHL 1
22128 _ACEOF
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22136 $as_echo_n "checking for sqrtf... " >&6; }
22137 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 if test x$gcc_no_link = xyes; then
22141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h. */
22146 #ifdef HAVE_COMPLEX_H
22147 #include <complex.h>
22148 #endif
22149 #ifdef HAVE_MATH_H
22150 #include <math.h>
22151 #endif
22153 int (*ptr)() = (int (*)())sqrtf;
22156 main ()
22158 return 0;
22161 _ACEOF
22162 if ac_fn_c_try_link "$LINENO"; then :
22163 gcc_cv_math_func_sqrtf=yes
22164 else
22165 gcc_cv_math_func_sqrtf=no
22167 rm -f core conftest.err conftest.$ac_objext \
22168 conftest$ac_exeext conftest.$ac_ext
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22171 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22172 if test $gcc_cv_math_func_sqrtf = yes; then
22174 cat >>confdefs.h <<_ACEOF
22175 #define HAVE_SQRTF 1
22176 _ACEOF
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22184 $as_echo_n "checking for sqrt... " >&6; }
22185 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22187 else
22188 if test x$gcc_no_link = xyes; then
22189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22192 /* end confdefs.h. */
22194 #ifdef HAVE_COMPLEX_H
22195 #include <complex.h>
22196 #endif
22197 #ifdef HAVE_MATH_H
22198 #include <math.h>
22199 #endif
22201 int (*ptr)() = (int (*)())sqrt;
22204 main ()
22206 return 0;
22209 _ACEOF
22210 if ac_fn_c_try_link "$LINENO"; then :
22211 gcc_cv_math_func_sqrt=yes
22212 else
22213 gcc_cv_math_func_sqrt=no
22215 rm -f core conftest.err conftest.$ac_objext \
22216 conftest$ac_exeext conftest.$ac_ext
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22219 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22220 if test $gcc_cv_math_func_sqrt = yes; then
22222 cat >>confdefs.h <<_ACEOF
22223 #define HAVE_SQRT 1
22224 _ACEOF
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22232 $as_echo_n "checking for sqrtl... " >&6; }
22233 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22235 else
22236 if test x$gcc_no_link = xyes; then
22237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22242 #ifdef HAVE_COMPLEX_H
22243 #include <complex.h>
22244 #endif
22245 #ifdef HAVE_MATH_H
22246 #include <math.h>
22247 #endif
22249 int (*ptr)() = (int (*)())sqrtl;
22252 main ()
22254 return 0;
22257 _ACEOF
22258 if ac_fn_c_try_link "$LINENO"; then :
22259 gcc_cv_math_func_sqrtl=yes
22260 else
22261 gcc_cv_math_func_sqrtl=no
22263 rm -f core conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22267 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22268 if test $gcc_cv_math_func_sqrtl = yes; then
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SQRTL 1
22272 _ACEOF
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22280 $as_echo_n "checking for csqrtf... " >&6; }
22281 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 if test x$gcc_no_link = xyes; then
22285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22290 #ifdef HAVE_COMPLEX_H
22291 #include <complex.h>
22292 #endif
22293 #ifdef HAVE_MATH_H
22294 #include <math.h>
22295 #endif
22297 int (*ptr)() = (int (*)())csqrtf;
22300 main ()
22302 return 0;
22305 _ACEOF
22306 if ac_fn_c_try_link "$LINENO"; then :
22307 gcc_cv_math_func_csqrtf=yes
22308 else
22309 gcc_cv_math_func_csqrtf=no
22311 rm -f core conftest.err conftest.$ac_objext \
22312 conftest$ac_exeext conftest.$ac_ext
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22315 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22316 if test $gcc_cv_math_func_csqrtf = yes; then
22318 cat >>confdefs.h <<_ACEOF
22319 #define HAVE_CSQRTF 1
22320 _ACEOF
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22328 $as_echo_n "checking for csqrt... " >&6; }
22329 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 if test x$gcc_no_link = xyes; then
22333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22338 #ifdef HAVE_COMPLEX_H
22339 #include <complex.h>
22340 #endif
22341 #ifdef HAVE_MATH_H
22342 #include <math.h>
22343 #endif
22345 int (*ptr)() = (int (*)())csqrt;
22348 main ()
22350 return 0;
22353 _ACEOF
22354 if ac_fn_c_try_link "$LINENO"; then :
22355 gcc_cv_math_func_csqrt=yes
22356 else
22357 gcc_cv_math_func_csqrt=no
22359 rm -f core conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22363 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22364 if test $gcc_cv_math_func_csqrt = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_CSQRT 1
22368 _ACEOF
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22376 $as_echo_n "checking for csqrtl... " >&6; }
22377 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22378 $as_echo_n "(cached) " >&6
22379 else
22380 if test x$gcc_no_link = xyes; then
22381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384 /* end confdefs.h. */
22386 #ifdef HAVE_COMPLEX_H
22387 #include <complex.h>
22388 #endif
22389 #ifdef HAVE_MATH_H
22390 #include <math.h>
22391 #endif
22393 int (*ptr)() = (int (*)())csqrtl;
22396 main ()
22398 return 0;
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"; then :
22403 gcc_cv_math_func_csqrtl=yes
22404 else
22405 gcc_cv_math_func_csqrtl=no
22407 rm -f core conftest.err conftest.$ac_objext \
22408 conftest$ac_exeext conftest.$ac_ext
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22411 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22412 if test $gcc_cv_math_func_csqrtl = yes; then
22414 cat >>confdefs.h <<_ACEOF
22415 #define HAVE_CSQRTL 1
22416 _ACEOF
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22424 $as_echo_n "checking for tanf... " >&6; }
22425 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 if test x$gcc_no_link = xyes; then
22429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22434 #ifdef HAVE_COMPLEX_H
22435 #include <complex.h>
22436 #endif
22437 #ifdef HAVE_MATH_H
22438 #include <math.h>
22439 #endif
22441 int (*ptr)() = (int (*)())tanf;
22444 main ()
22446 return 0;
22449 _ACEOF
22450 if ac_fn_c_try_link "$LINENO"; then :
22451 gcc_cv_math_func_tanf=yes
22452 else
22453 gcc_cv_math_func_tanf=no
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22459 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22460 if test $gcc_cv_math_func_tanf = yes; then
22462 cat >>confdefs.h <<_ACEOF
22463 #define HAVE_TANF 1
22464 _ACEOF
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22472 $as_echo_n "checking for tan... " >&6; }
22473 if test "${gcc_cv_math_func_tan+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 if test x$gcc_no_link = xyes; then
22477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22482 #ifdef HAVE_COMPLEX_H
22483 #include <complex.h>
22484 #endif
22485 #ifdef HAVE_MATH_H
22486 #include <math.h>
22487 #endif
22489 int (*ptr)() = (int (*)())tan;
22492 main ()
22494 return 0;
22497 _ACEOF
22498 if ac_fn_c_try_link "$LINENO"; then :
22499 gcc_cv_math_func_tan=yes
22500 else
22501 gcc_cv_math_func_tan=no
22503 rm -f core conftest.err conftest.$ac_objext \
22504 conftest$ac_exeext conftest.$ac_ext
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22507 $as_echo "$gcc_cv_math_func_tan" >&6; }
22508 if test $gcc_cv_math_func_tan = yes; then
22510 cat >>confdefs.h <<_ACEOF
22511 #define HAVE_TAN 1
22512 _ACEOF
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22520 $as_echo_n "checking for tanl... " >&6; }
22521 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22522 $as_echo_n "(cached) " >&6
22523 else
22524 if test x$gcc_no_link = xyes; then
22525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h. */
22530 #ifdef HAVE_COMPLEX_H
22531 #include <complex.h>
22532 #endif
22533 #ifdef HAVE_MATH_H
22534 #include <math.h>
22535 #endif
22537 int (*ptr)() = (int (*)())tanl;
22540 main ()
22542 return 0;
22545 _ACEOF
22546 if ac_fn_c_try_link "$LINENO"; then :
22547 gcc_cv_math_func_tanl=yes
22548 else
22549 gcc_cv_math_func_tanl=no
22551 rm -f core conftest.err conftest.$ac_objext \
22552 conftest$ac_exeext conftest.$ac_ext
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22555 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22556 if test $gcc_cv_math_func_tanl = yes; then
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_TANL 1
22560 _ACEOF
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22568 $as_echo_n "checking for ctanf... " >&6; }
22569 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22570 $as_echo_n "(cached) " >&6
22571 else
22572 if test x$gcc_no_link = xyes; then
22573 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576 /* end confdefs.h. */
22578 #ifdef HAVE_COMPLEX_H
22579 #include <complex.h>
22580 #endif
22581 #ifdef HAVE_MATH_H
22582 #include <math.h>
22583 #endif
22585 int (*ptr)() = (int (*)())ctanf;
22588 main ()
22590 return 0;
22593 _ACEOF
22594 if ac_fn_c_try_link "$LINENO"; then :
22595 gcc_cv_math_func_ctanf=yes
22596 else
22597 gcc_cv_math_func_ctanf=no
22599 rm -f core conftest.err conftest.$ac_objext \
22600 conftest$ac_exeext conftest.$ac_ext
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22603 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22604 if test $gcc_cv_math_func_ctanf = yes; then
22606 cat >>confdefs.h <<_ACEOF
22607 #define HAVE_CTANF 1
22608 _ACEOF
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22616 $as_echo_n "checking for ctan... " >&6; }
22617 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22619 else
22620 if test x$gcc_no_link = xyes; then
22621 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22626 #ifdef HAVE_COMPLEX_H
22627 #include <complex.h>
22628 #endif
22629 #ifdef HAVE_MATH_H
22630 #include <math.h>
22631 #endif
22633 int (*ptr)() = (int (*)())ctan;
22636 main ()
22638 return 0;
22641 _ACEOF
22642 if ac_fn_c_try_link "$LINENO"; then :
22643 gcc_cv_math_func_ctan=yes
22644 else
22645 gcc_cv_math_func_ctan=no
22647 rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22651 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22652 if test $gcc_cv_math_func_ctan = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_CTAN 1
22656 _ACEOF
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22664 $as_echo_n "checking for ctanl... " >&6; }
22665 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22666 $as_echo_n "(cached) " >&6
22667 else
22668 if test x$gcc_no_link = xyes; then
22669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22674 #ifdef HAVE_COMPLEX_H
22675 #include <complex.h>
22676 #endif
22677 #ifdef HAVE_MATH_H
22678 #include <math.h>
22679 #endif
22681 int (*ptr)() = (int (*)())ctanl;
22684 main ()
22686 return 0;
22689 _ACEOF
22690 if ac_fn_c_try_link "$LINENO"; then :
22691 gcc_cv_math_func_ctanl=yes
22692 else
22693 gcc_cv_math_func_ctanl=no
22695 rm -f core conftest.err conftest.$ac_objext \
22696 conftest$ac_exeext conftest.$ac_ext
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22699 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22700 if test $gcc_cv_math_func_ctanl = yes; then
22702 cat >>confdefs.h <<_ACEOF
22703 #define HAVE_CTANL 1
22704 _ACEOF
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22712 $as_echo_n "checking for tanhf... " >&6; }
22713 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22714 $as_echo_n "(cached) " >&6
22715 else
22716 if test x$gcc_no_link = xyes; then
22717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22720 /* end confdefs.h. */
22722 #ifdef HAVE_COMPLEX_H
22723 #include <complex.h>
22724 #endif
22725 #ifdef HAVE_MATH_H
22726 #include <math.h>
22727 #endif
22729 int (*ptr)() = (int (*)())tanhf;
22732 main ()
22734 return 0;
22737 _ACEOF
22738 if ac_fn_c_try_link "$LINENO"; then :
22739 gcc_cv_math_func_tanhf=yes
22740 else
22741 gcc_cv_math_func_tanhf=no
22743 rm -f core conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22747 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22748 if test $gcc_cv_math_func_tanhf = yes; then
22750 cat >>confdefs.h <<_ACEOF
22751 #define HAVE_TANHF 1
22752 _ACEOF
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22760 $as_echo_n "checking for tanh... " >&6; }
22761 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22762 $as_echo_n "(cached) " >&6
22763 else
22764 if test x$gcc_no_link = xyes; then
22765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22770 #ifdef HAVE_COMPLEX_H
22771 #include <complex.h>
22772 #endif
22773 #ifdef HAVE_MATH_H
22774 #include <math.h>
22775 #endif
22777 int (*ptr)() = (int (*)())tanh;
22780 main ()
22782 return 0;
22785 _ACEOF
22786 if ac_fn_c_try_link "$LINENO"; then :
22787 gcc_cv_math_func_tanh=yes
22788 else
22789 gcc_cv_math_func_tanh=no
22791 rm -f core conftest.err conftest.$ac_objext \
22792 conftest$ac_exeext conftest.$ac_ext
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22795 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22796 if test $gcc_cv_math_func_tanh = yes; then
22798 cat >>confdefs.h <<_ACEOF
22799 #define HAVE_TANH 1
22800 _ACEOF
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22808 $as_echo_n "checking for tanhl... " >&6; }
22809 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22810 $as_echo_n "(cached) " >&6
22811 else
22812 if test x$gcc_no_link = xyes; then
22813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22816 /* end confdefs.h. */
22818 #ifdef HAVE_COMPLEX_H
22819 #include <complex.h>
22820 #endif
22821 #ifdef HAVE_MATH_H
22822 #include <math.h>
22823 #endif
22825 int (*ptr)() = (int (*)())tanhl;
22828 main ()
22830 return 0;
22833 _ACEOF
22834 if ac_fn_c_try_link "$LINENO"; then :
22835 gcc_cv_math_func_tanhl=yes
22836 else
22837 gcc_cv_math_func_tanhl=no
22839 rm -f core conftest.err conftest.$ac_objext \
22840 conftest$ac_exeext conftest.$ac_ext
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22843 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22844 if test $gcc_cv_math_func_tanhl = yes; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define HAVE_TANHL 1
22848 _ACEOF
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22856 $as_echo_n "checking for ctanhf... " >&6; }
22857 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22858 $as_echo_n "(cached) " >&6
22859 else
22860 if test x$gcc_no_link = xyes; then
22861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864 /* end confdefs.h. */
22866 #ifdef HAVE_COMPLEX_H
22867 #include <complex.h>
22868 #endif
22869 #ifdef HAVE_MATH_H
22870 #include <math.h>
22871 #endif
22873 int (*ptr)() = (int (*)())ctanhf;
22876 main ()
22878 return 0;
22881 _ACEOF
22882 if ac_fn_c_try_link "$LINENO"; then :
22883 gcc_cv_math_func_ctanhf=yes
22884 else
22885 gcc_cv_math_func_ctanhf=no
22887 rm -f core conftest.err conftest.$ac_objext \
22888 conftest$ac_exeext conftest.$ac_ext
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22891 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22892 if test $gcc_cv_math_func_ctanhf = yes; then
22894 cat >>confdefs.h <<_ACEOF
22895 #define HAVE_CTANHF 1
22896 _ACEOF
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22904 $as_echo_n "checking for ctanh... " >&6; }
22905 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908 if test x$gcc_no_link = xyes; then
22909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22914 #ifdef HAVE_COMPLEX_H
22915 #include <complex.h>
22916 #endif
22917 #ifdef HAVE_MATH_H
22918 #include <math.h>
22919 #endif
22921 int (*ptr)() = (int (*)())ctanh;
22924 main ()
22926 return 0;
22929 _ACEOF
22930 if ac_fn_c_try_link "$LINENO"; then :
22931 gcc_cv_math_func_ctanh=yes
22932 else
22933 gcc_cv_math_func_ctanh=no
22935 rm -f core conftest.err conftest.$ac_objext \
22936 conftest$ac_exeext conftest.$ac_ext
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22939 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22940 if test $gcc_cv_math_func_ctanh = yes; then
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_CTANH 1
22944 _ACEOF
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22952 $as_echo_n "checking for ctanhl... " >&6; }
22953 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
22954 $as_echo_n "(cached) " >&6
22955 else
22956 if test x$gcc_no_link = xyes; then
22957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22962 #ifdef HAVE_COMPLEX_H
22963 #include <complex.h>
22964 #endif
22965 #ifdef HAVE_MATH_H
22966 #include <math.h>
22967 #endif
22969 int (*ptr)() = (int (*)())ctanhl;
22972 main ()
22974 return 0;
22977 _ACEOF
22978 if ac_fn_c_try_link "$LINENO"; then :
22979 gcc_cv_math_func_ctanhl=yes
22980 else
22981 gcc_cv_math_func_ctanhl=no
22983 rm -f core conftest.err conftest.$ac_objext \
22984 conftest$ac_exeext conftest.$ac_ext
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
22987 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
22988 if test $gcc_cv_math_func_ctanhl = yes; then
22990 cat >>confdefs.h <<_ACEOF
22991 #define HAVE_CTANHL 1
22992 _ACEOF
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23000 $as_echo_n "checking for truncf... " >&6; }
23001 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23002 $as_echo_n "(cached) " >&6
23003 else
23004 if test x$gcc_no_link = xyes; then
23005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23010 #ifdef HAVE_COMPLEX_H
23011 #include <complex.h>
23012 #endif
23013 #ifdef HAVE_MATH_H
23014 #include <math.h>
23015 #endif
23017 int (*ptr)() = (int (*)())truncf;
23020 main ()
23022 return 0;
23025 _ACEOF
23026 if ac_fn_c_try_link "$LINENO"; then :
23027 gcc_cv_math_func_truncf=yes
23028 else
23029 gcc_cv_math_func_truncf=no
23031 rm -f core conftest.err conftest.$ac_objext \
23032 conftest$ac_exeext conftest.$ac_ext
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23035 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23036 if test $gcc_cv_math_func_truncf = yes; then
23038 cat >>confdefs.h <<_ACEOF
23039 #define HAVE_TRUNCF 1
23040 _ACEOF
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23048 $as_echo_n "checking for trunc... " >&6; }
23049 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23050 $as_echo_n "(cached) " >&6
23051 else
23052 if test x$gcc_no_link = xyes; then
23053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 #ifdef HAVE_COMPLEX_H
23059 #include <complex.h>
23060 #endif
23061 #ifdef HAVE_MATH_H
23062 #include <math.h>
23063 #endif
23065 int (*ptr)() = (int (*)())trunc;
23068 main ()
23070 return 0;
23073 _ACEOF
23074 if ac_fn_c_try_link "$LINENO"; then :
23075 gcc_cv_math_func_trunc=yes
23076 else
23077 gcc_cv_math_func_trunc=no
23079 rm -f core conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23083 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23084 if test $gcc_cv_math_func_trunc = yes; then
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_TRUNC 1
23088 _ACEOF
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23096 $as_echo_n "checking for truncl... " >&6; }
23097 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23099 else
23100 if test x$gcc_no_link = xyes; then
23101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23106 #ifdef HAVE_COMPLEX_H
23107 #include <complex.h>
23108 #endif
23109 #ifdef HAVE_MATH_H
23110 #include <math.h>
23111 #endif
23113 int (*ptr)() = (int (*)())truncl;
23116 main ()
23118 return 0;
23121 _ACEOF
23122 if ac_fn_c_try_link "$LINENO"; then :
23123 gcc_cv_math_func_truncl=yes
23124 else
23125 gcc_cv_math_func_truncl=no
23127 rm -f core conftest.err conftest.$ac_objext \
23128 conftest$ac_exeext conftest.$ac_ext
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23131 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23132 if test $gcc_cv_math_func_truncl = yes; then
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_TRUNCL 1
23136 _ACEOF
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23144 $as_echo_n "checking for erff... " >&6; }
23145 if test "${gcc_cv_math_func_erff+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23147 else
23148 if test x$gcc_no_link = xyes; then
23149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h. */
23154 #ifdef HAVE_COMPLEX_H
23155 #include <complex.h>
23156 #endif
23157 #ifdef HAVE_MATH_H
23158 #include <math.h>
23159 #endif
23161 int (*ptr)() = (int (*)())erff;
23164 main ()
23166 return 0;
23169 _ACEOF
23170 if ac_fn_c_try_link "$LINENO"; then :
23171 gcc_cv_math_func_erff=yes
23172 else
23173 gcc_cv_math_func_erff=no
23175 rm -f core conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23179 $as_echo "$gcc_cv_math_func_erff" >&6; }
23180 if test $gcc_cv_math_func_erff = yes; then
23182 cat >>confdefs.h <<_ACEOF
23183 #define HAVE_ERFF 1
23184 _ACEOF
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23192 $as_echo_n "checking for erf... " >&6; }
23193 if test "${gcc_cv_math_func_erf+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 if test x$gcc_no_link = xyes; then
23197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23202 #ifdef HAVE_COMPLEX_H
23203 #include <complex.h>
23204 #endif
23205 #ifdef HAVE_MATH_H
23206 #include <math.h>
23207 #endif
23209 int (*ptr)() = (int (*)())erf;
23212 main ()
23214 return 0;
23217 _ACEOF
23218 if ac_fn_c_try_link "$LINENO"; then :
23219 gcc_cv_math_func_erf=yes
23220 else
23221 gcc_cv_math_func_erf=no
23223 rm -f core conftest.err conftest.$ac_objext \
23224 conftest$ac_exeext conftest.$ac_ext
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23227 $as_echo "$gcc_cv_math_func_erf" >&6; }
23228 if test $gcc_cv_math_func_erf = yes; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_ERF 1
23232 _ACEOF
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23240 $as_echo_n "checking for erfl... " >&6; }
23241 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23242 $as_echo_n "(cached) " >&6
23243 else
23244 if test x$gcc_no_link = xyes; then
23245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23250 #ifdef HAVE_COMPLEX_H
23251 #include <complex.h>
23252 #endif
23253 #ifdef HAVE_MATH_H
23254 #include <math.h>
23255 #endif
23257 int (*ptr)() = (int (*)())erfl;
23260 main ()
23262 return 0;
23265 _ACEOF
23266 if ac_fn_c_try_link "$LINENO"; then :
23267 gcc_cv_math_func_erfl=yes
23268 else
23269 gcc_cv_math_func_erfl=no
23271 rm -f core conftest.err conftest.$ac_objext \
23272 conftest$ac_exeext conftest.$ac_ext
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23275 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23276 if test $gcc_cv_math_func_erfl = yes; then
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_ERFL 1
23280 _ACEOF
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23288 $as_echo_n "checking for erfcf... " >&6; }
23289 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23292 if test x$gcc_no_link = xyes; then
23293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23298 #ifdef HAVE_COMPLEX_H
23299 #include <complex.h>
23300 #endif
23301 #ifdef HAVE_MATH_H
23302 #include <math.h>
23303 #endif
23305 int (*ptr)() = (int (*)())erfcf;
23308 main ()
23310 return 0;
23313 _ACEOF
23314 if ac_fn_c_try_link "$LINENO"; then :
23315 gcc_cv_math_func_erfcf=yes
23316 else
23317 gcc_cv_math_func_erfcf=no
23319 rm -f core conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23323 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23324 if test $gcc_cv_math_func_erfcf = yes; then
23326 cat >>confdefs.h <<_ACEOF
23327 #define HAVE_ERFCF 1
23328 _ACEOF
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23336 $as_echo_n "checking for erfc... " >&6; }
23337 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 if test x$gcc_no_link = xyes; then
23341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23346 #ifdef HAVE_COMPLEX_H
23347 #include <complex.h>
23348 #endif
23349 #ifdef HAVE_MATH_H
23350 #include <math.h>
23351 #endif
23353 int (*ptr)() = (int (*)())erfc;
23356 main ()
23358 return 0;
23361 _ACEOF
23362 if ac_fn_c_try_link "$LINENO"; then :
23363 gcc_cv_math_func_erfc=yes
23364 else
23365 gcc_cv_math_func_erfc=no
23367 rm -f core conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23371 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23372 if test $gcc_cv_math_func_erfc = yes; then
23374 cat >>confdefs.h <<_ACEOF
23375 #define HAVE_ERFC 1
23376 _ACEOF
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23384 $as_echo_n "checking for erfcl... " >&6; }
23385 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23386 $as_echo_n "(cached) " >&6
23387 else
23388 if test x$gcc_no_link = xyes; then
23389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392 /* end confdefs.h. */
23394 #ifdef HAVE_COMPLEX_H
23395 #include <complex.h>
23396 #endif
23397 #ifdef HAVE_MATH_H
23398 #include <math.h>
23399 #endif
23401 int (*ptr)() = (int (*)())erfcl;
23404 main ()
23406 return 0;
23409 _ACEOF
23410 if ac_fn_c_try_link "$LINENO"; then :
23411 gcc_cv_math_func_erfcl=yes
23412 else
23413 gcc_cv_math_func_erfcl=no
23415 rm -f core conftest.err conftest.$ac_objext \
23416 conftest$ac_exeext conftest.$ac_ext
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23419 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23420 if test $gcc_cv_math_func_erfcl = yes; then
23422 cat >>confdefs.h <<_ACEOF
23423 #define HAVE_ERFCL 1
23424 _ACEOF
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23432 $as_echo_n "checking for j0f... " >&6; }
23433 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23435 else
23436 if test x$gcc_no_link = xyes; then
23437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h. */
23442 #ifdef HAVE_COMPLEX_H
23443 #include <complex.h>
23444 #endif
23445 #ifdef HAVE_MATH_H
23446 #include <math.h>
23447 #endif
23449 int (*ptr)() = (int (*)())j0f;
23452 main ()
23454 return 0;
23457 _ACEOF
23458 if ac_fn_c_try_link "$LINENO"; then :
23459 gcc_cv_math_func_j0f=yes
23460 else
23461 gcc_cv_math_func_j0f=no
23463 rm -f core conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23467 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23468 if test $gcc_cv_math_func_j0f = yes; then
23470 cat >>confdefs.h <<_ACEOF
23471 #define HAVE_J0F 1
23472 _ACEOF
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23480 $as_echo_n "checking for j0... " >&6; }
23481 if test "${gcc_cv_math_func_j0+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23483 else
23484 if test x$gcc_no_link = xyes; then
23485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488 /* end confdefs.h. */
23490 #ifdef HAVE_COMPLEX_H
23491 #include <complex.h>
23492 #endif
23493 #ifdef HAVE_MATH_H
23494 #include <math.h>
23495 #endif
23497 int (*ptr)() = (int (*)())j0;
23500 main ()
23502 return 0;
23505 _ACEOF
23506 if ac_fn_c_try_link "$LINENO"; then :
23507 gcc_cv_math_func_j0=yes
23508 else
23509 gcc_cv_math_func_j0=no
23511 rm -f core conftest.err conftest.$ac_objext \
23512 conftest$ac_exeext conftest.$ac_ext
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23515 $as_echo "$gcc_cv_math_func_j0" >&6; }
23516 if test $gcc_cv_math_func_j0 = yes; then
23518 cat >>confdefs.h <<_ACEOF
23519 #define HAVE_J0 1
23520 _ACEOF
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23528 $as_echo_n "checking for j0l... " >&6; }
23529 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23530 $as_echo_n "(cached) " >&6
23531 else
23532 if test x$gcc_no_link = xyes; then
23533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23538 #ifdef HAVE_COMPLEX_H
23539 #include <complex.h>
23540 #endif
23541 #ifdef HAVE_MATH_H
23542 #include <math.h>
23543 #endif
23545 int (*ptr)() = (int (*)())j0l;
23548 main ()
23550 return 0;
23553 _ACEOF
23554 if ac_fn_c_try_link "$LINENO"; then :
23555 gcc_cv_math_func_j0l=yes
23556 else
23557 gcc_cv_math_func_j0l=no
23559 rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23563 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23564 if test $gcc_cv_math_func_j0l = yes; then
23566 cat >>confdefs.h <<_ACEOF
23567 #define HAVE_J0L 1
23568 _ACEOF
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23576 $as_echo_n "checking for j1f... " >&6; }
23577 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23579 else
23580 if test x$gcc_no_link = xyes; then
23581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584 /* end confdefs.h. */
23586 #ifdef HAVE_COMPLEX_H
23587 #include <complex.h>
23588 #endif
23589 #ifdef HAVE_MATH_H
23590 #include <math.h>
23591 #endif
23593 int (*ptr)() = (int (*)())j1f;
23596 main ()
23598 return 0;
23601 _ACEOF
23602 if ac_fn_c_try_link "$LINENO"; then :
23603 gcc_cv_math_func_j1f=yes
23604 else
23605 gcc_cv_math_func_j1f=no
23607 rm -f core conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23611 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23612 if test $gcc_cv_math_func_j1f = yes; then
23614 cat >>confdefs.h <<_ACEOF
23615 #define HAVE_J1F 1
23616 _ACEOF
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23624 $as_echo_n "checking for j1... " >&6; }
23625 if test "${gcc_cv_math_func_j1+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 if test x$gcc_no_link = xyes; then
23629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23634 #ifdef HAVE_COMPLEX_H
23635 #include <complex.h>
23636 #endif
23637 #ifdef HAVE_MATH_H
23638 #include <math.h>
23639 #endif
23641 int (*ptr)() = (int (*)())j1;
23644 main ()
23646 return 0;
23649 _ACEOF
23650 if ac_fn_c_try_link "$LINENO"; then :
23651 gcc_cv_math_func_j1=yes
23652 else
23653 gcc_cv_math_func_j1=no
23655 rm -f core conftest.err conftest.$ac_objext \
23656 conftest$ac_exeext conftest.$ac_ext
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23659 $as_echo "$gcc_cv_math_func_j1" >&6; }
23660 if test $gcc_cv_math_func_j1 = yes; then
23662 cat >>confdefs.h <<_ACEOF
23663 #define HAVE_J1 1
23664 _ACEOF
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23672 $as_echo_n "checking for j1l... " >&6; }
23673 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23674 $as_echo_n "(cached) " >&6
23675 else
23676 if test x$gcc_no_link = xyes; then
23677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h. */
23682 #ifdef HAVE_COMPLEX_H
23683 #include <complex.h>
23684 #endif
23685 #ifdef HAVE_MATH_H
23686 #include <math.h>
23687 #endif
23689 int (*ptr)() = (int (*)())j1l;
23692 main ()
23694 return 0;
23697 _ACEOF
23698 if ac_fn_c_try_link "$LINENO"; then :
23699 gcc_cv_math_func_j1l=yes
23700 else
23701 gcc_cv_math_func_j1l=no
23703 rm -f core conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23707 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23708 if test $gcc_cv_math_func_j1l = yes; then
23710 cat >>confdefs.h <<_ACEOF
23711 #define HAVE_J1L 1
23712 _ACEOF
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23720 $as_echo_n "checking for jnf... " >&6; }
23721 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 if test x$gcc_no_link = xyes; then
23725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23730 #ifdef HAVE_COMPLEX_H
23731 #include <complex.h>
23732 #endif
23733 #ifdef HAVE_MATH_H
23734 #include <math.h>
23735 #endif
23737 int (*ptr)() = (int (*)())jnf;
23740 main ()
23742 return 0;
23745 _ACEOF
23746 if ac_fn_c_try_link "$LINENO"; then :
23747 gcc_cv_math_func_jnf=yes
23748 else
23749 gcc_cv_math_func_jnf=no
23751 rm -f core conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23755 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23756 if test $gcc_cv_math_func_jnf = yes; then
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_JNF 1
23760 _ACEOF
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23768 $as_echo_n "checking for jn... " >&6; }
23769 if test "${gcc_cv_math_func_jn+set}" = set; then :
23770 $as_echo_n "(cached) " >&6
23771 else
23772 if test x$gcc_no_link = xyes; then
23773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23778 #ifdef HAVE_COMPLEX_H
23779 #include <complex.h>
23780 #endif
23781 #ifdef HAVE_MATH_H
23782 #include <math.h>
23783 #endif
23785 int (*ptr)() = (int (*)())jn;
23788 main ()
23790 return 0;
23793 _ACEOF
23794 if ac_fn_c_try_link "$LINENO"; then :
23795 gcc_cv_math_func_jn=yes
23796 else
23797 gcc_cv_math_func_jn=no
23799 rm -f core conftest.err conftest.$ac_objext \
23800 conftest$ac_exeext conftest.$ac_ext
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23803 $as_echo "$gcc_cv_math_func_jn" >&6; }
23804 if test $gcc_cv_math_func_jn = yes; then
23806 cat >>confdefs.h <<_ACEOF
23807 #define HAVE_JN 1
23808 _ACEOF
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23816 $as_echo_n "checking for jnl... " >&6; }
23817 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23819 else
23820 if test x$gcc_no_link = xyes; then
23821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23826 #ifdef HAVE_COMPLEX_H
23827 #include <complex.h>
23828 #endif
23829 #ifdef HAVE_MATH_H
23830 #include <math.h>
23831 #endif
23833 int (*ptr)() = (int (*)())jnl;
23836 main ()
23838 return 0;
23841 _ACEOF
23842 if ac_fn_c_try_link "$LINENO"; then :
23843 gcc_cv_math_func_jnl=yes
23844 else
23845 gcc_cv_math_func_jnl=no
23847 rm -f core conftest.err conftest.$ac_objext \
23848 conftest$ac_exeext conftest.$ac_ext
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23851 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23852 if test $gcc_cv_math_func_jnl = yes; then
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_JNL 1
23856 _ACEOF
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23864 $as_echo_n "checking for y0f... " >&6; }
23865 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 if test x$gcc_no_link = xyes; then
23869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23874 #ifdef HAVE_COMPLEX_H
23875 #include <complex.h>
23876 #endif
23877 #ifdef HAVE_MATH_H
23878 #include <math.h>
23879 #endif
23881 int (*ptr)() = (int (*)())y0f;
23884 main ()
23886 return 0;
23889 _ACEOF
23890 if ac_fn_c_try_link "$LINENO"; then :
23891 gcc_cv_math_func_y0f=yes
23892 else
23893 gcc_cv_math_func_y0f=no
23895 rm -f core conftest.err conftest.$ac_objext \
23896 conftest$ac_exeext conftest.$ac_ext
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23899 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23900 if test $gcc_cv_math_func_y0f = yes; then
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_Y0F 1
23904 _ACEOF
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23912 $as_echo_n "checking for y0... " >&6; }
23913 if test "${gcc_cv_math_func_y0+set}" = set; then :
23914 $as_echo_n "(cached) " >&6
23915 else
23916 if test x$gcc_no_link = xyes; then
23917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920 /* end confdefs.h. */
23922 #ifdef HAVE_COMPLEX_H
23923 #include <complex.h>
23924 #endif
23925 #ifdef HAVE_MATH_H
23926 #include <math.h>
23927 #endif
23929 int (*ptr)() = (int (*)())y0;
23932 main ()
23934 return 0;
23937 _ACEOF
23938 if ac_fn_c_try_link "$LINENO"; then :
23939 gcc_cv_math_func_y0=yes
23940 else
23941 gcc_cv_math_func_y0=no
23943 rm -f core conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext conftest.$ac_ext
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23947 $as_echo "$gcc_cv_math_func_y0" >&6; }
23948 if test $gcc_cv_math_func_y0 = yes; then
23950 cat >>confdefs.h <<_ACEOF
23951 #define HAVE_Y0 1
23952 _ACEOF
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23960 $as_echo_n "checking for y0l... " >&6; }
23961 if test "${gcc_cv_math_func_y0l+set}" = set; then :
23962 $as_echo_n "(cached) " >&6
23963 else
23964 if test x$gcc_no_link = xyes; then
23965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968 /* end confdefs.h. */
23970 #ifdef HAVE_COMPLEX_H
23971 #include <complex.h>
23972 #endif
23973 #ifdef HAVE_MATH_H
23974 #include <math.h>
23975 #endif
23977 int (*ptr)() = (int (*)())y0l;
23980 main ()
23982 return 0;
23985 _ACEOF
23986 if ac_fn_c_try_link "$LINENO"; then :
23987 gcc_cv_math_func_y0l=yes
23988 else
23989 gcc_cv_math_func_y0l=no
23991 rm -f core conftest.err conftest.$ac_objext \
23992 conftest$ac_exeext conftest.$ac_ext
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
23995 $as_echo "$gcc_cv_math_func_y0l" >&6; }
23996 if test $gcc_cv_math_func_y0l = yes; then
23998 cat >>confdefs.h <<_ACEOF
23999 #define HAVE_Y0L 1
24000 _ACEOF
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24008 $as_echo_n "checking for y1f... " >&6; }
24009 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 if test x$gcc_no_link = xyes; then
24013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h. */
24018 #ifdef HAVE_COMPLEX_H
24019 #include <complex.h>
24020 #endif
24021 #ifdef HAVE_MATH_H
24022 #include <math.h>
24023 #endif
24025 int (*ptr)() = (int (*)())y1f;
24028 main ()
24030 return 0;
24033 _ACEOF
24034 if ac_fn_c_try_link "$LINENO"; then :
24035 gcc_cv_math_func_y1f=yes
24036 else
24037 gcc_cv_math_func_y1f=no
24039 rm -f core conftest.err conftest.$ac_objext \
24040 conftest$ac_exeext conftest.$ac_ext
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24043 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24044 if test $gcc_cv_math_func_y1f = yes; then
24046 cat >>confdefs.h <<_ACEOF
24047 #define HAVE_Y1F 1
24048 _ACEOF
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24056 $as_echo_n "checking for y1... " >&6; }
24057 if test "${gcc_cv_math_func_y1+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 if test x$gcc_no_link = xyes; then
24061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24066 #ifdef HAVE_COMPLEX_H
24067 #include <complex.h>
24068 #endif
24069 #ifdef HAVE_MATH_H
24070 #include <math.h>
24071 #endif
24073 int (*ptr)() = (int (*)())y1;
24076 main ()
24078 return 0;
24081 _ACEOF
24082 if ac_fn_c_try_link "$LINENO"; then :
24083 gcc_cv_math_func_y1=yes
24084 else
24085 gcc_cv_math_func_y1=no
24087 rm -f core conftest.err conftest.$ac_objext \
24088 conftest$ac_exeext conftest.$ac_ext
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24091 $as_echo "$gcc_cv_math_func_y1" >&6; }
24092 if test $gcc_cv_math_func_y1 = yes; then
24094 cat >>confdefs.h <<_ACEOF
24095 #define HAVE_Y1 1
24096 _ACEOF
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24104 $as_echo_n "checking for y1l... " >&6; }
24105 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24107 else
24108 if test x$gcc_no_link = xyes; then
24109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112 /* end confdefs.h. */
24114 #ifdef HAVE_COMPLEX_H
24115 #include <complex.h>
24116 #endif
24117 #ifdef HAVE_MATH_H
24118 #include <math.h>
24119 #endif
24121 int (*ptr)() = (int (*)())y1l;
24124 main ()
24126 return 0;
24129 _ACEOF
24130 if ac_fn_c_try_link "$LINENO"; then :
24131 gcc_cv_math_func_y1l=yes
24132 else
24133 gcc_cv_math_func_y1l=no
24135 rm -f core conftest.err conftest.$ac_objext \
24136 conftest$ac_exeext conftest.$ac_ext
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24139 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24140 if test $gcc_cv_math_func_y1l = yes; then
24142 cat >>confdefs.h <<_ACEOF
24143 #define HAVE_Y1L 1
24144 _ACEOF
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24152 $as_echo_n "checking for ynf... " >&6; }
24153 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 if test x$gcc_no_link = xyes; then
24157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24160 /* end confdefs.h. */
24162 #ifdef HAVE_COMPLEX_H
24163 #include <complex.h>
24164 #endif
24165 #ifdef HAVE_MATH_H
24166 #include <math.h>
24167 #endif
24169 int (*ptr)() = (int (*)())ynf;
24172 main ()
24174 return 0;
24177 _ACEOF
24178 if ac_fn_c_try_link "$LINENO"; then :
24179 gcc_cv_math_func_ynf=yes
24180 else
24181 gcc_cv_math_func_ynf=no
24183 rm -f core conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24187 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24188 if test $gcc_cv_math_func_ynf = yes; then
24190 cat >>confdefs.h <<_ACEOF
24191 #define HAVE_YNF 1
24192 _ACEOF
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24200 $as_echo_n "checking for yn... " >&6; }
24201 if test "${gcc_cv_math_func_yn+set}" = set; then :
24202 $as_echo_n "(cached) " >&6
24203 else
24204 if test x$gcc_no_link = xyes; then
24205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24210 #ifdef HAVE_COMPLEX_H
24211 #include <complex.h>
24212 #endif
24213 #ifdef HAVE_MATH_H
24214 #include <math.h>
24215 #endif
24217 int (*ptr)() = (int (*)())yn;
24220 main ()
24222 return 0;
24225 _ACEOF
24226 if ac_fn_c_try_link "$LINENO"; then :
24227 gcc_cv_math_func_yn=yes
24228 else
24229 gcc_cv_math_func_yn=no
24231 rm -f core conftest.err conftest.$ac_objext \
24232 conftest$ac_exeext conftest.$ac_ext
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24235 $as_echo "$gcc_cv_math_func_yn" >&6; }
24236 if test $gcc_cv_math_func_yn = yes; then
24238 cat >>confdefs.h <<_ACEOF
24239 #define HAVE_YN 1
24240 _ACEOF
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24248 $as_echo_n "checking for ynl... " >&6; }
24249 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24251 else
24252 if test x$gcc_no_link = xyes; then
24253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24256 /* end confdefs.h. */
24258 #ifdef HAVE_COMPLEX_H
24259 #include <complex.h>
24260 #endif
24261 #ifdef HAVE_MATH_H
24262 #include <math.h>
24263 #endif
24265 int (*ptr)() = (int (*)())ynl;
24268 main ()
24270 return 0;
24273 _ACEOF
24274 if ac_fn_c_try_link "$LINENO"; then :
24275 gcc_cv_math_func_ynl=yes
24276 else
24277 gcc_cv_math_func_ynl=no
24279 rm -f core conftest.err conftest.$ac_objext \
24280 conftest$ac_exeext conftest.$ac_ext
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24283 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24284 if test $gcc_cv_math_func_ynl = yes; then
24286 cat >>confdefs.h <<_ACEOF
24287 #define HAVE_YNL 1
24288 _ACEOF
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24296 $as_echo_n "checking for tgamma... " >&6; }
24297 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 if test x$gcc_no_link = xyes; then
24301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24304 /* end confdefs.h. */
24306 #ifdef HAVE_COMPLEX_H
24307 #include <complex.h>
24308 #endif
24309 #ifdef HAVE_MATH_H
24310 #include <math.h>
24311 #endif
24313 int (*ptr)() = (int (*)())tgamma;
24316 main ()
24318 return 0;
24321 _ACEOF
24322 if ac_fn_c_try_link "$LINENO"; then :
24323 gcc_cv_math_func_tgamma=yes
24324 else
24325 gcc_cv_math_func_tgamma=no
24327 rm -f core conftest.err conftest.$ac_objext \
24328 conftest$ac_exeext conftest.$ac_ext
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24331 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24332 if test $gcc_cv_math_func_tgamma = yes; then
24334 cat >>confdefs.h <<_ACEOF
24335 #define HAVE_TGAMMA 1
24336 _ACEOF
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24344 $as_echo_n "checking for tgammaf... " >&6; }
24345 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 if test x$gcc_no_link = xyes; then
24349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24354 #ifdef HAVE_COMPLEX_H
24355 #include <complex.h>
24356 #endif
24357 #ifdef HAVE_MATH_H
24358 #include <math.h>
24359 #endif
24361 int (*ptr)() = (int (*)())tgammaf;
24364 main ()
24366 return 0;
24369 _ACEOF
24370 if ac_fn_c_try_link "$LINENO"; then :
24371 gcc_cv_math_func_tgammaf=yes
24372 else
24373 gcc_cv_math_func_tgammaf=no
24375 rm -f core conftest.err conftest.$ac_objext \
24376 conftest$ac_exeext conftest.$ac_ext
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24379 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24380 if test $gcc_cv_math_func_tgammaf = yes; then
24382 cat >>confdefs.h <<_ACEOF
24383 #define HAVE_TGAMMAF 1
24384 _ACEOF
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24392 $as_echo_n "checking for tgammal... " >&6; }
24393 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24394 $as_echo_n "(cached) " >&6
24395 else
24396 if test x$gcc_no_link = xyes; then
24397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24402 #ifdef HAVE_COMPLEX_H
24403 #include <complex.h>
24404 #endif
24405 #ifdef HAVE_MATH_H
24406 #include <math.h>
24407 #endif
24409 int (*ptr)() = (int (*)())tgammal;
24412 main ()
24414 return 0;
24417 _ACEOF
24418 if ac_fn_c_try_link "$LINENO"; then :
24419 gcc_cv_math_func_tgammal=yes
24420 else
24421 gcc_cv_math_func_tgammal=no
24423 rm -f core conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24427 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24428 if test $gcc_cv_math_func_tgammal = yes; then
24430 cat >>confdefs.h <<_ACEOF
24431 #define HAVE_TGAMMAL 1
24432 _ACEOF
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24440 $as_echo_n "checking for lgamma... " >&6; }
24441 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 if test x$gcc_no_link = xyes; then
24445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24450 #ifdef HAVE_COMPLEX_H
24451 #include <complex.h>
24452 #endif
24453 #ifdef HAVE_MATH_H
24454 #include <math.h>
24455 #endif
24457 int (*ptr)() = (int (*)())lgamma;
24460 main ()
24462 return 0;
24465 _ACEOF
24466 if ac_fn_c_try_link "$LINENO"; then :
24467 gcc_cv_math_func_lgamma=yes
24468 else
24469 gcc_cv_math_func_lgamma=no
24471 rm -f core conftest.err conftest.$ac_objext \
24472 conftest$ac_exeext conftest.$ac_ext
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24475 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24476 if test $gcc_cv_math_func_lgamma = yes; then
24478 cat >>confdefs.h <<_ACEOF
24479 #define HAVE_LGAMMA 1
24480 _ACEOF
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24488 $as_echo_n "checking for lgammaf... " >&6; }
24489 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
24491 else
24492 if test x$gcc_no_link = xyes; then
24493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h. */
24498 #ifdef HAVE_COMPLEX_H
24499 #include <complex.h>
24500 #endif
24501 #ifdef HAVE_MATH_H
24502 #include <math.h>
24503 #endif
24505 int (*ptr)() = (int (*)())lgammaf;
24508 main ()
24510 return 0;
24513 _ACEOF
24514 if ac_fn_c_try_link "$LINENO"; then :
24515 gcc_cv_math_func_lgammaf=yes
24516 else
24517 gcc_cv_math_func_lgammaf=no
24519 rm -f core conftest.err conftest.$ac_objext \
24520 conftest$ac_exeext conftest.$ac_ext
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24523 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24524 if test $gcc_cv_math_func_lgammaf = yes; then
24526 cat >>confdefs.h <<_ACEOF
24527 #define HAVE_LGAMMAF 1
24528 _ACEOF
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24536 $as_echo_n "checking for lgammal... " >&6; }
24537 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 if test x$gcc_no_link = xyes; then
24541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24546 #ifdef HAVE_COMPLEX_H
24547 #include <complex.h>
24548 #endif
24549 #ifdef HAVE_MATH_H
24550 #include <math.h>
24551 #endif
24553 int (*ptr)() = (int (*)())lgammal;
24556 main ()
24558 return 0;
24561 _ACEOF
24562 if ac_fn_c_try_link "$LINENO"; then :
24563 gcc_cv_math_func_lgammal=yes
24564 else
24565 gcc_cv_math_func_lgammal=no
24567 rm -f core conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24571 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24572 if test $gcc_cv_math_func_lgammal = yes; then
24574 cat >>confdefs.h <<_ACEOF
24575 #define HAVE_LGAMMAL 1
24576 _ACEOF
24581 # Check for GFORTRAN_C99_1.1 funcs
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24586 $as_echo_n "checking for cacos... " >&6; }
24587 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24588 $as_echo_n "(cached) " >&6
24589 else
24590 if test x$gcc_no_link = xyes; then
24591 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24594 /* end confdefs.h. */
24596 #ifdef HAVE_COMPLEX_H
24597 #include <complex.h>
24598 #endif
24599 #ifdef HAVE_MATH_H
24600 #include <math.h>
24601 #endif
24603 int (*ptr)() = (int (*)())cacos;
24606 main ()
24608 return 0;
24611 _ACEOF
24612 if ac_fn_c_try_link "$LINENO"; then :
24613 gcc_cv_math_func_cacos=yes
24614 else
24615 gcc_cv_math_func_cacos=no
24617 rm -f core conftest.err conftest.$ac_objext \
24618 conftest$ac_exeext conftest.$ac_ext
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24621 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24622 if test $gcc_cv_math_func_cacos = yes; then
24624 cat >>confdefs.h <<_ACEOF
24625 #define HAVE_CACOS 1
24626 _ACEOF
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24634 $as_echo_n "checking for cacosf... " >&6; }
24635 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24636 $as_echo_n "(cached) " >&6
24637 else
24638 if test x$gcc_no_link = xyes; then
24639 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24642 /* end confdefs.h. */
24644 #ifdef HAVE_COMPLEX_H
24645 #include <complex.h>
24646 #endif
24647 #ifdef HAVE_MATH_H
24648 #include <math.h>
24649 #endif
24651 int (*ptr)() = (int (*)())cacosf;
24654 main ()
24656 return 0;
24659 _ACEOF
24660 if ac_fn_c_try_link "$LINENO"; then :
24661 gcc_cv_math_func_cacosf=yes
24662 else
24663 gcc_cv_math_func_cacosf=no
24665 rm -f core conftest.err conftest.$ac_objext \
24666 conftest$ac_exeext conftest.$ac_ext
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24669 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24670 if test $gcc_cv_math_func_cacosf = yes; then
24672 cat >>confdefs.h <<_ACEOF
24673 #define HAVE_CACOSF 1
24674 _ACEOF
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24682 $as_echo_n "checking for cacosh... " >&6; }
24683 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 if test x$gcc_no_link = xyes; then
24687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h. */
24692 #ifdef HAVE_COMPLEX_H
24693 #include <complex.h>
24694 #endif
24695 #ifdef HAVE_MATH_H
24696 #include <math.h>
24697 #endif
24699 int (*ptr)() = (int (*)())cacosh;
24702 main ()
24704 return 0;
24707 _ACEOF
24708 if ac_fn_c_try_link "$LINENO"; then :
24709 gcc_cv_math_func_cacosh=yes
24710 else
24711 gcc_cv_math_func_cacosh=no
24713 rm -f core conftest.err conftest.$ac_objext \
24714 conftest$ac_exeext conftest.$ac_ext
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24717 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24718 if test $gcc_cv_math_func_cacosh = yes; then
24720 cat >>confdefs.h <<_ACEOF
24721 #define HAVE_CACOSH 1
24722 _ACEOF
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24730 $as_echo_n "checking for cacoshf... " >&6; }
24731 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 if test x$gcc_no_link = xyes; then
24735 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738 /* end confdefs.h. */
24740 #ifdef HAVE_COMPLEX_H
24741 #include <complex.h>
24742 #endif
24743 #ifdef HAVE_MATH_H
24744 #include <math.h>
24745 #endif
24747 int (*ptr)() = (int (*)())cacoshf;
24750 main ()
24752 return 0;
24755 _ACEOF
24756 if ac_fn_c_try_link "$LINENO"; then :
24757 gcc_cv_math_func_cacoshf=yes
24758 else
24759 gcc_cv_math_func_cacoshf=no
24761 rm -f core conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24765 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24766 if test $gcc_cv_math_func_cacoshf = yes; then
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_CACOSHF 1
24770 _ACEOF
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24778 $as_echo_n "checking for cacoshl... " >&6; }
24779 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24780 $as_echo_n "(cached) " >&6
24781 else
24782 if test x$gcc_no_link = xyes; then
24783 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786 /* end confdefs.h. */
24788 #ifdef HAVE_COMPLEX_H
24789 #include <complex.h>
24790 #endif
24791 #ifdef HAVE_MATH_H
24792 #include <math.h>
24793 #endif
24795 int (*ptr)() = (int (*)())cacoshl;
24798 main ()
24800 return 0;
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"; then :
24805 gcc_cv_math_func_cacoshl=yes
24806 else
24807 gcc_cv_math_func_cacoshl=no
24809 rm -f core conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24813 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24814 if test $gcc_cv_math_func_cacoshl = yes; then
24816 cat >>confdefs.h <<_ACEOF
24817 #define HAVE_CACOSHL 1
24818 _ACEOF
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24826 $as_echo_n "checking for cacosl... " >&6; }
24827 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 if test x$gcc_no_link = xyes; then
24831 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24834 /* end confdefs.h. */
24836 #ifdef HAVE_COMPLEX_H
24837 #include <complex.h>
24838 #endif
24839 #ifdef HAVE_MATH_H
24840 #include <math.h>
24841 #endif
24843 int (*ptr)() = (int (*)())cacosl;
24846 main ()
24848 return 0;
24851 _ACEOF
24852 if ac_fn_c_try_link "$LINENO"; then :
24853 gcc_cv_math_func_cacosl=yes
24854 else
24855 gcc_cv_math_func_cacosl=no
24857 rm -f core conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext conftest.$ac_ext
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24861 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24862 if test $gcc_cv_math_func_cacosl = yes; then
24864 cat >>confdefs.h <<_ACEOF
24865 #define HAVE_CACOSL 1
24866 _ACEOF
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24874 $as_echo_n "checking for casin... " >&6; }
24875 if test "${gcc_cv_math_func_casin+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 if test x$gcc_no_link = xyes; then
24879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24882 /* end confdefs.h. */
24884 #ifdef HAVE_COMPLEX_H
24885 #include <complex.h>
24886 #endif
24887 #ifdef HAVE_MATH_H
24888 #include <math.h>
24889 #endif
24891 int (*ptr)() = (int (*)())casin;
24894 main ()
24896 return 0;
24899 _ACEOF
24900 if ac_fn_c_try_link "$LINENO"; then :
24901 gcc_cv_math_func_casin=yes
24902 else
24903 gcc_cv_math_func_casin=no
24905 rm -f core conftest.err conftest.$ac_objext \
24906 conftest$ac_exeext conftest.$ac_ext
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24909 $as_echo "$gcc_cv_math_func_casin" >&6; }
24910 if test $gcc_cv_math_func_casin = yes; then
24912 cat >>confdefs.h <<_ACEOF
24913 #define HAVE_CASIN 1
24914 _ACEOF
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24922 $as_echo_n "checking for casinf... " >&6; }
24923 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 if test x$gcc_no_link = xyes; then
24927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930 /* end confdefs.h. */
24932 #ifdef HAVE_COMPLEX_H
24933 #include <complex.h>
24934 #endif
24935 #ifdef HAVE_MATH_H
24936 #include <math.h>
24937 #endif
24939 int (*ptr)() = (int (*)())casinf;
24942 main ()
24944 return 0;
24947 _ACEOF
24948 if ac_fn_c_try_link "$LINENO"; then :
24949 gcc_cv_math_func_casinf=yes
24950 else
24951 gcc_cv_math_func_casinf=no
24953 rm -f core conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24957 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24958 if test $gcc_cv_math_func_casinf = yes; then
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_CASINF 1
24962 _ACEOF
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24970 $as_echo_n "checking for casinh... " >&6; }
24971 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 if test x$gcc_no_link = xyes; then
24975 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h. */
24980 #ifdef HAVE_COMPLEX_H
24981 #include <complex.h>
24982 #endif
24983 #ifdef HAVE_MATH_H
24984 #include <math.h>
24985 #endif
24987 int (*ptr)() = (int (*)())casinh;
24990 main ()
24992 return 0;
24995 _ACEOF
24996 if ac_fn_c_try_link "$LINENO"; then :
24997 gcc_cv_math_func_casinh=yes
24998 else
24999 gcc_cv_math_func_casinh=no
25001 rm -f core conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25005 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25006 if test $gcc_cv_math_func_casinh = yes; then
25008 cat >>confdefs.h <<_ACEOF
25009 #define HAVE_CASINH 1
25010 _ACEOF
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25018 $as_echo_n "checking for casinhf... " >&6; }
25019 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25022 if test x$gcc_no_link = xyes; then
25023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25026 /* end confdefs.h. */
25028 #ifdef HAVE_COMPLEX_H
25029 #include <complex.h>
25030 #endif
25031 #ifdef HAVE_MATH_H
25032 #include <math.h>
25033 #endif
25035 int (*ptr)() = (int (*)())casinhf;
25038 main ()
25040 return 0;
25043 _ACEOF
25044 if ac_fn_c_try_link "$LINENO"; then :
25045 gcc_cv_math_func_casinhf=yes
25046 else
25047 gcc_cv_math_func_casinhf=no
25049 rm -f core conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25053 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25054 if test $gcc_cv_math_func_casinhf = yes; then
25056 cat >>confdefs.h <<_ACEOF
25057 #define HAVE_CASINHF 1
25058 _ACEOF
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25066 $as_echo_n "checking for casinhl... " >&6; }
25067 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25069 else
25070 if test x$gcc_no_link = xyes; then
25071 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25076 #ifdef HAVE_COMPLEX_H
25077 #include <complex.h>
25078 #endif
25079 #ifdef HAVE_MATH_H
25080 #include <math.h>
25081 #endif
25083 int (*ptr)() = (int (*)())casinhl;
25086 main ()
25088 return 0;
25091 _ACEOF
25092 if ac_fn_c_try_link "$LINENO"; then :
25093 gcc_cv_math_func_casinhl=yes
25094 else
25095 gcc_cv_math_func_casinhl=no
25097 rm -f core conftest.err conftest.$ac_objext \
25098 conftest$ac_exeext conftest.$ac_ext
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25101 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25102 if test $gcc_cv_math_func_casinhl = yes; then
25104 cat >>confdefs.h <<_ACEOF
25105 #define HAVE_CASINHL 1
25106 _ACEOF
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25114 $as_echo_n "checking for casinl... " >&6; }
25115 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 if test x$gcc_no_link = xyes; then
25119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25122 /* end confdefs.h. */
25124 #ifdef HAVE_COMPLEX_H
25125 #include <complex.h>
25126 #endif
25127 #ifdef HAVE_MATH_H
25128 #include <math.h>
25129 #endif
25131 int (*ptr)() = (int (*)())casinl;
25134 main ()
25136 return 0;
25139 _ACEOF
25140 if ac_fn_c_try_link "$LINENO"; then :
25141 gcc_cv_math_func_casinl=yes
25142 else
25143 gcc_cv_math_func_casinl=no
25145 rm -f core conftest.err conftest.$ac_objext \
25146 conftest$ac_exeext conftest.$ac_ext
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25149 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25150 if test $gcc_cv_math_func_casinl = yes; then
25152 cat >>confdefs.h <<_ACEOF
25153 #define HAVE_CASINL 1
25154 _ACEOF
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25162 $as_echo_n "checking for catan... " >&6; }
25163 if test "${gcc_cv_math_func_catan+set}" = set; then :
25164 $as_echo_n "(cached) " >&6
25165 else
25166 if test x$gcc_no_link = xyes; then
25167 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h. */
25172 #ifdef HAVE_COMPLEX_H
25173 #include <complex.h>
25174 #endif
25175 #ifdef HAVE_MATH_H
25176 #include <math.h>
25177 #endif
25179 int (*ptr)() = (int (*)())catan;
25182 main ()
25184 return 0;
25187 _ACEOF
25188 if ac_fn_c_try_link "$LINENO"; then :
25189 gcc_cv_math_func_catan=yes
25190 else
25191 gcc_cv_math_func_catan=no
25193 rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25197 $as_echo "$gcc_cv_math_func_catan" >&6; }
25198 if test $gcc_cv_math_func_catan = yes; then
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_CATAN 1
25202 _ACEOF
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25210 $as_echo_n "checking for catanf... " >&6; }
25211 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 if test x$gcc_no_link = xyes; then
25215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25220 #ifdef HAVE_COMPLEX_H
25221 #include <complex.h>
25222 #endif
25223 #ifdef HAVE_MATH_H
25224 #include <math.h>
25225 #endif
25227 int (*ptr)() = (int (*)())catanf;
25230 main ()
25232 return 0;
25235 _ACEOF
25236 if ac_fn_c_try_link "$LINENO"; then :
25237 gcc_cv_math_func_catanf=yes
25238 else
25239 gcc_cv_math_func_catanf=no
25241 rm -f core conftest.err conftest.$ac_objext \
25242 conftest$ac_exeext conftest.$ac_ext
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25245 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25246 if test $gcc_cv_math_func_catanf = yes; then
25248 cat >>confdefs.h <<_ACEOF
25249 #define HAVE_CATANF 1
25250 _ACEOF
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25258 $as_echo_n "checking for catanh... " >&6; }
25259 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25260 $as_echo_n "(cached) " >&6
25261 else
25262 if test x$gcc_no_link = xyes; then
25263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h. */
25268 #ifdef HAVE_COMPLEX_H
25269 #include <complex.h>
25270 #endif
25271 #ifdef HAVE_MATH_H
25272 #include <math.h>
25273 #endif
25275 int (*ptr)() = (int (*)())catanh;
25278 main ()
25280 return 0;
25283 _ACEOF
25284 if ac_fn_c_try_link "$LINENO"; then :
25285 gcc_cv_math_func_catanh=yes
25286 else
25287 gcc_cv_math_func_catanh=no
25289 rm -f core conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25293 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25294 if test $gcc_cv_math_func_catanh = yes; then
25296 cat >>confdefs.h <<_ACEOF
25297 #define HAVE_CATANH 1
25298 _ACEOF
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25306 $as_echo_n "checking for catanhf... " >&6; }
25307 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25308 $as_echo_n "(cached) " >&6
25309 else
25310 if test x$gcc_no_link = xyes; then
25311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25316 #ifdef HAVE_COMPLEX_H
25317 #include <complex.h>
25318 #endif
25319 #ifdef HAVE_MATH_H
25320 #include <math.h>
25321 #endif
25323 int (*ptr)() = (int (*)())catanhf;
25326 main ()
25328 return 0;
25331 _ACEOF
25332 if ac_fn_c_try_link "$LINENO"; then :
25333 gcc_cv_math_func_catanhf=yes
25334 else
25335 gcc_cv_math_func_catanhf=no
25337 rm -f core conftest.err conftest.$ac_objext \
25338 conftest$ac_exeext conftest.$ac_ext
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25341 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25342 if test $gcc_cv_math_func_catanhf = yes; then
25344 cat >>confdefs.h <<_ACEOF
25345 #define HAVE_CATANHF 1
25346 _ACEOF
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25354 $as_echo_n "checking for catanhl... " >&6; }
25355 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 if test x$gcc_no_link = xyes; then
25359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362 /* end confdefs.h. */
25364 #ifdef HAVE_COMPLEX_H
25365 #include <complex.h>
25366 #endif
25367 #ifdef HAVE_MATH_H
25368 #include <math.h>
25369 #endif
25371 int (*ptr)() = (int (*)())catanhl;
25374 main ()
25376 return 0;
25379 _ACEOF
25380 if ac_fn_c_try_link "$LINENO"; then :
25381 gcc_cv_math_func_catanhl=yes
25382 else
25383 gcc_cv_math_func_catanhl=no
25385 rm -f core conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25389 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25390 if test $gcc_cv_math_func_catanhl = yes; then
25392 cat >>confdefs.h <<_ACEOF
25393 #define HAVE_CATANHL 1
25394 _ACEOF
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25402 $as_echo_n "checking for catanl... " >&6; }
25403 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25405 else
25406 if test x$gcc_no_link = xyes; then
25407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 #ifdef HAVE_COMPLEX_H
25413 #include <complex.h>
25414 #endif
25415 #ifdef HAVE_MATH_H
25416 #include <math.h>
25417 #endif
25419 int (*ptr)() = (int (*)())catanl;
25422 main ()
25424 return 0;
25427 _ACEOF
25428 if ac_fn_c_try_link "$LINENO"; then :
25429 gcc_cv_math_func_catanl=yes
25430 else
25431 gcc_cv_math_func_catanl=no
25433 rm -f core conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25437 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25438 if test $gcc_cv_math_func_catanl = yes; then
25440 cat >>confdefs.h <<_ACEOF
25441 #define HAVE_CATANL 1
25442 _ACEOF
25447 # On AIX, clog is present in libm as __clog
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25449 $as_echo_n "checking for __clog in -lm... " >&6; }
25450 if test "${ac_cv_lib_m___clog+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25452 else
25453 ac_check_lib_save_LIBS=$LIBS
25454 LIBS="-lm $LIBS"
25455 if test x$gcc_no_link = xyes; then
25456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25461 /* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25464 #ifdef __cplusplus
25465 extern "C"
25466 #endif
25467 char __clog ();
25469 main ()
25471 return __clog ();
25473 return 0;
25475 _ACEOF
25476 if ac_fn_c_try_link "$LINENO"; then :
25477 ac_cv_lib_m___clog=yes
25478 else
25479 ac_cv_lib_m___clog=no
25481 rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25486 $as_echo "$ac_cv_lib_m___clog" >&6; }
25487 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25489 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25494 # Check whether the system has a working stat()
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25497 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25498 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25502 if test "$cross_compiling" = yes; then :
25504 case "${target}" in
25505 *mingw*) libgfor_cv_have_working_stat=no ;;
25506 *) libgfor_cv_have_working_stat=yes;;
25507 esac
25508 else
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25512 #include <stdio.h>
25513 #include <sys/types.h>
25514 #include <sys/stat.h>
25515 #include <unistd.h>
25517 int main ()
25519 FILE *f, *g;
25520 struct stat st1, st2;
25522 f = fopen ("foo", "w");
25523 g = fopen ("bar", "w");
25524 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25525 return 1;
25526 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25527 return 1;
25528 fclose(f);
25529 fclose(g);
25530 return 0;
25532 _ACEOF
25533 if ac_fn_c_try_run "$LINENO"; then :
25534 libgfor_cv_have_working_stat=yes
25535 else
25536 libgfor_cv_have_working_stat=no
25538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25539 conftest.$ac_objext conftest.beam conftest.$ac_ext
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25544 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25545 if test x"$libgfor_cv_have_working_stat" = xyes; then
25547 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25551 # Check whether __mingw_snprintf() is present
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25554 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25555 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25557 else
25559 if test x$gcc_no_link = xyes; then
25560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25565 #include <stdio.h>
25566 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25569 main ()
25572 __mingw_snprintf (NULL, 0, "%d\n", 1);
25575 return 0;
25577 _ACEOF
25578 if ac_fn_c_try_link "$LINENO"; then :
25579 eval "libgfor_cv_have_mingw_snprintf=yes"
25580 else
25581 eval "libgfor_cv_have_mingw_snprintf=no"
25583 rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25588 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25589 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25591 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25596 # Check whether libquadmath should be used
25597 # Check whether --enable-libquadmath-support was given.
25598 if test "${enable_libquadmath_support+set}" = set; then :
25599 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25600 else
25601 ENABLE_LIBQUADMATH_SUPPORT=yes
25604 enable_libquadmath_support=
25605 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25606 enable_libquadmath_support=no
25609 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25611 LIBQUADSPEC=
25613 if test "x$enable_libquadmath_support" != xno; then
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25616 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25617 if test "${libgfor_cv_have_float128+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25621 if test x$gcc_no_link = xyes; then
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25625 typedef _Complex float __attribute__((mode(TC))) __complex128;
25627 __float128 foo (__float128 x)
25630 __complex128 z1, z2;
25632 z1 = x;
25633 z2 = x / 7.Q;
25634 z2 /= z1;
25636 return (__float128) z2;
25639 __float128 bar (__float128 x)
25641 return x * __builtin_huge_valq ();
25645 main ()
25648 foo (1.2Q);
25649 bar (1.2Q);
25652 return 0;
25654 _ACEOF
25655 if ac_fn_c_try_compile "$LINENO"; then :
25657 libgfor_cv_have_float128=yes
25659 else
25661 libgfor_cv_have_float128=no
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665 else
25666 if test x$gcc_no_link = xyes; then
25667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25672 typedef _Complex float __attribute__((mode(TC))) __complex128;
25674 __float128 foo (__float128 x)
25677 __complex128 z1, z2;
25679 z1 = x;
25680 z2 = x / 7.Q;
25681 z2 /= z1;
25683 return (__float128) z2;
25686 __float128 bar (__float128 x)
25688 return x * __builtin_huge_valq ();
25692 main ()
25695 foo (1.2Q);
25696 bar (1.2Q);
25699 return 0;
25701 _ACEOF
25702 if ac_fn_c_try_link "$LINENO"; then :
25704 libgfor_cv_have_float128=yes
25706 else
25708 libgfor_cv_have_float128=no
25711 rm -f core conftest.err conftest.$ac_objext \
25712 conftest$ac_exeext conftest.$ac_ext
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25716 $as_echo "$libgfor_cv_have_float128" >&6; }
25718 if test "x$libgfor_cv_have_float128" = xyes; then
25720 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25723 ac_xsave_c_werror_flag=$ac_c_werror_flag
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25725 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25726 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25730 # Test for native Solaris options first.
25731 # No whitespace after -z to pass it through -Wl.
25732 libgfor_cv_as_needed_option="-zignore"
25733 libgfor_cv_no_as_needed_option="-zrecord"
25734 save_LDFLAGS="$LDFLAGS"
25735 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25736 libgfor_cv_have_as_needed=no
25738 ac_c_werror_flag=yes
25739 if test x$gcc_no_link = xyes; then
25740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25746 main ()
25750 return 0;
25752 _ACEOF
25753 if ac_fn_c_try_link "$LINENO"; then :
25754 libgfor_cv_have_as_needed=yes
25755 else
25756 libgfor_cv_have_as_needed=no
25758 rm -f core conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
25760 LDFLAGS="$save_LDFLAGS"
25761 if test "x$libgfor_cv_have_as_needed" = xno; then
25762 libgfor_cv_as_needed_option="--as-needed"
25763 libgfor_cv_no_as_needed_option="--no-as-needed"
25764 save_LDFLAGS="$LDFLAGS"
25765 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25766 libgfor_cv_have_as_needed=no
25768 ac_c_werror_flag=yes
25769 if test x$gcc_no_link = xyes; then
25770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h. */
25776 main ()
25780 return 0;
25782 _ACEOF
25783 if ac_fn_c_try_link "$LINENO"; then :
25784 libgfor_cv_have_as_needed=yes
25785 else
25786 libgfor_cv_have_as_needed=no
25788 rm -f core conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext conftest.$ac_ext
25790 LDFLAGS="$save_LDFLAGS"
25792 ac_c_werror_flag=$ac_xsave_c_werror_flag
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25796 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25798 if test "x$libgfor_cv_have_as_needed" = xyes; then
25799 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25800 else
25801 LIBQUADSPEC="-lquadmath"
25803 if test -f ../libquadmath/libquadmath.la; then
25804 LIBQUADLIB=../libquadmath/libquadmath.la
25805 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25806 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25807 else
25808 LIBQUADLIB="-lquadmath"
25809 LIBQUADLIB_DEP=
25810 LIBQUADINCLUDE=
25813 else
25814 # for --disable-quadmath
25815 LIBQUADLIB=
25816 LIBQUADLIB_DEP=
25817 LIBQUADINCLUDE=
25825 if test "x$libgfor_cv_have_float128" = xyes; then
25826 LIBGFOR_BUILD_QUAD_TRUE=
25827 LIBGFOR_BUILD_QUAD_FALSE='#'
25828 else
25829 LIBGFOR_BUILD_QUAD_TRUE='#'
25830 LIBGFOR_BUILD_QUAD_FALSE=
25835 # Check for GNU libc feenableexcept
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25837 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25838 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 ac_check_lib_save_LIBS=$LIBS
25842 LIBS="-lm $LIBS"
25843 if test x$gcc_no_link = xyes; then
25844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25847 /* end confdefs.h. */
25849 /* Override any GCC internal prototype to avoid an error.
25850 Use char because int might match the return type of a GCC
25851 builtin and then its argument prototype would still apply. */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 char feenableexcept ();
25857 main ()
25859 return feenableexcept ();
25861 return 0;
25863 _ACEOF
25864 if ac_fn_c_try_link "$LINENO"; then :
25865 ac_cv_lib_m_feenableexcept=yes
25866 else
25867 ac_cv_lib_m_feenableexcept=no
25869 rm -f core conftest.err conftest.$ac_objext \
25870 conftest$ac_exeext conftest.$ac_ext
25871 LIBS=$ac_check_lib_save_LIBS
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25874 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25875 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25876 have_feenableexcept=yes
25877 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25882 # At least for glibc, clock_gettime is in librt. But don't
25883 # pull that in if it still doesn't give us the function we want. This
25884 # test is copied from libgomp, and modified to not link in -lrt as
25885 # libgfortran calls clock_gettime via a weak reference if it's found
25886 # in librt.
25887 if test $ac_cv_func_clock_gettime = no; then
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25889 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25890 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 ac_check_lib_save_LIBS=$LIBS
25894 LIBS="-lrt $LIBS"
25895 if test x$gcc_no_link = xyes; then
25896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25899 /* end confdefs.h. */
25901 /* Override any GCC internal prototype to avoid an error.
25902 Use char because int might match the return type of a GCC
25903 builtin and then its argument prototype would still apply. */
25904 #ifdef __cplusplus
25905 extern "C"
25906 #endif
25907 char clock_gettime ();
25909 main ()
25911 return clock_gettime ();
25913 return 0;
25915 _ACEOF
25916 if ac_fn_c_try_link "$LINENO"; then :
25917 ac_cv_lib_rt_clock_gettime=yes
25918 else
25919 ac_cv_lib_rt_clock_gettime=no
25921 rm -f core conftest.err conftest.$ac_objext \
25922 conftest$ac_exeext conftest.$ac_ext
25923 LIBS=$ac_check_lib_save_LIBS
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25926 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25927 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25929 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25935 # Check for SysV fpsetmask
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25938 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25939 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25940 $as_echo_n "(cached) " >&6
25941 else
25943 if test x$gcc_no_link = xyes; then
25944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25949 #if HAVE_FLOATINGPOINT_H
25950 # include <floatingpoint.h>
25951 #endif /* HAVE_FLOATINGPOINT_H */
25952 #if HAVE_IEEEFP_H
25953 # include <ieeefp.h>
25954 #endif /* HAVE_IEEEFP_H */
25956 main ()
25958 fpsetmask(0);
25960 return 0;
25962 _ACEOF
25963 if ac_fn_c_try_link "$LINENO"; then :
25964 eval "libgfor_cv_have_fpsetmask=yes"
25965 else
25966 eval "libgfor_cv_have_fpsetmask=no"
25968 rm -f core conftest.err conftest.$ac_objext \
25969 conftest$ac_exeext conftest.$ac_ext
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25973 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25974 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25975 have_fpsetmask=yes
25977 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25982 # Check for AIX fp_trap and fp_enable
25983 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25984 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25985 have_fp_trap=yes
25986 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25990 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25991 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25992 have_fp_enable=yes
25993 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25998 # Runs configure.host to set up necessary host-dependent shell variables.
25999 # We then display a message about it, and propagate them through the
26000 # build chain.
26001 . ${srcdir}/configure.host
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26003 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26004 FPU_HOST_HEADER=config/${fpu_host}.h
26007 # Some targets require additional compiler options for IEEE compatibility.
26008 IEEE_FLAGS="${ieee_flags}"
26012 # Check for POSIX getpwuid_r
26014 # There are two versions of getpwuid_r, the POSIX one with 5
26015 # arguments, and another one with 4 arguments used by at least HP-UX
26016 # 10.2.
26017 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26019 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26020 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26024 if test x$gcc_no_link = xyes; then
26025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028 /* end confdefs.h. */
26030 #include <stdio.h>
26031 #include <sys/types.h>
26032 #include <pwd.h>
26034 main ()
26037 getpwuid_r(0, NULL, NULL, 0, NULL);
26040 return 0;
26042 _ACEOF
26043 if ac_fn_c_try_link "$LINENO"; then :
26044 libgfor_cv_posix_getpwuid_r="yes"
26045 else
26046 libgfor_cv_posix_getpwuid_r="no"
26048 rm -f core conftest.err conftest.$ac_objext \
26049 conftest$ac_exeext conftest.$ac_ext
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26052 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26054 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26056 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26061 # Check out attribute support.
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26064 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26065 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26066 $as_echo_n "(cached) " >&6
26067 else
26069 save_CFLAGS="$CFLAGS"
26070 CFLAGS="$CFLAGS -Werror"
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26073 void __attribute__((visibility("hidden"))) foo(void) { }
26075 main ()
26079 return 0;
26081 _ACEOF
26082 if ac_fn_c_try_compile "$LINENO"; then :
26083 libgfor_cv_have_attribute_visibility=yes
26084 else
26085 libgfor_cv_have_attribute_visibility=no
26087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 CFLAGS="$save_CFLAGS"
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26091 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26092 if test $libgfor_cv_have_attribute_visibility = yes; then
26094 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26099 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26100 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26101 $as_echo_n "(cached) " >&6
26102 else
26104 save_CFLAGS="$CFLAGS"
26105 CFLAGS="$CFLAGS -Werror"
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h. */
26108 void __attribute__((dllexport)) foo(void) { }
26110 main ()
26114 return 0;
26116 _ACEOF
26117 if ac_fn_c_try_compile "$LINENO"; then :
26118 libgfor_cv_have_attribute_dllexport=yes
26119 else
26120 libgfor_cv_have_attribute_dllexport=no
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123 CFLAGS="$save_CFLAGS"
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26126 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26127 if test $libgfor_cv_have_attribute_dllexport = yes; then
26129 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26134 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26135 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26136 $as_echo_n "(cached) " >&6
26137 else
26139 if test x$gcc_no_link = xyes; then
26140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h. */
26145 void foo(void) { }
26146 extern void bar(void) __attribute__((alias("foo")));
26148 main ()
26150 bar();
26152 return 0;
26154 _ACEOF
26155 if ac_fn_c_try_link "$LINENO"; then :
26156 libgfor_cv_have_attribute_alias=yes
26157 else
26158 libgfor_cv_have_attribute_alias=no
26160 rm -f core conftest.err conftest.$ac_objext \
26161 conftest$ac_exeext conftest.$ac_ext
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26164 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26165 if test $libgfor_cv_have_attribute_alias = yes; then
26167 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26171 # Check out sync builtins support.
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26174 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26175 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26179 if test x$gcc_no_link = xyes; then
26180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26183 /* end confdefs.h. */
26184 int foovar = 0;
26186 main ()
26189 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26190 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26192 return 0;
26194 _ACEOF
26195 if ac_fn_c_try_link "$LINENO"; then :
26196 libgfor_cv_have_sync_fetch_and_add=yes
26197 else
26198 libgfor_cv_have_sync_fetch_and_add=no
26200 rm -f core conftest.err conftest.$ac_objext \
26201 conftest$ac_exeext conftest.$ac_ext
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26204 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26205 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26207 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26211 # Check out #pragma weak.
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26214 $as_echo_n "checking whether pragma weak works... " >&6; }
26215 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26219 gfor_save_CFLAGS="$CFLAGS"
26220 CFLAGS="$CFLAGS -Wunknown-pragmas"
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222 /* end confdefs.h. */
26224 void foo (void);
26225 #pragma weak foo
26228 main ()
26230 if (foo) foo ();
26232 return 0;
26234 _ACEOF
26235 if ac_fn_c_try_compile "$LINENO"; then :
26236 libgfor_cv_have_pragma_weak=yes
26237 else
26238 libgfor_cv_have_pragma_weak=no
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26243 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26244 if test $libgfor_cv_have_pragma_weak = yes; then
26246 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26249 case "$host" in
26250 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26252 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26255 esac
26257 # Various other checks on target
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26260 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26261 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26263 else
26265 if test "$cross_compiling" = yes; then :
26267 case "${target}" in
26268 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26269 *) libgfor_cv_have_unlink_open_file=yes;;
26270 esac
26271 else
26272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273 /* end confdefs.h. */
26275 #include <errno.h>
26276 #include <fcntl.h>
26277 #include <unistd.h>
26278 #include <sys/stat.h>
26280 int main ()
26282 int fd;
26284 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26285 if (fd <= 0)
26286 return 0;
26287 if (unlink ("testfile") == -1)
26288 return 1;
26289 write (fd, "This is a test\n", 15);
26290 close (fd);
26292 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26293 return 0;
26294 else
26295 return 1;
26297 _ACEOF
26298 if ac_fn_c_try_run "$LINENO"; then :
26299 libgfor_cv_have_unlink_open_file=yes
26300 else
26301 libgfor_cv_have_unlink_open_file=no
26303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26304 conftest.$ac_objext conftest.beam conftest.$ac_ext
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26309 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26310 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26312 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26316 # Check whether line terminator is LF or CRLF
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26319 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26320 if test "${libgfor_cv_have_crlf+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26322 else
26324 if test "$cross_compiling" = yes; then :
26326 case "${target}" in
26327 *mingw*) libgfor_cv_have_crlf=yes ;;
26328 *) libgfor_cv_have_crlf=no;;
26329 esac
26330 else
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h. */
26334 /* This test program should exit with status 0 if system uses a CRLF as
26335 line terminator, and status 1 otherwise.
26336 Since it is used to check for mingw systems, and should return 0 in any
26337 other case, in case of a failure we will not use CRLF. */
26338 #include <sys/stat.h>
26339 #include <stdlib.h>
26340 #include <fcntl.h>
26341 #include <stdio.h>
26343 int main ()
26345 #ifndef O_BINARY
26346 exit(1);
26347 #else
26348 int fd, bytes;
26349 char buff[5];
26351 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26352 if (fd < 0)
26353 exit(1);
26354 if (write (fd, "\n", 1) < 0)
26355 perror ("write");
26357 close (fd);
26359 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26360 exit(1);
26361 bytes = read (fd, buff, 5);
26362 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26363 exit(0);
26364 else
26365 exit(1);
26366 #endif
26368 _ACEOF
26369 if ac_fn_c_try_run "$LINENO"; then :
26370 libgfor_cv_have_crlf=yes
26371 else
26372 libgfor_cv_have_crlf=no
26374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26375 conftest.$ac_objext conftest.beam conftest.$ac_ext
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26380 $as_echo "$libgfor_cv_have_crlf" >&6; }
26381 if test x"$libgfor_cv_have_crlf" = xyes; then
26383 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26387 # Check whether we have _Unwind_GetIPInfo for backtrace
26390 # Check whether --with-system-libunwind was given.
26391 if test "${with_system_libunwind+set}" = set; then :
26392 withval=$with_system_libunwind;
26395 # If system-libunwind was not specifically set, pick a default setting.
26396 if test x$with_system_libunwind = x; then
26397 case ${target} in
26398 ia64-*-hpux*) with_system_libunwind=yes ;;
26399 *) with_system_libunwind=no ;;
26400 esac
26402 # Based on system-libunwind and target, do we have ipinfo?
26403 if test x$with_system_libunwind = xyes; then
26404 case ${target} in
26405 ia64-*-*) have_unwind_getipinfo=no ;;
26406 *) have_unwind_getipinfo=yes ;;
26407 esac
26408 else
26409 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26411 case ${target} in
26412 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26413 *) have_unwind_getipinfo=yes ;;
26414 esac
26418 if test x$have_unwind_getipinfo = xyes; then
26420 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26425 cat >confcache <<\_ACEOF
26426 # This file is a shell script that caches the results of configure
26427 # tests run on this system so they can be shared between configure
26428 # scripts and configure runs, see configure's option --config-cache.
26429 # It is not useful on other systems. If it contains results you don't
26430 # want to keep, you may remove or edit it.
26432 # config.status only pays attention to the cache file if you give it
26433 # the --recheck option to rerun configure.
26435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26437 # following values.
26439 _ACEOF
26441 # The following way of writing the cache mishandles newlines in values,
26442 # but we know of no workaround that is simple, portable, and efficient.
26443 # So, we kill variables containing newlines.
26444 # Ultrix sh set writes to stderr and can't be redirected directly,
26445 # and sets the high bit in the cache file unless we assign to the vars.
26447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26448 eval ac_val=\$$ac_var
26449 case $ac_val in #(
26450 *${as_nl}*)
26451 case $ac_var in #(
26452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26454 esac
26455 case $ac_var in #(
26456 _ | IFS | as_nl) ;; #(
26457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26458 *) { eval $ac_var=; unset $ac_var;} ;;
26459 esac ;;
26460 esac
26461 done
26463 (set) 2>&1 |
26464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26465 *${as_nl}ac_space=\ *)
26466 # `set' does not quote correctly, so add quotes: double-quote
26467 # substitution turns \\\\ into \\, and sed turns \\ into \.
26468 sed -n \
26469 "s/'/'\\\\''/g;
26470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26471 ;; #(
26473 # `set' quotes correctly as required by POSIX, so do not add quotes.
26474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26476 esac |
26477 sort
26479 sed '
26480 /^ac_cv_env_/b end
26481 t clear
26482 :clear
26483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26484 t end
26485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26486 :end' >>confcache
26487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26488 if test -w "$cache_file"; then
26489 test "x$cache_file" != "x/dev/null" &&
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26491 $as_echo "$as_me: updating cache $cache_file" >&6;}
26492 cat confcache >$cache_file
26493 else
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26495 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26498 rm -f confcache
26500 if test ${multilib} = yes; then
26501 multilib_arg="--enable-multilib"
26502 else
26503 multilib_arg=
26506 # Write our Makefile and spec file.
26507 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26509 cat >confcache <<\_ACEOF
26510 # This file is a shell script that caches the results of configure
26511 # tests run on this system so they can be shared between configure
26512 # scripts and configure runs, see configure's option --config-cache.
26513 # It is not useful on other systems. If it contains results you don't
26514 # want to keep, you may remove or edit it.
26516 # config.status only pays attention to the cache file if you give it
26517 # the --recheck option to rerun configure.
26519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26521 # following values.
26523 _ACEOF
26525 # The following way of writing the cache mishandles newlines in values,
26526 # but we know of no workaround that is simple, portable, and efficient.
26527 # So, we kill variables containing newlines.
26528 # Ultrix sh set writes to stderr and can't be redirected directly,
26529 # and sets the high bit in the cache file unless we assign to the vars.
26531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26532 eval ac_val=\$$ac_var
26533 case $ac_val in #(
26534 *${as_nl}*)
26535 case $ac_var in #(
26536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26538 esac
26539 case $ac_var in #(
26540 _ | IFS | as_nl) ;; #(
26541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26542 *) { eval $ac_var=; unset $ac_var;} ;;
26543 esac ;;
26544 esac
26545 done
26547 (set) 2>&1 |
26548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26549 *${as_nl}ac_space=\ *)
26550 # `set' does not quote correctly, so add quotes: double-quote
26551 # substitution turns \\\\ into \\, and sed turns \\ into \.
26552 sed -n \
26553 "s/'/'\\\\''/g;
26554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26555 ;; #(
26557 # `set' quotes correctly as required by POSIX, so do not add quotes.
26558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26560 esac |
26561 sort
26563 sed '
26564 /^ac_cv_env_/b end
26565 t clear
26566 :clear
26567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26568 t end
26569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26570 :end' >>confcache
26571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26572 if test -w "$cache_file"; then
26573 test "x$cache_file" != "x/dev/null" &&
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26575 $as_echo "$as_me: updating cache $cache_file" >&6;}
26576 cat confcache >$cache_file
26577 else
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26582 rm -f confcache
26584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26585 # Let make expand exec_prefix.
26586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26588 DEFS=-DHAVE_CONFIG_H
26590 ac_libobjs=
26591 ac_ltlibobjs=
26592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26593 # 1. Remove the extension, and $U if already installed.
26594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26597 # will be set to the directory where LIBOBJS objects are built.
26598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26600 done
26601 LIBOBJS=$ac_libobjs
26603 LTLIBOBJS=$ac_ltlibobjs
26606 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26607 as_fn_error "conditional \"onestep\" was never defined.
26608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26610 if test -n "$EXEEXT"; then
26611 am__EXEEXT_TRUE=
26612 am__EXEEXT_FALSE='#'
26613 else
26614 am__EXEEXT_TRUE='#'
26615 am__EXEEXT_FALSE=
26618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26619 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26622 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26623 as_fn_error "conditional \"AMDEP\" was never defined.
26624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26627 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26631 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26634 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26635 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26638 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26639 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26642 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26643 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26646 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26647 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26651 : ${CONFIG_STATUS=./config.status}
26652 ac_write_fail=0
26653 ac_clean_files_save=$ac_clean_files
26654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26656 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26657 as_write_fail=0
26658 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26659 #! $SHELL
26660 # Generated by $as_me.
26661 # Run this file to recreate the current configuration.
26662 # Compiler output produced by configure, useful for debugging
26663 # configure, is in config.log if it exists.
26665 debug=false
26666 ac_cs_recheck=false
26667 ac_cs_silent=false
26669 SHELL=\${CONFIG_SHELL-$SHELL}
26670 export SHELL
26671 _ASEOF
26672 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26673 ## -------------------- ##
26674 ## M4sh Initialization. ##
26675 ## -------------------- ##
26677 # Be more Bourne compatible
26678 DUALCASE=1; export DUALCASE # for MKS sh
26679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26680 emulate sh
26681 NULLCMD=:
26682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26683 # is contrary to our usage. Disable this feature.
26684 alias -g '${1+"$@"}'='"$@"'
26685 setopt NO_GLOB_SUBST
26686 else
26687 case `(set -o) 2>/dev/null` in #(
26688 *posix*) :
26689 set -o posix ;; #(
26690 *) :
26692 esac
26696 as_nl='
26698 export as_nl
26699 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26700 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26703 # Prefer a ksh shell builtin over an external printf program on Solaris,
26704 # but without wasting forks for bash or zsh.
26705 if test -z "$BASH_VERSION$ZSH_VERSION" \
26706 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26707 as_echo='print -r --'
26708 as_echo_n='print -rn --'
26709 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26710 as_echo='printf %s\n'
26711 as_echo_n='printf %s'
26712 else
26713 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26714 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26715 as_echo_n='/usr/ucb/echo -n'
26716 else
26717 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26718 as_echo_n_body='eval
26719 arg=$1;
26720 case $arg in #(
26721 *"$as_nl"*)
26722 expr "X$arg" : "X\\(.*\\)$as_nl";
26723 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26724 esac;
26725 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26727 export as_echo_n_body
26728 as_echo_n='sh -c $as_echo_n_body as_echo'
26730 export as_echo_body
26731 as_echo='sh -c $as_echo_body as_echo'
26734 # The user is always right.
26735 if test "${PATH_SEPARATOR+set}" != set; then
26736 PATH_SEPARATOR=:
26737 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26738 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26739 PATH_SEPARATOR=';'
26744 # IFS
26745 # We need space, tab and new line, in precisely that order. Quoting is
26746 # there to prevent editors from complaining about space-tab.
26747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26748 # splitting by setting IFS to empty value.)
26749 IFS=" "" $as_nl"
26751 # Find who we are. Look in the path if we contain no directory separator.
26752 case $0 in #((
26753 *[\\/]* ) as_myself=$0 ;;
26754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26755 for as_dir in $PATH
26757 IFS=$as_save_IFS
26758 test -z "$as_dir" && as_dir=.
26759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26760 done
26761 IFS=$as_save_IFS
26764 esac
26765 # We did not find ourselves, most probably we were run as `sh COMMAND'
26766 # in which case we are not to be found in the path.
26767 if test "x$as_myself" = x; then
26768 as_myself=$0
26770 if test ! -f "$as_myself"; then
26771 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26772 exit 1
26775 # Unset variables that we do not need and which cause bugs (e.g. in
26776 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26777 # suppresses any "Segmentation fault" message there. '((' could
26778 # trigger a bug in pdksh 5.2.14.
26779 for as_var in BASH_ENV ENV MAIL MAILPATH
26780 do eval test x\${$as_var+set} = xset \
26781 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26782 done
26783 PS1='$ '
26784 PS2='> '
26785 PS4='+ '
26787 # NLS nuisances.
26788 LC_ALL=C
26789 export LC_ALL
26790 LANGUAGE=C
26791 export LANGUAGE
26793 # CDPATH.
26794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26797 # as_fn_error ERROR [LINENO LOG_FD]
26798 # ---------------------------------
26799 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26800 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26801 # script with status $?, using 1 if that was 0.
26802 as_fn_error ()
26804 as_status=$?; test $as_status -eq 0 && as_status=1
26805 if test "$3"; then
26806 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26807 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26809 $as_echo "$as_me: error: $1" >&2
26810 as_fn_exit $as_status
26811 } # as_fn_error
26814 # as_fn_set_status STATUS
26815 # -----------------------
26816 # Set $? to STATUS, without forking.
26817 as_fn_set_status ()
26819 return $1
26820 } # as_fn_set_status
26822 # as_fn_exit STATUS
26823 # -----------------
26824 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26825 as_fn_exit ()
26827 set +e
26828 as_fn_set_status $1
26829 exit $1
26830 } # as_fn_exit
26832 # as_fn_unset VAR
26833 # ---------------
26834 # Portably unset VAR.
26835 as_fn_unset ()
26837 { eval $1=; unset $1;}
26839 as_unset=as_fn_unset
26840 # as_fn_append VAR VALUE
26841 # ----------------------
26842 # Append the text in VALUE to the end of the definition contained in VAR. Take
26843 # advantage of any shell optimizations that allow amortized linear growth over
26844 # repeated appends, instead of the typical quadratic growth present in naive
26845 # implementations.
26846 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26847 eval 'as_fn_append ()
26849 eval $1+=\$2
26851 else
26852 as_fn_append ()
26854 eval $1=\$$1\$2
26856 fi # as_fn_append
26858 # as_fn_arith ARG...
26859 # ------------------
26860 # Perform arithmetic evaluation on the ARGs, and store the result in the
26861 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26862 # must be portable across $(()) and expr.
26863 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26864 eval 'as_fn_arith ()
26866 as_val=$(( $* ))
26868 else
26869 as_fn_arith ()
26871 as_val=`expr "$@" || test $? -eq 1`
26873 fi # as_fn_arith
26876 if expr a : '\(a\)' >/dev/null 2>&1 &&
26877 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26878 as_expr=expr
26879 else
26880 as_expr=false
26883 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26884 as_basename=basename
26885 else
26886 as_basename=false
26889 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26890 as_dirname=dirname
26891 else
26892 as_dirname=false
26895 as_me=`$as_basename -- "$0" ||
26896 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26897 X"$0" : 'X\(//\)$' \| \
26898 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X/"$0" |
26900 sed '/^.*\/\([^/][^/]*\)\/*$/{
26901 s//\1/
26904 /^X\/\(\/\/\)$/{
26905 s//\1/
26908 /^X\/\(\/\).*/{
26909 s//\1/
26912 s/.*/./; q'`
26914 # Avoid depending upon Character Ranges.
26915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26918 as_cr_digits='0123456789'
26919 as_cr_alnum=$as_cr_Letters$as_cr_digits
26921 ECHO_C= ECHO_N= ECHO_T=
26922 case `echo -n x` in #(((((
26923 -n*)
26924 case `echo 'xy\c'` in
26925 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26926 xy) ECHO_C='\c';;
26927 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26928 ECHO_T=' ';;
26929 esac;;
26931 ECHO_N='-n';;
26932 esac
26934 rm -f conf$$ conf$$.exe conf$$.file
26935 if test -d conf$$.dir; then
26936 rm -f conf$$.dir/conf$$.file
26937 else
26938 rm -f conf$$.dir
26939 mkdir conf$$.dir 2>/dev/null
26941 if (echo >conf$$.file) 2>/dev/null; then
26942 if ln -s conf$$.file conf$$ 2>/dev/null; then
26943 as_ln_s='ln -s'
26944 # ... but there are two gotchas:
26945 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26946 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26947 # In both cases, we have to default to `cp -p'.
26948 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26949 as_ln_s='cp -p'
26950 elif ln conf$$.file conf$$ 2>/dev/null; then
26951 as_ln_s=ln
26952 else
26953 as_ln_s='cp -p'
26955 else
26956 as_ln_s='cp -p'
26958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26959 rmdir conf$$.dir 2>/dev/null
26962 # as_fn_mkdir_p
26963 # -------------
26964 # Create "$as_dir" as a directory, including parents if necessary.
26965 as_fn_mkdir_p ()
26968 case $as_dir in #(
26969 -*) as_dir=./$as_dir;;
26970 esac
26971 test -d "$as_dir" || eval $as_mkdir_p || {
26972 as_dirs=
26973 while :; do
26974 case $as_dir in #(
26975 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26976 *) as_qdir=$as_dir;;
26977 esac
26978 as_dirs="'$as_qdir' $as_dirs"
26979 as_dir=`$as_dirname -- "$as_dir" ||
26980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26981 X"$as_dir" : 'X\(//\)[^/]' \| \
26982 X"$as_dir" : 'X\(//\)$' \| \
26983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26984 $as_echo X"$as_dir" |
26985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26986 s//\1/
26989 /^X\(\/\/\)[^/].*/{
26990 s//\1/
26993 /^X\(\/\/\)$/{
26994 s//\1/
26997 /^X\(\/\).*/{
26998 s//\1/
27001 s/.*/./; q'`
27002 test -d "$as_dir" && break
27003 done
27004 test -z "$as_dirs" || eval "mkdir $as_dirs"
27005 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27008 } # as_fn_mkdir_p
27009 if mkdir -p . 2>/dev/null; then
27010 as_mkdir_p='mkdir -p "$as_dir"'
27011 else
27012 test -d ./-p && rmdir ./-p
27013 as_mkdir_p=false
27016 if test -x / >/dev/null 2>&1; then
27017 as_test_x='test -x'
27018 else
27019 if ls -dL / >/dev/null 2>&1; then
27020 as_ls_L_option=L
27021 else
27022 as_ls_L_option=
27024 as_test_x='
27025 eval sh -c '\''
27026 if test -d "$1"; then
27027 test -d "$1/.";
27028 else
27029 case $1 in #(
27030 -*)set "./$1";;
27031 esac;
27032 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27033 ???[sx]*):;;*)false;;esac;fi
27034 '\'' sh
27037 as_executable_p=$as_test_x
27039 # Sed expression to map a string onto a valid CPP name.
27040 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27042 # Sed expression to map a string onto a valid variable name.
27043 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27046 exec 6>&1
27047 ## ----------------------------------- ##
27048 ## Main body of $CONFIG_STATUS script. ##
27049 ## ----------------------------------- ##
27050 _ASEOF
27051 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27054 # Save the log message, to keep $0 and so on meaningful, and to
27055 # report actual input values of CONFIG_FILES etc. instead of their
27056 # values after options handling.
27057 ac_log="
27058 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27059 generated by GNU Autoconf 2.64. Invocation command line was
27061 CONFIG_FILES = $CONFIG_FILES
27062 CONFIG_HEADERS = $CONFIG_HEADERS
27063 CONFIG_LINKS = $CONFIG_LINKS
27064 CONFIG_COMMANDS = $CONFIG_COMMANDS
27065 $ $0 $@
27067 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27070 _ACEOF
27072 case $ac_config_files in *"
27073 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27074 esac
27076 case $ac_config_headers in *"
27077 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27078 esac
27081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27082 # Files that config.status was made for.
27083 config_files="$ac_config_files"
27084 config_headers="$ac_config_headers"
27085 config_commands="$ac_config_commands"
27087 _ACEOF
27089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27090 ac_cs_usage="\
27091 \`$as_me' instantiates files and other configuration actions
27092 from templates according to the current configuration. Unless the files
27093 and actions are specified as TAGs, all are instantiated by default.
27095 Usage: $0 [OPTION]... [TAG]...
27097 -h, --help print this help, then exit
27098 -V, --version print version number and configuration settings, then exit
27099 -q, --quiet, --silent
27100 do not print progress messages
27101 -d, --debug don't remove temporary files
27102 --recheck update $as_me by reconfiguring in the same conditions
27103 --file=FILE[:TEMPLATE]
27104 instantiate the configuration file FILE
27105 --header=FILE[:TEMPLATE]
27106 instantiate the configuration header FILE
27108 Configuration files:
27109 $config_files
27111 Configuration headers:
27112 $config_headers
27114 Configuration commands:
27115 $config_commands
27117 Report bugs to the package provider.
27118 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27119 General help using GNU software: <http://www.gnu.org/gethelp/>."
27121 _ACEOF
27122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27123 ac_cs_version="\\
27124 GNU Fortran Runtime Library config.status 0.3
27125 configured by $0, generated by GNU Autoconf 2.64,
27126 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27128 Copyright (C) 2009 Free Software Foundation, Inc.
27129 This config.status script is free software; the Free Software Foundation
27130 gives unlimited permission to copy, distribute and modify it."
27132 ac_pwd='$ac_pwd'
27133 srcdir='$srcdir'
27134 INSTALL='$INSTALL'
27135 MKDIR_P='$MKDIR_P'
27136 AWK='$AWK'
27137 test -n "\$AWK" || AWK=awk
27138 _ACEOF
27140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27141 # The default lists apply if the user does not specify any file.
27142 ac_need_defaults=:
27143 while test $# != 0
27145 case $1 in
27146 --*=*)
27147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27148 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27149 ac_shift=:
27152 ac_option=$1
27153 ac_optarg=$2
27154 ac_shift=shift
27156 esac
27158 case $ac_option in
27159 # Handling of the options.
27160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27161 ac_cs_recheck=: ;;
27162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27163 $as_echo "$ac_cs_version"; exit ;;
27164 --debug | --debu | --deb | --de | --d | -d )
27165 debug=: ;;
27166 --file | --fil | --fi | --f )
27167 $ac_shift
27168 case $ac_optarg in
27169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27170 esac
27171 as_fn_append CONFIG_FILES " '$ac_optarg'"
27172 ac_need_defaults=false;;
27173 --header | --heade | --head | --hea )
27174 $ac_shift
27175 case $ac_optarg in
27176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27177 esac
27178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27179 ac_need_defaults=false;;
27180 --he | --h)
27181 # Conflict between --help and --header
27182 as_fn_error "ambiguous option: \`$1'
27183 Try \`$0 --help' for more information.";;
27184 --help | --hel | -h )
27185 $as_echo "$ac_cs_usage"; exit ;;
27186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27188 ac_cs_silent=: ;;
27190 # This is an error.
27191 -*) as_fn_error "unrecognized option: \`$1'
27192 Try \`$0 --help' for more information." ;;
27194 *) as_fn_append ac_config_targets " $1"
27195 ac_need_defaults=false ;;
27197 esac
27198 shift
27199 done
27201 ac_configure_extra_args=
27203 if $ac_cs_silent; then
27204 exec 6>/dev/null
27205 ac_configure_extra_args="$ac_configure_extra_args --silent"
27208 _ACEOF
27209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27210 if \$ac_cs_recheck; then
27211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27212 shift
27213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27214 CONFIG_SHELL='$SHELL'
27215 export CONFIG_SHELL
27216 exec "\$@"
27219 _ACEOF
27220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27221 exec 5>>config.log
27223 echo
27224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27225 ## Running $as_me. ##
27226 _ASBOX
27227 $as_echo "$ac_log"
27228 } >&5
27230 _ACEOF
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27233 # INIT-COMMANDS
27236 srcdir="$srcdir"
27237 host="$host"
27238 target="$target"
27239 with_multisubdir="$with_multisubdir"
27240 with_multisrctop="$with_multisrctop"
27241 with_target_subdir="$with_target_subdir"
27242 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27243 multi_basedir="$multi_basedir"
27244 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27245 CC="$CC"
27246 CXX="$CXX"
27247 GFORTRAN="$GFORTRAN"
27248 GCJ="$GCJ"
27249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27252 # The HP-UX ksh and POSIX shell print the target directory to stdout
27253 # if CDPATH is set.
27254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27256 sed_quote_subst='$sed_quote_subst'
27257 double_quote_subst='$double_quote_subst'
27258 delay_variable_subst='$delay_variable_subst'
27259 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27260 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27261 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27262 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27263 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27264 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27265 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27266 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27267 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27268 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27269 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27270 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27271 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27272 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27273 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27274 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27275 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27276 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27277 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27278 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27279 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27280 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27281 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27282 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27283 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27284 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27285 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27286 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27287 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27288 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27289 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27290 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27291 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27292 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27293 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27294 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27295 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27296 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27297 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27298 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27299 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27300 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27301 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27302 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27303 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27304 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27305 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27306 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27307 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"`'
27308 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27309 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27310 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27311 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27313 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27314 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27315 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27316 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27317 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27318 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27319 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27320 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27321 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27322 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27323 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27324 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27325 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27326 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27327 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27328 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27329 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27330 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27331 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27332 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27333 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27334 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27335 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27336 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27337 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27338 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27339 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27340 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27341 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27342 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27343 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27344 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27345 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27346 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27347 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27348 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27349 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27350 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27351 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27352 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27353 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27354 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27355 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27356 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27357 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27358 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27359 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27360 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27361 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27362 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27363 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27364 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27365 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27366 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27367 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27368 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27369 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27370 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27371 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27372 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27373 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27374 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27375 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27376 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27377 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27378 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27379 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27380 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27381 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27382 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27383 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27384 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27385 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27386 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27387 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27388 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27389 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27390 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27391 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27392 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27393 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27394 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27395 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27396 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27397 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27398 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27399 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27400 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27401 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27402 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27403 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27404 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27405 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27406 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27407 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27408 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27409 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27410 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27411 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27412 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27413 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27414 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27415 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27416 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27417 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27418 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27419 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27420 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27421 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27422 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27423 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27424 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27425 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27426 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27427 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27428 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27429 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27430 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27431 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27432 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27433 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27435 LTCC='$LTCC'
27436 LTCFLAGS='$LTCFLAGS'
27437 compiler='$compiler_DEFAULT'
27439 # A function that is used when there is no print builtin or printf.
27440 func_fallback_echo ()
27442 eval 'cat <<_LTECHO_EOF
27444 _LTECHO_EOF'
27447 # Quote evaled strings.
27448 for var in SHELL \
27449 ECHO \
27450 SED \
27451 GREP \
27452 EGREP \
27453 FGREP \
27454 LD \
27455 NM \
27456 LN_S \
27457 lt_SP2NL \
27458 lt_NL2SP \
27459 reload_flag \
27460 OBJDUMP \
27461 deplibs_check_method \
27462 file_magic_cmd \
27463 AR \
27464 AR_FLAGS \
27465 STRIP \
27466 RANLIB \
27467 CC \
27468 CFLAGS \
27469 compiler \
27470 lt_cv_sys_global_symbol_pipe \
27471 lt_cv_sys_global_symbol_to_cdecl \
27472 lt_cv_sys_global_symbol_to_c_name_address \
27473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27474 lt_prog_compiler_no_builtin_flag \
27475 lt_prog_compiler_wl \
27476 lt_prog_compiler_pic \
27477 lt_prog_compiler_static \
27478 lt_cv_prog_compiler_c_o \
27479 need_locks \
27480 DSYMUTIL \
27481 NMEDIT \
27482 LIPO \
27483 OTOOL \
27484 OTOOL64 \
27485 shrext_cmds \
27486 export_dynamic_flag_spec \
27487 whole_archive_flag_spec \
27488 compiler_needs_object \
27489 with_gnu_ld \
27490 allow_undefined_flag \
27491 no_undefined_flag \
27492 hardcode_libdir_flag_spec \
27493 hardcode_libdir_flag_spec_ld \
27494 hardcode_libdir_separator \
27495 fix_srcfile_path \
27496 exclude_expsyms \
27497 include_expsyms \
27498 file_list_spec \
27499 variables_saved_for_relink \
27500 libname_spec \
27501 library_names_spec \
27502 soname_spec \
27503 install_override_mode \
27504 finish_eval \
27505 old_striplib \
27506 striplib \
27507 compiler_lib_search_dirs \
27508 predep_objects \
27509 postdep_objects \
27510 predeps \
27511 postdeps \
27512 compiler_lib_search_path \
27513 LD_FC \
27514 reload_flag_FC \
27515 compiler_FC \
27516 lt_prog_compiler_no_builtin_flag_FC \
27517 lt_prog_compiler_wl_FC \
27518 lt_prog_compiler_pic_FC \
27519 lt_prog_compiler_static_FC \
27520 lt_cv_prog_compiler_c_o_FC \
27521 export_dynamic_flag_spec_FC \
27522 whole_archive_flag_spec_FC \
27523 compiler_needs_object_FC \
27524 with_gnu_ld_FC \
27525 allow_undefined_flag_FC \
27526 no_undefined_flag_FC \
27527 hardcode_libdir_flag_spec_FC \
27528 hardcode_libdir_flag_spec_ld_FC \
27529 hardcode_libdir_separator_FC \
27530 fix_srcfile_path_FC \
27531 exclude_expsyms_FC \
27532 include_expsyms_FC \
27533 file_list_spec_FC \
27534 compiler_lib_search_dirs_FC \
27535 predep_objects_FC \
27536 postdep_objects_FC \
27537 predeps_FC \
27538 postdeps_FC \
27539 compiler_lib_search_path_FC; do
27540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27541 *[\\\\\\\`\\"\\\$]*)
27542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27547 esac
27548 done
27550 # Double-quote double-evaled strings.
27551 for var in reload_cmds \
27552 old_postinstall_cmds \
27553 old_postuninstall_cmds \
27554 old_archive_cmds \
27555 extract_expsyms_cmds \
27556 old_archive_from_new_cmds \
27557 old_archive_from_expsyms_cmds \
27558 archive_cmds \
27559 archive_expsym_cmds \
27560 module_cmds \
27561 module_expsym_cmds \
27562 export_symbols_cmds \
27563 prelink_cmds \
27564 postinstall_cmds \
27565 postuninstall_cmds \
27566 finish_cmds \
27567 sys_lib_search_path_spec \
27568 sys_lib_dlsearch_path_spec \
27569 reload_cmds_FC \
27570 old_archive_cmds_FC \
27571 old_archive_from_new_cmds_FC \
27572 old_archive_from_expsyms_cmds_FC \
27573 archive_cmds_FC \
27574 archive_expsym_cmds_FC \
27575 module_cmds_FC \
27576 module_expsym_cmds_FC \
27577 export_symbols_cmds_FC \
27578 prelink_cmds_FC; do
27579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27580 *[\\\\\\\`\\"\\\$]*)
27581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27586 esac
27587 done
27589 ac_aux_dir='$ac_aux_dir'
27590 xsi_shell='$xsi_shell'
27591 lt_shell_append='$lt_shell_append'
27593 # See if we are running on zsh, and set the options which allow our
27594 # commands through without removal of \ escapes INIT.
27595 if test -n "\${ZSH_VERSION+set}" ; then
27596 setopt NO_GLOB_SUBST
27600 PACKAGE='$PACKAGE'
27601 VERSION='$VERSION'
27602 TIMESTAMP='$TIMESTAMP'
27603 RM='$RM'
27604 ofile='$ofile'
27611 GCC="$GCC"
27612 CC="$CC"
27613 acx_cv_header_stdint="$acx_cv_header_stdint"
27614 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27615 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27616 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27617 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27618 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27619 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27620 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27621 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27622 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27623 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27624 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27625 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27626 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27629 _ACEOF
27631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27633 # Handling of arguments.
27634 for ac_config_target in $ac_config_targets
27636 case $ac_config_target in
27637 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27638 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27639 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27640 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27641 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27643 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27645 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27646 esac
27647 done
27650 # If the user did not use the arguments to specify the items to instantiate,
27651 # then the envvar interface is used. Set only those that are not.
27652 # We use the long form for the default assignment because of an extremely
27653 # bizarre bug on SunOS 4.1.3.
27654 if $ac_need_defaults; then
27655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27660 # Have a temporary directory for convenience. Make it in the build tree
27661 # simply because there is no reason against having it here, and in addition,
27662 # creating and moving files from /tmp can sometimes cause problems.
27663 # Hook for its removal unless debugging.
27664 # Note that there is a small window in which the directory will not be cleaned:
27665 # after its creation but before its name has been assigned to `$tmp'.
27666 $debug ||
27668 tmp=
27669 trap 'exit_status=$?
27670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27672 trap 'as_fn_exit 1' 1 2 13 15
27674 # Create a (secure) tmp directory for tmp files.
27677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27678 test -n "$tmp" && test -d "$tmp"
27679 } ||
27681 tmp=./conf$$-$RANDOM
27682 (umask 077 && mkdir "$tmp")
27683 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27685 # Set up the scripts for CONFIG_FILES section.
27686 # No need to generate them if there are no CONFIG_FILES.
27687 # This happens for instance with `./config.status config.h'.
27688 if test -n "$CONFIG_FILES"; then
27691 ac_cr=`echo X | tr X '\015'`
27692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27693 # But we know of no other shell where ac_cr would be empty at this
27694 # point, so we can use a bashism as a fallback.
27695 if test "x$ac_cr" = x; then
27696 eval ac_cr=\$\'\\r\'
27698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27700 ac_cs_awk_cr='\r'
27701 else
27702 ac_cs_awk_cr=$ac_cr
27705 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27706 _ACEOF
27710 echo "cat >conf$$subs.awk <<_ACEOF" &&
27711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27712 echo "_ACEOF"
27713 } >conf$$subs.sh ||
27714 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27716 ac_delim='%!_!# '
27717 for ac_last_try in false false false false false :; do
27718 . ./conf$$subs.sh ||
27719 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27722 if test $ac_delim_n = $ac_delim_num; then
27723 break
27724 elif $ac_last_try; then
27725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27726 else
27727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27729 done
27730 rm -f conf$$subs.sh
27732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27733 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27734 _ACEOF
27735 sed -n '
27737 s/^/S["/; s/!.*/"]=/
27740 s/^[^!]*!//
27741 :repl
27742 t repl
27743 s/'"$ac_delim"'$//
27744 t delim
27747 s/\(.\{148\}\).*/\1/
27748 t more1
27749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27752 b repl
27753 :more1
27754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27757 s/.\{148\}//
27758 t nl
27759 :delim
27761 s/\(.\{148\}\).*/\1/
27762 t more2
27763 s/["\\]/\\&/g; s/^/"/; s/$/"/
27766 :more2
27767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27770 s/.\{148\}//
27771 t delim
27772 ' <conf$$subs.awk | sed '
27773 /^[^""]/{
27775 s/\n//
27777 ' >>$CONFIG_STATUS || ac_write_fail=1
27778 rm -f conf$$subs.awk
27779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27780 _ACAWK
27781 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27782 for (key in S) S_is_set[key] = 1
27783 FS = "\a"
27787 line = $ 0
27788 nfields = split(line, field, "@")
27789 substed = 0
27790 len = length(field[1])
27791 for (i = 2; i < nfields; i++) {
27792 key = field[i]
27793 keylen = length(key)
27794 if (S_is_set[key]) {
27795 value = S[key]
27796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27797 len += length(value) + length(field[++i])
27798 substed = 1
27799 } else
27800 len += 1 + keylen
27803 print line
27806 _ACAWK
27807 _ACEOF
27808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27811 else
27813 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27814 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27815 _ACEOF
27817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27819 # trailing colons and then remove the whole line if VPATH becomes empty
27820 # (actually we leave an empty line to preserve line numbers).
27821 if test "x$srcdir" = x.; then
27822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27823 s/:*\$(srcdir):*/:/
27824 s/:*\${srcdir}:*/:/
27825 s/:*@srcdir@:*/:/
27826 s/^\([^=]*=[ ]*\):*/\1/
27827 s/:*$//
27828 s/^[^=]*=[ ]*$//
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833 fi # test -n "$CONFIG_FILES"
27835 # Set up the scripts for CONFIG_HEADERS section.
27836 # No need to generate them if there are no CONFIG_HEADERS.
27837 # This happens for instance with `./config.status Makefile'.
27838 if test -n "$CONFIG_HEADERS"; then
27839 cat >"$tmp/defines.awk" <<\_ACAWK ||
27840 BEGIN {
27841 _ACEOF
27843 # Transform confdefs.h into an awk script `defines.awk', embedded as
27844 # here-document in config.status, that substitutes the proper values into
27845 # config.h.in to produce config.h.
27847 # Create a delimiter string that does not exist in confdefs.h, to ease
27848 # handling of long lines.
27849 ac_delim='%!_!# '
27850 for ac_last_try in false false :; do
27851 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27852 if test -z "$ac_t"; then
27853 break
27854 elif $ac_last_try; then
27855 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27856 else
27857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27859 done
27861 # For the awk script, D is an array of macro values keyed by name,
27862 # likewise P contains macro parameters if any. Preserve backslash
27863 # newline sequences.
27865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27866 sed -n '
27867 s/.\{148\}/&'"$ac_delim"'/g
27868 t rset
27869 :rset
27870 s/^[ ]*#[ ]*define[ ][ ]*/ /
27871 t def
27873 :def
27874 s/\\$//
27875 t bsnl
27876 s/["\\]/\\&/g
27877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27878 D["\1"]=" \3"/p
27879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27881 :bsnl
27882 s/["\\]/\\&/g
27883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27884 D["\1"]=" \3\\\\\\n"\\/p
27885 t cont
27886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27887 t cont
27889 :cont
27891 s/.\{148\}/&'"$ac_delim"'/g
27892 t clear
27893 :clear
27894 s/\\$//
27895 t bsnlc
27896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27898 :bsnlc
27899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27900 b cont
27901 ' <confdefs.h | sed '
27902 s/'"$ac_delim"'/"\\\
27903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 for (key in D) D_is_set[key] = 1
27907 FS = "\a"
27909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27910 line = \$ 0
27911 split(line, arg, " ")
27912 if (arg[1] == "#") {
27913 defundef = arg[2]
27914 mac1 = arg[3]
27915 } else {
27916 defundef = substr(arg[1], 2)
27917 mac1 = arg[2]
27919 split(mac1, mac2, "(") #)
27920 macro = mac2[1]
27921 prefix = substr(line, 1, index(line, defundef) - 1)
27922 if (D_is_set[macro]) {
27923 # Preserve the white space surrounding the "#".
27924 print prefix "define", macro P[macro] D[macro]
27925 next
27926 } else {
27927 # Replace #undef with comments. This is necessary, for example,
27928 # in the case of _POSIX_SOURCE, which is predefined and required
27929 # on some systems where configure will not decide to define it.
27930 if (defundef == "undef") {
27931 print "/*", prefix defundef, macro, "*/"
27932 next
27936 { print }
27937 _ACAWK
27938 _ACEOF
27939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27940 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27941 fi # test -n "$CONFIG_HEADERS"
27944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27945 shift
27946 for ac_tag
27948 case $ac_tag in
27949 :[FHLC]) ac_mode=$ac_tag; continue;;
27950 esac
27951 case $ac_mode$ac_tag in
27952 :[FHL]*:*);;
27953 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27954 :[FH]-) ac_tag=-:-;;
27955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27956 esac
27957 ac_save_IFS=$IFS
27958 IFS=:
27959 set x $ac_tag
27960 IFS=$ac_save_IFS
27961 shift
27962 ac_file=$1
27963 shift
27965 case $ac_mode in
27966 :L) ac_source=$1;;
27967 :[FH])
27968 ac_file_inputs=
27969 for ac_f
27971 case $ac_f in
27972 -) ac_f="$tmp/stdin";;
27973 *) # Look for the file first in the build tree, then in the source tree
27974 # (if the path is not absolute). The absolute path cannot be DOS-style,
27975 # because $ac_f cannot contain `:'.
27976 test -f "$ac_f" ||
27977 case $ac_f in
27978 [\\/$]*) false;;
27979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27980 esac ||
27981 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27982 esac
27983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27984 as_fn_append ac_file_inputs " '$ac_f'"
27985 done
27987 # Let's still pretend it is `configure' which instantiates (i.e., don't
27988 # use $as_me), people would be surprised to read:
27989 # /* config.h. Generated by config.status. */
27990 configure_input='Generated from '`
27991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27992 `' by configure.'
27993 if test x"$ac_file" != x-; then
27994 configure_input="$ac_file. $configure_input"
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27996 $as_echo "$as_me: creating $ac_file" >&6;}
27998 # Neutralize special characters interpreted by sed in replacement strings.
27999 case $configure_input in #(
28000 *\&* | *\|* | *\\* )
28001 ac_sed_conf_input=`$as_echo "$configure_input" |
28002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28003 *) ac_sed_conf_input=$configure_input;;
28004 esac
28006 case $ac_tag in
28007 *:-:* | *:-) cat >"$tmp/stdin" \
28008 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28009 esac
28011 esac
28013 ac_dir=`$as_dirname -- "$ac_file" ||
28014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28015 X"$ac_file" : 'X\(//\)[^/]' \| \
28016 X"$ac_file" : 'X\(//\)$' \| \
28017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28018 $as_echo X"$ac_file" |
28019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28020 s//\1/
28023 /^X\(\/\/\)[^/].*/{
28024 s//\1/
28027 /^X\(\/\/\)$/{
28028 s//\1/
28031 /^X\(\/\).*/{
28032 s//\1/
28035 s/.*/./; q'`
28036 as_dir="$ac_dir"; as_fn_mkdir_p
28037 ac_builddir=.
28039 case "$ac_dir" in
28040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28043 # A ".." for each directory in $ac_dir_suffix.
28044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28045 case $ac_top_builddir_sub in
28046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28048 esac ;;
28049 esac
28050 ac_abs_top_builddir=$ac_pwd
28051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28052 # for backward compatibility:
28053 ac_top_builddir=$ac_top_build_prefix
28055 case $srcdir in
28056 .) # We are building in place.
28057 ac_srcdir=.
28058 ac_top_srcdir=$ac_top_builddir_sub
28059 ac_abs_top_srcdir=$ac_pwd ;;
28060 [\\/]* | ?:[\\/]* ) # Absolute name.
28061 ac_srcdir=$srcdir$ac_dir_suffix;
28062 ac_top_srcdir=$srcdir
28063 ac_abs_top_srcdir=$srcdir ;;
28064 *) # Relative name.
28065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28066 ac_top_srcdir=$ac_top_build_prefix$srcdir
28067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28068 esac
28069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28072 case $ac_mode in
28075 # CONFIG_FILE
28078 case $INSTALL in
28079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28081 esac
28082 ac_MKDIR_P=$MKDIR_P
28083 case $MKDIR_P in
28084 [\\/$]* | ?:[\\/]* ) ;;
28085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28086 esac
28087 _ACEOF
28089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28090 # If the template does not know about datarootdir, expand it.
28091 # FIXME: This hack should be removed a few years after 2.60.
28092 ac_datarootdir_hack=; ac_datarootdir_seen=
28093 ac_sed_dataroot='
28094 /datarootdir/ {
28098 /@datadir@/p
28099 /@docdir@/p
28100 /@infodir@/p
28101 /@localedir@/p
28102 /@mandir@/p'
28103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28104 *datarootdir*) ac_datarootdir_seen=yes;;
28105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28108 _ACEOF
28109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28110 ac_datarootdir_hack='
28111 s&@datadir@&$datadir&g
28112 s&@docdir@&$docdir&g
28113 s&@infodir@&$infodir&g
28114 s&@localedir@&$localedir&g
28115 s&@mandir@&$mandir&g
28116 s&\\\${datarootdir}&$datarootdir&g' ;;
28117 esac
28118 _ACEOF
28120 # Neutralize VPATH when `$srcdir' = `.'.
28121 # Shell code in configure.ac might set extrasub.
28122 # FIXME: do we really want to maintain this feature?
28123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28124 ac_sed_extra="$ac_vpsub
28125 $extrasub
28126 _ACEOF
28127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28130 s|@configure_input@|$ac_sed_conf_input|;t t
28131 s&@top_builddir@&$ac_top_builddir_sub&;t t
28132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28133 s&@srcdir@&$ac_srcdir&;t t
28134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28135 s&@top_srcdir@&$ac_top_srcdir&;t t
28136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28137 s&@builddir@&$ac_builddir&;t t
28138 s&@abs_builddir@&$ac_abs_builddir&;t t
28139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28140 s&@INSTALL@&$ac_INSTALL&;t t
28141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28142 $ac_datarootdir_hack
28144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28145 || as_fn_error "could not create $ac_file" "$LINENO" 5
28147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28148 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28151 which seems to be undefined. Please make sure it is defined." >&5
28152 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28153 which seems to be undefined. Please make sure it is defined." >&2;}
28155 rm -f "$tmp/stdin"
28156 case $ac_file in
28157 -) cat "$tmp/out" && rm -f "$tmp/out";;
28158 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28159 esac \
28160 || as_fn_error "could not create $ac_file" "$LINENO" 5
28164 # CONFIG_HEADER
28166 if test x"$ac_file" != x-; then
28168 $as_echo "/* $configure_input */" \
28169 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28170 } >"$tmp/config.h" \
28171 || as_fn_error "could not create $ac_file" "$LINENO" 5
28172 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28174 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28175 else
28176 rm -f "$ac_file"
28177 mv "$tmp/config.h" "$ac_file" \
28178 || as_fn_error "could not create $ac_file" "$LINENO" 5
28180 else
28181 $as_echo "/* $configure_input */" \
28182 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28183 || as_fn_error "could not create -" "$LINENO" 5
28185 # Compute "$ac_file"'s index in $config_headers.
28186 _am_arg="$ac_file"
28187 _am_stamp_count=1
28188 for _am_header in $config_headers :; do
28189 case $_am_header in
28190 $_am_arg | $_am_arg:* )
28191 break ;;
28193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28194 esac
28195 done
28196 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28197 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28198 X"$_am_arg" : 'X\(//\)[^/]' \| \
28199 X"$_am_arg" : 'X\(//\)$' \| \
28200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28201 $as_echo X"$_am_arg" |
28202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28203 s//\1/
28206 /^X\(\/\/\)[^/].*/{
28207 s//\1/
28210 /^X\(\/\/\)$/{
28211 s//\1/
28214 /^X\(\/\).*/{
28215 s//\1/
28218 s/.*/./; q'`/stamp-h$_am_stamp_count
28221 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28222 $as_echo "$as_me: executing $ac_file commands" >&6;}
28224 esac
28227 case $ac_file$ac_mode in
28228 "default-1":C)
28229 # Only add multilib support code if we just rebuilt the top-level
28230 # Makefile.
28231 case " $CONFIG_FILES " in
28232 *" Makefile "*)
28233 ac_file=Makefile . ${multi_basedir}/config-ml.in
28235 esac ;;
28236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28238 # are listed without --file. Let's play safe and only enable the eval
28239 # if we detect the quoting.
28240 case $CONFIG_FILES in
28241 *\'*) eval set x "$CONFIG_FILES" ;;
28242 *) set x $CONFIG_FILES ;;
28243 esac
28244 shift
28245 for mf
28247 # Strip MF so we end up with the name of the file.
28248 mf=`echo "$mf" | sed -e 's/:.*$//'`
28249 # Check whether this is an Automake generated Makefile or not.
28250 # We used to match only the files named `Makefile.in', but
28251 # some people rename them; so instead we look at the file content.
28252 # Grep'ing the first line is not enough: some people post-process
28253 # each Makefile.in and add a new line on top of each file to say so.
28254 # Grep'ing the whole file is not good either: AIX grep has a line
28255 # limit of 2048, but all sed's we know have understand at least 4000.
28256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28257 dirpart=`$as_dirname -- "$mf" ||
28258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259 X"$mf" : 'X\(//\)[^/]' \| \
28260 X"$mf" : 'X\(//\)$' \| \
28261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28262 $as_echo X"$mf" |
28263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28264 s//\1/
28267 /^X\(\/\/\)[^/].*/{
28268 s//\1/
28271 /^X\(\/\/\)$/{
28272 s//\1/
28275 /^X\(\/\).*/{
28276 s//\1/
28279 s/.*/./; q'`
28280 else
28281 continue
28283 # Extract the definition of DEPDIR, am__include, and am__quote
28284 # from the Makefile without running `make'.
28285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28286 test -z "$DEPDIR" && continue
28287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28288 test -z "am__include" && continue
28289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28290 # When using ansi2knr, U may be empty or an underscore; expand it
28291 U=`sed -n 's/^U = //p' < "$mf"`
28292 # Find all dependency output files, they are included files with
28293 # $(DEPDIR) in their names. We invoke sed twice because it is the
28294 # simplest approach to changing $(DEPDIR) to its actual value in the
28295 # expansion.
28296 for file in `sed -n "
28297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28299 # Make sure the directory exists.
28300 test -f "$dirpart/$file" && continue
28301 fdir=`$as_dirname -- "$file" ||
28302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28303 X"$file" : 'X\(//\)[^/]' \| \
28304 X"$file" : 'X\(//\)$' \| \
28305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28306 $as_echo X"$file" |
28307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28308 s//\1/
28311 /^X\(\/\/\)[^/].*/{
28312 s//\1/
28315 /^X\(\/\/\)$/{
28316 s//\1/
28319 /^X\(\/\).*/{
28320 s//\1/
28323 s/.*/./; q'`
28324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28325 # echo "creating $dirpart/$file"
28326 echo '# dummy' > "$dirpart/$file"
28327 done
28328 done
28331 "libtool":C)
28333 # See if we are running on zsh, and set the options which allow our
28334 # commands through without removal of \ escapes.
28335 if test -n "${ZSH_VERSION+set}" ; then
28336 setopt NO_GLOB_SUBST
28339 cfgfile="${ofile}T"
28340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28341 $RM "$cfgfile"
28343 cat <<_LT_EOF >> "$cfgfile"
28344 #! $SHELL
28346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28351 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28352 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28353 # Written by Gordon Matzigkeit, 1996
28355 # This file is part of GNU Libtool.
28357 # GNU Libtool is free software; you can redistribute it and/or
28358 # modify it under the terms of the GNU General Public License as
28359 # published by the Free Software Foundation; either version 2 of
28360 # the License, or (at your option) any later version.
28362 # As a special exception to the GNU General Public License,
28363 # if you distribute this file as part of a program or library that
28364 # is built using GNU Libtool, you may include this file under the
28365 # same distribution terms that you use for the rest of that program.
28367 # GNU Libtool is distributed in the hope that it will be useful,
28368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28370 # GNU General Public License for more details.
28372 # You should have received a copy of the GNU General Public License
28373 # along with GNU Libtool; see the file COPYING. If not, a copy
28374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28375 # obtained by writing to the Free Software Foundation, Inc.,
28376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28379 # The names of the tagged configurations supported by this script.
28380 available_tags="FC "
28382 # ### BEGIN LIBTOOL CONFIG
28384 # Which release of libtool.m4 was used?
28385 macro_version=$macro_version
28386 macro_revision=$macro_revision
28388 # Whether or not to build shared libraries.
28389 build_libtool_libs=$enable_shared
28391 # Whether or not to build static libraries.
28392 build_old_libs=$enable_static
28394 # What type of objects to build.
28395 pic_mode=$pic_mode
28397 # Whether or not to optimize for fast installation.
28398 fast_install=$enable_fast_install
28400 # Shell to use when invoking shell scripts.
28401 SHELL=$lt_SHELL
28403 # An echo program that protects backslashes.
28404 ECHO=$lt_ECHO
28406 # The host system.
28407 host_alias=$host_alias
28408 host=$host
28409 host_os=$host_os
28411 # The build system.
28412 build_alias=$build_alias
28413 build=$build
28414 build_os=$build_os
28416 # A sed program that does not truncate output.
28417 SED=$lt_SED
28419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28420 Xsed="\$SED -e 1s/^X//"
28422 # A grep program that handles long lines.
28423 GREP=$lt_GREP
28425 # An ERE matcher.
28426 EGREP=$lt_EGREP
28428 # A literal string matcher.
28429 FGREP=$lt_FGREP
28431 # A BSD- or MS-compatible name lister.
28432 NM=$lt_NM
28434 # Whether we need soft or hard links.
28435 LN_S=$lt_LN_S
28437 # What is the maximum length of a command?
28438 max_cmd_len=$max_cmd_len
28440 # Object file suffix (normally "o").
28441 objext=$ac_objext
28443 # Executable file suffix (normally "").
28444 exeext=$exeext
28446 # whether the shell understands "unset".
28447 lt_unset=$lt_unset
28449 # turn spaces into newlines.
28450 SP2NL=$lt_lt_SP2NL
28452 # turn newlines into spaces.
28453 NL2SP=$lt_lt_NL2SP
28455 # An object symbol dumper.
28456 OBJDUMP=$lt_OBJDUMP
28458 # Method to check whether dependent libraries are shared objects.
28459 deplibs_check_method=$lt_deplibs_check_method
28461 # Command to use when deplibs_check_method == "file_magic".
28462 file_magic_cmd=$lt_file_magic_cmd
28464 # The archiver.
28465 AR=$lt_AR
28466 AR_FLAGS=$lt_AR_FLAGS
28468 # A symbol stripping program.
28469 STRIP=$lt_STRIP
28471 # Commands used to install an old-style archive.
28472 RANLIB=$lt_RANLIB
28473 old_postinstall_cmds=$lt_old_postinstall_cmds
28474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28476 # Whether to use a lock for old archive extraction.
28477 lock_old_archive_extraction=$lock_old_archive_extraction
28479 # A C compiler.
28480 LTCC=$lt_CC
28482 # LTCC compiler flags.
28483 LTCFLAGS=$lt_CFLAGS
28485 # Take the output of nm and produce a listing of raw symbols and C names.
28486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28488 # Transform the output of nm in a proper C declaration.
28489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28491 # Transform the output of nm in a C name address pair.
28492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28494 # Transform the output of nm in a C name address pair when lib prefix is needed.
28495 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28497 # The name of the directory that contains temporary libtool files.
28498 objdir=$objdir
28500 # Used to examine libraries when file_magic_cmd begins with "file".
28501 MAGIC_CMD=$MAGIC_CMD
28503 # Must we lock files when doing compilation?
28504 need_locks=$lt_need_locks
28506 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28507 DSYMUTIL=$lt_DSYMUTIL
28509 # Tool to change global to local symbols on Mac OS X.
28510 NMEDIT=$lt_NMEDIT
28512 # Tool to manipulate fat objects and archives on Mac OS X.
28513 LIPO=$lt_LIPO
28515 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28516 OTOOL=$lt_OTOOL
28518 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28519 OTOOL64=$lt_OTOOL64
28521 # Old archive suffix (normally "a").
28522 libext=$libext
28524 # Shared library suffix (normally ".so").
28525 shrext_cmds=$lt_shrext_cmds
28527 # The commands to extract the exported symbol list from a shared archive.
28528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28530 # Variables whose values should be saved in libtool wrapper scripts and
28531 # restored at link time.
28532 variables_saved_for_relink=$lt_variables_saved_for_relink
28534 # Do we need the "lib" prefix for modules?
28535 need_lib_prefix=$need_lib_prefix
28537 # Do we need a version for libraries?
28538 need_version=$need_version
28540 # Library versioning type.
28541 version_type=$version_type
28543 # Shared library runtime path variable.
28544 runpath_var=$runpath_var
28546 # Shared library path variable.
28547 shlibpath_var=$shlibpath_var
28549 # Is shlibpath searched before the hard-coded library search path?
28550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28552 # Format of library name prefix.
28553 libname_spec=$lt_libname_spec
28555 # List of archive names. First name is the real one, the rest are links.
28556 # The last name is the one that the linker finds with -lNAME
28557 library_names_spec=$lt_library_names_spec
28559 # The coded name of the library, if different from the real name.
28560 soname_spec=$lt_soname_spec
28562 # Permission mode override for installation of shared libraries.
28563 install_override_mode=$lt_install_override_mode
28565 # Command to use after installation of a shared archive.
28566 postinstall_cmds=$lt_postinstall_cmds
28568 # Command to use after uninstallation of a shared archive.
28569 postuninstall_cmds=$lt_postuninstall_cmds
28571 # Commands used to finish a libtool library installation in a directory.
28572 finish_cmds=$lt_finish_cmds
28574 # As "finish_cmds", except a single script fragment to be evaled but
28575 # not shown.
28576 finish_eval=$lt_finish_eval
28578 # Whether we should hardcode library paths into libraries.
28579 hardcode_into_libs=$hardcode_into_libs
28581 # Compile-time system search path for libraries.
28582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28584 # Run-time system search path for libraries.
28585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28587 # Whether dlopen is supported.
28588 dlopen_support=$enable_dlopen
28590 # Whether dlopen of programs is supported.
28591 dlopen_self=$enable_dlopen_self
28593 # Whether dlopen of statically linked programs is supported.
28594 dlopen_self_static=$enable_dlopen_self_static
28596 # Commands to strip libraries.
28597 old_striplib=$lt_old_striplib
28598 striplib=$lt_striplib
28601 # The linker used to build libraries.
28602 LD=$lt_LD
28604 # How to create reloadable object files.
28605 reload_flag=$lt_reload_flag
28606 reload_cmds=$lt_reload_cmds
28608 # Commands used to build an old-style archive.
28609 old_archive_cmds=$lt_old_archive_cmds
28611 # A language specific compiler.
28612 CC=$lt_compiler
28614 # Is the compiler the GNU compiler?
28615 with_gcc=$GCC
28617 # Compiler flag to turn off builtin functions.
28618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28620 # How to pass a linker flag through the compiler.
28621 wl=$lt_lt_prog_compiler_wl
28623 # Additional compiler flags for building library objects.
28624 pic_flag=$lt_lt_prog_compiler_pic
28626 # Compiler flag to prevent dynamic linking.
28627 link_static_flag=$lt_lt_prog_compiler_static
28629 # Does compiler simultaneously support -c and -o options?
28630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28632 # Whether or not to add -lc for building shared libraries.
28633 build_libtool_need_lc=$archive_cmds_need_lc
28635 # Whether or not to disallow shared libs when runtime libs are static.
28636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28638 # Compiler flag to allow reflexive dlopens.
28639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28641 # Compiler flag to generate shared objects directly from archives.
28642 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28644 # Whether the compiler copes with passing no objects directly.
28645 compiler_needs_object=$lt_compiler_needs_object
28647 # Create an old-style archive from a shared archive.
28648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28650 # Create a temporary old-style archive to link instead of a shared archive.
28651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28653 # Commands used to build a shared archive.
28654 archive_cmds=$lt_archive_cmds
28655 archive_expsym_cmds=$lt_archive_expsym_cmds
28657 # Commands used to build a loadable module if different from building
28658 # a shared archive.
28659 module_cmds=$lt_module_cmds
28660 module_expsym_cmds=$lt_module_expsym_cmds
28662 # Whether we are building with GNU ld or not.
28663 with_gnu_ld=$lt_with_gnu_ld
28665 # Flag that allows shared libraries with undefined symbols to be built.
28666 allow_undefined_flag=$lt_allow_undefined_flag
28668 # Flag that enforces no undefined symbols.
28669 no_undefined_flag=$lt_no_undefined_flag
28671 # Flag to hardcode \$libdir into a binary during linking.
28672 # This must work even if \$libdir does not exist
28673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28675 # If ld is used when linking, flag to hardcode \$libdir into a binary
28676 # during linking. This must work even if \$libdir does not exist.
28677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28679 # Whether we need a single "-rpath" flag with a separated argument.
28680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28683 # DIR into the resulting binary.
28684 hardcode_direct=$hardcode_direct
28686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28687 # DIR into the resulting binary and the resulting library dependency is
28688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28689 # library is relocated.
28690 hardcode_direct_absolute=$hardcode_direct_absolute
28692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28693 # into the resulting binary.
28694 hardcode_minus_L=$hardcode_minus_L
28696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28697 # into the resulting binary.
28698 hardcode_shlibpath_var=$hardcode_shlibpath_var
28700 # Set to "yes" if building a shared library automatically hardcodes DIR
28701 # into the library and all subsequent libraries and executables linked
28702 # against it.
28703 hardcode_automatic=$hardcode_automatic
28705 # Set to yes if linker adds runtime paths of dependent libraries
28706 # to runtime path list.
28707 inherit_rpath=$inherit_rpath
28709 # Whether libtool must link a program against all its dependency libraries.
28710 link_all_deplibs=$link_all_deplibs
28712 # Fix the shell variable \$srcfile for the compiler.
28713 fix_srcfile_path=$lt_fix_srcfile_path
28715 # Set to "yes" if exported symbols are required.
28716 always_export_symbols=$always_export_symbols
28718 # The commands to list exported symbols.
28719 export_symbols_cmds=$lt_export_symbols_cmds
28721 # Symbols that should not be listed in the preloaded symbols.
28722 exclude_expsyms=$lt_exclude_expsyms
28724 # Symbols that must always be exported.
28725 include_expsyms=$lt_include_expsyms
28727 # Commands necessary for linking programs (against libraries) with templates.
28728 prelink_cmds=$lt_prelink_cmds
28730 # Specify filename containing input files.
28731 file_list_spec=$lt_file_list_spec
28733 # How to hardcode a shared library path into an executable.
28734 hardcode_action=$hardcode_action
28736 # The directories searched by this compiler when creating a shared library.
28737 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28739 # Dependencies to place before and after the objects being linked to
28740 # create a shared library.
28741 predep_objects=$lt_predep_objects
28742 postdep_objects=$lt_postdep_objects
28743 predeps=$lt_predeps
28744 postdeps=$lt_postdeps
28746 # The library search path used internally by the compiler when linking
28747 # a shared library.
28748 compiler_lib_search_path=$lt_compiler_lib_search_path
28750 # ### END LIBTOOL CONFIG
28752 _LT_EOF
28754 case $host_os in
28755 aix3*)
28756 cat <<\_LT_EOF >> "$cfgfile"
28757 # AIX sometimes has problems with the GCC collect2 program. For some
28758 # reason, if we set the COLLECT_NAMES environment variable, the problems
28759 # vanish in a puff of smoke.
28760 if test "X${COLLECT_NAMES+set}" != Xset; then
28761 COLLECT_NAMES=
28762 export COLLECT_NAMES
28764 _LT_EOF
28766 esac
28769 ltmain="$ac_aux_dir/ltmain.sh"
28772 # We use sed instead of cat because bash on DJGPP gets confused if
28773 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28774 # text mode, it properly converts lines to CR/LF. This bash problem
28775 # is reportedly fixed, but why not run on old versions too?
28776 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28777 || (rm -f "$cfgfile"; exit 1)
28779 case $xsi_shell in
28780 yes)
28781 cat << \_LT_EOF >> "$cfgfile"
28783 # func_dirname file append nondir_replacement
28784 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28785 # otherwise set result to NONDIR_REPLACEMENT.
28786 func_dirname ()
28788 case ${1} in
28789 */*) func_dirname_result="${1%/*}${2}" ;;
28790 * ) func_dirname_result="${3}" ;;
28791 esac
28794 # func_basename file
28795 func_basename ()
28797 func_basename_result="${1##*/}"
28800 # func_dirname_and_basename file append nondir_replacement
28801 # perform func_basename and func_dirname in a single function
28802 # call:
28803 # dirname: Compute the dirname of FILE. If nonempty,
28804 # add APPEND to the result, otherwise set result
28805 # to NONDIR_REPLACEMENT.
28806 # value returned in "$func_dirname_result"
28807 # basename: Compute filename of FILE.
28808 # value retuned in "$func_basename_result"
28809 # Implementation must be kept synchronized with func_dirname
28810 # and func_basename. For efficiency, we do not delegate to
28811 # those functions but instead duplicate the functionality here.
28812 func_dirname_and_basename ()
28814 case ${1} in
28815 */*) func_dirname_result="${1%/*}${2}" ;;
28816 * ) func_dirname_result="${3}" ;;
28817 esac
28818 func_basename_result="${1##*/}"
28821 # func_stripname prefix suffix name
28822 # strip PREFIX and SUFFIX off of NAME.
28823 # PREFIX and SUFFIX must not contain globbing or regex special
28824 # characters, hashes, percent signs, but SUFFIX may contain a leading
28825 # dot (in which case that matches only a dot).
28826 func_stripname ()
28828 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28829 # positional parameters, so assign one to ordinary parameter first.
28830 func_stripname_result=${3}
28831 func_stripname_result=${func_stripname_result#"${1}"}
28832 func_stripname_result=${func_stripname_result%"${2}"}
28835 # func_opt_split
28836 func_opt_split ()
28838 func_opt_split_opt=${1%%=*}
28839 func_opt_split_arg=${1#*=}
28842 # func_lo2o object
28843 func_lo2o ()
28845 case ${1} in
28846 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28847 *) func_lo2o_result=${1} ;;
28848 esac
28851 # func_xform libobj-or-source
28852 func_xform ()
28854 func_xform_result=${1%.*}.lo
28857 # func_arith arithmetic-term...
28858 func_arith ()
28860 func_arith_result=$(( $* ))
28863 # func_len string
28864 # STRING may not start with a hyphen.
28865 func_len ()
28867 func_len_result=${#1}
28870 _LT_EOF
28872 *) # Bourne compatible functions.
28873 cat << \_LT_EOF >> "$cfgfile"
28875 # func_dirname file append nondir_replacement
28876 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28877 # otherwise set result to NONDIR_REPLACEMENT.
28878 func_dirname ()
28880 # Extract subdirectory from the argument.
28881 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28882 if test "X$func_dirname_result" = "X${1}"; then
28883 func_dirname_result="${3}"
28884 else
28885 func_dirname_result="$func_dirname_result${2}"
28889 # func_basename file
28890 func_basename ()
28892 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28896 # func_stripname prefix suffix name
28897 # strip PREFIX and SUFFIX off of NAME.
28898 # PREFIX and SUFFIX must not contain globbing or regex special
28899 # characters, hashes, percent signs, but SUFFIX may contain a leading
28900 # dot (in which case that matches only a dot).
28901 # func_strip_suffix prefix name
28902 func_stripname ()
28904 case ${2} in
28905 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28906 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28907 esac
28910 # sed scripts:
28911 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28912 my_sed_long_arg='1s/^-[^=]*=//'
28914 # func_opt_split
28915 func_opt_split ()
28917 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28918 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28921 # func_lo2o object
28922 func_lo2o ()
28924 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28927 # func_xform libobj-or-source
28928 func_xform ()
28930 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28933 # func_arith arithmetic-term...
28934 func_arith ()
28936 func_arith_result=`expr "$@"`
28939 # func_len string
28940 # STRING may not start with a hyphen.
28941 func_len ()
28943 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28946 _LT_EOF
28947 esac
28949 case $lt_shell_append in
28950 yes)
28951 cat << \_LT_EOF >> "$cfgfile"
28953 # func_append var value
28954 # Append VALUE to the end of shell variable VAR.
28955 func_append ()
28957 eval "$1+=\$2"
28959 _LT_EOF
28962 cat << \_LT_EOF >> "$cfgfile"
28964 # func_append var value
28965 # Append VALUE to the end of shell variable VAR.
28966 func_append ()
28968 eval "$1=\$$1\$2"
28971 _LT_EOF
28973 esac
28976 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28977 || (rm -f "$cfgfile"; exit 1)
28979 mv -f "$cfgfile" "$ofile" ||
28980 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28981 chmod +x "$ofile"
28984 cat <<_LT_EOF >> "$ofile"
28986 # ### BEGIN LIBTOOL TAG CONFIG: FC
28988 # The linker used to build libraries.
28989 LD=$lt_LD_FC
28991 # How to create reloadable object files.
28992 reload_flag=$lt_reload_flag_FC
28993 reload_cmds=$lt_reload_cmds_FC
28995 # Commands used to build an old-style archive.
28996 old_archive_cmds=$lt_old_archive_cmds_FC
28998 # A language specific compiler.
28999 CC=$lt_compiler_FC
29001 # Is the compiler the GNU compiler?
29002 with_gcc=$GCC_FC
29004 # Compiler flag to turn off builtin functions.
29005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29007 # How to pass a linker flag through the compiler.
29008 wl=$lt_lt_prog_compiler_wl_FC
29010 # Additional compiler flags for building library objects.
29011 pic_flag=$lt_lt_prog_compiler_pic_FC
29013 # Compiler flag to prevent dynamic linking.
29014 link_static_flag=$lt_lt_prog_compiler_static_FC
29016 # Does compiler simultaneously support -c and -o options?
29017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29019 # Whether or not to add -lc for building shared libraries.
29020 build_libtool_need_lc=$archive_cmds_need_lc_FC
29022 # Whether or not to disallow shared libs when runtime libs are static.
29023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29025 # Compiler flag to allow reflexive dlopens.
29026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29028 # Compiler flag to generate shared objects directly from archives.
29029 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29031 # Whether the compiler copes with passing no objects directly.
29032 compiler_needs_object=$lt_compiler_needs_object_FC
29034 # Create an old-style archive from a shared archive.
29035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29037 # Create a temporary old-style archive to link instead of a shared archive.
29038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29040 # Commands used to build a shared archive.
29041 archive_cmds=$lt_archive_cmds_FC
29042 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29044 # Commands used to build a loadable module if different from building
29045 # a shared archive.
29046 module_cmds=$lt_module_cmds_FC
29047 module_expsym_cmds=$lt_module_expsym_cmds_FC
29049 # Whether we are building with GNU ld or not.
29050 with_gnu_ld=$lt_with_gnu_ld_FC
29052 # Flag that allows shared libraries with undefined symbols to be built.
29053 allow_undefined_flag=$lt_allow_undefined_flag_FC
29055 # Flag that enforces no undefined symbols.
29056 no_undefined_flag=$lt_no_undefined_flag_FC
29058 # Flag to hardcode \$libdir into a binary during linking.
29059 # This must work even if \$libdir does not exist
29060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29062 # If ld is used when linking, flag to hardcode \$libdir into a binary
29063 # during linking. This must work even if \$libdir does not exist.
29064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29066 # Whether we need a single "-rpath" flag with a separated argument.
29067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29070 # DIR into the resulting binary.
29071 hardcode_direct=$hardcode_direct_FC
29073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29074 # DIR into the resulting binary and the resulting library dependency is
29075 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29076 # library is relocated.
29077 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29079 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29080 # into the resulting binary.
29081 hardcode_minus_L=$hardcode_minus_L_FC
29083 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29084 # into the resulting binary.
29085 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29087 # Set to "yes" if building a shared library automatically hardcodes DIR
29088 # into the library and all subsequent libraries and executables linked
29089 # against it.
29090 hardcode_automatic=$hardcode_automatic_FC
29092 # Set to yes if linker adds runtime paths of dependent libraries
29093 # to runtime path list.
29094 inherit_rpath=$inherit_rpath_FC
29096 # Whether libtool must link a program against all its dependency libraries.
29097 link_all_deplibs=$link_all_deplibs_FC
29099 # Fix the shell variable \$srcfile for the compiler.
29100 fix_srcfile_path=$lt_fix_srcfile_path_FC
29102 # Set to "yes" if exported symbols are required.
29103 always_export_symbols=$always_export_symbols_FC
29105 # The commands to list exported symbols.
29106 export_symbols_cmds=$lt_export_symbols_cmds_FC
29108 # Symbols that should not be listed in the preloaded symbols.
29109 exclude_expsyms=$lt_exclude_expsyms_FC
29111 # Symbols that must always be exported.
29112 include_expsyms=$lt_include_expsyms_FC
29114 # Commands necessary for linking programs (against libraries) with templates.
29115 prelink_cmds=$lt_prelink_cmds_FC
29117 # Specify filename containing input files.
29118 file_list_spec=$lt_file_list_spec_FC
29120 # How to hardcode a shared library path into an executable.
29121 hardcode_action=$hardcode_action_FC
29123 # The directories searched by this compiler when creating a shared library.
29124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29126 # Dependencies to place before and after the objects being linked to
29127 # create a shared library.
29128 predep_objects=$lt_predep_objects_FC
29129 postdep_objects=$lt_postdep_objects_FC
29130 predeps=$lt_predeps_FC
29131 postdeps=$lt_postdeps_FC
29133 # The library search path used internally by the compiler when linking
29134 # a shared library.
29135 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29137 # ### END LIBTOOL TAG CONFIG: FC
29138 _LT_EOF
29141 "gstdint.h":C)
29142 if test "$GCC" = yes; then
29143 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29144 else
29145 echo "/* generated for $CC */" > tmp-stdint.h
29148 sed 's/^ *//' >> tmp-stdint.h <<EOF
29150 #ifndef GCC_GENERATED_STDINT_H
29151 #define GCC_GENERATED_STDINT_H 1
29153 #include <sys/types.h>
29156 if test "$acx_cv_header_stdint" != stdint.h; then
29157 echo "#include <stddef.h>" >> tmp-stdint.h
29159 if test "$acx_cv_header_stdint" != stddef.h; then
29160 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29163 sed 's/^ *//' >> tmp-stdint.h <<EOF
29164 /* glibc uses these symbols as guards to prevent redefinitions. */
29165 #ifdef __int8_t_defined
29166 #define _INT8_T
29167 #define _INT16_T
29168 #define _INT32_T
29169 #endif
29170 #ifdef __uint32_t_defined
29171 #define _UINT32_T
29172 #endif
29176 # ----------------- done header, emit basic int types -------------
29177 if test "$acx_cv_header_stdint" = stddef.h; then
29178 sed 's/^ *//' >> tmp-stdint.h <<EOF
29180 #ifndef _UINT8_T
29181 #define _UINT8_T
29182 #ifndef __uint8_t_defined
29183 #define __uint8_t_defined
29184 #ifndef uint8_t
29185 typedef unsigned $acx_cv_type_int8_t uint8_t;
29186 #endif
29187 #endif
29188 #endif
29190 #ifndef _UINT16_T
29191 #define _UINT16_T
29192 #ifndef __uint16_t_defined
29193 #define __uint16_t_defined
29194 #ifndef uint16_t
29195 typedef unsigned $acx_cv_type_int16_t uint16_t;
29196 #endif
29197 #endif
29198 #endif
29200 #ifndef _UINT32_T
29201 #define _UINT32_T
29202 #ifndef __uint32_t_defined
29203 #define __uint32_t_defined
29204 #ifndef uint32_t
29205 typedef unsigned $acx_cv_type_int32_t uint32_t;
29206 #endif
29207 #endif
29208 #endif
29210 #ifndef _INT8_T
29211 #define _INT8_T
29212 #ifndef __int8_t_defined
29213 #define __int8_t_defined
29214 #ifndef int8_t
29215 typedef $acx_cv_type_int8_t int8_t;
29216 #endif
29217 #endif
29218 #endif
29220 #ifndef _INT16_T
29221 #define _INT16_T
29222 #ifndef __int16_t_defined
29223 #define __int16_t_defined
29224 #ifndef int16_t
29225 typedef $acx_cv_type_int16_t int16_t;
29226 #endif
29227 #endif
29228 #endif
29230 #ifndef _INT32_T
29231 #define _INT32_T
29232 #ifndef __int32_t_defined
29233 #define __int32_t_defined
29234 #ifndef int32_t
29235 typedef $acx_cv_type_int32_t int32_t;
29236 #endif
29237 #endif
29238 #endif
29240 elif test "$ac_cv_type_u_int32_t" = yes; then
29241 sed 's/^ *//' >> tmp-stdint.h <<EOF
29243 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29244 #ifndef _INT8_T
29245 #define _INT8_T
29246 #endif
29247 #ifndef _INT16_T
29248 #define _INT16_T
29249 #endif
29250 #ifndef _INT32_T
29251 #define _INT32_T
29252 #endif
29254 #ifndef _UINT8_T
29255 #define _UINT8_T
29256 #ifndef __uint8_t_defined
29257 #define __uint8_t_defined
29258 #ifndef uint8_t
29259 typedef u_int8_t uint8_t;
29260 #endif
29261 #endif
29262 #endif
29264 #ifndef _UINT16_T
29265 #define _UINT16_T
29266 #ifndef __uint16_t_defined
29267 #define __uint16_t_defined
29268 #ifndef uint16_t
29269 typedef u_int16_t uint16_t;
29270 #endif
29271 #endif
29272 #endif
29274 #ifndef _UINT32_T
29275 #define _UINT32_T
29276 #ifndef __uint32_t_defined
29277 #define __uint32_t_defined
29278 #ifndef uint32_t
29279 typedef u_int32_t uint32_t;
29280 #endif
29281 #endif
29282 #endif
29284 else
29285 sed 's/^ *//' >> tmp-stdint.h <<EOF
29287 /* Some systems have guard macros to prevent redefinitions, define them. */
29288 #ifndef _INT8_T
29289 #define _INT8_T
29290 #endif
29291 #ifndef _INT16_T
29292 #define _INT16_T
29293 #endif
29294 #ifndef _INT32_T
29295 #define _INT32_T
29296 #endif
29297 #ifndef _UINT8_T
29298 #define _UINT8_T
29299 #endif
29300 #ifndef _UINT16_T
29301 #define _UINT16_T
29302 #endif
29303 #ifndef _UINT32_T
29304 #define _UINT32_T
29305 #endif
29309 # ------------- done basic int types, emit int64_t types ------------
29310 if test "$ac_cv_type_uint64_t" = yes; then
29311 sed 's/^ *//' >> tmp-stdint.h <<EOF
29313 /* system headers have good uint64_t and int64_t */
29314 #ifndef _INT64_T
29315 #define _INT64_T
29316 #endif
29317 #ifndef _UINT64_T
29318 #define _UINT64_T
29319 #endif
29321 elif test "$ac_cv_type_u_int64_t" = yes; then
29322 sed 's/^ *//' >> tmp-stdint.h <<EOF
29324 /* system headers have an u_int64_t (and int64_t) */
29325 #ifndef _INT64_T
29326 #define _INT64_T
29327 #endif
29328 #ifndef _UINT64_T
29329 #define _UINT64_T
29330 #ifndef __uint64_t_defined
29331 #define __uint64_t_defined
29332 #ifndef uint64_t
29333 typedef u_int64_t uint64_t;
29334 #endif
29335 #endif
29336 #endif
29338 elif test -n "$acx_cv_type_int64_t"; then
29339 sed 's/^ *//' >> tmp-stdint.h <<EOF
29341 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29342 #ifndef _INT64_T
29343 #define _INT64_T
29344 #ifndef int64_t
29345 typedef $acx_cv_type_int64_t int64_t;
29346 #endif
29347 #endif
29348 #ifndef _UINT64_T
29349 #define _UINT64_T
29350 #ifndef __uint64_t_defined
29351 #define __uint64_t_defined
29352 #ifndef uint64_t
29353 typedef unsigned $acx_cv_type_int64_t uint64_t;
29354 #endif
29355 #endif
29356 #endif
29358 else
29359 sed 's/^ *//' >> tmp-stdint.h <<EOF
29361 /* some common heuristics for int64_t, using compiler-specific tests */
29362 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29363 #ifndef _INT64_T
29364 #define _INT64_T
29365 #ifndef __int64_t_defined
29366 #ifndef int64_t
29367 typedef long long int64_t;
29368 #endif
29369 #endif
29370 #endif
29371 #ifndef _UINT64_T
29372 #define _UINT64_T
29373 #ifndef uint64_t
29374 typedef unsigned long long uint64_t;
29375 #endif
29376 #endif
29378 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29379 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29380 does not implement __extension__. But that compiler doesn't define
29381 __GNUC_MINOR__. */
29382 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29383 # define __extension__
29384 # endif
29386 # ifndef _INT64_T
29387 # define _INT64_T
29388 # ifndef int64_t
29389 __extension__ typedef long long int64_t;
29390 # endif
29391 # endif
29392 # ifndef _UINT64_T
29393 # define _UINT64_T
29394 # ifndef uint64_t
29395 __extension__ typedef unsigned long long uint64_t;
29396 # endif
29397 # endif
29399 #elif !defined __STRICT_ANSI__
29400 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29402 # ifndef _INT64_T
29403 # define _INT64_T
29404 # ifndef int64_t
29405 typedef __int64 int64_t;
29406 # endif
29407 # endif
29408 # ifndef _UINT64_T
29409 # define _UINT64_T
29410 # ifndef uint64_t
29411 typedef unsigned __int64 uint64_t;
29412 # endif
29413 # endif
29414 # endif /* compiler */
29416 #endif /* ANSI version */
29420 # ------------- done int64_t types, emit intptr types ------------
29421 if test "$ac_cv_type_uintptr_t" != yes; then
29422 sed 's/^ *//' >> tmp-stdint.h <<EOF
29424 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29425 #ifndef __uintptr_t_defined
29426 #ifndef uintptr_t
29427 typedef u$acx_cv_type_intptr_t uintptr_t;
29428 #endif
29429 #endif
29430 #ifndef __intptr_t_defined
29431 #ifndef intptr_t
29432 typedef $acx_cv_type_intptr_t intptr_t;
29433 #endif
29434 #endif
29438 # ------------- done intptr types, emit int_least types ------------
29439 if test "$ac_cv_type_int_least32_t" != yes; then
29440 sed 's/^ *//' >> tmp-stdint.h <<EOF
29442 /* Define int_least types */
29443 typedef int8_t int_least8_t;
29444 typedef int16_t int_least16_t;
29445 typedef int32_t int_least32_t;
29446 #ifdef _INT64_T
29447 typedef int64_t int_least64_t;
29448 #endif
29450 typedef uint8_t uint_least8_t;
29451 typedef uint16_t uint_least16_t;
29452 typedef uint32_t uint_least32_t;
29453 #ifdef _UINT64_T
29454 typedef uint64_t uint_least64_t;
29455 #endif
29459 # ------------- done intptr types, emit int_fast types ------------
29460 if test "$ac_cv_type_int_fast32_t" != yes; then
29461 sed 's/^ *//' >> tmp-stdint.h <<EOF
29463 /* Define int_fast types. short is often slow */
29464 typedef int8_t int_fast8_t;
29465 typedef int int_fast16_t;
29466 typedef int32_t int_fast32_t;
29467 #ifdef _INT64_T
29468 typedef int64_t int_fast64_t;
29469 #endif
29471 typedef uint8_t uint_fast8_t;
29472 typedef unsigned int uint_fast16_t;
29473 typedef uint32_t uint_fast32_t;
29474 #ifdef _UINT64_T
29475 typedef uint64_t uint_fast64_t;
29476 #endif
29480 if test "$ac_cv_type_uintmax_t" != yes; then
29481 sed 's/^ *//' >> tmp-stdint.h <<EOF
29483 /* Define intmax based on what we found */
29484 #ifndef intmax_t
29485 #ifdef _INT64_T
29486 typedef int64_t intmax_t;
29487 #else
29488 typedef long intmax_t;
29489 #endif
29490 #endif
29491 #ifndef uintmax_t
29492 #ifdef _UINT64_T
29493 typedef uint64_t uintmax_t;
29494 #else
29495 typedef unsigned long uintmax_t;
29496 #endif
29497 #endif
29501 sed 's/^ *//' >> tmp-stdint.h <<EOF
29503 #endif /* GCC_GENERATED_STDINT_H */
29506 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29507 rm -f tmp-stdint.h
29508 else
29509 mv -f tmp-stdint.h gstdint.h
29514 esac
29515 done # for ac_tag
29518 as_fn_exit 0
29519 _ACEOF
29520 ac_clean_files=$ac_clean_files_save
29522 test $ac_write_fail = 0 ||
29523 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29526 # configure is writing to config.log, and then calls config.status.
29527 # config.status does its own redirection, appending to config.log.
29528 # Unfortunately, on DOS this fails, as config.log is still kept open
29529 # by configure, so config.status won't be able to write to it; its
29530 # output is simply discarded. So we exec the FD to /dev/null,
29531 # effectively closing config.log, so it can be properly (re)opened and
29532 # appended to by config.status. When coming back to configure, we
29533 # need to make the FD available again.
29534 if test "$no_create" != yes; then
29535 ac_cs_success=:
29536 ac_config_status_args=
29537 test "$silent" = yes &&
29538 ac_config_status_args="$ac_config_status_args --quiet"
29539 exec 5>/dev/null
29540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29541 exec 5>>config.log
29542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29543 # would make configure fail if this is the last instruction.
29544 $ac_cs_success || as_fn_exit $?
29546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}