2016-12-24 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libgfortran / configure
blob4cc247e55b43c09874aab26f0027b209ea33b46e
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 IEEE_SUPPORT
610 IEEE_SUPPORT_FALSE
611 IEEE_SUPPORT_TRUE
612 FPU_HOST_HEADER
613 LIBGFOR_BUILD_QUAD_FALSE
614 LIBGFOR_BUILD_QUAD_TRUE
615 LIBQUADINCLUDE
616 LIBQUADLIB_DEP
617 LIBQUADLIB
618 LIBQUADSPEC
619 extra_ldflags_libgfortran
620 ac_ct_FC
621 FCFLAGS
623 enable_static
624 enable_shared
625 lt_host_flags
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LIBTOOL
637 RANLIB
640 HAVE_HWCAP_FALSE
641 HAVE_HWCAP_TRUE
642 HWCAP_LDFLAGS
644 FGREP
646 SECTION_FLAGS
647 LIBGFOR_MINIMAL_FALSE
648 LIBGFOR_MINIMAL_TRUE
649 LIBGFOR_USE_SYMVER_SUN_FALSE
650 LIBGFOR_USE_SYMVER_SUN_TRUE
651 LIBGFOR_USE_SYMVER_GNU_FALSE
652 LIBGFOR_USE_SYMVER_GNU_TRUE
653 LIBGFOR_USE_SYMVER_FALSE
654 LIBGFOR_USE_SYMVER_TRUE
655 AM_CFLAGS
656 AM_FCFLAGS
657 toolexeclibdir
658 toolexecdir
659 EGREP
660 GREP
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 multi_basedir
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 target_noncanonical
707 target_os
708 target_vendor
709 target_cpu
710 target
711 host_os
712 host_vendor
713 host_cpu
714 host
715 onestep
716 onestep_FALSE
717 onestep_TRUE
718 target_subdir
719 host_subdir
720 build_subdir
721 build_libsubdir
722 build_os
723 build_vendor
724 build_cpu
725 build
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 with_build_libsubdir
768 enable_version_specific_runtime_libs
769 enable_intermodule
770 enable_maintainer_mode
771 enable_multilib
772 enable_dependency_tracking
773 enable_symvers
774 with_gnu_ld
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 enable_libtool_lock
780 enable_largefile
781 enable_libquadmath_support
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
793 FCFLAGS'
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
844 ac_prev=
845 ac_dashdash=
846 for ac_option
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
855 case $ac_option in
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *) ac_optarg=yes ;;
858 esac
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
864 ac_dashdash=yes ;;
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
883 --config-cache | -C)
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information."
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 esac
1201 done
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used." >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1287 /^X\(\/\/\)$/{
1288 s//\1/
1291 /^X\(\/\).*/{
1292 s//\1/
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1300 else
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1310 pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1344 Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388 _ACEOF
1390 cat <<\_ACEOF
1392 Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 --target=TARGET configure for building compilers for TARGET [HOST]
1401 _ACEOF
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1407 esac
1408 cat <<\_ACEOF
1410 Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-version-specific-runtime-libs
1415 specify that runtime libraries should be installed
1416 in a compiler-specific directory
1417 --enable-intermodule build the library in one step
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
1420 --enable-multilib build many library versions (default)
1421 --disable-dependency-tracking speeds up one-time build
1422 --enable-dependency-tracking do not reject slow dependency extractors
1423 --disable-symvers disable symbol versioning for libgfortran
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --disable-libtool-lock avoid locking (might break parallel builds)
1429 --disable-largefile omit support for large files
1430 --disable-libquadmath-support
1431 disable libquadmath support for Fortran
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-build-libsubdir=DIR Directory where to find libraries for build system
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-pic try to use only PIC/non-PIC objects [default=use
1439 both]
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 FC Fortran compiler command
1451 FCFLAGS Fortran compiler flags
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1457 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1458 General help using GNU software: <http://www.gnu.org/gethelp/>.
1459 _ACEOF
1460 ac_status=$?
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 GNU Fortran Runtime Library configure 0.3
1522 generated by GNU Autoconf 2.64
1524 Copyright (C) 2009 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1566 ac_retval=1
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 return $ac_retval
1571 } # ac_fn_c_try_compile
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } >/dev/null && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1608 } # ac_fn_c_try_cpp
1610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613 # the include files in INCLUDES and setting the cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_header_mongrel ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1624 eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 else
1628 # Is the header compilable?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630 $as_echo_n "checking $2 usability... " >&6; }
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_header_compiler=yes
1638 else
1639 ac_header_compiler=no
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643 $as_echo "$ac_header_compiler" >&6; }
1645 # Is the header present?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647 $as_echo_n "checking $2 presence... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_cpp "$LINENO"; then :
1653 ac_header_preproc=yes
1654 else
1655 ac_header_preproc=no
1657 rm -f conftest.err conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659 $as_echo "$ac_header_preproc" >&6; }
1661 # So? What about this header?
1662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 yes:no: )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 no:yes:* )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 esac
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 eval "$3=\$ac_header_compiler"
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 } # ac_fn_c_check_header_mongrel
1697 # ac_fn_c_try_run LINENO
1698 # ----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700 # that executables *can* be run.
1701 ac_fn_c_try_run ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=$ac_status
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 return $ac_retval
1737 } # ac_fn_c_try_run
1739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists and can be compiled using the include files in
1742 # INCLUDES, setting the cache variable VAR accordingly.
1743 ac_fn_c_check_header_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_check_header_compile
1770 # ac_fn_c_try_link LINENO
1771 # -----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_link ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 $as_test_x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 ac_retval=1
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1814 } # ac_fn_c_try_link
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 if test x$gcc_no_link = xyes; then
1828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1847 #undef $2
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1864 main ()
1866 return $2 ();
1868 return 0;
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 } # ac_fn_c_check_func
1886 # ac_fn_fc_try_compile LINENO
1887 # ---------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_fc_try_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_fc_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1922 } # ac_fn_fc_try_compile
1924 # ac_fn_fc_try_link LINENO
1925 # ------------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_fc_try_link ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_fc_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 $as_test_x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=1
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 return $ac_retval
1968 } # ac_fn_fc_try_link
1970 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1971 # -------------------------------------------
1972 # Tests whether TYPE exists after having included INCLUDES, setting cache
1973 # variable VAR accordingly.
1974 ac_fn_c_check_type ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=no"
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 if (sizeof ($2))
1990 return 0;
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2000 main ()
2002 if (sizeof (($2)))
2003 return 0;
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2010 else
2011 eval "$3=yes"
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_c_check_type
2024 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2025 # --------------------------------------------
2026 # Tries to find the compile-time value of EXPR in a program that includes
2027 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2028 # computed
2029 ac_fn_c_compute_int ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if test "$cross_compiling" = yes; then
2033 # Depending upon the size, compute the lo and hi bounds.
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static int test_array [1 - 2 * !(($2) >= 0)];
2041 test_array [0] = 0
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_lo=0 ac_mid=0
2049 while :; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 test_array [0] = 0
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_hi=$ac_mid; break
2065 else
2066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067 if test $ac_lo -le $ac_mid; then
2068 ac_lo= ac_hi=
2069 break
2071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) < 0)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=-1 ac_mid=-1
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_lo=$ac_mid; break
2107 else
2108 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2109 if test $ac_mid -le $ac_hi; then
2110 ac_lo= ac_hi=
2111 break
2113 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 ac_lo= ac_hi=
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 # Binary search between lo and hi bounds.
2124 while test "x$ac_lo" != "x$ac_hi"; do
2125 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 main ()
2132 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2133 test_array [0] = 0
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_hi=$ac_mid
2141 else
2142 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 done
2146 case $ac_lo in #((
2147 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2148 '') ac_retval=1 ;;
2149 esac
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2154 static long int longval () { return $2; }
2155 static unsigned long int ulongval () { return $2; }
2156 #include <stdio.h>
2157 #include <stdlib.h>
2159 main ()
2162 FILE *f = fopen ("conftest.val", "w");
2163 if (! f)
2164 return 1;
2165 if (($2) < 0)
2167 long int i = longval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%ld", i);
2172 else
2174 unsigned long int i = ulongval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%lu", i);
2179 /* Do not output a trailing newline, as this causes \r\n confusion
2180 on some platforms. */
2181 return ferror (f) || fclose (f) != 0;
2184 return 0;
2186 _ACEOF
2187 if ac_fn_c_try_run "$LINENO"; then :
2188 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2189 else
2190 ac_retval=1
2192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2193 conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 rm -f conftest.val
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 return $ac_retval
2200 } # ac_fn_c_compute_int
2202 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2203 # ----------------------------------------------------
2204 # Tries to find if the field MEMBER exists in type AGGR, after including
2205 # INCLUDES, setting cache variable VAR accordingly.
2206 ac_fn_c_check_member ()
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2210 $as_echo_n "checking for $2.$3... " >&6; }
2211 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static $2 ac_aggr;
2221 if (ac_aggr.$3)
2222 return 0;
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$4=yes"
2229 else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2234 main ()
2236 static $2 ac_aggr;
2237 if (sizeof ac_aggr.$3)
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$4=yes"
2245 else
2246 eval "$4=no"
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 eval ac_res=\$$4
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257 } # ac_fn_c_check_member
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2263 generated by GNU Autoconf 2.64. Invocation command line was
2265 $ $0 $@
2267 _ACEOF
2268 exec 5>>config.log
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292 _ASUNAME
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2303 } >&5
2305 cat >&5 <<_ACEOF
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2312 _ACEOF
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2326 for ac_arg
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2355 as_fn_append ac_configure_args " '$ac_arg'"
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2371 echo
2373 cat <<\_ASBOX
2374 ## ---------------- ##
2375 ## Cache variables. ##
2376 ## ---------------- ##
2377 _ASBOX
2378 echo
2379 # The following way of writing the cache mishandles newlines in values,
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in #(
2384 *${as_nl}*)
2385 case $ac_var in #(
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388 esac
2389 case $ac_var in #(
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2393 esac ;;
2394 esac
2395 done
2396 (set) 2>&1 |
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2399 sed -n \
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402 ;; #(
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 esac |
2407 sort
2409 echo
2411 cat <<\_ASBOX
2412 ## ----------------- ##
2413 ## Output variables. ##
2414 ## ----------------- ##
2415 _ASBOX
2416 echo
2417 for ac_var in $ac_subst_vars
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2427 if test -n "$ac_subst_files"; then
2428 cat <<\_ASBOX
2429 ## ------------------- ##
2430 ## File substitutions. ##
2431 ## ------------------- ##
2432 _ASBOX
2433 echo
2434 for ac_var in $ac_subst_files
2436 eval ac_val=\$$ac_var
2437 case $ac_val in
2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 esac
2440 $as_echo "$ac_var='\''$ac_val'\''"
2441 done | sort
2442 echo
2445 if test -s confdefs.h; then
2446 cat <<\_ASBOX
2447 ## ----------- ##
2448 ## confdefs.h. ##
2449 ## ----------- ##
2450 _ASBOX
2451 echo
2452 cat confdefs.h
2453 echo
2455 test "$ac_signal" != 0 &&
2456 $as_echo "$as_me: caught signal $ac_signal"
2457 $as_echo "$as_me: exit $exit_status"
2458 } >&5
2459 rm -f core *.core core.conftest.* &&
2460 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461 exit $exit_status
2463 for ac_signal in 1 2 13 15; do
2464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465 done
2466 ac_signal=0
2468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2469 rm -f -r conftest* confdefs.h
2471 $as_echo "/* confdefs.h */" > confdefs.h
2473 # Predefined preprocessor variables.
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_NAME "$PACKAGE_NAME"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_STRING "$PACKAGE_STRING"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2493 _ACEOF
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_URL "$PACKAGE_URL"
2497 _ACEOF
2500 # Let the site file select an alternate cache file if it wants to.
2501 # Prefer an explicitly selected file to automatically selected ones.
2502 ac_site_file1=NONE
2503 ac_site_file2=NONE
2504 if test -n "$CONFIG_SITE"; then
2505 ac_site_file1=$CONFIG_SITE
2506 elif test "x$prefix" != xNONE; then
2507 ac_site_file1=$prefix/share/config.site
2508 ac_site_file2=$prefix/etc/config.site
2509 else
2510 ac_site_file1=$ac_default_prefix/share/config.site
2511 ac_site_file2=$ac_default_prefix/etc/config.site
2513 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2515 test "x$ac_site_file" = xNONE && continue
2516 if test -r "$ac_site_file"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2519 sed 's/^/| /' "$ac_site_file" >&5
2520 . "$ac_site_file"
2522 done
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special
2526 # files actually), so we avoid doing that.
2527 if test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2541 as_fn_append ac_header_list " unistd.h"
2542 as_fn_append ac_header_list " sys/time.h"
2543 as_fn_append ac_header_list " sys/times.h"
2544 as_fn_append ac_header_list " sys/resource.h"
2545 as_fn_append ac_header_list " sys/types.h"
2546 as_fn_append ac_header_list " sys/stat.h"
2547 as_fn_append ac_header_list " sys/wait.h"
2548 as_fn_append ac_header_list " floatingpoint.h"
2549 as_fn_append ac_header_list " ieeefp.h"
2550 as_fn_append ac_header_list " fenv.h"
2551 as_fn_append ac_header_list " fptrap.h"
2552 as_fn_append ac_header_list " fpxcp.h"
2553 as_fn_append ac_header_list " pwd.h"
2554 as_fn_append ac_header_list " complex.h"
2555 as_fn_append ac_header_list " xlocale.h"
2556 as_fn_append ac_func_list " getrusage"
2557 as_fn_append ac_func_list " times"
2558 as_fn_append ac_func_list " mkstemp"
2559 as_fn_append ac_func_list " strtof"
2560 as_fn_append ac_func_list " strtold"
2561 as_fn_append ac_func_list " snprintf"
2562 as_fn_append ac_func_list " ftruncate"
2563 as_fn_append ac_func_list " chsize"
2564 as_fn_append ac_func_list " chdir"
2565 as_fn_append ac_func_list " getlogin"
2566 as_fn_append ac_func_list " gethostname"
2567 as_fn_append ac_func_list " kill"
2568 as_fn_append ac_func_list " link"
2569 as_fn_append ac_func_list " symlink"
2570 as_fn_append ac_func_list " sleep"
2571 as_fn_append ac_func_list " ttyname"
2572 as_fn_append ac_func_list " alarm"
2573 as_fn_append ac_func_list " access"
2574 as_fn_append ac_func_list " fork"
2575 as_fn_append ac_func_list " setmode"
2576 as_fn_append ac_func_list " fcntl"
2577 as_fn_append ac_func_list " gettimeofday"
2578 as_fn_append ac_func_list " stat"
2579 as_fn_append ac_func_list " fstat"
2580 as_fn_append ac_func_list " lstat"
2581 as_fn_append ac_func_list " getpwuid"
2582 as_fn_append ac_func_list " vsnprintf"
2583 as_fn_append ac_func_list " dup"
2584 as_fn_append ac_func_list " getcwd"
2585 as_fn_append ac_func_list " localtime_r"
2586 as_fn_append ac_func_list " gmtime_r"
2587 as_fn_append ac_func_list " getpwuid_r"
2588 as_fn_append ac_func_list " ttyname_r"
2589 as_fn_append ac_func_list " clock_gettime"
2590 as_fn_append ac_func_list " getgid"
2591 as_fn_append ac_func_list " getpid"
2592 as_fn_append ac_func_list " getuid"
2593 as_fn_append ac_func_list " geteuid"
2594 as_fn_append ac_func_list " umask"
2595 as_fn_append ac_func_list " getegid"
2596 as_fn_append ac_func_list " secure_getenv"
2597 as_fn_append ac_func_list " __secure_getenv"
2598 as_fn_append ac_func_list " mkostemp"
2599 as_fn_append ac_func_list " strnlen"
2600 as_fn_append ac_func_list " strndup"
2601 as_fn_append ac_func_list " newlocale"
2602 as_fn_append ac_func_list " freelocale"
2603 as_fn_append ac_func_list " uselocale"
2604 as_fn_append ac_func_list " strerror_l"
2605 as_fn_append ac_header_list " math.h"
2606 # Check that the precious variables saved in the cache have kept the same
2607 # value.
2608 ac_cache_corrupted=false
2609 for ac_var in $ac_precious_vars; do
2610 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2611 eval ac_new_set=\$ac_env_${ac_var}_set
2612 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2613 eval ac_new_val=\$ac_env_${ac_var}_value
2614 case $ac_old_set,$ac_new_set in
2615 set,)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,set)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,);;
2625 if test "x$ac_old_val" != "x$ac_new_val"; then
2626 # differences in whitespace do not lead to failure.
2627 ac_old_val_w=`echo x $ac_old_val`
2628 ac_new_val_w=`echo x $ac_new_val`
2629 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2631 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2632 ac_cache_corrupted=:
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2635 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2636 eval $ac_var=\$ac_old_val
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2639 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2641 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2642 fi;;
2643 esac
2644 # Pass precious variables to config.status.
2645 if test "$ac_new_set" = set; then
2646 case $ac_new_val in
2647 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2648 *) ac_arg=$ac_var=$ac_new_val ;;
2649 esac
2650 case " $ac_configure_args " in
2651 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2652 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2653 esac
2655 done
2656 if $ac_cache_corrupted; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2660 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2661 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2663 ## -------------------- ##
2664 ## Main body of script. ##
2665 ## -------------------- ##
2667 ac_ext=c
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 ac_config_headers="$ac_config_headers config.h"
2679 ac_aux_dir=
2680 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2681 for ac_t in install-sh install.sh shtool; do
2682 if test -f "$ac_dir/$ac_t"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/$ac_t -c"
2685 break 2
2687 done
2688 done
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if test "${ac_cv_build+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740 case ${build_alias} in
2741 "") build_noncanonical=${build} ;;
2742 *) build_noncanonical=${build_alias} ;;
2743 esac
2745 case ${host_alias} in
2746 "") host_noncanonical=${build_noncanonical} ;;
2747 *) host_noncanonical=${host_alias} ;;
2748 esac
2750 case ${target_alias} in
2751 "") target_noncanonical=${host_noncanonical} ;;
2752 *) target_noncanonical=${target_alias} ;;
2753 esac
2756 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2757 # have matching libraries, they should use host libraries: Makefile.tpl
2758 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2759 # However, they still use the build modules, because the corresponding
2760 # host modules (e.g. bison) are only built for the host when bootstrap
2761 # finishes. So:
2762 # - build_subdir is where we find build modules, and never changes.
2763 # - build_libsubdir is where we find build libraries, and can be overridden.
2765 # Prefix 'build-' so this never conflicts with target_subdir.
2766 build_subdir="build-${build_noncanonical}"
2768 # Check whether --with-build-libsubdir was given.
2769 if test "${with_build_libsubdir+set}" = set; then :
2770 withval=$with_build_libsubdir; build_libsubdir="$withval"
2771 else
2772 build_libsubdir="$build_subdir"
2775 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2776 if ( test $srcdir = . && test -d gcc ) \
2777 || test -d $srcdir/../host-${host_noncanonical}; then
2778 host_subdir="host-${host_noncanonical}"
2779 else
2780 host_subdir=.
2782 # No prefix.
2783 target_subdir=${target_noncanonical}
2786 # -------
2787 # Options
2788 # -------
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2791 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2792 # Check whether --enable-version-specific-runtime-libs was given.
2793 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2794 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2795 yes) version_specific_libs=yes ;;
2796 no) version_specific_libs=no ;;
2797 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2798 esac
2799 else
2800 version_specific_libs=no
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2804 $as_echo "$version_specific_libs" >&6; }
2806 # Build with intermodule optimisations
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2808 $as_echo_n "checking for --enable-intermodule... " >&6; }
2809 # Check whether --enable-intermodule was given.
2810 if test "${enable_intermodule+set}" = set; then :
2811 enableval=$enable_intermodule; case "$enable_intermodule" in
2812 yes) onestep="-onestep";;
2813 *) onestep="";;
2814 esac
2815 else
2816 onestep=""
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2820 $as_echo "$enable_intermodule" >&6; }
2821 if test x$onestep = x-onestep; then
2822 onestep_TRUE=
2823 onestep_FALSE='#'
2824 else
2825 onestep_TRUE='#'
2826 onestep_FALSE=
2831 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2833 # You will slowly go insane if you do not grok the following fact: when
2834 # building this library, the top-level /target/ becomes the library's /host/.
2836 # configure then causes --target to default to --host, exactly like any
2837 # other package using autoconf. Therefore, 'target' and 'host' will
2838 # always be the same. This makes sense both for native and cross compilers
2839 # just think about it for a little while. :-)
2841 # Also, if this library is being configured as part of a cross compiler, the
2842 # top-level configure script will pass the "real" host as $with_cross_host.
2844 # Do not delete or change the following two lines. For why, see
2845 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2847 $as_echo_n "checking host system type... " >&6; }
2848 if test "${ac_cv_host+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test "x$host_alias" = x; then
2852 ac_cv_host=$ac_cv_build
2853 else
2854 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2855 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2860 $as_echo "$ac_cv_host" >&6; }
2861 case $ac_cv_host in
2862 *-*-*) ;;
2863 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2864 esac
2865 host=$ac_cv_host
2866 ac_save_IFS=$IFS; IFS='-'
2867 set x $ac_cv_host
2868 shift
2869 host_cpu=$1
2870 host_vendor=$2
2871 shift; shift
2872 # Remember, the first character of IFS is used to create $*,
2873 # except with old shells:
2874 host_os=$*
2875 IFS=$ac_save_IFS
2876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2880 $as_echo_n "checking target system type... " >&6; }
2881 if test "${ac_cv_target+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test "x$target_alias" = x; then
2885 ac_cv_target=$ac_cv_host
2886 else
2887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2888 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2893 $as_echo "$ac_cv_target" >&6; }
2894 case $ac_cv_target in
2895 *-*-*) ;;
2896 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2897 esac
2898 target=$ac_cv_target
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_target
2901 shift
2902 target_cpu=$1
2903 target_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 target_os=$*
2908 IFS=$ac_save_IFS
2909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2912 # The aliases save the names the user supplied, while $host etc.
2913 # will get canonicalized.
2914 test -n "$target_alias" &&
2915 test "$program_prefix$program_suffix$program_transform_name" = \
2916 NONENONEs,x,x, &&
2917 program_prefix=${target_alias}-
2922 target_alias=${target_alias-$host_alias}
2925 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2926 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2927 # 1.9.6: minimum required version
2928 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2929 # of other PACKAGE_* variables will, however, and there's nothing
2930 # we can do about that; they come from AC_INIT).
2931 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2932 # file in the top srcdir, etc, etc), so stop complaining.
2933 # no-dist: we don't want 'dist' and related rules.
2934 # -Wall: turns on all automake warnings...
2935 # -Wno-portability: ...except this one, since GNU make is required.
2936 am__api_version='1.11'
2938 # Find a good install program. We prefer a C program (faster),
2939 # so one script is as good as another. But avoid the broken or
2940 # incompatible versions:
2941 # SysV /etc/install, /usr/sbin/install
2942 # SunOS /usr/etc/install
2943 # IRIX /sbin/install
2944 # AIX /bin/install
2945 # AmigaOS /C/install, which installs bootblocks on floppy discs
2946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2949 # OS/2's system install, which has a completely different semantic
2950 # ./install, which can be erroneously created by make from ./install.sh.
2951 # Reject install programs that cannot install multiple files.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2953 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2954 if test -z "$INSTALL"; then
2955 if test "${ac_cv_path_install+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 # Account for people who put trailing slashes in PATH elements.
2964 case $as_dir/ in #((
2965 ./ | .// | /[cC]/* | \
2966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2968 /usr/ucb/* ) ;;
2970 # OSF1 and SCO ODT 3.0 have their own names for install.
2971 # Don't use installbsd from OSF since it installs stuff as root
2972 # by default.
2973 for ac_prog in ginstall scoinst install; do
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2976 if test $ac_prog = install &&
2977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # AIX install. It has an incompatible calling convention.
2980 elif test $ac_prog = install &&
2981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # program-specific install script used by HP pwplus--don't use.
2984 else
2985 rm -rf conftest.one conftest.two conftest.dir
2986 echo one > conftest.one
2987 echo two > conftest.two
2988 mkdir conftest.dir
2989 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2990 test -s conftest.one && test -s conftest.two &&
2991 test -s conftest.dir/conftest.one &&
2992 test -s conftest.dir/conftest.two
2993 then
2994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2995 break 3
2999 done
3000 done
3002 esac
3004 done
3005 IFS=$as_save_IFS
3007 rm -rf conftest.one conftest.two conftest.dir
3010 if test "${ac_cv_path_install+set}" = set; then
3011 INSTALL=$ac_cv_path_install
3012 else
3013 # As a last resort, use the slow shell script. Don't cache a
3014 # value for INSTALL within a source directory, because that will
3015 # break other packages using the cache if that directory is
3016 # removed, or if the value is a relative name.
3017 INSTALL=$ac_install_sh
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3021 $as_echo "$INSTALL" >&6; }
3023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3024 # It thinks the first close brace ends the variable substitution.
3025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3032 $as_echo_n "checking whether build environment is sane... " >&6; }
3033 # Just in case
3034 sleep 1
3035 echo timestamp > conftest.file
3036 # Reject unsafe characters in $srcdir or the absolute working directory
3037 # name. Accept space and tab only in the latter.
3038 am_lf='
3040 case `pwd` in
3041 *[\\\"\#\$\&\'\`$am_lf]*)
3042 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3043 esac
3044 case $srcdir in
3045 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3046 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3047 esac
3049 # Do `set' in a subshell so we don't clobber the current shell's
3050 # arguments. Must try -L first in case configure is actually a
3051 # symlink; some systems play weird games with the mod time of symlinks
3052 # (eg FreeBSD returns the mod time of the symlink's containing
3053 # directory).
3054 if (
3055 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3056 if test "$*" = "X"; then
3057 # -L didn't work.
3058 set X `ls -t "$srcdir/configure" conftest.file`
3060 rm -f conftest.file
3061 if test "$*" != "X $srcdir/configure conftest.file" \
3062 && test "$*" != "X conftest.file $srcdir/configure"; then
3064 # If neither matched, then we have a broken ls. This can happen
3065 # if, for instance, CONFIG_SHELL is bash and it inherits a
3066 # broken ls alias from the environment. This has actually
3067 # happened. Such a system could not be considered "sane".
3068 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3069 alias in your environment" "$LINENO" 5
3072 test "$2" = conftest.file
3074 then
3075 # Ok.
3077 else
3078 as_fn_error "newly created file is older than distributed files!
3079 Check your system clock" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 test "$program_prefix" != NONE &&
3084 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3085 # Use a double $ so make ignores it.
3086 test "$program_suffix" != NONE &&
3087 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3088 # Double any \ or $.
3089 # By default was `s,x,x', remove it if useless.
3090 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3091 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3096 if test x"${MISSING+set}" != xset; then
3097 case $am_aux_dir in
3098 *\ * | *\ *)
3099 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3101 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3102 esac
3104 # Use eval to expand $SHELL
3105 if eval "$MISSING --run true"; then
3106 am_missing_run="$MISSING --run "
3107 else
3108 am_missing_run=
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3110 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3113 if test x"${install_sh}" != xset; then
3114 case $am_aux_dir in
3115 *\ * | *\ *)
3116 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3118 install_sh="\${SHELL} $am_aux_dir/install-sh"
3119 esac
3122 # Installed binaries are usually stripped using `strip' when the user
3123 # run `make install-strip'. However `strip' might not be the right
3124 # tool to use in cross-compilation environments, therefore Automake
3125 # will honor the `STRIP' environment variable to overrule this program.
3126 if test "$cross_compiling" != no; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}strip; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_STRIP+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$STRIP"; then
3136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3155 STRIP=$ac_cv_prog_STRIP
3156 if test -n "$STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3158 $as_echo "$STRIP" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3166 if test -z "$ac_cv_prog_STRIP"; then
3167 ac_ct_STRIP=$STRIP
3168 # Extract the first word of "strip", so it can be a program name with args.
3169 set dummy strip; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$ac_ct_STRIP"; then
3176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_ac_ct_STRIP="strip"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3189 done
3190 done
3191 IFS=$as_save_IFS
3195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3196 if test -n "$ac_ct_STRIP"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3198 $as_echo "$ac_ct_STRIP" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3204 if test "x$ac_ct_STRIP" = x; then
3205 STRIP=":"
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 STRIP=$ac_ct_STRIP
3215 else
3216 STRIP="$ac_cv_prog_STRIP"
3220 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3223 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3224 if test -z "$MKDIR_P"; then
3225 if test "${ac_cv_path_mkdir+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_prog in mkdir gmkdir; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3236 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3237 'mkdir (GNU coreutils) '* | \
3238 'mkdir (coreutils) '* | \
3239 'mkdir (fileutils) '4.1*)
3240 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3241 break 3;;
3242 esac
3243 done
3244 done
3245 done
3246 IFS=$as_save_IFS
3250 if test "${ac_cv_path_mkdir+set}" = set; then
3251 MKDIR_P="$ac_cv_path_mkdir -p"
3252 else
3253 # As a last resort, use the slow shell script. Don't cache a
3254 # value for MKDIR_P within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the value is a relative name.
3257 test -d ./--version && rmdir ./--version
3258 MKDIR_P="$ac_install_sh -d"
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3262 $as_echo "$MKDIR_P" >&6; }
3264 mkdir_p="$MKDIR_P"
3265 case $mkdir_p in
3266 [\\/$]* | ?:[\\/]*) ;;
3267 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3268 esac
3270 for ac_prog in gawk mawk nawk awk
3272 # Extract the first word of "$ac_prog", so it can be a program name with args.
3273 set dummy $ac_prog; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if test "${ac_cv_prog_AWK+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$AWK"; then
3280 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_prog_AWK="$ac_prog"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3295 IFS=$as_save_IFS
3299 AWK=$ac_cv_prog_AWK
3300 if test -n "$AWK"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3302 $as_echo "$AWK" >&6; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3309 test -n "$AWK" && break
3310 done
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3313 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3314 set x ${MAKE-make}
3315 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3316 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat >conftest.make <<\_ACEOF
3320 SHELL = /bin/sh
3321 all:
3322 @echo '@@@%%%=$(MAKE)=@@@%%%'
3323 _ACEOF
3324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3326 *@@@%%%=?*=@@@%%%*)
3327 eval ac_cv_prog_make_${ac_make}_set=yes;;
3329 eval ac_cv_prog_make_${ac_make}_set=no;;
3330 esac
3331 rm -f conftest.make
3333 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336 SET_MAKE=
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 SET_MAKE="MAKE=${MAKE-make}"
3343 rm -rf .tst 2>/dev/null
3344 mkdir .tst 2>/dev/null
3345 if test -d .tst; then
3346 am__leading_dot=.
3347 else
3348 am__leading_dot=_
3350 rmdir .tst 2>/dev/null
3352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3354 # is not polluted with repeated "-I."
3355 am__isrc=' -I$(srcdir)'
3356 # test to see if srcdir already configured
3357 if test -f $srcdir/config.status; then
3358 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath --version) >/dev/null 2>/dev/null; then
3365 CYGPATH_W='cygpath -w'
3366 else
3367 CYGPATH_W=echo
3372 # Define the identity of the package.
3373 PACKAGE='libgfortran'
3374 VERSION='0.3'
3377 # Some tools Automake needs.
3379 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3385 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3391 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393 # We need awk for the "check" target. The system "awk" is bad on
3394 # some platforms.
3395 # Always define AMTAR for backward compatibility. Yes, it's still used
3396 # in the wild :-( We should find a proper way to deprecate it ...
3397 AMTAR='$${TAR-tar}'
3399 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3408 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3409 # Check whether --enable-maintainer-mode was given.
3410 if test "${enable_maintainer_mode+set}" = set; then :
3411 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3412 else
3413 USE_MAINTAINER_MODE=no
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3417 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3418 if test $USE_MAINTAINER_MODE = yes; then
3419 MAINTAINER_MODE_TRUE=
3420 MAINTAINER_MODE_FALSE='#'
3421 else
3422 MAINTAINER_MODE_TRUE='#'
3423 MAINTAINER_MODE_FALSE=
3426 MAINT=$MAINTAINER_MODE_TRUE
3429 # Default to --enable-multilib
3430 # Check whether --enable-multilib was given.
3431 if test "${enable_multilib+set}" = set; then :
3432 enableval=$enable_multilib; case "$enableval" in
3433 yes) multilib=yes ;;
3434 no) multilib=no ;;
3435 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3436 esac
3437 else
3438 multilib=yes
3442 # We may get other options which we leave undocumented:
3443 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3444 # See config-ml.in if you want the gory details.
3446 if test "$srcdir" = "."; then
3447 if test "$with_target_subdir" != "."; then
3448 multi_basedir="$srcdir/$with_multisrctop../.."
3449 else
3450 multi_basedir="$srcdir/$with_multisrctop.."
3452 else
3453 multi_basedir="$srcdir/.."
3457 # Even if the default multilib is not a cross compilation,
3458 # it may be that some of the other multilibs are.
3459 if test $cross_compiling = no && test $multilib = yes \
3460 && test "x${with_multisubdir}" != x ; then
3461 cross_compiling=maybe
3464 ac_config_commands="$ac_config_commands default-1"
3467 # Handy for debugging:
3468 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3470 # Are we being configured with some form of cross compiler?
3471 # NB: We don't actually need to know this just now, but when, say, a test
3472 # suite is included, we'll have to know.
3473 if test "$build" != "$host"; then
3474 LIBGFOR_IS_NATIVE=false
3476 else
3477 LIBGFOR_IS_NATIVE=true
3480 DEPDIR="${am__leading_dot}deps"
3482 ac_config_commands="$ac_config_commands depfiles"
3485 am_make=${MAKE-make}
3486 cat > confinc << 'END'
3487 am__doit:
3488 @echo this is the am__doit target
3489 .PHONY: am__doit
3491 # If we don't find an include directive, just comment out the code.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3493 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3494 am__include="#"
3495 am__quote=
3496 _am_result=none
3497 # First try GNU make style include.
3498 echo "include confinc" > confmf
3499 # Ignore all kinds of additional output from `make'.
3500 case `$am_make -s -f confmf 2> /dev/null` in #(
3501 *the\ am__doit\ target*)
3502 am__include=include
3503 am__quote=
3504 _am_result=GNU
3506 esac
3507 # Now try BSD make style include.
3508 if test "$am__include" = "#"; then
3509 echo '.include "confinc"' > confmf
3510 case `$am_make -s -f confmf 2> /dev/null` in #(
3511 *the\ am__doit\ target*)
3512 am__include=.include
3513 am__quote="\""
3514 _am_result=BSD
3516 esac
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3521 $as_echo "$_am_result" >&6; }
3522 rm -f confinc confmf
3524 # Check whether --enable-dependency-tracking was given.
3525 if test "${enable_dependency_tracking+set}" = set; then :
3526 enableval=$enable_dependency_tracking;
3529 if test "x$enable_dependency_tracking" != xno; then
3530 am_depcomp="$ac_aux_dir/depcomp"
3531 AMDEPBACKSLASH='\'
3532 am__nodep='_no'
3534 if test "x$enable_dependency_tracking" != xno; then
3535 AMDEP_TRUE=
3536 AMDEP_FALSE='#'
3537 else
3538 AMDEP_TRUE='#'
3539 AMDEP_FALSE=
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3572 IFS=$as_save_IFS
3576 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3587 if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "gcc", so it can be a program name with args.
3590 set dummy gcc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_ac_ct_CC="gcc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3612 IFS=$as_save_IFS
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619 $as_echo "$ac_ct_CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3625 if test "x$ac_ct_CC" = x; then
3626 CC=""
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned=yes ;;
3633 esac
3634 CC=$ac_ct_CC
3636 else
3637 CC="$ac_cv_prog_CC"
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}cc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC="${ac_tool_prefix}cc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 # Extract the first word of "cc", so it can be a program name with args.
3683 set dummy cc; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if test "${ac_cv_prog_CC+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC="$CC" # Let the user override the test.
3691 else
3692 ac_prog_rejected=no
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701 ac_prog_rejected=yes
3702 continue
3704 ac_cv_prog_CC="cc"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3712 if test $ac_prog_rejected = yes; then
3713 # We found a bogon in the path, so make sure we never use it.
3714 set dummy $ac_cv_prog_CC
3715 shift
3716 if test $# != 0; then
3717 # We chose a different compiler from the bogus one.
3718 # However, it has the same basename, so the bogon will be chosen
3719 # first if we set CC to just the basename; use the full file name.
3720 shift
3721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3737 if test -z "$CC"; then
3738 if test -n "$ac_tool_prefix"; then
3739 for ac_prog in cl.exe
3741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if test "${ac_cv_prog_CC+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3762 done
3763 done
3764 IFS=$as_save_IFS
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 $as_echo "$CC" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3778 test -n "$CC" && break
3779 done
3781 if test -z "$CC"; then
3782 ac_ct_CC=$CC
3783 for ac_prog in cl.exe
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_ac_ct_CC="$ac_prog"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3822 test -n "$ac_ct_CC" && break
3823 done
3825 if test "x$ac_ct_CC" = x; then
3826 CC=""
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834 CC=$ac_ct_CC
3841 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error "no acceptable C compiler found in \$PATH
3844 See \`config.log' for more details." "$LINENO" 5; }
3846 # Provide some information about the compiler.
3847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848 set X $ac_compile
3849 ac_compiler=$2
3850 for ac_option in --version -v -V -qversion; do
3851 { { ac_try="$ac_compiler $ac_option >&5"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 ac_status=$?
3860 if test -s conftest.err; then
3861 sed '10a\
3862 ... rest of stderr output deleted ...
3863 10q' conftest.err >conftest.er1
3864 cat conftest.er1 >&5
3865 rm -f conftest.er1 conftest.err
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869 done
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3875 main ()
3879 return 0;
3881 _ACEOF
3882 # FIXME: Cleanup?
3883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3884 (eval $ac_link) 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; then :
3888 gcc_no_link=no
3889 else
3890 gcc_no_link=yes
3892 if test x$gcc_no_link = xyes; then
3893 # Setting cross_compile will disable run tests; it will
3894 # also disable AC_CHECK_FILE but that's generally
3895 # correct if we can't link.
3896 cross_compiling=yes
3897 EXEEXT=
3898 else
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3903 main ()
3907 return 0;
3909 _ACEOF
3910 ac_clean_files_save=$ac_clean_files
3911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3912 # Try to create an executable without -o first, disregard a.out.
3913 # It will help us diagnose broken compilers, and finding out an intuition
3914 # of exeext.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3916 $as_echo_n "checking for C compiler default output file name... " >&6; }
3917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3919 # The possible output files:
3920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3922 ac_rmfiles=
3923 for ac_file in $ac_files
3925 case $ac_file in
3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3928 esac
3929 done
3930 rm -f $ac_rmfiles
3932 if { { ac_try="$ac_link_default"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_link_default") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; then :
3943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3946 # so that the user can short-circuit this test for compilers unknown to
3947 # Autoconf.
3948 for ac_file in $ac_files ''
3950 test -f "$ac_file" || continue
3951 case $ac_file in
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3954 [ab].out )
3955 # We found the default executable, but exeext='' is most
3956 # certainly right.
3957 break;;
3958 *.* )
3959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3960 then :; else
3961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963 # We set ac_cv_exeext here because the later test for it is not
3964 # safe: cross compilers may not add the suffix if given an `-o'
3965 # argument, so we may need to know it at that point already.
3966 # Even if this section looks crufty: it has the advantage of
3967 # actually working.
3968 break;;
3970 break;;
3971 esac
3972 done
3973 test "$ac_cv_exeext" = no && ac_cv_exeext=
3975 else
3976 ac_file=''
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3979 $as_echo "$ac_file" >&6; }
3980 if test -z "$ac_file"; then :
3981 $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 { as_fn_set_status 77
3987 as_fn_error "C compiler cannot create executables
3988 See \`config.log' for more details." "$LINENO" 5; }; }
3990 ac_exeext=$ac_cv_exeext
3992 # Check that the compiler produces executables we can run. If not, either
3993 # the compiler is broken, or we cross compile.
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3995 $as_echo_n "checking whether the C compiler works... " >&6; }
3996 # If not cross compiling, check that we can run a simple program.
3997 if test "$cross_compiling" != yes; then
3998 if { ac_try='./$ac_file'
3999 { { case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_try") 2>&5
4006 ac_status=$?
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; }; then
4009 cross_compiling=no
4010 else
4011 if test "$cross_compiling" = maybe; then
4012 cross_compiling=yes
4013 else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error "cannot run C compiled programs.
4017 If you meant to cross compile, use \`--host'.
4018 See \`config.log' for more details." "$LINENO" 5; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023 $as_echo "yes" >&6; }
4025 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4026 ac_clean_files=$ac_clean_files_save
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030 $as_echo_n "checking whether we are cross compiling... " >&6; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4032 $as_echo "$cross_compiling" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4035 $as_echo_n "checking for suffix of executables... " >&6; }
4036 if { { ac_try="$ac_link"
4037 case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_link") 2>&5
4044 ac_status=$?
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }; then :
4047 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4048 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4049 # work properly (i.e., refer to `conftest.exe'), while it won't with
4050 # `rm'.
4051 for ac_file in conftest.exe conftest conftest.*; do
4052 test -f "$ac_file" || continue
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4055 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4056 break;;
4057 * ) break;;
4058 esac
4059 done
4060 else
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error "cannot compute suffix of executables: cannot compile and link
4064 See \`config.log' for more details." "$LINENO" 5; }
4066 rm -f conftest$ac_cv_exeext
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4068 $as_echo "$ac_cv_exeext" >&6; }
4070 rm -f conftest.$ac_ext
4071 EXEEXT=$ac_cv_exeext
4072 ac_exeext=$EXEEXT
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4075 $as_echo_n "checking for suffix of object files... " >&6; }
4076 if test "${ac_cv_objext+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4083 main ()
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.o conftest.obj
4091 if { { ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compile") 2>&5
4099 ac_status=$?
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; then :
4102 for ac_file in conftest.o conftest.obj conftest.*; do
4103 test -f "$ac_file" || continue;
4104 case $ac_file in
4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4107 break;;
4108 esac
4109 done
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error "cannot compute suffix of object files: cannot compile
4117 See \`config.log' for more details." "$LINENO" 5; }
4119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4122 $as_echo "$ac_cv_objext" >&6; }
4123 OBJEXT=$ac_cv_objext
4124 ac_objext=$OBJEXT
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4127 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4136 #ifndef __GNUC__
4137 choke me
4138 #endif
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_compiler_gnu=yes
4146 else
4147 ac_compiler_gnu=no
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4155 if test $ac_compiler_gnu = yes; then
4156 GCC=yes
4157 else
4158 GCC=
4160 ac_test_CFLAGS=${CFLAGS+set}
4161 ac_save_CFLAGS=$CFLAGS
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4164 if test "${ac_cv_prog_cc_g+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 ac_save_c_werror_flag=$ac_c_werror_flag
4168 ac_c_werror_flag=yes
4169 ac_cv_prog_cc_g=no
4170 CFLAGS="-g"
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_g=yes
4184 else
4185 CFLAGS=""
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4194 return 0;
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4199 else
4200 ac_c_werror_flag=$ac_save_c_werror_flag
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4206 main ()
4210 return 0;
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_g=yes
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4224 $as_echo "$ac_cv_prog_cc_g" >&6; }
4225 if test "$ac_test_CFLAGS" = set; then
4226 CFLAGS=$ac_save_CFLAGS
4227 elif test $ac_cv_prog_cc_g = yes; then
4228 if test "$GCC" = yes; then
4229 CFLAGS="-g -O2"
4230 else
4231 CFLAGS="-g"
4233 else
4234 if test "$GCC" = yes; then
4235 CFLAGS="-O2"
4236 else
4237 CFLAGS=
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4242 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_cv_prog_cc_c89=no
4246 ac_save_CC=$CC
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <stdarg.h>
4250 #include <stdio.h>
4251 #include <sys/types.h>
4252 #include <sys/stat.h>
4253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4254 struct buf { int x; };
4255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4256 static char *e (p, i)
4257 char **p;
4258 int i;
4260 return p[i];
4262 static char *f (char * (*g) (char **, int), char **p, ...)
4264 char *s;
4265 va_list v;
4266 va_start (v,p);
4267 s = g (p, va_arg (v,int));
4268 va_end (v);
4269 return s;
4272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4273 function prototypes and stuff, but not '\xHH' hex character constants.
4274 These don't provoke an error unfortunately, instead are silently treated
4275 as 'x'. The following induces an error, until -std is added to get
4276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4277 array size at least. It's necessary to write '\x00'==0 to get something
4278 that's true only with -std. */
4279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4282 inside strings and character constants. */
4283 #define FOO(x) 'x'
4284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4286 int test (int i, double x);
4287 struct s1 {int (*f) (int a);};
4288 struct s2 {int (*f) (double a);};
4289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290 int argc;
4291 char **argv;
4293 main ()
4295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4297 return 0;
4299 _ACEOF
4300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4303 CC="$ac_save_CC $ac_arg"
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_prog_cc_c89=$ac_arg
4307 rm -f core conftest.err conftest.$ac_objext
4308 test "x$ac_cv_prog_cc_c89" != "xno" && break
4309 done
4310 rm -f conftest.$ac_ext
4311 CC=$ac_save_CC
4314 # AC_CACHE_VAL
4315 case "x$ac_cv_prog_cc_c89" in
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318 $as_echo "none needed" >&6; } ;;
4319 xno)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321 $as_echo "unsupported" >&6; } ;;
4323 CC="$CC $ac_cv_prog_cc_c89"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4325 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4326 esac
4327 if test "x$ac_cv_prog_cc_c89" != xno; then :
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 depcc="$CC" am_compiler_list=
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4340 $as_echo_n "checking dependency style of $depcc... " >&6; }
4341 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4345 # We make a subdir and do the tests there. Otherwise we can end up
4346 # making bogus files that we don't know about and never remove. For
4347 # instance it was reported that on HP-UX the gcc test will end up
4348 # making a dummy file named `D' -- because `-MD' means `put the output
4349 # in D'.
4350 rm -rf conftest.dir
4351 mkdir conftest.dir
4352 # Copy depcomp to subdir because otherwise we won't find it if we're
4353 # using a relative directory.
4354 cp "$am_depcomp" conftest.dir
4355 cd conftest.dir
4356 # We will build objects and dependencies in a subdirectory because
4357 # it helps to detect inapplicable dependency modes. For instance
4358 # both Tru64's cc and ICC support -MD to output dependencies as a
4359 # side effect of compilation, but ICC will put the dependencies in
4360 # the current directory while Tru64 will put them in the object
4361 # directory.
4362 mkdir sub
4364 am_cv_CC_dependencies_compiler_type=none
4365 if test "$am_compiler_list" = ""; then
4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4368 am__universal=false
4369 case " $depcc " in #(
4370 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4371 esac
4373 for depmode in $am_compiler_list; do
4374 # Setup a source with many dependencies, because some compilers
4375 # like to wrap large dependency lists on column 80 (with \), and
4376 # we should not choose a depcomp mode which is confused by this.
4378 # We need to recreate these files for each test, as the compiler may
4379 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler.
4381 : > sub/conftest.c
4382 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4385 # Solaris 8's {/usr,}/bin/sh.
4386 touch sub/conftst$i.h
4387 done
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4391 # mode. It turns out that the SunPro C++ compiler does not properly
4392 # handle `-M -o', and we need to detect this. Also, some Intel
4393 # versions had trouble with output in subdirs
4394 am__obj=sub/conftest.${OBJEXT-o}
4395 am__minus_obj="-o $am__obj"
4396 case $depmode in
4397 gcc)
4398 # This depmode causes a compiler race in universal mode.
4399 test "$am__universal" = false || continue
4401 nosideeffect)
4402 # after this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested
4404 if test "x$enable_dependency_tracking" = xyes; then
4405 continue
4406 else
4407 break
4410 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4411 # This compiler won't grok `-c -o', but also, the minuso test has
4412 # not run yet. These depmodes are late enough in the game, and
4413 # so weak that their functioning should not be impacted.
4414 am__obj=conftest.${OBJEXT-o}
4415 am__minus_obj=
4417 none) break ;;
4418 esac
4419 if depmode=$depmode \
4420 source=sub/conftest.c object=$am__obj \
4421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4423 >/dev/null 2>conftest.err &&
4424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4428 # icc doesn't choke on unknown options, it will just issue warnings
4429 # or remarks (even with -Werror). So we grep stderr for any message
4430 # that says an option was ignored or not supported.
4431 # When given -MP, icc 7.0 and 7.1 complain thusly:
4432 # icc: Command line warning: ignoring option '-M'; no argument required
4433 # The diagnosis changed in icc 8.0:
4434 # icc: Command line remark: option '-MP' not supported
4435 if (grep 'ignoring option' conftest.err ||
4436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4437 am_cv_CC_dependencies_compiler_type=$depmode
4438 break
4441 done
4443 cd ..
4444 rm -rf conftest.dir
4445 else
4446 am_cv_CC_dependencies_compiler_type=none
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4451 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4452 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4455 test "x$enable_dependency_tracking" != xno \
4456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4457 am__fastdepCC_TRUE=
4458 am__fastdepCC_FALSE='#'
4459 else
4460 am__fastdepCC_TRUE='#'
4461 am__fastdepCC_FALSE=
4466 ac_ext=c
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4473 # On Suns, sometimes $CPP names a directory.
4474 if test -n "$CPP" && test -d "$CPP"; then
4475 CPP=
4477 if test -z "$CPP"; then
4478 if test "${ac_cv_prog_CPP+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 # Double quotes because CPP needs to be expanded
4482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4484 ac_preproc_ok=false
4485 for ac_c_preproc_warn_flag in '' yes
4487 # Use a header file that comes with gcc, so configuring glibc
4488 # with a fresh cross-compiler works.
4489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4490 # <limits.h> exists even on freestanding compilers.
4491 # On the NeXT, cc -E runs the code through the compiler's parser,
4492 # not just through cpp. "Syntax error" is here to catch this case.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #ifdef __STDC__
4496 # include <limits.h>
4497 #else
4498 # include <assert.h>
4499 #endif
4500 Syntax error
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4504 else
4505 # Broken: fails on valid input.
4506 continue
4508 rm -f conftest.err conftest.$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #include <ac_nonexistent.h>
4515 _ACEOF
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4517 # Broken: success on invalid input.
4518 continue
4519 else
4520 # Passes both tests.
4521 ac_preproc_ok=:
4522 break
4524 rm -f conftest.err conftest.$ac_ext
4526 done
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.err conftest.$ac_ext
4529 if $ac_preproc_ok; then :
4530 break
4533 done
4534 ac_cv_prog_CPP=$CPP
4537 CPP=$ac_cv_prog_CPP
4538 else
4539 ac_cv_prog_CPP=$CPP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4542 $as_echo "$CPP" >&6; }
4543 ac_preproc_ok=false
4544 for ac_c_preproc_warn_flag in '' yes
4546 # Use a header file that comes with gcc, so configuring glibc
4547 # with a fresh cross-compiler works.
4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4549 # <limits.h> exists even on freestanding compilers.
4550 # On the NeXT, cc -E runs the code through the compiler's parser,
4551 # not just through cpp. "Syntax error" is here to catch this case.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #ifdef __STDC__
4555 # include <limits.h>
4556 #else
4557 # include <assert.h>
4558 #endif
4559 Syntax error
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4563 else
4564 # Broken: fails on valid input.
4565 continue
4567 rm -f conftest.err conftest.$ac_ext
4569 # OK, works on sane cases. Now check whether nonexistent headers
4570 # can be detected and how.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <ac_nonexistent.h>
4574 _ACEOF
4575 if ac_fn_c_try_cpp "$LINENO"; then :
4576 # Broken: success on invalid input.
4577 continue
4578 else
4579 # Passes both tests.
4580 ac_preproc_ok=:
4581 break
4583 rm -f conftest.err conftest.$ac_ext
4585 done
4586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4587 rm -f conftest.err conftest.$ac_ext
4588 if $ac_preproc_ok; then :
4590 else
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4594 See \`config.log' for more details." "$LINENO" 5; }
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4606 if test "${ac_cv_path_GREP+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -z "$GREP"; then
4610 ac_path_GREP_found=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_prog in grep ggrep; do
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4620 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4621 # Check for GNU ac_path_GREP and select it if it is found.
4622 # Check for GNU $ac_path_GREP
4623 case `"$ac_path_GREP" --version 2>&1` in
4624 *GNU*)
4625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4627 ac_count=0
4628 $as_echo_n 0123456789 >"conftest.in"
4629 while :
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 $as_echo 'GREP' >> "conftest.nl"
4635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637 as_fn_arith $ac_count + 1 && ac_count=$as_val
4638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_GREP="$ac_path_GREP"
4641 ac_path_GREP_max=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4645 done
4646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 esac
4649 $ac_path_GREP_found && break 3
4650 done
4651 done
4652 done
4653 IFS=$as_save_IFS
4654 if test -z "$ac_cv_path_GREP"; then
4655 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4657 else
4658 ac_cv_path_GREP=$GREP
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4663 $as_echo "$ac_cv_path_GREP" >&6; }
4664 GREP="$ac_cv_path_GREP"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4668 $as_echo_n "checking for egrep... " >&6; }
4669 if test "${ac_cv_path_EGREP+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4673 then ac_cv_path_EGREP="$GREP -E"
4674 else
4675 if test -z "$EGREP"; then
4676 ac_path_EGREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in egrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4687 # Check for GNU ac_path_EGREP and select it if it is found.
4688 # Check for GNU $ac_path_EGREP
4689 case `"$ac_path_EGREP" --version 2>&1` in
4690 *GNU*)
4691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'EGREP' >> "conftest.nl"
4701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_EGREP="$ac_path_EGREP"
4707 ac_path_EGREP_max=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4715 $ac_path_EGREP_found && break 3
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_EGREP"; then
4721 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4723 else
4724 ac_cv_path_EGREP=$EGREP
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4730 $as_echo "$ac_cv_path_EGREP" >&6; }
4731 EGREP="$ac_cv_path_EGREP"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4735 $as_echo_n "checking for ANSI C header files... " >&6; }
4736 if test "${ac_cv_header_stdc+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <stdlib.h>
4742 #include <stdarg.h>
4743 #include <string.h>
4744 #include <float.h>
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_header_stdc=yes
4756 else
4757 ac_cv_header_stdc=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <string.h>
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "memchr" >/dev/null 2>&1; then :
4771 else
4772 ac_cv_header_stdc=no
4774 rm -f conftest*
4778 if test $ac_cv_header_stdc = yes; then
4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <stdlib.h>
4784 _ACEOF
4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "free" >/dev/null 2>&1; then :
4788 else
4789 ac_cv_header_stdc=no
4791 rm -f conftest*
4795 if test $ac_cv_header_stdc = yes; then
4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4797 if test "$cross_compiling" = yes; then :
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <ctype.h>
4803 #include <stdlib.h>
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4807 #else
4808 # define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4813 #endif
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817 main ()
4819 int i;
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4823 return 2;
4824 return 0;
4826 _ACEOF
4827 if ac_fn_c_try_run "$LINENO"; then :
4829 else
4830 ac_cv_header_stdc=no
4832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4833 conftest.$ac_objext conftest.beam conftest.$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4839 $as_echo "$ac_cv_header_stdc" >&6; }
4840 if test $ac_cv_header_stdc = yes; then
4842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4848 inttypes.h stdint.h unistd.h
4849 do :
4850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4853 eval as_val=\$$as_ac_Header
4854 if test "x$as_val" = x""yes; then :
4855 cat >>confdefs.h <<_ACEOF
4856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857 _ACEOF
4861 done
4865 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4866 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4867 MINIX=yes
4868 else
4869 MINIX=
4873 if test "$MINIX" = yes; then
4875 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4878 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4881 $as_echo "#define _MINIX 1" >>confdefs.h
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4887 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4888 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 # define __EXTENSIONS__ 1
4895 $ac_includes_default
4897 main ()
4901 return 0;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_safe_to_define___extensions__=yes
4906 else
4907 ac_cv_safe_to_define___extensions__=no
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4912 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4913 test $ac_cv_safe_to_define___extensions__ = yes &&
4914 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4916 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4918 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4920 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4922 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4926 # Calculate toolexeclibdir
4927 # Also toolexecdir, though it's only used in toolexeclibdir
4928 case ${version_specific_libs} in
4929 yes)
4930 # Need the gcc compiler version to know where to install libraries
4931 # and header files if --enable-version-specific-runtime-libs option
4932 # is selected.
4933 toolexecdir='$(libdir)/gcc/$(target_alias)'
4934 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4937 if test -n "$with_cross_host" &&
4938 test x"$with_cross_host" != x"no"; then
4939 # Install a library built with a cross compiler in tooldir, not libdir.
4940 toolexecdir='$(exec_prefix)/$(target_alias)'
4941 toolexeclibdir='$(toolexecdir)/lib'
4942 else
4943 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4944 toolexeclibdir='$(libdir)'
4946 multi_os_directory=`$CC -print-multi-os-directory`
4947 case $multi_os_directory in
4948 .) ;; # Avoid trailing /.
4949 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4950 esac
4952 esac
4956 # Create a spec file, so that compile/link tests don't fail
4957 test -f libgfortran.spec || touch libgfortran.spec
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 # Check the compiler.
4966 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4967 # We must force CC to /not/ be precious variables; otherwise
4968 # the wrong, non-multilib-adjusted value will be used in multilibs.
4969 # As a side effect, we have to subst CFLAGS ourselves.
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if test "${ac_cv_prog_CC+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$CC"; then
4987 ac_cv_prog_CC="$CC" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 CC=$ac_cv_prog_CC
5007 if test -n "$CC"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5009 $as_echo "$CC" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5017 if test -z "$ac_cv_prog_CC"; then
5018 ac_ct_CC=$CC
5019 # Extract the first word of "gcc", so it can be a program name with args.
5020 set dummy gcc; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$ac_ct_CC"; then
5027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_ac_ct_CC="gcc"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5042 IFS=$as_save_IFS
5046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5047 if test -n "$ac_ct_CC"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5049 $as_echo "$ac_ct_CC" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5055 if test "x$ac_ct_CC" = x; then
5056 CC=""
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064 CC=$ac_ct_CC
5066 else
5067 CC="$ac_cv_prog_CC"
5070 if test -z "$CC"; then
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}cc; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_CC+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$CC"; then
5080 ac_cv_prog_CC="$CC" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_CC="${ac_tool_prefix}cc"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5095 IFS=$as_save_IFS
5099 CC=$ac_cv_prog_CC
5100 if test -n "$CC"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5102 $as_echo "$CC" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5111 if test -z "$CC"; then
5112 # Extract the first word of "cc", so it can be a program name with args.
5113 set dummy cc; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_CC+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$CC"; then
5120 ac_cv_prog_CC="$CC" # Let the user override the test.
5121 else
5122 ac_prog_rejected=no
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5131 ac_prog_rejected=yes
5132 continue
5134 ac_cv_prog_CC="cc"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5142 if test $ac_prog_rejected = yes; then
5143 # We found a bogon in the path, so make sure we never use it.
5144 set dummy $ac_cv_prog_CC
5145 shift
5146 if test $# != 0; then
5147 # We chose a different compiler from the bogus one.
5148 # However, it has the same basename, so the bogon will be chosen
5149 # first if we set CC to just the basename; use the full file name.
5150 shift
5151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5156 CC=$ac_cv_prog_CC
5157 if test -n "$CC"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5159 $as_echo "$CC" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$CC"; then
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog in cl.exe
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_CC+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$CC"; then
5179 ac_cv_prog_CC="$CC" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 CC=$ac_cv_prog_CC
5199 if test -n "$CC"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5201 $as_echo "$CC" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 test -n "$CC" && break
5209 done
5211 if test -z "$CC"; then
5212 ac_ct_CC=$CC
5213 for ac_prog in cl.exe
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$ac_ct_CC"; then
5223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_CC="$ac_prog"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5243 if test -n "$ac_ct_CC"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5245 $as_echo "$ac_ct_CC" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 test -n "$ac_ct_CC" && break
5253 done
5255 if test "x$ac_ct_CC" = x; then
5256 CC=""
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 CC=$ac_ct_CC
5271 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5273 as_fn_error "no acceptable C compiler found in \$PATH
5274 See \`config.log' for more details." "$LINENO" 5; }
5276 # Provide some information about the compiler.
5277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5278 set X $ac_compile
5279 ac_compiler=$2
5280 for ac_option in --version -v -V -qversion; do
5281 { { ac_try="$ac_compiler $ac_option >&5"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5287 $as_echo "$ac_try_echo"; } >&5
5288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5289 ac_status=$?
5290 if test -s conftest.err; then
5291 sed '10a\
5292 ... rest of stderr output deleted ...
5293 10q' conftest.err >conftest.er1
5294 cat conftest.er1 >&5
5295 rm -f conftest.er1 conftest.err
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 done
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 main ()
5312 #ifndef __GNUC__
5313 choke me
5314 #endif
5317 return 0;
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_compiler_gnu=yes
5322 else
5323 ac_compiler_gnu=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5331 if test $ac_compiler_gnu = yes; then
5332 GCC=yes
5333 else
5334 GCC=
5336 ac_test_CFLAGS=${CFLAGS+set}
5337 ac_save_CFLAGS=$CFLAGS
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5340 if test "${ac_cv_prog_cc_g+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 ac_save_c_werror_flag=$ac_c_werror_flag
5344 ac_c_werror_flag=yes
5345 ac_cv_prog_cc_g=no
5346 CFLAGS="-g"
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5351 main ()
5355 return 0;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 ac_cv_prog_cc_g=yes
5360 else
5361 CFLAGS=""
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5366 main ()
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5375 else
5376 ac_c_werror_flag=$ac_save_c_werror_flag
5377 CFLAGS="-g"
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5382 main ()
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 ac_cv_prog_cc_g=yes
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_c_werror_flag=$ac_save_c_werror_flag
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5400 $as_echo "$ac_cv_prog_cc_g" >&6; }
5401 if test "$ac_test_CFLAGS" = set; then
5402 CFLAGS=$ac_save_CFLAGS
5403 elif test $ac_cv_prog_cc_g = yes; then
5404 if test "$GCC" = yes; then
5405 CFLAGS="-g -O2"
5406 else
5407 CFLAGS="-g"
5409 else
5410 if test "$GCC" = yes; then
5411 CFLAGS="-O2"
5412 else
5413 CFLAGS=
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 ac_cv_prog_cc_c89=no
5422 ac_save_CC=$CC
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <stdarg.h>
5426 #include <stdio.h>
5427 #include <sys/types.h>
5428 #include <sys/stat.h>
5429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5430 struct buf { int x; };
5431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5432 static char *e (p, i)
5433 char **p;
5434 int i;
5436 return p[i];
5438 static char *f (char * (*g) (char **, int), char **p, ...)
5440 char *s;
5441 va_list v;
5442 va_start (v,p);
5443 s = g (p, va_arg (v,int));
5444 va_end (v);
5445 return s;
5448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5449 function prototypes and stuff, but not '\xHH' hex character constants.
5450 These don't provoke an error unfortunately, instead are silently treated
5451 as 'x'. The following induces an error, until -std is added to get
5452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5453 array size at least. It's necessary to write '\x00'==0 to get something
5454 that's true only with -std. */
5455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5458 inside strings and character constants. */
5459 #define FOO(x) 'x'
5460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5462 int test (int i, double x);
5463 struct s1 {int (*f) (int a);};
5464 struct s2 {int (*f) (double a);};
5465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5466 int argc;
5467 char **argv;
5469 main ()
5471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5473 return 0;
5475 _ACEOF
5476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5479 CC="$ac_save_CC $ac_arg"
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_prog_cc_c89=$ac_arg
5483 rm -f core conftest.err conftest.$ac_objext
5484 test "x$ac_cv_prog_cc_c89" != "xno" && break
5485 done
5486 rm -f conftest.$ac_ext
5487 CC=$ac_save_CC
5490 # AC_CACHE_VAL
5491 case "x$ac_cv_prog_cc_c89" in
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5494 $as_echo "none needed" >&6; } ;;
5495 xno)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5497 $as_echo "unsupported" >&6; } ;;
5499 CC="$CC $ac_cv_prog_cc_c89"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5502 esac
5503 if test "x$ac_cv_prog_cc_c89" != xno; then :
5507 ac_ext=c
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 depcc="$CC" am_compiler_list=
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5516 $as_echo_n "checking dependency style of $depcc... " >&6; }
5517 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5521 # We make a subdir and do the tests there. Otherwise we can end up
5522 # making bogus files that we don't know about and never remove. For
5523 # instance it was reported that on HP-UX the gcc test will end up
5524 # making a dummy file named `D' -- because `-MD' means `put the output
5525 # in D'.
5526 rm -rf conftest.dir
5527 mkdir conftest.dir
5528 # Copy depcomp to subdir because otherwise we won't find it if we're
5529 # using a relative directory.
5530 cp "$am_depcomp" conftest.dir
5531 cd conftest.dir
5532 # We will build objects and dependencies in a subdirectory because
5533 # it helps to detect inapplicable dependency modes. For instance
5534 # both Tru64's cc and ICC support -MD to output dependencies as a
5535 # side effect of compilation, but ICC will put the dependencies in
5536 # the current directory while Tru64 will put them in the object
5537 # directory.
5538 mkdir sub
5540 am_cv_CC_dependencies_compiler_type=none
5541 if test "$am_compiler_list" = ""; then
5542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5544 am__universal=false
5545 case " $depcc " in #(
5546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5547 esac
5549 for depmode in $am_compiler_list; do
5550 # Setup a source with many dependencies, because some compilers
5551 # like to wrap large dependency lists on column 80 (with \), and
5552 # we should not choose a depcomp mode which is confused by this.
5554 # We need to recreate these files for each test, as the compiler may
5555 # overwrite some of them when testing with obscure command lines.
5556 # This happens at least with the AIX C compiler.
5557 : > sub/conftest.c
5558 for i in 1 2 3 4 5 6; do
5559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5560 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5561 # Solaris 8's {/usr,}/bin/sh.
5562 touch sub/conftst$i.h
5563 done
5564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5567 # mode. It turns out that the SunPro C++ compiler does not properly
5568 # handle `-M -o', and we need to detect this. Also, some Intel
5569 # versions had trouble with output in subdirs
5570 am__obj=sub/conftest.${OBJEXT-o}
5571 am__minus_obj="-o $am__obj"
5572 case $depmode in
5573 gcc)
5574 # This depmode causes a compiler race in universal mode.
5575 test "$am__universal" = false || continue
5577 nosideeffect)
5578 # after this tag, mechanisms are not by side-effect, so they'll
5579 # only be used when explicitly requested
5580 if test "x$enable_dependency_tracking" = xyes; then
5581 continue
5582 else
5583 break
5586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5587 # This compiler won't grok `-c -o', but also, the minuso test has
5588 # not run yet. These depmodes are late enough in the game, and
5589 # so weak that their functioning should not be impacted.
5590 am__obj=conftest.${OBJEXT-o}
5591 am__minus_obj=
5593 none) break ;;
5594 esac
5595 if depmode=$depmode \
5596 source=sub/conftest.c object=$am__obj \
5597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5599 >/dev/null 2>conftest.err &&
5600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5604 # icc doesn't choke on unknown options, it will just issue warnings
5605 # or remarks (even with -Werror). So we grep stderr for any message
5606 # that says an option was ignored or not supported.
5607 # When given -MP, icc 7.0 and 7.1 complain thusly:
5608 # icc: Command line warning: ignoring option '-M'; no argument required
5609 # The diagnosis changed in icc 8.0:
5610 # icc: Command line remark: option '-MP' not supported
5611 if (grep 'ignoring option' conftest.err ||
5612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5613 am_cv_CC_dependencies_compiler_type=$depmode
5614 break
5617 done
5619 cd ..
5620 rm -rf conftest.dir
5621 else
5622 am_cv_CC_dependencies_compiler_type=none
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5631 test "x$enable_dependency_tracking" != xno \
5632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5633 am__fastdepCC_TRUE=
5634 am__fastdepCC_FALSE='#'
5635 else
5636 am__fastdepCC_TRUE='#'
5637 am__fastdepCC_FALSE=
5645 if test "x$CC" != xcc; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5647 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5650 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5652 set dummy $CC; ac_cc=`$as_echo "$2" |
5653 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5654 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5661 main ()
5665 return 0;
5667 _ACEOF
5668 # Make sure it works both with $CC and with simple cc.
5669 # We do the test twice because some compilers refuse to overwrite an
5670 # existing .o file with -o, though they will create one.
5671 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5672 rm -f conftest2.*
5673 if { { case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; } &&
5683 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; };
5693 then
5694 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5695 if test "x$CC" != xcc; then
5696 # Test first that cc exists at all.
5697 if { ac_try='cc -c conftest.$ac_ext >&5'
5698 { { case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5703 $as_echo "$ac_try_echo"; } >&5
5704 (eval "$ac_try") 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }; }; then
5708 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5709 rm -f conftest2.*
5710 if { { case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5715 $as_echo "$ac_try_echo"; } >&5
5716 (eval "$ac_try") 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; } &&
5720 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5725 $as_echo "$ac_try_echo"; } >&5
5726 (eval "$ac_try") 2>&5
5727 ac_status=$?
5728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729 test $ac_status = 0; };
5730 then
5731 # cc works too.
5733 else
5734 # cc exists but doesn't like -o.
5735 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5739 else
5740 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5742 rm -f core conftest*
5745 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747 $as_echo "yes" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5752 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5756 # FIXME: we rely on the cache variable name because
5757 # there is no other way.
5758 set dummy $CC
5759 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5760 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5761 if test "$am_t" != yes; then
5762 # Losing compiler, so override with the script.
5763 # FIXME: It is wrong to rewrite CC.
5764 # But if we don't then we get into trouble of one sort or another.
5765 # A longer-term fix would be to have automake use am__CC in this case,
5766 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5767 CC="$am_aux_dir/compile $CC"
5772 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5773 if test "x$GCC" = "xyes"; then
5774 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5775 ## We like to use C11 and C99 routines when available. This makes
5776 ## sure that
5777 ## __STDC_VERSION__ is set such that libc includes make them available.
5778 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5779 ## Compile the following tests with the same system header contents
5780 ## that we'll encounter when compiling our own source files.
5781 CFLAGS="-std=gnu11 $CFLAGS"
5787 # Check for symbol versioning (copied from libssp).
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5789 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5790 # Check whether --enable-symvers was given.
5791 if test "${enable_symvers+set}" = set; then :
5792 enableval=$enable_symvers; gfortran_use_symver=$enableval
5793 else
5794 gfortran_use_symver=yes
5797 if test "x$gfortran_use_symver" != xno; then
5798 save_LDFLAGS="$LDFLAGS"
5799 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5800 cat > conftest.map <<EOF
5801 FOO_1.0 {
5802 global: *foo*; bar; local: *;
5805 if test x$gcc_no_link = xyes; then
5806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 int foo;
5812 main ()
5816 return 0;
5818 _ACEOF
5819 if ac_fn_c_try_link "$LINENO"; then :
5820 gfortran_use_symver=gnu
5821 else
5822 gfortran_use_symver=no
5824 rm -f core conftest.err conftest.$ac_objext \
5825 conftest$ac_exeext conftest.$ac_ext
5826 if test x$gfortran_use_symver = xno; then
5827 case "$target_os" in
5828 solaris2*)
5829 LDFLAGS="$save_LDFLAGS"
5830 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5831 # Sun ld cannot handle wildcards and treats all entries as undefined.
5832 cat > conftest.map <<EOF
5833 FOO_1.0 {
5834 global: foo; local: *;
5837 if test x$gcc_no_link = xyes; then
5838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int foo;
5844 main ()
5848 return 0;
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 gfortran_use_symver=sun
5853 else
5854 gfortran_use_symver=no
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5859 esac
5861 LDFLAGS="$save_LDFLAGS"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5864 $as_echo "$gfortran_use_symver" >&6; }
5865 if test "x$gfortran_use_symver" != xno; then
5866 LIBGFOR_USE_SYMVER_TRUE=
5867 LIBGFOR_USE_SYMVER_FALSE='#'
5868 else
5869 LIBGFOR_USE_SYMVER_TRUE='#'
5870 LIBGFOR_USE_SYMVER_FALSE=
5873 if test "x$gfortran_use_symver" = xgnu; then
5874 LIBGFOR_USE_SYMVER_GNU_TRUE=
5875 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5876 else
5877 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5878 LIBGFOR_USE_SYMVER_GNU_FALSE=
5881 if test "x$gfortran_use_symver" = xsun; then
5882 LIBGFOR_USE_SYMVER_SUN_TRUE=
5883 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5884 else
5885 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5886 LIBGFOR_USE_SYMVER_SUN_FALSE=
5890 # For GPU offloading, not everything in libfortran can be supported.
5891 # Currently, the only target that has this problem is nvptx. The
5892 # following is a (partial) list of features that are unsupportable on
5893 # this particular target:
5894 # * Constructors
5895 # * alloca
5896 # * C library support for I/O, with printf as the one notable exception
5897 # * C library support for other features such as signal, environment
5898 # variables, time functions
5900 if test "x${target_cpu}" = xnvptx; then
5901 LIBGFOR_MINIMAL_TRUE=
5902 LIBGFOR_MINIMAL_FALSE='#'
5903 else
5904 LIBGFOR_MINIMAL_TRUE='#'
5905 LIBGFOR_MINIMAL_FALSE=
5909 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5910 # similarly to how libstdc++ does it
5911 ac_test_CFLAGS="${CFLAGS+set}"
5912 ac_save_CFLAGS="$CFLAGS"
5914 # Check for -ffunction-sections -fdata-sections
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5916 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5917 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5922 main ()
5924 int foo;
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 ac_fdsections=yes
5931 else
5932 ac_fdsections=no
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 if test "$ac_test_CFLAGS" = set; then
5936 CFLAGS="$ac_save_CFLAGS"
5937 else
5938 # this is the suspicious part
5939 CFLAGS=""
5941 if test x"$ac_fdsections" = x"yes"; then
5942 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5945 $as_echo "$ac_fdsections" >&6; }
5948 # Check linker hardware capability support.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5950 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951 if test "${ac_cv_path_SED+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5955 for ac_i in 1 2 3 4 5 6 7; do
5956 ac_script="$ac_script$as_nl$ac_script"
5957 done
5958 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5959 { ac_script=; unset ac_script;}
5960 if test -z "$SED"; then
5961 ac_path_SED_found=false
5962 # Loop through the user's path and test for each of PROGNAME-LIST
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_prog in sed gsed; do
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5971 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5972 # Check for GNU ac_path_SED and select it if it is found.
5973 # Check for GNU $ac_path_SED
5974 case `"$ac_path_SED" --version 2>&1` in
5975 *GNU*)
5976 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5978 ac_count=0
5979 $as_echo_n 0123456789 >"conftest.in"
5980 while :
5982 cat "conftest.in" "conftest.in" >"conftest.tmp"
5983 mv "conftest.tmp" "conftest.in"
5984 cp "conftest.in" "conftest.nl"
5985 $as_echo '' >> "conftest.nl"
5986 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5988 as_fn_arith $ac_count + 1 && ac_count=$as_val
5989 if test $ac_count -gt ${ac_path_SED_max-0}; then
5990 # Best one so far, save it but keep looking for a better one
5991 ac_cv_path_SED="$ac_path_SED"
5992 ac_path_SED_max=$ac_count
5994 # 10*(2^10) chars as input seems more than enough
5995 test $ac_count -gt 10 && break
5996 done
5997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5998 esac
6000 $ac_path_SED_found && break 3
6001 done
6002 done
6003 done
6004 IFS=$as_save_IFS
6005 if test -z "$ac_cv_path_SED"; then
6006 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6008 else
6009 ac_cv_path_SED=$SED
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6014 $as_echo "$ac_cv_path_SED" >&6; }
6015 SED="$ac_cv_path_SED"
6016 rm -f conftest.sed
6018 test -z "$SED" && SED=sed
6019 Xsed="$SED -e 1s/^X//"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6032 $as_echo_n "checking for fgrep... " >&6; }
6033 if test "${ac_cv_path_FGREP+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6037 then ac_cv_path_FGREP="$GREP -F"
6038 else
6039 if test -z "$FGREP"; then
6040 ac_path_FGREP_found=false
6041 # Loop through the user's path and test for each of PROGNAME-LIST
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_prog in fgrep; do
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6050 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6051 # Check for GNU ac_path_FGREP and select it if it is found.
6052 # Check for GNU $ac_path_FGREP
6053 case `"$ac_path_FGREP" --version 2>&1` in
6054 *GNU*)
6055 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6057 ac_count=0
6058 $as_echo_n 0123456789 >"conftest.in"
6059 while :
6061 cat "conftest.in" "conftest.in" >"conftest.tmp"
6062 mv "conftest.tmp" "conftest.in"
6063 cp "conftest.in" "conftest.nl"
6064 $as_echo 'FGREP' >> "conftest.nl"
6065 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6067 as_fn_arith $ac_count + 1 && ac_count=$as_val
6068 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6069 # Best one so far, save it but keep looking for a better one
6070 ac_cv_path_FGREP="$ac_path_FGREP"
6071 ac_path_FGREP_max=$ac_count
6073 # 10*(2^10) chars as input seems more than enough
6074 test $ac_count -gt 10 && break
6075 done
6076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6077 esac
6079 $ac_path_FGREP_found && break 3
6080 done
6081 done
6082 done
6083 IFS=$as_save_IFS
6084 if test -z "$ac_cv_path_FGREP"; then
6085 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6087 else
6088 ac_cv_path_FGREP=$FGREP
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6094 $as_echo "$ac_cv_path_FGREP" >&6; }
6095 FGREP="$ac_cv_path_FGREP"
6098 test -z "$GREP" && GREP=grep
6116 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6121 $as_echo_n "checking how to print strings... " >&6; }
6122 # Test print first, because it will be a builtin if present.
6123 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6124 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6125 ECHO='print -r --'
6126 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6127 ECHO='printf %s\n'
6128 else
6129 # Use this function as a fallback that always works.
6130 func_fallback_echo ()
6132 eval 'cat <<_LTECHO_EOF
6134 _LTECHO_EOF'
6136 ECHO='func_fallback_echo'
6139 # func_echo_all arg...
6140 # Invoke $ECHO with all args, space-separated.
6141 func_echo_all ()
6143 $ECHO ""
6146 case "$ECHO" in
6147 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6148 $as_echo "printf" >&6; } ;;
6149 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6150 $as_echo "print -r" >&6; } ;;
6151 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6152 $as_echo "cat" >&6; } ;;
6153 esac
6170 # Check whether --with-gnu-ld was given.
6171 if test "${with_gnu_ld+set}" = set; then :
6172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6173 else
6174 with_gnu_ld=no
6177 ac_prog=ld
6178 if test "$GCC" = yes; then
6179 # Check if gcc -print-prog-name=ld gives a path.
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6181 $as_echo_n "checking for ld used by $CC... " >&6; }
6182 case $host in
6183 *-*-mingw*)
6184 # gcc leaves a trailing carriage return which upsets mingw
6185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6188 esac
6189 case $ac_prog in
6190 # Accept absolute paths.
6191 [\\/]* | ?:[\\/]*)
6192 re_direlt='/[^/][^/]*/\.\./'
6193 # Canonicalize the pathname of ld
6194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6197 done
6198 test -z "$LD" && LD="$ac_prog"
6201 # If it fails, then pretend we aren't using GCC.
6202 ac_prog=ld
6205 # If it is relative, then search for the first ld in PATH.
6206 with_gnu_ld=unknown
6208 esac
6209 elif test "$with_gnu_ld" = yes; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6211 $as_echo_n "checking for GNU ld... " >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6214 $as_echo_n "checking for non-GNU ld... " >&6; }
6216 if test "${lt_cv_path_LD+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -z "$LD"; then
6220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6221 for ac_dir in $PATH; do
6222 IFS="$lt_save_ifs"
6223 test -z "$ac_dir" && ac_dir=.
6224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6225 lt_cv_path_LD="$ac_dir/$ac_prog"
6226 # Check to see if the program is GNU ld. I'd rather use --version,
6227 # but apparently some variants of GNU ld only accept -v.
6228 # Break only if it was the GNU/non-GNU ld that we prefer.
6229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6230 *GNU* | *'with BFD'*)
6231 test "$with_gnu_ld" != no && break
6234 test "$with_gnu_ld" != yes && break
6236 esac
6238 done
6239 IFS="$lt_save_ifs"
6240 else
6241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6245 LD="$lt_cv_path_LD"
6246 if test -n "$LD"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6248 $as_echo "$LD" >&6; }
6249 else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6253 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6260 case `$LD -v 2>&1 </dev/null` in
6261 *GNU* | *'with BFD'*)
6262 lt_cv_prog_gnu_ld=yes
6265 lt_cv_prog_gnu_ld=no
6267 esac
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6271 with_gnu_ld=$lt_cv_prog_gnu_ld
6282 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6285 ac_save_LDFLAGS="$LDFLAGS"
6286 LDFLAGS="$LFLAGS -mclear-hwcap"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6289 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6290 if test x$gcc_no_link = xyes; then
6291 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6297 main ()
6299 return 0;
6301 return 0;
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 ac_hwcap_ldflags=yes
6306 else
6307 ac_hwcap_ldflags=no
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 if test "$ac_hwcap_ldflags" = "yes"; then
6312 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6315 $as_echo "$ac_hwcap_ldflags" >&6; }
6317 LDFLAGS="$ac_save_LDFLAGS"
6321 if test $ac_hwcap_ldflags != no; then
6322 HAVE_HWCAP_TRUE=
6323 HAVE_HWCAP_FALSE='#'
6324 else
6325 HAVE_HWCAP_TRUE='#'
6326 HAVE_HWCAP_FALSE=
6331 # Find other programs we need.
6332 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}as; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_AS+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$AS"; then
6341 ac_cv_prog_AS="$AS" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_AS="${ac_tool_prefix}as"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6356 IFS=$as_save_IFS
6360 AS=$ac_cv_prog_AS
6361 if test -n "$AS"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6363 $as_echo "$AS" >&6; }
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6371 if test -z "$ac_cv_prog_AS"; then
6372 ac_ct_AS=$AS
6373 # Extract the first word of "as", so it can be a program name with args.
6374 set dummy as; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$ac_ct_AS"; then
6381 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_ac_ct_AS="as"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6394 done
6395 done
6396 IFS=$as_save_IFS
6400 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6401 if test -n "$ac_ct_AS"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6403 $as_echo "$ac_ct_AS" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6409 if test "x$ac_ct_AS" = x; then
6410 AS=""
6411 else
6412 case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418 AS=$ac_ct_AS
6420 else
6421 AS="$ac_cv_prog_AS"
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ar; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_AR+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -n "$AR"; then
6433 ac_cv_prog_AR="$AR" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_AR="${ac_tool_prefix}ar"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6446 done
6447 done
6448 IFS=$as_save_IFS
6452 AR=$ac_cv_prog_AR
6453 if test -n "$AR"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6455 $as_echo "$AR" >&6; }
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6463 if test -z "$ac_cv_prog_AR"; then
6464 ac_ct_AR=$AR
6465 # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$ac_ct_AR"; then
6473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_ac_ct_AR="ar"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6486 done
6487 done
6488 IFS=$as_save_IFS
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6495 $as_echo "$ac_ct_AR" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6501 if test "x$ac_ct_AR" = x; then
6502 AR=""
6503 else
6504 case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510 AR=$ac_ct_AR
6512 else
6513 AR="$ac_cv_prog_AR"
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if test -n "$RANLIB"; then
6525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6538 done
6539 done
6540 IFS=$as_save_IFS
6544 RANLIB=$ac_cv_prog_RANLIB
6545 if test -n "$RANLIB"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6547 $as_echo "$RANLIB" >&6; }
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6555 if test -z "$ac_cv_prog_RANLIB"; then
6556 ac_ct_RANLIB=$RANLIB
6557 # Extract the first word of "ranlib", so it can be a program name with args.
6558 set dummy ranlib; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if test -n "$ac_ct_RANLIB"; then
6565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_ac_ct_RANLIB="ranlib"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6585 if test -n "$ac_ct_RANLIB"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6587 $as_echo "$ac_ct_RANLIB" >&6; }
6588 else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6593 if test "x$ac_ct_RANLIB" = x; then
6594 RANLIB="ranlib-not-found-in-path-error"
6595 else
6596 case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602 RANLIB=$ac_ct_RANLIB
6604 else
6605 RANLIB="$ac_cv_prog_RANLIB"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6610 set x ${MAKE-make}
6611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6612 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 cat >conftest.make <<\_ACEOF
6616 SHELL = /bin/sh
6617 all:
6618 @echo '@@@%%%=$(MAKE)=@@@%%%'
6619 _ACEOF
6620 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6622 *@@@%%%=?*=@@@%%%*)
6623 eval ac_cv_prog_make_${ac_make}_set=yes;;
6625 eval ac_cv_prog_make_${ac_make}_set=no;;
6626 esac
6627 rm -f conftest.make
6629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; }
6632 SET_MAKE=
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 SET_MAKE="MAKE=${MAKE-make}"
6641 # Configure libtool
6642 #AC_MSG_NOTICE([====== Starting libtool configuration])
6643 enable_dlopen=yes
6647 case `pwd` in
6648 *\ * | *\ *)
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6650 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6651 esac
6655 macro_version='2.2.7a'
6656 macro_revision='1.3134'
6670 ltmain="$ac_aux_dir/ltmain.sh"
6672 # Backslashify metacharacters that are still active within
6673 # double-quoted strings.
6674 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6676 # Same as above, but do not quote variable references.
6677 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6679 # Sed substitution to delay expansion of an escaped shell variable in a
6680 # double_quote_subst'ed string.
6681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6683 # Sed substitution to delay expansion of an escaped single quote.
6684 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6686 # Sed substitution to avoid accidental globbing in evaled expressions
6687 no_glob_subst='s/\*/\\\*/g'
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6691 if test "${lt_cv_path_NM+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$NM"; then
6695 # Let the user override the test.
6696 lt_cv_path_NM="$NM"
6697 else
6698 lt_nm_to_check="${ac_tool_prefix}nm"
6699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6700 lt_nm_to_check="$lt_nm_to_check nm"
6702 for lt_tmp_nm in $lt_nm_to_check; do
6703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6705 IFS="$lt_save_ifs"
6706 test -z "$ac_dir" && ac_dir=.
6707 tmp_nm="$ac_dir/$lt_tmp_nm"
6708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6709 # Check to see if the nm accepts a BSD-compat flag.
6710 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6711 # nm: unknown option "B" ignored
6712 # Tru64's nm complains that /dev/null is an invalid object file
6713 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6714 */dev/null* | *'Invalid file or object type'*)
6715 lt_cv_path_NM="$tmp_nm -B"
6716 break
6719 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6720 */dev/null*)
6721 lt_cv_path_NM="$tmp_nm -p"
6722 break
6725 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6726 continue # so that we can try to find one that supports BSD flags
6728 esac
6730 esac
6732 done
6733 IFS="$lt_save_ifs"
6734 done
6735 : ${lt_cv_path_NM=no}
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6739 $as_echo "$lt_cv_path_NM" >&6; }
6740 if test "$lt_cv_path_NM" != "no"; then
6741 NM="$lt_cv_path_NM"
6742 else
6743 # Didn't find any BSD compatible name lister, look for dumpbin.
6744 if test -n "$DUMPBIN"; then :
6745 # Let the user override the test.
6746 else
6747 if test -n "$ac_tool_prefix"; then
6748 for ac_prog in dumpbin "link -dump"
6750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test -n "$DUMPBIN"; then
6758 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6771 done
6772 done
6773 IFS=$as_save_IFS
6777 DUMPBIN=$ac_cv_prog_DUMPBIN
6778 if test -n "$DUMPBIN"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6780 $as_echo "$DUMPBIN" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6787 test -n "$DUMPBIN" && break
6788 done
6790 if test -z "$DUMPBIN"; then
6791 ac_ct_DUMPBIN=$DUMPBIN
6792 for ac_prog in dumpbin "link -dump"
6794 # Extract the first word of "$ac_prog", so it can be a program name with args.
6795 set dummy $ac_prog; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_DUMPBIN"; then
6802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6815 done
6816 done
6817 IFS=$as_save_IFS
6821 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6822 if test -n "$ac_ct_DUMPBIN"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6824 $as_echo "$ac_ct_DUMPBIN" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6831 test -n "$ac_ct_DUMPBIN" && break
6832 done
6834 if test "x$ac_ct_DUMPBIN" = x; then
6835 DUMPBIN=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 DUMPBIN=$ac_ct_DUMPBIN
6847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6848 *COFF*)
6849 DUMPBIN="$DUMPBIN -symbols"
6852 DUMPBIN=:
6854 esac
6857 if test "$DUMPBIN" != ":"; then
6858 NM="$DUMPBIN"
6861 test -z "$NM" && NM=nm
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6869 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6870 if test "${lt_cv_nm_interface+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 lt_cv_nm_interface="BSD nm"
6874 echo "int some_variable = 0;" > conftest.$ac_ext
6875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6876 (eval "$ac_compile" 2>conftest.err)
6877 cat conftest.err >&5
6878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6880 cat conftest.err >&5
6881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6882 cat conftest.out >&5
6883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6884 lt_cv_nm_interface="MS dumpbin"
6886 rm -f conftest*
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6889 $as_echo "$lt_cv_nm_interface" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6892 $as_echo_n "checking whether ln -s works... " >&6; }
6893 LN_S=$as_ln_s
6894 if test "$LN_S" = "ln -s"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6899 $as_echo "no, using $LN_S" >&6; }
6902 # find the maximum length of command line arguments
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6904 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6905 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6909 teststring="ABCD"
6911 case $build_os in
6912 msdosdjgpp*)
6913 # On DJGPP, this test can blow up pretty badly due to problems in libc
6914 # (any single argument exceeding 2000 bytes causes a buffer overrun
6915 # during glob expansion). Even if it were fixed, the result of this
6916 # check would be larger than it should be.
6917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6920 gnu*)
6921 # Under GNU Hurd, this test is not required because there is
6922 # no limit to the length of command line arguments.
6923 # Libtool will interpret -1 as no limit whatsoever
6924 lt_cv_sys_max_cmd_len=-1;
6927 cygwin* | mingw* | cegcc*)
6928 # On Win9x/ME, this test blows up -- it succeeds, but takes
6929 # about 5 minutes as the teststring grows exponentially.
6930 # Worse, since 9x/ME are not pre-emptively multitasking,
6931 # you end up with a "frozen" computer, even though with patience
6932 # the test eventually succeeds (with a max line length of 256k).
6933 # Instead, let's just punt: use the minimum linelength reported by
6934 # all of the supported platforms: 8192 (on NT/2K/XP).
6935 lt_cv_sys_max_cmd_len=8192;
6938 mint*)
6939 # On MiNT this can take a long time and run out of memory.
6940 lt_cv_sys_max_cmd_len=8192;
6943 amigaos*)
6944 # On AmigaOS with pdksh, this test takes hours, literally.
6945 # So we just punt and use a minimum line length of 8192.
6946 lt_cv_sys_max_cmd_len=8192;
6949 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6950 # This has been around since 386BSD, at least. Likely further.
6951 if test -x /sbin/sysctl; then
6952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6953 elif test -x /usr/sbin/sysctl; then
6954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6955 else
6956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6958 # And add a safety zone
6959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6963 interix*)
6964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6965 lt_cv_sys_max_cmd_len=196608
6968 osf*)
6969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6971 # nice to cause kernel panics so lets avoid the loop below.
6972 # First set a reasonable default.
6973 lt_cv_sys_max_cmd_len=16384
6975 if test -x /sbin/sysconfig; then
6976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6977 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6978 esac
6981 sco3.2v5*)
6982 lt_cv_sys_max_cmd_len=102400
6984 sysv5* | sco5v6* | sysv4.2uw2*)
6985 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6986 if test -n "$kargmax"; then
6987 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6988 else
6989 lt_cv_sys_max_cmd_len=32768
6993 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6994 if test -n "$lt_cv_sys_max_cmd_len"; then
6995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6997 else
6998 # Make teststring a little bigger before we do anything with it.
6999 # a 1K string should be a reasonable start.
7000 for i in 1 2 3 4 5 6 7 8 ; do
7001 teststring=$teststring$teststring
7002 done
7003 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7004 # If test is not a shell built-in, we'll probably end up computing a
7005 # maximum length that is only half of the actual maximum length, but
7006 # we can't tell.
7007 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7008 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7009 test $i != 17 # 1/2 MB should be enough
7011 i=`expr $i + 1`
7012 teststring=$teststring$teststring
7013 done
7014 # Only check the string length outside the loop.
7015 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7016 teststring=
7017 # Add a significant safety factor because C++ compilers can tack on
7018 # massive amounts of additional arguments before passing them to the
7019 # linker. It appears as though 1/2 is a usable value.
7020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7023 esac
7027 if test -n $lt_cv_sys_max_cmd_len ; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7032 $as_echo "none" >&6; }
7034 max_cmd_len=$lt_cv_sys_max_cmd_len
7041 : ${CP="cp -f"}
7042 : ${MV="mv -f"}
7043 : ${RM="rm -f"}
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7047 # Try some XSI features
7048 xsi_shell=no
7049 ( _lt_dummy="a/b/c"
7050 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7051 = c,a/b,, \
7052 && eval 'test $(( 1 + 1 )) -eq 2 \
7053 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7054 && xsi_shell=yes
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7056 $as_echo "$xsi_shell" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7060 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7061 lt_shell_append=no
7062 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7063 >/dev/null 2>&1 \
7064 && lt_shell_append=yes
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7066 $as_echo "$lt_shell_append" >&6; }
7069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7070 lt_unset=unset
7071 else
7072 lt_unset=false
7079 # test EBCDIC or ASCII
7080 case `echo X|tr X '\101'` in
7081 A) # ASCII based system
7082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7083 lt_SP2NL='tr \040 \012'
7084 lt_NL2SP='tr \015\012 \040\040'
7086 *) # EBCDIC based system
7087 lt_SP2NL='tr \100 \n'
7088 lt_NL2SP='tr \r\n \100\100'
7090 esac
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7101 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7102 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_ld_reload_flag='-r'
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7109 reload_flag=$lt_cv_ld_reload_flag
7110 case $reload_flag in
7111 "" | " "*) ;;
7112 *) reload_flag=" $reload_flag" ;;
7113 esac
7114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7115 case $host_os in
7116 darwin*)
7117 if test "$GCC" = yes; then
7118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7119 else
7120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7123 esac
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$OBJDUMP"; then
7142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 OBJDUMP=$ac_cv_prog_OBJDUMP
7162 if test -n "$OBJDUMP"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7164 $as_echo "$OBJDUMP" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7172 if test -z "$ac_cv_prog_OBJDUMP"; then
7173 ac_ct_OBJDUMP=$OBJDUMP
7174 # Extract the first word of "objdump", so it can be a program name with args.
7175 set dummy objdump; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$ac_ct_OBJDUMP"; then
7182 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7195 done
7196 done
7197 IFS=$as_save_IFS
7201 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7202 if test -n "$ac_ct_OBJDUMP"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7204 $as_echo "$ac_ct_OBJDUMP" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7210 if test "x$ac_ct_OBJDUMP" = x; then
7211 OBJDUMP="false"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 OBJDUMP=$ac_ct_OBJDUMP
7221 else
7222 OBJDUMP="$ac_cv_prog_OBJDUMP"
7225 test -z "$OBJDUMP" && OBJDUMP=objdump
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7236 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7237 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 lt_cv_file_magic_cmd='$MAGIC_CMD'
7241 lt_cv_file_magic_test_file=
7242 lt_cv_deplibs_check_method='unknown'
7243 # Need to set the preceding variable on all platforms that support
7244 # interlibrary dependencies.
7245 # 'none' -- dependencies not supported.
7246 # `unknown' -- same as none, but documents that we really don't know.
7247 # 'pass_all' -- all dependencies passed with no checks.
7248 # 'test_compile' -- check by making test program.
7249 # 'file_magic [[regex]]' -- check by looking for files in library path
7250 # which responds to the $file_magic_cmd with a given extended regex.
7251 # If you have `file' or equivalent on your system and you're not sure
7252 # whether `pass_all' will *always* work, you probably want this one.
7254 case $host_os in
7255 aix[4-9]*)
7256 lt_cv_deplibs_check_method=pass_all
7259 beos*)
7260 lt_cv_deplibs_check_method=pass_all
7263 bsdi[45]*)
7264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7265 lt_cv_file_magic_cmd='/usr/bin/file -L'
7266 lt_cv_file_magic_test_file=/shlib/libc.so
7269 cygwin*)
7270 # func_win32_libid is a shell function defined in ltmain.sh
7271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7272 lt_cv_file_magic_cmd='func_win32_libid'
7275 mingw* | pw32*)
7276 # Base MSYS/MinGW do not provide the 'file' command needed by
7277 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7278 # unless we find 'file', for example because we are cross-compiling.
7279 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7280 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7282 lt_cv_file_magic_cmd='func_win32_libid'
7283 else
7284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7285 lt_cv_file_magic_cmd='$OBJDUMP -f'
7289 cegcc*)
7290 # use the weaker test based on 'objdump'. See mingw*.
7291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7292 lt_cv_file_magic_cmd='$OBJDUMP -f'
7295 darwin* | rhapsody*)
7296 lt_cv_deplibs_check_method=pass_all
7299 freebsd* | dragonfly*)
7300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7301 case $host_cpu in
7302 i*86 )
7303 # Not sure whether the presence of OpenBSD here was a mistake.
7304 # Let's accept both of them until this is cleared up.
7305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7306 lt_cv_file_magic_cmd=/usr/bin/file
7307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7309 esac
7310 else
7311 lt_cv_deplibs_check_method=pass_all
7315 gnu*)
7316 lt_cv_deplibs_check_method=pass_all
7319 haiku*)
7320 lt_cv_deplibs_check_method=pass_all
7323 hpux10.20* | hpux11*)
7324 lt_cv_file_magic_cmd=/usr/bin/file
7325 case $host_cpu in
7326 ia64*)
7327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7330 hppa*64*)
7331 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]'
7332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7338 esac
7341 interix[3-9]*)
7342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7346 irix5* | irix6* | nonstopux*)
7347 case $LD in
7348 *-32|*"-32 ") libmagic=32-bit;;
7349 *-n32|*"-n32 ") libmagic=N32;;
7350 *-64|*"-64 ") libmagic=64-bit;;
7351 *) libmagic=never-match;;
7352 esac
7353 lt_cv_deplibs_check_method=pass_all
7356 # This must be Linux ELF.
7357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7358 lt_cv_deplibs_check_method=pass_all
7361 netbsd*)
7362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7364 else
7365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7369 newos6*)
7370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7371 lt_cv_file_magic_cmd=/usr/bin/file
7372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7375 *nto* | *qnx*)
7376 lt_cv_deplibs_check_method=pass_all
7379 openbsd*)
7380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7382 else
7383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7387 osf3* | osf4* | osf5*)
7388 lt_cv_deplibs_check_method=pass_all
7391 rdos*)
7392 lt_cv_deplibs_check_method=pass_all
7395 solaris*)
7396 lt_cv_deplibs_check_method=pass_all
7399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7400 lt_cv_deplibs_check_method=pass_all
7403 sysv4 | sysv4.3*)
7404 case $host_vendor in
7405 motorola)
7406 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]'
7407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7409 ncr)
7410 lt_cv_deplibs_check_method=pass_all
7412 sequent)
7413 lt_cv_file_magic_cmd='/bin/file'
7414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7416 sni)
7417 lt_cv_file_magic_cmd='/bin/file'
7418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7419 lt_cv_file_magic_test_file=/lib/libc.so
7421 siemens)
7422 lt_cv_deplibs_check_method=pass_all
7425 lt_cv_deplibs_check_method=pass_all
7427 esac
7430 tpf*)
7431 lt_cv_deplibs_check_method=pass_all
7433 esac
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7438 file_magic_cmd=$lt_cv_file_magic_cmd
7439 deplibs_check_method=$lt_cv_deplibs_check_method
7440 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7453 if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7455 set dummy ${ac_tool_prefix}ar; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if test "${ac_cv_prog_AR+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 if test -n "$AR"; then
7462 ac_cv_prog_AR="$AR" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_prog_AR="${ac_tool_prefix}ar"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7475 done
7476 done
7477 IFS=$as_save_IFS
7481 AR=$ac_cv_prog_AR
7482 if test -n "$AR"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7484 $as_echo "$AR" >&6; }
7485 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7492 if test -z "$ac_cv_prog_AR"; then
7493 ac_ct_AR=$AR
7494 # Extract the first word of "ar", so it can be a program name with args.
7495 set dummy ar; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$ac_ct_AR"; then
7502 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_ac_ct_AR="ar"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7515 done
7516 done
7517 IFS=$as_save_IFS
7521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7522 if test -n "$ac_ct_AR"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7524 $as_echo "$ac_ct_AR" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7530 if test "x$ac_ct_AR" = x; then
7531 AR="false"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534 yes:)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539 AR=$ac_ct_AR
7541 else
7542 AR="$ac_cv_prog_AR"
7545 test -z "$AR" && AR=ar
7546 test -z "$AR_FLAGS" && AR_FLAGS=cru
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}strip; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_STRIP+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$STRIP"; then
7567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7580 done
7581 done
7582 IFS=$as_save_IFS
7586 STRIP=$ac_cv_prog_STRIP
7587 if test -n "$STRIP"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7589 $as_echo "$STRIP" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_STRIP"; then
7598 ac_ct_STRIP=$STRIP
7599 # Extract the first word of "strip", so it can be a program name with args.
7600 set dummy strip; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_STRIP"; then
7607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_STRIP="strip"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7620 done
7621 done
7622 IFS=$as_save_IFS
7626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7627 if test -n "$ac_ct_STRIP"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7629 $as_echo "$ac_ct_STRIP" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_STRIP" = x; then
7636 STRIP=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 STRIP=$ac_ct_STRIP
7646 else
7647 STRIP="$ac_cv_prog_STRIP"
7650 test -z "$STRIP" && STRIP=:
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$RANLIB"; then
7666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 RANLIB=$ac_cv_prog_RANLIB
7686 if test -n "$RANLIB"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7688 $as_echo "$RANLIB" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_RANLIB"; then
7697 ac_ct_RANLIB=$RANLIB
7698 # Extract the first word of "ranlib", so it can be a program name with args.
7699 set dummy ranlib; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$ac_ct_RANLIB"; then
7706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_RANLIB="ranlib"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7726 if test -n "$ac_ct_RANLIB"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7728 $as_echo "$ac_ct_RANLIB" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_RANLIB" = x; then
7735 RANLIB=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 RANLIB=$ac_ct_RANLIB
7745 else
7746 RANLIB="$ac_cv_prog_RANLIB"
7749 test -z "$RANLIB" && RANLIB=:
7756 # Determine commands to create old-style static archives.
7757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7758 old_postinstall_cmds='chmod 644 $oldlib'
7759 old_postuninstall_cmds=
7761 if test -n "$RANLIB"; then
7762 case $host_os in
7763 openbsd*)
7764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7769 esac
7770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7773 case $host_os in
7774 darwin*)
7775 lock_old_archive_extraction=yes ;;
7777 lock_old_archive_extraction=no ;;
7778 esac
7818 # If no C compiler was specified, use CC.
7819 LTCC=${LTCC-"$CC"}
7821 # If no C compiler flags were specified, use CFLAGS.
7822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7824 # Allow CC to be a program name with arguments.
7825 compiler=$CC
7828 # Check for command to grab the raw symbol name followed by C symbol from nm.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7831 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7835 # These are sane defaults that work on at least a few old systems.
7836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7838 # Character class describing NM global symbol codes.
7839 symcode='[BCDEGRST]'
7841 # Regexp to match symbols that can be accessed directly from C.
7842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7844 # Define system-specific variables.
7845 case $host_os in
7846 aix*)
7847 symcode='[BCDT]'
7849 cygwin* | mingw* | pw32* | cegcc*)
7850 symcode='[ABCDGISTW]'
7852 hpux*)
7853 if test "$host_cpu" = ia64; then
7854 symcode='[ABCDEGRST]'
7857 irix* | nonstopux*)
7858 symcode='[BCDEGRST]'
7860 osf*)
7861 symcode='[BCDEGQRST]'
7863 solaris*)
7864 symcode='[BDRT]'
7866 sco3.2v5*)
7867 symcode='[DT]'
7869 sysv4.2uw2*)
7870 symcode='[DT]'
7872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7873 symcode='[ABDT]'
7875 sysv4)
7876 symcode='[DFNSTU]'
7878 esac
7880 # If we're using GNU nm, then use its standard symbol codes.
7881 case `$NM -V 2>&1` in
7882 *GNU* | *'with BFD'*)
7883 symcode='[ABCDGIRSTW]' ;;
7884 esac
7886 # Transform an extracted symbol line into a proper C declaration.
7887 # Some systems (esp. on ia64) link data and code symbols differently,
7888 # so use this general approach.
7889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7891 # Transform an extracted symbol line into symbol name and symbol address
7892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7893 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'"
7895 # Handle CRLF in mingw tool chain
7896 opt_cr=
7897 case $build_os in
7898 mingw*)
7899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7901 esac
7903 # Try without a prefix underscore, then with it.
7904 for ac_symprfx in "" "_"; do
7906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7907 symxfrm="\\1 $ac_symprfx\\2 \\2"
7909 # Write the raw and C identifiers.
7910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7911 # Fake it for dumpbin and say T for any non-static function
7912 # and D for any global variable.
7913 # Also find C++ and __fastcall symbols from MSVC++,
7914 # which start with @ or ?.
7915 lt_cv_sys_global_symbol_pipe="$AWK '"\
7916 " {last_section=section; section=\$ 3};"\
7917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7918 " \$ 0!~/External *\|/{next};"\
7919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7920 " {if(hide[section]) next};"\
7921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7925 " ' prfx=^$ac_symprfx"
7926 else
7927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7930 # Check to see that the pipe works correctly.
7931 pipe_works=no
7933 rm -f conftest*
7934 cat > conftest.$ac_ext <<_LT_EOF
7935 #ifdef __cplusplus
7936 extern "C" {
7937 #endif
7938 char nm_test_var;
7939 void nm_test_func(void);
7940 void nm_test_func(void){}
7941 #ifdef __cplusplus
7943 #endif
7944 int main(){nm_test_var='a';nm_test_func();return(0);}
7945 _LT_EOF
7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7948 (eval $ac_compile) 2>&5
7949 ac_status=$?
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; }; then
7952 # Now try to grab the symbols.
7953 nlist=conftest.nm
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7955 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; } && test -s "$nlist"; then
7959 # Try sorting and uniquifying the output.
7960 if sort "$nlist" | uniq > "$nlist"T; then
7961 mv -f "$nlist"T "$nlist"
7962 else
7963 rm -f "$nlist"T
7966 # Make sure that we snagged all the symbols we need.
7967 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7968 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7969 cat <<_LT_EOF > conftest.$ac_ext
7970 #ifdef __cplusplus
7971 extern "C" {
7972 #endif
7974 _LT_EOF
7975 # Now generate the symbol file.
7976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7978 cat <<_LT_EOF >> conftest.$ac_ext
7980 /* The mapping between symbol names and symbols. */
7981 const struct {
7982 const char *name;
7983 void *address;
7985 lt__PROGRAM__LTX_preloaded_symbols[] =
7987 { "@PROGRAM@", (void *) 0 },
7988 _LT_EOF
7989 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7990 cat <<\_LT_EOF >> conftest.$ac_ext
7991 {0, (void *) 0}
7994 /* This works around a problem in FreeBSD linker */
7995 #ifdef FREEBSD_WORKAROUND
7996 static const void *lt_preloaded_setup() {
7997 return lt__PROGRAM__LTX_preloaded_symbols;
7999 #endif
8001 #ifdef __cplusplus
8003 #endif
8004 _LT_EOF
8005 # Now try linking the two files.
8006 mv conftest.$ac_objext conftstm.$ac_objext
8007 lt_save_LIBS="$LIBS"
8008 lt_save_CFLAGS="$CFLAGS"
8009 LIBS="conftstm.$ac_objext"
8010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8012 (eval $ac_link) 2>&5
8013 ac_status=$?
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8016 pipe_works=yes
8018 LIBS="$lt_save_LIBS"
8019 CFLAGS="$lt_save_CFLAGS"
8020 else
8021 echo "cannot find nm_test_func in $nlist" >&5
8023 else
8024 echo "cannot find nm_test_var in $nlist" >&5
8026 else
8027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8029 else
8030 echo "$progname: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8033 rm -rf conftest* conftst*
8035 # Do not use the global_symbol_pipe unless it works.
8036 if test "$pipe_works" = yes; then
8037 break
8038 else
8039 lt_cv_sys_global_symbol_pipe=
8041 done
8045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8046 lt_cv_sys_global_symbol_to_cdecl=
8048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8050 $as_echo "failed" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8053 $as_echo "ok" >&6; }
8077 # Check whether --enable-libtool-lock was given.
8078 if test "${enable_libtool_lock+set}" = set; then :
8079 enableval=$enable_libtool_lock;
8082 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8084 # Some flags need to be propagated to the compiler or linker for good
8085 # libtool support.
8086 case $host in
8087 ia64-*-hpux*)
8088 # Find out which ABI we are using.
8089 echo 'int i;' > conftest.$ac_ext
8090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8091 (eval $ac_compile) 2>&5
8092 ac_status=$?
8093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; }; then
8095 case `/usr/bin/file conftest.$ac_objext` in
8096 *ELF-32*)
8097 HPUX_IA64_MODE="32"
8099 *ELF-64*)
8100 HPUX_IA64_MODE="64"
8102 esac
8104 rm -rf conftest*
8106 *-*-irix6*)
8107 # Find out which ABI we are using.
8108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8110 (eval $ac_compile) 2>&5
8111 ac_status=$?
8112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113 test $ac_status = 0; }; then
8114 if test "$lt_cv_prog_gnu_ld" = yes; then
8115 case `/usr/bin/file conftest.$ac_objext` in
8116 *32-bit*)
8117 LD="${LD-ld} -melf32bsmip"
8119 *N32*)
8120 LD="${LD-ld} -melf32bmipn32"
8122 *64-bit*)
8123 LD="${LD-ld} -melf64bmip"
8125 esac
8126 else
8127 case `/usr/bin/file conftest.$ac_objext` in
8128 *32-bit*)
8129 LD="${LD-ld} -32"
8131 *N32*)
8132 LD="${LD-ld} -n32"
8134 *64-bit*)
8135 LD="${LD-ld} -64"
8137 esac
8140 rm -rf conftest*
8143 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8144 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8145 # Find out which ABI we are using.
8146 echo 'int i;' > conftest.$ac_ext
8147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8148 (eval $ac_compile) 2>&5
8149 ac_status=$?
8150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8151 test $ac_status = 0; }; then
8152 case `/usr/bin/file conftest.o` in
8153 *32-bit*)
8154 case $host in
8155 x86_64-*kfreebsd*-gnu)
8156 LD="${LD-ld} -m elf_i386_fbsd"
8158 x86_64-*linux*)
8159 case `/usr/bin/file conftest.o` in
8160 *x86-64*)
8161 LD="${LD-ld} -m elf32_x86_64"
8164 LD="${LD-ld} -m elf_i386"
8166 esac
8168 powerpc64le-*linux*)
8169 LD="${LD-ld} -m elf32lppclinux"
8171 powerpc64-*linux*)
8172 LD="${LD-ld} -m elf32ppclinux"
8174 s390x-*linux*)
8175 LD="${LD-ld} -m elf_s390"
8177 sparc64-*linux*)
8178 LD="${LD-ld} -m elf32_sparc"
8180 esac
8182 *64-bit*)
8183 case $host in
8184 x86_64-*kfreebsd*-gnu)
8185 LD="${LD-ld} -m elf_x86_64_fbsd"
8187 x86_64-*linux*)
8188 LD="${LD-ld} -m elf_x86_64"
8190 powerpcle-*linux*)
8191 LD="${LD-ld} -m elf64lppc"
8193 powerpc-*linux*)
8194 LD="${LD-ld} -m elf64ppc"
8196 s390*-*linux*|s390*-*tpf*)
8197 LD="${LD-ld} -m elf64_s390"
8199 sparc*-*linux*)
8200 LD="${LD-ld} -m elf64_sparc"
8202 esac
8204 esac
8206 rm -rf conftest*
8209 *-*-sco3.2v5*)
8210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8211 SAVE_CFLAGS="$CFLAGS"
8212 CFLAGS="$CFLAGS -belf"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8214 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8215 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 ac_ext=c
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224 if test x$gcc_no_link = xyes; then
8225 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8231 main ()
8235 return 0;
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_cc_needs_belf=yes
8240 else
8241 lt_cv_cc_needs_belf=no
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 ac_ext=c
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8253 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8254 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8256 CFLAGS="$SAVE_CFLAGS"
8259 sparc*-*solaris*)
8260 # Find out which ABI we are using.
8261 echo 'int i;' > conftest.$ac_ext
8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263 (eval $ac_compile) 2>&5
8264 ac_status=$?
8265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; }; then
8267 case `/usr/bin/file conftest.o` in
8268 *64-bit*)
8269 case $lt_cv_prog_gnu_ld in
8270 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8272 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8273 LD="${LD-ld} -64"
8276 esac
8278 esac
8280 rm -rf conftest*
8282 esac
8284 need_locks="$enable_libtool_lock"
8287 case $host_os in
8288 rhapsody* | darwin*)
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$DSYMUTIL"; then
8298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8317 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8318 if test -n "$DSYMUTIL"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8320 $as_echo "$DSYMUTIL" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test -z "$ac_cv_prog_DSYMUTIL"; then
8329 ac_ct_DSYMUTIL=$DSYMUTIL
8330 # Extract the first word of "dsymutil", so it can be a program name with args.
8331 set dummy dsymutil; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$ac_ct_DSYMUTIL"; then
8338 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8357 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8358 if test -n "$ac_ct_DSYMUTIL"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8360 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8366 if test "x$ac_ct_DSYMUTIL" = x; then
8367 DSYMUTIL=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 DSYMUTIL=$ac_ct_DSYMUTIL
8377 else
8378 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8381 if test -n "$ac_tool_prefix"; then
8382 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8383 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$NMEDIT"; then
8390 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8409 NMEDIT=$ac_cv_prog_NMEDIT
8410 if test -n "$NMEDIT"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8412 $as_echo "$NMEDIT" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test -z "$ac_cv_prog_NMEDIT"; then
8421 ac_ct_NMEDIT=$NMEDIT
8422 # Extract the first word of "nmedit", so it can be a program name with args.
8423 set dummy nmedit; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$ac_ct_NMEDIT"; then
8430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8450 if test -n "$ac_ct_NMEDIT"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8452 $as_echo "$ac_ct_NMEDIT" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8458 if test "x$ac_ct_NMEDIT" = x; then
8459 NMEDIT=":"
8460 else
8461 case $cross_compiling:$ac_tool_warned in
8462 yes:)
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8465 ac_tool_warned=yes ;;
8466 esac
8467 NMEDIT=$ac_ct_NMEDIT
8469 else
8470 NMEDIT="$ac_cv_prog_NMEDIT"
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_prog_LIPO+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 if test -n "$LIPO"; then
8482 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8501 LIPO=$ac_cv_prog_LIPO
8502 if test -n "$LIPO"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8504 $as_echo "$LIPO" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8512 if test -z "$ac_cv_prog_LIPO"; then
8513 ac_ct_LIPO=$LIPO
8514 # Extract the first word of "lipo", so it can be a program name with args.
8515 set dummy lipo; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$ac_ct_LIPO"; then
8522 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_ac_ct_LIPO="lipo"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8541 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8542 if test -n "$ac_ct_LIPO"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8544 $as_echo "$ac_ct_LIPO" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8550 if test "x$ac_ct_LIPO" = x; then
8551 LIPO=":"
8552 else
8553 case $cross_compiling:$ac_tool_warned in
8554 yes:)
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557 ac_tool_warned=yes ;;
8558 esac
8559 LIPO=$ac_ct_LIPO
8561 else
8562 LIPO="$ac_cv_prog_LIPO"
8565 if test -n "$ac_tool_prefix"; then
8566 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8567 set dummy ${ac_tool_prefix}otool; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 if test -n "$OTOOL"; then
8574 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8575 else
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8583 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8587 done
8588 done
8589 IFS=$as_save_IFS
8593 OTOOL=$ac_cv_prog_OTOOL
8594 if test -n "$OTOOL"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8596 $as_echo "$OTOOL" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8604 if test -z "$ac_cv_prog_OTOOL"; then
8605 ac_ct_OTOOL=$OTOOL
8606 # Extract the first word of "otool", so it can be a program name with args.
8607 set dummy otool; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 if test -n "$ac_ct_OTOOL"; then
8614 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8623 ac_cv_prog_ac_ct_OTOOL="otool"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8627 done
8628 done
8629 IFS=$as_save_IFS
8633 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8634 if test -n "$ac_ct_OTOOL"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8636 $as_echo "$ac_ct_OTOOL" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8642 if test "x$ac_ct_OTOOL" = x; then
8643 OTOOL=":"
8644 else
8645 case $cross_compiling:$ac_tool_warned in
8646 yes:)
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8649 ac_tool_warned=yes ;;
8650 esac
8651 OTOOL=$ac_ct_OTOOL
8653 else
8654 OTOOL="$ac_cv_prog_OTOOL"
8657 if test -n "$ac_tool_prefix"; then
8658 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8659 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 $as_echo_n "checking for $ac_word... " >&6; }
8662 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 if test -n "$OTOOL64"; then
8666 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8667 else
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8675 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8679 done
8680 done
8681 IFS=$as_save_IFS
8685 OTOOL64=$ac_cv_prog_OTOOL64
8686 if test -n "$OTOOL64"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8688 $as_echo "$OTOOL64" >&6; }
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8696 if test -z "$ac_cv_prog_OTOOL64"; then
8697 ac_ct_OTOOL64=$OTOOL64
8698 # Extract the first word of "otool64", so it can be a program name with args.
8699 set dummy otool64; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 if test -n "$ac_ct_OTOOL64"; then
8706 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_prog_ac_ct_OTOOL64="otool64"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8719 done
8720 done
8721 IFS=$as_save_IFS
8725 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8726 if test -n "$ac_ct_OTOOL64"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8728 $as_echo "$ac_ct_OTOOL64" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8734 if test "x$ac_ct_OTOOL64" = x; then
8735 OTOOL64=":"
8736 else
8737 case $cross_compiling:$ac_tool_warned in
8738 yes:)
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8741 ac_tool_warned=yes ;;
8742 esac
8743 OTOOL64=$ac_ct_OTOOL64
8745 else
8746 OTOOL64="$ac_cv_prog_OTOOL64"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8776 $as_echo_n "checking for -single_module linker flag... " >&6; }
8777 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 lt_cv_apple_cc_single_mod=no
8781 if test -z "${LT_MULTI_MODULE}"; then
8782 # By default we will add the -single_module flag. You can override
8783 # by either setting the environment variable LT_MULTI_MODULE
8784 # non-empty at configure time, or by adding -multi_module to the
8785 # link flags.
8786 rm -rf libconftest.dylib*
8787 echo "int foo(void){return 1;}" > conftest.c
8788 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8789 -dynamiclib -Wl,-single_module conftest.c" >&5
8790 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8791 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8792 _lt_result=$?
8793 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8794 lt_cv_apple_cc_single_mod=yes
8795 else
8796 cat conftest.err >&5
8798 rm -rf libconftest.dylib*
8799 rm -f conftest.*
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8803 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8806 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 lt_cv_ld_exported_symbols_list=no
8810 save_LDFLAGS=$LDFLAGS
8811 echo "_main" > conftest.sym
8812 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8813 if test x$gcc_no_link = xyes; then
8814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8820 main ()
8824 return 0;
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828 lt_cv_ld_exported_symbols_list=yes
8829 else
8830 lt_cv_ld_exported_symbols_list=no
8832 rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 LDFLAGS="$save_LDFLAGS"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8838 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8840 $as_echo_n "checking for -force_load linker flag... " >&6; }
8841 if test "${lt_cv_ld_force_load+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 lt_cv_ld_force_load=no
8845 cat > conftest.c << _LT_EOF
8846 int forced_loaded() { return 2;}
8847 _LT_EOF
8848 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8849 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8850 echo "$AR cru libconftest.a conftest.o" >&5
8851 $AR cru libconftest.a conftest.o 2>&5
8852 cat > conftest.c << _LT_EOF
8853 int main() { return 0;}
8854 _LT_EOF
8855 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8856 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8857 _lt_result=$?
8858 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8859 lt_cv_ld_force_load=yes
8860 else
8861 cat conftest.err >&5
8863 rm -f conftest.err libconftest.a conftest conftest.c
8864 rm -rf conftest.dSYM
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8868 $as_echo "$lt_cv_ld_force_load" >&6; }
8869 case $host_os in
8870 rhapsody* | darwin1.[012])
8871 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8872 darwin1.*)
8873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8874 darwin*) # darwin 5.x on
8875 # if running on 10.5 or later, the deployment target defaults
8876 # to the OS version, if on x86, and 10.4, the deployment
8877 # target defaults to 10.4. Don't you love it?
8878 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8879 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8881 10.[012][,.]*)
8882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8883 10.*)
8884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8885 esac
8887 esac
8888 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8889 _lt_dar_single_mod='$single_module'
8891 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8892 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8893 else
8894 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8896 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8897 _lt_dsymutil='~$DSYMUTIL $lib || :'
8898 else
8899 _lt_dsymutil=
8902 esac
8904 for ac_header in dlfcn.h
8905 do :
8906 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8908 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define HAVE_DLFCN_H 1
8911 _ACEOF
8915 done
8921 # Set options
8926 enable_win32_dll=no
8929 # Check whether --enable-shared was given.
8930 if test "${enable_shared+set}" = set; then :
8931 enableval=$enable_shared; p=${PACKAGE-default}
8932 case $enableval in
8933 yes) enable_shared=yes ;;
8934 no) enable_shared=no ;;
8936 enable_shared=no
8937 # Look at the argument we got. We use all the common list separators.
8938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8939 for pkg in $enableval; do
8940 IFS="$lt_save_ifs"
8941 if test "X$pkg" = "X$p"; then
8942 enable_shared=yes
8944 done
8945 IFS="$lt_save_ifs"
8947 esac
8948 else
8949 enable_shared=yes
8960 # Check whether --enable-static was given.
8961 if test "${enable_static+set}" = set; then :
8962 enableval=$enable_static; p=${PACKAGE-default}
8963 case $enableval in
8964 yes) enable_static=yes ;;
8965 no) enable_static=no ;;
8967 enable_static=no
8968 # Look at the argument we got. We use all the common list separators.
8969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970 for pkg in $enableval; do
8971 IFS="$lt_save_ifs"
8972 if test "X$pkg" = "X$p"; then
8973 enable_static=yes
8975 done
8976 IFS="$lt_save_ifs"
8978 esac
8979 else
8980 enable_static=yes
8992 # Check whether --with-pic was given.
8993 if test "${with_pic+set}" = set; then :
8994 withval=$with_pic; pic_mode="$withval"
8995 else
8996 pic_mode=default
9000 test -z "$pic_mode" && pic_mode=default
9008 # Check whether --enable-fast-install was given.
9009 if test "${enable_fast_install+set}" = set; then :
9010 enableval=$enable_fast_install; p=${PACKAGE-default}
9011 case $enableval in
9012 yes) enable_fast_install=yes ;;
9013 no) enable_fast_install=no ;;
9015 enable_fast_install=no
9016 # Look at the argument we got. We use all the common list separators.
9017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9018 for pkg in $enableval; do
9019 IFS="$lt_save_ifs"
9020 if test "X$pkg" = "X$p"; then
9021 enable_fast_install=yes
9023 done
9024 IFS="$lt_save_ifs"
9026 esac
9027 else
9028 enable_fast_install=yes
9041 # This can be used to rebuild libtool when needed
9042 LIBTOOL_DEPS="$ltmain"
9044 # Always use our own libtool.
9045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9072 test -z "$LN_S" && LN_S="ln -s"
9087 if test -n "${ZSH_VERSION+set}" ; then
9088 setopt NO_GLOB_SUBST
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9092 $as_echo_n "checking for objdir... " >&6; }
9093 if test "${lt_cv_objdir+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 rm -f .libs 2>/dev/null
9097 mkdir .libs 2>/dev/null
9098 if test -d .libs; then
9099 lt_cv_objdir=.libs
9100 else
9101 # MS-DOS does not allow filenames that begin with a dot.
9102 lt_cv_objdir=_libs
9104 rmdir .libs 2>/dev/null
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9107 $as_echo "$lt_cv_objdir" >&6; }
9108 objdir=$lt_cv_objdir
9114 cat >>confdefs.h <<_ACEOF
9115 #define LT_OBJDIR "$lt_cv_objdir/"
9116 _ACEOF
9121 case $host_os in
9122 aix3*)
9123 # AIX sometimes has problems with the GCC collect2 program. For some
9124 # reason, if we set the COLLECT_NAMES environment variable, the problems
9125 # vanish in a puff of smoke.
9126 if test "X${COLLECT_NAMES+set}" != Xset; then
9127 COLLECT_NAMES=
9128 export COLLECT_NAMES
9131 esac
9133 # Global variables:
9134 ofile=libtool
9135 can_build_shared=yes
9137 # All known linkers require a `.a' archive for static linking (except MSVC,
9138 # which needs '.lib').
9139 libext=a
9141 with_gnu_ld="$lt_cv_prog_gnu_ld"
9143 old_CC="$CC"
9144 old_CFLAGS="$CFLAGS"
9146 # Set sane defaults for various variables
9147 test -z "$CC" && CC=cc
9148 test -z "$LTCC" && LTCC=$CC
9149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9150 test -z "$LD" && LD=ld
9151 test -z "$ac_objext" && ac_objext=o
9153 for cc_temp in $compiler""; do
9154 case $cc_temp in
9155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9157 \-*) ;;
9158 *) break;;
9159 esac
9160 done
9161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9164 # Only perform the check for file, if the check method requires it
9165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9166 case $deplibs_check_method in
9167 file_magic*)
9168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 case $MAGIC_CMD in
9175 [\\/*] | ?:[\\/]*)
9176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9179 lt_save_MAGIC_CMD="$MAGIC_CMD"
9180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9182 for ac_dir in $ac_dummy; do
9183 IFS="$lt_save_ifs"
9184 test -z "$ac_dir" && ac_dir=.
9185 if test -f $ac_dir/${ac_tool_prefix}file; then
9186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9187 if test -n "$file_magic_test_file"; then
9188 case $deplibs_check_method in
9189 "file_magic "*)
9190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9193 $EGREP "$file_magic_regex" > /dev/null; then
9195 else
9196 cat <<_LT_EOF 1>&2
9198 *** Warning: the command libtool uses to detect shared libraries,
9199 *** $file_magic_cmd, produces output that libtool cannot recognize.
9200 *** The result is that libtool may fail to recognize shared libraries
9201 *** as such. This will affect the creation of libtool libraries that
9202 *** depend on shared libraries, but programs linked with such libtool
9203 *** libraries will work regardless of this problem. Nevertheless, you
9204 *** may want to report the problem to your system manager and/or to
9205 *** bug-libtool@gnu.org
9207 _LT_EOF
9208 fi ;;
9209 esac
9211 break
9213 done
9214 IFS="$lt_save_ifs"
9215 MAGIC_CMD="$lt_save_MAGIC_CMD"
9217 esac
9220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9221 if test -n "$MAGIC_CMD"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9223 $as_echo "$MAGIC_CMD" >&6; }
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9233 if test -z "$lt_cv_path_MAGIC_CMD"; then
9234 if test -n "$ac_tool_prefix"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9236 $as_echo_n "checking for file... " >&6; }
9237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 case $MAGIC_CMD in
9241 [\\/*] | ?:[\\/]*)
9242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9245 lt_save_MAGIC_CMD="$MAGIC_CMD"
9246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9248 for ac_dir in $ac_dummy; do
9249 IFS="$lt_save_ifs"
9250 test -z "$ac_dir" && ac_dir=.
9251 if test -f $ac_dir/file; then
9252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9253 if test -n "$file_magic_test_file"; then
9254 case $deplibs_check_method in
9255 "file_magic "*)
9256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9259 $EGREP "$file_magic_regex" > /dev/null; then
9261 else
9262 cat <<_LT_EOF 1>&2
9264 *** Warning: the command libtool uses to detect shared libraries,
9265 *** $file_magic_cmd, produces output that libtool cannot recognize.
9266 *** The result is that libtool may fail to recognize shared libraries
9267 *** as such. This will affect the creation of libtool libraries that
9268 *** depend on shared libraries, but programs linked with such libtool
9269 *** libraries will work regardless of this problem. Nevertheless, you
9270 *** may want to report the problem to your system manager and/or to
9271 *** bug-libtool@gnu.org
9273 _LT_EOF
9274 fi ;;
9275 esac
9277 break
9279 done
9280 IFS="$lt_save_ifs"
9281 MAGIC_CMD="$lt_save_MAGIC_CMD"
9283 esac
9286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9287 if test -n "$MAGIC_CMD"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9289 $as_echo "$MAGIC_CMD" >&6; }
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9296 else
9297 MAGIC_CMD=:
9303 esac
9305 # Use C for the default configuration in the libtool script
9307 lt_save_CC="$CC"
9308 ac_ext=c
9309 ac_cpp='$CPP $CPPFLAGS'
9310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9315 # Source file extension for C test sources.
9316 ac_ext=c
9318 # Object file extension for compiled C test sources.
9319 objext=o
9320 objext=$objext
9322 # Code to be used in simple compile tests
9323 lt_simple_compile_test_code="int some_variable = 0;"
9325 # Code to be used in simple link tests
9326 lt_simple_link_test_code='int main(){return(0);}'
9334 # If no C compiler was specified, use CC.
9335 LTCC=${LTCC-"$CC"}
9337 # If no C compiler flags were specified, use CFLAGS.
9338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9340 # Allow CC to be a program name with arguments.
9341 compiler=$CC
9343 # Save the default compiler, since it gets overwritten when the other
9344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9345 compiler_DEFAULT=$CC
9347 # save warnings/boilerplate of simple test code
9348 ac_outfile=conftest.$ac_objext
9349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9351 _lt_compiler_boilerplate=`cat conftest.err`
9352 $RM conftest*
9354 ac_outfile=conftest.$ac_objext
9355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9357 _lt_linker_boilerplate=`cat conftest.err`
9358 $RM -r conftest*
9361 ## CAVEAT EMPTOR:
9362 ## There is no encapsulation within the following macros, do not change
9363 ## the running order or otherwise move them around unless you know exactly
9364 ## what you are doing...
9365 if test -n "$compiler"; then
9367 lt_prog_compiler_no_builtin_flag=
9369 if test "$GCC" = yes; then
9370 case $cc_basename in
9371 nvcc*)
9372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9375 esac
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 lt_cv_prog_compiler_rtti_exceptions=no
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9385 lt_compiler_flag="-fno-rtti -fno-exceptions"
9386 # Insert the option either (1) after the last *FLAGS variable, or
9387 # (2) before a word containing "conftest.", or (3) at the end.
9388 # Note that $ac_compile itself does not contain backslashes and begins
9389 # with a dollar sign (not a hyphen), so the echo should work correctly.
9390 # The option is referenced via a variable to avoid confusing sed.
9391 lt_compile=`echo "$ac_compile" | $SED \
9392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9394 -e 's:$: $lt_compiler_flag:'`
9395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9396 (eval "$lt_compile" 2>conftest.err)
9397 ac_status=$?
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 if (exit $ac_status) && test -s "$ac_outfile"; then
9401 # The compiler can only warn and ignore the option if not recognized
9402 # So say no if there are warnings other than the usual output.
9403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9406 lt_cv_prog_compiler_rtti_exceptions=yes
9409 $RM conftest*
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9417 else
9428 lt_prog_compiler_wl=
9429 lt_prog_compiler_pic=
9430 lt_prog_compiler_static=
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9433 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9435 if test "$GCC" = yes; then
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_static='-static'
9439 case $host_os in
9440 aix*)
9441 # All AIX code is PIC.
9442 if test "$host_cpu" = ia64; then
9443 # AIX 5 now supports IA64 processor
9444 lt_prog_compiler_static='-Bstatic'
9446 lt_prog_compiler_pic='-fPIC'
9449 amigaos*)
9450 case $host_cpu in
9451 powerpc)
9452 # see comment about AmigaOS4 .so support
9453 lt_prog_compiler_pic='-fPIC'
9455 m68k)
9456 # FIXME: we need at least 68020 code to build shared libraries, but
9457 # adding the `-m68020' flag to GCC prevents building anything better,
9458 # like `-m68040'.
9459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9461 esac
9464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9465 # PIC is the default for these OSes.
9468 mingw* | cygwin* | pw32* | os2* | cegcc*)
9469 # This hack is so that the source file can tell whether it is being
9470 # built for inclusion in a dll (and should export symbols for example).
9471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9472 # (--disable-auto-import) libraries
9473 lt_prog_compiler_pic='-DDLL_EXPORT'
9476 darwin* | rhapsody*)
9477 # PIC is the default on this platform
9478 # Common symbols not allowed in MH_DYLIB files
9479 lt_prog_compiler_pic='-fno-common'
9482 haiku*)
9483 # PIC is the default for Haiku.
9484 # The "-static" flag exists, but is broken.
9485 lt_prog_compiler_static=
9488 hpux*)
9489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9491 # sets the default TLS model and affects inlining.
9492 case $host_cpu in
9493 hppa*64*)
9494 # +Z the default
9497 lt_prog_compiler_pic='-fPIC'
9499 esac
9502 interix[3-9]*)
9503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9504 # Instead, we relocate shared libraries at runtime.
9507 msdosdjgpp*)
9508 # Just because we use GCC doesn't mean we suddenly get shared libraries
9509 # on systems that don't support them.
9510 lt_prog_compiler_can_build_shared=no
9511 enable_shared=no
9514 *nto* | *qnx*)
9515 # QNX uses GNU C++, but need to define -shared option too, otherwise
9516 # it will coredump.
9517 lt_prog_compiler_pic='-fPIC -shared'
9520 sysv4*MP*)
9521 if test -d /usr/nec; then
9522 lt_prog_compiler_pic=-Kconform_pic
9527 lt_prog_compiler_pic='-fPIC'
9529 esac
9531 case $cc_basename in
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 lt_prog_compiler_wl='-Xlinker '
9534 lt_prog_compiler_pic='-Xcompiler -fPIC'
9536 esac
9537 else
9538 # PORTME Check for flag to pass linker flags through the system compiler.
9539 case $host_os in
9540 aix*)
9541 lt_prog_compiler_wl='-Wl,'
9542 if test "$host_cpu" = ia64; then
9543 # AIX 5 now supports IA64 processor
9544 lt_prog_compiler_static='-Bstatic'
9545 else
9546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9550 mingw* | cygwin* | pw32* | os2* | cegcc*)
9551 # This hack is so that the source file can tell whether it is being
9552 # built for inclusion in a dll (and should export symbols for example).
9553 lt_prog_compiler_pic='-DDLL_EXPORT'
9556 hpux9* | hpux10* | hpux11*)
9557 lt_prog_compiler_wl='-Wl,'
9558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9559 # not for PA HP-UX.
9560 case $host_cpu in
9561 hppa*64*|ia64*)
9562 # +Z the default
9565 lt_prog_compiler_pic='+Z'
9567 esac
9568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9569 lt_prog_compiler_static='${wl}-a ${wl}archive'
9572 irix5* | irix6* | nonstopux*)
9573 lt_prog_compiler_wl='-Wl,'
9574 # PIC (with -KPIC) is the default.
9575 lt_prog_compiler_static='-non_shared'
9578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9579 case $cc_basename in
9580 # old Intel for x86_64 which still supported -KPIC.
9581 ecc*)
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_pic='-KPIC'
9584 lt_prog_compiler_static='-static'
9586 # icc used to be incompatible with GCC.
9587 # ICC 10 doesn't accept -KPIC any more.
9588 icc* | ifort*)
9589 lt_prog_compiler_wl='-Wl,'
9590 lt_prog_compiler_pic='-fPIC'
9591 lt_prog_compiler_static='-static'
9593 # Lahey Fortran 8.1.
9594 lf95*)
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='--shared'
9597 lt_prog_compiler_static='--static'
9599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9600 # Portland Group compilers (*not* the Pentium gcc compiler,
9601 # which looks to be a dead project)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-fpic'
9604 lt_prog_compiler_static='-Bstatic'
9606 ccc*)
9607 lt_prog_compiler_wl='-Wl,'
9608 # All Alpha code is PIC.
9609 lt_prog_compiler_static='-non_shared'
9611 xl* | bgxl* | bgf* | mpixl*)
9612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-qpic'
9615 lt_prog_compiler_static='-qstaticlink'
9618 case `$CC -V 2>&1 | sed 5q` in
9619 *Sun\ F* | *Sun*Fortran*)
9620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9621 lt_prog_compiler_pic='-KPIC'
9622 lt_prog_compiler_static='-Bstatic'
9623 lt_prog_compiler_wl=''
9625 *Sun\ C*)
9626 # Sun C 5.9
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 lt_prog_compiler_wl='-Wl,'
9631 esac
9633 esac
9636 newsos6)
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-Bstatic'
9641 *nto* | *qnx*)
9642 # QNX uses GNU C++, but need to define -shared option too, otherwise
9643 # it will coredump.
9644 lt_prog_compiler_pic='-fPIC -shared'
9647 osf3* | osf4* | osf5*)
9648 lt_prog_compiler_wl='-Wl,'
9649 # All OSF/1 code is PIC.
9650 lt_prog_compiler_static='-non_shared'
9653 rdos*)
9654 lt_prog_compiler_static='-non_shared'
9657 solaris*)
9658 lt_prog_compiler_pic='-KPIC'
9659 lt_prog_compiler_static='-Bstatic'
9660 case $cc_basename in
9661 f77* | f90* | f95*)
9662 lt_prog_compiler_wl='-Qoption ld ';;
9664 lt_prog_compiler_wl='-Wl,';;
9665 esac
9668 sunos4*)
9669 lt_prog_compiler_wl='-Qoption ld '
9670 lt_prog_compiler_pic='-PIC'
9671 lt_prog_compiler_static='-Bstatic'
9674 sysv4 | sysv4.2uw2* | sysv4.3*)
9675 lt_prog_compiler_wl='-Wl,'
9676 lt_prog_compiler_pic='-KPIC'
9677 lt_prog_compiler_static='-Bstatic'
9680 sysv4*MP*)
9681 if test -d /usr/nec ;then
9682 lt_prog_compiler_pic='-Kconform_pic'
9683 lt_prog_compiler_static='-Bstatic'
9687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9688 lt_prog_compiler_wl='-Wl,'
9689 lt_prog_compiler_pic='-KPIC'
9690 lt_prog_compiler_static='-Bstatic'
9693 unicos*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_can_build_shared=no
9698 uts4*)
9699 lt_prog_compiler_pic='-pic'
9700 lt_prog_compiler_static='-Bstatic'
9704 lt_prog_compiler_can_build_shared=no
9706 esac
9709 case $host_os in
9710 # For platforms which do not support PIC, -DPIC is meaningless:
9711 *djgpp*)
9712 lt_prog_compiler_pic=
9715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9717 esac
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9719 $as_echo "$lt_prog_compiler_pic" >&6; }
9727 # Check to make sure the PIC flag actually works.
9729 if test -n "$lt_prog_compiler_pic"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 lt_cv_prog_compiler_pic_works=no
9736 ac_outfile=conftest.$ac_objext
9737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9739 # Insert the option either (1) after the last *FLAGS variable, or
9740 # (2) before a word containing "conftest.", or (3) at the end.
9741 # Note that $ac_compile itself does not contain backslashes and begins
9742 # with a dollar sign (not a hyphen), so the echo should work correctly.
9743 # The option is referenced via a variable to avoid confusing sed.
9744 lt_compile=`echo "$ac_compile" | $SED \
9745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747 -e 's:$: $lt_compiler_flag:'`
9748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749 (eval "$lt_compile" 2>conftest.err)
9750 ac_status=$?
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 if (exit $ac_status) && test -s "$ac_outfile"; then
9754 # The compiler can only warn and ignore the option if not recognized
9755 # So say no if there are warnings other than the usual output.
9756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9759 lt_cv_prog_compiler_pic_works=yes
9762 $RM conftest*
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9769 case $lt_prog_compiler_pic in
9770 "" | " "*) ;;
9771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9772 esac
9773 else
9774 lt_prog_compiler_pic=
9775 lt_prog_compiler_can_build_shared=no
9786 # Check to make sure the static flag actually works.
9788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler_static_works=no
9795 save_LDFLAGS="$LDFLAGS"
9796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9799 # The linker can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 if test -s conftest.err; then
9802 # Append any errors to the config.log.
9803 cat conftest.err 1>&5
9804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9806 if diff conftest.exp conftest.er2 >/dev/null; then
9807 lt_cv_prog_compiler_static_works=yes
9809 else
9810 lt_cv_prog_compiler_static_works=yes
9813 $RM -r conftest*
9814 LDFLAGS="$save_LDFLAGS"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9822 else
9823 lt_prog_compiler_static=
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 lt_cv_prog_compiler_c_o=no
9838 $RM -r conftest 2>/dev/null
9839 mkdir conftest
9840 cd conftest
9841 mkdir out
9842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9844 lt_compiler_flag="-o out/conftest2.$ac_objext"
9845 # Insert the option either (1) after the last *FLAGS variable, or
9846 # (2) before a word containing "conftest.", or (3) at the end.
9847 # Note that $ac_compile itself does not contain backslashes and begins
9848 # with a dollar sign (not a hyphen), so the echo should work correctly.
9849 lt_compile=`echo "$ac_compile" | $SED \
9850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9852 -e 's:$: $lt_compiler_flag:'`
9853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9854 (eval "$lt_compile" 2>out/conftest.err)
9855 ac_status=$?
9856 cat out/conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9859 then
9860 # The compiler can only warn and ignore the option if not recognized
9861 # So say no if there are warnings
9862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9865 lt_cv_prog_compiler_c_o=yes
9868 chmod u+w . 2>&5
9869 $RM conftest*
9870 # SGI C++ compiler will create directory out/ii_files/ for
9871 # template instantiation
9872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9873 $RM out/* && rmdir out
9874 cd ..
9875 $RM -r conftest
9876 $RM conftest*
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 lt_cv_prog_compiler_c_o=no
9893 $RM -r conftest 2>/dev/null
9894 mkdir conftest
9895 cd conftest
9896 mkdir out
9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9899 lt_compiler_flag="-o out/conftest2.$ac_objext"
9900 # Insert the option either (1) after the last *FLAGS variable, or
9901 # (2) before a word containing "conftest.", or (3) at the end.
9902 # Note that $ac_compile itself does not contain backslashes and begins
9903 # with a dollar sign (not a hyphen), so the echo should work correctly.
9904 lt_compile=`echo "$ac_compile" | $SED \
9905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9907 -e 's:$: $lt_compiler_flag:'`
9908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9909 (eval "$lt_compile" 2>out/conftest.err)
9910 ac_status=$?
9911 cat out/conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9914 then
9915 # The compiler can only warn and ignore the option if not recognized
9916 # So say no if there are warnings
9917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9920 lt_cv_prog_compiler_c_o=yes
9923 chmod u+w . 2>&5
9924 $RM conftest*
9925 # SGI C++ compiler will create directory out/ii_files/ for
9926 # template instantiation
9927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9928 $RM out/* && rmdir out
9929 cd ..
9930 $RM -r conftest
9931 $RM conftest*
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9940 hard_links="nottested"
9941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9942 # do not overwrite the value of need_locks provided by the user
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9944 $as_echo_n "checking if we can lock with hard links... " >&6; }
9945 hard_links=yes
9946 $RM conftest*
9947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9948 touch conftest.a
9949 ln conftest.a conftest.b 2>&5 || hard_links=no
9950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9952 $as_echo "$hard_links" >&6; }
9953 if test "$hard_links" = no; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9956 need_locks=warn
9958 else
9959 need_locks=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9970 runpath_var=
9971 allow_undefined_flag=
9972 always_export_symbols=no
9973 archive_cmds=
9974 archive_expsym_cmds=
9975 compiler_needs_object=no
9976 enable_shared_with_static_runtimes=no
9977 export_dynamic_flag_spec=
9978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9979 hardcode_automatic=no
9980 hardcode_direct=no
9981 hardcode_direct_absolute=no
9982 hardcode_libdir_flag_spec=
9983 hardcode_libdir_flag_spec_ld=
9984 hardcode_libdir_separator=
9985 hardcode_minus_L=no
9986 hardcode_shlibpath_var=unsupported
9987 inherit_rpath=no
9988 link_all_deplibs=unknown
9989 module_cmds=
9990 module_expsym_cmds=
9991 old_archive_from_new_cmds=
9992 old_archive_from_expsyms_cmds=
9993 thread_safe_flag_spec=
9994 whole_archive_flag_spec=
9995 # include_expsyms should be a list of space-separated symbols to be *always*
9996 # included in the symbol list
9997 include_expsyms=
9998 # exclude_expsyms can be an extended regexp of symbols to exclude
9999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10001 # as well as any symbol that contains `d'.
10002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10004 # platforms (ab)use it in PIC code, but their linkers get confused if
10005 # the symbol is explicitly referenced. Since portable code cannot
10006 # rely on this symbol name, it's probably fine to never include it in
10007 # preloaded symbol tables.
10008 # Exclude shared library initialization/finalization symbols.
10009 extract_expsyms_cmds=
10011 case $host_os in
10012 cygwin* | mingw* | pw32* | cegcc*)
10013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10014 # When not using gcc, we currently assume that we are using
10015 # Microsoft Visual C++.
10016 if test "$GCC" != yes; then
10017 with_gnu_ld=no
10020 interix*)
10021 # we just hope/assume this is gcc and not c89 (= MSVC++)
10022 with_gnu_ld=yes
10024 openbsd*)
10025 with_gnu_ld=no
10027 esac
10029 ld_shlibs=yes
10031 # On some targets, GNU ld is compatible enough with the native linker
10032 # that we're better off using the native interface for both.
10033 lt_use_gnu_ld_interface=no
10034 if test "$with_gnu_ld" = yes; then
10035 case $host_os in
10036 aix*)
10037 # The AIX port of GNU ld has always aspired to compatibility
10038 # with the native linker. However, as the warning in the GNU ld
10039 # block says, versions before 2.19.5* couldn't really create working
10040 # shared libraries, regardless of the interface used.
10041 case `$LD -v 2>&1` in
10042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10046 lt_use_gnu_ld_interface=yes
10048 esac
10051 lt_use_gnu_ld_interface=yes
10053 esac
10056 if test "$lt_use_gnu_ld_interface" = yes; then
10057 # If archive_cmds runs LD, not CC, wlarc should be empty
10058 wlarc='${wl}'
10060 # Set some defaults for GNU ld with shared library support. These
10061 # are reset later if shared libraries are not supported. Putting them
10062 # here allows them to be overridden if necessary.
10063 runpath_var=LD_RUN_PATH
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 export_dynamic_flag_spec='${wl}--export-dynamic'
10066 # ancient GNU ld didn't support --whole-archive et. al.
10067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10069 else
10070 whole_archive_flag_spec=
10072 supports_anon_versioning=no
10073 case `$LD -v 2>&1` in
10074 *GNU\ gold*) supports_anon_versioning=yes ;;
10075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078 *\ 2.11.*) ;; # other 2.11 versions
10079 *) supports_anon_versioning=yes ;;
10080 esac
10082 # See if GNU ld supports shared libraries.
10083 case $host_os in
10084 aix[3-9]*)
10085 # On AIX/PPC, the GNU linker is very broken
10086 if test "$host_cpu" != ia64; then
10087 ld_shlibs=no
10088 cat <<_LT_EOF 1>&2
10090 *** Warning: the GNU linker, at least up to release 2.19, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support. If you
10093 *** really care for shared libraries, you may want to install binutils
10094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10095 *** You will then need to restart the configuration process.
10097 _LT_EOF
10101 amigaos*)
10102 case $host_cpu in
10103 powerpc)
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10108 m68k)
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10113 esac
10116 beos*)
10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118 allow_undefined_flag=unsupported
10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120 # support --undefined. This deserves some investigation. FIXME
10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 else
10123 ld_shlibs=no
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 export_dynamic_flag_spec='${wl}--export-all-symbols'
10132 allow_undefined_flag=unsupported
10133 always_export_symbols=no
10134 enable_shared_with_static_runtimes=yes
10135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10139 # If the export-symbols file already is a .def file (1st line
10140 # is EXPORTS), use it as is; otherwise, prepend...
10141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10142 cp $export_symbols $output_objdir/$soname.def;
10143 else
10144 echo EXPORTS > $output_objdir/$soname.def;
10145 cat $export_symbols >> $output_objdir/$soname.def;
10147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10148 else
10149 ld_shlibs=no
10153 haiku*)
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 link_all_deplibs=yes
10158 interix[3-9]*)
10159 hardcode_direct=no
10160 hardcode_shlibpath_var=no
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 export_dynamic_flag_spec='${wl}-E'
10163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10164 # Instead, shared libraries are loaded at an image base (0x10000000 by
10165 # default) and relocated if they conflict, which is a slow very memory
10166 # consuming and fragmenting process. To avoid this, we pick a random,
10167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10170 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'
10173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10174 tmp_diet=no
10175 if test "$host_os" = linux-dietlibc; then
10176 case $cc_basename in
10177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10178 esac
10180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10181 && test "$tmp_diet" = no
10182 then
10183 tmp_addflag=' $pic_flag'
10184 tmp_sharedflag='-shared'
10185 case $cc_basename,$host_cpu in
10186 pgcc*) # Portland Group C compiler
10187 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'
10188 tmp_addflag=' $pic_flag'
10190 pgf77* | pgf90* | pgf95* | pgfortran*)
10191 # Portland Group f77 and f90 compilers
10192 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'
10193 tmp_addflag=' $pic_flag -Mnomain' ;;
10194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10195 tmp_addflag=' -i_dynamic' ;;
10196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10197 tmp_addflag=' -i_dynamic -nofor_main' ;;
10198 ifc* | ifort*) # Intel Fortran compiler
10199 tmp_addflag=' -nofor_main' ;;
10200 lf95*) # Lahey Fortran 8.1
10201 whole_archive_flag_spec=
10202 tmp_sharedflag='--shared' ;;
10203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10204 tmp_sharedflag='-qmkshrobj'
10205 tmp_addflag= ;;
10206 nvcc*) # Cuda Compiler Driver 2.2
10207 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'
10208 compiler_needs_object=yes
10210 esac
10211 case `$CC -V 2>&1 | sed 5q` in
10212 *Sun\ C*) # Sun C 5.9
10213 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'
10214 compiler_needs_object=yes
10215 tmp_sharedflag='-G' ;;
10216 *Sun\ F*) # Sun Fortran 8.3
10217 tmp_sharedflag='-G' ;;
10218 esac
10219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 if test "x$supports_anon_versioning" = xyes; then
10222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224 echo "local: *; };" >> $output_objdir/$libname.ver~
10225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10228 case $cc_basename in
10229 xlf* | bgf* | bgxlf* | mpixlf*)
10230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10232 hardcode_libdir_flag_spec=
10233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10234 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10235 if test "x$supports_anon_versioning" = xyes; then
10236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10238 echo "local: *; };" >> $output_objdir/$libname.ver~
10239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10242 esac
10243 else
10244 ld_shlibs=no
10248 netbsd*)
10249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10251 wlarc=
10252 else
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10258 solaris*)
10259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10260 ld_shlibs=no
10261 cat <<_LT_EOF 1>&2
10263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10264 *** create shared libraries on Solaris systems. Therefore, libtool
10265 *** is disabling shared libraries support. We urge you to upgrade GNU
10266 *** binutils to release 2.9.1 or newer. Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10270 _LT_EOF
10271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10274 else
10275 ld_shlibs=no
10279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10280 case `$LD -v 2>&1` in
10281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10282 ld_shlibs=no
10283 cat <<_LT_EOF 1>&2
10285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10286 *** reliably create shared libraries on SCO systems. Therefore, libtool
10287 *** is disabling shared libraries support. We urge you to upgrade GNU
10288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10289 *** your PATH or compiler configuration so that the native linker is
10290 *** used, and then restart.
10292 _LT_EOF
10295 # For security reasons, it is highly recommended that you always
10296 # use absolute paths for naming shared libraries, and exclude the
10297 # DT_RUNPATH tag from executables and libraries. But doing so
10298 # requires that you compile everything twice, which is a pain.
10299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10303 else
10304 ld_shlibs=no
10307 esac
10310 sunos4*)
10311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10312 wlarc=
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10321 else
10322 ld_shlibs=no
10325 esac
10327 if test "$ld_shlibs" = no; then
10328 runpath_var=
10329 hardcode_libdir_flag_spec=
10330 export_dynamic_flag_spec=
10331 whole_archive_flag_spec=
10333 else
10334 # PORTME fill in a description of your system's linker (not GNU ld)
10335 case $host_os in
10336 aix3*)
10337 allow_undefined_flag=unsupported
10338 always_export_symbols=yes
10339 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'
10340 # Note: this linker hardcodes the directories in LIBPATH if there
10341 # are no directories specified by -L.
10342 hardcode_minus_L=yes
10343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10344 # Neither direct hardcoding nor static linking is supported with a
10345 # broken collect2.
10346 hardcode_direct=unsupported
10350 aix[4-9]*)
10351 if test "$host_cpu" = ia64; then
10352 # On IA64, the linker does run time linking by default, so we don't
10353 # have to do anything special.
10354 aix_use_runtimelinking=no
10355 exp_sym_flag='-Bexport'
10356 no_entry_flag=""
10357 else
10358 # If we're using GNU nm, then we don't want the "-C" option.
10359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10360 # Also, AIX nm treats weak defined symbols like other global
10361 # defined symbols, whereas GNU nm marks them as "W".
10362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10363 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'
10364 else
10365 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10367 aix_use_runtimelinking=no
10369 # Test if we are trying to use run time linking or normal
10370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10371 # need to do runtime linking.
10372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10373 for ld_flag in $LDFLAGS; do
10374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10375 aix_use_runtimelinking=yes
10376 break
10378 done
10380 esac
10382 exp_sym_flag='-bexport'
10383 no_entry_flag='-bnoentry'
10386 # When large executables or shared objects are built, AIX ld can
10387 # have problems creating the table of contents. If linking a library
10388 # or program results in "error TOC overflow" add -mminimal-toc to
10389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10392 archive_cmds=''
10393 hardcode_direct=yes
10394 hardcode_direct_absolute=yes
10395 hardcode_libdir_separator=':'
10396 link_all_deplibs=yes
10397 file_list_spec='${wl}-f,'
10399 if test "$GCC" = yes; then
10400 case $host_os in aix4.[012]|aix4.[012].*)
10401 # We only want to do this on AIX 4.2 and lower, the check
10402 # below for broken collect2 doesn't work under 4.3+
10403 collect2name=`${CC} -print-prog-name=collect2`
10404 if test -f "$collect2name" &&
10405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10406 then
10407 # We have reworked collect2
10409 else
10410 # We have old collect2
10411 hardcode_direct=unsupported
10412 # It fails to find uninstalled libraries when the uninstalled
10413 # path is not listed in the libpath. Setting hardcode_minus_L
10414 # to unsupported forces relinking
10415 hardcode_minus_L=yes
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_libdir_separator=
10420 esac
10421 shared_flag='-shared'
10422 if test "$aix_use_runtimelinking" = yes; then
10423 shared_flag="$shared_flag "'${wl}-G'
10425 else
10426 # not using gcc
10427 if test "$host_cpu" = ia64; then
10428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10429 # chokes on -Wl,-G. The following line is correct:
10430 shared_flag='-G'
10431 else
10432 if test "$aix_use_runtimelinking" = yes; then
10433 shared_flag='${wl}-G'
10434 else
10435 shared_flag='${wl}-bM:SRE'
10440 export_dynamic_flag_spec='${wl}-bexpall'
10441 # It seems that -bexpall does not export symbols beginning with
10442 # underscore (_), so it is better to generate a list of symbols to export.
10443 always_export_symbols=yes
10444 if test "$aix_use_runtimelinking" = yes; then
10445 # Warning - without using the other runtime loading flags (-brtl),
10446 # -berok will link without error, but may produce a broken library.
10447 allow_undefined_flag='-berok'
10448 # Determine the default libpath from the value encoded in an
10449 # empty executable.
10450 if test x$gcc_no_link = xyes; then
10451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10457 main ()
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10466 lt_aix_libpath_sed='
10467 /Import File Strings/,/^$/ {
10468 /^0/ {
10469 s/^0 *\(.*\)$/\1/
10473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 # Check for a 64-bit object if we didn't find anything.
10475 if test -z "$aix_libpath"; then
10476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10484 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"
10485 else
10486 if test "$host_cpu" = ia64; then
10487 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10488 allow_undefined_flag="-z nodefs"
10489 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"
10490 else
10491 # Determine the default libpath from the value encoded in an
10492 # empty executable.
10493 if test x$gcc_no_link = xyes; then
10494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10500 main ()
10504 return 0;
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10509 lt_aix_libpath_sed='
10510 /Import File Strings/,/^$/ {
10511 /^0/ {
10512 s/^0 *\(.*\)$/\1/
10516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10517 # Check for a 64-bit object if we didn't find anything.
10518 if test -z "$aix_libpath"; then
10519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10527 # Warning - without using the other run time loading flags,
10528 # -berok will link without error, but may produce a broken library.
10529 no_undefined_flag=' ${wl}-bernotok'
10530 allow_undefined_flag=' ${wl}-berok'
10531 if test "$with_gnu_ld" = yes; then
10532 # We only use this code for GNU lds that support --whole-archive.
10533 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10534 else
10535 # Exported symbols can be pulled into shared objects from archives
10536 whole_archive_flag_spec='$convenience'
10538 archive_cmds_need_lc=yes
10539 # This is similar to how AIX traditionally builds its shared libraries.
10540 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'
10545 amigaos*)
10546 case $host_cpu in
10547 powerpc)
10548 # see comment about AmigaOS4 .so support
10549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550 archive_expsym_cmds=''
10552 m68k)
10553 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)'
10554 hardcode_libdir_flag_spec='-L$libdir'
10555 hardcode_minus_L=yes
10557 esac
10560 bsdi[45]*)
10561 export_dynamic_flag_spec=-rdynamic
10564 cygwin* | mingw* | pw32* | cegcc*)
10565 # When not using gcc, we currently assume that we are using
10566 # Microsoft Visual C++.
10567 # hardcode_libdir_flag_spec is actually meaningless, as there is
10568 # no search path for DLLs.
10569 hardcode_libdir_flag_spec=' '
10570 allow_undefined_flag=unsupported
10571 # Tell ltmain to make .lib files, not .a files.
10572 libext=lib
10573 # Tell ltmain to make .dll files, not .so files.
10574 shrext_cmds=".dll"
10575 # FIXME: Setting linknames here is a bad hack.
10576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10577 # The linker will automatically build a .lib file if we build a DLL.
10578 old_archive_from_new_cmds='true'
10579 # FIXME: Should let the user specify the lib program.
10580 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10581 fix_srcfile_path='`cygpath -w "$srcfile"`'
10582 enable_shared_with_static_runtimes=yes
10585 darwin* | rhapsody*)
10588 archive_cmds_need_lc=no
10589 hardcode_direct=no
10590 hardcode_automatic=yes
10591 hardcode_shlibpath_var=unsupported
10592 if test "$lt_cv_ld_force_load" = "yes"; then
10593 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\"`'
10594 else
10595 whole_archive_flag_spec=''
10597 link_all_deplibs=yes
10598 allow_undefined_flag="$_lt_dar_allow_undefined"
10599 case $cc_basename in
10600 ifort*) _lt_dar_can_shared=yes ;;
10601 *) _lt_dar_can_shared=$GCC ;;
10602 esac
10603 if test "$_lt_dar_can_shared" = "yes"; then
10604 output_verbose_link_cmd=func_echo_all
10605 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10606 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10607 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}"
10608 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}"
10610 else
10611 ld_shlibs=no
10616 dgux*)
10617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_shlibpath_var=no
10622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10623 # support. Future versions do this automatically, but an explicit c++rt0.o
10624 # does not break anything, and helps significantly (at the cost of a little
10625 # extra space).
10626 freebsd2.2*)
10627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10628 hardcode_libdir_flag_spec='-R$libdir'
10629 hardcode_direct=yes
10630 hardcode_shlibpath_var=no
10633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10634 freebsd2.*)
10635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_direct=yes
10637 hardcode_minus_L=yes
10638 hardcode_shlibpath_var=no
10641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10642 freebsd* | dragonfly*)
10643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10644 hardcode_libdir_flag_spec='-R$libdir'
10645 hardcode_direct=yes
10646 hardcode_shlibpath_var=no
10649 hpux9*)
10650 if test "$GCC" = yes; then
10651 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'
10652 else
10653 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'
10655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10656 hardcode_libdir_separator=:
10657 hardcode_direct=yes
10659 # hardcode_minus_L: Not really in the search PATH,
10660 # but as the default location of the library.
10661 hardcode_minus_L=yes
10662 export_dynamic_flag_spec='${wl}-E'
10665 hpux10*)
10666 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 else
10669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10671 if test "$with_gnu_ld" = no; then
10672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10673 hardcode_libdir_flag_spec_ld='+b $libdir'
10674 hardcode_libdir_separator=:
10675 hardcode_direct=yes
10676 hardcode_direct_absolute=yes
10677 export_dynamic_flag_spec='${wl}-E'
10678 # hardcode_minus_L: Not really in the search PATH,
10679 # but as the default location of the library.
10680 hardcode_minus_L=yes
10684 hpux11*)
10685 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10686 case $host_cpu in
10687 hppa*64*)
10688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 ia64*)
10691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10696 esac
10697 else
10698 case $host_cpu in
10699 hppa*64*)
10700 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 ia64*)
10703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10707 # Older versions of the 11.00 compiler do not understand -b yet
10708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10710 $as_echo_n "checking if $CC understands -b... " >&6; }
10711 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 lt_cv_prog_compiler__b=no
10715 save_LDFLAGS="$LDFLAGS"
10716 LDFLAGS="$LDFLAGS -b"
10717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10719 # The linker can only warn and ignore the option if not recognized
10720 # So say no if there are warnings
10721 if test -s conftest.err; then
10722 # Append any errors to the config.log.
10723 cat conftest.err 1>&5
10724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10726 if diff conftest.exp conftest.er2 >/dev/null; then
10727 lt_cv_prog_compiler__b=yes
10729 else
10730 lt_cv_prog_compiler__b=yes
10733 $RM -r conftest*
10734 LDFLAGS="$save_LDFLAGS"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10740 if test x"$lt_cv_prog_compiler__b" = xyes; then
10741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742 else
10743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10747 esac
10749 if test "$with_gnu_ld" = no; then
10750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10751 hardcode_libdir_separator=:
10753 case $host_cpu in
10754 hppa*64*|ia64*)
10755 hardcode_direct=no
10756 hardcode_shlibpath_var=no
10759 hardcode_direct=yes
10760 hardcode_direct_absolute=yes
10761 export_dynamic_flag_spec='${wl}-E'
10763 # hardcode_minus_L: Not really in the search PATH,
10764 # but as the default location of the library.
10765 hardcode_minus_L=yes
10767 esac
10771 irix5* | irix6* | nonstopux*)
10772 if test "$GCC" = yes; then
10773 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'
10774 # Try to use the -exported_symbol ld option, if it does not
10775 # work, assume that -exports_file does not work either and
10776 # implicitly export all symbols.
10777 save_LDFLAGS="$LDFLAGS"
10778 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10779 if test x$gcc_no_link = xyes; then
10780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 int foo(void) {}
10785 _ACEOF
10786 if ac_fn_c_try_link "$LINENO"; then :
10787 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'
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LDFLAGS="$save_LDFLAGS"
10793 else
10794 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'
10795 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'
10797 archive_cmds_need_lc='no'
10798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799 hardcode_libdir_separator=:
10800 inherit_rpath=yes
10801 link_all_deplibs=yes
10804 netbsd*)
10805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10807 else
10808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10810 hardcode_libdir_flag_spec='-R$libdir'
10811 hardcode_direct=yes
10812 hardcode_shlibpath_var=no
10815 newsos6)
10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_direct=yes
10818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10819 hardcode_libdir_separator=:
10820 hardcode_shlibpath_var=no
10823 *nto* | *qnx*)
10826 openbsd*)
10827 if test -f /usr/libexec/ld.so; then
10828 hardcode_direct=yes
10829 hardcode_shlibpath_var=no
10830 hardcode_direct_absolute=yes
10831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10835 export_dynamic_flag_spec='${wl}-E'
10836 else
10837 case $host_os in
10838 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_libdir_flag_spec='-R$libdir'
10843 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10846 esac
10848 else
10849 ld_shlibs=no
10853 os2*)
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 hardcode_minus_L=yes
10856 allow_undefined_flag=unsupported
10857 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'
10858 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10861 osf3*)
10862 if test "$GCC" = yes; then
10863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10864 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'
10865 else
10866 allow_undefined_flag=' -expect_unresolved \*'
10867 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'
10869 archive_cmds_need_lc='no'
10870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10871 hardcode_libdir_separator=:
10874 osf4* | osf5*) # as osf3* with the addition of -msym flag
10875 if test "$GCC" = yes; then
10876 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877 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'
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 else
10880 allow_undefined_flag=' -expect_unresolved \*'
10881 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'
10882 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~
10883 $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'
10885 # Both c and cxx compiler support -rpath directly
10886 hardcode_libdir_flag_spec='-rpath $libdir'
10888 archive_cmds_need_lc='no'
10889 hardcode_libdir_separator=:
10892 solaris*)
10893 no_undefined_flag=' -z defs'
10894 if test "$GCC" = yes; then
10895 wlarc='${wl}'
10896 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10899 else
10900 case `$CC -V 2>&1` in
10901 *"Compilers 5.0"*)
10902 wlarc=''
10903 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10908 wlarc='${wl}'
10909 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913 esac
10915 hardcode_libdir_flag_spec='-R$libdir'
10916 hardcode_shlibpath_var=no
10917 case $host_os in
10918 solaris2.[0-5] | solaris2.[0-5].*) ;;
10920 # The compiler driver will combine and reorder linker options,
10921 # but understands `-z linker_flag'. GCC discards it without `$wl',
10922 # but is careful enough not to reorder.
10923 # Supported since Solaris 2.6 (maybe 2.5.1?)
10924 if test "$GCC" = yes; then
10925 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10926 else
10927 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10930 esac
10931 link_all_deplibs=yes
10934 sunos4*)
10935 if test "x$host_vendor" = xsequent; then
10936 # Use $CC to link under sequent, because it throws in some extra .o
10937 # files that make .init and .fini sections work.
10938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10939 else
10940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_libdir_flag_spec='-L$libdir'
10943 hardcode_direct=yes
10944 hardcode_minus_L=yes
10945 hardcode_shlibpath_var=no
10948 sysv4)
10949 case $host_vendor in
10950 sni)
10951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_direct=yes # is this really true???
10954 siemens)
10955 ## LD is ld it makes a PLAMLIB
10956 ## CC just makes a GrossModule.
10957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10958 reload_cmds='$CC -r -o $output$reload_objs'
10959 hardcode_direct=no
10961 motorola)
10962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10965 esac
10966 runpath_var='LD_RUN_PATH'
10967 hardcode_shlibpath_var=no
10970 sysv4.3*)
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_shlibpath_var=no
10973 export_dynamic_flag_spec='-Bexport'
10976 sysv4*MP*)
10977 if test -d /usr/nec; then
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_shlibpath_var=no
10980 runpath_var=LD_RUN_PATH
10981 hardcode_runpath_var=yes
10982 ld_shlibs=yes
10986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10987 no_undefined_flag='${wl}-z,text'
10988 archive_cmds_need_lc=no
10989 hardcode_shlibpath_var=no
10990 runpath_var='LD_RUN_PATH'
10992 if test "$GCC" = yes; then
10993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 else
10996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 sysv5* | sco3.2v5* | sco5v6*)
11002 # Note: We can NOT use -z defs as we might desire, because we do not
11003 # link with -lc, and that would cause any symbols used from libc to
11004 # always be unresolved, which means just about no library would
11005 # ever link correctly. If we're not using GNU ld we use -z text
11006 # though, which does catch some bad symbols but isn't as heavy-handed
11007 # as -z defs.
11008 no_undefined_flag='${wl}-z,text'
11009 allow_undefined_flag='${wl}-z,nodefs'
11010 archive_cmds_need_lc=no
11011 hardcode_shlibpath_var=no
11012 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11013 hardcode_libdir_separator=':'
11014 link_all_deplibs=yes
11015 export_dynamic_flag_spec='${wl}-Bexport'
11016 runpath_var='LD_RUN_PATH'
11018 if test "$GCC" = yes; then
11019 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 else
11022 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 uts4*)
11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_libdir_flag_spec='-L$libdir'
11030 hardcode_shlibpath_var=no
11034 ld_shlibs=no
11036 esac
11038 if test x$host_vendor = xsni; then
11039 case $host in
11040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11041 export_dynamic_flag_spec='${wl}-Blargedynsym'
11043 esac
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11048 $as_echo "$ld_shlibs" >&6; }
11049 test "$ld_shlibs" = no && can_build_shared=no
11051 with_gnu_ld=$with_gnu_ld
11068 # Do we need to explicitly link libc?
11070 case "x$archive_cmds_need_lc" in
11071 x|xyes)
11072 # Assume -lc should be added
11073 archive_cmds_need_lc=yes
11075 if test "$enable_shared" = yes && test "$GCC" = yes; then
11076 case $archive_cmds in
11077 *'~'*)
11078 # FIXME: we may have to deal with multi-command sequences.
11080 '$CC '*)
11081 # Test whether the compiler implicitly links with -lc since on some
11082 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11083 # to ld, don't add -lc before -lgcc.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11085 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11086 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 $RM conftest*
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11093 (eval $ac_compile) 2>&5
11094 ac_status=$?
11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } 2>conftest.err; then
11097 soname=conftest
11098 lib=conftest
11099 libobjs=conftest.$ac_objext
11100 deplibs=
11101 wl=$lt_prog_compiler_wl
11102 pic_flag=$lt_prog_compiler_pic
11103 compiler_flags=-v
11104 linker_flags=-v
11105 verstring=
11106 output_objdir=.
11107 libname=conftest
11108 lt_save_allow_undefined_flag=$allow_undefined_flag
11109 allow_undefined_flag=
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11111 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11112 ac_status=$?
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; }
11115 then
11116 lt_cv_archive_cmds_need_lc=no
11117 else
11118 lt_cv_archive_cmds_need_lc=yes
11120 allow_undefined_flag=$lt_save_allow_undefined_flag
11121 else
11122 cat conftest.err 1>&5
11124 $RM conftest*
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11128 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11129 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11131 esac
11134 esac
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11293 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11295 if test "$GCC" = yes; then
11296 case $host_os in
11297 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298 *) lt_awk_arg="/^libraries:/" ;;
11299 esac
11300 case $host_os in
11301 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11302 *) lt_sed_strip_eq="s,=/,/,g" ;;
11303 esac
11304 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11305 case $lt_search_path_spec in
11306 *\;*)
11307 # if the path contains ";" then we assume it to be the separator
11308 # otherwise default to the standard path separator (i.e. ":") - it is
11309 # assumed that no part of a normal pathname contains ";" but that should
11310 # okay in the real world where ";" in dirpaths is itself problematic.
11311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11314 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11316 esac
11317 # Ok, now we have the path, separated by spaces, we can step through it
11318 # and add multilib dir if necessary.
11319 lt_tmp_lt_search_path_spec=
11320 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11321 for lt_sys_path in $lt_search_path_spec; do
11322 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11324 else
11325 test -d "$lt_sys_path" && \
11326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11328 done
11329 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11330 BEGIN {RS=" "; FS="/|\n";} {
11331 lt_foo="";
11332 lt_count=0;
11333 for (lt_i = NF; lt_i > 0; lt_i--) {
11334 if ($lt_i != "" && $lt_i != ".") {
11335 if ($lt_i == "..") {
11336 lt_count++;
11337 } else {
11338 if (lt_count == 0) {
11339 lt_foo="/" $lt_i lt_foo;
11340 } else {
11341 lt_count--;
11346 if (lt_foo != "") { lt_freq[lt_foo]++; }
11347 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11349 # AWK program above erroneously prepends '/' to C:/dos/paths
11350 # for these hosts.
11351 case $host_os in
11352 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11353 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11354 esac
11355 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11356 else
11357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11359 library_names_spec=
11360 libname_spec='lib$name'
11361 soname_spec=
11362 shrext_cmds=".so"
11363 postinstall_cmds=
11364 postuninstall_cmds=
11365 finish_cmds=
11366 finish_eval=
11367 shlibpath_var=
11368 shlibpath_overrides_runpath=unknown
11369 version_type=none
11370 dynamic_linker="$host_os ld.so"
11371 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11372 need_lib_prefix=unknown
11373 hardcode_into_libs=no
11375 # when you set need_version to no, make sure it does not cause -set_version
11376 # flags to be left without arguments
11377 need_version=unknown
11379 case $host_os in
11380 aix3*)
11381 version_type=linux
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11383 shlibpath_var=LIBPATH
11385 # AIX 3 has no versioning support, so we append a major version to the name.
11386 soname_spec='${libname}${release}${shared_ext}$major'
11389 aix[4-9]*)
11390 version_type=linux
11391 need_lib_prefix=no
11392 need_version=no
11393 hardcode_into_libs=yes
11394 if test "$host_cpu" = ia64; then
11395 # AIX 5 supports IA64
11396 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 else
11399 # With GCC up to 2.95.x, collect2 would create an import file
11400 # for dependence libraries. The import file would start with
11401 # the line `#! .'. This would cause the generated library to
11402 # depend on `.', always an invalid library. This was fixed in
11403 # development snapshots of GCC prior to 3.0.
11404 case $host_os in
11405 aix4 | aix4.[01] | aix4.[01].*)
11406 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11407 echo ' yes '
11408 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11410 else
11411 can_build_shared=no
11414 esac
11415 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11416 # soname into executable. Probably we can add versioning support to
11417 # collect2, so additional links can be useful in future.
11418 if test "$aix_use_runtimelinking" = yes; then
11419 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11420 # instead of lib<name>.a to let people know that these are not
11421 # typical AIX shared libraries.
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 else
11424 # We preserve .a as extension for shared libraries through AIX4.2
11425 # and later when we are not doing run time linking.
11426 library_names_spec='${libname}${release}.a $libname.a'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LIBPATH
11433 amigaos*)
11434 case $host_cpu in
11435 powerpc)
11436 # Since July 2007 AmigaOS4 officially supports .so libraries.
11437 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 m68k)
11441 library_names_spec='$libname.ixlibrary $libname.a'
11442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11443 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'
11445 esac
11448 beos*)
11449 library_names_spec='${libname}${shared_ext}'
11450 dynamic_linker="$host_os ld.so"
11451 shlibpath_var=LIBRARY_PATH
11454 bsdi[45]*)
11455 version_type=linux
11456 need_version=no
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11463 # the default ld.so.conf also contains /usr/contrib/lib and
11464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11465 # libtool to hard-code these into programs
11468 cygwin* | mingw* | pw32* | cegcc*)
11469 version_type=windows
11470 shrext_cmds=".dll"
11471 need_version=no
11472 need_lib_prefix=no
11474 case $GCC,$host_os in
11475 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11476 library_names_spec='$libname.dll.a'
11477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11478 postinstall_cmds='base_file=`basename \${file}`~
11479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11480 dldir=$destdir/`dirname \$dlpath`~
11481 test -d \$dldir || mkdir -p \$dldir~
11482 $install_prog $dir/$dlname \$dldir/$dlname~
11483 chmod a+x \$dldir/$dlname~
11484 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11485 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11488 dlpath=$dir/\$dldll~
11489 $RM \$dlpath'
11490 shlibpath_overrides_runpath=yes
11492 case $host_os in
11493 cygwin*)
11494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11497 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11499 mingw* | cegcc*)
11500 # MinGW DLLs use traditional 'lib' prefix
11501 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503 pw32*)
11504 # pw32 DLLs use 'pw' prefix rather than 'lib'
11505 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507 esac
11511 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11513 esac
11514 dynamic_linker='Win32 ld.exe'
11515 # FIXME: first we should search . and the directory the executable is in
11516 shlibpath_var=PATH
11519 darwin* | rhapsody*)
11520 dynamic_linker="$host_os dyld"
11521 version_type=darwin
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11525 soname_spec='${libname}${release}${major}$shared_ext'
11526 shlibpath_overrides_runpath=yes
11527 shlibpath_var=DYLD_LIBRARY_PATH
11528 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11530 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534 dgux*)
11535 version_type=linux
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11543 freebsd* | dragonfly*)
11544 # DragonFly does not have aout. When/if they implement a new
11545 # versioning mechanism, adjust this.
11546 if test -x /usr/bin/objformat; then
11547 objformat=`/usr/bin/objformat`
11548 else
11549 case $host_os in
11550 freebsd[23].*) objformat=aout ;;
11551 *) objformat=elf ;;
11552 esac
11554 version_type=freebsd-$objformat
11555 case $version_type in
11556 freebsd-elf*)
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11558 need_version=no
11559 need_lib_prefix=no
11561 freebsd-*)
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11563 need_version=yes
11565 esac
11566 shlibpath_var=LD_LIBRARY_PATH
11567 case $host_os in
11568 freebsd2.*)
11569 shlibpath_overrides_runpath=yes
11571 freebsd3.[01]* | freebsdelf3.[01]*)
11572 shlibpath_overrides_runpath=yes
11573 hardcode_into_libs=yes
11575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11580 *) # from 4.6 on, and DragonFly
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11584 esac
11587 gnu*)
11588 version_type=linux
11589 need_lib_prefix=no
11590 need_version=no
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 hardcode_into_libs=yes
11597 haiku*)
11598 version_type=linux
11599 need_lib_prefix=no
11600 need_version=no
11601 dynamic_linker="$host_os runtime_loader"
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 shlibpath_var=LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes
11606 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11607 hardcode_into_libs=yes
11610 hpux9* | hpux10* | hpux11*)
11611 # Give a soname corresponding to the major version so that dld.sl refuses to
11612 # link against other versions.
11613 version_type=sunos
11614 need_lib_prefix=no
11615 need_version=no
11616 case $host_cpu in
11617 ia64*)
11618 shrext_cmds='.so'
11619 hardcode_into_libs=yes
11620 dynamic_linker="$host_os dld.so"
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 if test "X$HPUX_IA64_MODE" = X32; then
11626 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11627 else
11628 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632 hppa*64*)
11633 shrext_cmds='.sl'
11634 hardcode_into_libs=yes
11635 dynamic_linker="$host_os dld.sl"
11636 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11644 shrext_cmds='.sl'
11645 dynamic_linker="$host_os dld.sl"
11646 shlibpath_var=SHLIB_PATH
11647 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11651 esac
11652 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11653 postinstall_cmds='chmod 555 $lib'
11654 # or fails outright, so override atomically:
11655 install_override_mode=555
11658 interix[3-9]*)
11659 version_type=linux
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11670 irix5* | irix6* | nonstopux*)
11671 case $host_os in
11672 nonstopux*) version_type=nonstopux ;;
11674 if test "$lt_cv_prog_gnu_ld" = yes; then
11675 version_type=linux
11676 else
11677 version_type=irix
11678 fi ;;
11679 esac
11680 need_lib_prefix=no
11681 need_version=no
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11684 case $host_os in
11685 irix5* | nonstopux*)
11686 libsuff= shlibsuff=
11689 case $LD in # libtool.m4 will add one of these switches to LD
11690 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11691 libsuff= shlibsuff= libmagic=32-bit;;
11692 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11693 libsuff=32 shlibsuff=N32 libmagic=N32;;
11694 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11695 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11696 *) libsuff= shlibsuff= libmagic=never-match;;
11697 esac
11699 esac
11700 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11701 shlibpath_overrides_runpath=no
11702 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11703 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11704 hardcode_into_libs=yes
11707 # No shared lib support for Linux oldld, aout, or coff.
11708 linux*oldld* | linux*aout* | linux*coff*)
11709 dynamic_linker=no
11712 # This must be Linux ELF.
11713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11714 version_type=linux
11715 need_lib_prefix=no
11716 need_version=no
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=no
11723 # Some binutils ld are patched to set DT_RUNPATH
11724 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 lt_cv_shlibpath_overrides_runpath=no
11728 save_LDFLAGS=$LDFLAGS
11729 save_libdir=$libdir
11730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11732 if test x$gcc_no_link = xyes; then
11733 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11739 main ()
11743 return 0;
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748 lt_cv_shlibpath_overrides_runpath=yes
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LDFLAGS=$save_LDFLAGS
11754 libdir=$save_libdir
11758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11760 # This implies no fast_install, which is unacceptable.
11761 # Some rework will be needed to allow for fast_install
11762 # before this can be enabled.
11763 hardcode_into_libs=yes
11765 # Append ld.so.conf contents to the search path
11766 if test -f /etc/ld.so.conf; then
11767 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' ' '`
11768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11771 # We used to test for /lib/ld.so.1 and disable shared libraries on
11772 # powerpc, because MkLinux only supported shared libraries with the
11773 # GNU dynamic linker. Since this was broken with cross compilers,
11774 # most powerpc-linux boxes support dynamic linking these days and
11775 # people can always --disable-shared, the test was removed, and we
11776 # assume the GNU/Linux dynamic linker is in use.
11777 dynamic_linker='GNU/Linux ld.so'
11780 netbsd*)
11781 version_type=sunos
11782 need_lib_prefix=no
11783 need_version=no
11784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11787 dynamic_linker='NetBSD (a.out) ld.so'
11788 else
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 dynamic_linker='NetBSD ld.elf_so'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11798 newsos6)
11799 version_type=linux
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11805 *nto* | *qnx*)
11806 version_type=qnx
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=no
11813 hardcode_into_libs=yes
11814 dynamic_linker='ldqnx.so'
11817 openbsd*)
11818 version_type=sunos
11819 sys_lib_dlsearch_path_spec="/usr/lib"
11820 need_lib_prefix=no
11821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11822 case $host_os in
11823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11824 *) need_version=no ;;
11825 esac
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11830 case $host_os in
11831 openbsd2.[89] | openbsd2.[89].*)
11832 shlibpath_overrides_runpath=no
11835 shlibpath_overrides_runpath=yes
11837 esac
11838 else
11839 shlibpath_overrides_runpath=yes
11843 os2*)
11844 libname_spec='$name'
11845 shrext_cmds=".dll"
11846 need_lib_prefix=no
11847 library_names_spec='$libname${shared_ext} $libname.a'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=LIBPATH
11852 osf3* | osf4* | osf5*)
11853 version_type=osf
11854 need_lib_prefix=no
11855 need_version=no
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11863 rdos*)
11864 dynamic_linker=no
11867 solaris*)
11868 version_type=linux
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11876 # ldd complains unless libraries are executable
11877 postinstall_cmds='chmod +x $lib'
11880 sunos4*)
11881 version_type=sunos
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=yes
11886 if test "$with_gnu_ld" = yes; then
11887 need_lib_prefix=no
11889 need_version=yes
11892 sysv4 | sysv4.3*)
11893 version_type=linux
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 case $host_vendor in
11898 sni)
11899 shlibpath_overrides_runpath=no
11900 need_lib_prefix=no
11901 runpath_var=LD_RUN_PATH
11903 siemens)
11904 need_lib_prefix=no
11906 motorola)
11907 need_lib_prefix=no
11908 need_version=no
11909 shlibpath_overrides_runpath=no
11910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11912 esac
11915 sysv4*MP*)
11916 if test -d /usr/nec ;then
11917 version_type=linux
11918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11919 soname_spec='$libname${shared_ext}.$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11925 version_type=freebsd-elf
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11932 hardcode_into_libs=yes
11933 if test "$with_gnu_ld" = yes; then
11934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11935 else
11936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11937 case $host_os in
11938 sco3.2v5*)
11939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11941 esac
11943 sys_lib_dlsearch_path_spec='/usr/lib'
11946 tpf*)
11947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11948 version_type=linux
11949 need_lib_prefix=no
11950 need_version=no
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11954 hardcode_into_libs=yes
11957 uts4*)
11958 version_type=linux
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 shlibpath_var=LD_LIBRARY_PATH
11965 dynamic_linker=no
11967 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11969 $as_echo "$dynamic_linker" >&6; }
11970 test "$dynamic_linker" = no && can_build_shared=no
11972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11973 if test "$GCC" = yes; then
11974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11978 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11980 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11981 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12077 hardcode_action=
12078 if test -n "$hardcode_libdir_flag_spec" ||
12079 test -n "$runpath_var" ||
12080 test "X$hardcode_automatic" = "Xyes" ; then
12082 # We can hardcode non-existent directories.
12083 if test "$hardcode_direct" != no &&
12084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12085 # have to relink, otherwise we might link with an installed library
12086 # when we should be linking with a yet-to-be-installed one
12087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12088 test "$hardcode_minus_L" != no; then
12089 # Linking always hardcodes the temporary library directory.
12090 hardcode_action=relink
12091 else
12092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12093 hardcode_action=immediate
12095 else
12096 # We cannot hardcode anything, or else we can only hardcode existing
12097 # directories.
12098 hardcode_action=unsupported
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12101 $as_echo "$hardcode_action" >&6; }
12103 if test "$hardcode_action" = relink ||
12104 test "$inherit_rpath" = yes; then
12105 # Fast installation is not supported
12106 enable_fast_install=no
12107 elif test "$shlibpath_overrides_runpath" = yes ||
12108 test "$enable_shared" = no; then
12109 # Fast installation is not necessary
12110 enable_fast_install=needless
12118 if test "x$enable_dlopen" != xyes; then
12119 enable_dlopen=unknown
12120 enable_dlopen_self=unknown
12121 enable_dlopen_self_static=unknown
12122 else
12123 lt_cv_dlopen=no
12124 lt_cv_dlopen_libs=
12126 case $host_os in
12127 beos*)
12128 lt_cv_dlopen="load_add_on"
12129 lt_cv_dlopen_libs=
12130 lt_cv_dlopen_self=yes
12133 mingw* | pw32* | cegcc*)
12134 lt_cv_dlopen="LoadLibrary"
12135 lt_cv_dlopen_libs=
12138 cygwin*)
12139 lt_cv_dlopen="dlopen"
12140 lt_cv_dlopen_libs=
12143 darwin*)
12144 # if libdl is installed we need to link against it
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-ldl $LIBS"
12152 if test x$gcc_no_link = xyes; then
12153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char dlopen ();
12166 main ()
12168 return dlopen ();
12170 return 0;
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"; then :
12174 ac_cv_lib_dl_dlopen=yes
12175 else
12176 ac_cv_lib_dl_dlopen=no
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12186 else
12188 lt_cv_dlopen="dyld"
12189 lt_cv_dlopen_libs=
12190 lt_cv_dlopen_self=yes
12197 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12198 if test "x$ac_cv_func_shl_load" = x""yes; then :
12199 lt_cv_dlopen="shl_load"
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12202 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12203 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 ac_check_lib_save_LIBS=$LIBS
12207 LIBS="-ldld $LIBS"
12208 if test x$gcc_no_link = xyes; then
12209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char shl_load ();
12222 main ()
12224 return shl_load ();
12226 return 0;
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_dld_shl_load=yes
12231 else
12232 ac_cv_lib_dld_shl_load=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12239 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12240 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12241 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12242 else
12243 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12244 if test "x$ac_cv_func_dlopen" = x""yes; then :
12245 lt_cv_dlopen="dlopen"
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldl $LIBS"
12254 if test x$gcc_no_link = xyes; then
12255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char dlopen ();
12268 main ()
12270 return dlopen ();
12272 return 0;
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_dl_dlopen=yes
12277 else
12278 ac_cv_lib_dl_dlopen=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12286 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lsvld $LIBS"
12296 if test x$gcc_no_link = xyes; then
12297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char dlopen ();
12310 main ()
12312 return dlopen ();
12314 return 0;
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_svld_dlopen=yes
12319 else
12320 ac_cv_lib_svld_dlopen=no
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12333 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldld $LIBS"
12338 if test x$gcc_no_link = xyes; then
12339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dld_link ();
12352 main ()
12354 return dld_link ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_dld_dld_link=yes
12361 else
12362 ac_cv_lib_dld_dld_link=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12369 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12370 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12371 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12390 esac
12392 if test "x$lt_cv_dlopen" != xno; then
12393 enable_dlopen=yes
12394 else
12395 enable_dlopen=no
12398 case $lt_cv_dlopen in
12399 dlopen)
12400 save_CPPFLAGS="$CPPFLAGS"
12401 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12403 save_LDFLAGS="$LDFLAGS"
12404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12406 save_LIBS="$LIBS"
12407 LIBS="$lt_cv_dlopen_libs $LIBS"
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12410 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12411 if test "${lt_cv_dlopen_self+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 if test "$cross_compiling" = yes; then :
12415 lt_cv_dlopen_self=cross
12416 else
12417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12418 lt_status=$lt_dlunknown
12419 cat > conftest.$ac_ext <<_LT_EOF
12420 #line 12420 "configure"
12421 #include "confdefs.h"
12423 #if HAVE_DLFCN_H
12424 #include <dlfcn.h>
12425 #endif
12427 #include <stdio.h>
12429 #ifdef RTLD_GLOBAL
12430 # define LT_DLGLOBAL RTLD_GLOBAL
12431 #else
12432 # ifdef DL_GLOBAL
12433 # define LT_DLGLOBAL DL_GLOBAL
12434 # else
12435 # define LT_DLGLOBAL 0
12436 # endif
12437 #endif
12439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12440 find out it does not work in some platform. */
12441 #ifndef LT_DLLAZY_OR_NOW
12442 # ifdef RTLD_LAZY
12443 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12444 # else
12445 # ifdef DL_LAZY
12446 # define LT_DLLAZY_OR_NOW DL_LAZY
12447 # else
12448 # ifdef RTLD_NOW
12449 # define LT_DLLAZY_OR_NOW RTLD_NOW
12450 # else
12451 # ifdef DL_NOW
12452 # define LT_DLLAZY_OR_NOW DL_NOW
12453 # else
12454 # define LT_DLLAZY_OR_NOW 0
12455 # endif
12456 # endif
12457 # endif
12458 # endif
12459 #endif
12461 /* When -fvisbility=hidden is used, assume the code has been annotated
12462 correspondingly for the symbols needed. */
12463 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12464 void fnord () __attribute__((visibility("default")));
12465 #endif
12467 void fnord () { int i=42; }
12468 int main ()
12470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12471 int status = $lt_dlunknown;
12473 if (self)
12475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12476 else
12478 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12479 else puts (dlerror ());
12481 /* dlclose (self); */
12483 else
12484 puts (dlerror ());
12486 return status;
12488 _LT_EOF
12489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12490 (eval $ac_link) 2>&5
12491 ac_status=$?
12492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12493 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12494 (./conftest; exit; ) >&5 2>/dev/null
12495 lt_status=$?
12496 case x$lt_status in
12497 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12498 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12499 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12500 esac
12501 else :
12502 # compilation failed
12503 lt_cv_dlopen_self=no
12506 rm -fr conftest*
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12511 $as_echo "$lt_cv_dlopen_self" >&6; }
12513 if test "x$lt_cv_dlopen_self" = xyes; then
12514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12516 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12517 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 if test "$cross_compiling" = yes; then :
12521 lt_cv_dlopen_self_static=cross
12522 else
12523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12524 lt_status=$lt_dlunknown
12525 cat > conftest.$ac_ext <<_LT_EOF
12526 #line 12526 "configure"
12527 #include "confdefs.h"
12529 #if HAVE_DLFCN_H
12530 #include <dlfcn.h>
12531 #endif
12533 #include <stdio.h>
12535 #ifdef RTLD_GLOBAL
12536 # define LT_DLGLOBAL RTLD_GLOBAL
12537 #else
12538 # ifdef DL_GLOBAL
12539 # define LT_DLGLOBAL DL_GLOBAL
12540 # else
12541 # define LT_DLGLOBAL 0
12542 # endif
12543 #endif
12545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12546 find out it does not work in some platform. */
12547 #ifndef LT_DLLAZY_OR_NOW
12548 # ifdef RTLD_LAZY
12549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12550 # else
12551 # ifdef DL_LAZY
12552 # define LT_DLLAZY_OR_NOW DL_LAZY
12553 # else
12554 # ifdef RTLD_NOW
12555 # define LT_DLLAZY_OR_NOW RTLD_NOW
12556 # else
12557 # ifdef DL_NOW
12558 # define LT_DLLAZY_OR_NOW DL_NOW
12559 # else
12560 # define LT_DLLAZY_OR_NOW 0
12561 # endif
12562 # endif
12563 # endif
12564 # endif
12565 #endif
12567 /* When -fvisbility=hidden is used, assume the code has been annotated
12568 correspondingly for the symbols needed. */
12569 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12570 void fnord () __attribute__((visibility("default")));
12571 #endif
12573 void fnord () { int i=42; }
12574 int main ()
12576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12577 int status = $lt_dlunknown;
12579 if (self)
12581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12582 else
12584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12585 else puts (dlerror ());
12587 /* dlclose (self); */
12589 else
12590 puts (dlerror ());
12592 return status;
12594 _LT_EOF
12595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12596 (eval $ac_link) 2>&5
12597 ac_status=$?
12598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12600 (./conftest; exit; ) >&5 2>/dev/null
12601 lt_status=$?
12602 case x$lt_status in
12603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12606 esac
12607 else :
12608 # compilation failed
12609 lt_cv_dlopen_self_static=no
12612 rm -fr conftest*
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12617 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12620 CPPFLAGS="$save_CPPFLAGS"
12621 LDFLAGS="$save_LDFLAGS"
12622 LIBS="$save_LIBS"
12624 esac
12626 case $lt_cv_dlopen_self in
12627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12628 *) enable_dlopen_self=unknown ;;
12629 esac
12631 case $lt_cv_dlopen_self_static in
12632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12633 *) enable_dlopen_self_static=unknown ;;
12634 esac
12653 striplib=
12654 old_striplib=
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12656 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12657 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12659 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661 $as_echo "yes" >&6; }
12662 else
12663 # FIXME - insert some real tests, host_os isn't really good enough
12664 case $host_os in
12665 darwin*)
12666 if test -n "$STRIP" ; then
12667 striplib="$STRIP -x"
12668 old_striplib="$STRIP -S"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12670 $as_echo "yes" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12680 esac
12694 # Report which library types will actually be built
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12696 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12698 $as_echo "$can_build_shared" >&6; }
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12701 $as_echo_n "checking whether to build shared libraries... " >&6; }
12702 test "$can_build_shared" = "no" && enable_shared=no
12704 # On AIX, shared libraries and static libraries use the same namespace, and
12705 # are all built from PIC.
12706 case $host_os in
12707 aix3*)
12708 test "$enable_shared" = yes && enable_static=no
12709 if test -n "$RANLIB"; then
12710 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12711 postinstall_cmds='$RANLIB $lib'
12715 aix[4-9]*)
12716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12717 test "$enable_shared" = yes && enable_static=no
12720 esac
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12722 $as_echo "$enable_shared" >&6; }
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12725 $as_echo_n "checking whether to build static libraries... " >&6; }
12726 # Make sure either enable_shared or enable_static is yes.
12727 test "$enable_shared" = yes || enable_static=yes
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12729 $as_echo "$enable_static" >&6; }
12735 ac_ext=c
12736 ac_cpp='$CPP $CPPFLAGS'
12737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741 CC="$lt_save_CC"
12755 ac_config_commands="$ac_config_commands libtool"
12760 # Only expand once:
12766 case $host in
12767 *-cygwin* | *-mingw*)
12768 # 'host' will be top-level target in the case of a target lib,
12769 # we must compare to with_cross_host to decide if this is a native
12770 # or cross-compiler and select where to install dlls appropriately.
12771 if test -n "$with_cross_host" &&
12772 test x"$with_cross_host" != x"no"; then
12773 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12774 else
12775 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12779 lt_host_flags=
12781 esac
12787 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12789 # We need gfortran to compile parts of the library
12790 #AC_PROG_FC(gfortran)
12791 FC="$GFORTRAN"
12792 ac_ext=${ac_fc_srcext-f}
12793 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12794 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12796 if test -n "$ac_tool_prefix"; then
12797 for ac_prog in gfortran
12799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_prog_FC+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$FC"; then
12807 ac_cv_prog_FC="$FC" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12826 FC=$ac_cv_prog_FC
12827 if test -n "$FC"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12829 $as_echo "$FC" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12836 test -n "$FC" && break
12837 done
12839 if test -z "$FC"; then
12840 ac_ct_FC=$FC
12841 for ac_prog in gfortran
12843 # Extract the first word of "$ac_prog", so it can be a program name with args.
12844 set dummy $ac_prog; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test -n "$ac_ct_FC"; then
12851 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12852 else
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860 ac_cv_prog_ac_ct_FC="$ac_prog"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12864 done
12865 done
12866 IFS=$as_save_IFS
12870 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12871 if test -n "$ac_ct_FC"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12873 $as_echo "$ac_ct_FC" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12880 test -n "$ac_ct_FC" && break
12881 done
12883 if test "x$ac_ct_FC" = x; then
12884 FC=""
12885 else
12886 case $cross_compiling:$ac_tool_warned in
12887 yes:)
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12890 ac_tool_warned=yes ;;
12891 esac
12892 FC=$ac_ct_FC
12897 # Provide some information about the compiler.
12898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12899 set X $ac_compile
12900 ac_compiler=$2
12901 for ac_option in --version -v -V -qversion; do
12902 { { ac_try="$ac_compiler $ac_option >&5"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12908 $as_echo "$ac_try_echo"; } >&5
12909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12910 ac_status=$?
12911 if test -s conftest.err; then
12912 sed '10a\
12913 ... rest of stderr output deleted ...
12914 10q' conftest.err >conftest.er1
12915 cat conftest.er1 >&5
12916 rm -f conftest.er1 conftest.err
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; }
12920 done
12921 rm -f a.out
12923 # If we don't use `.F' as extension, the preprocessor is not run on the
12924 # input file. (Note that this only needs to work for GNU compilers.)
12925 ac_save_ext=$ac_ext
12926 ac_ext=F
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12928 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12929 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 cat > conftest.$ac_ext <<_ACEOF
12933 program main
12934 #ifndef __GNUC__
12935 choke me
12936 #endif
12939 _ACEOF
12940 if ac_fn_fc_try_compile "$LINENO"; then :
12941 ac_compiler_gnu=yes
12942 else
12943 ac_compiler_gnu=no
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12950 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12951 ac_ext=$ac_save_ext
12952 ac_test_FCFLAGS=${FCFLAGS+set}
12953 ac_save_FCFLAGS=$FCFLAGS
12954 FCFLAGS=
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12956 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12957 if test "${ac_cv_prog_fc_g+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 FCFLAGS=-g
12961 cat > conftest.$ac_ext <<_ACEOF
12962 program main
12965 _ACEOF
12966 if ac_fn_fc_try_compile "$LINENO"; then :
12967 ac_cv_prog_fc_g=yes
12968 else
12969 ac_cv_prog_fc_g=no
12971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12975 $as_echo "$ac_cv_prog_fc_g" >&6; }
12976 if test "$ac_test_FCFLAGS" = set; then
12977 FCFLAGS=$ac_save_FCFLAGS
12978 elif test $ac_cv_prog_fc_g = yes; then
12979 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12980 FCFLAGS="-g -O2"
12981 else
12982 FCFLAGS="-g"
12984 else
12985 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12986 FCFLAGS="-O2"
12987 else
12988 FCFLAGS=
12992 ac_ext=c
12993 ac_cpp='$CPP $CPPFLAGS'
12994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998 ac_ext=${ac_fc_srcext-f}
12999 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13000 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13001 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13004 if test -z "$FC" || test "X$FC" = "Xno"; then
13005 _lt_disable_FC=yes
13008 archive_cmds_need_lc_FC=no
13009 allow_undefined_flag_FC=
13010 always_export_symbols_FC=no
13011 archive_expsym_cmds_FC=
13012 export_dynamic_flag_spec_FC=
13013 hardcode_direct_FC=no
13014 hardcode_direct_absolute_FC=no
13015 hardcode_libdir_flag_spec_FC=
13016 hardcode_libdir_flag_spec_ld_FC=
13017 hardcode_libdir_separator_FC=
13018 hardcode_minus_L_FC=no
13019 hardcode_automatic_FC=no
13020 inherit_rpath_FC=no
13021 module_cmds_FC=
13022 module_expsym_cmds_FC=
13023 link_all_deplibs_FC=unknown
13024 old_archive_cmds_FC=$old_archive_cmds
13025 reload_flag_FC=$reload_flag
13026 reload_cmds_FC=$reload_cmds
13027 no_undefined_flag_FC=
13028 whole_archive_flag_spec_FC=
13029 enable_shared_with_static_runtimes_FC=no
13031 # Source file extension for fc test sources.
13032 ac_ext=${ac_fc_srcext-f}
13034 # Object file extension for compiled fc test sources.
13035 objext=o
13036 objext_FC=$objext
13038 # No sense in running all these tests if we already determined that
13039 # the FC compiler isn't working. Some variables (like enable_shared)
13040 # are currently assumed to apply to all compilers on this platform,
13041 # and will be corrupted by setting them based on a non-working compiler.
13042 if test "$_lt_disable_FC" != yes; then
13043 # Code to be used in simple compile tests
13044 lt_simple_compile_test_code="\
13045 subroutine t
13046 return
13050 # Code to be used in simple link tests
13051 lt_simple_link_test_code="\
13052 program t
13056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13063 # If no C compiler was specified, use CC.
13064 LTCC=${LTCC-"$CC"}
13066 # If no C compiler flags were specified, use CFLAGS.
13067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13069 # Allow CC to be a program name with arguments.
13070 compiler=$CC
13073 # save warnings/boilerplate of simple test code
13074 ac_outfile=conftest.$ac_objext
13075 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13077 _lt_compiler_boilerplate=`cat conftest.err`
13078 $RM conftest*
13080 ac_outfile=conftest.$ac_objext
13081 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13083 _lt_linker_boilerplate=`cat conftest.err`
13084 $RM -r conftest*
13087 # Allow CC to be a program name with arguments.
13088 lt_save_CC="$CC"
13089 lt_save_GCC=$GCC
13090 CC=${FC-"f95"}
13091 compiler=$CC
13092 GCC=$ac_cv_fc_compiler_gnu
13094 compiler_FC=$CC
13095 for cc_temp in $compiler""; do
13096 case $cc_temp in
13097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099 \-*) ;;
13100 *) break;;
13101 esac
13102 done
13103 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13106 if test -n "$compiler"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13108 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13110 $as_echo "$can_build_shared" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13113 $as_echo_n "checking whether to build shared libraries... " >&6; }
13114 test "$can_build_shared" = "no" && enable_shared=no
13116 # On AIX, shared libraries and static libraries use the same namespace, and
13117 # are all built from PIC.
13118 case $host_os in
13119 aix3*)
13120 test "$enable_shared" = yes && enable_static=no
13121 if test -n "$RANLIB"; then
13122 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13123 postinstall_cmds='$RANLIB $lib'
13126 aix[4-9]*)
13127 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13128 test "$enable_shared" = yes && enable_static=no
13131 esac
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13133 $as_echo "$enable_shared" >&6; }
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13136 $as_echo_n "checking whether to build static libraries... " >&6; }
13137 # Make sure either enable_shared or enable_static is yes.
13138 test "$enable_shared" = yes || enable_static=yes
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13140 $as_echo "$enable_static" >&6; }
13142 GCC_FC="$ac_cv_fc_compiler_gnu"
13143 LD_FC="$LD"
13145 ## CAVEAT EMPTOR:
13146 ## There is no encapsulation within the following macros, do not change
13147 ## the running order or otherwise move them around unless you know exactly
13148 ## what you are doing...
13149 # Dependencies to place before and after the object being linked:
13150 predep_objects_FC=
13151 postdep_objects_FC=
13152 predeps_FC=
13153 postdeps_FC=
13154 compiler_lib_search_path_FC=
13156 cat > conftest.$ac_ext <<_LT_EOF
13157 subroutine foo
13158 implicit none
13159 integer a
13161 return
13163 _LT_EOF
13165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169 test $ac_status = 0; }; then
13170 # Parse the compiler output and extract the necessary
13171 # objects, libraries and library flags.
13173 # Sentinel used to keep track of whether or not we are before
13174 # the conftest object file.
13175 pre_test_object_deps_done=no
13177 for p in `eval "$output_verbose_link_cmd"`; do
13178 case $p in
13180 -L* | -R* | -l*)
13181 # Some compilers place space between "-{L,R}" and the path.
13182 # Remove the space.
13183 if test $p = "-L" ||
13184 test $p = "-R"; then
13185 prev=$p
13186 continue
13187 else
13188 prev=
13191 if test "$pre_test_object_deps_done" = no; then
13192 case $p in
13193 -L* | -R*)
13194 # Internal compiler library paths should come after those
13195 # provided the user. The postdeps already come after the
13196 # user supplied libs so there is no need to process them.
13197 if test -z "$compiler_lib_search_path_FC"; then
13198 compiler_lib_search_path_FC="${prev}${p}"
13199 else
13200 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13203 # The "-l" case would never come before the object being
13204 # linked, so don't bother handling this case.
13205 esac
13206 else
13207 if test -z "$postdeps_FC"; then
13208 postdeps_FC="${prev}${p}"
13209 else
13210 postdeps_FC="${postdeps_FC} ${prev}${p}"
13215 *.$objext)
13216 # This assumes that the test object file only shows up
13217 # once in the compiler output.
13218 if test "$p" = "conftest.$objext"; then
13219 pre_test_object_deps_done=yes
13220 continue
13223 if test "$pre_test_object_deps_done" = no; then
13224 if test -z "$predep_objects_FC"; then
13225 predep_objects_FC="$p"
13226 else
13227 predep_objects_FC="$predep_objects_FC $p"
13229 else
13230 if test -z "$postdep_objects_FC"; then
13231 postdep_objects_FC="$p"
13232 else
13233 postdep_objects_FC="$postdep_objects_FC $p"
13238 *) ;; # Ignore the rest.
13240 esac
13241 done
13243 # Clean up.
13244 rm -f a.out a.exe
13245 else
13246 echo "libtool.m4: error: problem compiling FC test program"
13249 $RM -f confest.$objext
13251 # PORTME: override above test on systems where it is broken
13254 case " $postdeps_FC " in
13255 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13256 esac
13257 compiler_lib_search_dirs_FC=
13258 if test -n "${compiler_lib_search_path_FC}"; then
13259 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13292 lt_prog_compiler_wl_FC=
13293 lt_prog_compiler_pic_FC=
13294 lt_prog_compiler_static_FC=
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13297 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13299 if test "$GCC" = yes; then
13300 lt_prog_compiler_wl_FC='-Wl,'
13301 lt_prog_compiler_static_FC='-static'
13303 case $host_os in
13304 aix*)
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_FC='-Bstatic'
13310 lt_prog_compiler_pic_FC='-fPIC'
13313 amigaos*)
13314 case $host_cpu in
13315 powerpc)
13316 # see comment about AmigaOS4 .so support
13317 lt_prog_compiler_pic_FC='-fPIC'
13319 m68k)
13320 # FIXME: we need at least 68020 code to build shared libraries, but
13321 # adding the `-m68020' flag to GCC prevents building anything better,
13322 # like `-m68040'.
13323 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13325 esac
13328 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13329 # PIC is the default for these OSes.
13332 mingw* | cygwin* | pw32* | os2* | cegcc*)
13333 # This hack is so that the source file can tell whether it is being
13334 # built for inclusion in a dll (and should export symbols for example).
13335 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13336 # (--disable-auto-import) libraries
13337 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13340 darwin* | rhapsody*)
13341 # PIC is the default on this platform
13342 # Common symbols not allowed in MH_DYLIB files
13343 lt_prog_compiler_pic_FC='-fno-common'
13346 haiku*)
13347 # PIC is the default for Haiku.
13348 # The "-static" flag exists, but is broken.
13349 lt_prog_compiler_static_FC=
13352 hpux*)
13353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13355 # sets the default TLS model and affects inlining.
13356 case $host_cpu in
13357 hppa*64*)
13358 # +Z the default
13361 lt_prog_compiler_pic_FC='-fPIC'
13363 esac
13366 interix[3-9]*)
13367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13368 # Instead, we relocate shared libraries at runtime.
13371 msdosdjgpp*)
13372 # Just because we use GCC doesn't mean we suddenly get shared libraries
13373 # on systems that don't support them.
13374 lt_prog_compiler_can_build_shared_FC=no
13375 enable_shared=no
13378 *nto* | *qnx*)
13379 # QNX uses GNU C++, but need to define -shared option too, otherwise
13380 # it will coredump.
13381 lt_prog_compiler_pic_FC='-fPIC -shared'
13384 sysv4*MP*)
13385 if test -d /usr/nec; then
13386 lt_prog_compiler_pic_FC=-Kconform_pic
13391 lt_prog_compiler_pic_FC='-fPIC'
13393 esac
13395 case $cc_basename in
13396 nvcc*) # Cuda Compiler Driver 2.2
13397 lt_prog_compiler_wl_FC='-Xlinker '
13398 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13400 esac
13401 else
13402 # PORTME Check for flag to pass linker flags through the system compiler.
13403 case $host_os in
13404 aix*)
13405 lt_prog_compiler_wl_FC='-Wl,'
13406 if test "$host_cpu" = ia64; then
13407 # AIX 5 now supports IA64 processor
13408 lt_prog_compiler_static_FC='-Bstatic'
13409 else
13410 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13414 mingw* | cygwin* | pw32* | os2* | cegcc*)
13415 # This hack is so that the source file can tell whether it is being
13416 # built for inclusion in a dll (and should export symbols for example).
13417 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13420 hpux9* | hpux10* | hpux11*)
13421 lt_prog_compiler_wl_FC='-Wl,'
13422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13423 # not for PA HP-UX.
13424 case $host_cpu in
13425 hppa*64*|ia64*)
13426 # +Z the default
13429 lt_prog_compiler_pic_FC='+Z'
13431 esac
13432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13433 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13436 irix5* | irix6* | nonstopux*)
13437 lt_prog_compiler_wl_FC='-Wl,'
13438 # PIC (with -KPIC) is the default.
13439 lt_prog_compiler_static_FC='-non_shared'
13442 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13443 case $cc_basename in
13444 # old Intel for x86_64 which still supported -KPIC.
13445 ecc*)
13446 lt_prog_compiler_wl_FC='-Wl,'
13447 lt_prog_compiler_pic_FC='-KPIC'
13448 lt_prog_compiler_static_FC='-static'
13450 # icc used to be incompatible with GCC.
13451 # ICC 10 doesn't accept -KPIC any more.
13452 icc* | ifort*)
13453 lt_prog_compiler_wl_FC='-Wl,'
13454 lt_prog_compiler_pic_FC='-fPIC'
13455 lt_prog_compiler_static_FC='-static'
13457 # Lahey Fortran 8.1.
13458 lf95*)
13459 lt_prog_compiler_wl_FC='-Wl,'
13460 lt_prog_compiler_pic_FC='--shared'
13461 lt_prog_compiler_static_FC='--static'
13463 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13464 # Portland Group compilers (*not* the Pentium gcc compiler,
13465 # which looks to be a dead project)
13466 lt_prog_compiler_wl_FC='-Wl,'
13467 lt_prog_compiler_pic_FC='-fpic'
13468 lt_prog_compiler_static_FC='-Bstatic'
13470 ccc*)
13471 lt_prog_compiler_wl_FC='-Wl,'
13472 # All Alpha code is PIC.
13473 lt_prog_compiler_static_FC='-non_shared'
13475 xl* | bgxl* | bgf* | mpixl*)
13476 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13477 lt_prog_compiler_wl_FC='-Wl,'
13478 lt_prog_compiler_pic_FC='-qpic'
13479 lt_prog_compiler_static_FC='-qstaticlink'
13482 case `$CC -V 2>&1 | sed 5q` in
13483 *Sun\ F* | *Sun*Fortran*)
13484 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13485 lt_prog_compiler_pic_FC='-KPIC'
13486 lt_prog_compiler_static_FC='-Bstatic'
13487 lt_prog_compiler_wl_FC=''
13489 *Sun\ C*)
13490 # Sun C 5.9
13491 lt_prog_compiler_pic_FC='-KPIC'
13492 lt_prog_compiler_static_FC='-Bstatic'
13493 lt_prog_compiler_wl_FC='-Wl,'
13495 esac
13497 esac
13500 newsos6)
13501 lt_prog_compiler_pic_FC='-KPIC'
13502 lt_prog_compiler_static_FC='-Bstatic'
13505 *nto* | *qnx*)
13506 # QNX uses GNU C++, but need to define -shared option too, otherwise
13507 # it will coredump.
13508 lt_prog_compiler_pic_FC='-fPIC -shared'
13511 osf3* | osf4* | osf5*)
13512 lt_prog_compiler_wl_FC='-Wl,'
13513 # All OSF/1 code is PIC.
13514 lt_prog_compiler_static_FC='-non_shared'
13517 rdos*)
13518 lt_prog_compiler_static_FC='-non_shared'
13521 solaris*)
13522 lt_prog_compiler_pic_FC='-KPIC'
13523 lt_prog_compiler_static_FC='-Bstatic'
13524 case $cc_basename in
13525 f77* | f90* | f95*)
13526 lt_prog_compiler_wl_FC='-Qoption ld ';;
13528 lt_prog_compiler_wl_FC='-Wl,';;
13529 esac
13532 sunos4*)
13533 lt_prog_compiler_wl_FC='-Qoption ld '
13534 lt_prog_compiler_pic_FC='-PIC'
13535 lt_prog_compiler_static_FC='-Bstatic'
13538 sysv4 | sysv4.2uw2* | sysv4.3*)
13539 lt_prog_compiler_wl_FC='-Wl,'
13540 lt_prog_compiler_pic_FC='-KPIC'
13541 lt_prog_compiler_static_FC='-Bstatic'
13544 sysv4*MP*)
13545 if test -d /usr/nec ;then
13546 lt_prog_compiler_pic_FC='-Kconform_pic'
13547 lt_prog_compiler_static_FC='-Bstatic'
13551 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13552 lt_prog_compiler_wl_FC='-Wl,'
13553 lt_prog_compiler_pic_FC='-KPIC'
13554 lt_prog_compiler_static_FC='-Bstatic'
13557 unicos*)
13558 lt_prog_compiler_wl_FC='-Wl,'
13559 lt_prog_compiler_can_build_shared_FC=no
13562 uts4*)
13563 lt_prog_compiler_pic_FC='-pic'
13564 lt_prog_compiler_static_FC='-Bstatic'
13568 lt_prog_compiler_can_build_shared_FC=no
13570 esac
13573 case $host_os in
13574 # For platforms which do not support PIC, -DPIC is meaningless:
13575 *djgpp*)
13576 lt_prog_compiler_pic_FC=
13579 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13581 esac
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13583 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13588 # Check to make sure the PIC flag actually works.
13590 if test -n "$lt_prog_compiler_pic_FC"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13592 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13593 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 lt_cv_prog_compiler_pic_works_FC=no
13597 ac_outfile=conftest.$ac_objext
13598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13599 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13600 # Insert the option either (1) after the last *FLAGS variable, or
13601 # (2) before a word containing "conftest.", or (3) at the end.
13602 # Note that $ac_compile itself does not contain backslashes and begins
13603 # with a dollar sign (not a hyphen), so the echo should work correctly.
13604 # The option is referenced via a variable to avoid confusing sed.
13605 lt_compile=`echo "$ac_compile" | $SED \
13606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608 -e 's:$: $lt_compiler_flag:'`
13609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13610 (eval "$lt_compile" 2>conftest.err)
13611 ac_status=$?
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 if (exit $ac_status) && test -s "$ac_outfile"; then
13615 # The compiler can only warn and ignore the option if not recognized
13616 # So say no if there are warnings other than the usual output.
13617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13619 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13620 lt_cv_prog_compiler_pic_works_FC=yes
13623 $RM conftest*
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13627 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13629 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13630 case $lt_prog_compiler_pic_FC in
13631 "" | " "*) ;;
13632 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13633 esac
13634 else
13635 lt_prog_compiler_pic_FC=
13636 lt_prog_compiler_can_build_shared_FC=no
13644 # Check to make sure the static flag actually works.
13646 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13649 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 lt_cv_prog_compiler_static_works_FC=no
13653 save_LDFLAGS="$LDFLAGS"
13654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13657 # The linker can only warn and ignore the option if not recognized
13658 # So say no if there are warnings
13659 if test -s conftest.err; then
13660 # Append any errors to the config.log.
13661 cat conftest.err 1>&5
13662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13664 if diff conftest.exp conftest.er2 >/dev/null; then
13665 lt_cv_prog_compiler_static_works_FC=yes
13667 else
13668 lt_cv_prog_compiler_static_works_FC=yes
13671 $RM -r conftest*
13672 LDFLAGS="$save_LDFLAGS"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13676 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13678 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13680 else
13681 lt_prog_compiler_static_FC=
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13689 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 lt_cv_prog_compiler_c_o_FC=no
13693 $RM -r conftest 2>/dev/null
13694 mkdir conftest
13695 cd conftest
13696 mkdir out
13697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13699 lt_compiler_flag="-o out/conftest2.$ac_objext"
13700 # Insert the option either (1) after the last *FLAGS variable, or
13701 # (2) before a word containing "conftest.", or (3) at the end.
13702 # Note that $ac_compile itself does not contain backslashes and begins
13703 # with a dollar sign (not a hyphen), so the echo should work correctly.
13704 lt_compile=`echo "$ac_compile" | $SED \
13705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13707 -e 's:$: $lt_compiler_flag:'`
13708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13709 (eval "$lt_compile" 2>out/conftest.err)
13710 ac_status=$?
13711 cat out/conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13714 then
13715 # The compiler can only warn and ignore the option if not recognized
13716 # So say no if there are warnings
13717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13720 lt_cv_prog_compiler_c_o_FC=yes
13723 chmod u+w . 2>&5
13724 $RM conftest*
13725 # SGI C++ compiler will create directory out/ii_files/ for
13726 # template instantiation
13727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13728 $RM out/* && rmdir out
13729 cd ..
13730 $RM -r conftest
13731 $RM conftest*
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13735 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13741 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 lt_cv_prog_compiler_c_o_FC=no
13745 $RM -r conftest 2>/dev/null
13746 mkdir conftest
13747 cd conftest
13748 mkdir out
13749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13751 lt_compiler_flag="-o out/conftest2.$ac_objext"
13752 # Insert the option either (1) after the last *FLAGS variable, or
13753 # (2) before a word containing "conftest.", or (3) at the end.
13754 # Note that $ac_compile itself does not contain backslashes and begins
13755 # with a dollar sign (not a hyphen), so the echo should work correctly.
13756 lt_compile=`echo "$ac_compile" | $SED \
13757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13759 -e 's:$: $lt_compiler_flag:'`
13760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13761 (eval "$lt_compile" 2>out/conftest.err)
13762 ac_status=$?
13763 cat out/conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13766 then
13767 # The compiler can only warn and ignore the option if not recognized
13768 # So say no if there are warnings
13769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13772 lt_cv_prog_compiler_c_o_FC=yes
13775 chmod u+w . 2>&5
13776 $RM conftest*
13777 # SGI C++ compiler will create directory out/ii_files/ for
13778 # template instantiation
13779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13780 $RM out/* && rmdir out
13781 cd ..
13782 $RM -r conftest
13783 $RM conftest*
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13787 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13792 hard_links="nottested"
13793 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13794 # do not overwrite the value of need_locks provided by the user
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13796 $as_echo_n "checking if we can lock with hard links... " >&6; }
13797 hard_links=yes
13798 $RM conftest*
13799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13800 touch conftest.a
13801 ln conftest.a conftest.b 2>&5 || hard_links=no
13802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13804 $as_echo "$hard_links" >&6; }
13805 if test "$hard_links" = no; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13807 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13808 need_locks=warn
13810 else
13811 need_locks=no
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13819 runpath_var=
13820 allow_undefined_flag_FC=
13821 always_export_symbols_FC=no
13822 archive_cmds_FC=
13823 archive_expsym_cmds_FC=
13824 compiler_needs_object_FC=no
13825 enable_shared_with_static_runtimes_FC=no
13826 export_dynamic_flag_spec_FC=
13827 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13828 hardcode_automatic_FC=no
13829 hardcode_direct_FC=no
13830 hardcode_direct_absolute_FC=no
13831 hardcode_libdir_flag_spec_FC=
13832 hardcode_libdir_flag_spec_ld_FC=
13833 hardcode_libdir_separator_FC=
13834 hardcode_minus_L_FC=no
13835 hardcode_shlibpath_var_FC=unsupported
13836 inherit_rpath_FC=no
13837 link_all_deplibs_FC=unknown
13838 module_cmds_FC=
13839 module_expsym_cmds_FC=
13840 old_archive_from_new_cmds_FC=
13841 old_archive_from_expsyms_cmds_FC=
13842 thread_safe_flag_spec_FC=
13843 whole_archive_flag_spec_FC=
13844 # include_expsyms should be a list of space-separated symbols to be *always*
13845 # included in the symbol list
13846 include_expsyms_FC=
13847 # exclude_expsyms can be an extended regexp of symbols to exclude
13848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13850 # as well as any symbol that contains `d'.
13851 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13853 # platforms (ab)use it in PIC code, but their linkers get confused if
13854 # the symbol is explicitly referenced. Since portable code cannot
13855 # rely on this symbol name, it's probably fine to never include it in
13856 # preloaded symbol tables.
13857 # Exclude shared library initialization/finalization symbols.
13858 extract_expsyms_cmds=
13860 case $host_os in
13861 cygwin* | mingw* | pw32* | cegcc*)
13862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13863 # When not using gcc, we currently assume that we are using
13864 # Microsoft Visual C++.
13865 if test "$GCC" != yes; then
13866 with_gnu_ld=no
13869 interix*)
13870 # we just hope/assume this is gcc and not c89 (= MSVC++)
13871 with_gnu_ld=yes
13873 openbsd*)
13874 with_gnu_ld=no
13876 esac
13878 ld_shlibs_FC=yes
13880 # On some targets, GNU ld is compatible enough with the native linker
13881 # that we're better off using the native interface for both.
13882 lt_use_gnu_ld_interface=no
13883 if test "$with_gnu_ld" = yes; then
13884 case $host_os in
13885 aix*)
13886 # The AIX port of GNU ld has always aspired to compatibility
13887 # with the native linker. However, as the warning in the GNU ld
13888 # block says, versions before 2.19.5* couldn't really create working
13889 # shared libraries, regardless of the interface used.
13890 case `$LD -v 2>&1` in
13891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13893 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13895 lt_use_gnu_ld_interface=yes
13897 esac
13900 lt_use_gnu_ld_interface=yes
13902 esac
13905 if test "$lt_use_gnu_ld_interface" = yes; then
13906 # If archive_cmds runs LD, not CC, wlarc should be empty
13907 wlarc='${wl}'
13909 # Set some defaults for GNU ld with shared library support. These
13910 # are reset later if shared libraries are not supported. Putting them
13911 # here allows them to be overridden if necessary.
13912 runpath_var=LD_RUN_PATH
13913 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13914 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13915 # ancient GNU ld didn't support --whole-archive et. al.
13916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13917 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13918 else
13919 whole_archive_flag_spec_FC=
13921 supports_anon_versioning=no
13922 case `$LD -v 2>&1` in
13923 *GNU\ gold*) supports_anon_versioning=yes ;;
13924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13927 *\ 2.11.*) ;; # other 2.11 versions
13928 *) supports_anon_versioning=yes ;;
13929 esac
13931 # See if GNU ld supports shared libraries.
13932 case $host_os in
13933 aix[3-9]*)
13934 # On AIX/PPC, the GNU linker is very broken
13935 if test "$host_cpu" != ia64; then
13936 ld_shlibs_FC=no
13937 cat <<_LT_EOF 1>&2
13939 *** Warning: the GNU linker, at least up to release 2.19, is reported
13940 *** to be unable to reliably create shared libraries on AIX.
13941 *** Therefore, libtool is disabling shared libraries support. If you
13942 *** really care for shared libraries, you may want to install binutils
13943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13944 *** You will then need to restart the configuration process.
13946 _LT_EOF
13950 amigaos*)
13951 case $host_cpu in
13952 powerpc)
13953 # see comment about AmigaOS4 .so support
13954 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13955 archive_expsym_cmds_FC=''
13957 m68k)
13958 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)'
13959 hardcode_libdir_flag_spec_FC='-L$libdir'
13960 hardcode_minus_L_FC=yes
13962 esac
13965 beos*)
13966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13967 allow_undefined_flag_FC=unsupported
13968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13969 # support --undefined. This deserves some investigation. FIXME
13970 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13971 else
13972 ld_shlibs_FC=no
13976 cygwin* | mingw* | pw32* | cegcc*)
13977 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13978 # as there is no search path for DLLs.
13979 hardcode_libdir_flag_spec_FC='-L$libdir'
13980 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13981 allow_undefined_flag_FC=unsupported
13982 always_export_symbols_FC=no
13983 enable_shared_with_static_runtimes_FC=yes
13984 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13987 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13988 # If the export-symbols file already is a .def file (1st line
13989 # is EXPORTS), use it as is; otherwise, prepend...
13990 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13991 cp $export_symbols $output_objdir/$soname.def;
13992 else
13993 echo EXPORTS > $output_objdir/$soname.def;
13994 cat $export_symbols >> $output_objdir/$soname.def;
13996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13997 else
13998 ld_shlibs_FC=no
14002 haiku*)
14003 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14004 link_all_deplibs_FC=yes
14007 interix[3-9]*)
14008 hardcode_direct_FC=no
14009 hardcode_shlibpath_var_FC=no
14010 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14011 export_dynamic_flag_spec_FC='${wl}-E'
14012 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14013 # Instead, shared libraries are loaded at an image base (0x10000000 by
14014 # default) and relocated if they conflict, which is a slow very memory
14015 # consuming and fragmenting process. To avoid this, we pick a random,
14016 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14017 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14018 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'
14019 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'
14022 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14023 tmp_diet=no
14024 if test "$host_os" = linux-dietlibc; then
14025 case $cc_basename in
14026 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14027 esac
14029 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14030 && test "$tmp_diet" = no
14031 then
14032 tmp_addflag=' $pic_flag'
14033 tmp_sharedflag='-shared'
14034 case $cc_basename,$host_cpu in
14035 pgcc*) # Portland Group C compiler
14036 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'
14037 tmp_addflag=' $pic_flag'
14039 pgf77* | pgf90* | pgf95* | pgfortran*)
14040 # Portland Group f77 and f90 compilers
14041 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'
14042 tmp_addflag=' $pic_flag -Mnomain' ;;
14043 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14044 tmp_addflag=' -i_dynamic' ;;
14045 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14046 tmp_addflag=' -i_dynamic -nofor_main' ;;
14047 ifc* | ifort*) # Intel Fortran compiler
14048 tmp_addflag=' -nofor_main' ;;
14049 lf95*) # Lahey Fortran 8.1
14050 whole_archive_flag_spec_FC=
14051 tmp_sharedflag='--shared' ;;
14052 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14053 tmp_sharedflag='-qmkshrobj'
14054 tmp_addflag= ;;
14055 nvcc*) # Cuda Compiler Driver 2.2
14056 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'
14057 compiler_needs_object_FC=yes
14059 esac
14060 case `$CC -V 2>&1 | sed 5q` in
14061 *Sun\ C*) # Sun C 5.9
14062 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'
14063 compiler_needs_object_FC=yes
14064 tmp_sharedflag='-G' ;;
14065 *Sun\ F*) # Sun Fortran 8.3
14066 tmp_sharedflag='-G' ;;
14067 esac
14068 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 if test "x$supports_anon_versioning" = xyes; then
14071 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 echo "local: *; };" >> $output_objdir/$libname.ver~
14074 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14077 case $cc_basename in
14078 xlf* | bgf* | bgxlf* | mpixlf*)
14079 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14080 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14081 hardcode_libdir_flag_spec_FC=
14082 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14083 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14084 if test "x$supports_anon_versioning" = xyes; then
14085 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14087 echo "local: *; };" >> $output_objdir/$libname.ver~
14088 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14091 esac
14092 else
14093 ld_shlibs_FC=no
14097 netbsd*)
14098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14099 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14100 wlarc=
14101 else
14102 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14107 solaris*)
14108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14109 ld_shlibs_FC=no
14110 cat <<_LT_EOF 1>&2
14112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14113 *** create shared libraries on Solaris systems. Therefore, libtool
14114 *** is disabling shared libraries support. We urge you to upgrade GNU
14115 *** binutils to release 2.9.1 or newer. Another option is to modify
14116 *** your PATH or compiler configuration so that the native linker is
14117 *** used, and then restart.
14119 _LT_EOF
14120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14121 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14122 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14123 else
14124 ld_shlibs_FC=no
14128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14129 case `$LD -v 2>&1` in
14130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14131 ld_shlibs_FC=no
14132 cat <<_LT_EOF 1>&2
14134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14135 *** reliably create shared libraries on SCO systems. Therefore, libtool
14136 *** is disabling shared libraries support. We urge you to upgrade GNU
14137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14138 *** your PATH or compiler configuration so that the native linker is
14139 *** used, and then restart.
14141 _LT_EOF
14144 # For security reasons, it is highly recommended that you always
14145 # use absolute paths for naming shared libraries, and exclude the
14146 # DT_RUNPATH tag from executables and libraries. But doing so
14147 # requires that you compile everything twice, which is a pain.
14148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14149 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14150 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14152 else
14153 ld_shlibs_FC=no
14156 esac
14159 sunos4*)
14160 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14161 wlarc=
14162 hardcode_direct_FC=yes
14163 hardcode_shlibpath_var_FC=no
14167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14168 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14170 else
14171 ld_shlibs_FC=no
14174 esac
14176 if test "$ld_shlibs_FC" = no; then
14177 runpath_var=
14178 hardcode_libdir_flag_spec_FC=
14179 export_dynamic_flag_spec_FC=
14180 whole_archive_flag_spec_FC=
14182 else
14183 # PORTME fill in a description of your system's linker (not GNU ld)
14184 case $host_os in
14185 aix3*)
14186 allow_undefined_flag_FC=unsupported
14187 always_export_symbols_FC=yes
14188 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'
14189 # Note: this linker hardcodes the directories in LIBPATH if there
14190 # are no directories specified by -L.
14191 hardcode_minus_L_FC=yes
14192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14193 # Neither direct hardcoding nor static linking is supported with a
14194 # broken collect2.
14195 hardcode_direct_FC=unsupported
14199 aix[4-9]*)
14200 if test "$host_cpu" = ia64; then
14201 # On IA64, the linker does run time linking by default, so we don't
14202 # have to do anything special.
14203 aix_use_runtimelinking=no
14204 exp_sym_flag='-Bexport'
14205 no_entry_flag=""
14206 else
14207 # If we're using GNU nm, then we don't want the "-C" option.
14208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14209 # Also, AIX nm treats weak defined symbols like other global
14210 # defined symbols, whereas GNU nm marks them as "W".
14211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14212 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'
14213 else
14214 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14216 aix_use_runtimelinking=no
14218 # Test if we are trying to use run time linking or normal
14219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14220 # need to do runtime linking.
14221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14222 for ld_flag in $LDFLAGS; do
14223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14224 aix_use_runtimelinking=yes
14225 break
14227 done
14229 esac
14231 exp_sym_flag='-bexport'
14232 no_entry_flag='-bnoentry'
14235 # When large executables or shared objects are built, AIX ld can
14236 # have problems creating the table of contents. If linking a library
14237 # or program results in "error TOC overflow" add -mminimal-toc to
14238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14241 archive_cmds_FC=''
14242 hardcode_direct_FC=yes
14243 hardcode_direct_absolute_FC=yes
14244 hardcode_libdir_separator_FC=':'
14245 link_all_deplibs_FC=yes
14246 file_list_spec_FC='${wl}-f,'
14248 if test "$GCC" = yes; then
14249 case $host_os in aix4.[012]|aix4.[012].*)
14250 # We only want to do this on AIX 4.2 and lower, the check
14251 # below for broken collect2 doesn't work under 4.3+
14252 collect2name=`${CC} -print-prog-name=collect2`
14253 if test -f "$collect2name" &&
14254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14255 then
14256 # We have reworked collect2
14258 else
14259 # We have old collect2
14260 hardcode_direct_FC=unsupported
14261 # It fails to find uninstalled libraries when the uninstalled
14262 # path is not listed in the libpath. Setting hardcode_minus_L
14263 # to unsupported forces relinking
14264 hardcode_minus_L_FC=yes
14265 hardcode_libdir_flag_spec_FC='-L$libdir'
14266 hardcode_libdir_separator_FC=
14269 esac
14270 shared_flag='-shared'
14271 if test "$aix_use_runtimelinking" = yes; then
14272 shared_flag="$shared_flag "'${wl}-G'
14274 else
14275 # not using gcc
14276 if test "$host_cpu" = ia64; then
14277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14278 # chokes on -Wl,-G. The following line is correct:
14279 shared_flag='-G'
14280 else
14281 if test "$aix_use_runtimelinking" = yes; then
14282 shared_flag='${wl}-G'
14283 else
14284 shared_flag='${wl}-bM:SRE'
14289 export_dynamic_flag_spec_FC='${wl}-bexpall'
14290 # It seems that -bexpall does not export symbols beginning with
14291 # underscore (_), so it is better to generate a list of symbols to export.
14292 always_export_symbols_FC=yes
14293 if test "$aix_use_runtimelinking" = yes; then
14294 # Warning - without using the other runtime loading flags (-brtl),
14295 # -berok will link without error, but may produce a broken library.
14296 allow_undefined_flag_FC='-berok'
14297 # Determine the default libpath from the value encoded in an
14298 # empty executable.
14299 if test x$gcc_no_link = xyes; then
14300 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14302 cat > conftest.$ac_ext <<_ACEOF
14303 program main
14306 _ACEOF
14307 if ac_fn_fc_try_link "$LINENO"; then :
14309 lt_aix_libpath_sed='
14310 /Import File Strings/,/^$/ {
14311 /^0/ {
14312 s/^0 *\(.*\)$/\1/
14316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14317 # Check for a 64-bit object if we didn't find anything.
14318 if test -z "$aix_libpath"; then
14319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14326 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14327 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"
14328 else
14329 if test "$host_cpu" = ia64; then
14330 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14331 allow_undefined_flag_FC="-z nodefs"
14332 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"
14333 else
14334 # Determine the default libpath from the value encoded in an
14335 # empty executable.
14336 if test x$gcc_no_link = xyes; then
14337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14339 cat > conftest.$ac_ext <<_ACEOF
14340 program main
14343 _ACEOF
14344 if ac_fn_fc_try_link "$LINENO"; then :
14346 lt_aix_libpath_sed='
14347 /Import File Strings/,/^$/ {
14348 /^0/ {
14349 s/^0 *\(.*\)$/\1/
14353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14354 # Check for a 64-bit object if we didn't find anything.
14355 if test -z "$aix_libpath"; then
14356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14359 rm -f core conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14363 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14364 # Warning - without using the other run time loading flags,
14365 # -berok will link without error, but may produce a broken library.
14366 no_undefined_flag_FC=' ${wl}-bernotok'
14367 allow_undefined_flag_FC=' ${wl}-berok'
14368 if test "$with_gnu_ld" = yes; then
14369 # We only use this code for GNU lds that support --whole-archive.
14370 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14371 else
14372 # Exported symbols can be pulled into shared objects from archives
14373 whole_archive_flag_spec_FC='$convenience'
14375 archive_cmds_need_lc_FC=yes
14376 # This is similar to how AIX traditionally builds its shared libraries.
14377 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'
14382 amigaos*)
14383 case $host_cpu in
14384 powerpc)
14385 # see comment about AmigaOS4 .so support
14386 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14387 archive_expsym_cmds_FC=''
14389 m68k)
14390 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)'
14391 hardcode_libdir_flag_spec_FC='-L$libdir'
14392 hardcode_minus_L_FC=yes
14394 esac
14397 bsdi[45]*)
14398 export_dynamic_flag_spec_FC=-rdynamic
14401 cygwin* | mingw* | pw32* | cegcc*)
14402 # When not using gcc, we currently assume that we are using
14403 # Microsoft Visual C++.
14404 # hardcode_libdir_flag_spec is actually meaningless, as there is
14405 # no search path for DLLs.
14406 hardcode_libdir_flag_spec_FC=' '
14407 allow_undefined_flag_FC=unsupported
14408 # Tell ltmain to make .lib files, not .a files.
14409 libext=lib
14410 # Tell ltmain to make .dll files, not .so files.
14411 shrext_cmds=".dll"
14412 # FIXME: Setting linknames here is a bad hack.
14413 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14414 # The linker will automatically build a .lib file if we build a DLL.
14415 old_archive_from_new_cmds_FC='true'
14416 # FIXME: Should let the user specify the lib program.
14417 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14418 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14419 enable_shared_with_static_runtimes_FC=yes
14422 darwin* | rhapsody*)
14425 archive_cmds_need_lc_FC=no
14426 hardcode_direct_FC=no
14427 hardcode_automatic_FC=yes
14428 hardcode_shlibpath_var_FC=unsupported
14429 if test "$lt_cv_ld_force_load" = "yes"; then
14430 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\"`'
14431 else
14432 whole_archive_flag_spec_FC=''
14434 link_all_deplibs_FC=yes
14435 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14436 case $cc_basename in
14437 ifort*) _lt_dar_can_shared=yes ;;
14438 *) _lt_dar_can_shared=$GCC ;;
14439 esac
14440 if test "$_lt_dar_can_shared" = "yes"; then
14441 output_verbose_link_cmd=func_echo_all
14442 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}"
14443 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14444 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}"
14445 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}"
14447 else
14448 ld_shlibs_FC=no
14453 dgux*)
14454 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_libdir_flag_spec_FC='-L$libdir'
14456 hardcode_shlibpath_var_FC=no
14459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14460 # support. Future versions do this automatically, but an explicit c++rt0.o
14461 # does not break anything, and helps significantly (at the cost of a little
14462 # extra space).
14463 freebsd2.2*)
14464 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14465 hardcode_libdir_flag_spec_FC='-R$libdir'
14466 hardcode_direct_FC=yes
14467 hardcode_shlibpath_var_FC=no
14470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14471 freebsd2.*)
14472 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_direct_FC=yes
14474 hardcode_minus_L_FC=yes
14475 hardcode_shlibpath_var_FC=no
14478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14479 freebsd* | dragonfly*)
14480 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14481 hardcode_libdir_flag_spec_FC='-R$libdir'
14482 hardcode_direct_FC=yes
14483 hardcode_shlibpath_var_FC=no
14486 hpux9*)
14487 if test "$GCC" = yes; then
14488 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'
14489 else
14490 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'
14492 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14493 hardcode_libdir_separator_FC=:
14494 hardcode_direct_FC=yes
14496 # hardcode_minus_L: Not really in the search PATH,
14497 # but as the default location of the library.
14498 hardcode_minus_L_FC=yes
14499 export_dynamic_flag_spec_FC='${wl}-E'
14502 hpux10*)
14503 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14504 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14505 else
14506 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14508 if test "$with_gnu_ld" = no; then
14509 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14510 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14511 hardcode_libdir_separator_FC=:
14512 hardcode_direct_FC=yes
14513 hardcode_direct_absolute_FC=yes
14514 export_dynamic_flag_spec_FC='${wl}-E'
14515 # hardcode_minus_L: Not really in the search PATH,
14516 # but as the default location of the library.
14517 hardcode_minus_L_FC=yes
14521 hpux11*)
14522 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14523 case $host_cpu in
14524 hppa*64*)
14525 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 ia64*)
14528 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14533 esac
14534 else
14535 case $host_cpu in
14536 hppa*64*)
14537 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14539 ia64*)
14540 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14543 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14545 esac
14547 if test "$with_gnu_ld" = no; then
14548 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14549 hardcode_libdir_separator_FC=:
14551 case $host_cpu in
14552 hppa*64*|ia64*)
14553 hardcode_direct_FC=no
14554 hardcode_shlibpath_var_FC=no
14557 hardcode_direct_FC=yes
14558 hardcode_direct_absolute_FC=yes
14559 export_dynamic_flag_spec_FC='${wl}-E'
14561 # hardcode_minus_L: Not really in the search PATH,
14562 # but as the default location of the library.
14563 hardcode_minus_L_FC=yes
14565 esac
14569 irix5* | irix6* | nonstopux*)
14570 if test "$GCC" = yes; then
14571 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'
14572 # Try to use the -exported_symbol ld option, if it does not
14573 # work, assume that -exports_file does not work either and
14574 # implicitly export all symbols.
14575 save_LDFLAGS="$LDFLAGS"
14576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14577 if test x$gcc_no_link = xyes; then
14578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14580 cat > conftest.$ac_ext <<_ACEOF
14581 int foo(void) {}
14582 _ACEOF
14583 if ac_fn_fc_try_link "$LINENO"; then :
14584 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'
14587 rm -f core conftest.err conftest.$ac_objext \
14588 conftest$ac_exeext conftest.$ac_ext
14589 LDFLAGS="$save_LDFLAGS"
14590 else
14591 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'
14592 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'
14594 archive_cmds_need_lc_FC='no'
14595 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14596 hardcode_libdir_separator_FC=:
14597 inherit_rpath_FC=yes
14598 link_all_deplibs_FC=yes
14601 netbsd*)
14602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14603 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14604 else
14605 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14607 hardcode_libdir_flag_spec_FC='-R$libdir'
14608 hardcode_direct_FC=yes
14609 hardcode_shlibpath_var_FC=no
14612 newsos6)
14613 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614 hardcode_direct_FC=yes
14615 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14616 hardcode_libdir_separator_FC=:
14617 hardcode_shlibpath_var_FC=no
14620 *nto* | *qnx*)
14623 openbsd*)
14624 if test -f /usr/libexec/ld.so; then
14625 hardcode_direct_FC=yes
14626 hardcode_shlibpath_var_FC=no
14627 hardcode_direct_absolute_FC=yes
14628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14629 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14630 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14631 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14632 export_dynamic_flag_spec_FC='${wl}-E'
14633 else
14634 case $host_os in
14635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14636 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_libdir_flag_spec_FC='-R$libdir'
14640 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14641 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14643 esac
14645 else
14646 ld_shlibs_FC=no
14650 os2*)
14651 hardcode_libdir_flag_spec_FC='-L$libdir'
14652 hardcode_minus_L_FC=yes
14653 allow_undefined_flag_FC=unsupported
14654 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'
14655 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14658 osf3*)
14659 if test "$GCC" = yes; then
14660 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14661 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'
14662 else
14663 allow_undefined_flag_FC=' -expect_unresolved \*'
14664 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'
14666 archive_cmds_need_lc_FC='no'
14667 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14668 hardcode_libdir_separator_FC=:
14671 osf4* | osf5*) # as osf3* with the addition of -msym flag
14672 if test "$GCC" = yes; then
14673 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14674 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'
14675 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14676 else
14677 allow_undefined_flag_FC=' -expect_unresolved \*'
14678 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'
14679 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~
14680 $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'
14682 # Both c and cxx compiler support -rpath directly
14683 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14685 archive_cmds_need_lc_FC='no'
14686 hardcode_libdir_separator_FC=:
14689 solaris*)
14690 no_undefined_flag_FC=' -z defs'
14691 if test "$GCC" = yes; then
14692 wlarc='${wl}'
14693 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14695 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14696 else
14697 case `$CC -V 2>&1` in
14698 *"Compilers 5.0"*)
14699 wlarc=''
14700 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14705 wlarc='${wl}'
14706 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14707 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14708 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14710 esac
14712 hardcode_libdir_flag_spec_FC='-R$libdir'
14713 hardcode_shlibpath_var_FC=no
14714 case $host_os in
14715 solaris2.[0-5] | solaris2.[0-5].*) ;;
14717 # The compiler driver will combine and reorder linker options,
14718 # but understands `-z linker_flag'. GCC discards it without `$wl',
14719 # but is careful enough not to reorder.
14720 # Supported since Solaris 2.6 (maybe 2.5.1?)
14721 if test "$GCC" = yes; then
14722 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14723 else
14724 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14727 esac
14728 link_all_deplibs_FC=yes
14731 sunos4*)
14732 if test "x$host_vendor" = xsequent; then
14733 # Use $CC to link under sequent, because it throws in some extra .o
14734 # files that make .init and .fini sections work.
14735 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14736 else
14737 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_libdir_flag_spec_FC='-L$libdir'
14740 hardcode_direct_FC=yes
14741 hardcode_minus_L_FC=yes
14742 hardcode_shlibpath_var_FC=no
14745 sysv4)
14746 case $host_vendor in
14747 sni)
14748 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14749 hardcode_direct_FC=yes # is this really true???
14751 siemens)
14752 ## LD is ld it makes a PLAMLIB
14753 ## CC just makes a GrossModule.
14754 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14755 reload_cmds_FC='$CC -r -o $output$reload_objs'
14756 hardcode_direct_FC=no
14758 motorola)
14759 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14762 esac
14763 runpath_var='LD_RUN_PATH'
14764 hardcode_shlibpath_var_FC=no
14767 sysv4.3*)
14768 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14769 hardcode_shlibpath_var_FC=no
14770 export_dynamic_flag_spec_FC='-Bexport'
14773 sysv4*MP*)
14774 if test -d /usr/nec; then
14775 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_shlibpath_var_FC=no
14777 runpath_var=LD_RUN_PATH
14778 hardcode_runpath_var=yes
14779 ld_shlibs_FC=yes
14783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14784 no_undefined_flag_FC='${wl}-z,text'
14785 archive_cmds_need_lc_FC=no
14786 hardcode_shlibpath_var_FC=no
14787 runpath_var='LD_RUN_PATH'
14789 if test "$GCC" = yes; then
14790 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14792 else
14793 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14794 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798 sysv5* | sco3.2v5* | sco5v6*)
14799 # Note: We can NOT use -z defs as we might desire, because we do not
14800 # link with -lc, and that would cause any symbols used from libc to
14801 # always be unresolved, which means just about no library would
14802 # ever link correctly. If we're not using GNU ld we use -z text
14803 # though, which does catch some bad symbols but isn't as heavy-handed
14804 # as -z defs.
14805 no_undefined_flag_FC='${wl}-z,text'
14806 allow_undefined_flag_FC='${wl}-z,nodefs'
14807 archive_cmds_need_lc_FC=no
14808 hardcode_shlibpath_var_FC=no
14809 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14810 hardcode_libdir_separator_FC=':'
14811 link_all_deplibs_FC=yes
14812 export_dynamic_flag_spec_FC='${wl}-Bexport'
14813 runpath_var='LD_RUN_PATH'
14815 if test "$GCC" = yes; then
14816 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 else
14819 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 uts4*)
14825 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14826 hardcode_libdir_flag_spec_FC='-L$libdir'
14827 hardcode_shlibpath_var_FC=no
14831 ld_shlibs_FC=no
14833 esac
14835 if test x$host_vendor = xsni; then
14836 case $host in
14837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14838 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14840 esac
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14845 $as_echo "$ld_shlibs_FC" >&6; }
14846 test "$ld_shlibs_FC" = no && can_build_shared=no
14848 with_gnu_ld_FC=$with_gnu_ld
14856 # Do we need to explicitly link libc?
14858 case "x$archive_cmds_need_lc_FC" in
14859 x|xyes)
14860 # Assume -lc should be added
14861 archive_cmds_need_lc_FC=yes
14863 if test "$enable_shared" = yes && test "$GCC" = yes; then
14864 case $archive_cmds_FC in
14865 *'~'*)
14866 # FIXME: we may have to deal with multi-command sequences.
14868 '$CC '*)
14869 # Test whether the compiler implicitly links with -lc since on some
14870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14871 # to ld, don't add -lc before -lgcc.
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14874 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 $RM conftest*
14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14881 (eval $ac_compile) 2>&5
14882 ac_status=$?
14883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14884 test $ac_status = 0; } 2>conftest.err; then
14885 soname=conftest
14886 lib=conftest
14887 libobjs=conftest.$ac_objext
14888 deplibs=
14889 wl=$lt_prog_compiler_wl_FC
14890 pic_flag=$lt_prog_compiler_pic_FC
14891 compiler_flags=-v
14892 linker_flags=-v
14893 verstring=
14894 output_objdir=.
14895 libname=conftest
14896 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14897 allow_undefined_flag_FC=
14898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14899 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14900 ac_status=$?
14901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14902 test $ac_status = 0; }
14903 then
14904 lt_cv_archive_cmds_need_lc_FC=no
14905 else
14906 lt_cv_archive_cmds_need_lc_FC=yes
14908 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14909 else
14910 cat conftest.err 1>&5
14912 $RM conftest*
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14916 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14917 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14919 esac
14922 esac
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14990 library_names_spec=
14991 libname_spec='lib$name'
14992 soname_spec=
14993 shrext_cmds=".so"
14994 postinstall_cmds=
14995 postuninstall_cmds=
14996 finish_cmds=
14997 finish_eval=
14998 shlibpath_var=
14999 shlibpath_overrides_runpath=unknown
15000 version_type=none
15001 dynamic_linker="$host_os ld.so"
15002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15003 need_lib_prefix=unknown
15004 hardcode_into_libs=no
15006 # when you set need_version to no, make sure it does not cause -set_version
15007 # flags to be left without arguments
15008 need_version=unknown
15010 case $host_os in
15011 aix3*)
15012 version_type=linux
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15014 shlibpath_var=LIBPATH
15016 # AIX 3 has no versioning support, so we append a major version to the name.
15017 soname_spec='${libname}${release}${shared_ext}$major'
15020 aix[4-9]*)
15021 version_type=linux
15022 need_lib_prefix=no
15023 need_version=no
15024 hardcode_into_libs=yes
15025 if test "$host_cpu" = ia64; then
15026 # AIX 5 supports IA64
15027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 else
15030 # With GCC up to 2.95.x, collect2 would create an import file
15031 # for dependence libraries. The import file would start with
15032 # the line `#! .'. This would cause the generated library to
15033 # depend on `.', always an invalid library. This was fixed in
15034 # development snapshots of GCC prior to 3.0.
15035 case $host_os in
15036 aix4 | aix4.[01] | aix4.[01].*)
15037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15038 echo ' yes '
15039 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15041 else
15042 can_build_shared=no
15045 esac
15046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15047 # soname into executable. Probably we can add versioning support to
15048 # collect2, so additional links can be useful in future.
15049 if test "$aix_use_runtimelinking" = yes; then
15050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15051 # instead of lib<name>.a to let people know that these are not
15052 # typical AIX shared libraries.
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054 else
15055 # We preserve .a as extension for shared libraries through AIX4.2
15056 # and later when we are not doing run time linking.
15057 library_names_spec='${libname}${release}.a $libname.a'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LIBPATH
15064 amigaos*)
15065 case $host_cpu in
15066 powerpc)
15067 # Since July 2007 AmigaOS4 officially supports .so libraries.
15068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 m68k)
15072 library_names_spec='$libname.ixlibrary $libname.a'
15073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15074 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'
15076 esac
15079 beos*)
15080 library_names_spec='${libname}${shared_ext}'
15081 dynamic_linker="$host_os ld.so"
15082 shlibpath_var=LIBRARY_PATH
15085 bsdi[45]*)
15086 version_type=linux
15087 need_version=no
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15094 # the default ld.so.conf also contains /usr/contrib/lib and
15095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15096 # libtool to hard-code these into programs
15099 cygwin* | mingw* | pw32* | cegcc*)
15100 version_type=windows
15101 shrext_cmds=".dll"
15102 need_version=no
15103 need_lib_prefix=no
15105 case $GCC,$host_os in
15106 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15107 library_names_spec='$libname.dll.a'
15108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15109 postinstall_cmds='base_file=`basename \${file}`~
15110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15111 dldir=$destdir/`dirname \$dlpath`~
15112 test -d \$dldir || mkdir -p \$dldir~
15113 $install_prog $dir/$dlname \$dldir/$dlname~
15114 chmod a+x \$dldir/$dlname~
15115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15119 dlpath=$dir/\$dldll~
15120 $RM \$dlpath'
15121 shlibpath_overrides_runpath=yes
15123 case $host_os in
15124 cygwin*)
15125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15129 mingw* | cegcc*)
15130 # MinGW DLLs use traditional 'lib' prefix
15131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15133 pw32*)
15134 # pw32 DLLs use 'pw' prefix rather than 'lib'
15135 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15137 esac
15141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15143 esac
15144 dynamic_linker='Win32 ld.exe'
15145 # FIXME: first we should search . and the directory the executable is in
15146 shlibpath_var=PATH
15149 darwin* | rhapsody*)
15150 dynamic_linker="$host_os dyld"
15151 version_type=darwin
15152 need_lib_prefix=no
15153 need_version=no
15154 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15155 soname_spec='${libname}${release}${major}$shared_ext'
15156 shlibpath_overrides_runpath=yes
15157 shlibpath_var=DYLD_LIBRARY_PATH
15158 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15163 dgux*)
15164 version_type=linux
15165 need_lib_prefix=no
15166 need_version=no
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 shlibpath_var=LD_LIBRARY_PATH
15172 freebsd* | dragonfly*)
15173 # DragonFly does not have aout. When/if they implement a new
15174 # versioning mechanism, adjust this.
15175 if test -x /usr/bin/objformat; then
15176 objformat=`/usr/bin/objformat`
15177 else
15178 case $host_os in
15179 freebsd[23].*) objformat=aout ;;
15180 *) objformat=elf ;;
15181 esac
15183 version_type=freebsd-$objformat
15184 case $version_type in
15185 freebsd-elf*)
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15187 need_version=no
15188 need_lib_prefix=no
15190 freebsd-*)
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15192 need_version=yes
15194 esac
15195 shlibpath_var=LD_LIBRARY_PATH
15196 case $host_os in
15197 freebsd2.*)
15198 shlibpath_overrides_runpath=yes
15200 freebsd3.[01]* | freebsdelf3.[01]*)
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15206 shlibpath_overrides_runpath=no
15207 hardcode_into_libs=yes
15209 *) # from 4.6 on, and DragonFly
15210 shlibpath_overrides_runpath=yes
15211 hardcode_into_libs=yes
15213 esac
15216 gnu*)
15217 version_type=linux
15218 need_lib_prefix=no
15219 need_version=no
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 shlibpath_var=LD_LIBRARY_PATH
15223 hardcode_into_libs=yes
15226 haiku*)
15227 version_type=linux
15228 need_lib_prefix=no
15229 need_version=no
15230 dynamic_linker="$host_os runtime_loader"
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 shlibpath_var=LIBRARY_PATH
15234 shlibpath_overrides_runpath=yes
15235 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15236 hardcode_into_libs=yes
15239 hpux9* | hpux10* | hpux11*)
15240 # Give a soname corresponding to the major version so that dld.sl refuses to
15241 # link against other versions.
15242 version_type=sunos
15243 need_lib_prefix=no
15244 need_version=no
15245 case $host_cpu in
15246 ia64*)
15247 shrext_cmds='.so'
15248 hardcode_into_libs=yes
15249 dynamic_linker="$host_os dld.so"
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 if test "X$HPUX_IA64_MODE" = X32; then
15255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15256 else
15257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15261 hppa*64*)
15262 shrext_cmds='.sl'
15263 hardcode_into_libs=yes
15264 dynamic_linker="$host_os dld.sl"
15265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15273 shrext_cmds='.sl'
15274 dynamic_linker="$host_os dld.sl"
15275 shlibpath_var=SHLIB_PATH
15276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15280 esac
15281 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15282 postinstall_cmds='chmod 555 $lib'
15283 # or fails outright, so override atomically:
15284 install_override_mode=555
15287 interix[3-9]*)
15288 version_type=linux
15289 need_lib_prefix=no
15290 need_version=no
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=no
15296 hardcode_into_libs=yes
15299 irix5* | irix6* | nonstopux*)
15300 case $host_os in
15301 nonstopux*) version_type=nonstopux ;;
15303 if test "$lt_cv_prog_gnu_ld" = yes; then
15304 version_type=linux
15305 else
15306 version_type=irix
15307 fi ;;
15308 esac
15309 need_lib_prefix=no
15310 need_version=no
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15313 case $host_os in
15314 irix5* | nonstopux*)
15315 libsuff= shlibsuff=
15318 case $LD in # libtool.m4 will add one of these switches to LD
15319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15320 libsuff= shlibsuff= libmagic=32-bit;;
15321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15322 libsuff=32 shlibsuff=N32 libmagic=N32;;
15323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15325 *) libsuff= shlibsuff= libmagic=never-match;;
15326 esac
15328 esac
15329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15330 shlibpath_overrides_runpath=no
15331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15333 hardcode_into_libs=yes
15336 # No shared lib support for Linux oldld, aout, or coff.
15337 linux*oldld* | linux*aout* | linux*coff*)
15338 dynamic_linker=no
15341 # This must be Linux ELF.
15342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=no
15352 # Some binutils ld are patched to set DT_RUNPATH
15353 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 lt_cv_shlibpath_overrides_runpath=no
15357 save_LDFLAGS=$LDFLAGS
15358 save_libdir=$libdir
15359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15361 if test x$gcc_no_link = xyes; then
15362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15364 cat > conftest.$ac_ext <<_ACEOF
15365 program main
15368 _ACEOF
15369 if ac_fn_fc_try_link "$LINENO"; then :
15370 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15371 lt_cv_shlibpath_overrides_runpath=yes
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LDFLAGS=$save_LDFLAGS
15377 libdir=$save_libdir
15381 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15383 # This implies no fast_install, which is unacceptable.
15384 # Some rework will be needed to allow for fast_install
15385 # before this can be enabled.
15386 hardcode_into_libs=yes
15388 # Append ld.so.conf contents to the search path
15389 if test -f /etc/ld.so.conf; then
15390 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' ' '`
15391 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15394 # We used to test for /lib/ld.so.1 and disable shared libraries on
15395 # powerpc, because MkLinux only supported shared libraries with the
15396 # GNU dynamic linker. Since this was broken with cross compilers,
15397 # most powerpc-linux boxes support dynamic linking these days and
15398 # people can always --disable-shared, the test was removed, and we
15399 # assume the GNU/Linux dynamic linker is in use.
15400 dynamic_linker='GNU/Linux ld.so'
15403 netbsd*)
15404 version_type=sunos
15405 need_lib_prefix=no
15406 need_version=no
15407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15410 dynamic_linker='NetBSD (a.out) ld.so'
15411 else
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 dynamic_linker='NetBSD ld.elf_so'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=yes
15418 hardcode_into_libs=yes
15421 newsos6)
15422 version_type=linux
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes
15428 *nto* | *qnx*)
15429 version_type=qnx
15430 need_lib_prefix=no
15431 need_version=no
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=no
15436 hardcode_into_libs=yes
15437 dynamic_linker='ldqnx.so'
15440 openbsd*)
15441 version_type=sunos
15442 sys_lib_dlsearch_path_spec="/usr/lib"
15443 need_lib_prefix=no
15444 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15445 case $host_os in
15446 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15447 *) need_version=no ;;
15448 esac
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15453 case $host_os in
15454 openbsd2.[89] | openbsd2.[89].*)
15455 shlibpath_overrides_runpath=no
15458 shlibpath_overrides_runpath=yes
15460 esac
15461 else
15462 shlibpath_overrides_runpath=yes
15466 os2*)
15467 libname_spec='$name'
15468 shrext_cmds=".dll"
15469 need_lib_prefix=no
15470 library_names_spec='$libname${shared_ext} $libname.a'
15471 dynamic_linker='OS/2 ld.exe'
15472 shlibpath_var=LIBPATH
15475 osf3* | osf4* | osf5*)
15476 version_type=osf
15477 need_lib_prefix=no
15478 need_version=no
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15483 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15486 rdos*)
15487 dynamic_linker=no
15490 solaris*)
15491 version_type=linux
15492 need_lib_prefix=no
15493 need_version=no
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=yes
15498 hardcode_into_libs=yes
15499 # ldd complains unless libraries are executable
15500 postinstall_cmds='chmod +x $lib'
15503 sunos4*)
15504 version_type=sunos
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes
15509 if test "$with_gnu_ld" = yes; then
15510 need_lib_prefix=no
15512 need_version=yes
15515 sysv4 | sysv4.3*)
15516 version_type=linux
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 case $host_vendor in
15521 sni)
15522 shlibpath_overrides_runpath=no
15523 need_lib_prefix=no
15524 runpath_var=LD_RUN_PATH
15526 siemens)
15527 need_lib_prefix=no
15529 motorola)
15530 need_lib_prefix=no
15531 need_version=no
15532 shlibpath_overrides_runpath=no
15533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15535 esac
15538 sysv4*MP*)
15539 if test -d /usr/nec ;then
15540 version_type=linux
15541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15542 soname_spec='$libname${shared_ext}.$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15548 version_type=freebsd-elf
15549 need_lib_prefix=no
15550 need_version=no
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15556 if test "$with_gnu_ld" = yes; then
15557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15558 else
15559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15560 case $host_os in
15561 sco3.2v5*)
15562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15564 esac
15566 sys_lib_dlsearch_path_spec='/usr/lib'
15569 tpf*)
15570 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15571 version_type=linux
15572 need_lib_prefix=no
15573 need_version=no
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=no
15577 hardcode_into_libs=yes
15580 uts4*)
15581 version_type=linux
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 shlibpath_var=LD_LIBRARY_PATH
15588 dynamic_linker=no
15590 esac
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15592 $as_echo "$dynamic_linker" >&6; }
15593 test "$dynamic_linker" = no && can_build_shared=no
15595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15596 if test "$GCC" = yes; then
15597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15600 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15601 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15603 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15604 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15646 hardcode_action_FC=
15647 if test -n "$hardcode_libdir_flag_spec_FC" ||
15648 test -n "$runpath_var_FC" ||
15649 test "X$hardcode_automatic_FC" = "Xyes" ; then
15651 # We can hardcode non-existent directories.
15652 if test "$hardcode_direct_FC" != no &&
15653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15654 # have to relink, otherwise we might link with an installed library
15655 # when we should be linking with a yet-to-be-installed one
15656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15657 test "$hardcode_minus_L_FC" != no; then
15658 # Linking always hardcodes the temporary library directory.
15659 hardcode_action_FC=relink
15660 else
15661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15662 hardcode_action_FC=immediate
15664 else
15665 # We cannot hardcode anything, or else we can only hardcode existing
15666 # directories.
15667 hardcode_action_FC=unsupported
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15670 $as_echo "$hardcode_action_FC" >&6; }
15672 if test "$hardcode_action_FC" = relink ||
15673 test "$inherit_rpath_FC" = yes; then
15674 # Fast installation is not supported
15675 enable_fast_install=no
15676 elif test "$shlibpath_overrides_runpath" = yes ||
15677 test "$enable_shared" = no; then
15678 # Fast installation is not necessary
15679 enable_fast_install=needless
15688 fi # test -n "$compiler"
15690 GCC=$lt_save_GCC
15691 CC="$lt_save_CC"
15692 fi # test "$_lt_disable_FC" != yes
15694 ac_ext=c
15695 ac_cpp='$CPP $CPPFLAGS'
15696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15702 # extra LD Flags which are required for targets
15703 case "${host}" in
15704 *-darwin*)
15705 # Darwin needs -single_module when linking libgfortran
15706 extra_ldflags_libgfortran=-Wl,-single_module
15708 esac
15711 # We need a working compiler at that point, otherwise give a clear
15712 # error message and bail out.
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15715 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15716 ac_ext=${ac_fc_srcext-f}
15717 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15718 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15719 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15721 cat > conftest.$ac_ext <<_ACEOF
15723 program foo
15724 real, parameter :: bar = sin (12.34 / 2.5)
15725 end program foo
15726 _ACEOF
15727 if ac_fn_fc_try_compile "$LINENO"; then :
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15729 $as_echo "yes" >&6; }
15730 else
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15732 $as_echo "no" >&6; }
15733 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737 ac_ext=c
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15745 # Check whether --enable-largefile was given.
15746 if test "${enable_largefile+set}" = set; then :
15747 enableval=$enable_largefile;
15750 if test "$enable_largefile" != no; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15753 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15754 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15757 ac_cv_sys_largefile_CC=no
15758 if test "$GCC" != yes; then
15759 ac_save_CC=$CC
15760 while :; do
15761 # IRIX 6.2 and later do not support large files by default,
15762 # so use the C compiler's -n32 option if that helps.
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <sys/types.h>
15766 /* Check that off_t can represent 2**63 - 1 correctly.
15767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15768 since some C++ compilers masquerading as C compilers
15769 incorrectly reject 9223372036854775807. */
15770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15772 && LARGE_OFF_T % 2147483647 == 1)
15773 ? 1 : -1];
15775 main ()
15779 return 0;
15781 _ACEOF
15782 if ac_fn_c_try_compile "$LINENO"; then :
15783 break
15785 rm -f core conftest.err conftest.$ac_objext
15786 CC="$CC -n32"
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788 ac_cv_sys_largefile_CC=' -n32'; break
15790 rm -f core conftest.err conftest.$ac_objext
15791 break
15792 done
15793 CC=$ac_save_CC
15794 rm -f conftest.$ac_ext
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15798 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15799 if test "$ac_cv_sys_largefile_CC" != no; then
15800 CC=$CC$ac_cv_sys_largefile_CC
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15804 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15805 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 while :; do
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15811 #include <sys/types.h>
15812 /* Check that off_t can represent 2**63 - 1 correctly.
15813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15814 since some C++ compilers masquerading as C compilers
15815 incorrectly reject 9223372036854775807. */
15816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15818 && LARGE_OFF_T % 2147483647 == 1)
15819 ? 1 : -1];
15821 main ()
15825 return 0;
15827 _ACEOF
15828 if ac_fn_c_try_compile "$LINENO"; then :
15829 ac_cv_sys_file_offset_bits=no; break
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 #define _FILE_OFFSET_BITS 64
15835 #include <sys/types.h>
15836 /* Check that off_t can represent 2**63 - 1 correctly.
15837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15838 since some C++ compilers masquerading as C compilers
15839 incorrectly reject 9223372036854775807. */
15840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15842 && LARGE_OFF_T % 2147483647 == 1)
15843 ? 1 : -1];
15845 main ()
15849 return 0;
15851 _ACEOF
15852 if ac_fn_c_try_compile "$LINENO"; then :
15853 ac_cv_sys_file_offset_bits=64; break
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 ac_cv_sys_file_offset_bits=unknown
15857 break
15858 done
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15861 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15862 case $ac_cv_sys_file_offset_bits in #(
15863 no | unknown) ;;
15865 cat >>confdefs.h <<_ACEOF
15866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15867 _ACEOF
15869 esac
15870 rm -rf conftest*
15871 if test $ac_cv_sys_file_offset_bits = unknown; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15873 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15874 if test "${ac_cv_sys_large_files+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 while :; do
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <sys/types.h>
15881 /* Check that off_t can represent 2**63 - 1 correctly.
15882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15883 since some C++ compilers masquerading as C compilers
15884 incorrectly reject 9223372036854775807. */
15885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15887 && LARGE_OFF_T % 2147483647 == 1)
15888 ? 1 : -1];
15890 main ()
15894 return 0;
15896 _ACEOF
15897 if ac_fn_c_try_compile "$LINENO"; then :
15898 ac_cv_sys_large_files=no; break
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903 #define _LARGE_FILES 1
15904 #include <sys/types.h>
15905 /* Check that off_t can represent 2**63 - 1 correctly.
15906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15907 since some C++ compilers masquerading as C compilers
15908 incorrectly reject 9223372036854775807. */
15909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15911 && LARGE_OFF_T % 2147483647 == 1)
15912 ? 1 : -1];
15914 main ()
15918 return 0;
15920 _ACEOF
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 ac_cv_sys_large_files=1; break
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 ac_cv_sys_large_files=unknown
15926 break
15927 done
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15930 $as_echo "$ac_cv_sys_large_files" >&6; }
15931 case $ac_cv_sys_large_files in #(
15932 no | unknown) ;;
15934 cat >>confdefs.h <<_ACEOF
15935 #define _LARGE_FILES $ac_cv_sys_large_files
15936 _ACEOF
15938 esac
15939 rm -rf conftest*
15944 # Types
15945 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15946 if test "x$ac_cv_type_off_t" = x""yes; then :
15948 else
15950 cat >>confdefs.h <<_ACEOF
15951 #define off_t long int
15952 _ACEOF
15957 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15958 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15960 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15962 else
15963 for ac_type in 'int' 'long int' 'long long int'; do
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966 $ac_includes_default
15968 main ()
15970 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15971 test_array [0] = 0
15974 return 0;
15976 _ACEOF
15977 if ac_fn_c_try_compile "$LINENO"; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define intptr_t $ac_type
15981 _ACEOF
15983 ac_type=
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986 test -z "$ac_type" && break
15987 done
15992 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15993 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15995 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15997 else
15998 for ac_type in 'unsigned int' 'unsigned long int' \
15999 'unsigned long long int'; do
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 $ac_includes_default
16004 main ()
16006 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16007 test_array [0] = 0
16010 return 0;
16012 _ACEOF
16013 if ac_fn_c_try_compile "$LINENO"; then :
16015 cat >>confdefs.h <<_ACEOF
16016 #define uintptr_t $ac_type
16017 _ACEOF
16019 ac_type=
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 test -z "$ac_type" && break
16023 done
16027 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16028 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16030 cat >>confdefs.h <<_ACEOF
16031 #define HAVE_PTRDIFF_T 1
16032 _ACEOF
16038 # check header files (we assume C89 is available, so don't check for that)
16042 for ac_header in $ac_header_list
16043 do :
16044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16047 eval as_val=\$$as_ac_Header
16048 if test "x$as_val" = x""yes; then :
16049 cat >>confdefs.h <<_ACEOF
16050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16051 _ACEOF
16055 done
16091 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16093 acx_cv_header_stdint=stddef.h
16094 acx_cv_header_stdint_kind="(already complete)"
16095 for i in stdint.h $inttype_headers; do
16096 unset ac_cv_type_uintptr_t
16097 unset ac_cv_type_uintmax_t
16098 unset ac_cv_type_int_least32_t
16099 unset ac_cv_type_int_fast32_t
16100 unset ac_cv_type_uint64_t
16101 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16102 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16103 #include <$i>
16105 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16106 acx_cv_header_stdint=$i
16107 else
16108 continue
16111 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16112 #include <$i>
16114 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16116 else
16117 acx_cv_header_stdint_kind="(mostly complete)"
16120 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16121 #include <$i>
16123 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16125 else
16126 acx_cv_header_stdint_kind="(mostly complete)"
16129 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16130 #include <$i>
16132 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16134 else
16135 acx_cv_header_stdint_kind="(mostly complete)"
16138 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16139 #include <$i>
16141 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16143 else
16144 acx_cv_header_stdint_kind="(lacks uint64_t)"
16147 break
16148 done
16149 if test "$acx_cv_header_stdint" = stddef.h; then
16150 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16151 for i in stdint.h $inttype_headers; do
16152 unset ac_cv_type_uintptr_t
16153 unset ac_cv_type_uint32_t
16154 unset ac_cv_type_uint64_t
16155 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16156 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16157 #include <$i>
16159 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16160 acx_cv_header_stdint=$i
16161 else
16162 continue
16165 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16166 #include <$i>
16168 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16172 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16173 #include <$i>
16175 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16179 break
16180 done
16182 if test "$acx_cv_header_stdint" = stddef.h; then
16183 acx_cv_header_stdint_kind="(u_intXX_t style)"
16184 for i in sys/types.h $inttype_headers; do
16185 unset ac_cv_type_u_int32_t
16186 unset ac_cv_type_u_int64_t
16187 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16188 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16189 #include <$i>
16191 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16192 acx_cv_header_stdint=$i
16193 else
16194 continue
16197 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16198 #include <$i>
16200 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16204 break
16205 done
16207 if test "$acx_cv_header_stdint" = stddef.h; then
16208 acx_cv_header_stdint_kind="(using manual detection)"
16211 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16212 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16213 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16214 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16215 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16217 # ----------------- Summarize what we found so far
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16220 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16222 case `$as_basename -- gstdint.h ||
16223 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16224 Xgstdint.h : 'X\(//\)$' \| \
16225 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X/gstdint.h |
16227 sed '/^.*\/\([^/][^/]*\)\/*$/{
16228 s//\1/
16231 /^X\/\(\/\/\)$/{
16232 s//\1/
16235 /^X\/\(\/\).*/{
16236 s//\1/
16239 s/.*/./; q'` in
16240 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16241 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16242 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16243 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16244 *) ;;
16245 esac
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16248 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16250 # ----------------- done included file, check C basic types --------
16252 # Lacking an uintptr_t? Test size of void *
16253 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16254 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16257 # This bug is HP SR number 8606223364.
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16259 $as_echo_n "checking size of void *... " >&6; }
16260 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16265 else
16266 if test "$ac_cv_type_void_p" = yes; then
16267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16269 { as_fn_set_status 77
16270 as_fn_error "cannot compute sizeof (void *)
16271 See \`config.log' for more details." "$LINENO" 5; }; }
16272 else
16273 ac_cv_sizeof_void_p=0
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16279 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16283 cat >>confdefs.h <<_ACEOF
16284 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16285 _ACEOF
16288 esac
16290 # Lacking an uint64_t? Test size of long
16291 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16292 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16295 # This bug is HP SR number 8606223364.
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16297 $as_echo_n "checking size of long... " >&6; }
16298 if test "${ac_cv_sizeof_long+set}" = set; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16301 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16303 else
16304 if test "$ac_cv_type_long" = yes; then
16305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16307 { as_fn_set_status 77
16308 as_fn_error "cannot compute sizeof (long)
16309 See \`config.log' for more details." "$LINENO" 5; }; }
16310 else
16311 ac_cv_sizeof_long=0
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16317 $as_echo "$ac_cv_sizeof_long" >&6; }
16321 cat >>confdefs.h <<_ACEOF
16322 #define SIZEOF_LONG $ac_cv_sizeof_long
16323 _ACEOF
16326 esac
16328 if test $acx_cv_header_stdint = stddef.h; then
16329 # Lacking a good header? Test size of everything and deduce all types.
16330 # The cast to long int works around a bug in the HP C Compiler
16331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16333 # This bug is HP SR number 8606223364.
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16335 $as_echo_n "checking size of int... " >&6; }
16336 if test "${ac_cv_sizeof_int+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16341 else
16342 if test "$ac_cv_type_int" = yes; then
16343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16345 { as_fn_set_status 77
16346 as_fn_error "cannot compute sizeof (int)
16347 See \`config.log' for more details." "$LINENO" 5; }; }
16348 else
16349 ac_cv_sizeof_int=0
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16355 $as_echo "$ac_cv_sizeof_int" >&6; }
16359 cat >>confdefs.h <<_ACEOF
16360 #define SIZEOF_INT $ac_cv_sizeof_int
16361 _ACEOF
16364 # The cast to long int works around a bug in the HP C Compiler
16365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16367 # This bug is HP SR number 8606223364.
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16369 $as_echo_n "checking size of short... " >&6; }
16370 if test "${ac_cv_sizeof_short+set}" = set; then :
16371 $as_echo_n "(cached) " >&6
16372 else
16373 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16375 else
16376 if test "$ac_cv_type_short" = yes; then
16377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16379 { as_fn_set_status 77
16380 as_fn_error "cannot compute sizeof (short)
16381 See \`config.log' for more details." "$LINENO" 5; }; }
16382 else
16383 ac_cv_sizeof_short=0
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16389 $as_echo "$ac_cv_sizeof_short" >&6; }
16393 cat >>confdefs.h <<_ACEOF
16394 #define SIZEOF_SHORT $ac_cv_sizeof_short
16395 _ACEOF
16398 # The cast to long int works around a bug in the HP C Compiler
16399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16401 # This bug is HP SR number 8606223364.
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16403 $as_echo_n "checking size of char... " >&6; }
16404 if test "${ac_cv_sizeof_char+set}" = set; then :
16405 $as_echo_n "(cached) " >&6
16406 else
16407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16409 else
16410 if test "$ac_cv_type_char" = yes; then
16411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16413 { as_fn_set_status 77
16414 as_fn_error "cannot compute sizeof (char)
16415 See \`config.log' for more details." "$LINENO" 5; }; }
16416 else
16417 ac_cv_sizeof_char=0
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16423 $as_echo "$ac_cv_sizeof_char" >&6; }
16427 cat >>confdefs.h <<_ACEOF
16428 #define SIZEOF_CHAR $ac_cv_sizeof_char
16429 _ACEOF
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16434 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16435 case "$ac_cv_sizeof_char" in
16436 1) acx_cv_type_int8_t=char ;;
16437 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16438 esac
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16440 $as_echo "$acx_cv_type_int8_t" >&6; }
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16443 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16444 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16445 2:*) acx_cv_type_int16_t=int ;;
16446 *:2) acx_cv_type_int16_t=short ;;
16447 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16448 esac
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16450 $as_echo "$acx_cv_type_int16_t" >&6; }
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16453 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16454 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16455 4:*) acx_cv_type_int32_t=int ;;
16456 *:4) acx_cv_type_int32_t=long ;;
16457 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16458 esac
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16460 $as_echo "$acx_cv_type_int32_t" >&6; }
16463 # These tests are here to make the output prettier
16465 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16466 case "$ac_cv_sizeof_long" in
16467 8) acx_cv_type_int64_t=long ;;
16468 esac
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16470 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16472 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16475 # Now we can use the above types
16477 if test "$ac_cv_type_uintptr_t" != yes; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16479 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16480 case $ac_cv_sizeof_void_p in
16481 2) acx_cv_type_intptr_t=int16_t ;;
16482 4) acx_cv_type_intptr_t=int32_t ;;
16483 8) acx_cv_type_intptr_t=int64_t ;;
16484 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16485 esac
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16487 $as_echo "$acx_cv_type_intptr_t" >&6; }
16490 # ----------------- done all checks, emit header -------------
16491 ac_config_commands="$ac_config_commands gstdint.h"
16496 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16497 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16499 cat >>confdefs.h <<_ACEOF
16500 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16501 _ACEOF
16505 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16506 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16508 cat >>confdefs.h <<_ACEOF
16509 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16510 _ACEOF
16514 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16515 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_STRUCT_STAT_ST_RDEV 1
16519 _ACEOF
16525 case "${host}--x${with_newlib}" in
16526 mips*--xyes)
16527 hardwire_newlib=1;;
16528 nvptx*--xyes)
16529 hardwire_newlib=1;;
16530 esac
16532 # Check for library functions.
16533 if test "${hardwire_newlib:-0}" -eq 1; then
16534 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16535 # may not work correctly, because the compiler may not be able to
16536 # link executables.
16538 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16541 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16544 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16547 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16550 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16553 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16556 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16559 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16562 # At some point, we should differentiate between architectures
16563 # like x86, which have long double versions, and alpha/powerpc/etc.,
16564 # which don't. For the time being, punt.
16565 if test x"long_double_math_on_this_cpu" = x"yes"; then
16567 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16570 else
16574 for ac_func in $ac_func_list
16575 do :
16576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16578 eval as_val=\$$as_ac_var
16579 if test "x$as_val" = x""yes; then :
16580 cat >>confdefs.h <<_ACEOF
16581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16582 _ACEOF
16585 done
16688 # Check strerror_r, cannot be above as versions with two and three arguments exist
16690 ac_save_CFLAGS="$CFLAGS"
16691 CFLAGS="-Wimplicit-function-declaration -Werror"
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694 #define _GNU_SOURCE 1
16695 #include <string.h>
16696 #include <locale.h>
16698 main ()
16700 char s[128]; strerror_r(5, s, 128);
16702 return 0;
16704 _ACEOF
16705 if ac_fn_c_try_compile "$LINENO"; then :
16707 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 CFLAGS="$ac_save_CFLAGS"
16713 ac_save_CFLAGS="$CFLAGS"
16714 CFLAGS="-Wimplicit-function-declaration -Werror"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717 #define _GNU_SOURCE 1
16718 #include <string.h>
16719 #include <locale.h>
16721 main ()
16723 char s[128]; strerror_r(5, s);
16725 return 0;
16727 _ACEOF
16728 if ac_fn_c_try_compile "$LINENO"; then :
16730 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 CFLAGS="$ac_save_CFLAGS"
16737 # Check for C99 (and other IEEE) math functions
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16739 $as_echo_n "checking for sin in -lm... " >&6; }
16740 if test "${ac_cv_lib_m_sin+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16742 else
16743 ac_check_lib_save_LIBS=$LIBS
16744 LIBS="-lm $LIBS"
16745 if test x$gcc_no_link = xyes; then
16746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16751 /* Override any GCC internal prototype to avoid an error.
16752 Use char because int might match the return type of a GCC
16753 builtin and then its argument prototype would still apply. */
16754 #ifdef __cplusplus
16755 extern "C"
16756 #endif
16757 char sin ();
16759 main ()
16761 return sin ();
16763 return 0;
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767 ac_cv_lib_m_sin=yes
16768 else
16769 ac_cv_lib_m_sin=no
16771 rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16776 $as_echo "$ac_cv_lib_m_sin" >&6; }
16777 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_LIBM 1
16780 _ACEOF
16782 LIBS="-lm $LIBS"
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16793 $as_echo_n "checking for acosf... " >&6; }
16794 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 if test x$gcc_no_link = xyes; then
16798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16803 #ifdef HAVE_COMPLEX_H
16804 #include <complex.h>
16805 #endif
16806 #ifdef HAVE_MATH_H
16807 #include <math.h>
16808 #endif
16810 int (*ptr)() = (int (*)())acosf;
16813 main ()
16815 return 0;
16818 _ACEOF
16819 if ac_fn_c_try_link "$LINENO"; then :
16820 gcc_cv_math_func_acosf=yes
16821 else
16822 gcc_cv_math_func_acosf=no
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16828 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16829 if test $gcc_cv_math_func_acosf = yes; then
16831 cat >>confdefs.h <<_ACEOF
16832 #define HAVE_ACOSF 1
16833 _ACEOF
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16841 $as_echo_n "checking for acos... " >&6; }
16842 if test "${gcc_cv_math_func_acos+set}" = set; then :
16843 $as_echo_n "(cached) " >&6
16844 else
16845 if test x$gcc_no_link = xyes; then
16846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16851 #ifdef HAVE_COMPLEX_H
16852 #include <complex.h>
16853 #endif
16854 #ifdef HAVE_MATH_H
16855 #include <math.h>
16856 #endif
16858 int (*ptr)() = (int (*)())acos;
16861 main ()
16863 return 0;
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"; then :
16868 gcc_cv_math_func_acos=yes
16869 else
16870 gcc_cv_math_func_acos=no
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16876 $as_echo "$gcc_cv_math_func_acos" >&6; }
16877 if test $gcc_cv_math_func_acos = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_ACOS 1
16881 _ACEOF
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16889 $as_echo_n "checking for acosl... " >&6; }
16890 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16893 if test x$gcc_no_link = xyes; then
16894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16899 #ifdef HAVE_COMPLEX_H
16900 #include <complex.h>
16901 #endif
16902 #ifdef HAVE_MATH_H
16903 #include <math.h>
16904 #endif
16906 int (*ptr)() = (int (*)())acosl;
16909 main ()
16911 return 0;
16914 _ACEOF
16915 if ac_fn_c_try_link "$LINENO"; then :
16916 gcc_cv_math_func_acosl=yes
16917 else
16918 gcc_cv_math_func_acosl=no
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16924 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16925 if test $gcc_cv_math_func_acosl = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_ACOSL 1
16929 _ACEOF
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16937 $as_echo_n "checking for acoshf... " >&6; }
16938 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16941 if test x$gcc_no_link = xyes; then
16942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16947 #ifdef HAVE_COMPLEX_H
16948 #include <complex.h>
16949 #endif
16950 #ifdef HAVE_MATH_H
16951 #include <math.h>
16952 #endif
16954 int (*ptr)() = (int (*)())acoshf;
16957 main ()
16959 return 0;
16962 _ACEOF
16963 if ac_fn_c_try_link "$LINENO"; then :
16964 gcc_cv_math_func_acoshf=yes
16965 else
16966 gcc_cv_math_func_acoshf=no
16968 rm -f core conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16972 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16973 if test $gcc_cv_math_func_acoshf = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_ACOSHF 1
16977 _ACEOF
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16985 $as_echo_n "checking for acosh... " >&6; }
16986 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 if test x$gcc_no_link = xyes; then
16990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 #ifdef HAVE_COMPLEX_H
16996 #include <complex.h>
16997 #endif
16998 #ifdef HAVE_MATH_H
16999 #include <math.h>
17000 #endif
17002 int (*ptr)() = (int (*)())acosh;
17005 main ()
17007 return 0;
17010 _ACEOF
17011 if ac_fn_c_try_link "$LINENO"; then :
17012 gcc_cv_math_func_acosh=yes
17013 else
17014 gcc_cv_math_func_acosh=no
17016 rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17020 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17021 if test $gcc_cv_math_func_acosh = yes; then
17023 cat >>confdefs.h <<_ACEOF
17024 #define HAVE_ACOSH 1
17025 _ACEOF
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17033 $as_echo_n "checking for acoshl... " >&6; }
17034 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 if test x$gcc_no_link = xyes; then
17038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17043 #ifdef HAVE_COMPLEX_H
17044 #include <complex.h>
17045 #endif
17046 #ifdef HAVE_MATH_H
17047 #include <math.h>
17048 #endif
17050 int (*ptr)() = (int (*)())acoshl;
17053 main ()
17055 return 0;
17058 _ACEOF
17059 if ac_fn_c_try_link "$LINENO"; then :
17060 gcc_cv_math_func_acoshl=yes
17061 else
17062 gcc_cv_math_func_acoshl=no
17064 rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17068 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17069 if test $gcc_cv_math_func_acoshl = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072 #define HAVE_ACOSHL 1
17073 _ACEOF
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17081 $as_echo_n "checking for asinf... " >&6; }
17082 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 if test x$gcc_no_link = xyes; then
17086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17091 #ifdef HAVE_COMPLEX_H
17092 #include <complex.h>
17093 #endif
17094 #ifdef HAVE_MATH_H
17095 #include <math.h>
17096 #endif
17098 int (*ptr)() = (int (*)())asinf;
17101 main ()
17103 return 0;
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 gcc_cv_math_func_asinf=yes
17109 else
17110 gcc_cv_math_func_asinf=no
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17116 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17117 if test $gcc_cv_math_func_asinf = yes; then
17119 cat >>confdefs.h <<_ACEOF
17120 #define HAVE_ASINF 1
17121 _ACEOF
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17129 $as_echo_n "checking for asin... " >&6; }
17130 if test "${gcc_cv_math_func_asin+set}" = set; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 if test x$gcc_no_link = xyes; then
17134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17139 #ifdef HAVE_COMPLEX_H
17140 #include <complex.h>
17141 #endif
17142 #ifdef HAVE_MATH_H
17143 #include <math.h>
17144 #endif
17146 int (*ptr)() = (int (*)())asin;
17149 main ()
17151 return 0;
17154 _ACEOF
17155 if ac_fn_c_try_link "$LINENO"; then :
17156 gcc_cv_math_func_asin=yes
17157 else
17158 gcc_cv_math_func_asin=no
17160 rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17164 $as_echo "$gcc_cv_math_func_asin" >&6; }
17165 if test $gcc_cv_math_func_asin = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define HAVE_ASIN 1
17169 _ACEOF
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17177 $as_echo_n "checking for asinl... " >&6; }
17178 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17181 if test x$gcc_no_link = xyes; then
17182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17187 #ifdef HAVE_COMPLEX_H
17188 #include <complex.h>
17189 #endif
17190 #ifdef HAVE_MATH_H
17191 #include <math.h>
17192 #endif
17194 int (*ptr)() = (int (*)())asinl;
17197 main ()
17199 return 0;
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 gcc_cv_math_func_asinl=yes
17205 else
17206 gcc_cv_math_func_asinl=no
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17212 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17213 if test $gcc_cv_math_func_asinl = yes; then
17215 cat >>confdefs.h <<_ACEOF
17216 #define HAVE_ASINL 1
17217 _ACEOF
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17225 $as_echo_n "checking for asinhf... " >&6; }
17226 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17228 else
17229 if test x$gcc_no_link = xyes; then
17230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17235 #ifdef HAVE_COMPLEX_H
17236 #include <complex.h>
17237 #endif
17238 #ifdef HAVE_MATH_H
17239 #include <math.h>
17240 #endif
17242 int (*ptr)() = (int (*)())asinhf;
17245 main ()
17247 return 0;
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"; then :
17252 gcc_cv_math_func_asinhf=yes
17253 else
17254 gcc_cv_math_func_asinhf=no
17256 rm -f core conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17260 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17261 if test $gcc_cv_math_func_asinhf = yes; then
17263 cat >>confdefs.h <<_ACEOF
17264 #define HAVE_ASINHF 1
17265 _ACEOF
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17273 $as_echo_n "checking for asinh... " >&6; }
17274 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 if test x$gcc_no_link = xyes; then
17278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 #ifdef HAVE_COMPLEX_H
17284 #include <complex.h>
17285 #endif
17286 #ifdef HAVE_MATH_H
17287 #include <math.h>
17288 #endif
17290 int (*ptr)() = (int (*)())asinh;
17293 main ()
17295 return 0;
17298 _ACEOF
17299 if ac_fn_c_try_link "$LINENO"; then :
17300 gcc_cv_math_func_asinh=yes
17301 else
17302 gcc_cv_math_func_asinh=no
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17308 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17309 if test $gcc_cv_math_func_asinh = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312 #define HAVE_ASINH 1
17313 _ACEOF
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17321 $as_echo_n "checking for asinhl... " >&6; }
17322 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 if test x$gcc_no_link = xyes; then
17326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 #ifdef HAVE_COMPLEX_H
17332 #include <complex.h>
17333 #endif
17334 #ifdef HAVE_MATH_H
17335 #include <math.h>
17336 #endif
17338 int (*ptr)() = (int (*)())asinhl;
17341 main ()
17343 return 0;
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 gcc_cv_math_func_asinhl=yes
17349 else
17350 gcc_cv_math_func_asinhl=no
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17356 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17357 if test $gcc_cv_math_func_asinhl = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define HAVE_ASINHL 1
17361 _ACEOF
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17369 $as_echo_n "checking for atan2f... " >&6; }
17370 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 if test x$gcc_no_link = xyes; then
17374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 #ifdef HAVE_COMPLEX_H
17380 #include <complex.h>
17381 #endif
17382 #ifdef HAVE_MATH_H
17383 #include <math.h>
17384 #endif
17386 int (*ptr)() = (int (*)())atan2f;
17389 main ()
17391 return 0;
17394 _ACEOF
17395 if ac_fn_c_try_link "$LINENO"; then :
17396 gcc_cv_math_func_atan2f=yes
17397 else
17398 gcc_cv_math_func_atan2f=no
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17404 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17405 if test $gcc_cv_math_func_atan2f = yes; then
17407 cat >>confdefs.h <<_ACEOF
17408 #define HAVE_ATAN2F 1
17409 _ACEOF
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17417 $as_echo_n "checking for atan2... " >&6; }
17418 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 if test x$gcc_no_link = xyes; then
17422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 #ifdef HAVE_COMPLEX_H
17428 #include <complex.h>
17429 #endif
17430 #ifdef HAVE_MATH_H
17431 #include <math.h>
17432 #endif
17434 int (*ptr)() = (int (*)())atan2;
17437 main ()
17439 return 0;
17442 _ACEOF
17443 if ac_fn_c_try_link "$LINENO"; then :
17444 gcc_cv_math_func_atan2=yes
17445 else
17446 gcc_cv_math_func_atan2=no
17448 rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17452 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17453 if test $gcc_cv_math_func_atan2 = yes; then
17455 cat >>confdefs.h <<_ACEOF
17456 #define HAVE_ATAN2 1
17457 _ACEOF
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17465 $as_echo_n "checking for atan2l... " >&6; }
17466 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17467 $as_echo_n "(cached) " >&6
17468 else
17469 if test x$gcc_no_link = xyes; then
17470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 #ifdef HAVE_COMPLEX_H
17476 #include <complex.h>
17477 #endif
17478 #ifdef HAVE_MATH_H
17479 #include <math.h>
17480 #endif
17482 int (*ptr)() = (int (*)())atan2l;
17485 main ()
17487 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_link "$LINENO"; then :
17492 gcc_cv_math_func_atan2l=yes
17493 else
17494 gcc_cv_math_func_atan2l=no
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17500 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17501 if test $gcc_cv_math_func_atan2l = yes; then
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_ATAN2L 1
17505 _ACEOF
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17513 $as_echo_n "checking for atanf... " >&6; }
17514 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 if test x$gcc_no_link = xyes; then
17518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17523 #ifdef HAVE_COMPLEX_H
17524 #include <complex.h>
17525 #endif
17526 #ifdef HAVE_MATH_H
17527 #include <math.h>
17528 #endif
17530 int (*ptr)() = (int (*)())atanf;
17533 main ()
17535 return 0;
17538 _ACEOF
17539 if ac_fn_c_try_link "$LINENO"; then :
17540 gcc_cv_math_func_atanf=yes
17541 else
17542 gcc_cv_math_func_atanf=no
17544 rm -f core conftest.err conftest.$ac_objext \
17545 conftest$ac_exeext conftest.$ac_ext
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17548 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17549 if test $gcc_cv_math_func_atanf = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_ATANF 1
17553 _ACEOF
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17561 $as_echo_n "checking for atan... " >&6; }
17562 if test "${gcc_cv_math_func_atan+set}" = set; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 if test x$gcc_no_link = xyes; then
17566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17571 #ifdef HAVE_COMPLEX_H
17572 #include <complex.h>
17573 #endif
17574 #ifdef HAVE_MATH_H
17575 #include <math.h>
17576 #endif
17578 int (*ptr)() = (int (*)())atan;
17581 main ()
17583 return 0;
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 gcc_cv_math_func_atan=yes
17589 else
17590 gcc_cv_math_func_atan=no
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17596 $as_echo "$gcc_cv_math_func_atan" >&6; }
17597 if test $gcc_cv_math_func_atan = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_ATAN 1
17601 _ACEOF
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17609 $as_echo_n "checking for atanl... " >&6; }
17610 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 if test x$gcc_no_link = xyes; then
17614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17619 #ifdef HAVE_COMPLEX_H
17620 #include <complex.h>
17621 #endif
17622 #ifdef HAVE_MATH_H
17623 #include <math.h>
17624 #endif
17626 int (*ptr)() = (int (*)())atanl;
17629 main ()
17631 return 0;
17634 _ACEOF
17635 if ac_fn_c_try_link "$LINENO"; then :
17636 gcc_cv_math_func_atanl=yes
17637 else
17638 gcc_cv_math_func_atanl=no
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17644 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17645 if test $gcc_cv_math_func_atanl = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define HAVE_ATANL 1
17649 _ACEOF
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17657 $as_echo_n "checking for atanhf... " >&6; }
17658 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17660 else
17661 if test x$gcc_no_link = xyes; then
17662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17667 #ifdef HAVE_COMPLEX_H
17668 #include <complex.h>
17669 #endif
17670 #ifdef HAVE_MATH_H
17671 #include <math.h>
17672 #endif
17674 int (*ptr)() = (int (*)())atanhf;
17677 main ()
17679 return 0;
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 gcc_cv_math_func_atanhf=yes
17685 else
17686 gcc_cv_math_func_atanhf=no
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17692 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17693 if test $gcc_cv_math_func_atanhf = yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_ATANHF 1
17697 _ACEOF
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17705 $as_echo_n "checking for atanh... " >&6; }
17706 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17707 $as_echo_n "(cached) " >&6
17708 else
17709 if test x$gcc_no_link = xyes; then
17710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 #ifdef HAVE_COMPLEX_H
17716 #include <complex.h>
17717 #endif
17718 #ifdef HAVE_MATH_H
17719 #include <math.h>
17720 #endif
17722 int (*ptr)() = (int (*)())atanh;
17725 main ()
17727 return 0;
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"; then :
17732 gcc_cv_math_func_atanh=yes
17733 else
17734 gcc_cv_math_func_atanh=no
17736 rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17740 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17741 if test $gcc_cv_math_func_atanh = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define HAVE_ATANH 1
17745 _ACEOF
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17753 $as_echo_n "checking for atanhl... " >&6; }
17754 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 if test x$gcc_no_link = xyes; then
17758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17763 #ifdef HAVE_COMPLEX_H
17764 #include <complex.h>
17765 #endif
17766 #ifdef HAVE_MATH_H
17767 #include <math.h>
17768 #endif
17770 int (*ptr)() = (int (*)())atanhl;
17773 main ()
17775 return 0;
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 gcc_cv_math_func_atanhl=yes
17781 else
17782 gcc_cv_math_func_atanhl=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17788 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17789 if test $gcc_cv_math_func_atanhl = yes; then
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_ATANHL 1
17793 _ACEOF
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17801 $as_echo_n "checking for cargf... " >&6; }
17802 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805 if test x$gcc_no_link = xyes; then
17806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 #ifdef HAVE_COMPLEX_H
17812 #include <complex.h>
17813 #endif
17814 #ifdef HAVE_MATH_H
17815 #include <math.h>
17816 #endif
17818 int (*ptr)() = (int (*)())cargf;
17821 main ()
17823 return 0;
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"; then :
17828 gcc_cv_math_func_cargf=yes
17829 else
17830 gcc_cv_math_func_cargf=no
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17836 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17837 if test $gcc_cv_math_func_cargf = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define HAVE_CARGF 1
17841 _ACEOF
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17849 $as_echo_n "checking for carg... " >&6; }
17850 if test "${gcc_cv_math_func_carg+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 if test x$gcc_no_link = xyes; then
17854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 #ifdef HAVE_COMPLEX_H
17860 #include <complex.h>
17861 #endif
17862 #ifdef HAVE_MATH_H
17863 #include <math.h>
17864 #endif
17866 int (*ptr)() = (int (*)())carg;
17869 main ()
17871 return 0;
17874 _ACEOF
17875 if ac_fn_c_try_link "$LINENO"; then :
17876 gcc_cv_math_func_carg=yes
17877 else
17878 gcc_cv_math_func_carg=no
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17884 $as_echo "$gcc_cv_math_func_carg" >&6; }
17885 if test $gcc_cv_math_func_carg = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_CARG 1
17889 _ACEOF
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17897 $as_echo_n "checking for cargl... " >&6; }
17898 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 if test x$gcc_no_link = xyes; then
17902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 #ifdef HAVE_COMPLEX_H
17908 #include <complex.h>
17909 #endif
17910 #ifdef HAVE_MATH_H
17911 #include <math.h>
17912 #endif
17914 int (*ptr)() = (int (*)())cargl;
17917 main ()
17919 return 0;
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924 gcc_cv_math_func_cargl=yes
17925 else
17926 gcc_cv_math_func_cargl=no
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17932 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17933 if test $gcc_cv_math_func_cargl = yes; then
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_CARGL 1
17937 _ACEOF
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17945 $as_echo_n "checking for ceilf... " >&6; }
17946 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 if test x$gcc_no_link = xyes; then
17950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17955 #ifdef HAVE_COMPLEX_H
17956 #include <complex.h>
17957 #endif
17958 #ifdef HAVE_MATH_H
17959 #include <math.h>
17960 #endif
17962 int (*ptr)() = (int (*)())ceilf;
17965 main ()
17967 return 0;
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 gcc_cv_math_func_ceilf=yes
17973 else
17974 gcc_cv_math_func_ceilf=no
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17980 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17981 if test $gcc_cv_math_func_ceilf = yes; then
17983 cat >>confdefs.h <<_ACEOF
17984 #define HAVE_CEILF 1
17985 _ACEOF
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17993 $as_echo_n "checking for ceil... " >&6; }
17994 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 if test x$gcc_no_link = xyes; then
17998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18003 #ifdef HAVE_COMPLEX_H
18004 #include <complex.h>
18005 #endif
18006 #ifdef HAVE_MATH_H
18007 #include <math.h>
18008 #endif
18010 int (*ptr)() = (int (*)())ceil;
18013 main ()
18015 return 0;
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"; then :
18020 gcc_cv_math_func_ceil=yes
18021 else
18022 gcc_cv_math_func_ceil=no
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18028 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18029 if test $gcc_cv_math_func_ceil = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_CEIL 1
18033 _ACEOF
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18041 $as_echo_n "checking for ceill... " >&6; }
18042 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 if test x$gcc_no_link = xyes; then
18046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18051 #ifdef HAVE_COMPLEX_H
18052 #include <complex.h>
18053 #endif
18054 #ifdef HAVE_MATH_H
18055 #include <math.h>
18056 #endif
18058 int (*ptr)() = (int (*)())ceill;
18061 main ()
18063 return 0;
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 gcc_cv_math_func_ceill=yes
18069 else
18070 gcc_cv_math_func_ceill=no
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18076 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18077 if test $gcc_cv_math_func_ceill = yes; then
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_CEILL 1
18081 _ACEOF
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18089 $as_echo_n "checking for copysignf... " >&6; }
18090 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 if test x$gcc_no_link = xyes; then
18094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18099 #ifdef HAVE_COMPLEX_H
18100 #include <complex.h>
18101 #endif
18102 #ifdef HAVE_MATH_H
18103 #include <math.h>
18104 #endif
18106 int (*ptr)() = (int (*)())copysignf;
18109 main ()
18111 return 0;
18114 _ACEOF
18115 if ac_fn_c_try_link "$LINENO"; then :
18116 gcc_cv_math_func_copysignf=yes
18117 else
18118 gcc_cv_math_func_copysignf=no
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18124 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18125 if test $gcc_cv_math_func_copysignf = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_COPYSIGNF 1
18129 _ACEOF
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18137 $as_echo_n "checking for copysign... " >&6; }
18138 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 if test x$gcc_no_link = xyes; then
18142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 #ifdef HAVE_COMPLEX_H
18148 #include <complex.h>
18149 #endif
18150 #ifdef HAVE_MATH_H
18151 #include <math.h>
18152 #endif
18154 int (*ptr)() = (int (*)())copysign;
18157 main ()
18159 return 0;
18162 _ACEOF
18163 if ac_fn_c_try_link "$LINENO"; then :
18164 gcc_cv_math_func_copysign=yes
18165 else
18166 gcc_cv_math_func_copysign=no
18168 rm -f core conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18172 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18173 if test $gcc_cv_math_func_copysign = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define HAVE_COPYSIGN 1
18177 _ACEOF
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18185 $as_echo_n "checking for copysignl... " >&6; }
18186 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 if test x$gcc_no_link = xyes; then
18190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18195 #ifdef HAVE_COMPLEX_H
18196 #include <complex.h>
18197 #endif
18198 #ifdef HAVE_MATH_H
18199 #include <math.h>
18200 #endif
18202 int (*ptr)() = (int (*)())copysignl;
18205 main ()
18207 return 0;
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 gcc_cv_math_func_copysignl=yes
18213 else
18214 gcc_cv_math_func_copysignl=no
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18220 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18221 if test $gcc_cv_math_func_copysignl = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define HAVE_COPYSIGNL 1
18225 _ACEOF
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18233 $as_echo_n "checking for cosf... " >&6; }
18234 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18236 else
18237 if test x$gcc_no_link = xyes; then
18238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 #ifdef HAVE_COMPLEX_H
18244 #include <complex.h>
18245 #endif
18246 #ifdef HAVE_MATH_H
18247 #include <math.h>
18248 #endif
18250 int (*ptr)() = (int (*)())cosf;
18253 main ()
18255 return 0;
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260 gcc_cv_math_func_cosf=yes
18261 else
18262 gcc_cv_math_func_cosf=no
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18268 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18269 if test $gcc_cv_math_func_cosf = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define HAVE_COSF 1
18273 _ACEOF
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18281 $as_echo_n "checking for cos... " >&6; }
18282 if test "${gcc_cv_math_func_cos+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 if test x$gcc_no_link = xyes; then
18286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18291 #ifdef HAVE_COMPLEX_H
18292 #include <complex.h>
18293 #endif
18294 #ifdef HAVE_MATH_H
18295 #include <math.h>
18296 #endif
18298 int (*ptr)() = (int (*)())cos;
18301 main ()
18303 return 0;
18306 _ACEOF
18307 if ac_fn_c_try_link "$LINENO"; then :
18308 gcc_cv_math_func_cos=yes
18309 else
18310 gcc_cv_math_func_cos=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18316 $as_echo "$gcc_cv_math_func_cos" >&6; }
18317 if test $gcc_cv_math_func_cos = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define HAVE_COS 1
18321 _ACEOF
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18329 $as_echo_n "checking for cosl... " >&6; }
18330 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333 if test x$gcc_no_link = xyes; then
18334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18339 #ifdef HAVE_COMPLEX_H
18340 #include <complex.h>
18341 #endif
18342 #ifdef HAVE_MATH_H
18343 #include <math.h>
18344 #endif
18346 int (*ptr)() = (int (*)())cosl;
18349 main ()
18351 return 0;
18354 _ACEOF
18355 if ac_fn_c_try_link "$LINENO"; then :
18356 gcc_cv_math_func_cosl=yes
18357 else
18358 gcc_cv_math_func_cosl=no
18360 rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18364 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18365 if test $gcc_cv_math_func_cosl = yes; then
18367 cat >>confdefs.h <<_ACEOF
18368 #define HAVE_COSL 1
18369 _ACEOF
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18377 $as_echo_n "checking for ccosf... " >&6; }
18378 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 if test x$gcc_no_link = xyes; then
18382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18387 #ifdef HAVE_COMPLEX_H
18388 #include <complex.h>
18389 #endif
18390 #ifdef HAVE_MATH_H
18391 #include <math.h>
18392 #endif
18394 int (*ptr)() = (int (*)())ccosf;
18397 main ()
18399 return 0;
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 gcc_cv_math_func_ccosf=yes
18405 else
18406 gcc_cv_math_func_ccosf=no
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18412 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18413 if test $gcc_cv_math_func_ccosf = yes; then
18415 cat >>confdefs.h <<_ACEOF
18416 #define HAVE_CCOSF 1
18417 _ACEOF
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18425 $as_echo_n "checking for ccos... " >&6; }
18426 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18428 else
18429 if test x$gcc_no_link = xyes; then
18430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18435 #ifdef HAVE_COMPLEX_H
18436 #include <complex.h>
18437 #endif
18438 #ifdef HAVE_MATH_H
18439 #include <math.h>
18440 #endif
18442 int (*ptr)() = (int (*)())ccos;
18445 main ()
18447 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 gcc_cv_math_func_ccos=yes
18453 else
18454 gcc_cv_math_func_ccos=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18460 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18461 if test $gcc_cv_math_func_ccos = yes; then
18463 cat >>confdefs.h <<_ACEOF
18464 #define HAVE_CCOS 1
18465 _ACEOF
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18473 $as_echo_n "checking for ccosl... " >&6; }
18474 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18476 else
18477 if test x$gcc_no_link = xyes; then
18478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18483 #ifdef HAVE_COMPLEX_H
18484 #include <complex.h>
18485 #endif
18486 #ifdef HAVE_MATH_H
18487 #include <math.h>
18488 #endif
18490 int (*ptr)() = (int (*)())ccosl;
18493 main ()
18495 return 0;
18498 _ACEOF
18499 if ac_fn_c_try_link "$LINENO"; then :
18500 gcc_cv_math_func_ccosl=yes
18501 else
18502 gcc_cv_math_func_ccosl=no
18504 rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18508 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18509 if test $gcc_cv_math_func_ccosl = yes; then
18511 cat >>confdefs.h <<_ACEOF
18512 #define HAVE_CCOSL 1
18513 _ACEOF
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18521 $as_echo_n "checking for coshf... " >&6; }
18522 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 if test x$gcc_no_link = xyes; then
18526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18531 #ifdef HAVE_COMPLEX_H
18532 #include <complex.h>
18533 #endif
18534 #ifdef HAVE_MATH_H
18535 #include <math.h>
18536 #endif
18538 int (*ptr)() = (int (*)())coshf;
18541 main ()
18543 return 0;
18546 _ACEOF
18547 if ac_fn_c_try_link "$LINENO"; then :
18548 gcc_cv_math_func_coshf=yes
18549 else
18550 gcc_cv_math_func_coshf=no
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18556 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18557 if test $gcc_cv_math_func_coshf = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_COSHF 1
18561 _ACEOF
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18569 $as_echo_n "checking for cosh... " >&6; }
18570 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18571 $as_echo_n "(cached) " >&6
18572 else
18573 if test x$gcc_no_link = xyes; then
18574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18579 #ifdef HAVE_COMPLEX_H
18580 #include <complex.h>
18581 #endif
18582 #ifdef HAVE_MATH_H
18583 #include <math.h>
18584 #endif
18586 int (*ptr)() = (int (*)())cosh;
18589 main ()
18591 return 0;
18594 _ACEOF
18595 if ac_fn_c_try_link "$LINENO"; then :
18596 gcc_cv_math_func_cosh=yes
18597 else
18598 gcc_cv_math_func_cosh=no
18600 rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18604 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18605 if test $gcc_cv_math_func_cosh = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define HAVE_COSH 1
18609 _ACEOF
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18617 $as_echo_n "checking for coshl... " >&6; }
18618 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 if test x$gcc_no_link = xyes; then
18622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18627 #ifdef HAVE_COMPLEX_H
18628 #include <complex.h>
18629 #endif
18630 #ifdef HAVE_MATH_H
18631 #include <math.h>
18632 #endif
18634 int (*ptr)() = (int (*)())coshl;
18637 main ()
18639 return 0;
18642 _ACEOF
18643 if ac_fn_c_try_link "$LINENO"; then :
18644 gcc_cv_math_func_coshl=yes
18645 else
18646 gcc_cv_math_func_coshl=no
18648 rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18652 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18653 if test $gcc_cv_math_func_coshl = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_COSHL 1
18657 _ACEOF
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18665 $as_echo_n "checking for ccoshf... " >&6; }
18666 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669 if test x$gcc_no_link = xyes; then
18670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18675 #ifdef HAVE_COMPLEX_H
18676 #include <complex.h>
18677 #endif
18678 #ifdef HAVE_MATH_H
18679 #include <math.h>
18680 #endif
18682 int (*ptr)() = (int (*)())ccoshf;
18685 main ()
18687 return 0;
18690 _ACEOF
18691 if ac_fn_c_try_link "$LINENO"; then :
18692 gcc_cv_math_func_ccoshf=yes
18693 else
18694 gcc_cv_math_func_ccoshf=no
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18700 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18701 if test $gcc_cv_math_func_ccoshf = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_CCOSHF 1
18705 _ACEOF
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18713 $as_echo_n "checking for ccosh... " >&6; }
18714 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18715 $as_echo_n "(cached) " >&6
18716 else
18717 if test x$gcc_no_link = xyes; then
18718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18723 #ifdef HAVE_COMPLEX_H
18724 #include <complex.h>
18725 #endif
18726 #ifdef HAVE_MATH_H
18727 #include <math.h>
18728 #endif
18730 int (*ptr)() = (int (*)())ccosh;
18733 main ()
18735 return 0;
18738 _ACEOF
18739 if ac_fn_c_try_link "$LINENO"; then :
18740 gcc_cv_math_func_ccosh=yes
18741 else
18742 gcc_cv_math_func_ccosh=no
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18748 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18749 if test $gcc_cv_math_func_ccosh = yes; then
18751 cat >>confdefs.h <<_ACEOF
18752 #define HAVE_CCOSH 1
18753 _ACEOF
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18761 $as_echo_n "checking for ccoshl... " >&6; }
18762 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18765 if test x$gcc_no_link = xyes; then
18766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 #ifdef HAVE_COMPLEX_H
18772 #include <complex.h>
18773 #endif
18774 #ifdef HAVE_MATH_H
18775 #include <math.h>
18776 #endif
18778 int (*ptr)() = (int (*)())ccoshl;
18781 main ()
18783 return 0;
18786 _ACEOF
18787 if ac_fn_c_try_link "$LINENO"; then :
18788 gcc_cv_math_func_ccoshl=yes
18789 else
18790 gcc_cv_math_func_ccoshl=no
18792 rm -f core conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18796 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18797 if test $gcc_cv_math_func_ccoshl = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_CCOSHL 1
18801 _ACEOF
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18809 $as_echo_n "checking for expf... " >&6; }
18810 if test "${gcc_cv_math_func_expf+set}" = set; then :
18811 $as_echo_n "(cached) " >&6
18812 else
18813 if test x$gcc_no_link = xyes; then
18814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18819 #ifdef HAVE_COMPLEX_H
18820 #include <complex.h>
18821 #endif
18822 #ifdef HAVE_MATH_H
18823 #include <math.h>
18824 #endif
18826 int (*ptr)() = (int (*)())expf;
18829 main ()
18831 return 0;
18834 _ACEOF
18835 if ac_fn_c_try_link "$LINENO"; then :
18836 gcc_cv_math_func_expf=yes
18837 else
18838 gcc_cv_math_func_expf=no
18840 rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18844 $as_echo "$gcc_cv_math_func_expf" >&6; }
18845 if test $gcc_cv_math_func_expf = yes; then
18847 cat >>confdefs.h <<_ACEOF
18848 #define HAVE_EXPF 1
18849 _ACEOF
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18857 $as_echo_n "checking for exp... " >&6; }
18858 if test "${gcc_cv_math_func_exp+set}" = set; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18861 if test x$gcc_no_link = xyes; then
18862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 #ifdef HAVE_COMPLEX_H
18868 #include <complex.h>
18869 #endif
18870 #ifdef HAVE_MATH_H
18871 #include <math.h>
18872 #endif
18874 int (*ptr)() = (int (*)())exp;
18877 main ()
18879 return 0;
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"; then :
18884 gcc_cv_math_func_exp=yes
18885 else
18886 gcc_cv_math_func_exp=no
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18892 $as_echo "$gcc_cv_math_func_exp" >&6; }
18893 if test $gcc_cv_math_func_exp = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define HAVE_EXP 1
18897 _ACEOF
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18905 $as_echo_n "checking for expl... " >&6; }
18906 if test "${gcc_cv_math_func_expl+set}" = set; then :
18907 $as_echo_n "(cached) " >&6
18908 else
18909 if test x$gcc_no_link = xyes; then
18910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18915 #ifdef HAVE_COMPLEX_H
18916 #include <complex.h>
18917 #endif
18918 #ifdef HAVE_MATH_H
18919 #include <math.h>
18920 #endif
18922 int (*ptr)() = (int (*)())expl;
18925 main ()
18927 return 0;
18930 _ACEOF
18931 if ac_fn_c_try_link "$LINENO"; then :
18932 gcc_cv_math_func_expl=yes
18933 else
18934 gcc_cv_math_func_expl=no
18936 rm -f core conftest.err conftest.$ac_objext \
18937 conftest$ac_exeext conftest.$ac_ext
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18940 $as_echo "$gcc_cv_math_func_expl" >&6; }
18941 if test $gcc_cv_math_func_expl = yes; then
18943 cat >>confdefs.h <<_ACEOF
18944 #define HAVE_EXPL 1
18945 _ACEOF
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18953 $as_echo_n "checking for cexpf... " >&6; }
18954 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18955 $as_echo_n "(cached) " >&6
18956 else
18957 if test x$gcc_no_link = xyes; then
18958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18963 #ifdef HAVE_COMPLEX_H
18964 #include <complex.h>
18965 #endif
18966 #ifdef HAVE_MATH_H
18967 #include <math.h>
18968 #endif
18970 int (*ptr)() = (int (*)())cexpf;
18973 main ()
18975 return 0;
18978 _ACEOF
18979 if ac_fn_c_try_link "$LINENO"; then :
18980 gcc_cv_math_func_cexpf=yes
18981 else
18982 gcc_cv_math_func_cexpf=no
18984 rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18988 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18989 if test $gcc_cv_math_func_cexpf = yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_CEXPF 1
18993 _ACEOF
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19001 $as_echo_n "checking for cexp... " >&6; }
19002 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19005 if test x$gcc_no_link = xyes; then
19006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 #ifdef HAVE_COMPLEX_H
19012 #include <complex.h>
19013 #endif
19014 #ifdef HAVE_MATH_H
19015 #include <math.h>
19016 #endif
19018 int (*ptr)() = (int (*)())cexp;
19021 main ()
19023 return 0;
19026 _ACEOF
19027 if ac_fn_c_try_link "$LINENO"; then :
19028 gcc_cv_math_func_cexp=yes
19029 else
19030 gcc_cv_math_func_cexp=no
19032 rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19036 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19037 if test $gcc_cv_math_func_cexp = yes; then
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_CEXP 1
19041 _ACEOF
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19049 $as_echo_n "checking for cexpl... " >&6; }
19050 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19052 else
19053 if test x$gcc_no_link = xyes; then
19054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19059 #ifdef HAVE_COMPLEX_H
19060 #include <complex.h>
19061 #endif
19062 #ifdef HAVE_MATH_H
19063 #include <math.h>
19064 #endif
19066 int (*ptr)() = (int (*)())cexpl;
19069 main ()
19071 return 0;
19074 _ACEOF
19075 if ac_fn_c_try_link "$LINENO"; then :
19076 gcc_cv_math_func_cexpl=yes
19077 else
19078 gcc_cv_math_func_cexpl=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19084 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19085 if test $gcc_cv_math_func_cexpl = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_CEXPL 1
19089 _ACEOF
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19097 $as_echo_n "checking for fabsf... " >&6; }
19098 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 if test x$gcc_no_link = xyes; then
19102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19107 #ifdef HAVE_COMPLEX_H
19108 #include <complex.h>
19109 #endif
19110 #ifdef HAVE_MATH_H
19111 #include <math.h>
19112 #endif
19114 int (*ptr)() = (int (*)())fabsf;
19117 main ()
19119 return 0;
19122 _ACEOF
19123 if ac_fn_c_try_link "$LINENO"; then :
19124 gcc_cv_math_func_fabsf=yes
19125 else
19126 gcc_cv_math_func_fabsf=no
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19132 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19133 if test $gcc_cv_math_func_fabsf = yes; then
19135 cat >>confdefs.h <<_ACEOF
19136 #define HAVE_FABSF 1
19137 _ACEOF
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19145 $as_echo_n "checking for fabs... " >&6; }
19146 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19147 $as_echo_n "(cached) " >&6
19148 else
19149 if test x$gcc_no_link = xyes; then
19150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19155 #ifdef HAVE_COMPLEX_H
19156 #include <complex.h>
19157 #endif
19158 #ifdef HAVE_MATH_H
19159 #include <math.h>
19160 #endif
19162 int (*ptr)() = (int (*)())fabs;
19165 main ()
19167 return 0;
19170 _ACEOF
19171 if ac_fn_c_try_link "$LINENO"; then :
19172 gcc_cv_math_func_fabs=yes
19173 else
19174 gcc_cv_math_func_fabs=no
19176 rm -f core conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19180 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19181 if test $gcc_cv_math_func_fabs = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define HAVE_FABS 1
19185 _ACEOF
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19193 $as_echo_n "checking for fabsl... " >&6; }
19194 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 if test x$gcc_no_link = xyes; then
19198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19203 #ifdef HAVE_COMPLEX_H
19204 #include <complex.h>
19205 #endif
19206 #ifdef HAVE_MATH_H
19207 #include <math.h>
19208 #endif
19210 int (*ptr)() = (int (*)())fabsl;
19213 main ()
19215 return 0;
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"; then :
19220 gcc_cv_math_func_fabsl=yes
19221 else
19222 gcc_cv_math_func_fabsl=no
19224 rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19228 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19229 if test $gcc_cv_math_func_fabsl = yes; then
19231 cat >>confdefs.h <<_ACEOF
19232 #define HAVE_FABSL 1
19233 _ACEOF
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19241 $as_echo_n "checking for cabsf... " >&6; }
19242 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19243 $as_echo_n "(cached) " >&6
19244 else
19245 if test x$gcc_no_link = xyes; then
19246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19251 #ifdef HAVE_COMPLEX_H
19252 #include <complex.h>
19253 #endif
19254 #ifdef HAVE_MATH_H
19255 #include <math.h>
19256 #endif
19258 int (*ptr)() = (int (*)())cabsf;
19261 main ()
19263 return 0;
19266 _ACEOF
19267 if ac_fn_c_try_link "$LINENO"; then :
19268 gcc_cv_math_func_cabsf=yes
19269 else
19270 gcc_cv_math_func_cabsf=no
19272 rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19276 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19277 if test $gcc_cv_math_func_cabsf = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_CABSF 1
19281 _ACEOF
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19289 $as_echo_n "checking for cabs... " >&6; }
19290 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19292 else
19293 if test x$gcc_no_link = xyes; then
19294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19299 #ifdef HAVE_COMPLEX_H
19300 #include <complex.h>
19301 #endif
19302 #ifdef HAVE_MATH_H
19303 #include <math.h>
19304 #endif
19306 int (*ptr)() = (int (*)())cabs;
19309 main ()
19311 return 0;
19314 _ACEOF
19315 if ac_fn_c_try_link "$LINENO"; then :
19316 gcc_cv_math_func_cabs=yes
19317 else
19318 gcc_cv_math_func_cabs=no
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19324 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19325 if test $gcc_cv_math_func_cabs = yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_CABS 1
19329 _ACEOF
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19337 $as_echo_n "checking for cabsl... " >&6; }
19338 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19339 $as_echo_n "(cached) " >&6
19340 else
19341 if test x$gcc_no_link = xyes; then
19342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19347 #ifdef HAVE_COMPLEX_H
19348 #include <complex.h>
19349 #endif
19350 #ifdef HAVE_MATH_H
19351 #include <math.h>
19352 #endif
19354 int (*ptr)() = (int (*)())cabsl;
19357 main ()
19359 return 0;
19362 _ACEOF
19363 if ac_fn_c_try_link "$LINENO"; then :
19364 gcc_cv_math_func_cabsl=yes
19365 else
19366 gcc_cv_math_func_cabsl=no
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19372 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19373 if test $gcc_cv_math_func_cabsl = yes; then
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_CABSL 1
19377 _ACEOF
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19385 $as_echo_n "checking for floorf... " >&6; }
19386 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19388 else
19389 if test x$gcc_no_link = xyes; then
19390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19395 #ifdef HAVE_COMPLEX_H
19396 #include <complex.h>
19397 #endif
19398 #ifdef HAVE_MATH_H
19399 #include <math.h>
19400 #endif
19402 int (*ptr)() = (int (*)())floorf;
19405 main ()
19407 return 0;
19410 _ACEOF
19411 if ac_fn_c_try_link "$LINENO"; then :
19412 gcc_cv_math_func_floorf=yes
19413 else
19414 gcc_cv_math_func_floorf=no
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19420 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19421 if test $gcc_cv_math_func_floorf = yes; then
19423 cat >>confdefs.h <<_ACEOF
19424 #define HAVE_FLOORF 1
19425 _ACEOF
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19433 $as_echo_n "checking for floor... " >&6; }
19434 if test "${gcc_cv_math_func_floor+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 if test x$gcc_no_link = xyes; then
19438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19443 #ifdef HAVE_COMPLEX_H
19444 #include <complex.h>
19445 #endif
19446 #ifdef HAVE_MATH_H
19447 #include <math.h>
19448 #endif
19450 int (*ptr)() = (int (*)())floor;
19453 main ()
19455 return 0;
19458 _ACEOF
19459 if ac_fn_c_try_link "$LINENO"; then :
19460 gcc_cv_math_func_floor=yes
19461 else
19462 gcc_cv_math_func_floor=no
19464 rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19468 $as_echo "$gcc_cv_math_func_floor" >&6; }
19469 if test $gcc_cv_math_func_floor = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define HAVE_FLOOR 1
19473 _ACEOF
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19481 $as_echo_n "checking for floorl... " >&6; }
19482 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19483 $as_echo_n "(cached) " >&6
19484 else
19485 if test x$gcc_no_link = xyes; then
19486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19491 #ifdef HAVE_COMPLEX_H
19492 #include <complex.h>
19493 #endif
19494 #ifdef HAVE_MATH_H
19495 #include <math.h>
19496 #endif
19498 int (*ptr)() = (int (*)())floorl;
19501 main ()
19503 return 0;
19506 _ACEOF
19507 if ac_fn_c_try_link "$LINENO"; then :
19508 gcc_cv_math_func_floorl=yes
19509 else
19510 gcc_cv_math_func_floorl=no
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19516 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19517 if test $gcc_cv_math_func_floorl = yes; then
19519 cat >>confdefs.h <<_ACEOF
19520 #define HAVE_FLOORL 1
19521 _ACEOF
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19529 $as_echo_n "checking for fmodf... " >&6; }
19530 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 if test x$gcc_no_link = xyes; then
19534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19539 #ifdef HAVE_COMPLEX_H
19540 #include <complex.h>
19541 #endif
19542 #ifdef HAVE_MATH_H
19543 #include <math.h>
19544 #endif
19546 int (*ptr)() = (int (*)())fmodf;
19549 main ()
19551 return 0;
19554 _ACEOF
19555 if ac_fn_c_try_link "$LINENO"; then :
19556 gcc_cv_math_func_fmodf=yes
19557 else
19558 gcc_cv_math_func_fmodf=no
19560 rm -f core conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19564 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19565 if test $gcc_cv_math_func_fmodf = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568 #define HAVE_FMODF 1
19569 _ACEOF
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19577 $as_echo_n "checking for fmod... " >&6; }
19578 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 if test x$gcc_no_link = xyes; then
19582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19585 /* end confdefs.h. */
19587 #ifdef HAVE_COMPLEX_H
19588 #include <complex.h>
19589 #endif
19590 #ifdef HAVE_MATH_H
19591 #include <math.h>
19592 #endif
19594 int (*ptr)() = (int (*)())fmod;
19597 main ()
19599 return 0;
19602 _ACEOF
19603 if ac_fn_c_try_link "$LINENO"; then :
19604 gcc_cv_math_func_fmod=yes
19605 else
19606 gcc_cv_math_func_fmod=no
19608 rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19612 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19613 if test $gcc_cv_math_func_fmod = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define HAVE_FMOD 1
19617 _ACEOF
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19625 $as_echo_n "checking for fmodl... " >&6; }
19626 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 if test x$gcc_no_link = xyes; then
19630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19633 /* end confdefs.h. */
19635 #ifdef HAVE_COMPLEX_H
19636 #include <complex.h>
19637 #endif
19638 #ifdef HAVE_MATH_H
19639 #include <math.h>
19640 #endif
19642 int (*ptr)() = (int (*)())fmodl;
19645 main ()
19647 return 0;
19650 _ACEOF
19651 if ac_fn_c_try_link "$LINENO"; then :
19652 gcc_cv_math_func_fmodl=yes
19653 else
19654 gcc_cv_math_func_fmodl=no
19656 rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19660 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19661 if test $gcc_cv_math_func_fmodl = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_FMODL 1
19665 _ACEOF
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19673 $as_echo_n "checking for frexpf... " >&6; }
19674 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19675 $as_echo_n "(cached) " >&6
19676 else
19677 if test x$gcc_no_link = xyes; then
19678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19683 #ifdef HAVE_COMPLEX_H
19684 #include <complex.h>
19685 #endif
19686 #ifdef HAVE_MATH_H
19687 #include <math.h>
19688 #endif
19690 int (*ptr)() = (int (*)())frexpf;
19693 main ()
19695 return 0;
19698 _ACEOF
19699 if ac_fn_c_try_link "$LINENO"; then :
19700 gcc_cv_math_func_frexpf=yes
19701 else
19702 gcc_cv_math_func_frexpf=no
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19708 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19709 if test $gcc_cv_math_func_frexpf = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_FREXPF 1
19713 _ACEOF
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19721 $as_echo_n "checking for frexp... " >&6; }
19722 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19723 $as_echo_n "(cached) " >&6
19724 else
19725 if test x$gcc_no_link = xyes; then
19726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729 /* end confdefs.h. */
19731 #ifdef HAVE_COMPLEX_H
19732 #include <complex.h>
19733 #endif
19734 #ifdef HAVE_MATH_H
19735 #include <math.h>
19736 #endif
19738 int (*ptr)() = (int (*)())frexp;
19741 main ()
19743 return 0;
19746 _ACEOF
19747 if ac_fn_c_try_link "$LINENO"; then :
19748 gcc_cv_math_func_frexp=yes
19749 else
19750 gcc_cv_math_func_frexp=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19756 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19757 if test $gcc_cv_math_func_frexp = yes; then
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_FREXP 1
19761 _ACEOF
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19769 $as_echo_n "checking for frexpl... " >&6; }
19770 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19771 $as_echo_n "(cached) " >&6
19772 else
19773 if test x$gcc_no_link = xyes; then
19774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19779 #ifdef HAVE_COMPLEX_H
19780 #include <complex.h>
19781 #endif
19782 #ifdef HAVE_MATH_H
19783 #include <math.h>
19784 #endif
19786 int (*ptr)() = (int (*)())frexpl;
19789 main ()
19791 return 0;
19794 _ACEOF
19795 if ac_fn_c_try_link "$LINENO"; then :
19796 gcc_cv_math_func_frexpl=yes
19797 else
19798 gcc_cv_math_func_frexpl=no
19800 rm -f core conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19804 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19805 if test $gcc_cv_math_func_frexpl = yes; then
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_FREXPL 1
19809 _ACEOF
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19817 $as_echo_n "checking for hypotf... " >&6; }
19818 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19819 $as_echo_n "(cached) " >&6
19820 else
19821 if test x$gcc_no_link = xyes; then
19822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19827 #ifdef HAVE_COMPLEX_H
19828 #include <complex.h>
19829 #endif
19830 #ifdef HAVE_MATH_H
19831 #include <math.h>
19832 #endif
19834 int (*ptr)() = (int (*)())hypotf;
19837 main ()
19839 return 0;
19842 _ACEOF
19843 if ac_fn_c_try_link "$LINENO"; then :
19844 gcc_cv_math_func_hypotf=yes
19845 else
19846 gcc_cv_math_func_hypotf=no
19848 rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19852 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19853 if test $gcc_cv_math_func_hypotf = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define HAVE_HYPOTF 1
19857 _ACEOF
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19865 $as_echo_n "checking for hypot... " >&6; }
19866 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19867 $as_echo_n "(cached) " >&6
19868 else
19869 if test x$gcc_no_link = xyes; then
19870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19875 #ifdef HAVE_COMPLEX_H
19876 #include <complex.h>
19877 #endif
19878 #ifdef HAVE_MATH_H
19879 #include <math.h>
19880 #endif
19882 int (*ptr)() = (int (*)())hypot;
19885 main ()
19887 return 0;
19890 _ACEOF
19891 if ac_fn_c_try_link "$LINENO"; then :
19892 gcc_cv_math_func_hypot=yes
19893 else
19894 gcc_cv_math_func_hypot=no
19896 rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19900 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19901 if test $gcc_cv_math_func_hypot = yes; then
19903 cat >>confdefs.h <<_ACEOF
19904 #define HAVE_HYPOT 1
19905 _ACEOF
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19913 $as_echo_n "checking for hypotl... " >&6; }
19914 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19915 $as_echo_n "(cached) " >&6
19916 else
19917 if test x$gcc_no_link = xyes; then
19918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19923 #ifdef HAVE_COMPLEX_H
19924 #include <complex.h>
19925 #endif
19926 #ifdef HAVE_MATH_H
19927 #include <math.h>
19928 #endif
19930 int (*ptr)() = (int (*)())hypotl;
19933 main ()
19935 return 0;
19938 _ACEOF
19939 if ac_fn_c_try_link "$LINENO"; then :
19940 gcc_cv_math_func_hypotl=yes
19941 else
19942 gcc_cv_math_func_hypotl=no
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19948 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19949 if test $gcc_cv_math_func_hypotl = yes; then
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_HYPOTL 1
19953 _ACEOF
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19961 $as_echo_n "checking for ldexpf... " >&6; }
19962 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19963 $as_echo_n "(cached) " >&6
19964 else
19965 if test x$gcc_no_link = xyes; then
19966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19971 #ifdef HAVE_COMPLEX_H
19972 #include <complex.h>
19973 #endif
19974 #ifdef HAVE_MATH_H
19975 #include <math.h>
19976 #endif
19978 int (*ptr)() = (int (*)())ldexpf;
19981 main ()
19983 return 0;
19986 _ACEOF
19987 if ac_fn_c_try_link "$LINENO"; then :
19988 gcc_cv_math_func_ldexpf=yes
19989 else
19990 gcc_cv_math_func_ldexpf=no
19992 rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19996 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19997 if test $gcc_cv_math_func_ldexpf = yes; then
19999 cat >>confdefs.h <<_ACEOF
20000 #define HAVE_LDEXPF 1
20001 _ACEOF
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20009 $as_echo_n "checking for ldexp... " >&6; }
20010 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20012 else
20013 if test x$gcc_no_link = xyes; then
20014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20019 #ifdef HAVE_COMPLEX_H
20020 #include <complex.h>
20021 #endif
20022 #ifdef HAVE_MATH_H
20023 #include <math.h>
20024 #endif
20026 int (*ptr)() = (int (*)())ldexp;
20029 main ()
20031 return 0;
20034 _ACEOF
20035 if ac_fn_c_try_link "$LINENO"; then :
20036 gcc_cv_math_func_ldexp=yes
20037 else
20038 gcc_cv_math_func_ldexp=no
20040 rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20044 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20045 if test $gcc_cv_math_func_ldexp = yes; then
20047 cat >>confdefs.h <<_ACEOF
20048 #define HAVE_LDEXP 1
20049 _ACEOF
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20057 $as_echo_n "checking for ldexpl... " >&6; }
20058 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20059 $as_echo_n "(cached) " >&6
20060 else
20061 if test x$gcc_no_link = xyes; then
20062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20067 #ifdef HAVE_COMPLEX_H
20068 #include <complex.h>
20069 #endif
20070 #ifdef HAVE_MATH_H
20071 #include <math.h>
20072 #endif
20074 int (*ptr)() = (int (*)())ldexpl;
20077 main ()
20079 return 0;
20082 _ACEOF
20083 if ac_fn_c_try_link "$LINENO"; then :
20084 gcc_cv_math_func_ldexpl=yes
20085 else
20086 gcc_cv_math_func_ldexpl=no
20088 rm -f core conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20092 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20093 if test $gcc_cv_math_func_ldexpl = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_LDEXPL 1
20097 _ACEOF
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20105 $as_echo_n "checking for logf... " >&6; }
20106 if test "${gcc_cv_math_func_logf+set}" = set; then :
20107 $as_echo_n "(cached) " >&6
20108 else
20109 if test x$gcc_no_link = xyes; then
20110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20115 #ifdef HAVE_COMPLEX_H
20116 #include <complex.h>
20117 #endif
20118 #ifdef HAVE_MATH_H
20119 #include <math.h>
20120 #endif
20122 int (*ptr)() = (int (*)())logf;
20125 main ()
20127 return 0;
20130 _ACEOF
20131 if ac_fn_c_try_link "$LINENO"; then :
20132 gcc_cv_math_func_logf=yes
20133 else
20134 gcc_cv_math_func_logf=no
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20140 $as_echo "$gcc_cv_math_func_logf" >&6; }
20141 if test $gcc_cv_math_func_logf = yes; then
20143 cat >>confdefs.h <<_ACEOF
20144 #define HAVE_LOGF 1
20145 _ACEOF
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20153 $as_echo_n "checking for log... " >&6; }
20154 if test "${gcc_cv_math_func_log+set}" = set; then :
20155 $as_echo_n "(cached) " >&6
20156 else
20157 if test x$gcc_no_link = xyes; then
20158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20163 #ifdef HAVE_COMPLEX_H
20164 #include <complex.h>
20165 #endif
20166 #ifdef HAVE_MATH_H
20167 #include <math.h>
20168 #endif
20170 int (*ptr)() = (int (*)())log;
20173 main ()
20175 return 0;
20178 _ACEOF
20179 if ac_fn_c_try_link "$LINENO"; then :
20180 gcc_cv_math_func_log=yes
20181 else
20182 gcc_cv_math_func_log=no
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20188 $as_echo "$gcc_cv_math_func_log" >&6; }
20189 if test $gcc_cv_math_func_log = yes; then
20191 cat >>confdefs.h <<_ACEOF
20192 #define HAVE_LOG 1
20193 _ACEOF
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20201 $as_echo_n "checking for logl... " >&6; }
20202 if test "${gcc_cv_math_func_logl+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20204 else
20205 if test x$gcc_no_link = xyes; then
20206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20211 #ifdef HAVE_COMPLEX_H
20212 #include <complex.h>
20213 #endif
20214 #ifdef HAVE_MATH_H
20215 #include <math.h>
20216 #endif
20218 int (*ptr)() = (int (*)())logl;
20221 main ()
20223 return 0;
20226 _ACEOF
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 gcc_cv_math_func_logl=yes
20229 else
20230 gcc_cv_math_func_logl=no
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20236 $as_echo "$gcc_cv_math_func_logl" >&6; }
20237 if test $gcc_cv_math_func_logl = yes; then
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_LOGL 1
20241 _ACEOF
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20249 $as_echo_n "checking for clogf... " >&6; }
20250 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20252 else
20253 if test x$gcc_no_link = xyes; then
20254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20259 #ifdef HAVE_COMPLEX_H
20260 #include <complex.h>
20261 #endif
20262 #ifdef HAVE_MATH_H
20263 #include <math.h>
20264 #endif
20266 int (*ptr)() = (int (*)())clogf;
20269 main ()
20271 return 0;
20274 _ACEOF
20275 if ac_fn_c_try_link "$LINENO"; then :
20276 gcc_cv_math_func_clogf=yes
20277 else
20278 gcc_cv_math_func_clogf=no
20280 rm -f core conftest.err conftest.$ac_objext \
20281 conftest$ac_exeext conftest.$ac_ext
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20284 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20285 if test $gcc_cv_math_func_clogf = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_CLOGF 1
20289 _ACEOF
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20297 $as_echo_n "checking for clog... " >&6; }
20298 if test "${gcc_cv_math_func_clog+set}" = set; then :
20299 $as_echo_n "(cached) " >&6
20300 else
20301 if test x$gcc_no_link = xyes; then
20302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20307 #ifdef HAVE_COMPLEX_H
20308 #include <complex.h>
20309 #endif
20310 #ifdef HAVE_MATH_H
20311 #include <math.h>
20312 #endif
20314 int (*ptr)() = (int (*)())clog;
20317 main ()
20319 return 0;
20322 _ACEOF
20323 if ac_fn_c_try_link "$LINENO"; then :
20324 gcc_cv_math_func_clog=yes
20325 else
20326 gcc_cv_math_func_clog=no
20328 rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext conftest.$ac_ext
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20332 $as_echo "$gcc_cv_math_func_clog" >&6; }
20333 if test $gcc_cv_math_func_clog = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define HAVE_CLOG 1
20337 _ACEOF
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20345 $as_echo_n "checking for clogl... " >&6; }
20346 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 if test x$gcc_no_link = xyes; then
20350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20355 #ifdef HAVE_COMPLEX_H
20356 #include <complex.h>
20357 #endif
20358 #ifdef HAVE_MATH_H
20359 #include <math.h>
20360 #endif
20362 int (*ptr)() = (int (*)())clogl;
20365 main ()
20367 return 0;
20370 _ACEOF
20371 if ac_fn_c_try_link "$LINENO"; then :
20372 gcc_cv_math_func_clogl=yes
20373 else
20374 gcc_cv_math_func_clogl=no
20376 rm -f core conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20380 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20381 if test $gcc_cv_math_func_clogl = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define HAVE_CLOGL 1
20385 _ACEOF
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20393 $as_echo_n "checking for log10f... " >&6; }
20394 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20395 $as_echo_n "(cached) " >&6
20396 else
20397 if test x$gcc_no_link = xyes; then
20398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401 /* end confdefs.h. */
20403 #ifdef HAVE_COMPLEX_H
20404 #include <complex.h>
20405 #endif
20406 #ifdef HAVE_MATH_H
20407 #include <math.h>
20408 #endif
20410 int (*ptr)() = (int (*)())log10f;
20413 main ()
20415 return 0;
20418 _ACEOF
20419 if ac_fn_c_try_link "$LINENO"; then :
20420 gcc_cv_math_func_log10f=yes
20421 else
20422 gcc_cv_math_func_log10f=no
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20428 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20429 if test $gcc_cv_math_func_log10f = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define HAVE_LOG10F 1
20433 _ACEOF
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20441 $as_echo_n "checking for log10... " >&6; }
20442 if test "${gcc_cv_math_func_log10+set}" = set; then :
20443 $as_echo_n "(cached) " >&6
20444 else
20445 if test x$gcc_no_link = xyes; then
20446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449 /* end confdefs.h. */
20451 #ifdef HAVE_COMPLEX_H
20452 #include <complex.h>
20453 #endif
20454 #ifdef HAVE_MATH_H
20455 #include <math.h>
20456 #endif
20458 int (*ptr)() = (int (*)())log10;
20461 main ()
20463 return 0;
20466 _ACEOF
20467 if ac_fn_c_try_link "$LINENO"; then :
20468 gcc_cv_math_func_log10=yes
20469 else
20470 gcc_cv_math_func_log10=no
20472 rm -f core conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20476 $as_echo "$gcc_cv_math_func_log10" >&6; }
20477 if test $gcc_cv_math_func_log10 = yes; then
20479 cat >>confdefs.h <<_ACEOF
20480 #define HAVE_LOG10 1
20481 _ACEOF
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20489 $as_echo_n "checking for log10l... " >&6; }
20490 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20491 $as_echo_n "(cached) " >&6
20492 else
20493 if test x$gcc_no_link = xyes; then
20494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20499 #ifdef HAVE_COMPLEX_H
20500 #include <complex.h>
20501 #endif
20502 #ifdef HAVE_MATH_H
20503 #include <math.h>
20504 #endif
20506 int (*ptr)() = (int (*)())log10l;
20509 main ()
20511 return 0;
20514 _ACEOF
20515 if ac_fn_c_try_link "$LINENO"; then :
20516 gcc_cv_math_func_log10l=yes
20517 else
20518 gcc_cv_math_func_log10l=no
20520 rm -f core conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20524 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20525 if test $gcc_cv_math_func_log10l = yes; then
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_LOG10L 1
20529 _ACEOF
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20537 $as_echo_n "checking for clog10f... " >&6; }
20538 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20539 $as_echo_n "(cached) " >&6
20540 else
20541 if test x$gcc_no_link = xyes; then
20542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20547 #ifdef HAVE_COMPLEX_H
20548 #include <complex.h>
20549 #endif
20550 #ifdef HAVE_MATH_H
20551 #include <math.h>
20552 #endif
20554 int (*ptr)() = (int (*)())clog10f;
20557 main ()
20559 return 0;
20562 _ACEOF
20563 if ac_fn_c_try_link "$LINENO"; then :
20564 gcc_cv_math_func_clog10f=yes
20565 else
20566 gcc_cv_math_func_clog10f=no
20568 rm -f core conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20572 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20573 if test $gcc_cv_math_func_clog10f = yes; then
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_CLOG10F 1
20577 _ACEOF
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20585 $as_echo_n "checking for clog10... " >&6; }
20586 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20587 $as_echo_n "(cached) " >&6
20588 else
20589 if test x$gcc_no_link = xyes; then
20590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20595 #ifdef HAVE_COMPLEX_H
20596 #include <complex.h>
20597 #endif
20598 #ifdef HAVE_MATH_H
20599 #include <math.h>
20600 #endif
20602 int (*ptr)() = (int (*)())clog10;
20605 main ()
20607 return 0;
20610 _ACEOF
20611 if ac_fn_c_try_link "$LINENO"; then :
20612 gcc_cv_math_func_clog10=yes
20613 else
20614 gcc_cv_math_func_clog10=no
20616 rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext conftest.$ac_ext
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20620 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20621 if test $gcc_cv_math_func_clog10 = yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_CLOG10 1
20625 _ACEOF
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20633 $as_echo_n "checking for clog10l... " >&6; }
20634 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20635 $as_echo_n "(cached) " >&6
20636 else
20637 if test x$gcc_no_link = xyes; then
20638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20643 #ifdef HAVE_COMPLEX_H
20644 #include <complex.h>
20645 #endif
20646 #ifdef HAVE_MATH_H
20647 #include <math.h>
20648 #endif
20650 int (*ptr)() = (int (*)())clog10l;
20653 main ()
20655 return 0;
20658 _ACEOF
20659 if ac_fn_c_try_link "$LINENO"; then :
20660 gcc_cv_math_func_clog10l=yes
20661 else
20662 gcc_cv_math_func_clog10l=no
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20668 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20669 if test $gcc_cv_math_func_clog10l = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define HAVE_CLOG10L 1
20673 _ACEOF
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20681 $as_echo_n "checking for nextafterf... " >&6; }
20682 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20683 $as_echo_n "(cached) " >&6
20684 else
20685 if test x$gcc_no_link = xyes; then
20686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20691 #ifdef HAVE_COMPLEX_H
20692 #include <complex.h>
20693 #endif
20694 #ifdef HAVE_MATH_H
20695 #include <math.h>
20696 #endif
20698 int (*ptr)() = (int (*)())nextafterf;
20701 main ()
20703 return 0;
20706 _ACEOF
20707 if ac_fn_c_try_link "$LINENO"; then :
20708 gcc_cv_math_func_nextafterf=yes
20709 else
20710 gcc_cv_math_func_nextafterf=no
20712 rm -f core conftest.err conftest.$ac_objext \
20713 conftest$ac_exeext conftest.$ac_ext
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20716 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20717 if test $gcc_cv_math_func_nextafterf = yes; then
20719 cat >>confdefs.h <<_ACEOF
20720 #define HAVE_NEXTAFTERF 1
20721 _ACEOF
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20729 $as_echo_n "checking for nextafter... " >&6; }
20730 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20731 $as_echo_n "(cached) " >&6
20732 else
20733 if test x$gcc_no_link = xyes; then
20734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20739 #ifdef HAVE_COMPLEX_H
20740 #include <complex.h>
20741 #endif
20742 #ifdef HAVE_MATH_H
20743 #include <math.h>
20744 #endif
20746 int (*ptr)() = (int (*)())nextafter;
20749 main ()
20751 return 0;
20754 _ACEOF
20755 if ac_fn_c_try_link "$LINENO"; then :
20756 gcc_cv_math_func_nextafter=yes
20757 else
20758 gcc_cv_math_func_nextafter=no
20760 rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20764 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20765 if test $gcc_cv_math_func_nextafter = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define HAVE_NEXTAFTER 1
20769 _ACEOF
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20777 $as_echo_n "checking for nextafterl... " >&6; }
20778 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20779 $as_echo_n "(cached) " >&6
20780 else
20781 if test x$gcc_no_link = xyes; then
20782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20787 #ifdef HAVE_COMPLEX_H
20788 #include <complex.h>
20789 #endif
20790 #ifdef HAVE_MATH_H
20791 #include <math.h>
20792 #endif
20794 int (*ptr)() = (int (*)())nextafterl;
20797 main ()
20799 return 0;
20802 _ACEOF
20803 if ac_fn_c_try_link "$LINENO"; then :
20804 gcc_cv_math_func_nextafterl=yes
20805 else
20806 gcc_cv_math_func_nextafterl=no
20808 rm -f core conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20812 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20813 if test $gcc_cv_math_func_nextafterl = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define HAVE_NEXTAFTERL 1
20817 _ACEOF
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20825 $as_echo_n "checking for powf... " >&6; }
20826 if test "${gcc_cv_math_func_powf+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20828 else
20829 if test x$gcc_no_link = xyes; then
20830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20835 #ifdef HAVE_COMPLEX_H
20836 #include <complex.h>
20837 #endif
20838 #ifdef HAVE_MATH_H
20839 #include <math.h>
20840 #endif
20842 int (*ptr)() = (int (*)())powf;
20845 main ()
20847 return 0;
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"; then :
20852 gcc_cv_math_func_powf=yes
20853 else
20854 gcc_cv_math_func_powf=no
20856 rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20860 $as_echo "$gcc_cv_math_func_powf" >&6; }
20861 if test $gcc_cv_math_func_powf = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define HAVE_POWF 1
20865 _ACEOF
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20873 $as_echo_n "checking for pow... " >&6; }
20874 if test "${gcc_cv_math_func_pow+set}" = set; then :
20875 $as_echo_n "(cached) " >&6
20876 else
20877 if test x$gcc_no_link = xyes; then
20878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20883 #ifdef HAVE_COMPLEX_H
20884 #include <complex.h>
20885 #endif
20886 #ifdef HAVE_MATH_H
20887 #include <math.h>
20888 #endif
20890 int (*ptr)() = (int (*)())pow;
20893 main ()
20895 return 0;
20898 _ACEOF
20899 if ac_fn_c_try_link "$LINENO"; then :
20900 gcc_cv_math_func_pow=yes
20901 else
20902 gcc_cv_math_func_pow=no
20904 rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20908 $as_echo "$gcc_cv_math_func_pow" >&6; }
20909 if test $gcc_cv_math_func_pow = yes; then
20911 cat >>confdefs.h <<_ACEOF
20912 #define HAVE_POW 1
20913 _ACEOF
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20921 $as_echo_n "checking for cpowf... " >&6; }
20922 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20923 $as_echo_n "(cached) " >&6
20924 else
20925 if test x$gcc_no_link = xyes; then
20926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h. */
20931 #ifdef HAVE_COMPLEX_H
20932 #include <complex.h>
20933 #endif
20934 #ifdef HAVE_MATH_H
20935 #include <math.h>
20936 #endif
20938 int (*ptr)() = (int (*)())cpowf;
20941 main ()
20943 return 0;
20946 _ACEOF
20947 if ac_fn_c_try_link "$LINENO"; then :
20948 gcc_cv_math_func_cpowf=yes
20949 else
20950 gcc_cv_math_func_cpowf=no
20952 rm -f core conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20956 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20957 if test $gcc_cv_math_func_cpowf = yes; then
20959 cat >>confdefs.h <<_ACEOF
20960 #define HAVE_CPOWF 1
20961 _ACEOF
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20969 $as_echo_n "checking for cpow... " >&6; }
20970 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20971 $as_echo_n "(cached) " >&6
20972 else
20973 if test x$gcc_no_link = xyes; then
20974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20979 #ifdef HAVE_COMPLEX_H
20980 #include <complex.h>
20981 #endif
20982 #ifdef HAVE_MATH_H
20983 #include <math.h>
20984 #endif
20986 int (*ptr)() = (int (*)())cpow;
20989 main ()
20991 return 0;
20994 _ACEOF
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 gcc_cv_math_func_cpow=yes
20997 else
20998 gcc_cv_math_func_cpow=no
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21004 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21005 if test $gcc_cv_math_func_cpow = yes; then
21007 cat >>confdefs.h <<_ACEOF
21008 #define HAVE_CPOW 1
21009 _ACEOF
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21017 $as_echo_n "checking for cpowl... " >&6; }
21018 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21021 if test x$gcc_no_link = xyes; then
21022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21025 /* end confdefs.h. */
21027 #ifdef HAVE_COMPLEX_H
21028 #include <complex.h>
21029 #endif
21030 #ifdef HAVE_MATH_H
21031 #include <math.h>
21032 #endif
21034 int (*ptr)() = (int (*)())cpowl;
21037 main ()
21039 return 0;
21042 _ACEOF
21043 if ac_fn_c_try_link "$LINENO"; then :
21044 gcc_cv_math_func_cpowl=yes
21045 else
21046 gcc_cv_math_func_cpowl=no
21048 rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21052 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21053 if test $gcc_cv_math_func_cpowl = yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define HAVE_CPOWL 1
21057 _ACEOF
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21065 $as_echo_n "checking for roundf... " >&6; }
21066 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21068 else
21069 if test x$gcc_no_link = xyes; then
21070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h. */
21075 #ifdef HAVE_COMPLEX_H
21076 #include <complex.h>
21077 #endif
21078 #ifdef HAVE_MATH_H
21079 #include <math.h>
21080 #endif
21082 int (*ptr)() = (int (*)())roundf;
21085 main ()
21087 return 0;
21090 _ACEOF
21091 if ac_fn_c_try_link "$LINENO"; then :
21092 gcc_cv_math_func_roundf=yes
21093 else
21094 gcc_cv_math_func_roundf=no
21096 rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21100 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21101 if test $gcc_cv_math_func_roundf = yes; then
21103 cat >>confdefs.h <<_ACEOF
21104 #define HAVE_ROUNDF 1
21105 _ACEOF
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21113 $as_echo_n "checking for round... " >&6; }
21114 if test "${gcc_cv_math_func_round+set}" = set; then :
21115 $as_echo_n "(cached) " >&6
21116 else
21117 if test x$gcc_no_link = xyes; then
21118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21123 #ifdef HAVE_COMPLEX_H
21124 #include <complex.h>
21125 #endif
21126 #ifdef HAVE_MATH_H
21127 #include <math.h>
21128 #endif
21130 int (*ptr)() = (int (*)())round;
21133 main ()
21135 return 0;
21138 _ACEOF
21139 if ac_fn_c_try_link "$LINENO"; then :
21140 gcc_cv_math_func_round=yes
21141 else
21142 gcc_cv_math_func_round=no
21144 rm -f core conftest.err conftest.$ac_objext \
21145 conftest$ac_exeext conftest.$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21148 $as_echo "$gcc_cv_math_func_round" >&6; }
21149 if test $gcc_cv_math_func_round = yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define HAVE_ROUND 1
21153 _ACEOF
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21161 $as_echo_n "checking for roundl... " >&6; }
21162 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21164 else
21165 if test x$gcc_no_link = xyes; then
21166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21171 #ifdef HAVE_COMPLEX_H
21172 #include <complex.h>
21173 #endif
21174 #ifdef HAVE_MATH_H
21175 #include <math.h>
21176 #endif
21178 int (*ptr)() = (int (*)())roundl;
21181 main ()
21183 return 0;
21186 _ACEOF
21187 if ac_fn_c_try_link "$LINENO"; then :
21188 gcc_cv_math_func_roundl=yes
21189 else
21190 gcc_cv_math_func_roundl=no
21192 rm -f core conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21196 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21197 if test $gcc_cv_math_func_roundl = yes; then
21199 cat >>confdefs.h <<_ACEOF
21200 #define HAVE_ROUNDL 1
21201 _ACEOF
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21209 $as_echo_n "checking for lroundf... " >&6; }
21210 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21211 $as_echo_n "(cached) " >&6
21212 else
21213 if test x$gcc_no_link = xyes; then
21214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h. */
21219 #ifdef HAVE_COMPLEX_H
21220 #include <complex.h>
21221 #endif
21222 #ifdef HAVE_MATH_H
21223 #include <math.h>
21224 #endif
21226 int (*ptr)() = (int (*)())lroundf;
21229 main ()
21231 return 0;
21234 _ACEOF
21235 if ac_fn_c_try_link "$LINENO"; then :
21236 gcc_cv_math_func_lroundf=yes
21237 else
21238 gcc_cv_math_func_lroundf=no
21240 rm -f core conftest.err conftest.$ac_objext \
21241 conftest$ac_exeext conftest.$ac_ext
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21244 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21245 if test $gcc_cv_math_func_lroundf = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_LROUNDF 1
21249 _ACEOF
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21257 $as_echo_n "checking for lround... " >&6; }
21258 if test "${gcc_cv_math_func_lround+set}" = set; then :
21259 $as_echo_n "(cached) " >&6
21260 else
21261 if test x$gcc_no_link = xyes; then
21262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h. */
21267 #ifdef HAVE_COMPLEX_H
21268 #include <complex.h>
21269 #endif
21270 #ifdef HAVE_MATH_H
21271 #include <math.h>
21272 #endif
21274 int (*ptr)() = (int (*)())lround;
21277 main ()
21279 return 0;
21282 _ACEOF
21283 if ac_fn_c_try_link "$LINENO"; then :
21284 gcc_cv_math_func_lround=yes
21285 else
21286 gcc_cv_math_func_lround=no
21288 rm -f core conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21292 $as_echo "$gcc_cv_math_func_lround" >&6; }
21293 if test $gcc_cv_math_func_lround = yes; then
21295 cat >>confdefs.h <<_ACEOF
21296 #define HAVE_LROUND 1
21297 _ACEOF
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21305 $as_echo_n "checking for lroundl... " >&6; }
21306 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21307 $as_echo_n "(cached) " >&6
21308 else
21309 if test x$gcc_no_link = xyes; then
21310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21313 /* end confdefs.h. */
21315 #ifdef HAVE_COMPLEX_H
21316 #include <complex.h>
21317 #endif
21318 #ifdef HAVE_MATH_H
21319 #include <math.h>
21320 #endif
21322 int (*ptr)() = (int (*)())lroundl;
21325 main ()
21327 return 0;
21330 _ACEOF
21331 if ac_fn_c_try_link "$LINENO"; then :
21332 gcc_cv_math_func_lroundl=yes
21333 else
21334 gcc_cv_math_func_lroundl=no
21336 rm -f core conftest.err conftest.$ac_objext \
21337 conftest$ac_exeext conftest.$ac_ext
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21340 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21341 if test $gcc_cv_math_func_lroundl = yes; then
21343 cat >>confdefs.h <<_ACEOF
21344 #define HAVE_LROUNDL 1
21345 _ACEOF
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21353 $as_echo_n "checking for llroundf... " >&6; }
21354 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21355 $as_echo_n "(cached) " >&6
21356 else
21357 if test x$gcc_no_link = xyes; then
21358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h. */
21363 #ifdef HAVE_COMPLEX_H
21364 #include <complex.h>
21365 #endif
21366 #ifdef HAVE_MATH_H
21367 #include <math.h>
21368 #endif
21370 int (*ptr)() = (int (*)())llroundf;
21373 main ()
21375 return 0;
21378 _ACEOF
21379 if ac_fn_c_try_link "$LINENO"; then :
21380 gcc_cv_math_func_llroundf=yes
21381 else
21382 gcc_cv_math_func_llroundf=no
21384 rm -f core conftest.err conftest.$ac_objext \
21385 conftest$ac_exeext conftest.$ac_ext
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21388 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21389 if test $gcc_cv_math_func_llroundf = yes; then
21391 cat >>confdefs.h <<_ACEOF
21392 #define HAVE_LLROUNDF 1
21393 _ACEOF
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21401 $as_echo_n "checking for llround... " >&6; }
21402 if test "${gcc_cv_math_func_llround+set}" = set; then :
21403 $as_echo_n "(cached) " >&6
21404 else
21405 if test x$gcc_no_link = xyes; then
21406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21411 #ifdef HAVE_COMPLEX_H
21412 #include <complex.h>
21413 #endif
21414 #ifdef HAVE_MATH_H
21415 #include <math.h>
21416 #endif
21418 int (*ptr)() = (int (*)())llround;
21421 main ()
21423 return 0;
21426 _ACEOF
21427 if ac_fn_c_try_link "$LINENO"; then :
21428 gcc_cv_math_func_llround=yes
21429 else
21430 gcc_cv_math_func_llround=no
21432 rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21436 $as_echo "$gcc_cv_math_func_llround" >&6; }
21437 if test $gcc_cv_math_func_llround = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define HAVE_LLROUND 1
21441 _ACEOF
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21449 $as_echo_n "checking for llroundl... " >&6; }
21450 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21451 $as_echo_n "(cached) " >&6
21452 else
21453 if test x$gcc_no_link = xyes; then
21454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h. */
21459 #ifdef HAVE_COMPLEX_H
21460 #include <complex.h>
21461 #endif
21462 #ifdef HAVE_MATH_H
21463 #include <math.h>
21464 #endif
21466 int (*ptr)() = (int (*)())llroundl;
21469 main ()
21471 return 0;
21474 _ACEOF
21475 if ac_fn_c_try_link "$LINENO"; then :
21476 gcc_cv_math_func_llroundl=yes
21477 else
21478 gcc_cv_math_func_llroundl=no
21480 rm -f core conftest.err conftest.$ac_objext \
21481 conftest$ac_exeext conftest.$ac_ext
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21484 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21485 if test $gcc_cv_math_func_llroundl = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_LLROUNDL 1
21489 _ACEOF
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21497 $as_echo_n "checking for scalbnf... " >&6; }
21498 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21499 $as_echo_n "(cached) " >&6
21500 else
21501 if test x$gcc_no_link = xyes; then
21502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21507 #ifdef HAVE_COMPLEX_H
21508 #include <complex.h>
21509 #endif
21510 #ifdef HAVE_MATH_H
21511 #include <math.h>
21512 #endif
21514 int (*ptr)() = (int (*)())scalbnf;
21517 main ()
21519 return 0;
21522 _ACEOF
21523 if ac_fn_c_try_link "$LINENO"; then :
21524 gcc_cv_math_func_scalbnf=yes
21525 else
21526 gcc_cv_math_func_scalbnf=no
21528 rm -f core conftest.err conftest.$ac_objext \
21529 conftest$ac_exeext conftest.$ac_ext
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21532 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21533 if test $gcc_cv_math_func_scalbnf = yes; then
21535 cat >>confdefs.h <<_ACEOF
21536 #define HAVE_SCALBNF 1
21537 _ACEOF
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21545 $as_echo_n "checking for scalbn... " >&6; }
21546 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21547 $as_echo_n "(cached) " >&6
21548 else
21549 if test x$gcc_no_link = xyes; then
21550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h. */
21555 #ifdef HAVE_COMPLEX_H
21556 #include <complex.h>
21557 #endif
21558 #ifdef HAVE_MATH_H
21559 #include <math.h>
21560 #endif
21562 int (*ptr)() = (int (*)())scalbn;
21565 main ()
21567 return 0;
21570 _ACEOF
21571 if ac_fn_c_try_link "$LINENO"; then :
21572 gcc_cv_math_func_scalbn=yes
21573 else
21574 gcc_cv_math_func_scalbn=no
21576 rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21580 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21581 if test $gcc_cv_math_func_scalbn = yes; then
21583 cat >>confdefs.h <<_ACEOF
21584 #define HAVE_SCALBN 1
21585 _ACEOF
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21593 $as_echo_n "checking for scalbnl... " >&6; }
21594 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21596 else
21597 if test x$gcc_no_link = xyes; then
21598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21603 #ifdef HAVE_COMPLEX_H
21604 #include <complex.h>
21605 #endif
21606 #ifdef HAVE_MATH_H
21607 #include <math.h>
21608 #endif
21610 int (*ptr)() = (int (*)())scalbnl;
21613 main ()
21615 return 0;
21618 _ACEOF
21619 if ac_fn_c_try_link "$LINENO"; then :
21620 gcc_cv_math_func_scalbnl=yes
21621 else
21622 gcc_cv_math_func_scalbnl=no
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21628 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21629 if test $gcc_cv_math_func_scalbnl = yes; then
21631 cat >>confdefs.h <<_ACEOF
21632 #define HAVE_SCALBNL 1
21633 _ACEOF
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21641 $as_echo_n "checking for sinf... " >&6; }
21642 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21643 $as_echo_n "(cached) " >&6
21644 else
21645 if test x$gcc_no_link = xyes; then
21646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21651 #ifdef HAVE_COMPLEX_H
21652 #include <complex.h>
21653 #endif
21654 #ifdef HAVE_MATH_H
21655 #include <math.h>
21656 #endif
21658 int (*ptr)() = (int (*)())sinf;
21661 main ()
21663 return 0;
21666 _ACEOF
21667 if ac_fn_c_try_link "$LINENO"; then :
21668 gcc_cv_math_func_sinf=yes
21669 else
21670 gcc_cv_math_func_sinf=no
21672 rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21676 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21677 if test $gcc_cv_math_func_sinf = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_SINF 1
21681 _ACEOF
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21689 $as_echo_n "checking for sin... " >&6; }
21690 if test "${gcc_cv_math_func_sin+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21692 else
21693 if test x$gcc_no_link = xyes; then
21694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21699 #ifdef HAVE_COMPLEX_H
21700 #include <complex.h>
21701 #endif
21702 #ifdef HAVE_MATH_H
21703 #include <math.h>
21704 #endif
21706 int (*ptr)() = (int (*)())sin;
21709 main ()
21711 return 0;
21714 _ACEOF
21715 if ac_fn_c_try_link "$LINENO"; then :
21716 gcc_cv_math_func_sin=yes
21717 else
21718 gcc_cv_math_func_sin=no
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21724 $as_echo "$gcc_cv_math_func_sin" >&6; }
21725 if test $gcc_cv_math_func_sin = yes; then
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_SIN 1
21729 _ACEOF
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21737 $as_echo_n "checking for sinl... " >&6; }
21738 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21741 if test x$gcc_no_link = xyes; then
21742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 #ifdef HAVE_COMPLEX_H
21748 #include <complex.h>
21749 #endif
21750 #ifdef HAVE_MATH_H
21751 #include <math.h>
21752 #endif
21754 int (*ptr)() = (int (*)())sinl;
21757 main ()
21759 return 0;
21762 _ACEOF
21763 if ac_fn_c_try_link "$LINENO"; then :
21764 gcc_cv_math_func_sinl=yes
21765 else
21766 gcc_cv_math_func_sinl=no
21768 rm -f core conftest.err conftest.$ac_objext \
21769 conftest$ac_exeext conftest.$ac_ext
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21772 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21773 if test $gcc_cv_math_func_sinl = yes; then
21775 cat >>confdefs.h <<_ACEOF
21776 #define HAVE_SINL 1
21777 _ACEOF
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21785 $as_echo_n "checking for csinf... " >&6; }
21786 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21787 $as_echo_n "(cached) " >&6
21788 else
21789 if test x$gcc_no_link = xyes; then
21790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21795 #ifdef HAVE_COMPLEX_H
21796 #include <complex.h>
21797 #endif
21798 #ifdef HAVE_MATH_H
21799 #include <math.h>
21800 #endif
21802 int (*ptr)() = (int (*)())csinf;
21805 main ()
21807 return 0;
21810 _ACEOF
21811 if ac_fn_c_try_link "$LINENO"; then :
21812 gcc_cv_math_func_csinf=yes
21813 else
21814 gcc_cv_math_func_csinf=no
21816 rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21820 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21821 if test $gcc_cv_math_func_csinf = yes; then
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_CSINF 1
21825 _ACEOF
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21833 $as_echo_n "checking for csin... " >&6; }
21834 if test "${gcc_cv_math_func_csin+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 if test x$gcc_no_link = xyes; then
21838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h. */
21843 #ifdef HAVE_COMPLEX_H
21844 #include <complex.h>
21845 #endif
21846 #ifdef HAVE_MATH_H
21847 #include <math.h>
21848 #endif
21850 int (*ptr)() = (int (*)())csin;
21853 main ()
21855 return 0;
21858 _ACEOF
21859 if ac_fn_c_try_link "$LINENO"; then :
21860 gcc_cv_math_func_csin=yes
21861 else
21862 gcc_cv_math_func_csin=no
21864 rm -f core conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21868 $as_echo "$gcc_cv_math_func_csin" >&6; }
21869 if test $gcc_cv_math_func_csin = yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_CSIN 1
21873 _ACEOF
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21881 $as_echo_n "checking for csinl... " >&6; }
21882 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 if test x$gcc_no_link = xyes; then
21886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21891 #ifdef HAVE_COMPLEX_H
21892 #include <complex.h>
21893 #endif
21894 #ifdef HAVE_MATH_H
21895 #include <math.h>
21896 #endif
21898 int (*ptr)() = (int (*)())csinl;
21901 main ()
21903 return 0;
21906 _ACEOF
21907 if ac_fn_c_try_link "$LINENO"; then :
21908 gcc_cv_math_func_csinl=yes
21909 else
21910 gcc_cv_math_func_csinl=no
21912 rm -f core conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21916 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21917 if test $gcc_cv_math_func_csinl = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_CSINL 1
21921 _ACEOF
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21929 $as_echo_n "checking for sinhf... " >&6; }
21930 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 if test x$gcc_no_link = xyes; then
21934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21939 #ifdef HAVE_COMPLEX_H
21940 #include <complex.h>
21941 #endif
21942 #ifdef HAVE_MATH_H
21943 #include <math.h>
21944 #endif
21946 int (*ptr)() = (int (*)())sinhf;
21949 main ()
21951 return 0;
21954 _ACEOF
21955 if ac_fn_c_try_link "$LINENO"; then :
21956 gcc_cv_math_func_sinhf=yes
21957 else
21958 gcc_cv_math_func_sinhf=no
21960 rm -f core conftest.err conftest.$ac_objext \
21961 conftest$ac_exeext conftest.$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21964 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21965 if test $gcc_cv_math_func_sinhf = yes; then
21967 cat >>confdefs.h <<_ACEOF
21968 #define HAVE_SINHF 1
21969 _ACEOF
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21977 $as_echo_n "checking for sinh... " >&6; }
21978 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 if test x$gcc_no_link = xyes; then
21982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21987 #ifdef HAVE_COMPLEX_H
21988 #include <complex.h>
21989 #endif
21990 #ifdef HAVE_MATH_H
21991 #include <math.h>
21992 #endif
21994 int (*ptr)() = (int (*)())sinh;
21997 main ()
21999 return 0;
22002 _ACEOF
22003 if ac_fn_c_try_link "$LINENO"; then :
22004 gcc_cv_math_func_sinh=yes
22005 else
22006 gcc_cv_math_func_sinh=no
22008 rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22012 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22013 if test $gcc_cv_math_func_sinh = yes; then
22015 cat >>confdefs.h <<_ACEOF
22016 #define HAVE_SINH 1
22017 _ACEOF
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22025 $as_echo_n "checking for sinhl... " >&6; }
22026 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22027 $as_echo_n "(cached) " >&6
22028 else
22029 if test x$gcc_no_link = xyes; then
22030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033 /* end confdefs.h. */
22035 #ifdef HAVE_COMPLEX_H
22036 #include <complex.h>
22037 #endif
22038 #ifdef HAVE_MATH_H
22039 #include <math.h>
22040 #endif
22042 int (*ptr)() = (int (*)())sinhl;
22045 main ()
22047 return 0;
22050 _ACEOF
22051 if ac_fn_c_try_link "$LINENO"; then :
22052 gcc_cv_math_func_sinhl=yes
22053 else
22054 gcc_cv_math_func_sinhl=no
22056 rm -f core conftest.err conftest.$ac_objext \
22057 conftest$ac_exeext conftest.$ac_ext
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22060 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22061 if test $gcc_cv_math_func_sinhl = yes; then
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_SINHL 1
22065 _ACEOF
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22073 $as_echo_n "checking for csinhf... " >&6; }
22074 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22077 if test x$gcc_no_link = xyes; then
22078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22083 #ifdef HAVE_COMPLEX_H
22084 #include <complex.h>
22085 #endif
22086 #ifdef HAVE_MATH_H
22087 #include <math.h>
22088 #endif
22090 int (*ptr)() = (int (*)())csinhf;
22093 main ()
22095 return 0;
22098 _ACEOF
22099 if ac_fn_c_try_link "$LINENO"; then :
22100 gcc_cv_math_func_csinhf=yes
22101 else
22102 gcc_cv_math_func_csinhf=no
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22108 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22109 if test $gcc_cv_math_func_csinhf = yes; then
22111 cat >>confdefs.h <<_ACEOF
22112 #define HAVE_CSINHF 1
22113 _ACEOF
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22121 $as_echo_n "checking for csinh... " >&6; }
22122 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22123 $as_echo_n "(cached) " >&6
22124 else
22125 if test x$gcc_no_link = xyes; then
22126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22131 #ifdef HAVE_COMPLEX_H
22132 #include <complex.h>
22133 #endif
22134 #ifdef HAVE_MATH_H
22135 #include <math.h>
22136 #endif
22138 int (*ptr)() = (int (*)())csinh;
22141 main ()
22143 return 0;
22146 _ACEOF
22147 if ac_fn_c_try_link "$LINENO"; then :
22148 gcc_cv_math_func_csinh=yes
22149 else
22150 gcc_cv_math_func_csinh=no
22152 rm -f core conftest.err conftest.$ac_objext \
22153 conftest$ac_exeext conftest.$ac_ext
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22156 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22157 if test $gcc_cv_math_func_csinh = yes; then
22159 cat >>confdefs.h <<_ACEOF
22160 #define HAVE_CSINH 1
22161 _ACEOF
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22169 $as_echo_n "checking for csinhl... " >&6; }
22170 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 if test x$gcc_no_link = xyes; then
22174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22179 #ifdef HAVE_COMPLEX_H
22180 #include <complex.h>
22181 #endif
22182 #ifdef HAVE_MATH_H
22183 #include <math.h>
22184 #endif
22186 int (*ptr)() = (int (*)())csinhl;
22189 main ()
22191 return 0;
22194 _ACEOF
22195 if ac_fn_c_try_link "$LINENO"; then :
22196 gcc_cv_math_func_csinhl=yes
22197 else
22198 gcc_cv_math_func_csinhl=no
22200 rm -f core conftest.err conftest.$ac_objext \
22201 conftest$ac_exeext conftest.$ac_ext
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22204 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22205 if test $gcc_cv_math_func_csinhl = yes; then
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_CSINHL 1
22209 _ACEOF
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22217 $as_echo_n "checking for sqrtf... " >&6; }
22218 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22220 else
22221 if test x$gcc_no_link = xyes; then
22222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h. */
22227 #ifdef HAVE_COMPLEX_H
22228 #include <complex.h>
22229 #endif
22230 #ifdef HAVE_MATH_H
22231 #include <math.h>
22232 #endif
22234 int (*ptr)() = (int (*)())sqrtf;
22237 main ()
22239 return 0;
22242 _ACEOF
22243 if ac_fn_c_try_link "$LINENO"; then :
22244 gcc_cv_math_func_sqrtf=yes
22245 else
22246 gcc_cv_math_func_sqrtf=no
22248 rm -f core conftest.err conftest.$ac_objext \
22249 conftest$ac_exeext conftest.$ac_ext
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22252 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22253 if test $gcc_cv_math_func_sqrtf = yes; then
22255 cat >>confdefs.h <<_ACEOF
22256 #define HAVE_SQRTF 1
22257 _ACEOF
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22265 $as_echo_n "checking for sqrt... " >&6; }
22266 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 if test x$gcc_no_link = xyes; then
22270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22275 #ifdef HAVE_COMPLEX_H
22276 #include <complex.h>
22277 #endif
22278 #ifdef HAVE_MATH_H
22279 #include <math.h>
22280 #endif
22282 int (*ptr)() = (int (*)())sqrt;
22285 main ()
22287 return 0;
22290 _ACEOF
22291 if ac_fn_c_try_link "$LINENO"; then :
22292 gcc_cv_math_func_sqrt=yes
22293 else
22294 gcc_cv_math_func_sqrt=no
22296 rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22300 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22301 if test $gcc_cv_math_func_sqrt = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define HAVE_SQRT 1
22305 _ACEOF
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22313 $as_echo_n "checking for sqrtl... " >&6; }
22314 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 if test x$gcc_no_link = xyes; then
22318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22323 #ifdef HAVE_COMPLEX_H
22324 #include <complex.h>
22325 #endif
22326 #ifdef HAVE_MATH_H
22327 #include <math.h>
22328 #endif
22330 int (*ptr)() = (int (*)())sqrtl;
22333 main ()
22335 return 0;
22338 _ACEOF
22339 if ac_fn_c_try_link "$LINENO"; then :
22340 gcc_cv_math_func_sqrtl=yes
22341 else
22342 gcc_cv_math_func_sqrtl=no
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22348 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22349 if test $gcc_cv_math_func_sqrtl = yes; then
22351 cat >>confdefs.h <<_ACEOF
22352 #define HAVE_SQRTL 1
22353 _ACEOF
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22361 $as_echo_n "checking for csqrtf... " >&6; }
22362 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22363 $as_echo_n "(cached) " >&6
22364 else
22365 if test x$gcc_no_link = xyes; then
22366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22371 #ifdef HAVE_COMPLEX_H
22372 #include <complex.h>
22373 #endif
22374 #ifdef HAVE_MATH_H
22375 #include <math.h>
22376 #endif
22378 int (*ptr)() = (int (*)())csqrtf;
22381 main ()
22383 return 0;
22386 _ACEOF
22387 if ac_fn_c_try_link "$LINENO"; then :
22388 gcc_cv_math_func_csqrtf=yes
22389 else
22390 gcc_cv_math_func_csqrtf=no
22392 rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22396 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22397 if test $gcc_cv_math_func_csqrtf = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_CSQRTF 1
22401 _ACEOF
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22409 $as_echo_n "checking for csqrt... " >&6; }
22410 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22411 $as_echo_n "(cached) " >&6
22412 else
22413 if test x$gcc_no_link = xyes; then
22414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22419 #ifdef HAVE_COMPLEX_H
22420 #include <complex.h>
22421 #endif
22422 #ifdef HAVE_MATH_H
22423 #include <math.h>
22424 #endif
22426 int (*ptr)() = (int (*)())csqrt;
22429 main ()
22431 return 0;
22434 _ACEOF
22435 if ac_fn_c_try_link "$LINENO"; then :
22436 gcc_cv_math_func_csqrt=yes
22437 else
22438 gcc_cv_math_func_csqrt=no
22440 rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22444 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22445 if test $gcc_cv_math_func_csqrt = yes; then
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_CSQRT 1
22449 _ACEOF
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22457 $as_echo_n "checking for csqrtl... " >&6; }
22458 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22460 else
22461 if test x$gcc_no_link = xyes; then
22462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22467 #ifdef HAVE_COMPLEX_H
22468 #include <complex.h>
22469 #endif
22470 #ifdef HAVE_MATH_H
22471 #include <math.h>
22472 #endif
22474 int (*ptr)() = (int (*)())csqrtl;
22477 main ()
22479 return 0;
22482 _ACEOF
22483 if ac_fn_c_try_link "$LINENO"; then :
22484 gcc_cv_math_func_csqrtl=yes
22485 else
22486 gcc_cv_math_func_csqrtl=no
22488 rm -f core conftest.err conftest.$ac_objext \
22489 conftest$ac_exeext conftest.$ac_ext
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22492 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22493 if test $gcc_cv_math_func_csqrtl = yes; then
22495 cat >>confdefs.h <<_ACEOF
22496 #define HAVE_CSQRTL 1
22497 _ACEOF
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22505 $as_echo_n "checking for tanf... " >&6; }
22506 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22508 else
22509 if test x$gcc_no_link = xyes; then
22510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22515 #ifdef HAVE_COMPLEX_H
22516 #include <complex.h>
22517 #endif
22518 #ifdef HAVE_MATH_H
22519 #include <math.h>
22520 #endif
22522 int (*ptr)() = (int (*)())tanf;
22525 main ()
22527 return 0;
22530 _ACEOF
22531 if ac_fn_c_try_link "$LINENO"; then :
22532 gcc_cv_math_func_tanf=yes
22533 else
22534 gcc_cv_math_func_tanf=no
22536 rm -f core conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22540 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22541 if test $gcc_cv_math_func_tanf = yes; then
22543 cat >>confdefs.h <<_ACEOF
22544 #define HAVE_TANF 1
22545 _ACEOF
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22553 $as_echo_n "checking for tan... " >&6; }
22554 if test "${gcc_cv_math_func_tan+set}" = set; then :
22555 $as_echo_n "(cached) " >&6
22556 else
22557 if test x$gcc_no_link = xyes; then
22558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22563 #ifdef HAVE_COMPLEX_H
22564 #include <complex.h>
22565 #endif
22566 #ifdef HAVE_MATH_H
22567 #include <math.h>
22568 #endif
22570 int (*ptr)() = (int (*)())tan;
22573 main ()
22575 return 0;
22578 _ACEOF
22579 if ac_fn_c_try_link "$LINENO"; then :
22580 gcc_cv_math_func_tan=yes
22581 else
22582 gcc_cv_math_func_tan=no
22584 rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22588 $as_echo "$gcc_cv_math_func_tan" >&6; }
22589 if test $gcc_cv_math_func_tan = yes; then
22591 cat >>confdefs.h <<_ACEOF
22592 #define HAVE_TAN 1
22593 _ACEOF
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22601 $as_echo_n "checking for tanl... " >&6; }
22602 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605 if test x$gcc_no_link = xyes; then
22606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609 /* end confdefs.h. */
22611 #ifdef HAVE_COMPLEX_H
22612 #include <complex.h>
22613 #endif
22614 #ifdef HAVE_MATH_H
22615 #include <math.h>
22616 #endif
22618 int (*ptr)() = (int (*)())tanl;
22621 main ()
22623 return 0;
22626 _ACEOF
22627 if ac_fn_c_try_link "$LINENO"; then :
22628 gcc_cv_math_func_tanl=yes
22629 else
22630 gcc_cv_math_func_tanl=no
22632 rm -f core conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22636 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22637 if test $gcc_cv_math_func_tanl = yes; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define HAVE_TANL 1
22641 _ACEOF
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22649 $as_echo_n "checking for ctanf... " >&6; }
22650 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 if test x$gcc_no_link = xyes; then
22654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h. */
22659 #ifdef HAVE_COMPLEX_H
22660 #include <complex.h>
22661 #endif
22662 #ifdef HAVE_MATH_H
22663 #include <math.h>
22664 #endif
22666 int (*ptr)() = (int (*)())ctanf;
22669 main ()
22671 return 0;
22674 _ACEOF
22675 if ac_fn_c_try_link "$LINENO"; then :
22676 gcc_cv_math_func_ctanf=yes
22677 else
22678 gcc_cv_math_func_ctanf=no
22680 rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22684 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22685 if test $gcc_cv_math_func_ctanf = yes; then
22687 cat >>confdefs.h <<_ACEOF
22688 #define HAVE_CTANF 1
22689 _ACEOF
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22697 $as_echo_n "checking for ctan... " >&6; }
22698 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22699 $as_echo_n "(cached) " >&6
22700 else
22701 if test x$gcc_no_link = xyes; then
22702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22707 #ifdef HAVE_COMPLEX_H
22708 #include <complex.h>
22709 #endif
22710 #ifdef HAVE_MATH_H
22711 #include <math.h>
22712 #endif
22714 int (*ptr)() = (int (*)())ctan;
22717 main ()
22719 return 0;
22722 _ACEOF
22723 if ac_fn_c_try_link "$LINENO"; then :
22724 gcc_cv_math_func_ctan=yes
22725 else
22726 gcc_cv_math_func_ctan=no
22728 rm -f core conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22732 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22733 if test $gcc_cv_math_func_ctan = yes; then
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_CTAN 1
22737 _ACEOF
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22745 $as_echo_n "checking for ctanl... " >&6; }
22746 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22747 $as_echo_n "(cached) " >&6
22748 else
22749 if test x$gcc_no_link = xyes; then
22750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22755 #ifdef HAVE_COMPLEX_H
22756 #include <complex.h>
22757 #endif
22758 #ifdef HAVE_MATH_H
22759 #include <math.h>
22760 #endif
22762 int (*ptr)() = (int (*)())ctanl;
22765 main ()
22767 return 0;
22770 _ACEOF
22771 if ac_fn_c_try_link "$LINENO"; then :
22772 gcc_cv_math_func_ctanl=yes
22773 else
22774 gcc_cv_math_func_ctanl=no
22776 rm -f core conftest.err conftest.$ac_objext \
22777 conftest$ac_exeext conftest.$ac_ext
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22780 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22781 if test $gcc_cv_math_func_ctanl = yes; then
22783 cat >>confdefs.h <<_ACEOF
22784 #define HAVE_CTANL 1
22785 _ACEOF
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22793 $as_echo_n "checking for tanhf... " >&6; }
22794 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 if test x$gcc_no_link = xyes; then
22798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h. */
22803 #ifdef HAVE_COMPLEX_H
22804 #include <complex.h>
22805 #endif
22806 #ifdef HAVE_MATH_H
22807 #include <math.h>
22808 #endif
22810 int (*ptr)() = (int (*)())tanhf;
22813 main ()
22815 return 0;
22818 _ACEOF
22819 if ac_fn_c_try_link "$LINENO"; then :
22820 gcc_cv_math_func_tanhf=yes
22821 else
22822 gcc_cv_math_func_tanhf=no
22824 rm -f core conftest.err conftest.$ac_objext \
22825 conftest$ac_exeext conftest.$ac_ext
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22828 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22829 if test $gcc_cv_math_func_tanhf = yes; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define HAVE_TANHF 1
22833 _ACEOF
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22841 $as_echo_n "checking for tanh... " >&6; }
22842 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22843 $as_echo_n "(cached) " >&6
22844 else
22845 if test x$gcc_no_link = xyes; then
22846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22851 #ifdef HAVE_COMPLEX_H
22852 #include <complex.h>
22853 #endif
22854 #ifdef HAVE_MATH_H
22855 #include <math.h>
22856 #endif
22858 int (*ptr)() = (int (*)())tanh;
22861 main ()
22863 return 0;
22866 _ACEOF
22867 if ac_fn_c_try_link "$LINENO"; then :
22868 gcc_cv_math_func_tanh=yes
22869 else
22870 gcc_cv_math_func_tanh=no
22872 rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22876 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22877 if test $gcc_cv_math_func_tanh = yes; then
22879 cat >>confdefs.h <<_ACEOF
22880 #define HAVE_TANH 1
22881 _ACEOF
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22889 $as_echo_n "checking for tanhl... " >&6; }
22890 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22891 $as_echo_n "(cached) " >&6
22892 else
22893 if test x$gcc_no_link = xyes; then
22894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22899 #ifdef HAVE_COMPLEX_H
22900 #include <complex.h>
22901 #endif
22902 #ifdef HAVE_MATH_H
22903 #include <math.h>
22904 #endif
22906 int (*ptr)() = (int (*)())tanhl;
22909 main ()
22911 return 0;
22914 _ACEOF
22915 if ac_fn_c_try_link "$LINENO"; then :
22916 gcc_cv_math_func_tanhl=yes
22917 else
22918 gcc_cv_math_func_tanhl=no
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22924 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22925 if test $gcc_cv_math_func_tanhl = yes; then
22927 cat >>confdefs.h <<_ACEOF
22928 #define HAVE_TANHL 1
22929 _ACEOF
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22937 $as_echo_n "checking for ctanhf... " >&6; }
22938 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941 if test x$gcc_no_link = xyes; then
22942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h. */
22947 #ifdef HAVE_COMPLEX_H
22948 #include <complex.h>
22949 #endif
22950 #ifdef HAVE_MATH_H
22951 #include <math.h>
22952 #endif
22954 int (*ptr)() = (int (*)())ctanhf;
22957 main ()
22959 return 0;
22962 _ACEOF
22963 if ac_fn_c_try_link "$LINENO"; then :
22964 gcc_cv_math_func_ctanhf=yes
22965 else
22966 gcc_cv_math_func_ctanhf=no
22968 rm -f core conftest.err conftest.$ac_objext \
22969 conftest$ac_exeext conftest.$ac_ext
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22972 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22973 if test $gcc_cv_math_func_ctanhf = yes; then
22975 cat >>confdefs.h <<_ACEOF
22976 #define HAVE_CTANHF 1
22977 _ACEOF
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22985 $as_echo_n "checking for ctanh... " >&6; }
22986 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22987 $as_echo_n "(cached) " >&6
22988 else
22989 if test x$gcc_no_link = xyes; then
22990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h. */
22995 #ifdef HAVE_COMPLEX_H
22996 #include <complex.h>
22997 #endif
22998 #ifdef HAVE_MATH_H
22999 #include <math.h>
23000 #endif
23002 int (*ptr)() = (int (*)())ctanh;
23005 main ()
23007 return 0;
23010 _ACEOF
23011 if ac_fn_c_try_link "$LINENO"; then :
23012 gcc_cv_math_func_ctanh=yes
23013 else
23014 gcc_cv_math_func_ctanh=no
23016 rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23020 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23021 if test $gcc_cv_math_func_ctanh = yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_CTANH 1
23025 _ACEOF
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23033 $as_echo_n "checking for ctanhl... " >&6; }
23034 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23036 else
23037 if test x$gcc_no_link = xyes; then
23038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23043 #ifdef HAVE_COMPLEX_H
23044 #include <complex.h>
23045 #endif
23046 #ifdef HAVE_MATH_H
23047 #include <math.h>
23048 #endif
23050 int (*ptr)() = (int (*)())ctanhl;
23053 main ()
23055 return 0;
23058 _ACEOF
23059 if ac_fn_c_try_link "$LINENO"; then :
23060 gcc_cv_math_func_ctanhl=yes
23061 else
23062 gcc_cv_math_func_ctanhl=no
23064 rm -f core conftest.err conftest.$ac_objext \
23065 conftest$ac_exeext conftest.$ac_ext
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23068 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23069 if test $gcc_cv_math_func_ctanhl = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_CTANHL 1
23073 _ACEOF
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23081 $as_echo_n "checking for truncf... " >&6; }
23082 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23083 $as_echo_n "(cached) " >&6
23084 else
23085 if test x$gcc_no_link = xyes; then
23086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23091 #ifdef HAVE_COMPLEX_H
23092 #include <complex.h>
23093 #endif
23094 #ifdef HAVE_MATH_H
23095 #include <math.h>
23096 #endif
23098 int (*ptr)() = (int (*)())truncf;
23101 main ()
23103 return 0;
23106 _ACEOF
23107 if ac_fn_c_try_link "$LINENO"; then :
23108 gcc_cv_math_func_truncf=yes
23109 else
23110 gcc_cv_math_func_truncf=no
23112 rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23116 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23117 if test $gcc_cv_math_func_truncf = yes; then
23119 cat >>confdefs.h <<_ACEOF
23120 #define HAVE_TRUNCF 1
23121 _ACEOF
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23129 $as_echo_n "checking for trunc... " >&6; }
23130 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 if test x$gcc_no_link = xyes; then
23134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137 /* end confdefs.h. */
23139 #ifdef HAVE_COMPLEX_H
23140 #include <complex.h>
23141 #endif
23142 #ifdef HAVE_MATH_H
23143 #include <math.h>
23144 #endif
23146 int (*ptr)() = (int (*)())trunc;
23149 main ()
23151 return 0;
23154 _ACEOF
23155 if ac_fn_c_try_link "$LINENO"; then :
23156 gcc_cv_math_func_trunc=yes
23157 else
23158 gcc_cv_math_func_trunc=no
23160 rm -f core conftest.err conftest.$ac_objext \
23161 conftest$ac_exeext conftest.$ac_ext
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23164 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23165 if test $gcc_cv_math_func_trunc = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_TRUNC 1
23169 _ACEOF
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23177 $as_echo_n "checking for truncl... " >&6; }
23178 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23179 $as_echo_n "(cached) " >&6
23180 else
23181 if test x$gcc_no_link = xyes; then
23182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23187 #ifdef HAVE_COMPLEX_H
23188 #include <complex.h>
23189 #endif
23190 #ifdef HAVE_MATH_H
23191 #include <math.h>
23192 #endif
23194 int (*ptr)() = (int (*)())truncl;
23197 main ()
23199 return 0;
23202 _ACEOF
23203 if ac_fn_c_try_link "$LINENO"; then :
23204 gcc_cv_math_func_truncl=yes
23205 else
23206 gcc_cv_math_func_truncl=no
23208 rm -f core conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23212 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23213 if test $gcc_cv_math_func_truncl = yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define HAVE_TRUNCL 1
23217 _ACEOF
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23225 $as_echo_n "checking for erff... " >&6; }
23226 if test "${gcc_cv_math_func_erff+set}" = set; then :
23227 $as_echo_n "(cached) " >&6
23228 else
23229 if test x$gcc_no_link = xyes; then
23230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233 /* end confdefs.h. */
23235 #ifdef HAVE_COMPLEX_H
23236 #include <complex.h>
23237 #endif
23238 #ifdef HAVE_MATH_H
23239 #include <math.h>
23240 #endif
23242 int (*ptr)() = (int (*)())erff;
23245 main ()
23247 return 0;
23250 _ACEOF
23251 if ac_fn_c_try_link "$LINENO"; then :
23252 gcc_cv_math_func_erff=yes
23253 else
23254 gcc_cv_math_func_erff=no
23256 rm -f core conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23260 $as_echo "$gcc_cv_math_func_erff" >&6; }
23261 if test $gcc_cv_math_func_erff = yes; then
23263 cat >>confdefs.h <<_ACEOF
23264 #define HAVE_ERFF 1
23265 _ACEOF
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23273 $as_echo_n "checking for erf... " >&6; }
23274 if test "${gcc_cv_math_func_erf+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23276 else
23277 if test x$gcc_no_link = xyes; then
23278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h. */
23283 #ifdef HAVE_COMPLEX_H
23284 #include <complex.h>
23285 #endif
23286 #ifdef HAVE_MATH_H
23287 #include <math.h>
23288 #endif
23290 int (*ptr)() = (int (*)())erf;
23293 main ()
23295 return 0;
23298 _ACEOF
23299 if ac_fn_c_try_link "$LINENO"; then :
23300 gcc_cv_math_func_erf=yes
23301 else
23302 gcc_cv_math_func_erf=no
23304 rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23308 $as_echo "$gcc_cv_math_func_erf" >&6; }
23309 if test $gcc_cv_math_func_erf = yes; then
23311 cat >>confdefs.h <<_ACEOF
23312 #define HAVE_ERF 1
23313 _ACEOF
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23321 $as_echo_n "checking for erfcf... " >&6; }
23322 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23323 $as_echo_n "(cached) " >&6
23324 else
23325 if test x$gcc_no_link = xyes; then
23326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h. */
23331 #ifdef HAVE_COMPLEX_H
23332 #include <complex.h>
23333 #endif
23334 #ifdef HAVE_MATH_H
23335 #include <math.h>
23336 #endif
23338 int (*ptr)() = (int (*)())erfcf;
23341 main ()
23343 return 0;
23346 _ACEOF
23347 if ac_fn_c_try_link "$LINENO"; then :
23348 gcc_cv_math_func_erfcf=yes
23349 else
23350 gcc_cv_math_func_erfcf=no
23352 rm -f core conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23356 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23357 if test $gcc_cv_math_func_erfcf = yes; then
23359 cat >>confdefs.h <<_ACEOF
23360 #define HAVE_ERFCF 1
23361 _ACEOF
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23369 $as_echo_n "checking for erfc... " >&6; }
23370 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23372 else
23373 if test x$gcc_no_link = xyes; then
23374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23377 /* end confdefs.h. */
23379 #ifdef HAVE_COMPLEX_H
23380 #include <complex.h>
23381 #endif
23382 #ifdef HAVE_MATH_H
23383 #include <math.h>
23384 #endif
23386 int (*ptr)() = (int (*)())erfc;
23389 main ()
23391 return 0;
23394 _ACEOF
23395 if ac_fn_c_try_link "$LINENO"; then :
23396 gcc_cv_math_func_erfc=yes
23397 else
23398 gcc_cv_math_func_erfc=no
23400 rm -f core conftest.err conftest.$ac_objext \
23401 conftest$ac_exeext conftest.$ac_ext
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23404 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23405 if test $gcc_cv_math_func_erfc = yes; then
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_ERFC 1
23409 _ACEOF
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23417 $as_echo_n "checking for erfcl... " >&6; }
23418 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23419 $as_echo_n "(cached) " >&6
23420 else
23421 if test x$gcc_no_link = xyes; then
23422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425 /* end confdefs.h. */
23427 #ifdef HAVE_COMPLEX_H
23428 #include <complex.h>
23429 #endif
23430 #ifdef HAVE_MATH_H
23431 #include <math.h>
23432 #endif
23434 int (*ptr)() = (int (*)())erfcl;
23437 main ()
23439 return 0;
23442 _ACEOF
23443 if ac_fn_c_try_link "$LINENO"; then :
23444 gcc_cv_math_func_erfcl=yes
23445 else
23446 gcc_cv_math_func_erfcl=no
23448 rm -f core conftest.err conftest.$ac_objext \
23449 conftest$ac_exeext conftest.$ac_ext
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23452 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23453 if test $gcc_cv_math_func_erfcl = yes; then
23455 cat >>confdefs.h <<_ACEOF
23456 #define HAVE_ERFCL 1
23457 _ACEOF
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23465 $as_echo_n "checking for j0f... " >&6; }
23466 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23468 else
23469 if test x$gcc_no_link = xyes; then
23470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23475 #ifdef HAVE_COMPLEX_H
23476 #include <complex.h>
23477 #endif
23478 #ifdef HAVE_MATH_H
23479 #include <math.h>
23480 #endif
23482 int (*ptr)() = (int (*)())j0f;
23485 main ()
23487 return 0;
23490 _ACEOF
23491 if ac_fn_c_try_link "$LINENO"; then :
23492 gcc_cv_math_func_j0f=yes
23493 else
23494 gcc_cv_math_func_j0f=no
23496 rm -f core conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23500 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23501 if test $gcc_cv_math_func_j0f = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define HAVE_J0F 1
23505 _ACEOF
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23513 $as_echo_n "checking for j0... " >&6; }
23514 if test "${gcc_cv_math_func_j0+set}" = set; then :
23515 $as_echo_n "(cached) " >&6
23516 else
23517 if test x$gcc_no_link = xyes; then
23518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23521 /* end confdefs.h. */
23523 #ifdef HAVE_COMPLEX_H
23524 #include <complex.h>
23525 #endif
23526 #ifdef HAVE_MATH_H
23527 #include <math.h>
23528 #endif
23530 int (*ptr)() = (int (*)())j0;
23533 main ()
23535 return 0;
23538 _ACEOF
23539 if ac_fn_c_try_link "$LINENO"; then :
23540 gcc_cv_math_func_j0=yes
23541 else
23542 gcc_cv_math_func_j0=no
23544 rm -f core conftest.err conftest.$ac_objext \
23545 conftest$ac_exeext conftest.$ac_ext
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23548 $as_echo "$gcc_cv_math_func_j0" >&6; }
23549 if test $gcc_cv_math_func_j0 = yes; then
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_J0 1
23553 _ACEOF
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23561 $as_echo_n "checking for j1f... " >&6; }
23562 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23563 $as_echo_n "(cached) " >&6
23564 else
23565 if test x$gcc_no_link = xyes; then
23566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h. */
23571 #ifdef HAVE_COMPLEX_H
23572 #include <complex.h>
23573 #endif
23574 #ifdef HAVE_MATH_H
23575 #include <math.h>
23576 #endif
23578 int (*ptr)() = (int (*)())j1f;
23581 main ()
23583 return 0;
23586 _ACEOF
23587 if ac_fn_c_try_link "$LINENO"; then :
23588 gcc_cv_math_func_j1f=yes
23589 else
23590 gcc_cv_math_func_j1f=no
23592 rm -f core conftest.err conftest.$ac_objext \
23593 conftest$ac_exeext conftest.$ac_ext
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23596 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23597 if test $gcc_cv_math_func_j1f = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_J1F 1
23601 _ACEOF
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23609 $as_echo_n "checking for j1... " >&6; }
23610 if test "${gcc_cv_math_func_j1+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 if test x$gcc_no_link = xyes; then
23614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23619 #ifdef HAVE_COMPLEX_H
23620 #include <complex.h>
23621 #endif
23622 #ifdef HAVE_MATH_H
23623 #include <math.h>
23624 #endif
23626 int (*ptr)() = (int (*)())j1;
23629 main ()
23631 return 0;
23634 _ACEOF
23635 if ac_fn_c_try_link "$LINENO"; then :
23636 gcc_cv_math_func_j1=yes
23637 else
23638 gcc_cv_math_func_j1=no
23640 rm -f core conftest.err conftest.$ac_objext \
23641 conftest$ac_exeext conftest.$ac_ext
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23644 $as_echo "$gcc_cv_math_func_j1" >&6; }
23645 if test $gcc_cv_math_func_j1 = yes; then
23647 cat >>confdefs.h <<_ACEOF
23648 #define HAVE_J1 1
23649 _ACEOF
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23657 $as_echo_n "checking for jnf... " >&6; }
23658 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23660 else
23661 if test x$gcc_no_link = xyes; then
23662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23667 #ifdef HAVE_COMPLEX_H
23668 #include <complex.h>
23669 #endif
23670 #ifdef HAVE_MATH_H
23671 #include <math.h>
23672 #endif
23674 int (*ptr)() = (int (*)())jnf;
23677 main ()
23679 return 0;
23682 _ACEOF
23683 if ac_fn_c_try_link "$LINENO"; then :
23684 gcc_cv_math_func_jnf=yes
23685 else
23686 gcc_cv_math_func_jnf=no
23688 rm -f core conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23692 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23693 if test $gcc_cv_math_func_jnf = yes; then
23695 cat >>confdefs.h <<_ACEOF
23696 #define HAVE_JNF 1
23697 _ACEOF
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23705 $as_echo_n "checking for jn... " >&6; }
23706 if test "${gcc_cv_math_func_jn+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23708 else
23709 if test x$gcc_no_link = xyes; then
23710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23713 /* end confdefs.h. */
23715 #ifdef HAVE_COMPLEX_H
23716 #include <complex.h>
23717 #endif
23718 #ifdef HAVE_MATH_H
23719 #include <math.h>
23720 #endif
23722 int (*ptr)() = (int (*)())jn;
23725 main ()
23727 return 0;
23730 _ACEOF
23731 if ac_fn_c_try_link "$LINENO"; then :
23732 gcc_cv_math_func_jn=yes
23733 else
23734 gcc_cv_math_func_jn=no
23736 rm -f core conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23740 $as_echo "$gcc_cv_math_func_jn" >&6; }
23741 if test $gcc_cv_math_func_jn = yes; then
23743 cat >>confdefs.h <<_ACEOF
23744 #define HAVE_JN 1
23745 _ACEOF
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23753 $as_echo_n "checking for jnl... " >&6; }
23754 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 if test x$gcc_no_link = xyes; then
23758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23763 #ifdef HAVE_COMPLEX_H
23764 #include <complex.h>
23765 #endif
23766 #ifdef HAVE_MATH_H
23767 #include <math.h>
23768 #endif
23770 int (*ptr)() = (int (*)())jnl;
23773 main ()
23775 return 0;
23778 _ACEOF
23779 if ac_fn_c_try_link "$LINENO"; then :
23780 gcc_cv_math_func_jnl=yes
23781 else
23782 gcc_cv_math_func_jnl=no
23784 rm -f core conftest.err conftest.$ac_objext \
23785 conftest$ac_exeext conftest.$ac_ext
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23788 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23789 if test $gcc_cv_math_func_jnl = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_JNL 1
23793 _ACEOF
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23801 $as_echo_n "checking for y0f... " >&6; }
23802 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 if test x$gcc_no_link = xyes; then
23806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809 /* end confdefs.h. */
23811 #ifdef HAVE_COMPLEX_H
23812 #include <complex.h>
23813 #endif
23814 #ifdef HAVE_MATH_H
23815 #include <math.h>
23816 #endif
23818 int (*ptr)() = (int (*)())y0f;
23821 main ()
23823 return 0;
23826 _ACEOF
23827 if ac_fn_c_try_link "$LINENO"; then :
23828 gcc_cv_math_func_y0f=yes
23829 else
23830 gcc_cv_math_func_y0f=no
23832 rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext conftest.$ac_ext
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23836 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23837 if test $gcc_cv_math_func_y0f = yes; then
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_Y0F 1
23841 _ACEOF
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23849 $as_echo_n "checking for y0... " >&6; }
23850 if test "${gcc_cv_math_func_y0+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23852 else
23853 if test x$gcc_no_link = xyes; then
23854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23857 /* end confdefs.h. */
23859 #ifdef HAVE_COMPLEX_H
23860 #include <complex.h>
23861 #endif
23862 #ifdef HAVE_MATH_H
23863 #include <math.h>
23864 #endif
23866 int (*ptr)() = (int (*)())y0;
23869 main ()
23871 return 0;
23874 _ACEOF
23875 if ac_fn_c_try_link "$LINENO"; then :
23876 gcc_cv_math_func_y0=yes
23877 else
23878 gcc_cv_math_func_y0=no
23880 rm -f core conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23884 $as_echo "$gcc_cv_math_func_y0" >&6; }
23885 if test $gcc_cv_math_func_y0 = yes; then
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_Y0 1
23889 _ACEOF
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23897 $as_echo_n "checking for y1f... " >&6; }
23898 if test "${gcc_cv_math_func_y1f+set}" = set; then :
23899 $as_echo_n "(cached) " >&6
23900 else
23901 if test x$gcc_no_link = xyes; then
23902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h. */
23907 #ifdef HAVE_COMPLEX_H
23908 #include <complex.h>
23909 #endif
23910 #ifdef HAVE_MATH_H
23911 #include <math.h>
23912 #endif
23914 int (*ptr)() = (int (*)())y1f;
23917 main ()
23919 return 0;
23922 _ACEOF
23923 if ac_fn_c_try_link "$LINENO"; then :
23924 gcc_cv_math_func_y1f=yes
23925 else
23926 gcc_cv_math_func_y1f=no
23928 rm -f core conftest.err conftest.$ac_objext \
23929 conftest$ac_exeext conftest.$ac_ext
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23932 $as_echo "$gcc_cv_math_func_y1f" >&6; }
23933 if test $gcc_cv_math_func_y1f = yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define HAVE_Y1F 1
23937 _ACEOF
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23945 $as_echo_n "checking for y1... " >&6; }
23946 if test "${gcc_cv_math_func_y1+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23948 else
23949 if test x$gcc_no_link = xyes; then
23950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953 /* end confdefs.h. */
23955 #ifdef HAVE_COMPLEX_H
23956 #include <complex.h>
23957 #endif
23958 #ifdef HAVE_MATH_H
23959 #include <math.h>
23960 #endif
23962 int (*ptr)() = (int (*)())y1;
23965 main ()
23967 return 0;
23970 _ACEOF
23971 if ac_fn_c_try_link "$LINENO"; then :
23972 gcc_cv_math_func_y1=yes
23973 else
23974 gcc_cv_math_func_y1=no
23976 rm -f core conftest.err conftest.$ac_objext \
23977 conftest$ac_exeext conftest.$ac_ext
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23980 $as_echo "$gcc_cv_math_func_y1" >&6; }
23981 if test $gcc_cv_math_func_y1 = yes; then
23983 cat >>confdefs.h <<_ACEOF
23984 #define HAVE_Y1 1
23985 _ACEOF
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23993 $as_echo_n "checking for ynf... " >&6; }
23994 if test "${gcc_cv_math_func_ynf+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 if test x$gcc_no_link = xyes; then
23998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24003 #ifdef HAVE_COMPLEX_H
24004 #include <complex.h>
24005 #endif
24006 #ifdef HAVE_MATH_H
24007 #include <math.h>
24008 #endif
24010 int (*ptr)() = (int (*)())ynf;
24013 main ()
24015 return 0;
24018 _ACEOF
24019 if ac_fn_c_try_link "$LINENO"; then :
24020 gcc_cv_math_func_ynf=yes
24021 else
24022 gcc_cv_math_func_ynf=no
24024 rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24028 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24029 if test $gcc_cv_math_func_ynf = yes; then
24031 cat >>confdefs.h <<_ACEOF
24032 #define HAVE_YNF 1
24033 _ACEOF
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24041 $as_echo_n "checking for yn... " >&6; }
24042 if test "${gcc_cv_math_func_yn+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24045 if test x$gcc_no_link = xyes; then
24046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h. */
24051 #ifdef HAVE_COMPLEX_H
24052 #include <complex.h>
24053 #endif
24054 #ifdef HAVE_MATH_H
24055 #include <math.h>
24056 #endif
24058 int (*ptr)() = (int (*)())yn;
24061 main ()
24063 return 0;
24066 _ACEOF
24067 if ac_fn_c_try_link "$LINENO"; then :
24068 gcc_cv_math_func_yn=yes
24069 else
24070 gcc_cv_math_func_yn=no
24072 rm -f core conftest.err conftest.$ac_objext \
24073 conftest$ac_exeext conftest.$ac_ext
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24076 $as_echo "$gcc_cv_math_func_yn" >&6; }
24077 if test $gcc_cv_math_func_yn = yes; then
24079 cat >>confdefs.h <<_ACEOF
24080 #define HAVE_YN 1
24081 _ACEOF
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24089 $as_echo_n "checking for ynl... " >&6; }
24090 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24092 else
24093 if test x$gcc_no_link = xyes; then
24094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h. */
24099 #ifdef HAVE_COMPLEX_H
24100 #include <complex.h>
24101 #endif
24102 #ifdef HAVE_MATH_H
24103 #include <math.h>
24104 #endif
24106 int (*ptr)() = (int (*)())ynl;
24109 main ()
24111 return 0;
24114 _ACEOF
24115 if ac_fn_c_try_link "$LINENO"; then :
24116 gcc_cv_math_func_ynl=yes
24117 else
24118 gcc_cv_math_func_ynl=no
24120 rm -f core conftest.err conftest.$ac_objext \
24121 conftest$ac_exeext conftest.$ac_ext
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24124 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24125 if test $gcc_cv_math_func_ynl = yes; then
24127 cat >>confdefs.h <<_ACEOF
24128 #define HAVE_YNL 1
24129 _ACEOF
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24137 $as_echo_n "checking for tgamma... " >&6; }
24138 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 if test x$gcc_no_link = xyes; then
24142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24145 /* end confdefs.h. */
24147 #ifdef HAVE_COMPLEX_H
24148 #include <complex.h>
24149 #endif
24150 #ifdef HAVE_MATH_H
24151 #include <math.h>
24152 #endif
24154 int (*ptr)() = (int (*)())tgamma;
24157 main ()
24159 return 0;
24162 _ACEOF
24163 if ac_fn_c_try_link "$LINENO"; then :
24164 gcc_cv_math_func_tgamma=yes
24165 else
24166 gcc_cv_math_func_tgamma=no
24168 rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24172 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24173 if test $gcc_cv_math_func_tgamma = yes; then
24175 cat >>confdefs.h <<_ACEOF
24176 #define HAVE_TGAMMA 1
24177 _ACEOF
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24185 $as_echo_n "checking for tgammaf... " >&6; }
24186 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24188 else
24189 if test x$gcc_no_link = xyes; then
24190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24195 #ifdef HAVE_COMPLEX_H
24196 #include <complex.h>
24197 #endif
24198 #ifdef HAVE_MATH_H
24199 #include <math.h>
24200 #endif
24202 int (*ptr)() = (int (*)())tgammaf;
24205 main ()
24207 return 0;
24210 _ACEOF
24211 if ac_fn_c_try_link "$LINENO"; then :
24212 gcc_cv_math_func_tgammaf=yes
24213 else
24214 gcc_cv_math_func_tgammaf=no
24216 rm -f core conftest.err conftest.$ac_objext \
24217 conftest$ac_exeext conftest.$ac_ext
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24220 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24221 if test $gcc_cv_math_func_tgammaf = yes; then
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_TGAMMAF 1
24225 _ACEOF
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24233 $as_echo_n "checking for lgamma... " >&6; }
24234 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 if test x$gcc_no_link = xyes; then
24238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24243 #ifdef HAVE_COMPLEX_H
24244 #include <complex.h>
24245 #endif
24246 #ifdef HAVE_MATH_H
24247 #include <math.h>
24248 #endif
24250 int (*ptr)() = (int (*)())lgamma;
24253 main ()
24255 return 0;
24258 _ACEOF
24259 if ac_fn_c_try_link "$LINENO"; then :
24260 gcc_cv_math_func_lgamma=yes
24261 else
24262 gcc_cv_math_func_lgamma=no
24264 rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24268 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24269 if test $gcc_cv_math_func_lgamma = yes; then
24271 cat >>confdefs.h <<_ACEOF
24272 #define HAVE_LGAMMA 1
24273 _ACEOF
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24281 $as_echo_n "checking for lgammaf... " >&6; }
24282 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 if test x$gcc_no_link = xyes; then
24286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289 /* end confdefs.h. */
24291 #ifdef HAVE_COMPLEX_H
24292 #include <complex.h>
24293 #endif
24294 #ifdef HAVE_MATH_H
24295 #include <math.h>
24296 #endif
24298 int (*ptr)() = (int (*)())lgammaf;
24301 main ()
24303 return 0;
24306 _ACEOF
24307 if ac_fn_c_try_link "$LINENO"; then :
24308 gcc_cv_math_func_lgammaf=yes
24309 else
24310 gcc_cv_math_func_lgammaf=no
24312 rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24316 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24317 if test $gcc_cv_math_func_lgammaf = yes; then
24319 cat >>confdefs.h <<_ACEOF
24320 #define HAVE_LGAMMAF 1
24321 _ACEOF
24326 # Check for GFORTRAN_C99_1.1 funcs
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24331 $as_echo_n "checking for cacos... " >&6; }
24332 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24334 else
24335 if test x$gcc_no_link = xyes; then
24336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24341 #ifdef HAVE_COMPLEX_H
24342 #include <complex.h>
24343 #endif
24344 #ifdef HAVE_MATH_H
24345 #include <math.h>
24346 #endif
24348 int (*ptr)() = (int (*)())cacos;
24351 main ()
24353 return 0;
24356 _ACEOF
24357 if ac_fn_c_try_link "$LINENO"; then :
24358 gcc_cv_math_func_cacos=yes
24359 else
24360 gcc_cv_math_func_cacos=no
24362 rm -f core conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24366 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24367 if test $gcc_cv_math_func_cacos = yes; then
24369 cat >>confdefs.h <<_ACEOF
24370 #define HAVE_CACOS 1
24371 _ACEOF
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24379 $as_echo_n "checking for cacosf... " >&6; }
24380 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24381 $as_echo_n "(cached) " >&6
24382 else
24383 if test x$gcc_no_link = xyes; then
24384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h. */
24389 #ifdef HAVE_COMPLEX_H
24390 #include <complex.h>
24391 #endif
24392 #ifdef HAVE_MATH_H
24393 #include <math.h>
24394 #endif
24396 int (*ptr)() = (int (*)())cacosf;
24399 main ()
24401 return 0;
24404 _ACEOF
24405 if ac_fn_c_try_link "$LINENO"; then :
24406 gcc_cv_math_func_cacosf=yes
24407 else
24408 gcc_cv_math_func_cacosf=no
24410 rm -f core conftest.err conftest.$ac_objext \
24411 conftest$ac_exeext conftest.$ac_ext
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24414 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24415 if test $gcc_cv_math_func_cacosf = yes; then
24417 cat >>confdefs.h <<_ACEOF
24418 #define HAVE_CACOSF 1
24419 _ACEOF
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24427 $as_echo_n "checking for cacosh... " >&6; }
24428 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24430 else
24431 if test x$gcc_no_link = xyes; then
24432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24437 #ifdef HAVE_COMPLEX_H
24438 #include <complex.h>
24439 #endif
24440 #ifdef HAVE_MATH_H
24441 #include <math.h>
24442 #endif
24444 int (*ptr)() = (int (*)())cacosh;
24447 main ()
24449 return 0;
24452 _ACEOF
24453 if ac_fn_c_try_link "$LINENO"; then :
24454 gcc_cv_math_func_cacosh=yes
24455 else
24456 gcc_cv_math_func_cacosh=no
24458 rm -f core conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24462 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24463 if test $gcc_cv_math_func_cacosh = yes; then
24465 cat >>confdefs.h <<_ACEOF
24466 #define HAVE_CACOSH 1
24467 _ACEOF
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24475 $as_echo_n "checking for cacoshf... " >&6; }
24476 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24477 $as_echo_n "(cached) " >&6
24478 else
24479 if test x$gcc_no_link = xyes; then
24480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24485 #ifdef HAVE_COMPLEX_H
24486 #include <complex.h>
24487 #endif
24488 #ifdef HAVE_MATH_H
24489 #include <math.h>
24490 #endif
24492 int (*ptr)() = (int (*)())cacoshf;
24495 main ()
24497 return 0;
24500 _ACEOF
24501 if ac_fn_c_try_link "$LINENO"; then :
24502 gcc_cv_math_func_cacoshf=yes
24503 else
24504 gcc_cv_math_func_cacoshf=no
24506 rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24510 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24511 if test $gcc_cv_math_func_cacoshf = yes; then
24513 cat >>confdefs.h <<_ACEOF
24514 #define HAVE_CACOSHF 1
24515 _ACEOF
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24523 $as_echo_n "checking for cacoshl... " >&6; }
24524 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24525 $as_echo_n "(cached) " >&6
24526 else
24527 if test x$gcc_no_link = xyes; then
24528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531 /* end confdefs.h. */
24533 #ifdef HAVE_COMPLEX_H
24534 #include <complex.h>
24535 #endif
24536 #ifdef HAVE_MATH_H
24537 #include <math.h>
24538 #endif
24540 int (*ptr)() = (int (*)())cacoshl;
24543 main ()
24545 return 0;
24548 _ACEOF
24549 if ac_fn_c_try_link "$LINENO"; then :
24550 gcc_cv_math_func_cacoshl=yes
24551 else
24552 gcc_cv_math_func_cacoshl=no
24554 rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24558 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24559 if test $gcc_cv_math_func_cacoshl = yes; then
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_CACOSHL 1
24563 _ACEOF
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24571 $as_echo_n "checking for cacosl... " >&6; }
24572 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24574 else
24575 if test x$gcc_no_link = xyes; then
24576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 #ifdef HAVE_COMPLEX_H
24582 #include <complex.h>
24583 #endif
24584 #ifdef HAVE_MATH_H
24585 #include <math.h>
24586 #endif
24588 int (*ptr)() = (int (*)())cacosl;
24591 main ()
24593 return 0;
24596 _ACEOF
24597 if ac_fn_c_try_link "$LINENO"; then :
24598 gcc_cv_math_func_cacosl=yes
24599 else
24600 gcc_cv_math_func_cacosl=no
24602 rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24606 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24607 if test $gcc_cv_math_func_cacosl = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_CACOSL 1
24611 _ACEOF
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24619 $as_echo_n "checking for casin... " >&6; }
24620 if test "${gcc_cv_math_func_casin+set}" = set; then :
24621 $as_echo_n "(cached) " >&6
24622 else
24623 if test x$gcc_no_link = xyes; then
24624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627 /* end confdefs.h. */
24629 #ifdef HAVE_COMPLEX_H
24630 #include <complex.h>
24631 #endif
24632 #ifdef HAVE_MATH_H
24633 #include <math.h>
24634 #endif
24636 int (*ptr)() = (int (*)())casin;
24639 main ()
24641 return 0;
24644 _ACEOF
24645 if ac_fn_c_try_link "$LINENO"; then :
24646 gcc_cv_math_func_casin=yes
24647 else
24648 gcc_cv_math_func_casin=no
24650 rm -f core conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24654 $as_echo "$gcc_cv_math_func_casin" >&6; }
24655 if test $gcc_cv_math_func_casin = yes; then
24657 cat >>confdefs.h <<_ACEOF
24658 #define HAVE_CASIN 1
24659 _ACEOF
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24667 $as_echo_n "checking for casinf... " >&6; }
24668 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 if test x$gcc_no_link = xyes; then
24672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24675 /* end confdefs.h. */
24677 #ifdef HAVE_COMPLEX_H
24678 #include <complex.h>
24679 #endif
24680 #ifdef HAVE_MATH_H
24681 #include <math.h>
24682 #endif
24684 int (*ptr)() = (int (*)())casinf;
24687 main ()
24689 return 0;
24692 _ACEOF
24693 if ac_fn_c_try_link "$LINENO"; then :
24694 gcc_cv_math_func_casinf=yes
24695 else
24696 gcc_cv_math_func_casinf=no
24698 rm -f core conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24702 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24703 if test $gcc_cv_math_func_casinf = yes; then
24705 cat >>confdefs.h <<_ACEOF
24706 #define HAVE_CASINF 1
24707 _ACEOF
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24715 $as_echo_n "checking for casinh... " >&6; }
24716 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24717 $as_echo_n "(cached) " >&6
24718 else
24719 if test x$gcc_no_link = xyes; then
24720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h. */
24725 #ifdef HAVE_COMPLEX_H
24726 #include <complex.h>
24727 #endif
24728 #ifdef HAVE_MATH_H
24729 #include <math.h>
24730 #endif
24732 int (*ptr)() = (int (*)())casinh;
24735 main ()
24737 return 0;
24740 _ACEOF
24741 if ac_fn_c_try_link "$LINENO"; then :
24742 gcc_cv_math_func_casinh=yes
24743 else
24744 gcc_cv_math_func_casinh=no
24746 rm -f core conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24750 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24751 if test $gcc_cv_math_func_casinh = yes; then
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_CASINH 1
24755 _ACEOF
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24763 $as_echo_n "checking for casinhf... " >&6; }
24764 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 if test x$gcc_no_link = xyes; then
24768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24771 /* end confdefs.h. */
24773 #ifdef HAVE_COMPLEX_H
24774 #include <complex.h>
24775 #endif
24776 #ifdef HAVE_MATH_H
24777 #include <math.h>
24778 #endif
24780 int (*ptr)() = (int (*)())casinhf;
24783 main ()
24785 return 0;
24788 _ACEOF
24789 if ac_fn_c_try_link "$LINENO"; then :
24790 gcc_cv_math_func_casinhf=yes
24791 else
24792 gcc_cv_math_func_casinhf=no
24794 rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24798 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24799 if test $gcc_cv_math_func_casinhf = yes; then
24801 cat >>confdefs.h <<_ACEOF
24802 #define HAVE_CASINHF 1
24803 _ACEOF
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24811 $as_echo_n "checking for casinhl... " >&6; }
24812 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24814 else
24815 if test x$gcc_no_link = xyes; then
24816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819 /* end confdefs.h. */
24821 #ifdef HAVE_COMPLEX_H
24822 #include <complex.h>
24823 #endif
24824 #ifdef HAVE_MATH_H
24825 #include <math.h>
24826 #endif
24828 int (*ptr)() = (int (*)())casinhl;
24831 main ()
24833 return 0;
24836 _ACEOF
24837 if ac_fn_c_try_link "$LINENO"; then :
24838 gcc_cv_math_func_casinhl=yes
24839 else
24840 gcc_cv_math_func_casinhl=no
24842 rm -f core conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24846 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24847 if test $gcc_cv_math_func_casinhl = yes; then
24849 cat >>confdefs.h <<_ACEOF
24850 #define HAVE_CASINHL 1
24851 _ACEOF
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24859 $as_echo_n "checking for casinl... " >&6; }
24860 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 if test x$gcc_no_link = xyes; then
24864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867 /* end confdefs.h. */
24869 #ifdef HAVE_COMPLEX_H
24870 #include <complex.h>
24871 #endif
24872 #ifdef HAVE_MATH_H
24873 #include <math.h>
24874 #endif
24876 int (*ptr)() = (int (*)())casinl;
24879 main ()
24881 return 0;
24884 _ACEOF
24885 if ac_fn_c_try_link "$LINENO"; then :
24886 gcc_cv_math_func_casinl=yes
24887 else
24888 gcc_cv_math_func_casinl=no
24890 rm -f core conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext conftest.$ac_ext
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24894 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24895 if test $gcc_cv_math_func_casinl = yes; then
24897 cat >>confdefs.h <<_ACEOF
24898 #define HAVE_CASINL 1
24899 _ACEOF
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24907 $as_echo_n "checking for catan... " >&6; }
24908 if test "${gcc_cv_math_func_catan+set}" = set; then :
24909 $as_echo_n "(cached) " >&6
24910 else
24911 if test x$gcc_no_link = xyes; then
24912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h. */
24917 #ifdef HAVE_COMPLEX_H
24918 #include <complex.h>
24919 #endif
24920 #ifdef HAVE_MATH_H
24921 #include <math.h>
24922 #endif
24924 int (*ptr)() = (int (*)())catan;
24927 main ()
24929 return 0;
24932 _ACEOF
24933 if ac_fn_c_try_link "$LINENO"; then :
24934 gcc_cv_math_func_catan=yes
24935 else
24936 gcc_cv_math_func_catan=no
24938 rm -f core conftest.err conftest.$ac_objext \
24939 conftest$ac_exeext conftest.$ac_ext
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24942 $as_echo "$gcc_cv_math_func_catan" >&6; }
24943 if test $gcc_cv_math_func_catan = yes; then
24945 cat >>confdefs.h <<_ACEOF
24946 #define HAVE_CATAN 1
24947 _ACEOF
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24955 $as_echo_n "checking for catanf... " >&6; }
24956 if test "${gcc_cv_math_func_catanf+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 if test x$gcc_no_link = xyes; then
24960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24963 /* end confdefs.h. */
24965 #ifdef HAVE_COMPLEX_H
24966 #include <complex.h>
24967 #endif
24968 #ifdef HAVE_MATH_H
24969 #include <math.h>
24970 #endif
24972 int (*ptr)() = (int (*)())catanf;
24975 main ()
24977 return 0;
24980 _ACEOF
24981 if ac_fn_c_try_link "$LINENO"; then :
24982 gcc_cv_math_func_catanf=yes
24983 else
24984 gcc_cv_math_func_catanf=no
24986 rm -f core conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24990 $as_echo "$gcc_cv_math_func_catanf" >&6; }
24991 if test $gcc_cv_math_func_catanf = yes; then
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_CATANF 1
24995 _ACEOF
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25003 $as_echo_n "checking for catanh... " >&6; }
25004 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25005 $as_echo_n "(cached) " >&6
25006 else
25007 if test x$gcc_no_link = xyes; then
25008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011 /* end confdefs.h. */
25013 #ifdef HAVE_COMPLEX_H
25014 #include <complex.h>
25015 #endif
25016 #ifdef HAVE_MATH_H
25017 #include <math.h>
25018 #endif
25020 int (*ptr)() = (int (*)())catanh;
25023 main ()
25025 return 0;
25028 _ACEOF
25029 if ac_fn_c_try_link "$LINENO"; then :
25030 gcc_cv_math_func_catanh=yes
25031 else
25032 gcc_cv_math_func_catanh=no
25034 rm -f core conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25038 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25039 if test $gcc_cv_math_func_catanh = yes; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define HAVE_CATANH 1
25043 _ACEOF
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25051 $as_echo_n "checking for catanhf... " >&6; }
25052 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 if test x$gcc_no_link = xyes; then
25056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25061 #ifdef HAVE_COMPLEX_H
25062 #include <complex.h>
25063 #endif
25064 #ifdef HAVE_MATH_H
25065 #include <math.h>
25066 #endif
25068 int (*ptr)() = (int (*)())catanhf;
25071 main ()
25073 return 0;
25076 _ACEOF
25077 if ac_fn_c_try_link "$LINENO"; then :
25078 gcc_cv_math_func_catanhf=yes
25079 else
25080 gcc_cv_math_func_catanhf=no
25082 rm -f core conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25086 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25087 if test $gcc_cv_math_func_catanhf = yes; then
25089 cat >>confdefs.h <<_ACEOF
25090 #define HAVE_CATANHF 1
25091 _ACEOF
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25099 $as_echo_n "checking for catanhl... " >&6; }
25100 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 if test x$gcc_no_link = xyes; then
25104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25109 #ifdef HAVE_COMPLEX_H
25110 #include <complex.h>
25111 #endif
25112 #ifdef HAVE_MATH_H
25113 #include <math.h>
25114 #endif
25116 int (*ptr)() = (int (*)())catanhl;
25119 main ()
25121 return 0;
25124 _ACEOF
25125 if ac_fn_c_try_link "$LINENO"; then :
25126 gcc_cv_math_func_catanhl=yes
25127 else
25128 gcc_cv_math_func_catanhl=no
25130 rm -f core conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25134 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25135 if test $gcc_cv_math_func_catanhl = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_CATANHL 1
25139 _ACEOF
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25147 $as_echo_n "checking for catanl... " >&6; }
25148 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
25150 else
25151 if test x$gcc_no_link = xyes; then
25152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25157 #ifdef HAVE_COMPLEX_H
25158 #include <complex.h>
25159 #endif
25160 #ifdef HAVE_MATH_H
25161 #include <math.h>
25162 #endif
25164 int (*ptr)() = (int (*)())catanl;
25167 main ()
25169 return 0;
25172 _ACEOF
25173 if ac_fn_c_try_link "$LINENO"; then :
25174 gcc_cv_math_func_catanl=yes
25175 else
25176 gcc_cv_math_func_catanl=no
25178 rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25182 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25183 if test $gcc_cv_math_func_catanl = yes; then
25185 cat >>confdefs.h <<_ACEOF
25186 #define HAVE_CATANL 1
25187 _ACEOF
25192 # On AIX, clog is present in libm as __clog
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25194 $as_echo_n "checking for __clog in -lm... " >&6; }
25195 if test "${ac_cv_lib_m___clog+set}" = set; then :
25196 $as_echo_n "(cached) " >&6
25197 else
25198 ac_check_lib_save_LIBS=$LIBS
25199 LIBS="-lm $LIBS"
25200 if test x$gcc_no_link = xyes; then
25201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25206 /* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char __clog ();
25214 main ()
25216 return __clog ();
25218 return 0;
25220 _ACEOF
25221 if ac_fn_c_try_link "$LINENO"; then :
25222 ac_cv_lib_m___clog=yes
25223 else
25224 ac_cv_lib_m___clog=no
25226 rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25231 $as_echo "$ac_cv_lib_m___clog" >&6; }
25232 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25234 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25239 # Check whether the system has a working stat()
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25242 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25243 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25245 else
25247 if test "$cross_compiling" = yes; then :
25249 case "${target}" in
25250 *mingw*) libgfor_cv_have_working_stat=no ;;
25251 *) libgfor_cv_have_working_stat=yes;;
25252 esac
25253 else
25254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h. */
25257 #include <stdio.h>
25258 #include <sys/types.h>
25259 #include <sys/stat.h>
25260 #include <unistd.h>
25262 int main ()
25264 FILE *f, *g;
25265 struct stat st1, st2;
25267 f = fopen ("foo", "w");
25268 g = fopen ("bar", "w");
25269 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25270 return 1;
25271 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25272 return 1;
25273 fclose(f);
25274 fclose(g);
25275 return 0;
25277 _ACEOF
25278 if ac_fn_c_try_run "$LINENO"; then :
25279 libgfor_cv_have_working_stat=yes
25280 else
25281 libgfor_cv_have_working_stat=no
25283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25284 conftest.$ac_objext conftest.beam conftest.$ac_ext
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25289 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25290 if test x"$libgfor_cv_have_working_stat" = xyes; then
25292 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25296 # Check whether __mingw_snprintf() is present
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25299 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25300 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25301 $as_echo_n "(cached) " >&6
25302 else
25304 if test x$gcc_no_link = xyes; then
25305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h. */
25310 #include <stdio.h>
25311 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25314 main ()
25317 __mingw_snprintf (NULL, 0, "%d\n", 1);
25320 return 0;
25322 _ACEOF
25323 if ac_fn_c_try_link "$LINENO"; then :
25324 eval "libgfor_cv_have_mingw_snprintf=yes"
25325 else
25326 eval "libgfor_cv_have_mingw_snprintf=no"
25328 rm -f core conftest.err conftest.$ac_objext \
25329 conftest$ac_exeext conftest.$ac_ext
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25333 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25334 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25336 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25341 # Check whether libquadmath should be used
25342 # Check whether --enable-libquadmath-support was given.
25343 if test "${enable_libquadmath_support+set}" = set; then :
25344 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25345 else
25346 ENABLE_LIBQUADMATH_SUPPORT=yes
25349 enable_libquadmath_support=
25350 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25351 enable_libquadmath_support=no
25354 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25356 LIBQUADSPEC=
25358 if test "x$enable_libquadmath_support" != xno; then
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25361 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25362 if test "${libgfor_cv_have_float128+set}" = set; then :
25363 $as_echo_n "(cached) " >&6
25364 else
25366 if test x$gcc_no_link = xyes; then
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25370 typedef _Complex float __attribute__((mode(TC))) __complex128;
25372 __float128 foo (__float128 x)
25375 __complex128 z1, z2;
25377 z1 = x;
25378 z2 = x / 7.Q;
25379 z2 /= z1;
25381 return (__float128) z2;
25384 __float128 bar (__float128 x)
25386 return x * __builtin_huge_valq ();
25390 main ()
25393 foo (1.2Q);
25394 bar (1.2Q);
25397 return 0;
25399 _ACEOF
25400 if ac_fn_c_try_compile "$LINENO"; then :
25402 libgfor_cv_have_float128=yes
25404 else
25406 libgfor_cv_have_float128=no
25409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25410 else
25411 if test x$gcc_no_link = xyes; then
25412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415 /* end confdefs.h. */
25417 typedef _Complex float __attribute__((mode(TC))) __complex128;
25419 __float128 foo (__float128 x)
25422 __complex128 z1, z2;
25424 z1 = x;
25425 z2 = x / 7.Q;
25426 z2 /= z1;
25428 return (__float128) z2;
25431 __float128 bar (__float128 x)
25433 return x * __builtin_huge_valq ();
25437 main ()
25440 foo (1.2Q);
25441 bar (1.2Q);
25444 return 0;
25446 _ACEOF
25447 if ac_fn_c_try_link "$LINENO"; then :
25449 libgfor_cv_have_float128=yes
25451 else
25453 libgfor_cv_have_float128=no
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25461 $as_echo "$libgfor_cv_have_float128" >&6; }
25463 if test "x$libgfor_cv_have_float128" = xyes; then
25465 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25468 ac_xsave_c_werror_flag=$ac_c_werror_flag
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25470 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25471 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25475 # Test for native Solaris options first.
25476 # No whitespace after -z to pass it through -Wl.
25477 libgfor_cv_as_needed_option="-zignore"
25478 libgfor_cv_no_as_needed_option="-zrecord"
25479 save_LDFLAGS="$LDFLAGS"
25480 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25481 libgfor_cv_have_as_needed=no
25483 ac_c_werror_flag=yes
25484 if test x$gcc_no_link = xyes; then
25485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488 /* end confdefs.h. */
25491 main ()
25495 return 0;
25497 _ACEOF
25498 if ac_fn_c_try_link "$LINENO"; then :
25499 libgfor_cv_have_as_needed=yes
25500 else
25501 libgfor_cv_have_as_needed=no
25503 rm -f core conftest.err conftest.$ac_objext \
25504 conftest$ac_exeext conftest.$ac_ext
25505 LDFLAGS="$save_LDFLAGS"
25506 if test "x$libgfor_cv_have_as_needed" = xno; then
25507 libgfor_cv_as_needed_option="--as-needed"
25508 libgfor_cv_no_as_needed_option="--no-as-needed"
25509 save_LDFLAGS="$LDFLAGS"
25510 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25511 libgfor_cv_have_as_needed=no
25513 ac_c_werror_flag=yes
25514 if test x$gcc_no_link = xyes; then
25515 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25518 /* end confdefs.h. */
25521 main ()
25525 return 0;
25527 _ACEOF
25528 if ac_fn_c_try_link "$LINENO"; then :
25529 libgfor_cv_have_as_needed=yes
25530 else
25531 libgfor_cv_have_as_needed=no
25533 rm -f core conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
25535 LDFLAGS="$save_LDFLAGS"
25537 ac_c_werror_flag=$ac_xsave_c_werror_flag
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25541 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25543 if test "x$libgfor_cv_have_as_needed" = xyes; then
25544 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25545 else
25546 LIBQUADSPEC="-lquadmath"
25548 if test -f ../libquadmath/libquadmath.la; then
25549 LIBQUADLIB=../libquadmath/libquadmath.la
25550 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25551 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25552 else
25553 LIBQUADLIB="-lquadmath"
25554 LIBQUADLIB_DEP=
25555 LIBQUADINCLUDE=
25558 else
25559 # for --disable-quadmath
25560 LIBQUADLIB=
25561 LIBQUADLIB_DEP=
25562 LIBQUADINCLUDE=
25570 if test "x$libgfor_cv_have_float128" = xyes; then
25571 LIBGFOR_BUILD_QUAD_TRUE=
25572 LIBGFOR_BUILD_QUAD_FALSE='#'
25573 else
25574 LIBGFOR_BUILD_QUAD_TRUE='#'
25575 LIBGFOR_BUILD_QUAD_FALSE=
25580 # Check for GNU libc feenableexcept
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25582 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25583 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25585 else
25586 ac_check_lib_save_LIBS=$LIBS
25587 LIBS="-lm $LIBS"
25588 if test x$gcc_no_link = xyes; then
25589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592 /* end confdefs.h. */
25594 /* Override any GCC internal prototype to avoid an error.
25595 Use char because int might match the return type of a GCC
25596 builtin and then its argument prototype would still apply. */
25597 #ifdef __cplusplus
25598 extern "C"
25599 #endif
25600 char feenableexcept ();
25602 main ()
25604 return feenableexcept ();
25606 return 0;
25608 _ACEOF
25609 if ac_fn_c_try_link "$LINENO"; then :
25610 ac_cv_lib_m_feenableexcept=yes
25611 else
25612 ac_cv_lib_m_feenableexcept=no
25614 rm -f core conftest.err conftest.$ac_objext \
25615 conftest$ac_exeext conftest.$ac_ext
25616 LIBS=$ac_check_lib_save_LIBS
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25619 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25620 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25621 have_feenableexcept=yes
25622 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25627 # At least for glibc, clock_gettime is in librt. But don't
25628 # pull that in if it still doesn't give us the function we want. This
25629 # test is copied from libgomp, and modified to not link in -lrt as
25630 # libgfortran calls clock_gettime via a weak reference if it's found
25631 # in librt.
25632 if test "$ac_cv_func_clock_gettime" = no; then
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25634 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25635 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25636 $as_echo_n "(cached) " >&6
25637 else
25638 ac_check_lib_save_LIBS=$LIBS
25639 LIBS="-lrt $LIBS"
25640 if test x$gcc_no_link = xyes; then
25641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25646 /* Override any GCC internal prototype to avoid an error.
25647 Use char because int might match the return type of a GCC
25648 builtin and then its argument prototype would still apply. */
25649 #ifdef __cplusplus
25650 extern "C"
25651 #endif
25652 char clock_gettime ();
25654 main ()
25656 return clock_gettime ();
25658 return 0;
25660 _ACEOF
25661 if ac_fn_c_try_link "$LINENO"; then :
25662 ac_cv_lib_rt_clock_gettime=yes
25663 else
25664 ac_cv_lib_rt_clock_gettime=no
25666 rm -f core conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
25668 LIBS=$ac_check_lib_save_LIBS
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25671 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25672 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25674 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25680 # Check for SysV fpsetmask
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25683 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25684 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25688 if test x$gcc_no_link = xyes; then
25689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25692 /* end confdefs.h. */
25694 #if HAVE_FLOATINGPOINT_H
25695 # include <floatingpoint.h>
25696 #endif /* HAVE_FLOATINGPOINT_H */
25697 #if HAVE_IEEEFP_H
25698 # include <ieeefp.h>
25699 #endif /* HAVE_IEEEFP_H */
25701 main ()
25703 fpsetmask(0);
25705 return 0;
25707 _ACEOF
25708 if ac_fn_c_try_link "$LINENO"; then :
25709 eval "libgfor_cv_have_fpsetmask=yes"
25710 else
25711 eval "libgfor_cv_have_fpsetmask=no"
25713 rm -f core conftest.err conftest.$ac_objext \
25714 conftest$ac_exeext conftest.$ac_ext
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25718 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25719 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25720 have_fpsetmask=yes
25722 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25726 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25727 #ifdef HAVE_IEEEFP_H
25728 #include <ieeefp.h>
25729 #endif
25730 #include <math.h>
25733 if test "x$ac_cv_type_fp_except" = x""yes; then :
25735 cat >>confdefs.h <<_ACEOF
25736 #define HAVE_FP_EXCEPT 1
25737 _ACEOF
25741 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25742 #ifdef HAVE_IEEEFP_H
25743 #include <ieeefp.h>
25744 #endif
25745 #include <math.h>
25748 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25750 cat >>confdefs.h <<_ACEOF
25751 #define HAVE_FP_EXCEPT_T 1
25752 _ACEOF
25757 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25758 #ifdef HAVE_IEEEFP_H
25759 #include <ieeefp.h>
25760 #endif
25761 #include <math.h>
25764 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25766 cat >>confdefs.h <<_ACEOF
25767 #define HAVE_FP_RND 1
25768 _ACEOF
25772 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25773 #ifdef HAVE_IEEEFP_H
25774 #include <ieeefp.h>
25775 #endif
25776 #include <math.h>
25779 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25781 cat >>confdefs.h <<_ACEOF
25782 #define HAVE_FP_RND_T 1
25783 _ACEOF
25789 # Check whether we have fpsetsticky or fpresetsticky
25790 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25791 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25792 have_fpsetsticky=yes
25793 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25797 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25798 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25799 have_fpresetsticky=yes
25800 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25805 # Check for AIX fp_trap and fp_enable
25806 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25807 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25808 have_fp_trap=yes
25809 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25813 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25814 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25815 have_fp_enable=yes
25816 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25821 # Runs configure.host to set up necessary host-dependent shell variables.
25822 # We then display a message about it, and propagate them through the
25823 # build chain.
25824 . ${srcdir}/configure.host
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25826 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25828 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25829 FPU_HOST_HEADER=config/${fpu_host}.h
25832 # Whether we will build the IEEE modules
25833 if test x${ieee_support} = xyes; then
25834 IEEE_SUPPORT_TRUE=
25835 IEEE_SUPPORT_FALSE='#'
25836 else
25837 IEEE_SUPPORT_TRUE='#'
25838 IEEE_SUPPORT_FALSE=
25843 # Some targets require additional compiler options for IEEE compatibility.
25844 IEEE_FLAGS="${ieee_flags}"
25848 # Check for POSIX getpwuid_r
25850 # There are two versions of getpwuid_r, the POSIX one with 5
25851 # arguments, and another one with 4 arguments used by at least HP-UX
25852 # 10.2.
25853 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25855 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25856 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25857 $as_echo_n "(cached) " >&6
25858 else
25860 if test x$gcc_no_link = xyes; then
25861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h. */
25866 #include <stdio.h>
25867 #include <sys/types.h>
25868 #include <pwd.h>
25870 main ()
25873 getpwuid_r(0, NULL, NULL, 0, NULL);
25876 return 0;
25878 _ACEOF
25879 if ac_fn_c_try_link "$LINENO"; then :
25880 libgfor_cv_posix_getpwuid_r="yes"
25881 else
25882 libgfor_cv_posix_getpwuid_r="no"
25884 rm -f core conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext conftest.$ac_ext
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25888 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25890 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25892 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25897 # Check out attribute support.
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25900 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25901 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25905 save_CFLAGS="$CFLAGS"
25906 CFLAGS="$CFLAGS -Werror"
25907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h. */
25909 void __attribute__((visibility("hidden"))) foo(void) { }
25911 main ()
25915 return 0;
25917 _ACEOF
25918 if ac_fn_c_try_compile "$LINENO"; then :
25919 libgfor_cv_have_attribute_visibility=yes
25920 else
25921 libgfor_cv_have_attribute_visibility=no
25923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25924 CFLAGS="$save_CFLAGS"
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25927 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
25928 if test $libgfor_cv_have_attribute_visibility = yes; then
25930 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25935 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25936 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25940 if test x$gcc_no_link = xyes; then
25941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25946 void foo(void) { }
25947 extern void bar(void) __attribute__((alias("foo")));
25949 main ()
25951 bar();
25953 return 0;
25955 _ACEOF
25956 if ac_fn_c_try_link "$LINENO"; then :
25957 libgfor_cv_have_attribute_alias=yes
25958 else
25959 libgfor_cv_have_attribute_alias=no
25961 rm -f core conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25965 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
25966 if test $libgfor_cv_have_attribute_alias = yes; then
25968 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
25972 # Check out sync builtins support.
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25975 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25976 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25977 $as_echo_n "(cached) " >&6
25978 else
25980 if test x$gcc_no_link = xyes; then
25981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25984 /* end confdefs.h. */
25985 int foovar = 0;
25987 main ()
25990 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25991 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25993 return 0;
25995 _ACEOF
25996 if ac_fn_c_try_link "$LINENO"; then :
25997 libgfor_cv_have_sync_fetch_and_add=yes
25998 else
25999 libgfor_cv_have_sync_fetch_and_add=no
26001 rm -f core conftest.err conftest.$ac_objext \
26002 conftest$ac_exeext conftest.$ac_ext
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26005 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26006 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26008 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26012 # Check out #pragma weak.
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26015 $as_echo_n "checking whether pragma weak works... " >&6; }
26016 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26020 gfor_save_CFLAGS="$CFLAGS"
26021 CFLAGS="$CFLAGS -Wunknown-pragmas"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h. */
26025 void foo (void);
26026 #pragma weak foo
26029 main ()
26031 if (foo) foo ();
26033 return 0;
26035 _ACEOF
26036 if ac_fn_c_try_compile "$LINENO"; then :
26037 libgfor_cv_have_pragma_weak=yes
26038 else
26039 libgfor_cv_have_pragma_weak=no
26041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26044 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26045 if test $libgfor_cv_have_pragma_weak = yes; then
26047 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26050 case "$host" in
26051 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26053 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26056 esac
26058 # Check out weakref support.
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26061 $as_echo_n "checking whether the target supports weakref... " >&6; }
26062 if test "${libgfor_cv_have_weakref+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26064 else
26066 save_CFLAGS="$CFLAGS"
26067 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26068 if test x$gcc_no_link = xyes; then
26069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26074 static int mytoto (int) __attribute__((__weakref__("toto")));
26077 main ()
26079 return (mytoto != 0);
26081 return 0;
26083 _ACEOF
26084 if ac_fn_c_try_link "$LINENO"; then :
26085 libgfor_cv_have_weakref=yes
26086 else
26087 libgfor_cv_have_weakref=no
26089 rm -f core conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
26091 CFLAGS="$save_CFLAGS"
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26094 $as_echo "$libgfor_cv_have_weakref" >&6; }
26095 if test $libgfor_cv_have_weakref = yes; then
26097 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26101 # Various other checks on target
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26104 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26105 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26109 if test "$cross_compiling" = yes; then :
26111 case "${target}" in
26112 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26113 *) libgfor_cv_have_unlink_open_file=yes;;
26114 esac
26115 else
26116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26117 /* end confdefs.h. */
26119 #include <errno.h>
26120 #include <fcntl.h>
26121 #include <unistd.h>
26122 #include <sys/stat.h>
26124 int main ()
26126 int fd;
26128 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26129 if (fd <= 0)
26130 return 0;
26131 if (unlink ("testfile") == -1)
26132 return 1;
26133 write (fd, "This is a test\n", 15);
26134 close (fd);
26136 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26137 return 0;
26138 else
26139 return 1;
26141 _ACEOF
26142 if ac_fn_c_try_run "$LINENO"; then :
26143 libgfor_cv_have_unlink_open_file=yes
26144 else
26145 libgfor_cv_have_unlink_open_file=no
26147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26148 conftest.$ac_objext conftest.beam conftest.$ac_ext
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26153 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26154 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26156 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26160 # Check whether line terminator is LF or CRLF
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26163 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26164 if test "${libgfor_cv_have_crlf+set}" = set; then :
26165 $as_echo_n "(cached) " >&6
26166 else
26168 if test "$cross_compiling" = yes; then :
26170 case "${target}" in
26171 *mingw*) libgfor_cv_have_crlf=yes ;;
26172 *) libgfor_cv_have_crlf=no;;
26173 esac
26174 else
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h. */
26178 /* This test program should exit with status 0 if system uses a CRLF as
26179 line terminator, and status 1 otherwise.
26180 Since it is used to check for mingw systems, and should return 0 in any
26181 other case, in case of a failure we will not use CRLF. */
26182 #include <sys/stat.h>
26183 #include <stdlib.h>
26184 #include <fcntl.h>
26185 #include <stdio.h>
26187 int main ()
26189 #ifndef O_BINARY
26190 exit(1);
26191 #else
26192 int fd, bytes;
26193 char buff[5];
26195 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26196 if (fd < 0)
26197 exit(1);
26198 if (write (fd, "\n", 1) < 0)
26199 perror ("write");
26201 close (fd);
26203 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26204 exit(1);
26205 bytes = read (fd, buff, 5);
26206 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26207 exit(0);
26208 else
26209 exit(1);
26210 #endif
26212 _ACEOF
26213 if ac_fn_c_try_run "$LINENO"; then :
26214 libgfor_cv_have_crlf=yes
26215 else
26216 libgfor_cv_have_crlf=no
26218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26219 conftest.$ac_objext conftest.beam conftest.$ac_ext
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26224 $as_echo "$libgfor_cv_have_crlf" >&6; }
26225 if test x"$libgfor_cv_have_crlf" = xyes; then
26227 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26231 # Check whether we support AVX extensions
26233 ac_save_CFLAGS="$CFLAGS"
26234 CFLAGS="-O2 -mavx"
26235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236 /* end confdefs.h. */
26238 void _mm256_zeroall (void)
26240 __builtin_ia32_vzeroall ();
26243 main ()
26247 return 0;
26249 _ACEOF
26250 if ac_fn_c_try_compile "$LINENO"; then :
26252 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 CFLAGS="$ac_save_CFLAGS"
26259 # Check wether we support AVX2 extensions
26261 ac_save_CFLAGS="$CFLAGS"
26262 CFLAGS="-O2 -mavx2"
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26266 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26267 __v4di
26268 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26270 return __builtin_ia32_andnotsi256 (__X, __Y);
26273 main ()
26277 return 0;
26279 _ACEOF
26280 if ac_fn_c_try_compile "$LINENO"; then :
26282 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286 CFLAGS="$ac_save_CFLAGS"
26289 # Check wether we support AVX512f extensions
26291 ac_save_CFLAGS="$CFLAGS"
26292 CFLAGS="-O2 -mavx512f"
26293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26294 /* end confdefs.h. */
26296 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26297 __m512d _mm512_add (__m512d a)
26299 return __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26302 main ()
26306 return 0;
26308 _ACEOF
26309 if ac_fn_c_try_compile "$LINENO"; then :
26311 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26315 CFLAGS="$ac_save_CFLAGS"
26318 cat >confcache <<\_ACEOF
26319 # This file is a shell script that caches the results of configure
26320 # tests run on this system so they can be shared between configure
26321 # scripts and configure runs, see configure's option --config-cache.
26322 # It is not useful on other systems. If it contains results you don't
26323 # want to keep, you may remove or edit it.
26325 # config.status only pays attention to the cache file if you give it
26326 # the --recheck option to rerun configure.
26328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26330 # following values.
26332 _ACEOF
26334 # The following way of writing the cache mishandles newlines in values,
26335 # but we know of no workaround that is simple, portable, and efficient.
26336 # So, we kill variables containing newlines.
26337 # Ultrix sh set writes to stderr and can't be redirected directly,
26338 # and sets the high bit in the cache file unless we assign to the vars.
26340 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26341 eval ac_val=\$$ac_var
26342 case $ac_val in #(
26343 *${as_nl}*)
26344 case $ac_var in #(
26345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26347 esac
26348 case $ac_var in #(
26349 _ | IFS | as_nl) ;; #(
26350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26351 *) { eval $ac_var=; unset $ac_var;} ;;
26352 esac ;;
26353 esac
26354 done
26356 (set) 2>&1 |
26357 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26358 *${as_nl}ac_space=\ *)
26359 # `set' does not quote correctly, so add quotes: double-quote
26360 # substitution turns \\\\ into \\, and sed turns \\ into \.
26361 sed -n \
26362 "s/'/'\\\\''/g;
26363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26364 ;; #(
26366 # `set' quotes correctly as required by POSIX, so do not add quotes.
26367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26369 esac |
26370 sort
26372 sed '
26373 /^ac_cv_env_/b end
26374 t clear
26375 :clear
26376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26377 t end
26378 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26379 :end' >>confcache
26380 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26381 if test -w "$cache_file"; then
26382 test "x$cache_file" != "x/dev/null" &&
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26384 $as_echo "$as_me: updating cache $cache_file" >&6;}
26385 cat confcache >$cache_file
26386 else
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26391 rm -f confcache
26393 if test ${multilib} = yes; then
26394 multilib_arg="--enable-multilib"
26395 else
26396 multilib_arg=
26399 # Write our Makefile and spec file.
26400 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26402 cat >confcache <<\_ACEOF
26403 # This file is a shell script that caches the results of configure
26404 # tests run on this system so they can be shared between configure
26405 # scripts and configure runs, see configure's option --config-cache.
26406 # It is not useful on other systems. If it contains results you don't
26407 # want to keep, you may remove or edit it.
26409 # config.status only pays attention to the cache file if you give it
26410 # the --recheck option to rerun configure.
26412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26414 # following values.
26416 _ACEOF
26418 # The following way of writing the cache mishandles newlines in values,
26419 # but we know of no workaround that is simple, portable, and efficient.
26420 # So, we kill variables containing newlines.
26421 # Ultrix sh set writes to stderr and can't be redirected directly,
26422 # and sets the high bit in the cache file unless we assign to the vars.
26424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26425 eval ac_val=\$$ac_var
26426 case $ac_val in #(
26427 *${as_nl}*)
26428 case $ac_var in #(
26429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26431 esac
26432 case $ac_var in #(
26433 _ | IFS | as_nl) ;; #(
26434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26435 *) { eval $ac_var=; unset $ac_var;} ;;
26436 esac ;;
26437 esac
26438 done
26440 (set) 2>&1 |
26441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26442 *${as_nl}ac_space=\ *)
26443 # `set' does not quote correctly, so add quotes: double-quote
26444 # substitution turns \\\\ into \\, and sed turns \\ into \.
26445 sed -n \
26446 "s/'/'\\\\''/g;
26447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26448 ;; #(
26450 # `set' quotes correctly as required by POSIX, so do not add quotes.
26451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26453 esac |
26454 sort
26456 sed '
26457 /^ac_cv_env_/b end
26458 t clear
26459 :clear
26460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26461 t end
26462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26463 :end' >>confcache
26464 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26465 if test -w "$cache_file"; then
26466 test "x$cache_file" != "x/dev/null" &&
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26468 $as_echo "$as_me: updating cache $cache_file" >&6;}
26469 cat confcache >$cache_file
26470 else
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26472 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26475 rm -f confcache
26477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26478 # Let make expand exec_prefix.
26479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26481 DEFS=-DHAVE_CONFIG_H
26483 ac_libobjs=
26484 ac_ltlibobjs=
26485 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26486 # 1. Remove the extension, and $U if already installed.
26487 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26488 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26489 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26490 # will be set to the directory where LIBOBJS objects are built.
26491 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26492 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26493 done
26494 LIBOBJS=$ac_libobjs
26496 LTLIBOBJS=$ac_ltlibobjs
26499 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26500 as_fn_error "conditional \"onestep\" was never defined.
26501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26503 if test -n "$EXEEXT"; then
26504 am__EXEEXT_TRUE=
26505 am__EXEEXT_FALSE='#'
26506 else
26507 am__EXEEXT_TRUE='#'
26508 am__EXEEXT_FALSE=
26511 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26512 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26516 as_fn_error "conditional \"AMDEP\" was never defined.
26517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26520 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26523 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26524 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26527 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26528 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26531 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26532 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26535 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26536 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26539 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26540 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26543 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26544 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26547 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26548 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26551 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26552 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26556 : ${CONFIG_STATUS=./config.status}
26557 ac_write_fail=0
26558 ac_clean_files_save=$ac_clean_files
26559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26561 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26562 as_write_fail=0
26563 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26564 #! $SHELL
26565 # Generated by $as_me.
26566 # Run this file to recreate the current configuration.
26567 # Compiler output produced by configure, useful for debugging
26568 # configure, is in config.log if it exists.
26570 debug=false
26571 ac_cs_recheck=false
26572 ac_cs_silent=false
26574 SHELL=\${CONFIG_SHELL-$SHELL}
26575 export SHELL
26576 _ASEOF
26577 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26578 ## -------------------- ##
26579 ## M4sh Initialization. ##
26580 ## -------------------- ##
26582 # Be more Bourne compatible
26583 DUALCASE=1; export DUALCASE # for MKS sh
26584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26585 emulate sh
26586 NULLCMD=:
26587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26588 # is contrary to our usage. Disable this feature.
26589 alias -g '${1+"$@"}'='"$@"'
26590 setopt NO_GLOB_SUBST
26591 else
26592 case `(set -o) 2>/dev/null` in #(
26593 *posix*) :
26594 set -o posix ;; #(
26595 *) :
26597 esac
26601 as_nl='
26603 export as_nl
26604 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26605 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26608 # Prefer a ksh shell builtin over an external printf program on Solaris,
26609 # but without wasting forks for bash or zsh.
26610 if test -z "$BASH_VERSION$ZSH_VERSION" \
26611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26612 as_echo='print -r --'
26613 as_echo_n='print -rn --'
26614 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26615 as_echo='printf %s\n'
26616 as_echo_n='printf %s'
26617 else
26618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26620 as_echo_n='/usr/ucb/echo -n'
26621 else
26622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26623 as_echo_n_body='eval
26624 arg=$1;
26625 case $arg in #(
26626 *"$as_nl"*)
26627 expr "X$arg" : "X\\(.*\\)$as_nl";
26628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26629 esac;
26630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26632 export as_echo_n_body
26633 as_echo_n='sh -c $as_echo_n_body as_echo'
26635 export as_echo_body
26636 as_echo='sh -c $as_echo_body as_echo'
26639 # The user is always right.
26640 if test "${PATH_SEPARATOR+set}" != set; then
26641 PATH_SEPARATOR=:
26642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26644 PATH_SEPARATOR=';'
26649 # IFS
26650 # We need space, tab and new line, in precisely that order. Quoting is
26651 # there to prevent editors from complaining about space-tab.
26652 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26653 # splitting by setting IFS to empty value.)
26654 IFS=" "" $as_nl"
26656 # Find who we are. Look in the path if we contain no directory separator.
26657 case $0 in #((
26658 *[\\/]* ) as_myself=$0 ;;
26659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26660 for as_dir in $PATH
26662 IFS=$as_save_IFS
26663 test -z "$as_dir" && as_dir=.
26664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26665 done
26666 IFS=$as_save_IFS
26669 esac
26670 # We did not find ourselves, most probably we were run as `sh COMMAND'
26671 # in which case we are not to be found in the path.
26672 if test "x$as_myself" = x; then
26673 as_myself=$0
26675 if test ! -f "$as_myself"; then
26676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26677 exit 1
26680 # Unset variables that we do not need and which cause bugs (e.g. in
26681 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26682 # suppresses any "Segmentation fault" message there. '((' could
26683 # trigger a bug in pdksh 5.2.14.
26684 for as_var in BASH_ENV ENV MAIL MAILPATH
26685 do eval test x\${$as_var+set} = xset \
26686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26687 done
26688 PS1='$ '
26689 PS2='> '
26690 PS4='+ '
26692 # NLS nuisances.
26693 LC_ALL=C
26694 export LC_ALL
26695 LANGUAGE=C
26696 export LANGUAGE
26698 # CDPATH.
26699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26702 # as_fn_error ERROR [LINENO LOG_FD]
26703 # ---------------------------------
26704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26706 # script with status $?, using 1 if that was 0.
26707 as_fn_error ()
26709 as_status=$?; test $as_status -eq 0 && as_status=1
26710 if test "$3"; then
26711 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26714 $as_echo "$as_me: error: $1" >&2
26715 as_fn_exit $as_status
26716 } # as_fn_error
26719 # as_fn_set_status STATUS
26720 # -----------------------
26721 # Set $? to STATUS, without forking.
26722 as_fn_set_status ()
26724 return $1
26725 } # as_fn_set_status
26727 # as_fn_exit STATUS
26728 # -----------------
26729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26730 as_fn_exit ()
26732 set +e
26733 as_fn_set_status $1
26734 exit $1
26735 } # as_fn_exit
26737 # as_fn_unset VAR
26738 # ---------------
26739 # Portably unset VAR.
26740 as_fn_unset ()
26742 { eval $1=; unset $1;}
26744 as_unset=as_fn_unset
26745 # as_fn_append VAR VALUE
26746 # ----------------------
26747 # Append the text in VALUE to the end of the definition contained in VAR. Take
26748 # advantage of any shell optimizations that allow amortized linear growth over
26749 # repeated appends, instead of the typical quadratic growth present in naive
26750 # implementations.
26751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26752 eval 'as_fn_append ()
26754 eval $1+=\$2
26756 else
26757 as_fn_append ()
26759 eval $1=\$$1\$2
26761 fi # as_fn_append
26763 # as_fn_arith ARG...
26764 # ------------------
26765 # Perform arithmetic evaluation on the ARGs, and store the result in the
26766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26767 # must be portable across $(()) and expr.
26768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26769 eval 'as_fn_arith ()
26771 as_val=$(( $* ))
26773 else
26774 as_fn_arith ()
26776 as_val=`expr "$@" || test $? -eq 1`
26778 fi # as_fn_arith
26781 if expr a : '\(a\)' >/dev/null 2>&1 &&
26782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26783 as_expr=expr
26784 else
26785 as_expr=false
26788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26789 as_basename=basename
26790 else
26791 as_basename=false
26794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26795 as_dirname=dirname
26796 else
26797 as_dirname=false
26800 as_me=`$as_basename -- "$0" ||
26801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26802 X"$0" : 'X\(//\)$' \| \
26803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26804 $as_echo X/"$0" |
26805 sed '/^.*\/\([^/][^/]*\)\/*$/{
26806 s//\1/
26809 /^X\/\(\/\/\)$/{
26810 s//\1/
26813 /^X\/\(\/\).*/{
26814 s//\1/
26817 s/.*/./; q'`
26819 # Avoid depending upon Character Ranges.
26820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26823 as_cr_digits='0123456789'
26824 as_cr_alnum=$as_cr_Letters$as_cr_digits
26826 ECHO_C= ECHO_N= ECHO_T=
26827 case `echo -n x` in #(((((
26828 -n*)
26829 case `echo 'xy\c'` in
26830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26831 xy) ECHO_C='\c';;
26832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26833 ECHO_T=' ';;
26834 esac;;
26836 ECHO_N='-n';;
26837 esac
26839 rm -f conf$$ conf$$.exe conf$$.file
26840 if test -d conf$$.dir; then
26841 rm -f conf$$.dir/conf$$.file
26842 else
26843 rm -f conf$$.dir
26844 mkdir conf$$.dir 2>/dev/null
26846 if (echo >conf$$.file) 2>/dev/null; then
26847 if ln -s conf$$.file conf$$ 2>/dev/null; then
26848 as_ln_s='ln -s'
26849 # ... but there are two gotchas:
26850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26852 # In both cases, we have to default to `cp -p'.
26853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26854 as_ln_s='cp -p'
26855 elif ln conf$$.file conf$$ 2>/dev/null; then
26856 as_ln_s=ln
26857 else
26858 as_ln_s='cp -p'
26860 else
26861 as_ln_s='cp -p'
26863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26864 rmdir conf$$.dir 2>/dev/null
26867 # as_fn_mkdir_p
26868 # -------------
26869 # Create "$as_dir" as a directory, including parents if necessary.
26870 as_fn_mkdir_p ()
26873 case $as_dir in #(
26874 -*) as_dir=./$as_dir;;
26875 esac
26876 test -d "$as_dir" || eval $as_mkdir_p || {
26877 as_dirs=
26878 while :; do
26879 case $as_dir in #(
26880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26881 *) as_qdir=$as_dir;;
26882 esac
26883 as_dirs="'$as_qdir' $as_dirs"
26884 as_dir=`$as_dirname -- "$as_dir" ||
26885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26886 X"$as_dir" : 'X\(//\)[^/]' \| \
26887 X"$as_dir" : 'X\(//\)$' \| \
26888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26889 $as_echo X"$as_dir" |
26890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26891 s//\1/
26894 /^X\(\/\/\)[^/].*/{
26895 s//\1/
26898 /^X\(\/\/\)$/{
26899 s//\1/
26902 /^X\(\/\).*/{
26903 s//\1/
26906 s/.*/./; q'`
26907 test -d "$as_dir" && break
26908 done
26909 test -z "$as_dirs" || eval "mkdir $as_dirs"
26910 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26913 } # as_fn_mkdir_p
26914 if mkdir -p . 2>/dev/null; then
26915 as_mkdir_p='mkdir -p "$as_dir"'
26916 else
26917 test -d ./-p && rmdir ./-p
26918 as_mkdir_p=false
26921 if test -x / >/dev/null 2>&1; then
26922 as_test_x='test -x'
26923 else
26924 if ls -dL / >/dev/null 2>&1; then
26925 as_ls_L_option=L
26926 else
26927 as_ls_L_option=
26929 as_test_x='
26930 eval sh -c '\''
26931 if test -d "$1"; then
26932 test -d "$1/.";
26933 else
26934 case $1 in #(
26935 -*)set "./$1";;
26936 esac;
26937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26938 ???[sx]*):;;*)false;;esac;fi
26939 '\'' sh
26942 as_executable_p=$as_test_x
26944 # Sed expression to map a string onto a valid CPP name.
26945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26947 # Sed expression to map a string onto a valid variable name.
26948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26951 exec 6>&1
26952 ## ----------------------------------- ##
26953 ## Main body of $CONFIG_STATUS script. ##
26954 ## ----------------------------------- ##
26955 _ASEOF
26956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26959 # Save the log message, to keep $0 and so on meaningful, and to
26960 # report actual input values of CONFIG_FILES etc. instead of their
26961 # values after options handling.
26962 ac_log="
26963 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
26964 generated by GNU Autoconf 2.64. Invocation command line was
26966 CONFIG_FILES = $CONFIG_FILES
26967 CONFIG_HEADERS = $CONFIG_HEADERS
26968 CONFIG_LINKS = $CONFIG_LINKS
26969 CONFIG_COMMANDS = $CONFIG_COMMANDS
26970 $ $0 $@
26972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26975 _ACEOF
26977 case $ac_config_files in *"
26978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26979 esac
26981 case $ac_config_headers in *"
26982 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26983 esac
26986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26987 # Files that config.status was made for.
26988 config_files="$ac_config_files"
26989 config_headers="$ac_config_headers"
26990 config_commands="$ac_config_commands"
26992 _ACEOF
26994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26995 ac_cs_usage="\
26996 \`$as_me' instantiates files and other configuration actions
26997 from templates according to the current configuration. Unless the files
26998 and actions are specified as TAGs, all are instantiated by default.
27000 Usage: $0 [OPTION]... [TAG]...
27002 -h, --help print this help, then exit
27003 -V, --version print version number and configuration settings, then exit
27004 -q, --quiet, --silent
27005 do not print progress messages
27006 -d, --debug don't remove temporary files
27007 --recheck update $as_me by reconfiguring in the same conditions
27008 --file=FILE[:TEMPLATE]
27009 instantiate the configuration file FILE
27010 --header=FILE[:TEMPLATE]
27011 instantiate the configuration header FILE
27013 Configuration files:
27014 $config_files
27016 Configuration headers:
27017 $config_headers
27019 Configuration commands:
27020 $config_commands
27022 Report bugs to the package provider.
27023 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27024 General help using GNU software: <http://www.gnu.org/gethelp/>."
27026 _ACEOF
27027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27028 ac_cs_version="\\
27029 GNU Fortran Runtime Library config.status 0.3
27030 configured by $0, generated by GNU Autoconf 2.64,
27031 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27033 Copyright (C) 2009 Free Software Foundation, Inc.
27034 This config.status script is free software; the Free Software Foundation
27035 gives unlimited permission to copy, distribute and modify it."
27037 ac_pwd='$ac_pwd'
27038 srcdir='$srcdir'
27039 INSTALL='$INSTALL'
27040 MKDIR_P='$MKDIR_P'
27041 AWK='$AWK'
27042 test -n "\$AWK" || AWK=awk
27043 _ACEOF
27045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27046 # The default lists apply if the user does not specify any file.
27047 ac_need_defaults=:
27048 while test $# != 0
27050 case $1 in
27051 --*=*)
27052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27054 ac_shift=:
27057 ac_option=$1
27058 ac_optarg=$2
27059 ac_shift=shift
27061 esac
27063 case $ac_option in
27064 # Handling of the options.
27065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27066 ac_cs_recheck=: ;;
27067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27068 $as_echo "$ac_cs_version"; exit ;;
27069 --debug | --debu | --deb | --de | --d | -d )
27070 debug=: ;;
27071 --file | --fil | --fi | --f )
27072 $ac_shift
27073 case $ac_optarg in
27074 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27075 esac
27076 as_fn_append CONFIG_FILES " '$ac_optarg'"
27077 ac_need_defaults=false;;
27078 --header | --heade | --head | --hea )
27079 $ac_shift
27080 case $ac_optarg in
27081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27082 esac
27083 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27084 ac_need_defaults=false;;
27085 --he | --h)
27086 # Conflict between --help and --header
27087 as_fn_error "ambiguous option: \`$1'
27088 Try \`$0 --help' for more information.";;
27089 --help | --hel | -h )
27090 $as_echo "$ac_cs_usage"; exit ;;
27091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27093 ac_cs_silent=: ;;
27095 # This is an error.
27096 -*) as_fn_error "unrecognized option: \`$1'
27097 Try \`$0 --help' for more information." ;;
27099 *) as_fn_append ac_config_targets " $1"
27100 ac_need_defaults=false ;;
27102 esac
27103 shift
27104 done
27106 ac_configure_extra_args=
27108 if $ac_cs_silent; then
27109 exec 6>/dev/null
27110 ac_configure_extra_args="$ac_configure_extra_args --silent"
27113 _ACEOF
27114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27115 if \$ac_cs_recheck; then
27116 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27117 shift
27118 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27119 CONFIG_SHELL='$SHELL'
27120 export CONFIG_SHELL
27121 exec "\$@"
27124 _ACEOF
27125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27126 exec 5>>config.log
27128 echo
27129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27130 ## Running $as_me. ##
27131 _ASBOX
27132 $as_echo "$ac_log"
27133 } >&5
27135 _ACEOF
27136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27138 # INIT-COMMANDS
27141 srcdir="$srcdir"
27142 host="$host"
27143 target="$target"
27144 with_multisubdir="$with_multisubdir"
27145 with_multisrctop="$with_multisrctop"
27146 with_target_subdir="$with_target_subdir"
27147 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27148 multi_basedir="$multi_basedir"
27149 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27150 CC="$CC"
27151 CXX="$CXX"
27152 GFORTRAN="$GFORTRAN"
27153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27156 # The HP-UX ksh and POSIX shell print the target directory to stdout
27157 # if CDPATH is set.
27158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27160 sed_quote_subst='$sed_quote_subst'
27161 double_quote_subst='$double_quote_subst'
27162 delay_variable_subst='$delay_variable_subst'
27163 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27164 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27165 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27166 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27167 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27168 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27169 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27170 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27171 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27172 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27173 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27174 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27175 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27176 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27183 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27184 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27185 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27186 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27187 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27188 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27189 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27190 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27191 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27192 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27193 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27194 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27195 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27196 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27197 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27198 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27199 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27200 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27201 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27202 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27203 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27204 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27205 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27206 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27207 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27208 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27209 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27210 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27211 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"`'
27212 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27213 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27214 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27215 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27217 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27218 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27219 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27220 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27221 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27222 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27223 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27224 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27225 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27226 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27227 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27228 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27229 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27230 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27231 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27232 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27233 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27234 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27235 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27236 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27237 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27238 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27239 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27240 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27241 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27242 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27243 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27244 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27245 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27246 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27247 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27248 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27249 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27250 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27251 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27252 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27258 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27259 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27260 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27261 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27262 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27263 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27264 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27265 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27266 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27267 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27268 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27269 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27270 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27271 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27272 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27273 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27274 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27275 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27276 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27277 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27278 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27279 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27280 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27281 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27282 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27283 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27284 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27285 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27286 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27287 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27288 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27289 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27290 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27291 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27292 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27293 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27294 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27295 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27296 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27297 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27298 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27299 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27300 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27301 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27302 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27303 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27304 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27305 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27306 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27307 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27308 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27309 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27310 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27311 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27312 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27313 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27314 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27315 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27316 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27317 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27318 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27319 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27320 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27321 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27322 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27323 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27324 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27325 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27326 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27327 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27328 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27329 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27330 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27331 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27332 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27333 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27334 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27335 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27336 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27337 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27339 LTCC='$LTCC'
27340 LTCFLAGS='$LTCFLAGS'
27341 compiler='$compiler_DEFAULT'
27343 # A function that is used when there is no print builtin or printf.
27344 func_fallback_echo ()
27346 eval 'cat <<_LTECHO_EOF
27348 _LTECHO_EOF'
27351 # Quote evaled strings.
27352 for var in SED \
27353 GREP \
27354 EGREP \
27355 FGREP \
27356 SHELL \
27357 ECHO \
27358 LD \
27359 NM \
27360 LN_S \
27361 lt_SP2NL \
27362 lt_NL2SP \
27363 reload_flag \
27364 OBJDUMP \
27365 deplibs_check_method \
27366 file_magic_cmd \
27367 AR \
27368 AR_FLAGS \
27369 STRIP \
27370 RANLIB \
27371 CC \
27372 CFLAGS \
27373 compiler \
27374 lt_cv_sys_global_symbol_pipe \
27375 lt_cv_sys_global_symbol_to_cdecl \
27376 lt_cv_sys_global_symbol_to_c_name_address \
27377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27378 lt_prog_compiler_no_builtin_flag \
27379 lt_prog_compiler_wl \
27380 lt_prog_compiler_pic \
27381 lt_prog_compiler_static \
27382 lt_cv_prog_compiler_c_o \
27383 need_locks \
27384 DSYMUTIL \
27385 NMEDIT \
27386 LIPO \
27387 OTOOL \
27388 OTOOL64 \
27389 shrext_cmds \
27390 export_dynamic_flag_spec \
27391 whole_archive_flag_spec \
27392 compiler_needs_object \
27393 with_gnu_ld \
27394 allow_undefined_flag \
27395 no_undefined_flag \
27396 hardcode_libdir_flag_spec \
27397 hardcode_libdir_flag_spec_ld \
27398 hardcode_libdir_separator \
27399 fix_srcfile_path \
27400 exclude_expsyms \
27401 include_expsyms \
27402 file_list_spec \
27403 variables_saved_for_relink \
27404 libname_spec \
27405 library_names_spec \
27406 soname_spec \
27407 install_override_mode \
27408 finish_eval \
27409 old_striplib \
27410 striplib \
27411 compiler_lib_search_dirs \
27412 predep_objects \
27413 postdep_objects \
27414 predeps \
27415 postdeps \
27416 compiler_lib_search_path \
27417 LD_FC \
27418 reload_flag_FC \
27419 compiler_FC \
27420 lt_prog_compiler_no_builtin_flag_FC \
27421 lt_prog_compiler_wl_FC \
27422 lt_prog_compiler_pic_FC \
27423 lt_prog_compiler_static_FC \
27424 lt_cv_prog_compiler_c_o_FC \
27425 export_dynamic_flag_spec_FC \
27426 whole_archive_flag_spec_FC \
27427 compiler_needs_object_FC \
27428 with_gnu_ld_FC \
27429 allow_undefined_flag_FC \
27430 no_undefined_flag_FC \
27431 hardcode_libdir_flag_spec_FC \
27432 hardcode_libdir_flag_spec_ld_FC \
27433 hardcode_libdir_separator_FC \
27434 fix_srcfile_path_FC \
27435 exclude_expsyms_FC \
27436 include_expsyms_FC \
27437 file_list_spec_FC \
27438 compiler_lib_search_dirs_FC \
27439 predep_objects_FC \
27440 postdep_objects_FC \
27441 predeps_FC \
27442 postdeps_FC \
27443 compiler_lib_search_path_FC; do
27444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27445 *[\\\\\\\`\\"\\\$]*)
27446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27451 esac
27452 done
27454 # Double-quote double-evaled strings.
27455 for var in reload_cmds \
27456 old_postinstall_cmds \
27457 old_postuninstall_cmds \
27458 old_archive_cmds \
27459 extract_expsyms_cmds \
27460 old_archive_from_new_cmds \
27461 old_archive_from_expsyms_cmds \
27462 archive_cmds \
27463 archive_expsym_cmds \
27464 module_cmds \
27465 module_expsym_cmds \
27466 export_symbols_cmds \
27467 prelink_cmds \
27468 postinstall_cmds \
27469 postuninstall_cmds \
27470 finish_cmds \
27471 sys_lib_search_path_spec \
27472 sys_lib_dlsearch_path_spec \
27473 reload_cmds_FC \
27474 old_archive_cmds_FC \
27475 old_archive_from_new_cmds_FC \
27476 old_archive_from_expsyms_cmds_FC \
27477 archive_cmds_FC \
27478 archive_expsym_cmds_FC \
27479 module_cmds_FC \
27480 module_expsym_cmds_FC \
27481 export_symbols_cmds_FC \
27482 prelink_cmds_FC; do
27483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27484 *[\\\\\\\`\\"\\\$]*)
27485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27490 esac
27491 done
27493 ac_aux_dir='$ac_aux_dir'
27494 xsi_shell='$xsi_shell'
27495 lt_shell_append='$lt_shell_append'
27497 # See if we are running on zsh, and set the options which allow our
27498 # commands through without removal of \ escapes INIT.
27499 if test -n "\${ZSH_VERSION+set}" ; then
27500 setopt NO_GLOB_SUBST
27504 PACKAGE='$PACKAGE'
27505 VERSION='$VERSION'
27506 TIMESTAMP='$TIMESTAMP'
27507 RM='$RM'
27508 ofile='$ofile'
27515 GCC="$GCC"
27516 CC="$CC"
27517 acx_cv_header_stdint="$acx_cv_header_stdint"
27518 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27519 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27520 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27521 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27522 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27523 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27524 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27525 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27526 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27527 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27528 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27529 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27530 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27533 _ACEOF
27535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27537 # Handling of arguments.
27538 for ac_config_target in $ac_config_targets
27540 case $ac_config_target in
27541 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27542 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27543 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27544 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27545 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27546 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27547 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27549 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27550 esac
27551 done
27554 # If the user did not use the arguments to specify the items to instantiate,
27555 # then the envvar interface is used. Set only those that are not.
27556 # We use the long form for the default assignment because of an extremely
27557 # bizarre bug on SunOS 4.1.3.
27558 if $ac_need_defaults; then
27559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27564 # Have a temporary directory for convenience. Make it in the build tree
27565 # simply because there is no reason against having it here, and in addition,
27566 # creating and moving files from /tmp can sometimes cause problems.
27567 # Hook for its removal unless debugging.
27568 # Note that there is a small window in which the directory will not be cleaned:
27569 # after its creation but before its name has been assigned to `$tmp'.
27570 $debug ||
27572 tmp=
27573 trap 'exit_status=$?
27574 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27576 trap 'as_fn_exit 1' 1 2 13 15
27578 # Create a (secure) tmp directory for tmp files.
27581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27582 test -n "$tmp" && test -d "$tmp"
27583 } ||
27585 tmp=./conf$$-$RANDOM
27586 (umask 077 && mkdir "$tmp")
27587 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27589 # Set up the scripts for CONFIG_FILES section.
27590 # No need to generate them if there are no CONFIG_FILES.
27591 # This happens for instance with `./config.status config.h'.
27592 if test -n "$CONFIG_FILES"; then
27595 ac_cr=`echo X | tr X '\015'`
27596 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27597 # But we know of no other shell where ac_cr would be empty at this
27598 # point, so we can use a bashism as a fallback.
27599 if test "x$ac_cr" = x; then
27600 eval ac_cr=\$\'\\r\'
27602 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27603 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27604 ac_cs_awk_cr='\r'
27605 else
27606 ac_cs_awk_cr=$ac_cr
27609 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27610 _ACEOF
27614 echo "cat >conf$$subs.awk <<_ACEOF" &&
27615 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27616 echo "_ACEOF"
27617 } >conf$$subs.sh ||
27618 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27619 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27620 ac_delim='%!_!# '
27621 for ac_last_try in false false false false false :; do
27622 . ./conf$$subs.sh ||
27623 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27625 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27626 if test $ac_delim_n = $ac_delim_num; then
27627 break
27628 elif $ac_last_try; then
27629 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27630 else
27631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27633 done
27634 rm -f conf$$subs.sh
27636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27637 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27638 _ACEOF
27639 sed -n '
27641 s/^/S["/; s/!.*/"]=/
27644 s/^[^!]*!//
27645 :repl
27646 t repl
27647 s/'"$ac_delim"'$//
27648 t delim
27651 s/\(.\{148\}\).*/\1/
27652 t more1
27653 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27656 b repl
27657 :more1
27658 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27661 s/.\{148\}//
27662 t nl
27663 :delim
27665 s/\(.\{148\}\).*/\1/
27666 t more2
27667 s/["\\]/\\&/g; s/^/"/; s/$/"/
27670 :more2
27671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27674 s/.\{148\}//
27675 t delim
27676 ' <conf$$subs.awk | sed '
27677 /^[^""]/{
27679 s/\n//
27681 ' >>$CONFIG_STATUS || ac_write_fail=1
27682 rm -f conf$$subs.awk
27683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27684 _ACAWK
27685 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27686 for (key in S) S_is_set[key] = 1
27687 FS = "\a"
27691 line = $ 0
27692 nfields = split(line, field, "@")
27693 substed = 0
27694 len = length(field[1])
27695 for (i = 2; i < nfields; i++) {
27696 key = field[i]
27697 keylen = length(key)
27698 if (S_is_set[key]) {
27699 value = S[key]
27700 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27701 len += length(value) + length(field[++i])
27702 substed = 1
27703 } else
27704 len += 1 + keylen
27707 print line
27710 _ACAWK
27711 _ACEOF
27712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27713 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27714 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27715 else
27717 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27718 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27719 _ACEOF
27721 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27722 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27723 # trailing colons and then remove the whole line if VPATH becomes empty
27724 # (actually we leave an empty line to preserve line numbers).
27725 if test "x$srcdir" = x.; then
27726 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27727 s/:*\$(srcdir):*/:/
27728 s/:*\${srcdir}:*/:/
27729 s/:*@srcdir@:*/:/
27730 s/^\([^=]*=[ ]*\):*/\1/
27731 s/:*$//
27732 s/^[^=]*=[ ]*$//
27736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27737 fi # test -n "$CONFIG_FILES"
27739 # Set up the scripts for CONFIG_HEADERS section.
27740 # No need to generate them if there are no CONFIG_HEADERS.
27741 # This happens for instance with `./config.status Makefile'.
27742 if test -n "$CONFIG_HEADERS"; then
27743 cat >"$tmp/defines.awk" <<\_ACAWK ||
27744 BEGIN {
27745 _ACEOF
27747 # Transform confdefs.h into an awk script `defines.awk', embedded as
27748 # here-document in config.status, that substitutes the proper values into
27749 # config.h.in to produce config.h.
27751 # Create a delimiter string that does not exist in confdefs.h, to ease
27752 # handling of long lines.
27753 ac_delim='%!_!# '
27754 for ac_last_try in false false :; do
27755 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27756 if test -z "$ac_t"; then
27757 break
27758 elif $ac_last_try; then
27759 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27760 else
27761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27763 done
27765 # For the awk script, D is an array of macro values keyed by name,
27766 # likewise P contains macro parameters if any. Preserve backslash
27767 # newline sequences.
27769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27770 sed -n '
27771 s/.\{148\}/&'"$ac_delim"'/g
27772 t rset
27773 :rset
27774 s/^[ ]*#[ ]*define[ ][ ]*/ /
27775 t def
27777 :def
27778 s/\\$//
27779 t bsnl
27780 s/["\\]/\\&/g
27781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27782 D["\1"]=" \3"/p
27783 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27785 :bsnl
27786 s/["\\]/\\&/g
27787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27788 D["\1"]=" \3\\\\\\n"\\/p
27789 t cont
27790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27791 t cont
27793 :cont
27795 s/.\{148\}/&'"$ac_delim"'/g
27796 t clear
27797 :clear
27798 s/\\$//
27799 t bsnlc
27800 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27802 :bsnlc
27803 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27804 b cont
27805 ' <confdefs.h | sed '
27806 s/'"$ac_delim"'/"\\\
27807 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27810 for (key in D) D_is_set[key] = 1
27811 FS = "\a"
27813 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27814 line = \$ 0
27815 split(line, arg, " ")
27816 if (arg[1] == "#") {
27817 defundef = arg[2]
27818 mac1 = arg[3]
27819 } else {
27820 defundef = substr(arg[1], 2)
27821 mac1 = arg[2]
27823 split(mac1, mac2, "(") #)
27824 macro = mac2[1]
27825 prefix = substr(line, 1, index(line, defundef) - 1)
27826 if (D_is_set[macro]) {
27827 # Preserve the white space surrounding the "#".
27828 print prefix "define", macro P[macro] D[macro]
27829 next
27830 } else {
27831 # Replace #undef with comments. This is necessary, for example,
27832 # in the case of _POSIX_SOURCE, which is predefined and required
27833 # on some systems where configure will not decide to define it.
27834 if (defundef == "undef") {
27835 print "/*", prefix defundef, macro, "*/"
27836 next
27840 { print }
27841 _ACAWK
27842 _ACEOF
27843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27844 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27845 fi # test -n "$CONFIG_HEADERS"
27848 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27849 shift
27850 for ac_tag
27852 case $ac_tag in
27853 :[FHLC]) ac_mode=$ac_tag; continue;;
27854 esac
27855 case $ac_mode$ac_tag in
27856 :[FHL]*:*);;
27857 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27858 :[FH]-) ac_tag=-:-;;
27859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27860 esac
27861 ac_save_IFS=$IFS
27862 IFS=:
27863 set x $ac_tag
27864 IFS=$ac_save_IFS
27865 shift
27866 ac_file=$1
27867 shift
27869 case $ac_mode in
27870 :L) ac_source=$1;;
27871 :[FH])
27872 ac_file_inputs=
27873 for ac_f
27875 case $ac_f in
27876 -) ac_f="$tmp/stdin";;
27877 *) # Look for the file first in the build tree, then in the source tree
27878 # (if the path is not absolute). The absolute path cannot be DOS-style,
27879 # because $ac_f cannot contain `:'.
27880 test -f "$ac_f" ||
27881 case $ac_f in
27882 [\\/$]*) false;;
27883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27884 esac ||
27885 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27886 esac
27887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27888 as_fn_append ac_file_inputs " '$ac_f'"
27889 done
27891 # Let's still pretend it is `configure' which instantiates (i.e., don't
27892 # use $as_me), people would be surprised to read:
27893 # /* config.h. Generated by config.status. */
27894 configure_input='Generated from '`
27895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27896 `' by configure.'
27897 if test x"$ac_file" != x-; then
27898 configure_input="$ac_file. $configure_input"
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27900 $as_echo "$as_me: creating $ac_file" >&6;}
27902 # Neutralize special characters interpreted by sed in replacement strings.
27903 case $configure_input in #(
27904 *\&* | *\|* | *\\* )
27905 ac_sed_conf_input=`$as_echo "$configure_input" |
27906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27907 *) ac_sed_conf_input=$configure_input;;
27908 esac
27910 case $ac_tag in
27911 *:-:* | *:-) cat >"$tmp/stdin" \
27912 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27913 esac
27915 esac
27917 ac_dir=`$as_dirname -- "$ac_file" ||
27918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27919 X"$ac_file" : 'X\(//\)[^/]' \| \
27920 X"$ac_file" : 'X\(//\)$' \| \
27921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27922 $as_echo X"$ac_file" |
27923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27924 s//\1/
27927 /^X\(\/\/\)[^/].*/{
27928 s//\1/
27931 /^X\(\/\/\)$/{
27932 s//\1/
27935 /^X\(\/\).*/{
27936 s//\1/
27939 s/.*/./; q'`
27940 as_dir="$ac_dir"; as_fn_mkdir_p
27941 ac_builddir=.
27943 case "$ac_dir" in
27944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27947 # A ".." for each directory in $ac_dir_suffix.
27948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27949 case $ac_top_builddir_sub in
27950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27952 esac ;;
27953 esac
27954 ac_abs_top_builddir=$ac_pwd
27955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27956 # for backward compatibility:
27957 ac_top_builddir=$ac_top_build_prefix
27959 case $srcdir in
27960 .) # We are building in place.
27961 ac_srcdir=.
27962 ac_top_srcdir=$ac_top_builddir_sub
27963 ac_abs_top_srcdir=$ac_pwd ;;
27964 [\\/]* | ?:[\\/]* ) # Absolute name.
27965 ac_srcdir=$srcdir$ac_dir_suffix;
27966 ac_top_srcdir=$srcdir
27967 ac_abs_top_srcdir=$srcdir ;;
27968 *) # Relative name.
27969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27970 ac_top_srcdir=$ac_top_build_prefix$srcdir
27971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27972 esac
27973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27976 case $ac_mode in
27979 # CONFIG_FILE
27982 case $INSTALL in
27983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27985 esac
27986 ac_MKDIR_P=$MKDIR_P
27987 case $MKDIR_P in
27988 [\\/$]* | ?:[\\/]* ) ;;
27989 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27990 esac
27991 _ACEOF
27993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27994 # If the template does not know about datarootdir, expand it.
27995 # FIXME: This hack should be removed a few years after 2.60.
27996 ac_datarootdir_hack=; ac_datarootdir_seen=
27997 ac_sed_dataroot='
27998 /datarootdir/ {
28002 /@datadir@/p
28003 /@docdir@/p
28004 /@infodir@/p
28005 /@localedir@/p
28006 /@mandir@/p'
28007 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28008 *datarootdir*) ac_datarootdir_seen=yes;;
28009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28011 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28012 _ACEOF
28013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28014 ac_datarootdir_hack='
28015 s&@datadir@&$datadir&g
28016 s&@docdir@&$docdir&g
28017 s&@infodir@&$infodir&g
28018 s&@localedir@&$localedir&g
28019 s&@mandir@&$mandir&g
28020 s&\\\${datarootdir}&$datarootdir&g' ;;
28021 esac
28022 _ACEOF
28024 # Neutralize VPATH when `$srcdir' = `.'.
28025 # Shell code in configure.ac might set extrasub.
28026 # FIXME: do we really want to maintain this feature?
28027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28028 ac_sed_extra="$ac_vpsub
28029 $extrasub
28030 _ACEOF
28031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28034 s|@configure_input@|$ac_sed_conf_input|;t t
28035 s&@top_builddir@&$ac_top_builddir_sub&;t t
28036 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28037 s&@srcdir@&$ac_srcdir&;t t
28038 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28039 s&@top_srcdir@&$ac_top_srcdir&;t t
28040 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28041 s&@builddir@&$ac_builddir&;t t
28042 s&@abs_builddir@&$ac_abs_builddir&;t t
28043 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28044 s&@INSTALL@&$ac_INSTALL&;t t
28045 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28046 $ac_datarootdir_hack
28048 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28049 || as_fn_error "could not create $ac_file" "$LINENO" 5
28051 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28052 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28053 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28055 which seems to be undefined. Please make sure it is defined." >&5
28056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28057 which seems to be undefined. Please make sure it is defined." >&2;}
28059 rm -f "$tmp/stdin"
28060 case $ac_file in
28061 -) cat "$tmp/out" && rm -f "$tmp/out";;
28062 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28063 esac \
28064 || as_fn_error "could not create $ac_file" "$LINENO" 5
28068 # CONFIG_HEADER
28070 if test x"$ac_file" != x-; then
28072 $as_echo "/* $configure_input */" \
28073 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28074 } >"$tmp/config.h" \
28075 || as_fn_error "could not create $ac_file" "$LINENO" 5
28076 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28078 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28079 else
28080 rm -f "$ac_file"
28081 mv "$tmp/config.h" "$ac_file" \
28082 || as_fn_error "could not create $ac_file" "$LINENO" 5
28084 else
28085 $as_echo "/* $configure_input */" \
28086 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28087 || as_fn_error "could not create -" "$LINENO" 5
28089 # Compute "$ac_file"'s index in $config_headers.
28090 _am_arg="$ac_file"
28091 _am_stamp_count=1
28092 for _am_header in $config_headers :; do
28093 case $_am_header in
28094 $_am_arg | $_am_arg:* )
28095 break ;;
28097 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28098 esac
28099 done
28100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28102 X"$_am_arg" : 'X\(//\)[^/]' \| \
28103 X"$_am_arg" : 'X\(//\)$' \| \
28104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28105 $as_echo X"$_am_arg" |
28106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28107 s//\1/
28110 /^X\(\/\/\)[^/].*/{
28111 s//\1/
28114 /^X\(\/\/\)$/{
28115 s//\1/
28118 /^X\(\/\).*/{
28119 s//\1/
28122 s/.*/./; q'`/stamp-h$_am_stamp_count
28125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28126 $as_echo "$as_me: executing $ac_file commands" >&6;}
28128 esac
28131 case $ac_file$ac_mode in
28132 "default-1":C)
28133 # Only add multilib support code if we just rebuilt the top-level
28134 # Makefile.
28135 case " $CONFIG_FILES " in
28136 *" Makefile "*)
28137 ac_file=Makefile . ${multi_basedir}/config-ml.in
28139 esac ;;
28140 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28141 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28142 # are listed without --file. Let's play safe and only enable the eval
28143 # if we detect the quoting.
28144 case $CONFIG_FILES in
28145 *\'*) eval set x "$CONFIG_FILES" ;;
28146 *) set x $CONFIG_FILES ;;
28147 esac
28148 shift
28149 for mf
28151 # Strip MF so we end up with the name of the file.
28152 mf=`echo "$mf" | sed -e 's/:.*$//'`
28153 # Check whether this is an Automake generated Makefile or not.
28154 # We used to match only the files named `Makefile.in', but
28155 # some people rename them; so instead we look at the file content.
28156 # Grep'ing the first line is not enough: some people post-process
28157 # each Makefile.in and add a new line on top of each file to say so.
28158 # Grep'ing the whole file is not good either: AIX grep has a line
28159 # limit of 2048, but all sed's we know have understand at least 4000.
28160 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28161 dirpart=`$as_dirname -- "$mf" ||
28162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28163 X"$mf" : 'X\(//\)[^/]' \| \
28164 X"$mf" : 'X\(//\)$' \| \
28165 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28166 $as_echo X"$mf" |
28167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28168 s//\1/
28171 /^X\(\/\/\)[^/].*/{
28172 s//\1/
28175 /^X\(\/\/\)$/{
28176 s//\1/
28179 /^X\(\/\).*/{
28180 s//\1/
28183 s/.*/./; q'`
28184 else
28185 continue
28187 # Extract the definition of DEPDIR, am__include, and am__quote
28188 # from the Makefile without running `make'.
28189 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28190 test -z "$DEPDIR" && continue
28191 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28192 test -z "am__include" && continue
28193 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28194 # When using ansi2knr, U may be empty or an underscore; expand it
28195 U=`sed -n 's/^U = //p' < "$mf"`
28196 # Find all dependency output files, they are included files with
28197 # $(DEPDIR) in their names. We invoke sed twice because it is the
28198 # simplest approach to changing $(DEPDIR) to its actual value in the
28199 # expansion.
28200 for file in `sed -n "
28201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28203 # Make sure the directory exists.
28204 test -f "$dirpart/$file" && continue
28205 fdir=`$as_dirname -- "$file" ||
28206 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28207 X"$file" : 'X\(//\)[^/]' \| \
28208 X"$file" : 'X\(//\)$' \| \
28209 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28210 $as_echo X"$file" |
28211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28212 s//\1/
28215 /^X\(\/\/\)[^/].*/{
28216 s//\1/
28219 /^X\(\/\/\)$/{
28220 s//\1/
28223 /^X\(\/\).*/{
28224 s//\1/
28227 s/.*/./; q'`
28228 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28229 # echo "creating $dirpart/$file"
28230 echo '# dummy' > "$dirpart/$file"
28231 done
28232 done
28235 "libtool":C)
28237 # See if we are running on zsh, and set the options which allow our
28238 # commands through without removal of \ escapes.
28239 if test -n "${ZSH_VERSION+set}" ; then
28240 setopt NO_GLOB_SUBST
28243 cfgfile="${ofile}T"
28244 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28245 $RM "$cfgfile"
28247 cat <<_LT_EOF >> "$cfgfile"
28248 #! $SHELL
28250 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28251 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28253 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28255 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28256 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28257 # Written by Gordon Matzigkeit, 1996
28259 # This file is part of GNU Libtool.
28261 # GNU Libtool is free software; you can redistribute it and/or
28262 # modify it under the terms of the GNU General Public License as
28263 # published by the Free Software Foundation; either version 2 of
28264 # the License, or (at your option) any later version.
28266 # As a special exception to the GNU General Public License,
28267 # if you distribute this file as part of a program or library that
28268 # is built using GNU Libtool, you may include this file under the
28269 # same distribution terms that you use for the rest of that program.
28271 # GNU Libtool is distributed in the hope that it will be useful,
28272 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28273 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28274 # GNU General Public License for more details.
28276 # You should have received a copy of the GNU General Public License
28277 # along with GNU Libtool; see the file COPYING. If not, a copy
28278 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28279 # obtained by writing to the Free Software Foundation, Inc.,
28280 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28283 # The names of the tagged configurations supported by this script.
28284 available_tags="FC "
28286 # ### BEGIN LIBTOOL CONFIG
28288 # A sed program that does not truncate output.
28289 SED=$lt_SED
28291 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28292 Xsed="\$SED -e 1s/^X//"
28294 # A grep program that handles long lines.
28295 GREP=$lt_GREP
28297 # An ERE matcher.
28298 EGREP=$lt_EGREP
28300 # A literal string matcher.
28301 FGREP=$lt_FGREP
28303 # Shell to use when invoking shell scripts.
28304 SHELL=$lt_SHELL
28306 # An echo program that protects backslashes.
28307 ECHO=$lt_ECHO
28309 # Which release of libtool.m4 was used?
28310 macro_version=$macro_version
28311 macro_revision=$macro_revision
28313 # Whether or not to build shared libraries.
28314 build_libtool_libs=$enable_shared
28316 # Whether or not to build static libraries.
28317 build_old_libs=$enable_static
28319 # What type of objects to build.
28320 pic_mode=$pic_mode
28322 # Whether or not to optimize for fast installation.
28323 fast_install=$enable_fast_install
28325 # The host system.
28326 host_alias=$host_alias
28327 host=$host
28328 host_os=$host_os
28330 # The build system.
28331 build_alias=$build_alias
28332 build=$build
28333 build_os=$build_os
28335 # A BSD- or MS-compatible name lister.
28336 NM=$lt_NM
28338 # Whether we need soft or hard links.
28339 LN_S=$lt_LN_S
28341 # What is the maximum length of a command?
28342 max_cmd_len=$max_cmd_len
28344 # Object file suffix (normally "o").
28345 objext=$ac_objext
28347 # Executable file suffix (normally "").
28348 exeext=$exeext
28350 # whether the shell understands "unset".
28351 lt_unset=$lt_unset
28353 # turn spaces into newlines.
28354 SP2NL=$lt_lt_SP2NL
28356 # turn newlines into spaces.
28357 NL2SP=$lt_lt_NL2SP
28359 # An object symbol dumper.
28360 OBJDUMP=$lt_OBJDUMP
28362 # Method to check whether dependent libraries are shared objects.
28363 deplibs_check_method=$lt_deplibs_check_method
28365 # Command to use when deplibs_check_method == "file_magic".
28366 file_magic_cmd=$lt_file_magic_cmd
28368 # The archiver.
28369 AR=$lt_AR
28370 AR_FLAGS=$lt_AR_FLAGS
28372 # A symbol stripping program.
28373 STRIP=$lt_STRIP
28375 # Commands used to install an old-style archive.
28376 RANLIB=$lt_RANLIB
28377 old_postinstall_cmds=$lt_old_postinstall_cmds
28378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28380 # Whether to use a lock for old archive extraction.
28381 lock_old_archive_extraction=$lock_old_archive_extraction
28383 # A C compiler.
28384 LTCC=$lt_CC
28386 # LTCC compiler flags.
28387 LTCFLAGS=$lt_CFLAGS
28389 # Take the output of nm and produce a listing of raw symbols and C names.
28390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28392 # Transform the output of nm in a proper C declaration.
28393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28395 # Transform the output of nm in a C name address pair.
28396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28398 # Transform the output of nm in a C name address pair when lib prefix is needed.
28399 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28401 # The name of the directory that contains temporary libtool files.
28402 objdir=$objdir
28404 # Used to examine libraries when file_magic_cmd begins with "file".
28405 MAGIC_CMD=$MAGIC_CMD
28407 # Must we lock files when doing compilation?
28408 need_locks=$lt_need_locks
28410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28411 DSYMUTIL=$lt_DSYMUTIL
28413 # Tool to change global to local symbols on Mac OS X.
28414 NMEDIT=$lt_NMEDIT
28416 # Tool to manipulate fat objects and archives on Mac OS X.
28417 LIPO=$lt_LIPO
28419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28420 OTOOL=$lt_OTOOL
28422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28423 OTOOL64=$lt_OTOOL64
28425 # Old archive suffix (normally "a").
28426 libext=$libext
28428 # Shared library suffix (normally ".so").
28429 shrext_cmds=$lt_shrext_cmds
28431 # The commands to extract the exported symbol list from a shared archive.
28432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28434 # Variables whose values should be saved in libtool wrapper scripts and
28435 # restored at link time.
28436 variables_saved_for_relink=$lt_variables_saved_for_relink
28438 # Do we need the "lib" prefix for modules?
28439 need_lib_prefix=$need_lib_prefix
28441 # Do we need a version for libraries?
28442 need_version=$need_version
28444 # Library versioning type.
28445 version_type=$version_type
28447 # Shared library runtime path variable.
28448 runpath_var=$runpath_var
28450 # Shared library path variable.
28451 shlibpath_var=$shlibpath_var
28453 # Is shlibpath searched before the hard-coded library search path?
28454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28456 # Format of library name prefix.
28457 libname_spec=$lt_libname_spec
28459 # List of archive names. First name is the real one, the rest are links.
28460 # The last name is the one that the linker finds with -lNAME
28461 library_names_spec=$lt_library_names_spec
28463 # The coded name of the library, if different from the real name.
28464 soname_spec=$lt_soname_spec
28466 # Permission mode override for installation of shared libraries.
28467 install_override_mode=$lt_install_override_mode
28469 # Command to use after installation of a shared archive.
28470 postinstall_cmds=$lt_postinstall_cmds
28472 # Command to use after uninstallation of a shared archive.
28473 postuninstall_cmds=$lt_postuninstall_cmds
28475 # Commands used to finish a libtool library installation in a directory.
28476 finish_cmds=$lt_finish_cmds
28478 # As "finish_cmds", except a single script fragment to be evaled but
28479 # not shown.
28480 finish_eval=$lt_finish_eval
28482 # Whether we should hardcode library paths into libraries.
28483 hardcode_into_libs=$hardcode_into_libs
28485 # Compile-time system search path for libraries.
28486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28488 # Run-time system search path for libraries.
28489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28491 # Whether dlopen is supported.
28492 dlopen_support=$enable_dlopen
28494 # Whether dlopen of programs is supported.
28495 dlopen_self=$enable_dlopen_self
28497 # Whether dlopen of statically linked programs is supported.
28498 dlopen_self_static=$enable_dlopen_self_static
28500 # Commands to strip libraries.
28501 old_striplib=$lt_old_striplib
28502 striplib=$lt_striplib
28505 # The linker used to build libraries.
28506 LD=$lt_LD
28508 # How to create reloadable object files.
28509 reload_flag=$lt_reload_flag
28510 reload_cmds=$lt_reload_cmds
28512 # Commands used to build an old-style archive.
28513 old_archive_cmds=$lt_old_archive_cmds
28515 # A language specific compiler.
28516 CC=$lt_compiler
28518 # Is the compiler the GNU compiler?
28519 with_gcc=$GCC
28521 # Compiler flag to turn off builtin functions.
28522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28524 # How to pass a linker flag through the compiler.
28525 wl=$lt_lt_prog_compiler_wl
28527 # Additional compiler flags for building library objects.
28528 pic_flag=$lt_lt_prog_compiler_pic
28530 # Compiler flag to prevent dynamic linking.
28531 link_static_flag=$lt_lt_prog_compiler_static
28533 # Does compiler simultaneously support -c and -o options?
28534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28536 # Whether or not to add -lc for building shared libraries.
28537 build_libtool_need_lc=$archive_cmds_need_lc
28539 # Whether or not to disallow shared libs when runtime libs are static.
28540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28542 # Compiler flag to allow reflexive dlopens.
28543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28545 # Compiler flag to generate shared objects directly from archives.
28546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28548 # Whether the compiler copes with passing no objects directly.
28549 compiler_needs_object=$lt_compiler_needs_object
28551 # Create an old-style archive from a shared archive.
28552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28554 # Create a temporary old-style archive to link instead of a shared archive.
28555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28557 # Commands used to build a shared archive.
28558 archive_cmds=$lt_archive_cmds
28559 archive_expsym_cmds=$lt_archive_expsym_cmds
28561 # Commands used to build a loadable module if different from building
28562 # a shared archive.
28563 module_cmds=$lt_module_cmds
28564 module_expsym_cmds=$lt_module_expsym_cmds
28566 # Whether we are building with GNU ld or not.
28567 with_gnu_ld=$lt_with_gnu_ld
28569 # Flag that allows shared libraries with undefined symbols to be built.
28570 allow_undefined_flag=$lt_allow_undefined_flag
28572 # Flag that enforces no undefined symbols.
28573 no_undefined_flag=$lt_no_undefined_flag
28575 # Flag to hardcode \$libdir into a binary during linking.
28576 # This must work even if \$libdir does not exist
28577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28579 # If ld is used when linking, flag to hardcode \$libdir into a binary
28580 # during linking. This must work even if \$libdir does not exist.
28581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28583 # Whether we need a single "-rpath" flag with a separated argument.
28584 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28587 # DIR into the resulting binary.
28588 hardcode_direct=$hardcode_direct
28590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28591 # DIR into the resulting binary and the resulting library dependency is
28592 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28593 # library is relocated.
28594 hardcode_direct_absolute=$hardcode_direct_absolute
28596 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28597 # into the resulting binary.
28598 hardcode_minus_L=$hardcode_minus_L
28600 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28601 # into the resulting binary.
28602 hardcode_shlibpath_var=$hardcode_shlibpath_var
28604 # Set to "yes" if building a shared library automatically hardcodes DIR
28605 # into the library and all subsequent libraries and executables linked
28606 # against it.
28607 hardcode_automatic=$hardcode_automatic
28609 # Set to yes if linker adds runtime paths of dependent libraries
28610 # to runtime path list.
28611 inherit_rpath=$inherit_rpath
28613 # Whether libtool must link a program against all its dependency libraries.
28614 link_all_deplibs=$link_all_deplibs
28616 # Fix the shell variable \$srcfile for the compiler.
28617 fix_srcfile_path=$lt_fix_srcfile_path
28619 # Set to "yes" if exported symbols are required.
28620 always_export_symbols=$always_export_symbols
28622 # The commands to list exported symbols.
28623 export_symbols_cmds=$lt_export_symbols_cmds
28625 # Symbols that should not be listed in the preloaded symbols.
28626 exclude_expsyms=$lt_exclude_expsyms
28628 # Symbols that must always be exported.
28629 include_expsyms=$lt_include_expsyms
28631 # Commands necessary for linking programs (against libraries) with templates.
28632 prelink_cmds=$lt_prelink_cmds
28634 # Specify filename containing input files.
28635 file_list_spec=$lt_file_list_spec
28637 # How to hardcode a shared library path into an executable.
28638 hardcode_action=$hardcode_action
28640 # The directories searched by this compiler when creating a shared library.
28641 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28643 # Dependencies to place before and after the objects being linked to
28644 # create a shared library.
28645 predep_objects=$lt_predep_objects
28646 postdep_objects=$lt_postdep_objects
28647 predeps=$lt_predeps
28648 postdeps=$lt_postdeps
28650 # The library search path used internally by the compiler when linking
28651 # a shared library.
28652 compiler_lib_search_path=$lt_compiler_lib_search_path
28654 # ### END LIBTOOL CONFIG
28656 _LT_EOF
28658 case $host_os in
28659 aix3*)
28660 cat <<\_LT_EOF >> "$cfgfile"
28661 # AIX sometimes has problems with the GCC collect2 program. For some
28662 # reason, if we set the COLLECT_NAMES environment variable, the problems
28663 # vanish in a puff of smoke.
28664 if test "X${COLLECT_NAMES+set}" != Xset; then
28665 COLLECT_NAMES=
28666 export COLLECT_NAMES
28668 _LT_EOF
28670 esac
28673 ltmain="$ac_aux_dir/ltmain.sh"
28676 # We use sed instead of cat because bash on DJGPP gets confused if
28677 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28678 # text mode, it properly converts lines to CR/LF. This bash problem
28679 # is reportedly fixed, but why not run on old versions too?
28680 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28681 || (rm -f "$cfgfile"; exit 1)
28683 case $xsi_shell in
28684 yes)
28685 cat << \_LT_EOF >> "$cfgfile"
28687 # func_dirname file append nondir_replacement
28688 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28689 # otherwise set result to NONDIR_REPLACEMENT.
28690 func_dirname ()
28692 case ${1} in
28693 */*) func_dirname_result="${1%/*}${2}" ;;
28694 * ) func_dirname_result="${3}" ;;
28695 esac
28698 # func_basename file
28699 func_basename ()
28701 func_basename_result="${1##*/}"
28704 # func_dirname_and_basename file append nondir_replacement
28705 # perform func_basename and func_dirname in a single function
28706 # call:
28707 # dirname: Compute the dirname of FILE. If nonempty,
28708 # add APPEND to the result, otherwise set result
28709 # to NONDIR_REPLACEMENT.
28710 # value returned in "$func_dirname_result"
28711 # basename: Compute filename of FILE.
28712 # value retuned in "$func_basename_result"
28713 # Implementation must be kept synchronized with func_dirname
28714 # and func_basename. For efficiency, we do not delegate to
28715 # those functions but instead duplicate the functionality here.
28716 func_dirname_and_basename ()
28718 case ${1} in
28719 */*) func_dirname_result="${1%/*}${2}" ;;
28720 * ) func_dirname_result="${3}" ;;
28721 esac
28722 func_basename_result="${1##*/}"
28725 # func_stripname prefix suffix name
28726 # strip PREFIX and SUFFIX off of NAME.
28727 # PREFIX and SUFFIX must not contain globbing or regex special
28728 # characters, hashes, percent signs, but SUFFIX may contain a leading
28729 # dot (in which case that matches only a dot).
28730 func_stripname ()
28732 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28733 # positional parameters, so assign one to ordinary parameter first.
28734 func_stripname_result=${3}
28735 func_stripname_result=${func_stripname_result#"${1}"}
28736 func_stripname_result=${func_stripname_result%"${2}"}
28739 # func_opt_split
28740 func_opt_split ()
28742 func_opt_split_opt=${1%%=*}
28743 func_opt_split_arg=${1#*=}
28746 # func_lo2o object
28747 func_lo2o ()
28749 case ${1} in
28750 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28751 *) func_lo2o_result=${1} ;;
28752 esac
28755 # func_xform libobj-or-source
28756 func_xform ()
28758 func_xform_result=${1%.*}.lo
28761 # func_arith arithmetic-term...
28762 func_arith ()
28764 func_arith_result=$(( $* ))
28767 # func_len string
28768 # STRING may not start with a hyphen.
28769 func_len ()
28771 func_len_result=${#1}
28774 _LT_EOF
28776 *) # Bourne compatible functions.
28777 cat << \_LT_EOF >> "$cfgfile"
28779 # func_dirname file append nondir_replacement
28780 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28781 # otherwise set result to NONDIR_REPLACEMENT.
28782 func_dirname ()
28784 # Extract subdirectory from the argument.
28785 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28786 if test "X$func_dirname_result" = "X${1}"; then
28787 func_dirname_result="${3}"
28788 else
28789 func_dirname_result="$func_dirname_result${2}"
28793 # func_basename file
28794 func_basename ()
28796 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28800 # func_stripname prefix suffix name
28801 # strip PREFIX and SUFFIX off of NAME.
28802 # PREFIX and SUFFIX must not contain globbing or regex special
28803 # characters, hashes, percent signs, but SUFFIX may contain a leading
28804 # dot (in which case that matches only a dot).
28805 # func_strip_suffix prefix name
28806 func_stripname ()
28808 case ${2} in
28809 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28810 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28811 esac
28814 # sed scripts:
28815 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28816 my_sed_long_arg='1s/^-[^=]*=//'
28818 # func_opt_split
28819 func_opt_split ()
28821 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28822 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28825 # func_lo2o object
28826 func_lo2o ()
28828 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28831 # func_xform libobj-or-source
28832 func_xform ()
28834 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28837 # func_arith arithmetic-term...
28838 func_arith ()
28840 func_arith_result=`expr "$@"`
28843 # func_len string
28844 # STRING may not start with a hyphen.
28845 func_len ()
28847 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28850 _LT_EOF
28851 esac
28853 case $lt_shell_append in
28854 yes)
28855 cat << \_LT_EOF >> "$cfgfile"
28857 # func_append var value
28858 # Append VALUE to the end of shell variable VAR.
28859 func_append ()
28861 eval "$1+=\$2"
28863 _LT_EOF
28866 cat << \_LT_EOF >> "$cfgfile"
28868 # func_append var value
28869 # Append VALUE to the end of shell variable VAR.
28870 func_append ()
28872 eval "$1=\$$1\$2"
28875 _LT_EOF
28877 esac
28880 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28881 || (rm -f "$cfgfile"; exit 1)
28883 mv -f "$cfgfile" "$ofile" ||
28884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28885 chmod +x "$ofile"
28888 cat <<_LT_EOF >> "$ofile"
28890 # ### BEGIN LIBTOOL TAG CONFIG: FC
28892 # The linker used to build libraries.
28893 LD=$lt_LD_FC
28895 # How to create reloadable object files.
28896 reload_flag=$lt_reload_flag_FC
28897 reload_cmds=$lt_reload_cmds_FC
28899 # Commands used to build an old-style archive.
28900 old_archive_cmds=$lt_old_archive_cmds_FC
28902 # A language specific compiler.
28903 CC=$lt_compiler_FC
28905 # Is the compiler the GNU compiler?
28906 with_gcc=$GCC_FC
28908 # Compiler flag to turn off builtin functions.
28909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28911 # How to pass a linker flag through the compiler.
28912 wl=$lt_lt_prog_compiler_wl_FC
28914 # Additional compiler flags for building library objects.
28915 pic_flag=$lt_lt_prog_compiler_pic_FC
28917 # Compiler flag to prevent dynamic linking.
28918 link_static_flag=$lt_lt_prog_compiler_static_FC
28920 # Does compiler simultaneously support -c and -o options?
28921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28923 # Whether or not to add -lc for building shared libraries.
28924 build_libtool_need_lc=$archive_cmds_need_lc_FC
28926 # Whether or not to disallow shared libs when runtime libs are static.
28927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28929 # Compiler flag to allow reflexive dlopens.
28930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28932 # Compiler flag to generate shared objects directly from archives.
28933 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28935 # Whether the compiler copes with passing no objects directly.
28936 compiler_needs_object=$lt_compiler_needs_object_FC
28938 # Create an old-style archive from a shared archive.
28939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28941 # Create a temporary old-style archive to link instead of a shared archive.
28942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28944 # Commands used to build a shared archive.
28945 archive_cmds=$lt_archive_cmds_FC
28946 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28948 # Commands used to build a loadable module if different from building
28949 # a shared archive.
28950 module_cmds=$lt_module_cmds_FC
28951 module_expsym_cmds=$lt_module_expsym_cmds_FC
28953 # Whether we are building with GNU ld or not.
28954 with_gnu_ld=$lt_with_gnu_ld_FC
28956 # Flag that allows shared libraries with undefined symbols to be built.
28957 allow_undefined_flag=$lt_allow_undefined_flag_FC
28959 # Flag that enforces no undefined symbols.
28960 no_undefined_flag=$lt_no_undefined_flag_FC
28962 # Flag to hardcode \$libdir into a binary during linking.
28963 # This must work even if \$libdir does not exist
28964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28966 # If ld is used when linking, flag to hardcode \$libdir into a binary
28967 # during linking. This must work even if \$libdir does not exist.
28968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28970 # Whether we need a single "-rpath" flag with a separated argument.
28971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28974 # DIR into the resulting binary.
28975 hardcode_direct=$hardcode_direct_FC
28977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28978 # DIR into the resulting binary and the resulting library dependency is
28979 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28980 # library is relocated.
28981 hardcode_direct_absolute=$hardcode_direct_absolute_FC
28983 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28984 # into the resulting binary.
28985 hardcode_minus_L=$hardcode_minus_L_FC
28987 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28988 # into the resulting binary.
28989 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28991 # Set to "yes" if building a shared library automatically hardcodes DIR
28992 # into the library and all subsequent libraries and executables linked
28993 # against it.
28994 hardcode_automatic=$hardcode_automatic_FC
28996 # Set to yes if linker adds runtime paths of dependent libraries
28997 # to runtime path list.
28998 inherit_rpath=$inherit_rpath_FC
29000 # Whether libtool must link a program against all its dependency libraries.
29001 link_all_deplibs=$link_all_deplibs_FC
29003 # Fix the shell variable \$srcfile for the compiler.
29004 fix_srcfile_path=$lt_fix_srcfile_path_FC
29006 # Set to "yes" if exported symbols are required.
29007 always_export_symbols=$always_export_symbols_FC
29009 # The commands to list exported symbols.
29010 export_symbols_cmds=$lt_export_symbols_cmds_FC
29012 # Symbols that should not be listed in the preloaded symbols.
29013 exclude_expsyms=$lt_exclude_expsyms_FC
29015 # Symbols that must always be exported.
29016 include_expsyms=$lt_include_expsyms_FC
29018 # Commands necessary for linking programs (against libraries) with templates.
29019 prelink_cmds=$lt_prelink_cmds_FC
29021 # Specify filename containing input files.
29022 file_list_spec=$lt_file_list_spec_FC
29024 # How to hardcode a shared library path into an executable.
29025 hardcode_action=$hardcode_action_FC
29027 # The directories searched by this compiler when creating a shared library.
29028 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29030 # Dependencies to place before and after the objects being linked to
29031 # create a shared library.
29032 predep_objects=$lt_predep_objects_FC
29033 postdep_objects=$lt_postdep_objects_FC
29034 predeps=$lt_predeps_FC
29035 postdeps=$lt_postdeps_FC
29037 # The library search path used internally by the compiler when linking
29038 # a shared library.
29039 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29041 # ### END LIBTOOL TAG CONFIG: FC
29042 _LT_EOF
29045 "gstdint.h":C)
29046 if test "$GCC" = yes; then
29047 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29048 else
29049 echo "/* generated for $CC */" > tmp-stdint.h
29052 sed 's/^ *//' >> tmp-stdint.h <<EOF
29054 #ifndef GCC_GENERATED_STDINT_H
29055 #define GCC_GENERATED_STDINT_H 1
29057 #include <sys/types.h>
29060 if test "$acx_cv_header_stdint" != stdint.h; then
29061 echo "#include <stddef.h>" >> tmp-stdint.h
29063 if test "$acx_cv_header_stdint" != stddef.h; then
29064 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29067 sed 's/^ *//' >> tmp-stdint.h <<EOF
29068 /* glibc uses these symbols as guards to prevent redefinitions. */
29069 #ifdef __int8_t_defined
29070 #define _INT8_T
29071 #define _INT16_T
29072 #define _INT32_T
29073 #endif
29074 #ifdef __uint32_t_defined
29075 #define _UINT32_T
29076 #endif
29080 # ----------------- done header, emit basic int types -------------
29081 if test "$acx_cv_header_stdint" = stddef.h; then
29082 sed 's/^ *//' >> tmp-stdint.h <<EOF
29084 #ifndef _UINT8_T
29085 #define _UINT8_T
29086 #ifndef __uint8_t_defined
29087 #define __uint8_t_defined
29088 #ifndef uint8_t
29089 typedef unsigned $acx_cv_type_int8_t uint8_t;
29090 #endif
29091 #endif
29092 #endif
29094 #ifndef _UINT16_T
29095 #define _UINT16_T
29096 #ifndef __uint16_t_defined
29097 #define __uint16_t_defined
29098 #ifndef uint16_t
29099 typedef unsigned $acx_cv_type_int16_t uint16_t;
29100 #endif
29101 #endif
29102 #endif
29104 #ifndef _UINT32_T
29105 #define _UINT32_T
29106 #ifndef __uint32_t_defined
29107 #define __uint32_t_defined
29108 #ifndef uint32_t
29109 typedef unsigned $acx_cv_type_int32_t uint32_t;
29110 #endif
29111 #endif
29112 #endif
29114 #ifndef _INT8_T
29115 #define _INT8_T
29116 #ifndef __int8_t_defined
29117 #define __int8_t_defined
29118 #ifndef int8_t
29119 typedef $acx_cv_type_int8_t int8_t;
29120 #endif
29121 #endif
29122 #endif
29124 #ifndef _INT16_T
29125 #define _INT16_T
29126 #ifndef __int16_t_defined
29127 #define __int16_t_defined
29128 #ifndef int16_t
29129 typedef $acx_cv_type_int16_t int16_t;
29130 #endif
29131 #endif
29132 #endif
29134 #ifndef _INT32_T
29135 #define _INT32_T
29136 #ifndef __int32_t_defined
29137 #define __int32_t_defined
29138 #ifndef int32_t
29139 typedef $acx_cv_type_int32_t int32_t;
29140 #endif
29141 #endif
29142 #endif
29144 elif test "$ac_cv_type_u_int32_t" = yes; then
29145 sed 's/^ *//' >> tmp-stdint.h <<EOF
29147 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29148 #ifndef _INT8_T
29149 #define _INT8_T
29150 #endif
29151 #ifndef _INT16_T
29152 #define _INT16_T
29153 #endif
29154 #ifndef _INT32_T
29155 #define _INT32_T
29156 #endif
29158 #ifndef _UINT8_T
29159 #define _UINT8_T
29160 #ifndef __uint8_t_defined
29161 #define __uint8_t_defined
29162 #ifndef uint8_t
29163 typedef u_int8_t uint8_t;
29164 #endif
29165 #endif
29166 #endif
29168 #ifndef _UINT16_T
29169 #define _UINT16_T
29170 #ifndef __uint16_t_defined
29171 #define __uint16_t_defined
29172 #ifndef uint16_t
29173 typedef u_int16_t uint16_t;
29174 #endif
29175 #endif
29176 #endif
29178 #ifndef _UINT32_T
29179 #define _UINT32_T
29180 #ifndef __uint32_t_defined
29181 #define __uint32_t_defined
29182 #ifndef uint32_t
29183 typedef u_int32_t uint32_t;
29184 #endif
29185 #endif
29186 #endif
29188 else
29189 sed 's/^ *//' >> tmp-stdint.h <<EOF
29191 /* Some systems have guard macros to prevent redefinitions, define them. */
29192 #ifndef _INT8_T
29193 #define _INT8_T
29194 #endif
29195 #ifndef _INT16_T
29196 #define _INT16_T
29197 #endif
29198 #ifndef _INT32_T
29199 #define _INT32_T
29200 #endif
29201 #ifndef _UINT8_T
29202 #define _UINT8_T
29203 #endif
29204 #ifndef _UINT16_T
29205 #define _UINT16_T
29206 #endif
29207 #ifndef _UINT32_T
29208 #define _UINT32_T
29209 #endif
29213 # ------------- done basic int types, emit int64_t types ------------
29214 if test "$ac_cv_type_uint64_t" = yes; then
29215 sed 's/^ *//' >> tmp-stdint.h <<EOF
29217 /* system headers have good uint64_t and int64_t */
29218 #ifndef _INT64_T
29219 #define _INT64_T
29220 #endif
29221 #ifndef _UINT64_T
29222 #define _UINT64_T
29223 #endif
29225 elif test "$ac_cv_type_u_int64_t" = yes; then
29226 sed 's/^ *//' >> tmp-stdint.h <<EOF
29228 /* system headers have an u_int64_t (and int64_t) */
29229 #ifndef _INT64_T
29230 #define _INT64_T
29231 #endif
29232 #ifndef _UINT64_T
29233 #define _UINT64_T
29234 #ifndef __uint64_t_defined
29235 #define __uint64_t_defined
29236 #ifndef uint64_t
29237 typedef u_int64_t uint64_t;
29238 #endif
29239 #endif
29240 #endif
29242 elif test -n "$acx_cv_type_int64_t"; then
29243 sed 's/^ *//' >> tmp-stdint.h <<EOF
29245 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29246 #ifndef _INT64_T
29247 #define _INT64_T
29248 #ifndef int64_t
29249 typedef $acx_cv_type_int64_t int64_t;
29250 #endif
29251 #endif
29252 #ifndef _UINT64_T
29253 #define _UINT64_T
29254 #ifndef __uint64_t_defined
29255 #define __uint64_t_defined
29256 #ifndef uint64_t
29257 typedef unsigned $acx_cv_type_int64_t uint64_t;
29258 #endif
29259 #endif
29260 #endif
29262 else
29263 sed 's/^ *//' >> tmp-stdint.h <<EOF
29265 /* some common heuristics for int64_t, using compiler-specific tests */
29266 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29267 #ifndef _INT64_T
29268 #define _INT64_T
29269 #ifndef __int64_t_defined
29270 #ifndef int64_t
29271 typedef long long int64_t;
29272 #endif
29273 #endif
29274 #endif
29275 #ifndef _UINT64_T
29276 #define _UINT64_T
29277 #ifndef uint64_t
29278 typedef unsigned long long uint64_t;
29279 #endif
29280 #endif
29282 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29283 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29284 does not implement __extension__. But that compiler doesn't define
29285 __GNUC_MINOR__. */
29286 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29287 # define __extension__
29288 # endif
29290 # ifndef _INT64_T
29291 # define _INT64_T
29292 # ifndef int64_t
29293 __extension__ typedef long long int64_t;
29294 # endif
29295 # endif
29296 # ifndef _UINT64_T
29297 # define _UINT64_T
29298 # ifndef uint64_t
29299 __extension__ typedef unsigned long long uint64_t;
29300 # endif
29301 # endif
29303 #elif !defined __STRICT_ANSI__
29304 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29306 # ifndef _INT64_T
29307 # define _INT64_T
29308 # ifndef int64_t
29309 typedef __int64 int64_t;
29310 # endif
29311 # endif
29312 # ifndef _UINT64_T
29313 # define _UINT64_T
29314 # ifndef uint64_t
29315 typedef unsigned __int64 uint64_t;
29316 # endif
29317 # endif
29318 # endif /* compiler */
29320 #endif /* ANSI version */
29324 # ------------- done int64_t types, emit intptr types ------------
29325 if test "$ac_cv_type_uintptr_t" != yes; then
29326 sed 's/^ *//' >> tmp-stdint.h <<EOF
29328 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29329 #ifndef __uintptr_t_defined
29330 #ifndef uintptr_t
29331 typedef u$acx_cv_type_intptr_t uintptr_t;
29332 #endif
29333 #endif
29334 #ifndef __intptr_t_defined
29335 #ifndef intptr_t
29336 typedef $acx_cv_type_intptr_t intptr_t;
29337 #endif
29338 #endif
29342 # ------------- done intptr types, emit int_least types ------------
29343 if test "$ac_cv_type_int_least32_t" != yes; then
29344 sed 's/^ *//' >> tmp-stdint.h <<EOF
29346 /* Define int_least types */
29347 typedef int8_t int_least8_t;
29348 typedef int16_t int_least16_t;
29349 typedef int32_t int_least32_t;
29350 #ifdef _INT64_T
29351 typedef int64_t int_least64_t;
29352 #endif
29354 typedef uint8_t uint_least8_t;
29355 typedef uint16_t uint_least16_t;
29356 typedef uint32_t uint_least32_t;
29357 #ifdef _UINT64_T
29358 typedef uint64_t uint_least64_t;
29359 #endif
29363 # ------------- done intptr types, emit int_fast types ------------
29364 if test "$ac_cv_type_int_fast32_t" != yes; then
29365 sed 's/^ *//' >> tmp-stdint.h <<EOF
29367 /* Define int_fast types. short is often slow */
29368 typedef int8_t int_fast8_t;
29369 typedef int int_fast16_t;
29370 typedef int32_t int_fast32_t;
29371 #ifdef _INT64_T
29372 typedef int64_t int_fast64_t;
29373 #endif
29375 typedef uint8_t uint_fast8_t;
29376 typedef unsigned int uint_fast16_t;
29377 typedef uint32_t uint_fast32_t;
29378 #ifdef _UINT64_T
29379 typedef uint64_t uint_fast64_t;
29380 #endif
29384 if test "$ac_cv_type_uintmax_t" != yes; then
29385 sed 's/^ *//' >> tmp-stdint.h <<EOF
29387 /* Define intmax based on what we found */
29388 #ifndef intmax_t
29389 #ifdef _INT64_T
29390 typedef int64_t intmax_t;
29391 #else
29392 typedef long intmax_t;
29393 #endif
29394 #endif
29395 #ifndef uintmax_t
29396 #ifdef _UINT64_T
29397 typedef uint64_t uintmax_t;
29398 #else
29399 typedef unsigned long uintmax_t;
29400 #endif
29401 #endif
29405 sed 's/^ *//' >> tmp-stdint.h <<EOF
29407 #endif /* GCC_GENERATED_STDINT_H */
29410 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29411 rm -f tmp-stdint.h
29412 else
29413 mv -f tmp-stdint.h gstdint.h
29418 esac
29419 done # for ac_tag
29422 as_fn_exit 0
29423 _ACEOF
29424 ac_clean_files=$ac_clean_files_save
29426 test $ac_write_fail = 0 ||
29427 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29430 # configure is writing to config.log, and then calls config.status.
29431 # config.status does its own redirection, appending to config.log.
29432 # Unfortunately, on DOS this fails, as config.log is still kept open
29433 # by configure, so config.status won't be able to write to it; its
29434 # output is simply discarded. So we exec the FD to /dev/null,
29435 # effectively closing config.log, so it can be properly (re)opened and
29436 # appended to by config.status. When coming back to configure, we
29437 # need to make the FD available again.
29438 if test "$no_create" != yes; then
29439 ac_cs_success=:
29440 ac_config_status_args=
29441 test "$silent" = yes &&
29442 ac_config_status_args="$ac_config_status_args --quiet"
29443 exec 5>/dev/null
29444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29445 exec 5>>config.log
29446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29447 # would make configure fail if this is the last instruction.
29448 $ac_cs_success || as_fn_exit $?
29450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29452 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}