Merge from trunk: 215733-215743
[official-gcc.git] / main / libgfortran / configure
blob6f8ce7c6e201d02ccf4e8b1c1af66a01d823b2b8
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
637 FGREP
639 LIBTOOL
640 RANLIB
643 SECTION_FLAGS
644 LIBGFOR_USE_SYMVER_SUN_FALSE
645 LIBGFOR_USE_SYMVER_SUN_TRUE
646 LIBGFOR_USE_SYMVER_GNU_FALSE
647 LIBGFOR_USE_SYMVER_GNU_TRUE
648 LIBGFOR_USE_SYMVER_FALSE
649 LIBGFOR_USE_SYMVER_TRUE
650 AM_CFLAGS
651 AM_FCFLAGS
652 toolexeclibdir
653 toolexecdir
654 EGREP
655 GREP
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 am__nodep
661 AMDEPBACKSLASH
662 AMDEP_FALSE
663 AMDEP_TRUE
664 am__quote
665 am__include
666 DEPDIR
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 multi_basedir
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 target_noncanonical
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 onestep
711 onestep_FALSE
712 onestep_TRUE
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 with_build_libsubdir
763 enable_version_specific_runtime_libs
764 enable_intermodule
765 enable_maintainer_mode
766 enable_multilib
767 enable_dependency_tracking
768 enable_symvers
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_largefile
776 enable_libquadmath_support
777 with_system_libunwind
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
789 FCFLAGS'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
860 ac_dashdash=yes ;;
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
879 --config-cache | -C)
880 cache_file=config.cache ;;
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) as_fn_error "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information."
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error "missing argument to $ac_option"
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1283 /^X\(\/\/\)$/{
1284 s//\1/
1287 /^X\(\/\).*/{
1288 s//\1/
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1296 else
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397 _ACEOF
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1403 esac
1404 cat <<\_ACEOF
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-version-specific-runtime-libs
1411 specify that runtime libraries should be installed
1412 in a compiler-specific directory
1413 --enable-intermodule build the library in one step
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --disable-symvers disable symbol versioning for libgfortran
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --disable-largefile omit support for large files
1426 --disable-libquadmath-support
1427 disable libquadmath support for Fortran
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-build-libsubdir=DIR Directory where to find libraries for build system
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-system-libunwind use installed libunwind
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 FC Fortran compiler command
1448 FCFLAGS Fortran compiler flags
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1454 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1455 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 GNU Fortran Runtime Library configure 0.3
1519 generated by GNU Autoconf 2.64
1521 Copyright (C) 2009 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 if test x$gcc_no_link = xyes; then
1825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 main ()
1986 if (sizeof ($2))
1987 return 0;
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 main ()
1999 if (sizeof (($2)))
2000 return 0;
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2007 else
2008 eval "$3=yes"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_type
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 # computed
2026 ac_fn_c_compute_int ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062 else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=-1 ac_mid=-1
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2104 else
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 ac_lo= ac_hi=
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid
2138 else
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 case $ac_lo in #((
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145 '') ac_retval=1 ;;
2146 esac
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2156 main ()
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2169 else
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2181 return 0;
2183 _ACEOF
2184 if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2186 else
2187 ac_retval=1
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 rm -f conftest.val
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 return $ac_retval
2197 } # ac_fn_c_compute_int
2199 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # ----------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_c_check_member ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 $as_echo_n "checking for $2.$3... " >&6; }
2208 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 main ()
2217 static $2 ac_aggr;
2218 if (ac_aggr.$3)
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$4=yes"
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 static $2 ac_aggr;
2234 if (sizeof ac_aggr.$3)
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242 else
2243 eval "$4=no"
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$4
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_c_check_member
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2260 generated by GNU Autoconf 2.64. Invocation command line was
2262 $ $0 $@
2264 _ACEOF
2265 exec 5>>config.log
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 _ASUNAME
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2300 } >&5
2302 cat >&5 <<_ACEOF
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2309 _ACEOF
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2323 for ac_arg
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2352 as_fn_append ac_configure_args " '$ac_arg'"
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2368 echo
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426 ## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444 ## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##
2447 _ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special
2523 # files actually), so we avoid doing that.
2524 if test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " unistd.h"
2539 as_fn_append ac_header_list " sys/time.h"
2540 as_fn_append ac_header_list " sys/times.h"
2541 as_fn_append ac_header_list " sys/resource.h"
2542 as_fn_append ac_header_list " sys/types.h"
2543 as_fn_append ac_header_list " sys/stat.h"
2544 as_fn_append ac_header_list " sys/wait.h"
2545 as_fn_append ac_header_list " floatingpoint.h"
2546 as_fn_append ac_header_list " ieeefp.h"
2547 as_fn_append ac_header_list " fenv.h"
2548 as_fn_append ac_header_list " fptrap.h"
2549 as_fn_append ac_header_list " fpxcp.h"
2550 as_fn_append ac_header_list " pwd.h"
2551 as_fn_append ac_header_list " complex.h"
2552 as_fn_append ac_func_list " getrusage"
2553 as_fn_append ac_func_list " times"
2554 as_fn_append ac_func_list " mkstemp"
2555 as_fn_append ac_func_list " strtof"
2556 as_fn_append ac_func_list " strtold"
2557 as_fn_append ac_func_list " snprintf"
2558 as_fn_append ac_func_list " ftruncate"
2559 as_fn_append ac_func_list " chsize"
2560 as_fn_append ac_func_list " chdir"
2561 as_fn_append ac_func_list " getlogin"
2562 as_fn_append ac_func_list " gethostname"
2563 as_fn_append ac_func_list " kill"
2564 as_fn_append ac_func_list " link"
2565 as_fn_append ac_func_list " symlink"
2566 as_fn_append ac_func_list " sleep"
2567 as_fn_append ac_func_list " ttyname"
2568 as_fn_append ac_func_list " alarm"
2569 as_fn_append ac_func_list " access"
2570 as_fn_append ac_func_list " fork"
2571 as_fn_append ac_func_list " execl"
2572 as_fn_append ac_func_list " wait"
2573 as_fn_append ac_func_list " setmode"
2574 as_fn_append ac_func_list " execve"
2575 as_fn_append ac_func_list " pipe"
2576 as_fn_append ac_func_list " dup2"
2577 as_fn_append ac_func_list " close"
2578 as_fn_append ac_func_list " fcntl"
2579 as_fn_append ac_func_list " strcasestr"
2580 as_fn_append ac_func_list " getrlimit"
2581 as_fn_append ac_func_list " gettimeofday"
2582 as_fn_append ac_func_list " stat"
2583 as_fn_append ac_func_list " fstat"
2584 as_fn_append ac_func_list " lstat"
2585 as_fn_append ac_func_list " getpwuid"
2586 as_fn_append ac_func_list " vsnprintf"
2587 as_fn_append ac_func_list " dup"
2588 as_fn_append ac_func_list " getcwd"
2589 as_fn_append ac_func_list " localtime_r"
2590 as_fn_append ac_func_list " gmtime_r"
2591 as_fn_append ac_func_list " getpwuid_r"
2592 as_fn_append ac_func_list " ttyname_r"
2593 as_fn_append ac_func_list " clock_gettime"
2594 as_fn_append ac_func_list " readlink"
2595 as_fn_append ac_func_list " getgid"
2596 as_fn_append ac_func_list " getpid"
2597 as_fn_append ac_func_list " getppid"
2598 as_fn_append ac_func_list " getuid"
2599 as_fn_append ac_func_list " geteuid"
2600 as_fn_append ac_func_list " umask"
2601 as_fn_append ac_func_list " getegid"
2602 as_fn_append ac_func_list " secure_getenv"
2603 as_fn_append ac_func_list " __secure_getenv"
2604 as_fn_append ac_func_list " mkostemp"
2605 as_fn_append ac_func_list " strnlen"
2606 as_fn_append ac_func_list " strndup"
2607 as_fn_append ac_header_list " math.h"
2608 # Check that the precious variables saved in the cache have kept the same
2609 # value.
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2617 set,)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2621 ,set)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,);;
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2641 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2643 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2644 fi;;
2645 esac
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2648 case $ac_new_val in
2649 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2651 esac
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655 esac
2657 done
2658 if $ac_cache_corrupted; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2665 ## -------------------- ##
2666 ## Main body of script. ##
2667 ## -------------------- ##
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 ac_config_headers="$ac_config_headers config.h"
2681 ac_aux_dir=
2682 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2683 for ac_t in install-sh install.sh shtool; do
2684 if test -f "$ac_dir/$ac_t"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/$ac_t -c"
2687 break 2
2689 done
2690 done
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2704 # Make sure we can run config.sub.
2705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2706 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2709 $as_echo_n "checking build system type... " >&6; }
2710 if test "${ac_cv_build+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 ac_build_alias=$build_alias
2714 test "x$ac_build_alias" = x &&
2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716 test "x$ac_build_alias" = x &&
2717 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2718 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2723 $as_echo "$ac_cv_build" >&6; }
2724 case $ac_cv_build in
2725 *-*-*) ;;
2726 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2727 esac
2728 build=$ac_cv_build
2729 ac_save_IFS=$IFS; IFS='-'
2730 set x $ac_cv_build
2731 shift
2732 build_cpu=$1
2733 build_vendor=$2
2734 shift; shift
2735 # Remember, the first character of IFS is used to create $*,
2736 # except with old shells:
2737 build_os=$*
2738 IFS=$ac_save_IFS
2739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742 case ${build_alias} in
2743 "") build_noncanonical=${build} ;;
2744 *) build_noncanonical=${build_alias} ;;
2745 esac
2747 case ${host_alias} in
2748 "") host_noncanonical=${build_noncanonical} ;;
2749 *) host_noncanonical=${host_alias} ;;
2750 esac
2752 case ${target_alias} in
2753 "") target_noncanonical=${host_noncanonical} ;;
2754 *) target_noncanonical=${target_alias} ;;
2755 esac
2758 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2759 # have matching libraries, they should use host libraries: Makefile.tpl
2760 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2761 # However, they still use the build modules, because the corresponding
2762 # host modules (e.g. bison) are only built for the host when bootstrap
2763 # finishes. So:
2764 # - build_subdir is where we find build modules, and never changes.
2765 # - build_libsubdir is where we find build libraries, and can be overridden.
2767 # Prefix 'build-' so this never conflicts with target_subdir.
2768 build_subdir="build-${build_noncanonical}"
2770 # Check whether --with-build-libsubdir was given.
2771 if test "${with_build_libsubdir+set}" = set; then :
2772 withval=$with_build_libsubdir; build_libsubdir="$withval"
2773 else
2774 build_libsubdir="$build_subdir"
2777 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2778 if ( test $srcdir = . && test -d gcc ) \
2779 || test -d $srcdir/../host-${host_noncanonical}; then
2780 host_subdir="host-${host_noncanonical}"
2781 else
2782 host_subdir=.
2784 # No prefix.
2785 target_subdir=${target_noncanonical}
2788 # -------
2789 # Options
2790 # -------
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2793 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2794 # Check whether --enable-version-specific-runtime-libs was given.
2795 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2796 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2797 yes) version_specific_libs=yes ;;
2798 no) version_specific_libs=no ;;
2799 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2800 esac
2801 else
2802 version_specific_libs=no
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2806 $as_echo "$version_specific_libs" >&6; }
2808 # Build with intermodule optimisations
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2810 $as_echo_n "checking for --enable-intermodule... " >&6; }
2811 # Check whether --enable-intermodule was given.
2812 if test "${enable_intermodule+set}" = set; then :
2813 enableval=$enable_intermodule; case "$enable_intermodule" in
2814 yes) onestep="-onestep";;
2815 *) onestep="";;
2816 esac
2817 else
2818 onestep=""
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2822 $as_echo "$enable_intermodule" >&6; }
2823 if test x$onestep = x-onestep; then
2824 onestep_TRUE=
2825 onestep_FALSE='#'
2826 else
2827 onestep_TRUE='#'
2828 onestep_FALSE=
2833 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2835 # You will slowly go insane if you do not grok the following fact: when
2836 # building this library, the top-level /target/ becomes the library's /host/.
2838 # configure then causes --target to default to --host, exactly like any
2839 # other package using autoconf. Therefore, 'target' and 'host' will
2840 # always be the same. This makes sense both for native and cross compilers
2841 # just think about it for a little while. :-)
2843 # Also, if this library is being configured as part of a cross compiler, the
2844 # top-level configure script will pass the "real" host as $with_cross_host.
2846 # Do not delete or change the following two lines. For why, see
2847 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2849 $as_echo_n "checking host system type... " >&6; }
2850 if test "${ac_cv_host+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test "x$host_alias" = x; then
2854 ac_cv_host=$ac_cv_build
2855 else
2856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2857 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2862 $as_echo "$ac_cv_host" >&6; }
2863 case $ac_cv_host in
2864 *-*-*) ;;
2865 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2866 esac
2867 host=$ac_cv_host
2868 ac_save_IFS=$IFS; IFS='-'
2869 set x $ac_cv_host
2870 shift
2871 host_cpu=$1
2872 host_vendor=$2
2873 shift; shift
2874 # Remember, the first character of IFS is used to create $*,
2875 # except with old shells:
2876 host_os=$*
2877 IFS=$ac_save_IFS
2878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2882 $as_echo_n "checking target system type... " >&6; }
2883 if test "${ac_cv_target+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test "x$target_alias" = x; then
2887 ac_cv_target=$ac_cv_host
2888 else
2889 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2890 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2895 $as_echo "$ac_cv_target" >&6; }
2896 case $ac_cv_target in
2897 *-*-*) ;;
2898 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2899 esac
2900 target=$ac_cv_target
2901 ac_save_IFS=$IFS; IFS='-'
2902 set x $ac_cv_target
2903 shift
2904 target_cpu=$1
2905 target_vendor=$2
2906 shift; shift
2907 # Remember, the first character of IFS is used to create $*,
2908 # except with old shells:
2909 target_os=$*
2910 IFS=$ac_save_IFS
2911 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2914 # The aliases save the names the user supplied, while $host etc.
2915 # will get canonicalized.
2916 test -n "$target_alias" &&
2917 test "$program_prefix$program_suffix$program_transform_name" = \
2918 NONENONEs,x,x, &&
2919 program_prefix=${target_alias}-
2924 target_alias=${target_alias-$host_alias}
2927 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2928 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2929 # 1.9.6: minimum required version
2930 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2931 # of other PACKAGE_* variables will, however, and there's nothing
2932 # we can do about that; they come from AC_INIT).
2933 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2934 # file in the top srcdir, etc, etc), so stop complaining.
2935 # no-dist: we don't want 'dist' and related rules.
2936 # -Wall: turns on all automake warnings...
2937 # -Wno-portability: ...except this one, since GNU make is required.
2938 am__api_version='1.11'
2940 # Find a good install program. We prefer a C program (faster),
2941 # so one script is as good as another. But avoid the broken or
2942 # incompatible versions:
2943 # SysV /etc/install, /usr/sbin/install
2944 # SunOS /usr/etc/install
2945 # IRIX /sbin/install
2946 # AIX /bin/install
2947 # AmigaOS /C/install, which installs bootblocks on floppy discs
2948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2951 # OS/2's system install, which has a completely different semantic
2952 # ./install, which can be erroneously created by make from ./install.sh.
2953 # Reject install programs that cannot install multiple files.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2955 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2956 if test -z "$INSTALL"; then
2957 if test "${ac_cv_path_install+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 # Account for people who put trailing slashes in PATH elements.
2966 case $as_dir/ in #((
2967 ./ | .// | /[cC]/* | \
2968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2969 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2970 /usr/ucb/* ) ;;
2972 # OSF1 and SCO ODT 3.0 have their own names for install.
2973 # Don't use installbsd from OSF since it installs stuff as root
2974 # by default.
2975 for ac_prog in ginstall scoinst install; do
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2978 if test $ac_prog = install &&
2979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # AIX install. It has an incompatible calling convention.
2982 elif test $ac_prog = install &&
2983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984 # program-specific install script used by HP pwplus--don't use.
2986 else
2987 rm -rf conftest.one conftest.two conftest.dir
2988 echo one > conftest.one
2989 echo two > conftest.two
2990 mkdir conftest.dir
2991 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2992 test -s conftest.one && test -s conftest.two &&
2993 test -s conftest.dir/conftest.one &&
2994 test -s conftest.dir/conftest.two
2995 then
2996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2997 break 3
3001 done
3002 done
3004 esac
3006 done
3007 IFS=$as_save_IFS
3009 rm -rf conftest.one conftest.two conftest.dir
3012 if test "${ac_cv_path_install+set}" = set; then
3013 INSTALL=$ac_cv_path_install
3014 else
3015 # As a last resort, use the slow shell script. Don't cache a
3016 # value for INSTALL within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the value is a relative name.
3019 INSTALL=$ac_install_sh
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3023 $as_echo "$INSTALL" >&6; }
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3034 $as_echo_n "checking whether build environment is sane... " >&6; }
3035 # Just in case
3036 sleep 1
3037 echo timestamp > conftest.file
3038 # Reject unsafe characters in $srcdir or the absolute working directory
3039 # name. Accept space and tab only in the latter.
3040 am_lf='
3042 case `pwd` in
3043 *[\\\"\#\$\&\'\`$am_lf]*)
3044 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3045 esac
3046 case $srcdir in
3047 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3048 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3049 esac
3051 # Do `set' in a subshell so we don't clobber the current shell's
3052 # arguments. Must try -L first in case configure is actually a
3053 # symlink; some systems play weird games with the mod time of symlinks
3054 # (eg FreeBSD returns the mod time of the symlink's containing
3055 # directory).
3056 if (
3057 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3058 if test "$*" = "X"; then
3059 # -L didn't work.
3060 set X `ls -t "$srcdir/configure" conftest.file`
3062 rm -f conftest.file
3063 if test "$*" != "X $srcdir/configure conftest.file" \
3064 && test "$*" != "X conftest.file $srcdir/configure"; then
3066 # If neither matched, then we have a broken ls. This can happen
3067 # if, for instance, CONFIG_SHELL is bash and it inherits a
3068 # broken ls alias from the environment. This has actually
3069 # happened. Such a system could not be considered "sane".
3070 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3071 alias in your environment" "$LINENO" 5
3074 test "$2" = conftest.file
3076 then
3077 # Ok.
3079 else
3080 as_fn_error "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095 # expand $ac_aux_dir to an absolute path
3096 am_aux_dir=`cd $ac_aux_dir && pwd`
3098 if test x"${MISSING+set}" != xset; then
3099 case $am_aux_dir in
3100 *\ * | *\ *)
3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3104 esac
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --run true"; then
3108 am_missing_run="$MISSING --run "
3109 else
3110 am_missing_run=
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3115 if test x"${install_sh}" != xset; then
3116 case $am_aux_dir in
3117 *\ * | *\ *)
3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 install_sh="\${SHELL} $am_aux_dir/install-sh"
3121 esac
3124 # Installed binaries are usually stripped using `strip' when the user
3125 # run `make install-strip'. However `strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the `STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_STRIP+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$ac_cv_prog_STRIP"; then
3169 ac_ct_STRIP=$STRIP
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_ac_ct_STRIP="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3206 if test "x$ac_ct_STRIP" = x; then
3207 STRIP=":"
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 STRIP=$ac_ct_STRIP
3217 else
3218 STRIP="$ac_cv_prog_STRIP"
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if test "${ac_cv_path_mkdir+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in mkdir gmkdir; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3243 break 3;;
3244 esac
3245 done
3246 done
3247 done
3248 IFS=$as_save_IFS
3252 if test "${ac_cv_path_mkdir+set}" = set; then
3253 MKDIR_P="$ac_cv_path_mkdir -p"
3254 else
3255 # As a last resort, use the slow shell script. Don't cache a
3256 # value for MKDIR_P within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the value is a relative name.
3259 test -d ./--version && rmdir ./--version
3260 MKDIR_P="$ac_install_sh -d"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3266 mkdir_p="$MKDIR_P"
3267 case $mkdir_p in
3268 [\\/$]* | ?:[\\/]*) ;;
3269 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3270 esac
3272 for ac_prog in gawk mawk nawk awk
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_AWK+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$AWK"; then
3282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_AWK="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 AWK=$ac_cv_prog_AWK
3302 if test -n "$AWK"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3304 $as_echo "$AWK" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$AWK" && break
3312 done
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3316 set x ${MAKE-make}
3317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3318 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat >conftest.make <<\_ACEOF
3322 SHELL = /bin/sh
3323 all:
3324 @echo '@@@%%%=$(MAKE)=@@@%%%'
3325 _ACEOF
3326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3328 *@@@%%%=?*=@@@%%%*)
3329 eval ac_cv_prog_make_${ac_make}_set=yes;;
3331 eval ac_cv_prog_make_${ac_make}_set=no;;
3332 esac
3333 rm -f conftest.make
3335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338 SET_MAKE=
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 SET_MAKE="MAKE=${MAKE-make}"
3345 rm -rf .tst 2>/dev/null
3346 mkdir .tst 2>/dev/null
3347 if test -d .tst; then
3348 am__leading_dot=.
3349 else
3350 am__leading_dot=_
3352 rmdir .tst 2>/dev/null
3354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3356 # is not polluted with repeated "-I."
3357 am__isrc=' -I$(srcdir)'
3358 # test to see if srcdir already configured
3359 if test -f $srcdir/config.status; then
3360 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3364 # test whether we have cygpath
3365 if test -z "$CYGPATH_W"; then
3366 if (cygpath --version) >/dev/null 2>/dev/null; then
3367 CYGPATH_W='cygpath -w'
3368 else
3369 CYGPATH_W=echo
3374 # Define the identity of the package.
3375 PACKAGE='libgfortran'
3376 VERSION='0.3'
3379 # Some tools Automake needs.
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # We need awk for the "check" target. The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility. Yes, it's still used
3398 # in the wild :-( We should find a proper way to deprecate it ...
3399 AMTAR='$${TAR-tar}'
3401 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3411 # Check whether --enable-maintainer-mode was given.
3412 if test "${enable_maintainer_mode+set}" = set; then :
3413 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3414 else
3415 USE_MAINTAINER_MODE=no
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3420 if test $USE_MAINTAINER_MODE = yes; then
3421 MAINTAINER_MODE_TRUE=
3422 MAINTAINER_MODE_FALSE='#'
3423 else
3424 MAINTAINER_MODE_TRUE='#'
3425 MAINTAINER_MODE_FALSE=
3428 MAINT=$MAINTAINER_MODE_TRUE
3431 # Default to --enable-multilib
3432 # Check whether --enable-multilib was given.
3433 if test "${enable_multilib+set}" = set; then :
3434 enableval=$enable_multilib; case "$enableval" in
3435 yes) multilib=yes ;;
3436 no) multilib=no ;;
3437 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3438 esac
3439 else
3440 multilib=yes
3444 # We may get other options which we leave undocumented:
3445 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3446 # See config-ml.in if you want the gory details.
3448 if test "$srcdir" = "."; then
3449 if test "$with_target_subdir" != "."; then
3450 multi_basedir="$srcdir/$with_multisrctop../.."
3451 else
3452 multi_basedir="$srcdir/$with_multisrctop.."
3454 else
3455 multi_basedir="$srcdir/.."
3459 # Even if the default multilib is not a cross compilation,
3460 # it may be that some of the other multilibs are.
3461 if test $cross_compiling = no && test $multilib = yes \
3462 && test "x${with_multisubdir}" != x ; then
3463 cross_compiling=maybe
3466 ac_config_commands="$ac_config_commands default-1"
3469 # Handy for debugging:
3470 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3472 # Are we being configured with some form of cross compiler?
3473 # NB: We don't actually need to know this just now, but when, say, a test
3474 # suite is included, we'll have to know.
3475 if test "$build" != "$host"; then
3476 LIBGFOR_IS_NATIVE=false
3478 else
3479 LIBGFOR_IS_NATIVE=true
3482 DEPDIR="${am__leading_dot}deps"
3484 ac_config_commands="$ac_config_commands depfiles"
3487 am_make=${MAKE-make}
3488 cat > confinc << 'END'
3489 am__doit:
3490 @echo this is the am__doit target
3491 .PHONY: am__doit
3493 # If we don't find an include directive, just comment out the code.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3495 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3496 am__include="#"
3497 am__quote=
3498 _am_result=none
3499 # First try GNU make style include.
3500 echo "include confinc" > confmf
3501 # Ignore all kinds of additional output from `make'.
3502 case `$am_make -s -f confmf 2> /dev/null` in #(
3503 *the\ am__doit\ target*)
3504 am__include=include
3505 am__quote=
3506 _am_result=GNU
3508 esac
3509 # Now try BSD make style include.
3510 if test "$am__include" = "#"; then
3511 echo '.include "confinc"' > confmf
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=.include
3515 am__quote="\""
3516 _am_result=BSD
3518 esac
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3523 $as_echo "$_am_result" >&6; }
3524 rm -f confinc confmf
3526 # Check whether --enable-dependency-tracking was given.
3527 if test "${enable_dependency_tracking+set}" = set; then :
3528 enableval=$enable_dependency_tracking;
3531 if test "x$enable_dependency_tracking" != xno; then
3532 am_depcomp="$ac_aux_dir/depcomp"
3533 AMDEPBACKSLASH='\'
3534 am__nodep='_no'
3536 if test "x$enable_dependency_tracking" != xno; then
3537 AMDEP_TRUE=
3538 AMDEP_FALSE='#'
3539 else
3540 AMDEP_TRUE='#'
3541 AMDEP_FALSE=
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3638 else
3639 CC="$ac_cv_prog_CC"
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CC" && break
3781 done
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CC" && break
3825 done
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details." "$LINENO" 5; }
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3867 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 # FIXME: Cleanup?
3885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3886 (eval $ac_link) 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; then :
3890 gcc_no_link=no
3891 else
3892 gcc_no_link=yes
3894 if test x$gcc_no_link = xyes; then
3895 # Setting cross_compile will disable run tests; it will
3896 # also disable AC_CHECK_FILE but that's generally
3897 # correct if we can't link.
3898 cross_compiling=yes
3899 EXEEXT=
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 ac_clean_files_save=$ac_clean_files
3913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3914 # Try to create an executable without -o first, disregard a.out.
3915 # It will help us diagnose broken compilers, and finding out an intuition
3916 # of exeext.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3918 $as_echo_n "checking for C compiler default output file name... " >&6; }
3919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3921 # The possible output files:
3922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3924 ac_rmfiles=
3925 for ac_file in $ac_files
3927 case $ac_file in
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3930 esac
3931 done
3932 rm -f $ac_rmfiles
3934 if { { ac_try="$ac_link_default"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_link_default") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3948 # so that the user can short-circuit this test for compilers unknown to
3949 # Autoconf.
3950 for ac_file in $ac_files ''
3952 test -f "$ac_file" || continue
3953 case $ac_file in
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3956 [ab].out )
3957 # We found the default executable, but exeext='' is most
3958 # certainly right.
3959 break;;
3960 *.* )
3961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3962 then :; else
3963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 # We set ac_cv_exeext here because the later test for it is not
3966 # safe: cross compilers may not add the suffix if given an `-o'
3967 # argument, so we may need to know it at that point already.
3968 # Even if this section looks crufty: it has the advantage of
3969 # actually working.
3970 break;;
3972 break;;
3973 esac
3974 done
3975 test "$ac_cv_exeext" = no && ac_cv_exeext=
3977 else
3978 ac_file=''
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3981 $as_echo "$ac_file" >&6; }
3982 if test -z "$ac_file"; then :
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 { as_fn_set_status 77
3989 as_fn_error "C compiler cannot create executables
3990 See \`config.log' for more details." "$LINENO" 5; }; }
3992 ac_exeext=$ac_cv_exeext
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3997 $as_echo_n "checking whether the C compiler works... " >&6; }
3998 # If not cross compiling, check that we can run a simple program.
3999 if test "$cross_compiling" != yes; then
4000 if { ac_try='./$ac_file'
4001 { { case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_try") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; }; then
4011 cross_compiling=no
4012 else
4013 if test "$cross_compiling" = maybe; then
4014 cross_compiling=yes
4015 else
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error "cannot run C compiled programs.
4019 If you meant to cross compile, use \`--host'.
4020 See \`config.log' for more details." "$LINENO" 5; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4028 ac_clean_files=$ac_clean_files_save
4029 # Check that the compiler produces executables we can run. If not, either
4030 # the compiler is broken, or we cross compile.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4032 $as_echo_n "checking whether we are cross compiling... " >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4034 $as_echo "$cross_compiling" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4037 $as_echo_n "checking for suffix of executables... " >&6; }
4038 if { { ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 $as_echo "$ac_try_echo"; } >&5
4045 (eval "$ac_link") 2>&5
4046 ac_status=$?
4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }; then :
4049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4051 # work properly (i.e., refer to `conftest.exe'), while it won't with
4052 # `rm'.
4053 for ac_file in conftest.exe conftest conftest.*; do
4054 test -f "$ac_file" || continue
4055 case $ac_file in
4056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4058 break;;
4059 * ) break;;
4060 esac
4061 done
4062 else
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error "cannot compute suffix of executables: cannot compile and link
4066 See \`config.log' for more details." "$LINENO" 5; }
4068 rm -f conftest$ac_cv_exeext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4070 $as_echo "$ac_cv_exeext" >&6; }
4072 rm -f conftest.$ac_ext
4073 EXEEXT=$ac_cv_exeext
4074 ac_exeext=$EXEEXT
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4077 $as_echo_n "checking for suffix of object files... " >&6; }
4078 if test "${ac_cv_objext+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4085 main ()
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.o conftest.obj
4093 if { { ac_try="$ac_compile"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_compile") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; then :
4104 for ac_file in conftest.o conftest.obj conftest.*; do
4105 test -f "$ac_file" || continue;
4106 case $ac_file in
4107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4109 break;;
4110 esac
4111 done
4112 else
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118 as_fn_error "cannot compute suffix of object files: cannot compile
4119 See \`config.log' for more details." "$LINENO" 5; }
4121 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4124 $as_echo "$ac_cv_objext" >&6; }
4125 OBJEXT=$ac_cv_objext
4126 ac_objext=$OBJEXT
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4129 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main ()
4138 #ifndef __GNUC__
4139 choke me
4140 #endif
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_compiler_gnu=yes
4148 else
4149 ac_compiler_gnu=no
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4157 if test $ac_compiler_gnu = yes; then
4158 GCC=yes
4159 else
4160 GCC=
4162 ac_test_CFLAGS=${CFLAGS+set}
4163 ac_save_CFLAGS=$CFLAGS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4166 if test "${ac_cv_prog_cc_g+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_save_c_werror_flag=$ac_c_werror_flag
4170 ac_c_werror_flag=yes
4171 ac_cv_prog_cc_g=no
4172 CFLAGS="-g"
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_g=yes
4186 else
4187 CFLAGS=""
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4192 main ()
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4201 else
4202 ac_c_werror_flag=$ac_save_c_werror_flag
4203 CFLAGS="-g"
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4208 main ()
4212 return 0;
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_g=yes
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_c_werror_flag=$ac_save_c_werror_flag
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4226 $as_echo "$ac_cv_prog_cc_g" >&6; }
4227 if test "$ac_test_CFLAGS" = set; then
4228 CFLAGS=$ac_save_CFLAGS
4229 elif test $ac_cv_prog_cc_g = yes; then
4230 if test "$GCC" = yes; then
4231 CFLAGS="-g -O2"
4232 else
4233 CFLAGS="-g"
4235 else
4236 if test "$GCC" = yes; then
4237 CFLAGS="-O2"
4238 else
4239 CFLAGS=
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4243 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4244 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 ac_cv_prog_cc_c89=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdarg.h>
4252 #include <stdio.h>
4253 #include <sys/types.h>
4254 #include <sys/stat.h>
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 depcc="$CC" am_compiler_list=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342 $as_echo_n "checking dependency style of $depcc... " >&6; }
4343 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347 # We make a subdir and do the tests there. Otherwise we can end up
4348 # making bogus files that we don't know about and never remove. For
4349 # instance it was reported that on HP-UX the gcc test will end up
4350 # making a dummy file named `D' -- because `-MD' means `put the output
4351 # in D'.
4352 rm -rf conftest.dir
4353 mkdir conftest.dir
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4357 cd conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4363 # directory.
4364 mkdir sub
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 am__universal=false
4371 case " $depcc " in #(
4372 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4373 esac
4375 for depmode in $am_compiler_list; do
4376 # Setup a source with many dependencies, because some compilers
4377 # like to wrap large dependency lists on column 80 (with \), and
4378 # we should not choose a depcomp mode which is confused by this.
4380 # We need to recreate these files for each test, as the compiler may
4381 # overwrite some of them when testing with obscure command lines.
4382 # This happens at least with the AIX C compiler.
4383 : > sub/conftest.c
4384 for i in 1 2 3 4 5 6; do
4385 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4386 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4387 # Solaris 8's {/usr,}/bin/sh.
4388 touch sub/conftst$i.h
4389 done
4390 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4393 # mode. It turns out that the SunPro C++ compiler does not properly
4394 # handle `-M -o', and we need to detect this. Also, some Intel
4395 # versions had trouble with output in subdirs
4396 am__obj=sub/conftest.${OBJEXT-o}
4397 am__minus_obj="-o $am__obj"
4398 case $depmode in
4399 gcc)
4400 # This depmode causes a compiler race in universal mode.
4401 test "$am__universal" = false || continue
4403 nosideeffect)
4404 # after this tag, mechanisms are not by side-effect, so they'll
4405 # only be used when explicitly requested
4406 if test "x$enable_dependency_tracking" = xyes; then
4407 continue
4408 else
4409 break
4412 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4413 # This compiler won't grok `-c -o', but also, the minuso test has
4414 # not run yet. These depmodes are late enough in the game, and
4415 # so weak that their functioning should not be impacted.
4416 am__obj=conftest.${OBJEXT-o}
4417 am__minus_obj=
4419 none) break ;;
4420 esac
4421 if depmode=$depmode \
4422 source=sub/conftest.c object=$am__obj \
4423 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4424 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4425 >/dev/null 2>conftest.err &&
4426 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4430 # icc doesn't choke on unknown options, it will just issue warnings
4431 # or remarks (even with -Werror). So we grep stderr for any message
4432 # that says an option was ignored or not supported.
4433 # When given -MP, icc 7.0 and 7.1 complain thusly:
4434 # icc: Command line warning: ignoring option '-M'; no argument required
4435 # The diagnosis changed in icc 8.0:
4436 # icc: Command line remark: option '-MP' not supported
4437 if (grep 'ignoring option' conftest.err ||
4438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4439 am_cv_CC_dependencies_compiler_type=$depmode
4440 break
4443 done
4445 cd ..
4446 rm -rf conftest.dir
4447 else
4448 am_cv_CC_dependencies_compiler_type=none
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4453 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4454 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457 test "x$enable_dependency_tracking" != xno \
4458 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4459 am__fastdepCC_TRUE=
4460 am__fastdepCC_FALSE='#'
4461 else
4462 am__fastdepCC_TRUE='#'
4463 am__fastdepCC_FALSE=
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4475 # On Suns, sometimes $CPP names a directory.
4476 if test -n "$CPP" && test -d "$CPP"; then
4477 CPP=
4479 if test -z "$CPP"; then
4480 if test "${ac_cv_prog_CPP+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 # Double quotes because CPP needs to be expanded
4484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4486 ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4489 # Use a header file that comes with gcc, so configuring glibc
4490 # with a fresh cross-compiler works.
4491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 # <limits.h> exists even on freestanding compilers.
4493 # On the NeXT, cc -E runs the code through the compiler's parser,
4494 # not just through cpp. "Syntax error" is here to catch this case.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502 Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4506 else
4507 # Broken: fails on valid input.
4508 continue
4510 rm -f conftest.err conftest.$ac_ext
4512 # OK, works on sane cases. Now check whether nonexistent headers
4513 # can be detected and how.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: success on invalid input.
4520 continue
4521 else
4522 # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4526 rm -f conftest.err conftest.$ac_ext
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532 break
4535 done
4536 ac_cv_prog_CPP=$CPP
4539 CPP=$ac_cv_prog_CPP
4540 else
4541 ac_cv_prog_CPP=$CPP
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4544 $as_echo "$CPP" >&6; }
4545 ac_preproc_ok=false
4546 for ac_c_preproc_warn_flag in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4565 else
4566 # Broken: fails on valid input.
4567 continue
4569 rm -f conftest.err conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4578 # Broken: success on invalid input.
4579 continue
4580 else
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4585 rm -f conftest.err conftest.$ac_ext
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4592 else
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4596 See \`config.log' for more details." "$LINENO" 5; }
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if test "${ac_cv_path_GREP+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -z "$GREP"; then
4612 ac_path_GREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in grep ggrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624 # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4626 *GNU*)
4627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629 ac_count=0
4630 $as_echo_n 0123456789 >"conftest.in"
4631 while :
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'GREP' >> "conftest.nl"
4637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_GREP="$ac_path_GREP"
4643 ac_path_GREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4647 done
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4651 $ac_path_GREP_found && break 3
4652 done
4653 done
4654 done
4655 IFS=$as_save_IFS
4656 if test -z "$ac_cv_path_GREP"; then
4657 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659 else
4660 ac_cv_path_GREP=$GREP
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666 GREP="$ac_cv_path_GREP"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675 then ac_cv_path_EGREP="$GREP -E"
4676 else
4677 if test -z "$EGREP"; then
4678 ac_path_EGREP_found=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_prog in egrep; do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4688 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4692 *GNU*)
4693 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695 ac_count=0
4696 $as_echo_n 0123456789 >"conftest.in"
4697 while :
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'EGREP' >> "conftest.nl"
4703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705 as_fn_arith $ac_count + 1 && ac_count=$as_val
4706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_EGREP="$ac_path_EGREP"
4709 ac_path_EGREP_max=$ac_count
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4713 done
4714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4717 $ac_path_EGREP_found && break 3
4718 done
4719 done
4720 done
4721 IFS=$as_save_IFS
4722 if test -z "$ac_cv_path_EGREP"; then
4723 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 else
4726 ac_cv_path_EGREP=$EGREP
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733 EGREP="$ac_cv_path_EGREP"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4737 $as_echo_n "checking for ANSI C header files... " >&6; }
4738 if test "${ac_cv_header_stdc+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <stdlib.h>
4744 #include <stdarg.h>
4745 #include <string.h>
4746 #include <float.h>
4749 main ()
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_header_stdc=yes
4758 else
4759 ac_cv_header_stdc=no
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 if test $ac_cv_header_stdc = yes; then
4764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <string.h>
4769 _ACEOF
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "memchr" >/dev/null 2>&1; then :
4773 else
4774 ac_cv_header_stdc=no
4776 rm -f conftest*
4780 if test $ac_cv_header_stdc = yes; then
4781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <stdlib.h>
4786 _ACEOF
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 $EGREP "free" >/dev/null 2>&1; then :
4790 else
4791 ac_cv_header_stdc=no
4793 rm -f conftest*
4797 if test $ac_cv_header_stdc = yes; then
4798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4799 if test "$cross_compiling" = yes; then :
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <ctype.h>
4805 #include <stdlib.h>
4806 #if ((' ' & 0x0FF) == 0x020)
4807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4809 #else
4810 # define ISLOWER(c) \
4811 (('a' <= (c) && (c) <= 'i') \
4812 || ('j' <= (c) && (c) <= 'r') \
4813 || ('s' <= (c) && (c) <= 'z'))
4814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #endif
4817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4819 main ()
4821 int i;
4822 for (i = 0; i < 256; i++)
4823 if (XOR (islower (i), ISLOWER (i))
4824 || toupper (i) != TOUPPER (i))
4825 return 2;
4826 return 0;
4828 _ACEOF
4829 if ac_fn_c_try_run "$LINENO"; then :
4831 else
4832 ac_cv_header_stdc=no
4834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4835 conftest.$ac_objext conftest.beam conftest.$ac_ext
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4841 $as_echo "$ac_cv_header_stdc" >&6; }
4842 if test $ac_cv_header_stdc = yes; then
4844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4849 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4850 inttypes.h stdint.h unistd.h
4851 do :
4852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4855 eval as_val=\$$as_ac_Header
4856 if test "x$as_val" = x""yes; then :
4857 cat >>confdefs.h <<_ACEOF
4858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4863 done
4867 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4868 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4869 MINIX=yes
4870 else
4871 MINIX=
4875 if test "$MINIX" = yes; then
4877 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4880 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4883 $as_echo "#define _MINIX 1" >>confdefs.h
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4889 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4890 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4896 # define __EXTENSIONS__ 1
4897 $ac_includes_default
4899 main ()
4903 return 0;
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_safe_to_define___extensions__=yes
4908 else
4909 ac_cv_safe_to_define___extensions__=no
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4914 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4918 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4920 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4922 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4924 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4928 # Calculate toolexeclibdir
4929 # Also toolexecdir, though it's only used in toolexeclibdir
4930 case ${version_specific_libs} in
4931 yes)
4932 # Need the gcc compiler version to know where to install libraries
4933 # and header files if --enable-version-specific-runtime-libs option
4934 # is selected.
4935 toolexecdir='$(libdir)/gcc/$(target_alias)'
4936 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4939 if test -n "$with_cross_host" &&
4940 test x"$with_cross_host" != x"no"; then
4941 # Install a library built with a cross compiler in tooldir, not libdir.
4942 toolexecdir='$(exec_prefix)/$(target_alias)'
4943 toolexeclibdir='$(toolexecdir)/lib'
4944 else
4945 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4946 toolexeclibdir='$(libdir)'
4948 multi_os_directory=`$CC -print-multi-os-directory`
4949 case $multi_os_directory in
4950 .) ;; # Avoid trailing /.
4951 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4952 esac
4954 esac
4958 # Create a spec file, so that compile/link tests don't fail
4959 test -f libgfortran.spec || touch libgfortran.spec
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 # Check the compiler.
4968 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4969 # We must force CC to /not/ be precious variables; otherwise
4970 # the wrong, non-multilib-adjusted value will be used in multilibs.
4971 # As a side effect, we have to subst CFLAGS ourselves.
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_prog_CC+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5004 IFS=$as_save_IFS
5008 CC=$ac_cv_prog_CC
5009 if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5019 if test -z "$ac_cv_prog_CC"; then
5020 ac_ct_CC=$CC
5021 # Extract the first word of "gcc", so it can be a program name with args.
5022 set dummy gcc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$ac_ct_CC"; then
5029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_ac_ct_CC="gcc"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5049 if test -n "$ac_ct_CC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5051 $as_echo "$ac_ct_CC" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5057 if test "x$ac_ct_CC" = x; then
5058 CC=""
5059 else
5060 case $cross_compiling:$ac_tool_warned in
5061 yes:)
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064 ac_tool_warned=yes ;;
5065 esac
5066 CC=$ac_ct_CC
5068 else
5069 CC="$ac_cv_prog_CC"
5072 if test -z "$CC"; then
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}cc; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_CC+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$CC"; then
5082 ac_cv_prog_CC="$CC" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_CC="${ac_tool_prefix}cc"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 CC=$ac_cv_prog_CC
5102 if test -n "$CC"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104 $as_echo "$CC" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5113 if test -z "$CC"; then
5114 # Extract the first word of "cc", so it can be a program name with args.
5115 set dummy cc; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_CC+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$CC"; then
5122 ac_cv_prog_CC="$CC" # Let the user override the test.
5123 else
5124 ac_prog_rejected=no
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5133 ac_prog_rejected=yes
5134 continue
5136 ac_cv_prog_CC="cc"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5142 IFS=$as_save_IFS
5144 if test $ac_prog_rejected = yes; then
5145 # We found a bogon in the path, so make sure we never use it.
5146 set dummy $ac_cv_prog_CC
5147 shift
5148 if test $# != 0; then
5149 # We chose a different compiler from the bogus one.
5150 # However, it has the same basename, so the bogon will be chosen
5151 # first if we set CC to just the basename; use the full file name.
5152 shift
5153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5158 CC=$ac_cv_prog_CC
5159 if test -n "$CC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5161 $as_echo "$CC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$CC"; then
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in cl.exe
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_prog_CC+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$CC"; then
5181 ac_cv_prog_CC="$CC" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5194 done
5195 done
5196 IFS=$as_save_IFS
5200 CC=$ac_cv_prog_CC
5201 if test -n "$CC"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5203 $as_echo "$CC" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 test -n "$CC" && break
5211 done
5213 if test -z "$CC"; then
5214 ac_ct_CC=$CC
5215 for ac_prog in cl.exe
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$ac_ct_CC"; then
5225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_ac_ct_CC="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5245 if test -n "$ac_ct_CC"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5247 $as_echo "$ac_ct_CC" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 test -n "$ac_ct_CC" && break
5255 done
5257 if test "x$ac_ct_CC" = x; then
5258 CC=""
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 CC=$ac_ct_CC
5273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5275 as_fn_error "no acceptable C compiler found in \$PATH
5276 See \`config.log' for more details." "$LINENO" 5; }
5278 # Provide some information about the compiler.
5279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5280 set X $ac_compile
5281 ac_compiler=$2
5282 for ac_option in --version -v -V -qversion; do
5283 { { ac_try="$ac_compiler $ac_option >&5"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5289 $as_echo "$ac_try_echo"; } >&5
5290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5291 ac_status=$?
5292 if test -s conftest.err; then
5293 sed '10a\
5294 ... rest of stderr output deleted ...
5295 10q' conftest.err >conftest.er1
5296 cat conftest.er1 >&5
5297 rm -f conftest.er1 conftest.err
5299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5300 test $ac_status = 0; }
5301 done
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5304 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5305 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 main ()
5314 #ifndef __GNUC__
5315 choke me
5316 #endif
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 ac_compiler_gnu=yes
5324 else
5325 ac_compiler_gnu=no
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5332 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5333 if test $ac_compiler_gnu = yes; then
5334 GCC=yes
5335 else
5336 GCC=
5338 ac_test_CFLAGS=${CFLAGS+set}
5339 ac_save_CFLAGS=$CFLAGS
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5341 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5342 if test "${ac_cv_prog_cc_g+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 ac_save_c_werror_flag=$ac_c_werror_flag
5346 ac_c_werror_flag=yes
5347 ac_cv_prog_cc_g=no
5348 CFLAGS="-g"
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5353 main ()
5357 return 0;
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 ac_cv_prog_cc_g=yes
5362 else
5363 CFLAGS=""
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5368 main ()
5372 return 0;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5377 else
5378 ac_c_werror_flag=$ac_save_c_werror_flag
5379 CFLAGS="-g"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 main ()
5388 return 0;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_prog_cc_g=yes
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_c_werror_flag=$ac_save_c_werror_flag
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5402 $as_echo "$ac_cv_prog_cc_g" >&6; }
5403 if test "$ac_test_CFLAGS" = set; then
5404 CFLAGS=$ac_save_CFLAGS
5405 elif test $ac_cv_prog_cc_g = yes; then
5406 if test "$GCC" = yes; then
5407 CFLAGS="-g -O2"
5408 else
5409 CFLAGS="-g"
5411 else
5412 if test "$GCC" = yes; then
5413 CFLAGS="-O2"
5414 else
5415 CFLAGS=
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5419 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5420 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 ac_cv_prog_cc_c89=no
5424 ac_save_CC=$CC
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <stdarg.h>
5428 #include <stdio.h>
5429 #include <sys/types.h>
5430 #include <sys/stat.h>
5431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5432 struct buf { int x; };
5433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5434 static char *e (p, i)
5435 char **p;
5436 int i;
5438 return p[i];
5440 static char *f (char * (*g) (char **, int), char **p, ...)
5442 char *s;
5443 va_list v;
5444 va_start (v,p);
5445 s = g (p, va_arg (v,int));
5446 va_end (v);
5447 return s;
5450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5451 function prototypes and stuff, but not '\xHH' hex character constants.
5452 These don't provoke an error unfortunately, instead are silently treated
5453 as 'x'. The following induces an error, until -std is added to get
5454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5455 array size at least. It's necessary to write '\x00'==0 to get something
5456 that's true only with -std. */
5457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5460 inside strings and character constants. */
5461 #define FOO(x) 'x'
5462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5464 int test (int i, double x);
5465 struct s1 {int (*f) (int a);};
5466 struct s2 {int (*f) (double a);};
5467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5468 int argc;
5469 char **argv;
5471 main ()
5473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5475 return 0;
5477 _ACEOF
5478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5481 CC="$ac_save_CC $ac_arg"
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_prog_cc_c89=$ac_arg
5485 rm -f core conftest.err conftest.$ac_objext
5486 test "x$ac_cv_prog_cc_c89" != "xno" && break
5487 done
5488 rm -f conftest.$ac_ext
5489 CC=$ac_save_CC
5492 # AC_CACHE_VAL
5493 case "x$ac_cv_prog_cc_c89" in
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5496 $as_echo "none needed" >&6; } ;;
5497 xno)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5499 $as_echo "unsupported" >&6; } ;;
5501 CC="$CC $ac_cv_prog_cc_c89"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5503 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5504 esac
5505 if test "x$ac_cv_prog_cc_c89" != xno; then :
5509 ac_ext=c
5510 ac_cpp='$CPP $CPPFLAGS'
5511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 depcc="$CC" am_compiler_list=
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5518 $as_echo_n "checking dependency style of $depcc... " >&6; }
5519 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5523 # We make a subdir and do the tests there. Otherwise we can end up
5524 # making bogus files that we don't know about and never remove. For
5525 # instance it was reported that on HP-UX the gcc test will end up
5526 # making a dummy file named `D' -- because `-MD' means `put the output
5527 # in D'.
5528 rm -rf conftest.dir
5529 mkdir conftest.dir
5530 # Copy depcomp to subdir because otherwise we won't find it if we're
5531 # using a relative directory.
5532 cp "$am_depcomp" conftest.dir
5533 cd conftest.dir
5534 # We will build objects and dependencies in a subdirectory because
5535 # it helps to detect inapplicable dependency modes. For instance
5536 # both Tru64's cc and ICC support -MD to output dependencies as a
5537 # side effect of compilation, but ICC will put the dependencies in
5538 # the current directory while Tru64 will put them in the object
5539 # directory.
5540 mkdir sub
5542 am_cv_CC_dependencies_compiler_type=none
5543 if test "$am_compiler_list" = ""; then
5544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546 am__universal=false
5547 case " $depcc " in #(
5548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5549 esac
5551 for depmode in $am_compiler_list; do
5552 # Setup a source with many dependencies, because some compilers
5553 # like to wrap large dependency lists on column 80 (with \), and
5554 # we should not choose a depcomp mode which is confused by this.
5556 # We need to recreate these files for each test, as the compiler may
5557 # overwrite some of them when testing with obscure command lines.
5558 # This happens at least with the AIX C compiler.
5559 : > sub/conftest.c
5560 for i in 1 2 3 4 5 6; do
5561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563 # Solaris 8's {/usr,}/bin/sh.
5564 touch sub/conftst$i.h
5565 done
5566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5569 # mode. It turns out that the SunPro C++ compiler does not properly
5570 # handle `-M -o', and we need to detect this. Also, some Intel
5571 # versions had trouble with output in subdirs
5572 am__obj=sub/conftest.${OBJEXT-o}
5573 am__minus_obj="-o $am__obj"
5574 case $depmode in
5575 gcc)
5576 # This depmode causes a compiler race in universal mode.
5577 test "$am__universal" = false || continue
5579 nosideeffect)
5580 # after this tag, mechanisms are not by side-effect, so they'll
5581 # only be used when explicitly requested
5582 if test "x$enable_dependency_tracking" = xyes; then
5583 continue
5584 else
5585 break
5588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5589 # This compiler won't grok `-c -o', but also, the minuso test has
5590 # not run yet. These depmodes are late enough in the game, and
5591 # so weak that their functioning should not be impacted.
5592 am__obj=conftest.${OBJEXT-o}
5593 am__minus_obj=
5595 none) break ;;
5596 esac
5597 if depmode=$depmode \
5598 source=sub/conftest.c object=$am__obj \
5599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5601 >/dev/null 2>conftest.err &&
5602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5606 # icc doesn't choke on unknown options, it will just issue warnings
5607 # or remarks (even with -Werror). So we grep stderr for any message
5608 # that says an option was ignored or not supported.
5609 # When given -MP, icc 7.0 and 7.1 complain thusly:
5610 # icc: Command line warning: ignoring option '-M'; no argument required
5611 # The diagnosis changed in icc 8.0:
5612 # icc: Command line remark: option '-MP' not supported
5613 if (grep 'ignoring option' conftest.err ||
5614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5615 am_cv_CC_dependencies_compiler_type=$depmode
5616 break
5619 done
5621 cd ..
5622 rm -rf conftest.dir
5623 else
5624 am_cv_CC_dependencies_compiler_type=none
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5629 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5633 test "x$enable_dependency_tracking" != xno \
5634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5635 am__fastdepCC_TRUE=
5636 am__fastdepCC_FALSE='#'
5637 else
5638 am__fastdepCC_TRUE='#'
5639 am__fastdepCC_FALSE=
5647 if test "x$CC" != xcc; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5649 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5652 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5654 set dummy $CC; ac_cc=`$as_echo "$2" |
5655 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5656 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5663 main ()
5667 return 0;
5669 _ACEOF
5670 # Make sure it works both with $CC and with simple cc.
5671 # We do the test twice because some compilers refuse to overwrite an
5672 # existing .o file with -o, though they will create one.
5673 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5674 rm -f conftest2.*
5675 if { { case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; } &&
5685 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; };
5695 then
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5697 if test "x$CC" != xcc; then
5698 # Test first that cc exists at all.
5699 if { ac_try='cc -c conftest.$ac_ext >&5'
5700 { { case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5705 $as_echo "$ac_try_echo"; } >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }; }; then
5710 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5711 rm -f conftest2.*
5712 if { { case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5717 $as_echo "$ac_try_echo"; } >&5
5718 (eval "$ac_try") 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; } &&
5722 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; };
5732 then
5733 # cc works too.
5735 else
5736 # cc exists but doesn't like -o.
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5741 else
5742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 rm -f core conftest*
5747 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749 $as_echo "yes" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5754 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5758 # FIXME: we rely on the cache variable name because
5759 # there is no other way.
5760 set dummy $CC
5761 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5762 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5763 if test "$am_t" != yes; then
5764 # Losing compiler, so override with the script.
5765 # FIXME: It is wrong to rewrite CC.
5766 # But if we don't then we get into trouble of one sort or another.
5767 # A longer-term fix would be to have automake use am__CC in this case,
5768 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5769 CC="$am_aux_dir/compile $CC"
5774 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5775 if test "x$GCC" = "xyes"; then
5776 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5777 ## We like to use C11 and C99 routines when available. This makes
5778 ## sure that
5779 ## __STDC_VERSION__ is set such that libc includes make them available.
5780 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration"
5781 ## Compile the following tests with the same system header contents
5782 ## that we'll encounter when compiling our own source files.
5783 CFLAGS="-std=gnu11 $CFLAGS"
5789 # Check for symbol versioning (copied from libssp).
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5791 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5792 # Check whether --enable-symvers was given.
5793 if test "${enable_symvers+set}" = set; then :
5794 enableval=$enable_symvers; gfortran_use_symver=$enableval
5795 else
5796 gfortran_use_symver=yes
5799 if test "x$gfortran_use_symver" != xno; then
5800 save_LDFLAGS="$LDFLAGS"
5801 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5802 cat > conftest.map <<EOF
5803 FOO_1.0 {
5804 global: *foo*; bar; local: *;
5807 if test x$gcc_no_link = xyes; then
5808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 int foo;
5814 main ()
5818 return 0;
5820 _ACEOF
5821 if ac_fn_c_try_link "$LINENO"; then :
5822 gfortran_use_symver=gnu
5823 else
5824 gfortran_use_symver=no
5826 rm -f core conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5828 if test x$gfortran_use_symver = xno; then
5829 case "$target_os" in
5830 solaris2*)
5831 LDFLAGS="$save_LDFLAGS"
5832 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5833 # Sun ld cannot handle wildcards and treats all entries as undefined.
5834 cat > conftest.map <<EOF
5835 FOO_1.0 {
5836 global: foo; local: *;
5839 if test x$gcc_no_link = xyes; then
5840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 int foo;
5846 main ()
5850 return 0;
5852 _ACEOF
5853 if ac_fn_c_try_link "$LINENO"; then :
5854 gfortran_use_symver=sun
5855 else
5856 gfortran_use_symver=no
5858 rm -f core conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
5861 esac
5863 LDFLAGS="$save_LDFLAGS"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5866 $as_echo "$gfortran_use_symver" >&6; }
5867 if test "x$gfortran_use_symver" != xno; then
5868 LIBGFOR_USE_SYMVER_TRUE=
5869 LIBGFOR_USE_SYMVER_FALSE='#'
5870 else
5871 LIBGFOR_USE_SYMVER_TRUE='#'
5872 LIBGFOR_USE_SYMVER_FALSE=
5875 if test "x$gfortran_use_symver" = xgnu; then
5876 LIBGFOR_USE_SYMVER_GNU_TRUE=
5877 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5878 else
5879 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5880 LIBGFOR_USE_SYMVER_GNU_FALSE=
5883 if test "x$gfortran_use_symver" = xsun; then
5884 LIBGFOR_USE_SYMVER_SUN_TRUE=
5885 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5886 else
5887 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5888 LIBGFOR_USE_SYMVER_SUN_FALSE=
5892 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5893 # similarly to how libstdc++ does it
5894 ac_test_CFLAGS="${CFLAGS+set}"
5895 ac_save_CFLAGS="$CFLAGS"
5897 # Check for -ffunction-sections -fdata-sections
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5899 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5900 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5905 main ()
5907 int foo;
5909 return 0;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 ac_fdsections=yes
5914 else
5915 ac_fdsections=no
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 if test "$ac_test_CFLAGS" = set; then
5919 CFLAGS="$ac_save_CFLAGS"
5920 else
5921 # this is the suspicious part
5922 CFLAGS=""
5924 if test x"$ac_fdsections" = x"yes"; then
5925 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5928 $as_echo "$ac_fdsections" >&6; }
5931 # Find other programs we need.
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}as; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_AS+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$AS"; then
5941 ac_cv_prog_AS="$AS" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_AS="${ac_tool_prefix}as"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5956 IFS=$as_save_IFS
5960 AS=$ac_cv_prog_AS
5961 if test -n "$AS"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5963 $as_echo "$AS" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_AS"; then
5972 ac_ct_AS=$AS
5973 # Extract the first word of "as", so it can be a program name with args.
5974 set dummy as; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_AS"; then
5981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_AS="as"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5994 done
5995 done
5996 IFS=$as_save_IFS
6000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6001 if test -n "$ac_ct_AS"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6003 $as_echo "$ac_ct_AS" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_AS" = x; then
6010 AS=""
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 AS=$ac_ct_AS
6020 else
6021 AS="$ac_cv_prog_AS"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ar; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_AR+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$AR"; then
6033 ac_cv_prog_AR="$AR" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_AR="${ac_tool_prefix}ar"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 AR=$ac_cv_prog_AR
6053 if test -n "$AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055 $as_echo "$AR" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_AR"; then
6064 ac_ct_AR=$AR
6065 # Extract the first word of "ar", so it can be a program name with args.
6066 set dummy ar; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_AR"; then
6073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_AR="ar"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6093 if test -n "$ac_ct_AR"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6095 $as_echo "$ac_ct_AR" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_AR" = x; then
6102 AR=""
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 AR=$ac_ct_AR
6112 else
6113 AR="$ac_cv_prog_AR"
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$RANLIB"; then
6125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6138 done
6139 done
6140 IFS=$as_save_IFS
6144 RANLIB=$ac_cv_prog_RANLIB
6145 if test -n "$RANLIB"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6147 $as_echo "$RANLIB" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6155 if test -z "$ac_cv_prog_RANLIB"; then
6156 ac_ct_RANLIB=$RANLIB
6157 # Extract the first word of "ranlib", so it can be a program name with args.
6158 set dummy ranlib; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_RANLIB"; then
6165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_RANLIB="ranlib"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6178 done
6179 done
6180 IFS=$as_save_IFS
6184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6185 if test -n "$ac_ct_RANLIB"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6187 $as_echo "$ac_ct_RANLIB" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6193 if test "x$ac_ct_RANLIB" = x; then
6194 RANLIB="ranlib-not-found-in-path-error"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 RANLIB=$ac_ct_RANLIB
6204 else
6205 RANLIB="$ac_cv_prog_RANLIB"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6210 set x ${MAKE-make}
6211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat >conftest.make <<\_ACEOF
6216 SHELL = /bin/sh
6217 all:
6218 @echo '@@@%%%=$(MAKE)=@@@%%%'
6219 _ACEOF
6220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6222 *@@@%%%=?*=@@@%%%*)
6223 eval ac_cv_prog_make_${ac_make}_set=yes;;
6225 eval ac_cv_prog_make_${ac_make}_set=no;;
6226 esac
6227 rm -f conftest.make
6229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6232 SET_MAKE=
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 SET_MAKE="MAKE=${MAKE-make}"
6241 # Configure libtool
6242 #AC_MSG_NOTICE([====== Starting libtool configuration])
6243 enable_dlopen=yes
6247 case `pwd` in
6248 *\ * | *\ *)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6250 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6251 esac
6255 macro_version='2.2.7a'
6256 macro_revision='1.3134'
6270 ltmain="$ac_aux_dir/ltmain.sh"
6272 # Backslashify metacharacters that are still active within
6273 # double-quoted strings.
6274 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6276 # Same as above, but do not quote variable references.
6277 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6279 # Sed substitution to delay expansion of an escaped shell variable in a
6280 # double_quote_subst'ed string.
6281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6283 # Sed substitution to delay expansion of an escaped single quote.
6284 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6286 # Sed substitution to avoid accidental globbing in evaled expressions
6287 no_glob_subst='s/\*/\\\*/g'
6289 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6290 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6291 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6294 $as_echo_n "checking how to print strings... " >&6; }
6295 # Test print first, because it will be a builtin if present.
6296 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6297 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6298 ECHO='print -r --'
6299 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6300 ECHO='printf %s\n'
6301 else
6302 # Use this function as a fallback that always works.
6303 func_fallback_echo ()
6305 eval 'cat <<_LTECHO_EOF
6307 _LTECHO_EOF'
6309 ECHO='func_fallback_echo'
6312 # func_echo_all arg...
6313 # Invoke $ECHO with all args, space-separated.
6314 func_echo_all ()
6316 $ECHO ""
6319 case "$ECHO" in
6320 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6321 $as_echo "printf" >&6; } ;;
6322 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6323 $as_echo "print -r" >&6; } ;;
6324 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6325 $as_echo "cat" >&6; } ;;
6326 esac
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6342 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6343 if test "${ac_cv_path_SED+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6347 for ac_i in 1 2 3 4 5 6 7; do
6348 ac_script="$ac_script$as_nl$ac_script"
6349 done
6350 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6351 { ac_script=; unset ac_script;}
6352 if test -z "$SED"; then
6353 ac_path_SED_found=false
6354 # Loop through the user's path and test for each of PROGNAME-LIST
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in sed gsed; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6363 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6364 # Check for GNU ac_path_SED and select it if it is found.
6365 # Check for GNU $ac_path_SED
6366 case `"$ac_path_SED" --version 2>&1` in
6367 *GNU*)
6368 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6370 ac_count=0
6371 $as_echo_n 0123456789 >"conftest.in"
6372 while :
6374 cat "conftest.in" "conftest.in" >"conftest.tmp"
6375 mv "conftest.tmp" "conftest.in"
6376 cp "conftest.in" "conftest.nl"
6377 $as_echo '' >> "conftest.nl"
6378 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380 as_fn_arith $ac_count + 1 && ac_count=$as_val
6381 if test $ac_count -gt ${ac_path_SED_max-0}; then
6382 # Best one so far, save it but keep looking for a better one
6383 ac_cv_path_SED="$ac_path_SED"
6384 ac_path_SED_max=$ac_count
6386 # 10*(2^10) chars as input seems more than enough
6387 test $ac_count -gt 10 && break
6388 done
6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390 esac
6392 $ac_path_SED_found && break 3
6393 done
6394 done
6395 done
6396 IFS=$as_save_IFS
6397 if test -z "$ac_cv_path_SED"; then
6398 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6400 else
6401 ac_cv_path_SED=$SED
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6406 $as_echo "$ac_cv_path_SED" >&6; }
6407 SED="$ac_cv_path_SED"
6408 rm -f conftest.sed
6410 test -z "$SED" && SED=sed
6411 Xsed="$SED -e 1s/^X//"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6424 $as_echo_n "checking for fgrep... " >&6; }
6425 if test "${ac_cv_path_FGREP+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6429 then ac_cv_path_FGREP="$GREP -F"
6430 else
6431 if test -z "$FGREP"; then
6432 ac_path_FGREP_found=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_prog in fgrep; do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6442 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6443 # Check for GNU ac_path_FGREP and select it if it is found.
6444 # Check for GNU $ac_path_FGREP
6445 case `"$ac_path_FGREP" --version 2>&1` in
6446 *GNU*)
6447 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6449 ac_count=0
6450 $as_echo_n 0123456789 >"conftest.in"
6451 while :
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 $as_echo 'FGREP' >> "conftest.nl"
6457 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6459 as_fn_arith $ac_count + 1 && ac_count=$as_val
6460 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_FGREP="$ac_path_FGREP"
6463 ac_path_FGREP_max=$ac_count
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6467 done
6468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6469 esac
6471 $ac_path_FGREP_found && break 3
6472 done
6473 done
6474 done
6475 IFS=$as_save_IFS
6476 if test -z "$ac_cv_path_FGREP"; then
6477 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6479 else
6480 ac_cv_path_FGREP=$FGREP
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6486 $as_echo "$ac_cv_path_FGREP" >&6; }
6487 FGREP="$ac_cv_path_FGREP"
6490 test -z "$GREP" && GREP=grep
6510 # Check whether --with-gnu-ld was given.
6511 if test "${with_gnu_ld+set}" = set; then :
6512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6513 else
6514 with_gnu_ld=no
6517 ac_prog=ld
6518 if test "$GCC" = yes; then
6519 # Check if gcc -print-prog-name=ld gives a path.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6521 $as_echo_n "checking for ld used by $CC... " >&6; }
6522 case $host in
6523 *-*-mingw*)
6524 # gcc leaves a trailing carriage return which upsets mingw
6525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6528 esac
6529 case $ac_prog in
6530 # Accept absolute paths.
6531 [\\/]* | ?:[\\/]*)
6532 re_direlt='/[^/][^/]*/\.\./'
6533 # Canonicalize the pathname of ld
6534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6537 done
6538 test -z "$LD" && LD="$ac_prog"
6541 # If it fails, then pretend we aren't using GCC.
6542 ac_prog=ld
6545 # If it is relative, then search for the first ld in PATH.
6546 with_gnu_ld=unknown
6548 esac
6549 elif test "$with_gnu_ld" = yes; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6551 $as_echo_n "checking for GNU ld... " >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6554 $as_echo_n "checking for non-GNU ld... " >&6; }
6556 if test "${lt_cv_path_LD+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -z "$LD"; then
6560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6561 for ac_dir in $PATH; do
6562 IFS="$lt_save_ifs"
6563 test -z "$ac_dir" && ac_dir=.
6564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6565 lt_cv_path_LD="$ac_dir/$ac_prog"
6566 # Check to see if the program is GNU ld. I'd rather use --version,
6567 # but apparently some variants of GNU ld only accept -v.
6568 # Break only if it was the GNU/non-GNU ld that we prefer.
6569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6570 *GNU* | *'with BFD'*)
6571 test "$with_gnu_ld" != no && break
6574 test "$with_gnu_ld" != yes && break
6576 esac
6578 done
6579 IFS="$lt_save_ifs"
6580 else
6581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6585 LD="$lt_cv_path_LD"
6586 if test -n "$LD"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6588 $as_echo "$LD" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6593 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6595 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6596 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6600 case `$LD -v 2>&1 </dev/null` in
6601 *GNU* | *'with BFD'*)
6602 lt_cv_prog_gnu_ld=yes
6605 lt_cv_prog_gnu_ld=no
6607 esac
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6610 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6611 with_gnu_ld=$lt_cv_prog_gnu_ld
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6622 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6623 if test "${lt_cv_path_NM+set}" = set; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$NM"; then
6627 # Let the user override the test.
6628 lt_cv_path_NM="$NM"
6629 else
6630 lt_nm_to_check="${ac_tool_prefix}nm"
6631 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6632 lt_nm_to_check="$lt_nm_to_check nm"
6634 for lt_tmp_nm in $lt_nm_to_check; do
6635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6636 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6637 IFS="$lt_save_ifs"
6638 test -z "$ac_dir" && ac_dir=.
6639 tmp_nm="$ac_dir/$lt_tmp_nm"
6640 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6641 # Check to see if the nm accepts a BSD-compat flag.
6642 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6643 # nm: unknown option "B" ignored
6644 # Tru64's nm complains that /dev/null is an invalid object file
6645 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6646 */dev/null* | *'Invalid file or object type'*)
6647 lt_cv_path_NM="$tmp_nm -B"
6648 break
6651 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6652 */dev/null*)
6653 lt_cv_path_NM="$tmp_nm -p"
6654 break
6657 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6658 continue # so that we can try to find one that supports BSD flags
6660 esac
6662 esac
6664 done
6665 IFS="$lt_save_ifs"
6666 done
6667 : ${lt_cv_path_NM=no}
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6671 $as_echo "$lt_cv_path_NM" >&6; }
6672 if test "$lt_cv_path_NM" != "no"; then
6673 NM="$lt_cv_path_NM"
6674 else
6675 # Didn't find any BSD compatible name lister, look for dumpbin.
6676 if test -n "$DUMPBIN"; then :
6677 # Let the user override the test.
6678 else
6679 if test -n "$ac_tool_prefix"; then
6680 for ac_prog in dumpbin "link -dump"
6682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$DUMPBIN"; then
6690 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6709 DUMPBIN=$ac_cv_prog_DUMPBIN
6710 if test -n "$DUMPBIN"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6712 $as_echo "$DUMPBIN" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6719 test -n "$DUMPBIN" && break
6720 done
6722 if test -z "$DUMPBIN"; then
6723 ac_ct_DUMPBIN=$DUMPBIN
6724 for ac_prog in dumpbin "link -dump"
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_DUMPBIN"; then
6734 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6753 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6754 if test -n "$ac_ct_DUMPBIN"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6756 $as_echo "$ac_ct_DUMPBIN" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6763 test -n "$ac_ct_DUMPBIN" && break
6764 done
6766 if test "x$ac_ct_DUMPBIN" = x; then
6767 DUMPBIN=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 DUMPBIN=$ac_ct_DUMPBIN
6779 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6780 *COFF*)
6781 DUMPBIN="$DUMPBIN -symbols"
6784 DUMPBIN=:
6786 esac
6789 if test "$DUMPBIN" != ":"; then
6790 NM="$DUMPBIN"
6793 test -z "$NM" && NM=nm
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6801 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6802 if test "${lt_cv_nm_interface+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 lt_cv_nm_interface="BSD nm"
6806 echo "int some_variable = 0;" > conftest.$ac_ext
6807 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6808 (eval "$ac_compile" 2>conftest.err)
6809 cat conftest.err >&5
6810 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6811 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6812 cat conftest.err >&5
6813 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6814 cat conftest.out >&5
6815 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6816 lt_cv_nm_interface="MS dumpbin"
6818 rm -f conftest*
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6821 $as_echo "$lt_cv_nm_interface" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6824 $as_echo_n "checking whether ln -s works... " >&6; }
6825 LN_S=$as_ln_s
6826 if test "$LN_S" = "ln -s"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6828 $as_echo "yes" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6831 $as_echo "no, using $LN_S" >&6; }
6834 # find the maximum length of command line arguments
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6836 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6837 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6841 teststring="ABCD"
6843 case $build_os in
6844 msdosdjgpp*)
6845 # On DJGPP, this test can blow up pretty badly due to problems in libc
6846 # (any single argument exceeding 2000 bytes causes a buffer overrun
6847 # during glob expansion). Even if it were fixed, the result of this
6848 # check would be larger than it should be.
6849 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6852 gnu*)
6853 # Under GNU Hurd, this test is not required because there is
6854 # no limit to the length of command line arguments.
6855 # Libtool will interpret -1 as no limit whatsoever
6856 lt_cv_sys_max_cmd_len=-1;
6859 cygwin* | mingw* | cegcc*)
6860 # On Win9x/ME, this test blows up -- it succeeds, but takes
6861 # about 5 minutes as the teststring grows exponentially.
6862 # Worse, since 9x/ME are not pre-emptively multitasking,
6863 # you end up with a "frozen" computer, even though with patience
6864 # the test eventually succeeds (with a max line length of 256k).
6865 # Instead, let's just punt: use the minimum linelength reported by
6866 # all of the supported platforms: 8192 (on NT/2K/XP).
6867 lt_cv_sys_max_cmd_len=8192;
6870 mint*)
6871 # On MiNT this can take a long time and run out of memory.
6872 lt_cv_sys_max_cmd_len=8192;
6875 amigaos*)
6876 # On AmigaOS with pdksh, this test takes hours, literally.
6877 # So we just punt and use a minimum line length of 8192.
6878 lt_cv_sys_max_cmd_len=8192;
6881 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6882 # This has been around since 386BSD, at least. Likely further.
6883 if test -x /sbin/sysctl; then
6884 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6885 elif test -x /usr/sbin/sysctl; then
6886 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6887 else
6888 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6890 # And add a safety zone
6891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6895 interix*)
6896 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6897 lt_cv_sys_max_cmd_len=196608
6900 osf*)
6901 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6902 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6903 # nice to cause kernel panics so lets avoid the loop below.
6904 # First set a reasonable default.
6905 lt_cv_sys_max_cmd_len=16384
6907 if test -x /sbin/sysconfig; then
6908 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6909 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6910 esac
6913 sco3.2v5*)
6914 lt_cv_sys_max_cmd_len=102400
6916 sysv5* | sco5v6* | sysv4.2uw2*)
6917 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6918 if test -n "$kargmax"; then
6919 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6920 else
6921 lt_cv_sys_max_cmd_len=32768
6925 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6926 if test -n "$lt_cv_sys_max_cmd_len"; then
6927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6929 else
6930 # Make teststring a little bigger before we do anything with it.
6931 # a 1K string should be a reasonable start.
6932 for i in 1 2 3 4 5 6 7 8 ; do
6933 teststring=$teststring$teststring
6934 done
6935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6936 # If test is not a shell built-in, we'll probably end up computing a
6937 # maximum length that is only half of the actual maximum length, but
6938 # we can't tell.
6939 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6940 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6941 test $i != 17 # 1/2 MB should be enough
6943 i=`expr $i + 1`
6944 teststring=$teststring$teststring
6945 done
6946 # Only check the string length outside the loop.
6947 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6948 teststring=
6949 # Add a significant safety factor because C++ compilers can tack on
6950 # massive amounts of additional arguments before passing them to the
6951 # linker. It appears as though 1/2 is a usable value.
6952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6955 esac
6959 if test -n $lt_cv_sys_max_cmd_len ; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6961 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6964 $as_echo "none" >&6; }
6966 max_cmd_len=$lt_cv_sys_max_cmd_len
6973 : ${CP="cp -f"}
6974 : ${MV="mv -f"}
6975 : ${RM="rm -f"}
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6978 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6979 # Try some XSI features
6980 xsi_shell=no
6981 ( _lt_dummy="a/b/c"
6982 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6983 = c,a/b,, \
6984 && eval 'test $(( 1 + 1 )) -eq 2 \
6985 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6986 && xsi_shell=yes
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6988 $as_echo "$xsi_shell" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6992 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6993 lt_shell_append=no
6994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6995 >/dev/null 2>&1 \
6996 && lt_shell_append=yes
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6998 $as_echo "$lt_shell_append" >&6; }
7001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7002 lt_unset=unset
7003 else
7004 lt_unset=false
7011 # test EBCDIC or ASCII
7012 case `echo X|tr X '\101'` in
7013 A) # ASCII based system
7014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7015 lt_SP2NL='tr \040 \012'
7016 lt_NL2SP='tr \015\012 \040\040'
7018 *) # EBCDIC based system
7019 lt_SP2NL='tr \100 \n'
7020 lt_NL2SP='tr \r\n \100\100'
7022 esac
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7033 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7034 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 lt_cv_ld_reload_flag='-r'
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7040 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7041 reload_flag=$lt_cv_ld_reload_flag
7042 case $reload_flag in
7043 "" | " "*) ;;
7044 *) reload_flag=" $reload_flag" ;;
7045 esac
7046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7047 case $host_os in
7048 darwin*)
7049 if test "$GCC" = yes; then
7050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7051 else
7052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7055 esac
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$OBJDUMP"; then
7074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 OBJDUMP=$ac_cv_prog_OBJDUMP
7094 if test -n "$OBJDUMP"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7096 $as_echo "$OBJDUMP" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7104 if test -z "$ac_cv_prog_OBJDUMP"; then
7105 ac_ct_OBJDUMP=$OBJDUMP
7106 # Extract the first word of "objdump", so it can be a program name with args.
7107 set dummy objdump; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_OBJDUMP"; then
7114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7134 if test -n "$ac_ct_OBJDUMP"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7136 $as_echo "$ac_ct_OBJDUMP" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_ct_OBJDUMP" = x; then
7143 OBJDUMP="false"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 OBJDUMP=$ac_ct_OBJDUMP
7153 else
7154 OBJDUMP="$ac_cv_prog_OBJDUMP"
7157 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7169 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_file_magic_cmd='$MAGIC_CMD'
7173 lt_cv_file_magic_test_file=
7174 lt_cv_deplibs_check_method='unknown'
7175 # Need to set the preceding variable on all platforms that support
7176 # interlibrary dependencies.
7177 # 'none' -- dependencies not supported.
7178 # `unknown' -- same as none, but documents that we really don't know.
7179 # 'pass_all' -- all dependencies passed with no checks.
7180 # 'test_compile' -- check by making test program.
7181 # 'file_magic [[regex]]' -- check by looking for files in library path
7182 # which responds to the $file_magic_cmd with a given extended regex.
7183 # If you have `file' or equivalent on your system and you're not sure
7184 # whether `pass_all' will *always* work, you probably want this one.
7186 case $host_os in
7187 aix[4-9]*)
7188 lt_cv_deplibs_check_method=pass_all
7191 beos*)
7192 lt_cv_deplibs_check_method=pass_all
7195 bsdi[45]*)
7196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7197 lt_cv_file_magic_cmd='/usr/bin/file -L'
7198 lt_cv_file_magic_test_file=/shlib/libc.so
7201 cygwin*)
7202 # func_win32_libid is a shell function defined in ltmain.sh
7203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204 lt_cv_file_magic_cmd='func_win32_libid'
7207 mingw* | pw32*)
7208 # Base MSYS/MinGW do not provide the 'file' command needed by
7209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7210 # unless we find 'file', for example because we are cross-compiling.
7211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7214 lt_cv_file_magic_cmd='func_win32_libid'
7215 else
7216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7217 lt_cv_file_magic_cmd='$OBJDUMP -f'
7221 cegcc*)
7222 # use the weaker test based on 'objdump'. See mingw*.
7223 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7224 lt_cv_file_magic_cmd='$OBJDUMP -f'
7227 darwin* | rhapsody*)
7228 lt_cv_deplibs_check_method=pass_all
7231 freebsd* | dragonfly*)
7232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7233 case $host_cpu in
7234 i*86 )
7235 # Not sure whether the presence of OpenBSD here was a mistake.
7236 # Let's accept both of them until this is cleared up.
7237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7238 lt_cv_file_magic_cmd=/usr/bin/file
7239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7241 esac
7242 else
7243 lt_cv_deplibs_check_method=pass_all
7247 gnu*)
7248 lt_cv_deplibs_check_method=pass_all
7251 haiku*)
7252 lt_cv_deplibs_check_method=pass_all
7255 hpux10.20* | hpux11*)
7256 lt_cv_file_magic_cmd=/usr/bin/file
7257 case $host_cpu in
7258 ia64*)
7259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7262 hppa*64*)
7263 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]'
7264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7268 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7270 esac
7273 interix[3-9]*)
7274 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7278 irix5* | irix6* | nonstopux*)
7279 case $LD in
7280 *-32|*"-32 ") libmagic=32-bit;;
7281 *-n32|*"-n32 ") libmagic=N32;;
7282 *-64|*"-64 ") libmagic=64-bit;;
7283 *) libmagic=never-match;;
7284 esac
7285 lt_cv_deplibs_check_method=pass_all
7288 # This must be Linux ELF.
7289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7290 lt_cv_deplibs_check_method=pass_all
7293 netbsd*)
7294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7296 else
7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7301 newos6*)
7302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7303 lt_cv_file_magic_cmd=/usr/bin/file
7304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7307 *nto* | *qnx*)
7308 lt_cv_deplibs_check_method=pass_all
7311 openbsd*)
7312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7314 else
7315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7319 osf3* | osf4* | osf5*)
7320 lt_cv_deplibs_check_method=pass_all
7323 rdos*)
7324 lt_cv_deplibs_check_method=pass_all
7327 solaris*)
7328 lt_cv_deplibs_check_method=pass_all
7331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7332 lt_cv_deplibs_check_method=pass_all
7335 sysv4 | sysv4.3*)
7336 case $host_vendor in
7337 motorola)
7338 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]'
7339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7341 ncr)
7342 lt_cv_deplibs_check_method=pass_all
7344 sequent)
7345 lt_cv_file_magic_cmd='/bin/file'
7346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7348 sni)
7349 lt_cv_file_magic_cmd='/bin/file'
7350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7351 lt_cv_file_magic_test_file=/lib/libc.so
7353 siemens)
7354 lt_cv_deplibs_check_method=pass_all
7357 lt_cv_deplibs_check_method=pass_all
7359 esac
7362 tpf*)
7363 lt_cv_deplibs_check_method=pass_all
7365 esac
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7369 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7370 file_magic_cmd=$lt_cv_file_magic_cmd
7371 deplibs_check_method=$lt_cv_deplibs_check_method
7372 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}ar; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_AR+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$AR"; then
7394 ac_cv_prog_AR="$AR" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_AR="${ac_tool_prefix}ar"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7409 IFS=$as_save_IFS
7413 AR=$ac_cv_prog_AR
7414 if test -n "$AR"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7416 $as_echo "$AR" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_AR"; then
7425 ac_ct_AR=$AR
7426 # Extract the first word of "ar", so it can be a program name with args.
7427 set dummy ar; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$ac_ct_AR"; then
7434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_AR="ar"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7454 if test -n "$ac_ct_AR"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7456 $as_echo "$ac_ct_AR" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_AR" = x; then
7463 AR="false"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 AR=$ac_ct_AR
7473 else
7474 AR="$ac_cv_prog_AR"
7477 test -z "$AR" && AR=ar
7478 test -z "$AR_FLAGS" && AR_FLAGS=cru
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}strip; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_STRIP+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$STRIP"; then
7499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7518 STRIP=$ac_cv_prog_STRIP
7519 if test -n "$STRIP"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7521 $as_echo "$STRIP" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_STRIP"; then
7530 ac_ct_STRIP=$STRIP
7531 # Extract the first word of "strip", so it can be a program name with args.
7532 set dummy strip; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$ac_ct_STRIP"; then
7539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_STRIP="strip"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7552 done
7553 done
7554 IFS=$as_save_IFS
7558 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7559 if test -n "$ac_ct_STRIP"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7561 $as_echo "$ac_ct_STRIP" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_STRIP" = x; then
7568 STRIP=":"
7569 else
7570 case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576 STRIP=$ac_ct_STRIP
7578 else
7579 STRIP="$ac_cv_prog_STRIP"
7582 test -z "$STRIP" && STRIP=:
7589 if test -n "$ac_tool_prefix"; then
7590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 if test -n "$RANLIB"; then
7598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7617 RANLIB=$ac_cv_prog_RANLIB
7618 if test -n "$RANLIB"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7620 $as_echo "$RANLIB" >&6; }
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7628 if test -z "$ac_cv_prog_RANLIB"; then
7629 ac_ct_RANLIB=$RANLIB
7630 # Extract the first word of "ranlib", so it can be a program name with args.
7631 set dummy ranlib; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 if test -n "$ac_ct_RANLIB"; then
7638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_ac_ct_RANLIB="ranlib"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7651 done
7652 done
7653 IFS=$as_save_IFS
7657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7658 if test -n "$ac_ct_RANLIB"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7660 $as_echo "$ac_ct_RANLIB" >&6; }
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7666 if test "x$ac_ct_RANLIB" = x; then
7667 RANLIB=":"
7668 else
7669 case $cross_compiling:$ac_tool_warned in
7670 yes:)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675 RANLIB=$ac_ct_RANLIB
7677 else
7678 RANLIB="$ac_cv_prog_RANLIB"
7681 test -z "$RANLIB" && RANLIB=:
7688 # Determine commands to create old-style static archives.
7689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7690 old_postinstall_cmds='chmod 644 $oldlib'
7691 old_postuninstall_cmds=
7693 if test -n "$RANLIB"; then
7694 case $host_os in
7695 openbsd*)
7696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7701 esac
7702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7705 case $host_os in
7706 darwin*)
7707 lock_old_archive_extraction=yes ;;
7709 lock_old_archive_extraction=no ;;
7710 esac
7750 # If no C compiler was specified, use CC.
7751 LTCC=${LTCC-"$CC"}
7753 # If no C compiler flags were specified, use CFLAGS.
7754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756 # Allow CC to be a program name with arguments.
7757 compiler=$CC
7760 # Check for command to grab the raw symbol name followed by C symbol from nm.
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7762 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7763 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7767 # These are sane defaults that work on at least a few old systems.
7768 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7770 # Character class describing NM global symbol codes.
7771 symcode='[BCDEGRST]'
7773 # Regexp to match symbols that can be accessed directly from C.
7774 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7776 # Define system-specific variables.
7777 case $host_os in
7778 aix*)
7779 symcode='[BCDT]'
7781 cygwin* | mingw* | pw32* | cegcc*)
7782 symcode='[ABCDGISTW]'
7784 hpux*)
7785 if test "$host_cpu" = ia64; then
7786 symcode='[ABCDEGRST]'
7789 irix* | nonstopux*)
7790 symcode='[BCDEGRST]'
7792 osf*)
7793 symcode='[BCDEGQRST]'
7795 solaris*)
7796 symcode='[BDRT]'
7798 sco3.2v5*)
7799 symcode='[DT]'
7801 sysv4.2uw2*)
7802 symcode='[DT]'
7804 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7805 symcode='[ABDT]'
7807 sysv4)
7808 symcode='[DFNSTU]'
7810 esac
7812 # If we're using GNU nm, then use its standard symbol codes.
7813 case `$NM -V 2>&1` in
7814 *GNU* | *'with BFD'*)
7815 symcode='[ABCDGIRSTW]' ;;
7816 esac
7818 # Transform an extracted symbol line into a proper C declaration.
7819 # Some systems (esp. on ia64) link data and code symbols differently,
7820 # so use this general approach.
7821 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823 # Transform an extracted symbol line into symbol name and symbol address
7824 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7825 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'"
7827 # Handle CRLF in mingw tool chain
7828 opt_cr=
7829 case $build_os in
7830 mingw*)
7831 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7833 esac
7835 # Try without a prefix underscore, then with it.
7836 for ac_symprfx in "" "_"; do
7838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7839 symxfrm="\\1 $ac_symprfx\\2 \\2"
7841 # Write the raw and C identifiers.
7842 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7843 # Fake it for dumpbin and say T for any non-static function
7844 # and D for any global variable.
7845 # Also find C++ and __fastcall symbols from MSVC++,
7846 # which start with @ or ?.
7847 lt_cv_sys_global_symbol_pipe="$AWK '"\
7848 " {last_section=section; section=\$ 3};"\
7849 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7850 " \$ 0!~/External *\|/{next};"\
7851 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7852 " {if(hide[section]) next};"\
7853 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7854 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7855 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7856 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7857 " ' prfx=^$ac_symprfx"
7858 else
7859 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7862 # Check to see that the pipe works correctly.
7863 pipe_works=no
7865 rm -f conftest*
7866 cat > conftest.$ac_ext <<_LT_EOF
7867 #ifdef __cplusplus
7868 extern "C" {
7869 #endif
7870 char nm_test_var;
7871 void nm_test_func(void);
7872 void nm_test_func(void){}
7873 #ifdef __cplusplus
7875 #endif
7876 int main(){nm_test_var='a';nm_test_func();return(0);}
7877 _LT_EOF
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7880 (eval $ac_compile) 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 # Now try to grab the symbols.
7885 nlist=conftest.nm
7886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; } && test -s "$nlist"; then
7891 # Try sorting and uniquifying the output.
7892 if sort "$nlist" | uniq > "$nlist"T; then
7893 mv -f "$nlist"T "$nlist"
7894 else
7895 rm -f "$nlist"T
7898 # Make sure that we snagged all the symbols we need.
7899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7901 cat <<_LT_EOF > conftest.$ac_ext
7902 #ifdef __cplusplus
7903 extern "C" {
7904 #endif
7906 _LT_EOF
7907 # Now generate the symbol file.
7908 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7910 cat <<_LT_EOF >> conftest.$ac_ext
7912 /* The mapping between symbol names and symbols. */
7913 const struct {
7914 const char *name;
7915 void *address;
7917 lt__PROGRAM__LTX_preloaded_symbols[] =
7919 { "@PROGRAM@", (void *) 0 },
7920 _LT_EOF
7921 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7922 cat <<\_LT_EOF >> conftest.$ac_ext
7923 {0, (void *) 0}
7926 /* This works around a problem in FreeBSD linker */
7927 #ifdef FREEBSD_WORKAROUND
7928 static const void *lt_preloaded_setup() {
7929 return lt__PROGRAM__LTX_preloaded_symbols;
7931 #endif
7933 #ifdef __cplusplus
7935 #endif
7936 _LT_EOF
7937 # Now try linking the two files.
7938 mv conftest.$ac_objext conftstm.$ac_objext
7939 lt_save_LIBS="$LIBS"
7940 lt_save_CFLAGS="$CFLAGS"
7941 LIBS="conftstm.$ac_objext"
7942 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7944 (eval $ac_link) 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7948 pipe_works=yes
7950 LIBS="$lt_save_LIBS"
7951 CFLAGS="$lt_save_CFLAGS"
7952 else
7953 echo "cannot find nm_test_func in $nlist" >&5
7955 else
7956 echo "cannot find nm_test_var in $nlist" >&5
7958 else
7959 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961 else
7962 echo "$progname: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 rm -rf conftest* conftst*
7967 # Do not use the global_symbol_pipe unless it works.
7968 if test "$pipe_works" = yes; then
7969 break
7970 else
7971 lt_cv_sys_global_symbol_pipe=
7973 done
7977 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7978 lt_cv_sys_global_symbol_to_cdecl=
7980 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7982 $as_echo "failed" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7985 $as_echo "ok" >&6; }
8009 # Check whether --enable-libtool-lock was given.
8010 if test "${enable_libtool_lock+set}" = set; then :
8011 enableval=$enable_libtool_lock;
8014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8016 # Some flags need to be propagated to the compiler or linker for good
8017 # libtool support.
8018 case $host in
8019 ia64-*-hpux*)
8020 # Find out which ABI we are using.
8021 echo 'int i;' > conftest.$ac_ext
8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8023 (eval $ac_compile) 2>&5
8024 ac_status=$?
8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026 test $ac_status = 0; }; then
8027 case `/usr/bin/file conftest.$ac_objext` in
8028 *ELF-32*)
8029 HPUX_IA64_MODE="32"
8031 *ELF-64*)
8032 HPUX_IA64_MODE="64"
8034 esac
8036 rm -rf conftest*
8038 *-*-irix6*)
8039 # Find out which ABI we are using.
8040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8042 (eval $ac_compile) 2>&5
8043 ac_status=$?
8044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }; then
8046 if test "$lt_cv_prog_gnu_ld" = yes; then
8047 case `/usr/bin/file conftest.$ac_objext` in
8048 *32-bit*)
8049 LD="${LD-ld} -melf32bsmip"
8051 *N32*)
8052 LD="${LD-ld} -melf32bmipn32"
8054 *64-bit*)
8055 LD="${LD-ld} -melf64bmip"
8057 esac
8058 else
8059 case `/usr/bin/file conftest.$ac_objext` in
8060 *32-bit*)
8061 LD="${LD-ld} -32"
8063 *N32*)
8064 LD="${LD-ld} -n32"
8066 *64-bit*)
8067 LD="${LD-ld} -64"
8069 esac
8072 rm -rf conftest*
8075 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8076 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8077 # Find out which ABI we are using.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.o` in
8085 *32-bit*)
8086 case $host in
8087 x86_64-*kfreebsd*-gnu)
8088 LD="${LD-ld} -m elf_i386_fbsd"
8090 x86_64-*linux*)
8091 case `/usr/bin/file conftest.o` in
8092 *x86-64*)
8093 LD="${LD-ld} -m elf32_x86_64"
8096 LD="${LD-ld} -m elf_i386"
8098 esac
8100 powerpc64le-*linux*)
8101 LD="${LD-ld} -m elf32lppclinux"
8103 powerpc64-*linux*)
8104 LD="${LD-ld} -m elf32ppclinux"
8106 s390x-*linux*)
8107 LD="${LD-ld} -m elf_s390"
8109 sparc64-*linux*)
8110 LD="${LD-ld} -m elf32_sparc"
8112 esac
8114 *64-bit*)
8115 case $host in
8116 x86_64-*kfreebsd*-gnu)
8117 LD="${LD-ld} -m elf_x86_64_fbsd"
8119 x86_64-*linux*)
8120 LD="${LD-ld} -m elf_x86_64"
8122 powerpcle-*linux*)
8123 LD="${LD-ld} -m elf64lppc"
8125 powerpc-*linux*)
8126 LD="${LD-ld} -m elf64ppc"
8128 s390*-*linux*|s390*-*tpf*)
8129 LD="${LD-ld} -m elf64_s390"
8131 sparc*-*linux*)
8132 LD="${LD-ld} -m elf64_sparc"
8134 esac
8136 esac
8138 rm -rf conftest*
8141 *-*-sco3.2v5*)
8142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8143 SAVE_CFLAGS="$CFLAGS"
8144 CFLAGS="$CFLAGS -belf"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8146 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8147 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 ac_ext=c
8151 ac_cpp='$CPP $CPPFLAGS'
8152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156 if test x$gcc_no_link = xyes; then
8157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8163 main ()
8167 return 0;
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 lt_cv_cc_needs_belf=yes
8172 else
8173 lt_cv_cc_needs_belf=no
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 ac_ext=c
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8185 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8188 CFLAGS="$SAVE_CFLAGS"
8191 sparc*-*solaris*)
8192 # Find out which ABI we are using.
8193 echo 'int i;' > conftest.$ac_ext
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195 (eval $ac_compile) 2>&5
8196 ac_status=$?
8197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 case `/usr/bin/file conftest.o` in
8200 *64-bit*)
8201 case $lt_cv_prog_gnu_ld in
8202 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8204 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8205 LD="${LD-ld} -64"
8208 esac
8210 esac
8212 rm -rf conftest*
8214 esac
8216 need_locks="$enable_libtool_lock"
8219 case $host_os in
8220 rhapsody* | darwin*)
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$DSYMUTIL"; then
8230 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8250 if test -n "$DSYMUTIL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8252 $as_echo "$DSYMUTIL" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8260 if test -z "$ac_cv_prog_DSYMUTIL"; then
8261 ac_ct_DSYMUTIL=$DSYMUTIL
8262 # Extract the first word of "dsymutil", so it can be a program name with args.
8263 set dummy dsymutil; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$ac_ct_DSYMUTIL"; then
8270 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8289 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8290 if test -n "$ac_ct_DSYMUTIL"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8292 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8298 if test "x$ac_ct_DSYMUTIL" = x; then
8299 DSYMUTIL=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 DSYMUTIL=$ac_ct_DSYMUTIL
8309 else
8310 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$NMEDIT"; then
8322 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 NMEDIT=$ac_cv_prog_NMEDIT
8342 if test -n "$NMEDIT"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8344 $as_echo "$NMEDIT" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8352 if test -z "$ac_cv_prog_NMEDIT"; then
8353 ac_ct_NMEDIT=$NMEDIT
8354 # Extract the first word of "nmedit", so it can be a program name with args.
8355 set dummy nmedit; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$ac_ct_NMEDIT"; then
8362 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8382 if test -n "$ac_ct_NMEDIT"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8384 $as_echo "$ac_ct_NMEDIT" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8390 if test "x$ac_ct_NMEDIT" = x; then
8391 NMEDIT=":"
8392 else
8393 case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8397 ac_tool_warned=yes ;;
8398 esac
8399 NMEDIT=$ac_ct_NMEDIT
8401 else
8402 NMEDIT="$ac_cv_prog_NMEDIT"
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if test "${ac_cv_prog_LIPO+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$LIPO"; then
8414 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8433 LIPO=$ac_cv_prog_LIPO
8434 if test -n "$LIPO"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8436 $as_echo "$LIPO" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8444 if test -z "$ac_cv_prog_LIPO"; then
8445 ac_ct_LIPO=$LIPO
8446 # Extract the first word of "lipo", so it can be a program name with args.
8447 set dummy lipo; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$ac_ct_LIPO"; then
8454 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_prog_ac_ct_LIPO="lipo"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8467 done
8468 done
8469 IFS=$as_save_IFS
8473 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8474 if test -n "$ac_ct_LIPO"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8476 $as_echo "$ac_ct_LIPO" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_ct_LIPO" = x; then
8483 LIPO=":"
8484 else
8485 case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491 LIPO=$ac_ct_LIPO
8493 else
8494 LIPO="$ac_cv_prog_LIPO"
8497 if test -n "$ac_tool_prefix"; then
8498 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}otool; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test -n "$OTOOL"; then
8506 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8525 OTOOL=$ac_cv_prog_OTOOL
8526 if test -n "$OTOOL"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8528 $as_echo "$OTOOL" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 if test -z "$ac_cv_prog_OTOOL"; then
8537 ac_ct_OTOOL=$OTOOL
8538 # Extract the first word of "otool", so it can be a program name with args.
8539 set dummy otool; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test -n "$ac_ct_OTOOL"; then
8546 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_ac_ct_OTOOL="otool"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8565 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8566 if test -n "$ac_ct_OTOOL"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8568 $as_echo "$ac_ct_OTOOL" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8574 if test "x$ac_ct_OTOOL" = x; then
8575 OTOOL=":"
8576 else
8577 case $cross_compiling:$ac_tool_warned in
8578 yes:)
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8582 esac
8583 OTOOL=$ac_ct_OTOOL
8585 else
8586 OTOOL="$ac_cv_prog_OTOOL"
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$OTOOL64"; then
8598 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8613 IFS=$as_save_IFS
8617 OTOOL64=$ac_cv_prog_OTOOL64
8618 if test -n "$OTOOL64"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8620 $as_echo "$OTOOL64" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_OTOOL64"; then
8629 ac_ct_OTOOL64=$OTOOL64
8630 # Extract the first word of "otool64", so it can be a program name with args.
8631 set dummy otool64; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$ac_ct_OTOOL64"; then
8638 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_ac_ct_OTOOL64="otool64"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8657 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8658 if test -n "$ac_ct_OTOOL64"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8660 $as_echo "$ac_ct_OTOOL64" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8666 if test "x$ac_ct_OTOOL64" = x; then
8667 OTOOL64=":"
8668 else
8669 case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675 OTOOL64=$ac_ct_OTOOL64
8677 else
8678 OTOOL64="$ac_cv_prog_OTOOL64"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8708 $as_echo_n "checking for -single_module linker flag... " >&6; }
8709 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 lt_cv_apple_cc_single_mod=no
8713 if test -z "${LT_MULTI_MODULE}"; then
8714 # By default we will add the -single_module flag. You can override
8715 # by either setting the environment variable LT_MULTI_MODULE
8716 # non-empty at configure time, or by adding -multi_module to the
8717 # link flags.
8718 rm -rf libconftest.dylib*
8719 echo "int foo(void){return 1;}" > conftest.c
8720 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8721 -dynamiclib -Wl,-single_module conftest.c" >&5
8722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8723 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8724 _lt_result=$?
8725 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8726 lt_cv_apple_cc_single_mod=yes
8727 else
8728 cat conftest.err >&5
8730 rm -rf libconftest.dylib*
8731 rm -f conftest.*
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8735 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8737 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8738 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_ld_exported_symbols_list=no
8742 save_LDFLAGS=$LDFLAGS
8743 echo "_main" > conftest.sym
8744 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8745 if test x$gcc_no_link = xyes; then
8746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8752 main ()
8756 return 0;
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 lt_cv_ld_exported_symbols_list=yes
8761 else
8762 lt_cv_ld_exported_symbols_list=no
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LDFLAGS="$save_LDFLAGS"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8772 $as_echo_n "checking for -force_load linker flag... " >&6; }
8773 if test "${lt_cv_ld_force_load+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 lt_cv_ld_force_load=no
8777 cat > conftest.c << _LT_EOF
8778 int forced_loaded() { return 2;}
8779 _LT_EOF
8780 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8781 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8782 echo "$AR cru libconftest.a conftest.o" >&5
8783 $AR cru libconftest.a conftest.o 2>&5
8784 cat > conftest.c << _LT_EOF
8785 int main() { return 0;}
8786 _LT_EOF
8787 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8788 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8789 _lt_result=$?
8790 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8791 lt_cv_ld_force_load=yes
8792 else
8793 cat conftest.err >&5
8795 rm -f conftest.err libconftest.a conftest conftest.c
8796 rm -rf conftest.dSYM
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8800 $as_echo "$lt_cv_ld_force_load" >&6; }
8801 case $host_os in
8802 rhapsody* | darwin1.[012])
8803 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8804 darwin1.*)
8805 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8806 darwin*) # darwin 5.x on
8807 # if running on 10.5 or later, the deployment target defaults
8808 # to the OS version, if on x86, and 10.4, the deployment
8809 # target defaults to 10.4. Don't you love it?
8810 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8811 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8812 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8813 10.[012]*)
8814 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8815 10.*)
8816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8817 esac
8819 esac
8820 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8821 _lt_dar_single_mod='$single_module'
8823 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8824 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8825 else
8826 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8828 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8829 _lt_dsymutil='~$DSYMUTIL $lib || :'
8830 else
8831 _lt_dsymutil=
8834 esac
8836 for ac_header in dlfcn.h
8837 do :
8838 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8840 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8841 cat >>confdefs.h <<_ACEOF
8842 #define HAVE_DLFCN_H 1
8843 _ACEOF
8847 done
8853 # Set options
8858 enable_win32_dll=no
8861 # Check whether --enable-shared was given.
8862 if test "${enable_shared+set}" = set; then :
8863 enableval=$enable_shared; p=${PACKAGE-default}
8864 case $enableval in
8865 yes) enable_shared=yes ;;
8866 no) enable_shared=no ;;
8868 enable_shared=no
8869 # Look at the argument we got. We use all the common list separators.
8870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8871 for pkg in $enableval; do
8872 IFS="$lt_save_ifs"
8873 if test "X$pkg" = "X$p"; then
8874 enable_shared=yes
8876 done
8877 IFS="$lt_save_ifs"
8879 esac
8880 else
8881 enable_shared=yes
8892 # Check whether --enable-static was given.
8893 if test "${enable_static+set}" = set; then :
8894 enableval=$enable_static; p=${PACKAGE-default}
8895 case $enableval in
8896 yes) enable_static=yes ;;
8897 no) enable_static=no ;;
8899 enable_static=no
8900 # Look at the argument we got. We use all the common list separators.
8901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8902 for pkg in $enableval; do
8903 IFS="$lt_save_ifs"
8904 if test "X$pkg" = "X$p"; then
8905 enable_static=yes
8907 done
8908 IFS="$lt_save_ifs"
8910 esac
8911 else
8912 enable_static=yes
8924 # Check whether --with-pic was given.
8925 if test "${with_pic+set}" = set; then :
8926 withval=$with_pic; p=${PACKAGE-default}
8927 case "$withval" in
8928 yes|no) pic_mode="$withval" ;;
8930 pic_mode=default
8931 # Look at the argument we got. We use all the common list separators.
8932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8933 for pkg in $withval; do
8934 IFS="$lt_save_ifs"
8935 if test "X$pkg" = "X$p"; then
8936 pic_mode=yes
8938 done
8939 IFS="$lt_save_ifs"
8941 esac
8942 else
8943 pic_mode=default
8947 test -z "$pic_mode" && pic_mode=default
8955 # Check whether --enable-fast-install was given.
8956 if test "${enable_fast_install+set}" = set; then :
8957 enableval=$enable_fast_install; p=${PACKAGE-default}
8958 case $enableval in
8959 yes) enable_fast_install=yes ;;
8960 no) enable_fast_install=no ;;
8962 enable_fast_install=no
8963 # Look at the argument we got. We use all the common list separators.
8964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8965 for pkg in $enableval; do
8966 IFS="$lt_save_ifs"
8967 if test "X$pkg" = "X$p"; then
8968 enable_fast_install=yes
8970 done
8971 IFS="$lt_save_ifs"
8973 esac
8974 else
8975 enable_fast_install=yes
8988 # This can be used to rebuild libtool when needed
8989 LIBTOOL_DEPS="$ltmain"
8991 # Always use our own libtool.
8992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9019 test -z "$LN_S" && LN_S="ln -s"
9034 if test -n "${ZSH_VERSION+set}" ; then
9035 setopt NO_GLOB_SUBST
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9039 $as_echo_n "checking for objdir... " >&6; }
9040 if test "${lt_cv_objdir+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 rm -f .libs 2>/dev/null
9044 mkdir .libs 2>/dev/null
9045 if test -d .libs; then
9046 lt_cv_objdir=.libs
9047 else
9048 # MS-DOS does not allow filenames that begin with a dot.
9049 lt_cv_objdir=_libs
9051 rmdir .libs 2>/dev/null
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9054 $as_echo "$lt_cv_objdir" >&6; }
9055 objdir=$lt_cv_objdir
9061 cat >>confdefs.h <<_ACEOF
9062 #define LT_OBJDIR "$lt_cv_objdir/"
9063 _ACEOF
9068 case $host_os in
9069 aix3*)
9070 # AIX sometimes has problems with the GCC collect2 program. For some
9071 # reason, if we set the COLLECT_NAMES environment variable, the problems
9072 # vanish in a puff of smoke.
9073 if test "X${COLLECT_NAMES+set}" != Xset; then
9074 COLLECT_NAMES=
9075 export COLLECT_NAMES
9078 esac
9080 # Global variables:
9081 ofile=libtool
9082 can_build_shared=yes
9084 # All known linkers require a `.a' archive for static linking (except MSVC,
9085 # which needs '.lib').
9086 libext=a
9088 with_gnu_ld="$lt_cv_prog_gnu_ld"
9090 old_CC="$CC"
9091 old_CFLAGS="$CFLAGS"
9093 # Set sane defaults for various variables
9094 test -z "$CC" && CC=cc
9095 test -z "$LTCC" && LTCC=$CC
9096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9097 test -z "$LD" && LD=ld
9098 test -z "$ac_objext" && ac_objext=o
9100 for cc_temp in $compiler""; do
9101 case $cc_temp in
9102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9104 \-*) ;;
9105 *) break;;
9106 esac
9107 done
9108 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9111 # Only perform the check for file, if the check method requires it
9112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9113 case $deplibs_check_method in
9114 file_magic*)
9115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 case $MAGIC_CMD in
9122 [\\/*] | ?:[\\/]*)
9123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9126 lt_save_MAGIC_CMD="$MAGIC_CMD"
9127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9129 for ac_dir in $ac_dummy; do
9130 IFS="$lt_save_ifs"
9131 test -z "$ac_dir" && ac_dir=.
9132 if test -f $ac_dir/${ac_tool_prefix}file; then
9133 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9134 if test -n "$file_magic_test_file"; then
9135 case $deplibs_check_method in
9136 "file_magic "*)
9137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9140 $EGREP "$file_magic_regex" > /dev/null; then
9142 else
9143 cat <<_LT_EOF 1>&2
9145 *** Warning: the command libtool uses to detect shared libraries,
9146 *** $file_magic_cmd, produces output that libtool cannot recognize.
9147 *** The result is that libtool may fail to recognize shared libraries
9148 *** as such. This will affect the creation of libtool libraries that
9149 *** depend on shared libraries, but programs linked with such libtool
9150 *** libraries will work regardless of this problem. Nevertheless, you
9151 *** may want to report the problem to your system manager and/or to
9152 *** bug-libtool@gnu.org
9154 _LT_EOF
9155 fi ;;
9156 esac
9158 break
9160 done
9161 IFS="$lt_save_ifs"
9162 MAGIC_CMD="$lt_save_MAGIC_CMD"
9164 esac
9167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9168 if test -n "$MAGIC_CMD"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9170 $as_echo "$MAGIC_CMD" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9180 if test -z "$lt_cv_path_MAGIC_CMD"; then
9181 if test -n "$ac_tool_prefix"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9183 $as_echo_n "checking for file... " >&6; }
9184 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 case $MAGIC_CMD in
9188 [\\/*] | ?:[\\/]*)
9189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9192 lt_save_MAGIC_CMD="$MAGIC_CMD"
9193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9195 for ac_dir in $ac_dummy; do
9196 IFS="$lt_save_ifs"
9197 test -z "$ac_dir" && ac_dir=.
9198 if test -f $ac_dir/file; then
9199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9200 if test -n "$file_magic_test_file"; then
9201 case $deplibs_check_method in
9202 "file_magic "*)
9203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9206 $EGREP "$file_magic_regex" > /dev/null; then
9208 else
9209 cat <<_LT_EOF 1>&2
9211 *** Warning: the command libtool uses to detect shared libraries,
9212 *** $file_magic_cmd, produces output that libtool cannot recognize.
9213 *** The result is that libtool may fail to recognize shared libraries
9214 *** as such. This will affect the creation of libtool libraries that
9215 *** depend on shared libraries, but programs linked with such libtool
9216 *** libraries will work regardless of this problem. Nevertheless, you
9217 *** may want to report the problem to your system manager and/or to
9218 *** bug-libtool@gnu.org
9220 _LT_EOF
9221 fi ;;
9222 esac
9224 break
9226 done
9227 IFS="$lt_save_ifs"
9228 MAGIC_CMD="$lt_save_MAGIC_CMD"
9230 esac
9233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9234 if test -n "$MAGIC_CMD"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9236 $as_echo "$MAGIC_CMD" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9243 else
9244 MAGIC_CMD=:
9250 esac
9252 # Use C for the default configuration in the libtool script
9254 lt_save_CC="$CC"
9255 ac_ext=c
9256 ac_cpp='$CPP $CPPFLAGS'
9257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9262 # Source file extension for C test sources.
9263 ac_ext=c
9265 # Object file extension for compiled C test sources.
9266 objext=o
9267 objext=$objext
9269 # Code to be used in simple compile tests
9270 lt_simple_compile_test_code="int some_variable = 0;"
9272 # Code to be used in simple link tests
9273 lt_simple_link_test_code='int main(){return(0);}'
9281 # If no C compiler was specified, use CC.
9282 LTCC=${LTCC-"$CC"}
9284 # If no C compiler flags were specified, use CFLAGS.
9285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9287 # Allow CC to be a program name with arguments.
9288 compiler=$CC
9290 # Save the default compiler, since it gets overwritten when the other
9291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9292 compiler_DEFAULT=$CC
9294 # save warnings/boilerplate of simple test code
9295 ac_outfile=conftest.$ac_objext
9296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9298 _lt_compiler_boilerplate=`cat conftest.err`
9299 $RM conftest*
9301 ac_outfile=conftest.$ac_objext
9302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9304 _lt_linker_boilerplate=`cat conftest.err`
9305 $RM -r conftest*
9308 ## CAVEAT EMPTOR:
9309 ## There is no encapsulation within the following macros, do not change
9310 ## the running order or otherwise move them around unless you know exactly
9311 ## what you are doing...
9312 if test -n "$compiler"; then
9314 lt_prog_compiler_no_builtin_flag=
9316 if test "$GCC" = yes; then
9317 case $cc_basename in
9318 nvcc*)
9319 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9322 esac
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 lt_cv_prog_compiler_rtti_exceptions=no
9330 ac_outfile=conftest.$ac_objext
9331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9332 lt_compiler_flag="-fno-rtti -fno-exceptions"
9333 # Insert the option either (1) after the last *FLAGS variable, or
9334 # (2) before a word containing "conftest.", or (3) at the end.
9335 # Note that $ac_compile itself does not contain backslashes and begins
9336 # with a dollar sign (not a hyphen), so the echo should work correctly.
9337 # The option is referenced via a variable to avoid confusing sed.
9338 lt_compile=`echo "$ac_compile" | $SED \
9339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341 -e 's:$: $lt_compiler_flag:'`
9342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343 (eval "$lt_compile" 2>conftest.err)
9344 ac_status=$?
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 if (exit $ac_status) && test -s "$ac_outfile"; then
9348 # The compiler can only warn and ignore the option if not recognized
9349 # So say no if there are warnings other than the usual output.
9350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9353 lt_cv_prog_compiler_rtti_exceptions=yes
9356 $RM conftest*
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9364 else
9375 lt_prog_compiler_wl=
9376 lt_prog_compiler_pic=
9377 lt_prog_compiler_static=
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9380 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9382 if test "$GCC" = yes; then
9383 lt_prog_compiler_wl='-Wl,'
9384 lt_prog_compiler_static='-static'
9386 case $host_os in
9387 aix*)
9388 # All AIX code is PIC.
9389 if test "$host_cpu" = ia64; then
9390 # AIX 5 now supports IA64 processor
9391 lt_prog_compiler_static='-Bstatic'
9393 lt_prog_compiler_pic='-fPIC'
9396 amigaos*)
9397 case $host_cpu in
9398 powerpc)
9399 # see comment about AmigaOS4 .so support
9400 lt_prog_compiler_pic='-fPIC'
9402 m68k)
9403 # FIXME: we need at least 68020 code to build shared libraries, but
9404 # adding the `-m68020' flag to GCC prevents building anything better,
9405 # like `-m68040'.
9406 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9408 esac
9411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9412 # PIC is the default for these OSes.
9415 mingw* | cygwin* | pw32* | os2* | cegcc*)
9416 # This hack is so that the source file can tell whether it is being
9417 # built for inclusion in a dll (and should export symbols for example).
9418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9419 # (--disable-auto-import) libraries
9420 lt_prog_compiler_pic='-DDLL_EXPORT'
9423 darwin* | rhapsody*)
9424 # PIC is the default on this platform
9425 # Common symbols not allowed in MH_DYLIB files
9426 lt_prog_compiler_pic='-fno-common'
9429 haiku*)
9430 # PIC is the default for Haiku.
9431 # The "-static" flag exists, but is broken.
9432 lt_prog_compiler_static=
9435 hpux*)
9436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9438 # sets the default TLS model and affects inlining.
9439 case $host_cpu in
9440 hppa*64*)
9441 # +Z the default
9444 lt_prog_compiler_pic='-fPIC'
9446 esac
9449 interix[3-9]*)
9450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9451 # Instead, we relocate shared libraries at runtime.
9454 msdosdjgpp*)
9455 # Just because we use GCC doesn't mean we suddenly get shared libraries
9456 # on systems that don't support them.
9457 lt_prog_compiler_can_build_shared=no
9458 enable_shared=no
9461 *nto* | *qnx*)
9462 # QNX uses GNU C++, but need to define -shared option too, otherwise
9463 # it will coredump.
9464 lt_prog_compiler_pic='-fPIC -shared'
9467 sysv4*MP*)
9468 if test -d /usr/nec; then
9469 lt_prog_compiler_pic=-Kconform_pic
9474 lt_prog_compiler_pic='-fPIC'
9476 esac
9478 case $cc_basename in
9479 nvcc*) # Cuda Compiler Driver 2.2
9480 lt_prog_compiler_wl='-Xlinker '
9481 lt_prog_compiler_pic='-Xcompiler -fPIC'
9483 esac
9484 else
9485 # PORTME Check for flag to pass linker flags through the system compiler.
9486 case $host_os in
9487 aix*)
9488 lt_prog_compiler_wl='-Wl,'
9489 if test "$host_cpu" = ia64; then
9490 # AIX 5 now supports IA64 processor
9491 lt_prog_compiler_static='-Bstatic'
9492 else
9493 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9497 mingw* | cygwin* | pw32* | os2* | cegcc*)
9498 # This hack is so that the source file can tell whether it is being
9499 # built for inclusion in a dll (and should export symbols for example).
9500 lt_prog_compiler_pic='-DDLL_EXPORT'
9503 hpux9* | hpux10* | hpux11*)
9504 lt_prog_compiler_wl='-Wl,'
9505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9506 # not for PA HP-UX.
9507 case $host_cpu in
9508 hppa*64*|ia64*)
9509 # +Z the default
9512 lt_prog_compiler_pic='+Z'
9514 esac
9515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9516 lt_prog_compiler_static='${wl}-a ${wl}archive'
9519 irix5* | irix6* | nonstopux*)
9520 lt_prog_compiler_wl='-Wl,'
9521 # PIC (with -KPIC) is the default.
9522 lt_prog_compiler_static='-non_shared'
9525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9526 case $cc_basename in
9527 # old Intel for x86_64 which still supported -KPIC.
9528 ecc*)
9529 lt_prog_compiler_wl='-Wl,'
9530 lt_prog_compiler_pic='-KPIC'
9531 lt_prog_compiler_static='-static'
9533 # icc used to be incompatible with GCC.
9534 # ICC 10 doesn't accept -KPIC any more.
9535 icc* | ifort*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-fPIC'
9538 lt_prog_compiler_static='-static'
9540 # Lahey Fortran 8.1.
9541 lf95*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='--shared'
9544 lt_prog_compiler_static='--static'
9546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9547 # Portland Group compilers (*not* the Pentium gcc compiler,
9548 # which looks to be a dead project)
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-fpic'
9551 lt_prog_compiler_static='-Bstatic'
9553 ccc*)
9554 lt_prog_compiler_wl='-Wl,'
9555 # All Alpha code is PIC.
9556 lt_prog_compiler_static='-non_shared'
9558 xl* | bgxl* | bgf* | mpixl*)
9559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-qpic'
9562 lt_prog_compiler_static='-qstaticlink'
9565 case `$CC -V 2>&1 | sed 5q` in
9566 *Sun\ F* | *Sun*Fortran*)
9567 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9568 lt_prog_compiler_pic='-KPIC'
9569 lt_prog_compiler_static='-Bstatic'
9570 lt_prog_compiler_wl=''
9572 *Sun\ C*)
9573 # Sun C 5.9
9574 lt_prog_compiler_pic='-KPIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_wl='-Wl,'
9578 esac
9580 esac
9583 newsos6)
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9588 *nto* | *qnx*)
9589 # QNX uses GNU C++, but need to define -shared option too, otherwise
9590 # it will coredump.
9591 lt_prog_compiler_pic='-fPIC -shared'
9594 osf3* | osf4* | osf5*)
9595 lt_prog_compiler_wl='-Wl,'
9596 # All OSF/1 code is PIC.
9597 lt_prog_compiler_static='-non_shared'
9600 rdos*)
9601 lt_prog_compiler_static='-non_shared'
9604 solaris*)
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-Bstatic'
9607 case $cc_basename in
9608 f77* | f90* | f95*)
9609 lt_prog_compiler_wl='-Qoption ld ';;
9611 lt_prog_compiler_wl='-Wl,';;
9612 esac
9615 sunos4*)
9616 lt_prog_compiler_wl='-Qoption ld '
9617 lt_prog_compiler_pic='-PIC'
9618 lt_prog_compiler_static='-Bstatic'
9621 sysv4 | sysv4.2uw2* | sysv4.3*)
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='-KPIC'
9624 lt_prog_compiler_static='-Bstatic'
9627 sysv4*MP*)
9628 if test -d /usr/nec ;then
9629 lt_prog_compiler_pic='-Kconform_pic'
9630 lt_prog_compiler_static='-Bstatic'
9634 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-KPIC'
9637 lt_prog_compiler_static='-Bstatic'
9640 unicos*)
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_can_build_shared=no
9645 uts4*)
9646 lt_prog_compiler_pic='-pic'
9647 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_can_build_shared=no
9653 esac
9656 case $host_os in
9657 # For platforms which do not support PIC, -DPIC is meaningless:
9658 *djgpp*)
9659 lt_prog_compiler_pic=
9662 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9664 esac
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9666 $as_echo "$lt_prog_compiler_pic" >&6; }
9674 # Check to make sure the PIC flag actually works.
9676 if test -n "$lt_prog_compiler_pic"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9678 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9679 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 lt_cv_prog_compiler_pic_works=no
9683 ac_outfile=conftest.$ac_objext
9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9686 # Insert the option either (1) after the last *FLAGS variable, or
9687 # (2) before a word containing "conftest.", or (3) at the end.
9688 # Note that $ac_compile itself does not contain backslashes and begins
9689 # with a dollar sign (not a hyphen), so the echo should work correctly.
9690 # The option is referenced via a variable to avoid confusing sed.
9691 lt_compile=`echo "$ac_compile" | $SED \
9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694 -e 's:$: $lt_compiler_flag:'`
9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696 (eval "$lt_compile" 2>conftest.err)
9697 ac_status=$?
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 if (exit $ac_status) && test -s "$ac_outfile"; then
9701 # The compiler can only warn and ignore the option if not recognized
9702 # So say no if there are warnings other than the usual output.
9703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler_pic_works=yes
9709 $RM conftest*
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9713 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9715 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9716 case $lt_prog_compiler_pic in
9717 "" | " "*) ;;
9718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9719 esac
9720 else
9721 lt_prog_compiler_pic=
9722 lt_prog_compiler_can_build_shared=no
9733 # Check to make sure the static flag actually works.
9735 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9737 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9738 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 lt_cv_prog_compiler_static_works=no
9742 save_LDFLAGS="$LDFLAGS"
9743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9746 # The linker can only warn and ignore the option if not recognized
9747 # So say no if there are warnings
9748 if test -s conftest.err; then
9749 # Append any errors to the config.log.
9750 cat conftest.err 1>&5
9751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9753 if diff conftest.exp conftest.er2 >/dev/null; then
9754 lt_cv_prog_compiler_static_works=yes
9756 else
9757 lt_cv_prog_compiler_static_works=yes
9760 $RM -r conftest*
9761 LDFLAGS="$save_LDFLAGS"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9765 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9767 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9769 else
9770 lt_prog_compiler_static=
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9781 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 lt_cv_prog_compiler_c_o=no
9785 $RM -r conftest 2>/dev/null
9786 mkdir conftest
9787 cd conftest
9788 mkdir out
9789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9791 lt_compiler_flag="-o out/conftest2.$ac_objext"
9792 # Insert the option either (1) after the last *FLAGS variable, or
9793 # (2) before a word containing "conftest.", or (3) at the end.
9794 # Note that $ac_compile itself does not contain backslashes and begins
9795 # with a dollar sign (not a hyphen), so the echo should work correctly.
9796 lt_compile=`echo "$ac_compile" | $SED \
9797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9799 -e 's:$: $lt_compiler_flag:'`
9800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9801 (eval "$lt_compile" 2>out/conftest.err)
9802 ac_status=$?
9803 cat out/conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9806 then
9807 # The compiler can only warn and ignore the option if not recognized
9808 # So say no if there are warnings
9809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9812 lt_cv_prog_compiler_c_o=yes
9815 chmod u+w . 2>&5
9816 $RM conftest*
9817 # SGI C++ compiler will create directory out/ii_files/ for
9818 # template instantiation
9819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9820 $RM out/* && rmdir out
9821 cd ..
9822 $RM -r conftest
9823 $RM conftest*
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9827 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9835 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9836 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 lt_cv_prog_compiler_c_o=no
9840 $RM -r conftest 2>/dev/null
9841 mkdir conftest
9842 cd conftest
9843 mkdir out
9844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9846 lt_compiler_flag="-o out/conftest2.$ac_objext"
9847 # Insert the option either (1) after the last *FLAGS variable, or
9848 # (2) before a word containing "conftest.", or (3) at the end.
9849 # Note that $ac_compile itself does not contain backslashes and begins
9850 # with a dollar sign (not a hyphen), so the echo should work correctly.
9851 lt_compile=`echo "$ac_compile" | $SED \
9852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854 -e 's:$: $lt_compiler_flag:'`
9855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9856 (eval "$lt_compile" 2>out/conftest.err)
9857 ac_status=$?
9858 cat out/conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9861 then
9862 # The compiler can only warn and ignore the option if not recognized
9863 # So say no if there are warnings
9864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9867 lt_cv_prog_compiler_c_o=yes
9870 chmod u+w . 2>&5
9871 $RM conftest*
9872 # SGI C++ compiler will create directory out/ii_files/ for
9873 # template instantiation
9874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9875 $RM out/* && rmdir out
9876 cd ..
9877 $RM -r conftest
9878 $RM conftest*
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9882 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9887 hard_links="nottested"
9888 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9889 # do not overwrite the value of need_locks provided by the user
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9891 $as_echo_n "checking if we can lock with hard links... " >&6; }
9892 hard_links=yes
9893 $RM conftest*
9894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9895 touch conftest.a
9896 ln conftest.a conftest.b 2>&5 || hard_links=no
9897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9899 $as_echo "$hard_links" >&6; }
9900 if test "$hard_links" = no; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9902 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9903 need_locks=warn
9905 else
9906 need_locks=no
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9917 runpath_var=
9918 allow_undefined_flag=
9919 always_export_symbols=no
9920 archive_cmds=
9921 archive_expsym_cmds=
9922 compiler_needs_object=no
9923 enable_shared_with_static_runtimes=no
9924 export_dynamic_flag_spec=
9925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9926 hardcode_automatic=no
9927 hardcode_direct=no
9928 hardcode_direct_absolute=no
9929 hardcode_libdir_flag_spec=
9930 hardcode_libdir_flag_spec_ld=
9931 hardcode_libdir_separator=
9932 hardcode_minus_L=no
9933 hardcode_shlibpath_var=unsupported
9934 inherit_rpath=no
9935 link_all_deplibs=unknown
9936 module_cmds=
9937 module_expsym_cmds=
9938 old_archive_from_new_cmds=
9939 old_archive_from_expsyms_cmds=
9940 thread_safe_flag_spec=
9941 whole_archive_flag_spec=
9942 # include_expsyms should be a list of space-separated symbols to be *always*
9943 # included in the symbol list
9944 include_expsyms=
9945 # exclude_expsyms can be an extended regexp of symbols to exclude
9946 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9948 # as well as any symbol that contains `d'.
9949 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9951 # platforms (ab)use it in PIC code, but their linkers get confused if
9952 # the symbol is explicitly referenced. Since portable code cannot
9953 # rely on this symbol name, it's probably fine to never include it in
9954 # preloaded symbol tables.
9955 # Exclude shared library initialization/finalization symbols.
9956 extract_expsyms_cmds=
9958 case $host_os in
9959 cygwin* | mingw* | pw32* | cegcc*)
9960 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9961 # When not using gcc, we currently assume that we are using
9962 # Microsoft Visual C++.
9963 if test "$GCC" != yes; then
9964 with_gnu_ld=no
9967 interix*)
9968 # we just hope/assume this is gcc and not c89 (= MSVC++)
9969 with_gnu_ld=yes
9971 openbsd*)
9972 with_gnu_ld=no
9974 esac
9976 ld_shlibs=yes
9978 # On some targets, GNU ld is compatible enough with the native linker
9979 # that we're better off using the native interface for both.
9980 lt_use_gnu_ld_interface=no
9981 if test "$with_gnu_ld" = yes; then
9982 case $host_os in
9983 aix*)
9984 # The AIX port of GNU ld has always aspired to compatibility
9985 # with the native linker. However, as the warning in the GNU ld
9986 # block says, versions before 2.19.5* couldn't really create working
9987 # shared libraries, regardless of the interface used.
9988 case `$LD -v 2>&1` in
9989 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9990 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9991 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9993 lt_use_gnu_ld_interface=yes
9995 esac
9998 lt_use_gnu_ld_interface=yes
10000 esac
10003 if test "$lt_use_gnu_ld_interface" = yes; then
10004 # If archive_cmds runs LD, not CC, wlarc should be empty
10005 wlarc='${wl}'
10007 # Set some defaults for GNU ld with shared library support. These
10008 # are reset later if shared libraries are not supported. Putting them
10009 # here allows them to be overridden if necessary.
10010 runpath_var=LD_RUN_PATH
10011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012 export_dynamic_flag_spec='${wl}--export-dynamic'
10013 # ancient GNU ld didn't support --whole-archive et. al.
10014 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10015 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10016 else
10017 whole_archive_flag_spec=
10019 supports_anon_versioning=no
10020 case `$LD -v 2>&1` in
10021 *GNU\ gold*) supports_anon_versioning=yes ;;
10022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10025 *\ 2.11.*) ;; # other 2.11 versions
10026 *) supports_anon_versioning=yes ;;
10027 esac
10029 # See if GNU ld supports shared libraries.
10030 case $host_os in
10031 aix[3-9]*)
10032 # On AIX/PPC, the GNU linker is very broken
10033 if test "$host_cpu" != ia64; then
10034 ld_shlibs=no
10035 cat <<_LT_EOF 1>&2
10037 *** Warning: the GNU linker, at least up to release 2.19, is reported
10038 *** to be unable to reliably create shared libraries on AIX.
10039 *** Therefore, libtool is disabling shared libraries support. If you
10040 *** really care for shared libraries, you may want to install binutils
10041 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10042 *** You will then need to restart the configuration process.
10044 _LT_EOF
10048 amigaos*)
10049 case $host_cpu in
10050 powerpc)
10051 # see comment about AmigaOS4 .so support
10052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10053 archive_expsym_cmds=''
10055 m68k)
10056 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)'
10057 hardcode_libdir_flag_spec='-L$libdir'
10058 hardcode_minus_L=yes
10060 esac
10063 beos*)
10064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10065 allow_undefined_flag=unsupported
10066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10067 # support --undefined. This deserves some investigation. FIXME
10068 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 else
10070 ld_shlibs=no
10074 cygwin* | mingw* | pw32* | cegcc*)
10075 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10076 # as there is no search path for DLLs.
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 export_dynamic_flag_spec='${wl}--export-all-symbols'
10079 allow_undefined_flag=unsupported
10080 always_export_symbols=no
10081 enable_shared_with_static_runtimes=yes
10082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10084 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086 # If the export-symbols file already is a .def file (1st line
10087 # is EXPORTS), use it as is; otherwise, prepend...
10088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10089 cp $export_symbols $output_objdir/$soname.def;
10090 else
10091 echo EXPORTS > $output_objdir/$soname.def;
10092 cat $export_symbols >> $output_objdir/$soname.def;
10094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10095 else
10096 ld_shlibs=no
10100 haiku*)
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 link_all_deplibs=yes
10105 interix[3-9]*)
10106 hardcode_direct=no
10107 hardcode_shlibpath_var=no
10108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10109 export_dynamic_flag_spec='${wl}-E'
10110 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10111 # Instead, shared libraries are loaded at an image base (0x10000000 by
10112 # default) and relocated if they conflict, which is a slow very memory
10113 # consuming and fragmenting process. To avoid this, we pick a random,
10114 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10115 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10117 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'
10120 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10121 tmp_diet=no
10122 if test "$host_os" = linux-dietlibc; then
10123 case $cc_basename in
10124 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10125 esac
10127 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10128 && test "$tmp_diet" = no
10129 then
10130 tmp_addflag=
10131 tmp_sharedflag='-shared'
10132 case $cc_basename,$host_cpu in
10133 pgcc*) # Portland Group C compiler
10134 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'
10135 tmp_addflag=' $pic_flag'
10137 pgf77* | pgf90* | pgf95* | pgfortran*)
10138 # Portland Group f77 and f90 compilers
10139 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'
10140 tmp_addflag=' $pic_flag -Mnomain' ;;
10141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10142 tmp_addflag=' -i_dynamic' ;;
10143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10144 tmp_addflag=' -i_dynamic -nofor_main' ;;
10145 ifc* | ifort*) # Intel Fortran compiler
10146 tmp_addflag=' -nofor_main' ;;
10147 lf95*) # Lahey Fortran 8.1
10148 whole_archive_flag_spec=
10149 tmp_sharedflag='--shared' ;;
10150 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10151 tmp_sharedflag='-qmkshrobj'
10152 tmp_addflag= ;;
10153 nvcc*) # Cuda Compiler Driver 2.2
10154 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'
10155 compiler_needs_object=yes
10157 esac
10158 case `$CC -V 2>&1 | sed 5q` in
10159 *Sun\ C*) # Sun C 5.9
10160 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'
10161 compiler_needs_object=yes
10162 tmp_sharedflag='-G' ;;
10163 *Sun\ F*) # Sun Fortran 8.3
10164 tmp_sharedflag='-G' ;;
10165 esac
10166 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168 if test "x$supports_anon_versioning" = xyes; then
10169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10171 echo "local: *; };" >> $output_objdir/$libname.ver~
10172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10175 case $cc_basename in
10176 xlf* | bgf* | bgxlf* | mpixlf*)
10177 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10178 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10179 hardcode_libdir_flag_spec=
10180 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10181 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10182 if test "x$supports_anon_versioning" = xyes; then
10183 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10185 echo "local: *; };" >> $output_objdir/$libname.ver~
10186 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10189 esac
10190 else
10191 ld_shlibs=no
10195 netbsd*)
10196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10197 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10198 wlarc=
10199 else
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10205 solaris*)
10206 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10207 ld_shlibs=no
10208 cat <<_LT_EOF 1>&2
10210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10211 *** create shared libraries on Solaris systems. Therefore, libtool
10212 *** is disabling shared libraries support. We urge you to upgrade GNU
10213 *** binutils to release 2.9.1 or newer. Another option is to modify
10214 *** your PATH or compiler configuration so that the native linker is
10215 *** used, and then restart.
10217 _LT_EOF
10218 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10221 else
10222 ld_shlibs=no
10226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10227 case `$LD -v 2>&1` in
10228 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10229 ld_shlibs=no
10230 cat <<_LT_EOF 1>&2
10232 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10233 *** reliably create shared libraries on SCO systems. Therefore, libtool
10234 *** is disabling shared libraries support. We urge you to upgrade GNU
10235 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10236 *** your PATH or compiler configuration so that the native linker is
10237 *** used, and then restart.
10239 _LT_EOF
10242 # For security reasons, it is highly recommended that you always
10243 # use absolute paths for naming shared libraries, and exclude the
10244 # DT_RUNPATH tag from executables and libraries. But doing so
10245 # requires that you compile everything twice, which is a pain.
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10250 else
10251 ld_shlibs=no
10254 esac
10257 sunos4*)
10258 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10259 wlarc=
10260 hardcode_direct=yes
10261 hardcode_shlibpath_var=no
10265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268 else
10269 ld_shlibs=no
10272 esac
10274 if test "$ld_shlibs" = no; then
10275 runpath_var=
10276 hardcode_libdir_flag_spec=
10277 export_dynamic_flag_spec=
10278 whole_archive_flag_spec=
10280 else
10281 # PORTME fill in a description of your system's linker (not GNU ld)
10282 case $host_os in
10283 aix3*)
10284 allow_undefined_flag=unsupported
10285 always_export_symbols=yes
10286 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'
10287 # Note: this linker hardcodes the directories in LIBPATH if there
10288 # are no directories specified by -L.
10289 hardcode_minus_L=yes
10290 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10291 # Neither direct hardcoding nor static linking is supported with a
10292 # broken collect2.
10293 hardcode_direct=unsupported
10297 aix[4-9]*)
10298 if test "$host_cpu" = ia64; then
10299 # On IA64, the linker does run time linking by default, so we don't
10300 # have to do anything special.
10301 aix_use_runtimelinking=no
10302 exp_sym_flag='-Bexport'
10303 no_entry_flag=""
10304 else
10305 # If we're using GNU nm, then we don't want the "-C" option.
10306 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10307 # Also, AIX nm treats weak defined symbols like other global
10308 # defined symbols, whereas GNU nm marks them as "W".
10309 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10310 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'
10311 else
10312 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10314 aix_use_runtimelinking=no
10316 # Test if we are trying to use run time linking or normal
10317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10318 # need to do runtime linking.
10319 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10320 for ld_flag in $LDFLAGS; do
10321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10322 aix_use_runtimelinking=yes
10323 break
10325 done
10327 esac
10329 exp_sym_flag='-bexport'
10330 no_entry_flag='-bnoentry'
10333 # When large executables or shared objects are built, AIX ld can
10334 # have problems creating the table of contents. If linking a library
10335 # or program results in "error TOC overflow" add -mminimal-toc to
10336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10339 archive_cmds=''
10340 hardcode_direct=yes
10341 hardcode_direct_absolute=yes
10342 hardcode_libdir_separator=':'
10343 link_all_deplibs=yes
10344 file_list_spec='${wl}-f,'
10346 if test "$GCC" = yes; then
10347 case $host_os in aix4.[012]|aix4.[012].*)
10348 # We only want to do this on AIX 4.2 and lower, the check
10349 # below for broken collect2 doesn't work under 4.3+
10350 collect2name=`${CC} -print-prog-name=collect2`
10351 if test -f "$collect2name" &&
10352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10353 then
10354 # We have reworked collect2
10356 else
10357 # We have old collect2
10358 hardcode_direct=unsupported
10359 # It fails to find uninstalled libraries when the uninstalled
10360 # path is not listed in the libpath. Setting hardcode_minus_L
10361 # to unsupported forces relinking
10362 hardcode_minus_L=yes
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 hardcode_libdir_separator=
10367 esac
10368 shared_flag='-shared'
10369 if test "$aix_use_runtimelinking" = yes; then
10370 shared_flag="$shared_flag "'${wl}-G'
10372 else
10373 # not using gcc
10374 if test "$host_cpu" = ia64; then
10375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10376 # chokes on -Wl,-G. The following line is correct:
10377 shared_flag='-G'
10378 else
10379 if test "$aix_use_runtimelinking" = yes; then
10380 shared_flag='${wl}-G'
10381 else
10382 shared_flag='${wl}-bM:SRE'
10387 export_dynamic_flag_spec='${wl}-bexpall'
10388 # It seems that -bexpall does not export symbols beginning with
10389 # underscore (_), so it is better to generate a list of symbols to export.
10390 always_export_symbols=yes
10391 if test "$aix_use_runtimelinking" = yes; then
10392 # Warning - without using the other runtime loading flags (-brtl),
10393 # -berok will link without error, but may produce a broken library.
10394 allow_undefined_flag='-berok'
10395 # Determine the default libpath from the value encoded in an
10396 # empty executable.
10397 if test x$gcc_no_link = xyes; then
10398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10404 main ()
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10413 lt_aix_libpath_sed='
10414 /Import File Strings/,/^$/ {
10415 /^0/ {
10416 s/^0 *\(.*\)$/\1/
10420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421 # Check for a 64-bit object if we didn't find anything.
10422 if test -z "$aix_libpath"; then
10423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426 rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10431 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"
10432 else
10433 if test "$host_cpu" = ia64; then
10434 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10435 allow_undefined_flag="-z nodefs"
10436 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"
10437 else
10438 # Determine the default libpath from the value encoded in an
10439 # empty executable.
10440 if test x$gcc_no_link = xyes; then
10441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10447 main ()
10451 return 0;
10453 _ACEOF
10454 if ac_fn_c_try_link "$LINENO"; then :
10456 lt_aix_libpath_sed='
10457 /Import File Strings/,/^$/ {
10458 /^0/ {
10459 s/^0 *\(.*\)$/\1/
10463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10464 # Check for a 64-bit object if we didn't find anything.
10465 if test -z "$aix_libpath"; then
10466 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10474 # Warning - without using the other run time loading flags,
10475 # -berok will link without error, but may produce a broken library.
10476 no_undefined_flag=' ${wl}-bernotok'
10477 allow_undefined_flag=' ${wl}-berok'
10478 if test "$with_gnu_ld" = yes; then
10479 # We only use this code for GNU lds that support --whole-archive.
10480 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10481 else
10482 # Exported symbols can be pulled into shared objects from archives
10483 whole_archive_flag_spec='$convenience'
10485 archive_cmds_need_lc=yes
10486 # This is similar to how AIX traditionally builds its shared libraries.
10487 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'
10492 amigaos*)
10493 case $host_cpu in
10494 powerpc)
10495 # see comment about AmigaOS4 .so support
10496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10497 archive_expsym_cmds=''
10499 m68k)
10500 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)'
10501 hardcode_libdir_flag_spec='-L$libdir'
10502 hardcode_minus_L=yes
10504 esac
10507 bsdi[45]*)
10508 export_dynamic_flag_spec=-rdynamic
10511 cygwin* | mingw* | pw32* | cegcc*)
10512 # When not using gcc, we currently assume that we are using
10513 # Microsoft Visual C++.
10514 # hardcode_libdir_flag_spec is actually meaningless, as there is
10515 # no search path for DLLs.
10516 hardcode_libdir_flag_spec=' '
10517 allow_undefined_flag=unsupported
10518 # Tell ltmain to make .lib files, not .a files.
10519 libext=lib
10520 # Tell ltmain to make .dll files, not .so files.
10521 shrext_cmds=".dll"
10522 # FIXME: Setting linknames here is a bad hack.
10523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10524 # The linker will automatically build a .lib file if we build a DLL.
10525 old_archive_from_new_cmds='true'
10526 # FIXME: Should let the user specify the lib program.
10527 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10528 fix_srcfile_path='`cygpath -w "$srcfile"`'
10529 enable_shared_with_static_runtimes=yes
10532 darwin* | rhapsody*)
10535 archive_cmds_need_lc=no
10536 hardcode_direct=no
10537 hardcode_automatic=yes
10538 hardcode_shlibpath_var=unsupported
10539 if test "$lt_cv_ld_force_load" = "yes"; then
10540 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\"`'
10541 else
10542 whole_archive_flag_spec=''
10544 link_all_deplibs=yes
10545 allow_undefined_flag="$_lt_dar_allow_undefined"
10546 case $cc_basename in
10547 ifort*) _lt_dar_can_shared=yes ;;
10548 *) _lt_dar_can_shared=$GCC ;;
10549 esac
10550 if test "$_lt_dar_can_shared" = "yes"; then
10551 output_verbose_link_cmd=func_echo_all
10552 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10553 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10554 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}"
10555 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}"
10557 else
10558 ld_shlibs=no
10563 dgux*)
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_shlibpath_var=no
10569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10570 # support. Future versions do this automatically, but an explicit c++rt0.o
10571 # does not break anything, and helps significantly (at the cost of a little
10572 # extra space).
10573 freebsd2.2*)
10574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10575 hardcode_libdir_flag_spec='-R$libdir'
10576 hardcode_direct=yes
10577 hardcode_shlibpath_var=no
10580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10581 freebsd2.*)
10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_direct=yes
10584 hardcode_minus_L=yes
10585 hardcode_shlibpath_var=no
10588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10589 freebsd* | dragonfly*)
10590 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10591 hardcode_libdir_flag_spec='-R$libdir'
10592 hardcode_direct=yes
10593 hardcode_shlibpath_var=no
10596 hpux9*)
10597 if test "$GCC" = yes; then
10598 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'
10599 else
10600 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'
10602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10603 hardcode_libdir_separator=:
10604 hardcode_direct=yes
10606 # hardcode_minus_L: Not really in the search PATH,
10607 # but as the default location of the library.
10608 hardcode_minus_L=yes
10609 export_dynamic_flag_spec='${wl}-E'
10612 hpux10*)
10613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 else
10616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10618 if test "$with_gnu_ld" = no; then
10619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10620 hardcode_libdir_flag_spec_ld='+b $libdir'
10621 hardcode_libdir_separator=:
10622 hardcode_direct=yes
10623 hardcode_direct_absolute=yes
10624 export_dynamic_flag_spec='${wl}-E'
10625 # hardcode_minus_L: Not really in the search PATH,
10626 # but as the default location of the library.
10627 hardcode_minus_L=yes
10631 hpux11*)
10632 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10633 case $host_cpu in
10634 hppa*64*)
10635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 ia64*)
10638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643 esac
10644 else
10645 case $host_cpu in
10646 hppa*64*)
10647 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 ia64*)
10650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10654 # Older versions of the 11.00 compiler do not understand -b yet
10655 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10657 $as_echo_n "checking if $CC understands -b... " >&6; }
10658 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 lt_cv_prog_compiler__b=no
10662 save_LDFLAGS="$LDFLAGS"
10663 LDFLAGS="$LDFLAGS -b"
10664 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10666 # The linker can only warn and ignore the option if not recognized
10667 # So say no if there are warnings
10668 if test -s conftest.err; then
10669 # Append any errors to the config.log.
10670 cat conftest.err 1>&5
10671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10673 if diff conftest.exp conftest.er2 >/dev/null; then
10674 lt_cv_prog_compiler__b=yes
10676 else
10677 lt_cv_prog_compiler__b=yes
10680 $RM -r conftest*
10681 LDFLAGS="$save_LDFLAGS"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10685 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10687 if test x"$lt_cv_prog_compiler__b" = xyes; then
10688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10689 else
10690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10694 esac
10696 if test "$with_gnu_ld" = no; then
10697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10698 hardcode_libdir_separator=:
10700 case $host_cpu in
10701 hppa*64*|ia64*)
10702 hardcode_direct=no
10703 hardcode_shlibpath_var=no
10706 hardcode_direct=yes
10707 hardcode_direct_absolute=yes
10708 export_dynamic_flag_spec='${wl}-E'
10710 # hardcode_minus_L: Not really in the search PATH,
10711 # but as the default location of the library.
10712 hardcode_minus_L=yes
10714 esac
10718 irix5* | irix6* | nonstopux*)
10719 if test "$GCC" = yes; then
10720 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'
10721 # Try to use the -exported_symbol ld option, if it does not
10722 # work, assume that -exports_file does not work either and
10723 # implicitly export all symbols.
10724 save_LDFLAGS="$LDFLAGS"
10725 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10726 if test x$gcc_no_link = xyes; then
10727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 int foo(void) {}
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"; then :
10734 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'
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LDFLAGS="$save_LDFLAGS"
10740 else
10741 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'
10742 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'
10744 archive_cmds_need_lc='no'
10745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator=:
10747 inherit_rpath=yes
10748 link_all_deplibs=yes
10751 netbsd*)
10752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10754 else
10755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10757 hardcode_libdir_flag_spec='-R$libdir'
10758 hardcode_direct=yes
10759 hardcode_shlibpath_var=no
10762 newsos6)
10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_direct=yes
10765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10766 hardcode_libdir_separator=:
10767 hardcode_shlibpath_var=no
10770 *nto* | *qnx*)
10773 openbsd*)
10774 if test -f /usr/libexec/ld.so; then
10775 hardcode_direct=yes
10776 hardcode_shlibpath_var=no
10777 hardcode_direct_absolute=yes
10778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10782 export_dynamic_flag_spec='${wl}-E'
10783 else
10784 case $host_os in
10785 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_libdir_flag_spec='-R$libdir'
10790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10793 esac
10795 else
10796 ld_shlibs=no
10800 os2*)
10801 hardcode_libdir_flag_spec='-L$libdir'
10802 hardcode_minus_L=yes
10803 allow_undefined_flag=unsupported
10804 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'
10805 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10808 osf3*)
10809 if test "$GCC" = yes; then
10810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10811 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'
10812 else
10813 allow_undefined_flag=' -expect_unresolved \*'
10814 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'
10816 archive_cmds_need_lc='no'
10817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10818 hardcode_libdir_separator=:
10821 osf4* | osf5*) # as osf3* with the addition of -msym flag
10822 if test "$GCC" = yes; then
10823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10824 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'
10825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826 else
10827 allow_undefined_flag=' -expect_unresolved \*'
10828 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'
10829 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~
10830 $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'
10832 # Both c and cxx compiler support -rpath directly
10833 hardcode_libdir_flag_spec='-rpath $libdir'
10835 archive_cmds_need_lc='no'
10836 hardcode_libdir_separator=:
10839 solaris*)
10840 no_undefined_flag=' -z defs'
10841 if test "$GCC" = yes; then
10842 wlarc='${wl}'
10843 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10845 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10846 else
10847 case `$CC -V 2>&1` in
10848 *"Compilers 5.0"*)
10849 wlarc=''
10850 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10855 wlarc='${wl}'
10856 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10860 esac
10862 hardcode_libdir_flag_spec='-R$libdir'
10863 hardcode_shlibpath_var=no
10864 case $host_os in
10865 solaris2.[0-5] | solaris2.[0-5].*) ;;
10867 # The compiler driver will combine and reorder linker options,
10868 # but understands `-z linker_flag'. GCC discards it without `$wl',
10869 # but is careful enough not to reorder.
10870 # Supported since Solaris 2.6 (maybe 2.5.1?)
10871 if test "$GCC" = yes; then
10872 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10873 else
10874 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10877 esac
10878 link_all_deplibs=yes
10881 sunos4*)
10882 if test "x$host_vendor" = xsequent; then
10883 # Use $CC to link under sequent, because it throws in some extra .o
10884 # files that make .init and .fini sections work.
10885 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10886 else
10887 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_direct=yes
10891 hardcode_minus_L=yes
10892 hardcode_shlibpath_var=no
10895 sysv4)
10896 case $host_vendor in
10897 sni)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_direct=yes # is this really true???
10901 siemens)
10902 ## LD is ld it makes a PLAMLIB
10903 ## CC just makes a GrossModule.
10904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10905 reload_cmds='$CC -r -o $output$reload_objs'
10906 hardcode_direct=no
10908 motorola)
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10912 esac
10913 runpath_var='LD_RUN_PATH'
10914 hardcode_shlibpath_var=no
10917 sysv4.3*)
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_shlibpath_var=no
10920 export_dynamic_flag_spec='-Bexport'
10923 sysv4*MP*)
10924 if test -d /usr/nec; then
10925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10926 hardcode_shlibpath_var=no
10927 runpath_var=LD_RUN_PATH
10928 hardcode_runpath_var=yes
10929 ld_shlibs=yes
10933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10934 no_undefined_flag='${wl}-z,text'
10935 archive_cmds_need_lc=no
10936 hardcode_shlibpath_var=no
10937 runpath_var='LD_RUN_PATH'
10939 if test "$GCC" = yes; then
10940 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10942 else
10943 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 sysv5* | sco3.2v5* | sco5v6*)
10949 # Note: We can NOT use -z defs as we might desire, because we do not
10950 # link with -lc, and that would cause any symbols used from libc to
10951 # always be unresolved, which means just about no library would
10952 # ever link correctly. If we're not using GNU ld we use -z text
10953 # though, which does catch some bad symbols but isn't as heavy-handed
10954 # as -z defs.
10955 no_undefined_flag='${wl}-z,text'
10956 allow_undefined_flag='${wl}-z,nodefs'
10957 archive_cmds_need_lc=no
10958 hardcode_shlibpath_var=no
10959 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10960 hardcode_libdir_separator=':'
10961 link_all_deplibs=yes
10962 export_dynamic_flag_spec='${wl}-Bexport'
10963 runpath_var='LD_RUN_PATH'
10965 if test "$GCC" = yes; then
10966 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968 else
10969 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 uts4*)
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_libdir_flag_spec='-L$libdir'
10977 hardcode_shlibpath_var=no
10981 ld_shlibs=no
10983 esac
10985 if test x$host_vendor = xsni; then
10986 case $host in
10987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10988 export_dynamic_flag_spec='${wl}-Blargedynsym'
10990 esac
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10995 $as_echo "$ld_shlibs" >&6; }
10996 test "$ld_shlibs" = no && can_build_shared=no
10998 with_gnu_ld=$with_gnu_ld
11015 # Do we need to explicitly link libc?
11017 case "x$archive_cmds_need_lc" in
11018 x|xyes)
11019 # Assume -lc should be added
11020 archive_cmds_need_lc=yes
11022 if test "$enable_shared" = yes && test "$GCC" = yes; then
11023 case $archive_cmds in
11024 *'~'*)
11025 # FIXME: we may have to deal with multi-command sequences.
11027 '$CC '*)
11028 # Test whether the compiler implicitly links with -lc since on some
11029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11030 # to ld, don't add -lc before -lgcc.
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11032 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11033 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 $RM conftest*
11037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11040 (eval $ac_compile) 2>&5
11041 ac_status=$?
11042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043 test $ac_status = 0; } 2>conftest.err; then
11044 soname=conftest
11045 lib=conftest
11046 libobjs=conftest.$ac_objext
11047 deplibs=
11048 wl=$lt_prog_compiler_wl
11049 pic_flag=$lt_prog_compiler_pic
11050 compiler_flags=-v
11051 linker_flags=-v
11052 verstring=
11053 output_objdir=.
11054 libname=conftest
11055 lt_save_allow_undefined_flag=$allow_undefined_flag
11056 allow_undefined_flag=
11057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11058 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11059 ac_status=$?
11060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11061 test $ac_status = 0; }
11062 then
11063 lt_cv_archive_cmds_need_lc=no
11064 else
11065 lt_cv_archive_cmds_need_lc=yes
11067 allow_undefined_flag=$lt_save_allow_undefined_flag
11068 else
11069 cat conftest.err 1>&5
11071 $RM conftest*
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11075 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11076 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11078 esac
11081 esac
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11240 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11242 if test "$GCC" = yes; then
11243 case $host_os in
11244 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11245 *) lt_awk_arg="/^libraries:/" ;;
11246 esac
11247 case $host_os in
11248 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11249 *) lt_sed_strip_eq="s,=/,/,g" ;;
11250 esac
11251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11252 case $lt_search_path_spec in
11253 *\;*)
11254 # if the path contains ";" then we assume it to be the separator
11255 # otherwise default to the standard path separator (i.e. ":") - it is
11256 # assumed that no part of a normal pathname contains ";" but that should
11257 # okay in the real world where ";" in dirpaths is itself problematic.
11258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11263 esac
11264 # Ok, now we have the path, separated by spaces, we can step through it
11265 # and add multilib dir if necessary.
11266 lt_tmp_lt_search_path_spec=
11267 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11268 for lt_sys_path in $lt_search_path_spec; do
11269 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11270 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11271 else
11272 test -d "$lt_sys_path" && \
11273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11275 done
11276 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11277 BEGIN {RS=" "; FS="/|\n";} {
11278 lt_foo="";
11279 lt_count=0;
11280 for (lt_i = NF; lt_i > 0; lt_i--) {
11281 if ($lt_i != "" && $lt_i != ".") {
11282 if ($lt_i == "..") {
11283 lt_count++;
11284 } else {
11285 if (lt_count == 0) {
11286 lt_foo="/" $lt_i lt_foo;
11287 } else {
11288 lt_count--;
11293 if (lt_foo != "") { lt_freq[lt_foo]++; }
11294 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11296 # AWK program above erroneously prepends '/' to C:/dos/paths
11297 # for these hosts.
11298 case $host_os in
11299 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11300 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11301 esac
11302 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11303 else
11304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11306 library_names_spec=
11307 libname_spec='lib$name'
11308 soname_spec=
11309 shrext_cmds=".so"
11310 postinstall_cmds=
11311 postuninstall_cmds=
11312 finish_cmds=
11313 finish_eval=
11314 shlibpath_var=
11315 shlibpath_overrides_runpath=unknown
11316 version_type=none
11317 dynamic_linker="$host_os ld.so"
11318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11319 need_lib_prefix=unknown
11320 hardcode_into_libs=no
11322 # when you set need_version to no, make sure it does not cause -set_version
11323 # flags to be left without arguments
11324 need_version=unknown
11326 case $host_os in
11327 aix3*)
11328 version_type=linux
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11330 shlibpath_var=LIBPATH
11332 # AIX 3 has no versioning support, so we append a major version to the name.
11333 soname_spec='${libname}${release}${shared_ext}$major'
11336 aix[4-9]*)
11337 version_type=linux
11338 need_lib_prefix=no
11339 need_version=no
11340 hardcode_into_libs=yes
11341 if test "$host_cpu" = ia64; then
11342 # AIX 5 supports IA64
11343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 else
11346 # With GCC up to 2.95.x, collect2 would create an import file
11347 # for dependence libraries. The import file would start with
11348 # the line `#! .'. This would cause the generated library to
11349 # depend on `.', always an invalid library. This was fixed in
11350 # development snapshots of GCC prior to 3.0.
11351 case $host_os in
11352 aix4 | aix4.[01] | aix4.[01].*)
11353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11354 echo ' yes '
11355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11357 else
11358 can_build_shared=no
11361 esac
11362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11363 # soname into executable. Probably we can add versioning support to
11364 # collect2, so additional links can be useful in future.
11365 if test "$aix_use_runtimelinking" = yes; then
11366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11367 # instead of lib<name>.a to let people know that these are not
11368 # typical AIX shared libraries.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 else
11371 # We preserve .a as extension for shared libraries through AIX4.2
11372 # and later when we are not doing run time linking.
11373 library_names_spec='${libname}${release}.a $libname.a'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11376 shlibpath_var=LIBPATH
11380 amigaos*)
11381 case $host_cpu in
11382 powerpc)
11383 # Since July 2007 AmigaOS4 officially supports .so libraries.
11384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 m68k)
11388 library_names_spec='$libname.ixlibrary $libname.a'
11389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11390 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'
11392 esac
11395 beos*)
11396 library_names_spec='${libname}${shared_ext}'
11397 dynamic_linker="$host_os ld.so"
11398 shlibpath_var=LIBRARY_PATH
11401 bsdi[45]*)
11402 version_type=linux
11403 need_version=no
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11410 # the default ld.so.conf also contains /usr/contrib/lib and
11411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11412 # libtool to hard-code these into programs
11415 cygwin* | mingw* | pw32* | cegcc*)
11416 version_type=windows
11417 shrext_cmds=".dll"
11418 need_version=no
11419 need_lib_prefix=no
11421 case $GCC,$host_os in
11422 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11423 library_names_spec='$libname.dll.a'
11424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11425 postinstall_cmds='base_file=`basename \${file}`~
11426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11427 dldir=$destdir/`dirname \$dlpath`~
11428 test -d \$dldir || mkdir -p \$dldir~
11429 $install_prog $dir/$dlname \$dldir/$dlname~
11430 chmod a+x \$dldir/$dlname~
11431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11435 dlpath=$dir/\$dldll~
11436 $RM \$dlpath'
11437 shlibpath_overrides_runpath=yes
11439 case $host_os in
11440 cygwin*)
11441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11446 mingw* | cegcc*)
11447 # MinGW DLLs use traditional 'lib' prefix
11448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11450 pw32*)
11451 # pw32 DLLs use 'pw' prefix rather than 'lib'
11452 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11454 esac
11458 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11460 esac
11461 dynamic_linker='Win32 ld.exe'
11462 # FIXME: first we should search . and the directory the executable is in
11463 shlibpath_var=PATH
11466 darwin* | rhapsody*)
11467 dynamic_linker="$host_os dyld"
11468 version_type=darwin
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11472 soname_spec='${libname}${release}${major}$shared_ext'
11473 shlibpath_overrides_runpath=yes
11474 shlibpath_var=DYLD_LIBRARY_PATH
11475 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11477 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11481 dgux*)
11482 version_type=linux
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 shlibpath_var=LD_LIBRARY_PATH
11490 freebsd* | dragonfly*)
11491 # DragonFly does not have aout. When/if they implement a new
11492 # versioning mechanism, adjust this.
11493 if test -x /usr/bin/objformat; then
11494 objformat=`/usr/bin/objformat`
11495 else
11496 case $host_os in
11497 freebsd[23].*) objformat=aout ;;
11498 *) objformat=elf ;;
11499 esac
11501 version_type=freebsd-$objformat
11502 case $version_type in
11503 freebsd-elf*)
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11505 need_version=no
11506 need_lib_prefix=no
11508 freebsd-*)
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11510 need_version=yes
11512 esac
11513 shlibpath_var=LD_LIBRARY_PATH
11514 case $host_os in
11515 freebsd2.*)
11516 shlibpath_overrides_runpath=yes
11518 freebsd3.[01]* | freebsdelf3.[01]*)
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11527 *) # from 4.6 on, and DragonFly
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11531 esac
11534 gnu*)
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
11541 hardcode_into_libs=yes
11544 haiku*)
11545 version_type=linux
11546 need_lib_prefix=no
11547 need_version=no
11548 dynamic_linker="$host_os runtime_loader"
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11554 hardcode_into_libs=yes
11557 hpux9* | hpux10* | hpux11*)
11558 # Give a soname corresponding to the major version so that dld.sl refuses to
11559 # link against other versions.
11560 version_type=sunos
11561 need_lib_prefix=no
11562 need_version=no
11563 case $host_cpu in
11564 ia64*)
11565 shrext_cmds='.so'
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.so"
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 if test "X$HPUX_IA64_MODE" = X32; then
11573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11574 else
11575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579 hppa*64*)
11580 shrext_cmds='.sl'
11581 hardcode_into_libs=yes
11582 dynamic_linker="$host_os dld.sl"
11583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11591 shrext_cmds='.sl'
11592 dynamic_linker="$host_os dld.sl"
11593 shlibpath_var=SHLIB_PATH
11594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11598 esac
11599 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11600 postinstall_cmds='chmod 555 $lib'
11601 # or fails outright, so override atomically:
11602 install_override_mode=555
11605 interix[3-9]*)
11606 version_type=linux
11607 need_lib_prefix=no
11608 need_version=no
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=no
11614 hardcode_into_libs=yes
11617 irix5* | irix6* | nonstopux*)
11618 case $host_os in
11619 nonstopux*) version_type=nonstopux ;;
11621 if test "$lt_cv_prog_gnu_ld" = yes; then
11622 version_type=linux
11623 else
11624 version_type=irix
11625 fi ;;
11626 esac
11627 need_lib_prefix=no
11628 need_version=no
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11631 case $host_os in
11632 irix5* | nonstopux*)
11633 libsuff= shlibsuff=
11636 case $LD in # libtool.m4 will add one of these switches to LD
11637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11638 libsuff= shlibsuff= libmagic=32-bit;;
11639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11640 libsuff=32 shlibsuff=N32 libmagic=N32;;
11641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11643 *) libsuff= shlibsuff= libmagic=never-match;;
11644 esac
11646 esac
11647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11648 shlibpath_overrides_runpath=no
11649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11651 hardcode_into_libs=yes
11654 # No shared lib support for Linux oldld, aout, or coff.
11655 linux*oldld* | linux*aout* | linux*coff*)
11656 dynamic_linker=no
11659 # This must be Linux ELF.
11660 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11661 version_type=linux
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11670 # Some binutils ld are patched to set DT_RUNPATH
11671 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 lt_cv_shlibpath_overrides_runpath=no
11675 save_LDFLAGS=$LDFLAGS
11676 save_libdir=$libdir
11677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11679 if test x$gcc_no_link = xyes; then
11680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11686 main ()
11690 return 0;
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11695 lt_cv_shlibpath_overrides_runpath=yes
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LDFLAGS=$save_LDFLAGS
11701 libdir=$save_libdir
11705 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11707 # This implies no fast_install, which is unacceptable.
11708 # Some rework will be needed to allow for fast_install
11709 # before this can be enabled.
11710 hardcode_into_libs=yes
11712 # Append ld.so.conf contents to the search path
11713 if test -f /etc/ld.so.conf; then
11714 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' ' '`
11715 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11718 # We used to test for /lib/ld.so.1 and disable shared libraries on
11719 # powerpc, because MkLinux only supported shared libraries with the
11720 # GNU dynamic linker. Since this was broken with cross compilers,
11721 # most powerpc-linux boxes support dynamic linking these days and
11722 # people can always --disable-shared, the test was removed, and we
11723 # assume the GNU/Linux dynamic linker is in use.
11724 dynamic_linker='GNU/Linux ld.so'
11727 netbsd*)
11728 version_type=sunos
11729 need_lib_prefix=no
11730 need_version=no
11731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11734 dynamic_linker='NetBSD (a.out) ld.so'
11735 else
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 dynamic_linker='NetBSD ld.elf_so'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 hardcode_into_libs=yes
11745 newsos6)
11746 version_type=linux
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=yes
11752 *nto* | *qnx*)
11753 version_type=qnx
11754 need_lib_prefix=no
11755 need_version=no
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=no
11760 hardcode_into_libs=yes
11761 dynamic_linker='ldqnx.so'
11764 openbsd*)
11765 version_type=sunos
11766 sys_lib_dlsearch_path_spec="/usr/lib"
11767 need_lib_prefix=no
11768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11769 case $host_os in
11770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11771 *) need_version=no ;;
11772 esac
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11777 case $host_os in
11778 openbsd2.[89] | openbsd2.[89].*)
11779 shlibpath_overrides_runpath=no
11782 shlibpath_overrides_runpath=yes
11784 esac
11785 else
11786 shlibpath_overrides_runpath=yes
11790 os2*)
11791 libname_spec='$name'
11792 shrext_cmds=".dll"
11793 need_lib_prefix=no
11794 library_names_spec='$libname${shared_ext} $libname.a'
11795 dynamic_linker='OS/2 ld.exe'
11796 shlibpath_var=LIBPATH
11799 osf3* | osf4* | osf5*)
11800 version_type=osf
11801 need_lib_prefix=no
11802 need_version=no
11803 soname_spec='${libname}${release}${shared_ext}$major'
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11810 rdos*)
11811 dynamic_linker=no
11814 solaris*)
11815 version_type=linux
11816 need_lib_prefix=no
11817 need_version=no
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=yes
11822 hardcode_into_libs=yes
11823 # ldd complains unless libraries are executable
11824 postinstall_cmds='chmod +x $lib'
11827 sunos4*)
11828 version_type=sunos
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=yes
11833 if test "$with_gnu_ld" = yes; then
11834 need_lib_prefix=no
11836 need_version=yes
11839 sysv4 | sysv4.3*)
11840 version_type=linux
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 case $host_vendor in
11845 sni)
11846 shlibpath_overrides_runpath=no
11847 need_lib_prefix=no
11848 runpath_var=LD_RUN_PATH
11850 siemens)
11851 need_lib_prefix=no
11853 motorola)
11854 need_lib_prefix=no
11855 need_version=no
11856 shlibpath_overrides_runpath=no
11857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859 esac
11862 sysv4*MP*)
11863 if test -d /usr/nec ;then
11864 version_type=linux
11865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11866 soname_spec='$libname${shared_ext}.$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11872 version_type=freebsd-elf
11873 need_lib_prefix=no
11874 need_version=no
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11880 if test "$with_gnu_ld" = yes; then
11881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11882 else
11883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11884 case $host_os in
11885 sco3.2v5*)
11886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11888 esac
11890 sys_lib_dlsearch_path_spec='/usr/lib'
11893 tpf*)
11894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 shlibpath_overrides_runpath=no
11901 hardcode_into_libs=yes
11904 uts4*)
11905 version_type=linux
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11912 dynamic_linker=no
11914 esac
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11916 $as_echo "$dynamic_linker" >&6; }
11917 test "$dynamic_linker" = no && can_build_shared=no
11919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11920 if test "$GCC" = yes; then
11921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11924 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11925 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11928 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12023 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12024 hardcode_action=
12025 if test -n "$hardcode_libdir_flag_spec" ||
12026 test -n "$runpath_var" ||
12027 test "X$hardcode_automatic" = "Xyes" ; then
12029 # We can hardcode non-existent directories.
12030 if test "$hardcode_direct" != no &&
12031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12032 # have to relink, otherwise we might link with an installed library
12033 # when we should be linking with a yet-to-be-installed one
12034 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12035 test "$hardcode_minus_L" != no; then
12036 # Linking always hardcodes the temporary library directory.
12037 hardcode_action=relink
12038 else
12039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12040 hardcode_action=immediate
12042 else
12043 # We cannot hardcode anything, or else we can only hardcode existing
12044 # directories.
12045 hardcode_action=unsupported
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12048 $as_echo "$hardcode_action" >&6; }
12050 if test "$hardcode_action" = relink ||
12051 test "$inherit_rpath" = yes; then
12052 # Fast installation is not supported
12053 enable_fast_install=no
12054 elif test "$shlibpath_overrides_runpath" = yes ||
12055 test "$enable_shared" = no; then
12056 # Fast installation is not necessary
12057 enable_fast_install=needless
12065 if test "x$enable_dlopen" != xyes; then
12066 enable_dlopen=unknown
12067 enable_dlopen_self=unknown
12068 enable_dlopen_self_static=unknown
12069 else
12070 lt_cv_dlopen=no
12071 lt_cv_dlopen_libs=
12073 case $host_os in
12074 beos*)
12075 lt_cv_dlopen="load_add_on"
12076 lt_cv_dlopen_libs=
12077 lt_cv_dlopen_self=yes
12080 mingw* | pw32* | cegcc*)
12081 lt_cv_dlopen="LoadLibrary"
12082 lt_cv_dlopen_libs=
12085 cygwin*)
12086 lt_cv_dlopen="dlopen"
12087 lt_cv_dlopen_libs=
12090 darwin*)
12091 # if libdl is installed we need to link against it
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12093 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12094 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 ac_check_lib_save_LIBS=$LIBS
12098 LIBS="-ldl $LIBS"
12099 if test x$gcc_no_link = xyes; then
12100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char dlopen ();
12113 main ()
12115 return dlopen ();
12117 return 0;
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_dl_dlopen=yes
12122 else
12123 ac_cv_lib_dl_dlopen=no
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12131 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12133 else
12135 lt_cv_dlopen="dyld"
12136 lt_cv_dlopen_libs=
12137 lt_cv_dlopen_self=yes
12144 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12145 if test "x$ac_cv_func_shl_load" = x""yes; then :
12146 lt_cv_dlopen="shl_load"
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12149 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12150 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-ldld $LIBS"
12155 if test x$gcc_no_link = xyes; then
12156 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char shl_load ();
12169 main ()
12171 return shl_load ();
12173 return 0;
12175 _ACEOF
12176 if ac_fn_c_try_link "$LINENO"; then :
12177 ac_cv_lib_dld_shl_load=yes
12178 else
12179 ac_cv_lib_dld_shl_load=no
12181 rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12186 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12187 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12188 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12189 else
12190 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12191 if test "x$ac_cv_func_dlopen" = x""yes; then :
12192 lt_cv_dlopen="dlopen"
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-ldl $LIBS"
12201 if test x$gcc_no_link = xyes; then
12202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dlopen ();
12215 main ()
12217 return dlopen ();
12219 return 0;
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_dl_dlopen=yes
12224 else
12225 ac_cv_lib_dl_dlopen=no
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12233 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12237 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12238 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-lsvld $LIBS"
12243 if test x$gcc_no_link = xyes; then
12244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char dlopen ();
12257 main ()
12259 return dlopen ();
12261 return 0;
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_svld_dlopen=yes
12266 else
12267 ac_cv_lib_svld_dlopen=no
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12274 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12275 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12279 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12280 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-ldld $LIBS"
12285 if test x$gcc_no_link = xyes; then
12286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 char dld_link ();
12299 main ()
12301 return dld_link ();
12303 return 0;
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307 ac_cv_lib_dld_dld_link=yes
12308 else
12309 ac_cv_lib_dld_dld_link=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12317 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12337 esac
12339 if test "x$lt_cv_dlopen" != xno; then
12340 enable_dlopen=yes
12341 else
12342 enable_dlopen=no
12345 case $lt_cv_dlopen in
12346 dlopen)
12347 save_CPPFLAGS="$CPPFLAGS"
12348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12350 save_LDFLAGS="$LDFLAGS"
12351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12353 save_LIBS="$LIBS"
12354 LIBS="$lt_cv_dlopen_libs $LIBS"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12357 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12358 if test "${lt_cv_dlopen_self+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test "$cross_compiling" = yes; then :
12362 lt_cv_dlopen_self=cross
12363 else
12364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365 lt_status=$lt_dlunknown
12366 cat > conftest.$ac_ext <<_LT_EOF
12367 #line 12352 "configure"
12368 #include "confdefs.h"
12370 #if HAVE_DLFCN_H
12371 #include <dlfcn.h>
12372 #endif
12374 #include <stdio.h>
12376 #ifdef RTLD_GLOBAL
12377 # define LT_DLGLOBAL RTLD_GLOBAL
12378 #else
12379 # ifdef DL_GLOBAL
12380 # define LT_DLGLOBAL DL_GLOBAL
12381 # else
12382 # define LT_DLGLOBAL 0
12383 # endif
12384 #endif
12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387 find out it does not work in some platform. */
12388 #ifndef LT_DLLAZY_OR_NOW
12389 # ifdef RTLD_LAZY
12390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12391 # else
12392 # ifdef DL_LAZY
12393 # define LT_DLLAZY_OR_NOW DL_LAZY
12394 # else
12395 # ifdef RTLD_NOW
12396 # define LT_DLLAZY_OR_NOW RTLD_NOW
12397 # else
12398 # ifdef DL_NOW
12399 # define LT_DLLAZY_OR_NOW DL_NOW
12400 # else
12401 # define LT_DLLAZY_OR_NOW 0
12402 # endif
12403 # endif
12404 # endif
12405 # endif
12406 #endif
12408 /* When -fvisbility=hidden is used, assume the code has been annotated
12409 correspondingly for the symbols needed. */
12410 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12411 void fnord () __attribute__((visibility("default")));
12412 #endif
12414 void fnord () { int i=42; }
12415 int main ()
12417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12418 int status = $lt_dlunknown;
12420 if (self)
12422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12423 else
12425 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426 else puts (dlerror ());
12428 /* dlclose (self); */
12430 else
12431 puts (dlerror ());
12433 return status;
12435 _LT_EOF
12436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12437 (eval $ac_link) 2>&5
12438 ac_status=$?
12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12441 (./conftest; exit; ) >&5 2>/dev/null
12442 lt_status=$?
12443 case x$lt_status in
12444 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12445 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12446 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12447 esac
12448 else :
12449 # compilation failed
12450 lt_cv_dlopen_self=no
12453 rm -fr conftest*
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12458 $as_echo "$lt_cv_dlopen_self" >&6; }
12460 if test "x$lt_cv_dlopen_self" = xyes; then
12461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12463 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12464 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if test "$cross_compiling" = yes; then :
12468 lt_cv_dlopen_self_static=cross
12469 else
12470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12471 lt_status=$lt_dlunknown
12472 cat > conftest.$ac_ext <<_LT_EOF
12473 #line 12458 "configure"
12474 #include "confdefs.h"
12476 #if HAVE_DLFCN_H
12477 #include <dlfcn.h>
12478 #endif
12480 #include <stdio.h>
12482 #ifdef RTLD_GLOBAL
12483 # define LT_DLGLOBAL RTLD_GLOBAL
12484 #else
12485 # ifdef DL_GLOBAL
12486 # define LT_DLGLOBAL DL_GLOBAL
12487 # else
12488 # define LT_DLGLOBAL 0
12489 # endif
12490 #endif
12492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12493 find out it does not work in some platform. */
12494 #ifndef LT_DLLAZY_OR_NOW
12495 # ifdef RTLD_LAZY
12496 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12497 # else
12498 # ifdef DL_LAZY
12499 # define LT_DLLAZY_OR_NOW DL_LAZY
12500 # else
12501 # ifdef RTLD_NOW
12502 # define LT_DLLAZY_OR_NOW RTLD_NOW
12503 # else
12504 # ifdef DL_NOW
12505 # define LT_DLLAZY_OR_NOW DL_NOW
12506 # else
12507 # define LT_DLLAZY_OR_NOW 0
12508 # endif
12509 # endif
12510 # endif
12511 # endif
12512 #endif
12514 /* When -fvisbility=hidden is used, assume the code has been annotated
12515 correspondingly for the symbols needed. */
12516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12517 void fnord () __attribute__((visibility("default")));
12518 #endif
12520 void fnord () { int i=42; }
12521 int main ()
12523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12524 int status = $lt_dlunknown;
12526 if (self)
12528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12529 else
12531 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12532 else puts (dlerror ());
12534 /* dlclose (self); */
12536 else
12537 puts (dlerror ());
12539 return status;
12541 _LT_EOF
12542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12543 (eval $ac_link) 2>&5
12544 ac_status=$?
12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12547 (./conftest; exit; ) >&5 2>/dev/null
12548 lt_status=$?
12549 case x$lt_status in
12550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12552 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12553 esac
12554 else :
12555 # compilation failed
12556 lt_cv_dlopen_self_static=no
12559 rm -fr conftest*
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12564 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12567 CPPFLAGS="$save_CPPFLAGS"
12568 LDFLAGS="$save_LDFLAGS"
12569 LIBS="$save_LIBS"
12571 esac
12573 case $lt_cv_dlopen_self in
12574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12575 *) enable_dlopen_self=unknown ;;
12576 esac
12578 case $lt_cv_dlopen_self_static in
12579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12580 *) enable_dlopen_self_static=unknown ;;
12581 esac
12600 striplib=
12601 old_striplib=
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12603 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12604 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12605 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12606 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609 else
12610 # FIXME - insert some real tests, host_os isn't really good enough
12611 case $host_os in
12612 darwin*)
12613 if test -n "$STRIP" ; then
12614 striplib="$STRIP -x"
12615 old_striplib="$STRIP -S"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12627 esac
12641 # Report which library types will actually be built
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12643 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12645 $as_echo "$can_build_shared" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12648 $as_echo_n "checking whether to build shared libraries... " >&6; }
12649 test "$can_build_shared" = "no" && enable_shared=no
12651 # On AIX, shared libraries and static libraries use the same namespace, and
12652 # are all built from PIC.
12653 case $host_os in
12654 aix3*)
12655 test "$enable_shared" = yes && enable_static=no
12656 if test -n "$RANLIB"; then
12657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12658 postinstall_cmds='$RANLIB $lib'
12662 aix[4-9]*)
12663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12664 test "$enable_shared" = yes && enable_static=no
12667 esac
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12669 $as_echo "$enable_shared" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12672 $as_echo_n "checking whether to build static libraries... " >&6; }
12673 # Make sure either enable_shared or enable_static is yes.
12674 test "$enable_shared" = yes || enable_static=yes
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12676 $as_echo "$enable_static" >&6; }
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688 CC="$lt_save_CC"
12702 ac_config_commands="$ac_config_commands libtool"
12707 # Only expand once:
12713 case $host in
12714 *-cygwin* | *-mingw*)
12715 # 'host' will be top-level target in the case of a target lib,
12716 # we must compare to with_cross_host to decide if this is a native
12717 # or cross-compiler and select where to install dlls appropriately.
12718 if test -n "$with_cross_host" &&
12719 test x"$with_cross_host" != x"no"; then
12720 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12721 else
12722 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12726 lt_host_flags=
12728 esac
12734 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12736 # We need gfortran to compile parts of the library
12737 #AC_PROG_FC(gfortran)
12738 FC="$GFORTRAN"
12739 ac_ext=${ac_fc_srcext-f}
12740 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12741 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12742 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12743 if test -n "$ac_tool_prefix"; then
12744 for ac_prog in gfortran
12746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if test "${ac_cv_prog_FC+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 if test -n "$FC"; then
12754 ac_cv_prog_FC="$FC" # Let the user override the test.
12755 else
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 break 2
12767 done
12768 done
12769 IFS=$as_save_IFS
12773 FC=$ac_cv_prog_FC
12774 if test -n "$FC"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12776 $as_echo "$FC" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12783 test -n "$FC" && break
12784 done
12786 if test -z "$FC"; then
12787 ac_ct_FC=$FC
12788 for ac_prog in gfortran
12790 # Extract the first word of "$ac_prog", so it can be a program name with args.
12791 set dummy $ac_prog; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test -n "$ac_ct_FC"; then
12798 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12799 else
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_prog_ac_ct_FC="$ac_prog"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12817 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12818 if test -n "$ac_ct_FC"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12820 $as_echo "$ac_ct_FC" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12827 test -n "$ac_ct_FC" && break
12828 done
12830 if test "x$ac_ct_FC" = x; then
12831 FC=""
12832 else
12833 case $cross_compiling:$ac_tool_warned in
12834 yes:)
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12837 ac_tool_warned=yes ;;
12838 esac
12839 FC=$ac_ct_FC
12844 # Provide some information about the compiler.
12845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12846 set X $ac_compile
12847 ac_compiler=$2
12848 for ac_option in --version -v -V -qversion; do
12849 { { ac_try="$ac_compiler $ac_option >&5"
12850 case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853 esac
12854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12855 $as_echo "$ac_try_echo"; } >&5
12856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12857 ac_status=$?
12858 if test -s conftest.err; then
12859 sed '10a\
12860 ... rest of stderr output deleted ...
12861 10q' conftest.err >conftest.er1
12862 cat conftest.er1 >&5
12863 rm -f conftest.er1 conftest.err
12865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12866 test $ac_status = 0; }
12867 done
12868 rm -f a.out
12870 # If we don't use `.F' as extension, the preprocessor is not run on the
12871 # input file. (Note that this only needs to work for GNU compilers.)
12872 ac_save_ext=$ac_ext
12873 ac_ext=F
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12875 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12876 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 cat > conftest.$ac_ext <<_ACEOF
12880 program main
12881 #ifndef __GNUC__
12882 choke me
12883 #endif
12886 _ACEOF
12887 if ac_fn_fc_try_compile "$LINENO"; then :
12888 ac_compiler_gnu=yes
12889 else
12890 ac_compiler_gnu=no
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12897 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12898 ac_ext=$ac_save_ext
12899 ac_test_FCFLAGS=${FCFLAGS+set}
12900 ac_save_FCFLAGS=$FCFLAGS
12901 FCFLAGS=
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12903 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12904 if test "${ac_cv_prog_fc_g+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 FCFLAGS=-g
12908 cat > conftest.$ac_ext <<_ACEOF
12909 program main
12912 _ACEOF
12913 if ac_fn_fc_try_compile "$LINENO"; then :
12914 ac_cv_prog_fc_g=yes
12915 else
12916 ac_cv_prog_fc_g=no
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12922 $as_echo "$ac_cv_prog_fc_g" >&6; }
12923 if test "$ac_test_FCFLAGS" = set; then
12924 FCFLAGS=$ac_save_FCFLAGS
12925 elif test $ac_cv_prog_fc_g = yes; then
12926 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12927 FCFLAGS="-g -O2"
12928 else
12929 FCFLAGS="-g"
12931 else
12932 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12933 FCFLAGS="-O2"
12934 else
12935 FCFLAGS=
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12945 ac_ext=${ac_fc_srcext-f}
12946 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12947 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12948 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12951 if test -z "$FC" || test "X$FC" = "Xno"; then
12952 _lt_disable_FC=yes
12955 archive_cmds_need_lc_FC=no
12956 allow_undefined_flag_FC=
12957 always_export_symbols_FC=no
12958 archive_expsym_cmds_FC=
12959 export_dynamic_flag_spec_FC=
12960 hardcode_direct_FC=no
12961 hardcode_direct_absolute_FC=no
12962 hardcode_libdir_flag_spec_FC=
12963 hardcode_libdir_flag_spec_ld_FC=
12964 hardcode_libdir_separator_FC=
12965 hardcode_minus_L_FC=no
12966 hardcode_automatic_FC=no
12967 inherit_rpath_FC=no
12968 module_cmds_FC=
12969 module_expsym_cmds_FC=
12970 link_all_deplibs_FC=unknown
12971 old_archive_cmds_FC=$old_archive_cmds
12972 reload_flag_FC=$reload_flag
12973 reload_cmds_FC=$reload_cmds
12974 no_undefined_flag_FC=
12975 whole_archive_flag_spec_FC=
12976 enable_shared_with_static_runtimes_FC=no
12978 # Source file extension for fc test sources.
12979 ac_ext=${ac_fc_srcext-f}
12981 # Object file extension for compiled fc test sources.
12982 objext=o
12983 objext_FC=$objext
12985 # No sense in running all these tests if we already determined that
12986 # the FC compiler isn't working. Some variables (like enable_shared)
12987 # are currently assumed to apply to all compilers on this platform,
12988 # and will be corrupted by setting them based on a non-working compiler.
12989 if test "$_lt_disable_FC" != yes; then
12990 # Code to be used in simple compile tests
12991 lt_simple_compile_test_code="\
12992 subroutine t
12993 return
12997 # Code to be used in simple link tests
12998 lt_simple_link_test_code="\
12999 program t
13003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13010 # If no C compiler was specified, use CC.
13011 LTCC=${LTCC-"$CC"}
13013 # If no C compiler flags were specified, use CFLAGS.
13014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13016 # Allow CC to be a program name with arguments.
13017 compiler=$CC
13020 # save warnings/boilerplate of simple test code
13021 ac_outfile=conftest.$ac_objext
13022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13024 _lt_compiler_boilerplate=`cat conftest.err`
13025 $RM conftest*
13027 ac_outfile=conftest.$ac_objext
13028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13030 _lt_linker_boilerplate=`cat conftest.err`
13031 $RM -r conftest*
13034 # Allow CC to be a program name with arguments.
13035 lt_save_CC="$CC"
13036 lt_save_GCC=$GCC
13037 CC=${FC-"f95"}
13038 compiler=$CC
13039 GCC=$ac_cv_fc_compiler_gnu
13041 compiler_FC=$CC
13042 for cc_temp in $compiler""; do
13043 case $cc_temp in
13044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13046 \-*) ;;
13047 *) break;;
13048 esac
13049 done
13050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13053 if test -n "$compiler"; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13055 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13057 $as_echo "$can_build_shared" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13060 $as_echo_n "checking whether to build shared libraries... " >&6; }
13061 test "$can_build_shared" = "no" && enable_shared=no
13063 # On AIX, shared libraries and static libraries use the same namespace, and
13064 # are all built from PIC.
13065 case $host_os in
13066 aix3*)
13067 test "$enable_shared" = yes && enable_static=no
13068 if test -n "$RANLIB"; then
13069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13070 postinstall_cmds='$RANLIB $lib'
13073 aix[4-9]*)
13074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13075 test "$enable_shared" = yes && enable_static=no
13078 esac
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13080 $as_echo "$enable_shared" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13083 $as_echo_n "checking whether to build static libraries... " >&6; }
13084 # Make sure either enable_shared or enable_static is yes.
13085 test "$enable_shared" = yes || enable_static=yes
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13087 $as_echo "$enable_static" >&6; }
13089 GCC_FC="$ac_cv_fc_compiler_gnu"
13090 LD_FC="$LD"
13092 ## CAVEAT EMPTOR:
13093 ## There is no encapsulation within the following macros, do not change
13094 ## the running order or otherwise move them around unless you know exactly
13095 ## what you are doing...
13096 # Dependencies to place before and after the object being linked:
13097 predep_objects_FC=
13098 postdep_objects_FC=
13099 predeps_FC=
13100 postdeps_FC=
13101 compiler_lib_search_path_FC=
13103 cat > conftest.$ac_ext <<_LT_EOF
13104 subroutine foo
13105 implicit none
13106 integer a
13108 return
13110 _LT_EOF
13112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13113 (eval $ac_compile) 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }; then
13117 # Parse the compiler output and extract the necessary
13118 # objects, libraries and library flags.
13120 # Sentinel used to keep track of whether or not we are before
13121 # the conftest object file.
13122 pre_test_object_deps_done=no
13124 for p in `eval "$output_verbose_link_cmd"`; do
13125 case $p in
13127 -L* | -R* | -l*)
13128 # Some compilers place space between "-{L,R}" and the path.
13129 # Remove the space.
13130 if test $p = "-L" ||
13131 test $p = "-R"; then
13132 prev=$p
13133 continue
13134 else
13135 prev=
13138 if test "$pre_test_object_deps_done" = no; then
13139 case $p in
13140 -L* | -R*)
13141 # Internal compiler library paths should come after those
13142 # provided the user. The postdeps already come after the
13143 # user supplied libs so there is no need to process them.
13144 if test -z "$compiler_lib_search_path_FC"; then
13145 compiler_lib_search_path_FC="${prev}${p}"
13146 else
13147 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13150 # The "-l" case would never come before the object being
13151 # linked, so don't bother handling this case.
13152 esac
13153 else
13154 if test -z "$postdeps_FC"; then
13155 postdeps_FC="${prev}${p}"
13156 else
13157 postdeps_FC="${postdeps_FC} ${prev}${p}"
13162 *.$objext)
13163 # This assumes that the test object file only shows up
13164 # once in the compiler output.
13165 if test "$p" = "conftest.$objext"; then
13166 pre_test_object_deps_done=yes
13167 continue
13170 if test "$pre_test_object_deps_done" = no; then
13171 if test -z "$predep_objects_FC"; then
13172 predep_objects_FC="$p"
13173 else
13174 predep_objects_FC="$predep_objects_FC $p"
13176 else
13177 if test -z "$postdep_objects_FC"; then
13178 postdep_objects_FC="$p"
13179 else
13180 postdep_objects_FC="$postdep_objects_FC $p"
13185 *) ;; # Ignore the rest.
13187 esac
13188 done
13190 # Clean up.
13191 rm -f a.out a.exe
13192 else
13193 echo "libtool.m4: error: problem compiling FC test program"
13196 $RM -f confest.$objext
13198 # PORTME: override above test on systems where it is broken
13201 case " $postdeps_FC " in
13202 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13203 esac
13204 compiler_lib_search_dirs_FC=
13205 if test -n "${compiler_lib_search_path_FC}"; then
13206 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13239 lt_prog_compiler_wl_FC=
13240 lt_prog_compiler_pic_FC=
13241 lt_prog_compiler_static_FC=
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13246 if test "$GCC" = yes; then
13247 lt_prog_compiler_wl_FC='-Wl,'
13248 lt_prog_compiler_static_FC='-static'
13250 case $host_os in
13251 aix*)
13252 # All AIX code is PIC.
13253 if test "$host_cpu" = ia64; then
13254 # AIX 5 now supports IA64 processor
13255 lt_prog_compiler_static_FC='-Bstatic'
13257 lt_prog_compiler_pic_FC='-fPIC'
13260 amigaos*)
13261 case $host_cpu in
13262 powerpc)
13263 # see comment about AmigaOS4 .so support
13264 lt_prog_compiler_pic_FC='-fPIC'
13266 m68k)
13267 # FIXME: we need at least 68020 code to build shared libraries, but
13268 # adding the `-m68020' flag to GCC prevents building anything better,
13269 # like `-m68040'.
13270 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13272 esac
13275 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13276 # PIC is the default for these OSes.
13279 mingw* | cygwin* | pw32* | os2* | cegcc*)
13280 # This hack is so that the source file can tell whether it is being
13281 # built for inclusion in a dll (and should export symbols for example).
13282 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13283 # (--disable-auto-import) libraries
13284 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13287 darwin* | rhapsody*)
13288 # PIC is the default on this platform
13289 # Common symbols not allowed in MH_DYLIB files
13290 lt_prog_compiler_pic_FC='-fno-common'
13293 haiku*)
13294 # PIC is the default for Haiku.
13295 # The "-static" flag exists, but is broken.
13296 lt_prog_compiler_static_FC=
13299 hpux*)
13300 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13301 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13302 # sets the default TLS model and affects inlining.
13303 case $host_cpu in
13304 hppa*64*)
13305 # +Z the default
13308 lt_prog_compiler_pic_FC='-fPIC'
13310 esac
13313 interix[3-9]*)
13314 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13315 # Instead, we relocate shared libraries at runtime.
13318 msdosdjgpp*)
13319 # Just because we use GCC doesn't mean we suddenly get shared libraries
13320 # on systems that don't support them.
13321 lt_prog_compiler_can_build_shared_FC=no
13322 enable_shared=no
13325 *nto* | *qnx*)
13326 # QNX uses GNU C++, but need to define -shared option too, otherwise
13327 # it will coredump.
13328 lt_prog_compiler_pic_FC='-fPIC -shared'
13331 sysv4*MP*)
13332 if test -d /usr/nec; then
13333 lt_prog_compiler_pic_FC=-Kconform_pic
13338 lt_prog_compiler_pic_FC='-fPIC'
13340 esac
13342 case $cc_basename in
13343 nvcc*) # Cuda Compiler Driver 2.2
13344 lt_prog_compiler_wl_FC='-Xlinker '
13345 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13347 esac
13348 else
13349 # PORTME Check for flag to pass linker flags through the system compiler.
13350 case $host_os in
13351 aix*)
13352 lt_prog_compiler_wl_FC='-Wl,'
13353 if test "$host_cpu" = ia64; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static_FC='-Bstatic'
13356 else
13357 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13361 mingw* | cygwin* | pw32* | os2* | cegcc*)
13362 # This hack is so that the source file can tell whether it is being
13363 # built for inclusion in a dll (and should export symbols for example).
13364 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13367 hpux9* | hpux10* | hpux11*)
13368 lt_prog_compiler_wl_FC='-Wl,'
13369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13370 # not for PA HP-UX.
13371 case $host_cpu in
13372 hppa*64*|ia64*)
13373 # +Z the default
13376 lt_prog_compiler_pic_FC='+Z'
13378 esac
13379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13380 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13383 irix5* | irix6* | nonstopux*)
13384 lt_prog_compiler_wl_FC='-Wl,'
13385 # PIC (with -KPIC) is the default.
13386 lt_prog_compiler_static_FC='-non_shared'
13389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13390 case $cc_basename in
13391 # old Intel for x86_64 which still supported -KPIC.
13392 ecc*)
13393 lt_prog_compiler_wl_FC='-Wl,'
13394 lt_prog_compiler_pic_FC='-KPIC'
13395 lt_prog_compiler_static_FC='-static'
13397 # icc used to be incompatible with GCC.
13398 # ICC 10 doesn't accept -KPIC any more.
13399 icc* | ifort*)
13400 lt_prog_compiler_wl_FC='-Wl,'
13401 lt_prog_compiler_pic_FC='-fPIC'
13402 lt_prog_compiler_static_FC='-static'
13404 # Lahey Fortran 8.1.
13405 lf95*)
13406 lt_prog_compiler_wl_FC='-Wl,'
13407 lt_prog_compiler_pic_FC='--shared'
13408 lt_prog_compiler_static_FC='--static'
13410 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13411 # Portland Group compilers (*not* the Pentium gcc compiler,
13412 # which looks to be a dead project)
13413 lt_prog_compiler_wl_FC='-Wl,'
13414 lt_prog_compiler_pic_FC='-fpic'
13415 lt_prog_compiler_static_FC='-Bstatic'
13417 ccc*)
13418 lt_prog_compiler_wl_FC='-Wl,'
13419 # All Alpha code is PIC.
13420 lt_prog_compiler_static_FC='-non_shared'
13422 xl* | bgxl* | bgf* | mpixl*)
13423 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13424 lt_prog_compiler_wl_FC='-Wl,'
13425 lt_prog_compiler_pic_FC='-qpic'
13426 lt_prog_compiler_static_FC='-qstaticlink'
13429 case `$CC -V 2>&1 | sed 5q` in
13430 *Sun\ F* | *Sun*Fortran*)
13431 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13432 lt_prog_compiler_pic_FC='-KPIC'
13433 lt_prog_compiler_static_FC='-Bstatic'
13434 lt_prog_compiler_wl_FC=''
13436 *Sun\ C*)
13437 # Sun C 5.9
13438 lt_prog_compiler_pic_FC='-KPIC'
13439 lt_prog_compiler_static_FC='-Bstatic'
13440 lt_prog_compiler_wl_FC='-Wl,'
13442 esac
13444 esac
13447 newsos6)
13448 lt_prog_compiler_pic_FC='-KPIC'
13449 lt_prog_compiler_static_FC='-Bstatic'
13452 *nto* | *qnx*)
13453 # QNX uses GNU C++, but need to define -shared option too, otherwise
13454 # it will coredump.
13455 lt_prog_compiler_pic_FC='-fPIC -shared'
13458 osf3* | osf4* | osf5*)
13459 lt_prog_compiler_wl_FC='-Wl,'
13460 # All OSF/1 code is PIC.
13461 lt_prog_compiler_static_FC='-non_shared'
13464 rdos*)
13465 lt_prog_compiler_static_FC='-non_shared'
13468 solaris*)
13469 lt_prog_compiler_pic_FC='-KPIC'
13470 lt_prog_compiler_static_FC='-Bstatic'
13471 case $cc_basename in
13472 f77* | f90* | f95*)
13473 lt_prog_compiler_wl_FC='-Qoption ld ';;
13475 lt_prog_compiler_wl_FC='-Wl,';;
13476 esac
13479 sunos4*)
13480 lt_prog_compiler_wl_FC='-Qoption ld '
13481 lt_prog_compiler_pic_FC='-PIC'
13482 lt_prog_compiler_static_FC='-Bstatic'
13485 sysv4 | sysv4.2uw2* | sysv4.3*)
13486 lt_prog_compiler_wl_FC='-Wl,'
13487 lt_prog_compiler_pic_FC='-KPIC'
13488 lt_prog_compiler_static_FC='-Bstatic'
13491 sysv4*MP*)
13492 if test -d /usr/nec ;then
13493 lt_prog_compiler_pic_FC='-Kconform_pic'
13494 lt_prog_compiler_static_FC='-Bstatic'
13498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13499 lt_prog_compiler_wl_FC='-Wl,'
13500 lt_prog_compiler_pic_FC='-KPIC'
13501 lt_prog_compiler_static_FC='-Bstatic'
13504 unicos*)
13505 lt_prog_compiler_wl_FC='-Wl,'
13506 lt_prog_compiler_can_build_shared_FC=no
13509 uts4*)
13510 lt_prog_compiler_pic_FC='-pic'
13511 lt_prog_compiler_static_FC='-Bstatic'
13515 lt_prog_compiler_can_build_shared_FC=no
13517 esac
13520 case $host_os in
13521 # For platforms which do not support PIC, -DPIC is meaningless:
13522 *djgpp*)
13523 lt_prog_compiler_pic_FC=
13526 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13528 esac
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13530 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13535 # Check to make sure the PIC flag actually works.
13537 if test -n "$lt_prog_compiler_pic_FC"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13540 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 lt_cv_prog_compiler_pic_works_FC=no
13544 ac_outfile=conftest.$ac_objext
13545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13546 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13547 # Insert the option either (1) after the last *FLAGS variable, or
13548 # (2) before a word containing "conftest.", or (3) at the end.
13549 # Note that $ac_compile itself does not contain backslashes and begins
13550 # with a dollar sign (not a hyphen), so the echo should work correctly.
13551 # The option is referenced via a variable to avoid confusing sed.
13552 lt_compile=`echo "$ac_compile" | $SED \
13553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13555 -e 's:$: $lt_compiler_flag:'`
13556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13557 (eval "$lt_compile" 2>conftest.err)
13558 ac_status=$?
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 if (exit $ac_status) && test -s "$ac_outfile"; then
13562 # The compiler can only warn and ignore the option if not recognized
13563 # So say no if there are warnings other than the usual output.
13564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13567 lt_cv_prog_compiler_pic_works_FC=yes
13570 $RM conftest*
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13574 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13576 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13577 case $lt_prog_compiler_pic_FC in
13578 "" | " "*) ;;
13579 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13580 esac
13581 else
13582 lt_prog_compiler_pic_FC=
13583 lt_prog_compiler_can_build_shared_FC=no
13591 # Check to make sure the static flag actually works.
13593 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13595 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13596 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 lt_cv_prog_compiler_static_works_FC=no
13600 save_LDFLAGS="$LDFLAGS"
13601 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13602 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13604 # The linker can only warn and ignore the option if not recognized
13605 # So say no if there are warnings
13606 if test -s conftest.err; then
13607 # Append any errors to the config.log.
13608 cat conftest.err 1>&5
13609 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13611 if diff conftest.exp conftest.er2 >/dev/null; then
13612 lt_cv_prog_compiler_static_works_FC=yes
13614 else
13615 lt_cv_prog_compiler_static_works_FC=yes
13618 $RM -r conftest*
13619 LDFLAGS="$save_LDFLAGS"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13623 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13625 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13627 else
13628 lt_prog_compiler_static_FC=
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13636 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 lt_cv_prog_compiler_c_o_FC=no
13640 $RM -r conftest 2>/dev/null
13641 mkdir conftest
13642 cd conftest
13643 mkdir out
13644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13646 lt_compiler_flag="-o out/conftest2.$ac_objext"
13647 # Insert the option either (1) after the last *FLAGS variable, or
13648 # (2) before a word containing "conftest.", or (3) at the end.
13649 # Note that $ac_compile itself does not contain backslashes and begins
13650 # with a dollar sign (not a hyphen), so the echo should work correctly.
13651 lt_compile=`echo "$ac_compile" | $SED \
13652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13654 -e 's:$: $lt_compiler_flag:'`
13655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13656 (eval "$lt_compile" 2>out/conftest.err)
13657 ac_status=$?
13658 cat out/conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13661 then
13662 # The compiler can only warn and ignore the option if not recognized
13663 # So say no if there are warnings
13664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13667 lt_cv_prog_compiler_c_o_FC=yes
13670 chmod u+w . 2>&5
13671 $RM conftest*
13672 # SGI C++ compiler will create directory out/ii_files/ for
13673 # template instantiation
13674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13675 $RM out/* && rmdir out
13676 cd ..
13677 $RM -r conftest
13678 $RM conftest*
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13682 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13688 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 lt_cv_prog_compiler_c_o_FC=no
13692 $RM -r conftest 2>/dev/null
13693 mkdir conftest
13694 cd conftest
13695 mkdir out
13696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13698 lt_compiler_flag="-o out/conftest2.$ac_objext"
13699 # Insert the option either (1) after the last *FLAGS variable, or
13700 # (2) before a word containing "conftest.", or (3) at the end.
13701 # Note that $ac_compile itself does not contain backslashes and begins
13702 # with a dollar sign (not a hyphen), so the echo should work correctly.
13703 lt_compile=`echo "$ac_compile" | $SED \
13704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13706 -e 's:$: $lt_compiler_flag:'`
13707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13708 (eval "$lt_compile" 2>out/conftest.err)
13709 ac_status=$?
13710 cat out/conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13713 then
13714 # The compiler can only warn and ignore the option if not recognized
13715 # So say no if there are warnings
13716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13719 lt_cv_prog_compiler_c_o_FC=yes
13722 chmod u+w . 2>&5
13723 $RM conftest*
13724 # SGI C++ compiler will create directory out/ii_files/ for
13725 # template instantiation
13726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13727 $RM out/* && rmdir out
13728 cd ..
13729 $RM -r conftest
13730 $RM conftest*
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13734 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13739 hard_links="nottested"
13740 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13741 # do not overwrite the value of need_locks provided by the user
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13743 $as_echo_n "checking if we can lock with hard links... " >&6; }
13744 hard_links=yes
13745 $RM conftest*
13746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13747 touch conftest.a
13748 ln conftest.a conftest.b 2>&5 || hard_links=no
13749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13751 $as_echo "$hard_links" >&6; }
13752 if test "$hard_links" = no; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13754 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13755 need_locks=warn
13757 else
13758 need_locks=no
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13764 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13766 runpath_var=
13767 allow_undefined_flag_FC=
13768 always_export_symbols_FC=no
13769 archive_cmds_FC=
13770 archive_expsym_cmds_FC=
13771 compiler_needs_object_FC=no
13772 enable_shared_with_static_runtimes_FC=no
13773 export_dynamic_flag_spec_FC=
13774 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13775 hardcode_automatic_FC=no
13776 hardcode_direct_FC=no
13777 hardcode_direct_absolute_FC=no
13778 hardcode_libdir_flag_spec_FC=
13779 hardcode_libdir_flag_spec_ld_FC=
13780 hardcode_libdir_separator_FC=
13781 hardcode_minus_L_FC=no
13782 hardcode_shlibpath_var_FC=unsupported
13783 inherit_rpath_FC=no
13784 link_all_deplibs_FC=unknown
13785 module_cmds_FC=
13786 module_expsym_cmds_FC=
13787 old_archive_from_new_cmds_FC=
13788 old_archive_from_expsyms_cmds_FC=
13789 thread_safe_flag_spec_FC=
13790 whole_archive_flag_spec_FC=
13791 # include_expsyms should be a list of space-separated symbols to be *always*
13792 # included in the symbol list
13793 include_expsyms_FC=
13794 # exclude_expsyms can be an extended regexp of symbols to exclude
13795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13797 # as well as any symbol that contains `d'.
13798 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13800 # platforms (ab)use it in PIC code, but their linkers get confused if
13801 # the symbol is explicitly referenced. Since portable code cannot
13802 # rely on this symbol name, it's probably fine to never include it in
13803 # preloaded symbol tables.
13804 # Exclude shared library initialization/finalization symbols.
13805 extract_expsyms_cmds=
13807 case $host_os in
13808 cygwin* | mingw* | pw32* | cegcc*)
13809 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13810 # When not using gcc, we currently assume that we are using
13811 # Microsoft Visual C++.
13812 if test "$GCC" != yes; then
13813 with_gnu_ld=no
13816 interix*)
13817 # we just hope/assume this is gcc and not c89 (= MSVC++)
13818 with_gnu_ld=yes
13820 openbsd*)
13821 with_gnu_ld=no
13823 esac
13825 ld_shlibs_FC=yes
13827 # On some targets, GNU ld is compatible enough with the native linker
13828 # that we're better off using the native interface for both.
13829 lt_use_gnu_ld_interface=no
13830 if test "$with_gnu_ld" = yes; then
13831 case $host_os in
13832 aix*)
13833 # The AIX port of GNU ld has always aspired to compatibility
13834 # with the native linker. However, as the warning in the GNU ld
13835 # block says, versions before 2.19.5* couldn't really create working
13836 # shared libraries, regardless of the interface used.
13837 case `$LD -v 2>&1` in
13838 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13839 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13840 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13842 lt_use_gnu_ld_interface=yes
13844 esac
13847 lt_use_gnu_ld_interface=yes
13849 esac
13852 if test "$lt_use_gnu_ld_interface" = yes; then
13853 # If archive_cmds runs LD, not CC, wlarc should be empty
13854 wlarc='${wl}'
13856 # Set some defaults for GNU ld with shared library support. These
13857 # are reset later if shared libraries are not supported. Putting them
13858 # here allows them to be overridden if necessary.
13859 runpath_var=LD_RUN_PATH
13860 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13861 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13862 # ancient GNU ld didn't support --whole-archive et. al.
13863 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13864 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13865 else
13866 whole_archive_flag_spec_FC=
13868 supports_anon_versioning=no
13869 case `$LD -v 2>&1` in
13870 *GNU\ gold*) supports_anon_versioning=yes ;;
13871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13874 *\ 2.11.*) ;; # other 2.11 versions
13875 *) supports_anon_versioning=yes ;;
13876 esac
13878 # See if GNU ld supports shared libraries.
13879 case $host_os in
13880 aix[3-9]*)
13881 # On AIX/PPC, the GNU linker is very broken
13882 if test "$host_cpu" != ia64; then
13883 ld_shlibs_FC=no
13884 cat <<_LT_EOF 1>&2
13886 *** Warning: the GNU linker, at least up to release 2.19, is reported
13887 *** to be unable to reliably create shared libraries on AIX.
13888 *** Therefore, libtool is disabling shared libraries support. If you
13889 *** really care for shared libraries, you may want to install binutils
13890 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13891 *** You will then need to restart the configuration process.
13893 _LT_EOF
13897 amigaos*)
13898 case $host_cpu in
13899 powerpc)
13900 # see comment about AmigaOS4 .so support
13901 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_FC=''
13904 m68k)
13905 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)'
13906 hardcode_libdir_flag_spec_FC='-L$libdir'
13907 hardcode_minus_L_FC=yes
13909 esac
13912 beos*)
13913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13914 allow_undefined_flag_FC=unsupported
13915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13916 # support --undefined. This deserves some investigation. FIXME
13917 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918 else
13919 ld_shlibs_FC=no
13923 cygwin* | mingw* | pw32* | cegcc*)
13924 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13925 # as there is no search path for DLLs.
13926 hardcode_libdir_flag_spec_FC='-L$libdir'
13927 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13928 allow_undefined_flag_FC=unsupported
13929 always_export_symbols_FC=no
13930 enable_shared_with_static_runtimes_FC=yes
13931 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13934 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13935 # If the export-symbols file already is a .def file (1st line
13936 # is EXPORTS), use it as is; otherwise, prepend...
13937 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13938 cp $export_symbols $output_objdir/$soname.def;
13939 else
13940 echo EXPORTS > $output_objdir/$soname.def;
13941 cat $export_symbols >> $output_objdir/$soname.def;
13943 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13944 else
13945 ld_shlibs_FC=no
13949 haiku*)
13950 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13951 link_all_deplibs_FC=yes
13954 interix[3-9]*)
13955 hardcode_direct_FC=no
13956 hardcode_shlibpath_var_FC=no
13957 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13958 export_dynamic_flag_spec_FC='${wl}-E'
13959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13960 # Instead, shared libraries are loaded at an image base (0x10000000 by
13961 # default) and relocated if they conflict, which is a slow very memory
13962 # consuming and fragmenting process. To avoid this, we pick a random,
13963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13965 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'
13966 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'
13969 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13970 tmp_diet=no
13971 if test "$host_os" = linux-dietlibc; then
13972 case $cc_basename in
13973 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13974 esac
13976 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13977 && test "$tmp_diet" = no
13978 then
13979 tmp_addflag=
13980 tmp_sharedflag='-shared'
13981 case $cc_basename,$host_cpu in
13982 pgcc*) # Portland Group C compiler
13983 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'
13984 tmp_addflag=' $pic_flag'
13986 pgf77* | pgf90* | pgf95* | pgfortran*)
13987 # Portland Group f77 and f90 compilers
13988 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'
13989 tmp_addflag=' $pic_flag -Mnomain' ;;
13990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13991 tmp_addflag=' -i_dynamic' ;;
13992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13993 tmp_addflag=' -i_dynamic -nofor_main' ;;
13994 ifc* | ifort*) # Intel Fortran compiler
13995 tmp_addflag=' -nofor_main' ;;
13996 lf95*) # Lahey Fortran 8.1
13997 whole_archive_flag_spec_FC=
13998 tmp_sharedflag='--shared' ;;
13999 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14000 tmp_sharedflag='-qmkshrobj'
14001 tmp_addflag= ;;
14002 nvcc*) # Cuda Compiler Driver 2.2
14003 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'
14004 compiler_needs_object_FC=yes
14006 esac
14007 case `$CC -V 2>&1 | sed 5q` in
14008 *Sun\ C*) # Sun C 5.9
14009 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'
14010 compiler_needs_object_FC=yes
14011 tmp_sharedflag='-G' ;;
14012 *Sun\ F*) # Sun Fortran 8.3
14013 tmp_sharedflag='-G' ;;
14014 esac
14015 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14017 if test "x$supports_anon_versioning" = xyes; then
14018 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14020 echo "local: *; };" >> $output_objdir/$libname.ver~
14021 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14024 case $cc_basename in
14025 xlf* | bgf* | bgxlf* | mpixlf*)
14026 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14027 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14028 hardcode_libdir_flag_spec_FC=
14029 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14030 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14031 if test "x$supports_anon_versioning" = xyes; then
14032 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14034 echo "local: *; };" >> $output_objdir/$libname.ver~
14035 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14038 esac
14039 else
14040 ld_shlibs_FC=no
14044 netbsd*)
14045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14046 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14047 wlarc=
14048 else
14049 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14054 solaris*)
14055 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14056 ld_shlibs_FC=no
14057 cat <<_LT_EOF 1>&2
14059 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14060 *** create shared libraries on Solaris systems. Therefore, libtool
14061 *** is disabling shared libraries support. We urge you to upgrade GNU
14062 *** binutils to release 2.9.1 or newer. Another option is to modify
14063 *** your PATH or compiler configuration so that the native linker is
14064 *** used, and then restart.
14066 _LT_EOF
14067 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14068 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14070 else
14071 ld_shlibs_FC=no
14075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14076 case `$LD -v 2>&1` in
14077 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14078 ld_shlibs_FC=no
14079 cat <<_LT_EOF 1>&2
14081 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14082 *** reliably create shared libraries on SCO systems. Therefore, libtool
14083 *** is disabling shared libraries support. We urge you to upgrade GNU
14084 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14085 *** your PATH or compiler configuration so that the native linker is
14086 *** used, and then restart.
14088 _LT_EOF
14091 # For security reasons, it is highly recommended that you always
14092 # use absolute paths for naming shared libraries, and exclude the
14093 # DT_RUNPATH tag from executables and libraries. But doing so
14094 # requires that you compile everything twice, which is a pain.
14095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14096 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14097 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14099 else
14100 ld_shlibs_FC=no
14103 esac
14106 sunos4*)
14107 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14108 wlarc=
14109 hardcode_direct_FC=yes
14110 hardcode_shlibpath_var_FC=no
14114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14115 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14117 else
14118 ld_shlibs_FC=no
14121 esac
14123 if test "$ld_shlibs_FC" = no; then
14124 runpath_var=
14125 hardcode_libdir_flag_spec_FC=
14126 export_dynamic_flag_spec_FC=
14127 whole_archive_flag_spec_FC=
14129 else
14130 # PORTME fill in a description of your system's linker (not GNU ld)
14131 case $host_os in
14132 aix3*)
14133 allow_undefined_flag_FC=unsupported
14134 always_export_symbols_FC=yes
14135 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'
14136 # Note: this linker hardcodes the directories in LIBPATH if there
14137 # are no directories specified by -L.
14138 hardcode_minus_L_FC=yes
14139 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14140 # Neither direct hardcoding nor static linking is supported with a
14141 # broken collect2.
14142 hardcode_direct_FC=unsupported
14146 aix[4-9]*)
14147 if test "$host_cpu" = ia64; then
14148 # On IA64, the linker does run time linking by default, so we don't
14149 # have to do anything special.
14150 aix_use_runtimelinking=no
14151 exp_sym_flag='-Bexport'
14152 no_entry_flag=""
14153 else
14154 # If we're using GNU nm, then we don't want the "-C" option.
14155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14156 # Also, AIX nm treats weak defined symbols like other global
14157 # defined symbols, whereas GNU nm marks them as "W".
14158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14159 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'
14160 else
14161 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14163 aix_use_runtimelinking=no
14165 # Test if we are trying to use run time linking or normal
14166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14167 # need to do runtime linking.
14168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14169 for ld_flag in $LDFLAGS; do
14170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14171 aix_use_runtimelinking=yes
14172 break
14174 done
14176 esac
14178 exp_sym_flag='-bexport'
14179 no_entry_flag='-bnoentry'
14182 # When large executables or shared objects are built, AIX ld can
14183 # have problems creating the table of contents. If linking a library
14184 # or program results in "error TOC overflow" add -mminimal-toc to
14185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14188 archive_cmds_FC=''
14189 hardcode_direct_FC=yes
14190 hardcode_direct_absolute_FC=yes
14191 hardcode_libdir_separator_FC=':'
14192 link_all_deplibs_FC=yes
14193 file_list_spec_FC='${wl}-f,'
14195 if test "$GCC" = yes; then
14196 case $host_os in aix4.[012]|aix4.[012].*)
14197 # We only want to do this on AIX 4.2 and lower, the check
14198 # below for broken collect2 doesn't work under 4.3+
14199 collect2name=`${CC} -print-prog-name=collect2`
14200 if test -f "$collect2name" &&
14201 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14202 then
14203 # We have reworked collect2
14205 else
14206 # We have old collect2
14207 hardcode_direct_FC=unsupported
14208 # It fails to find uninstalled libraries when the uninstalled
14209 # path is not listed in the libpath. Setting hardcode_minus_L
14210 # to unsupported forces relinking
14211 hardcode_minus_L_FC=yes
14212 hardcode_libdir_flag_spec_FC='-L$libdir'
14213 hardcode_libdir_separator_FC=
14216 esac
14217 shared_flag='-shared'
14218 if test "$aix_use_runtimelinking" = yes; then
14219 shared_flag="$shared_flag "'${wl}-G'
14221 else
14222 # not using gcc
14223 if test "$host_cpu" = ia64; then
14224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14225 # chokes on -Wl,-G. The following line is correct:
14226 shared_flag='-G'
14227 else
14228 if test "$aix_use_runtimelinking" = yes; then
14229 shared_flag='${wl}-G'
14230 else
14231 shared_flag='${wl}-bM:SRE'
14236 export_dynamic_flag_spec_FC='${wl}-bexpall'
14237 # It seems that -bexpall does not export symbols beginning with
14238 # underscore (_), so it is better to generate a list of symbols to export.
14239 always_export_symbols_FC=yes
14240 if test "$aix_use_runtimelinking" = yes; then
14241 # Warning - without using the other runtime loading flags (-brtl),
14242 # -berok will link without error, but may produce a broken library.
14243 allow_undefined_flag_FC='-berok'
14244 # Determine the default libpath from the value encoded in an
14245 # empty executable.
14246 if test x$gcc_no_link = xyes; then
14247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14249 cat > conftest.$ac_ext <<_ACEOF
14250 program main
14253 _ACEOF
14254 if ac_fn_fc_try_link "$LINENO"; then :
14256 lt_aix_libpath_sed='
14257 /Import File Strings/,/^$/ {
14258 /^0/ {
14259 s/^0 *\(.*\)$/\1/
14263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 # Check for a 64-bit object if we didn't find anything.
14265 if test -z "$aix_libpath"; then
14266 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14273 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14274 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"
14275 else
14276 if test "$host_cpu" = ia64; then
14277 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14278 allow_undefined_flag_FC="-z nodefs"
14279 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"
14280 else
14281 # Determine the default libpath from the value encoded in an
14282 # empty executable.
14283 if test x$gcc_no_link = xyes; then
14284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14286 cat > conftest.$ac_ext <<_ACEOF
14287 program main
14290 _ACEOF
14291 if ac_fn_fc_try_link "$LINENO"; then :
14293 lt_aix_libpath_sed='
14294 /Import File Strings/,/^$/ {
14295 /^0/ {
14296 s/^0 *\(.*\)$/\1/
14300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14301 # Check for a 64-bit object if we didn't find anything.
14302 if test -z "$aix_libpath"; then
14303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14310 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14311 # Warning - without using the other run time loading flags,
14312 # -berok will link without error, but may produce a broken library.
14313 no_undefined_flag_FC=' ${wl}-bernotok'
14314 allow_undefined_flag_FC=' ${wl}-berok'
14315 if test "$with_gnu_ld" = yes; then
14316 # We only use this code for GNU lds that support --whole-archive.
14317 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14318 else
14319 # Exported symbols can be pulled into shared objects from archives
14320 whole_archive_flag_spec_FC='$convenience'
14322 archive_cmds_need_lc_FC=yes
14323 # This is similar to how AIX traditionally builds its shared libraries.
14324 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'
14329 amigaos*)
14330 case $host_cpu in
14331 powerpc)
14332 # see comment about AmigaOS4 .so support
14333 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14334 archive_expsym_cmds_FC=''
14336 m68k)
14337 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)'
14338 hardcode_libdir_flag_spec_FC='-L$libdir'
14339 hardcode_minus_L_FC=yes
14341 esac
14344 bsdi[45]*)
14345 export_dynamic_flag_spec_FC=-rdynamic
14348 cygwin* | mingw* | pw32* | cegcc*)
14349 # When not using gcc, we currently assume that we are using
14350 # Microsoft Visual C++.
14351 # hardcode_libdir_flag_spec is actually meaningless, as there is
14352 # no search path for DLLs.
14353 hardcode_libdir_flag_spec_FC=' '
14354 allow_undefined_flag_FC=unsupported
14355 # Tell ltmain to make .lib files, not .a files.
14356 libext=lib
14357 # Tell ltmain to make .dll files, not .so files.
14358 shrext_cmds=".dll"
14359 # FIXME: Setting linknames here is a bad hack.
14360 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14361 # The linker will automatically build a .lib file if we build a DLL.
14362 old_archive_from_new_cmds_FC='true'
14363 # FIXME: Should let the user specify the lib program.
14364 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14365 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14366 enable_shared_with_static_runtimes_FC=yes
14369 darwin* | rhapsody*)
14372 archive_cmds_need_lc_FC=no
14373 hardcode_direct_FC=no
14374 hardcode_automatic_FC=yes
14375 hardcode_shlibpath_var_FC=unsupported
14376 if test "$lt_cv_ld_force_load" = "yes"; then
14377 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\"`'
14378 else
14379 whole_archive_flag_spec_FC=''
14381 link_all_deplibs_FC=yes
14382 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14383 case $cc_basename in
14384 ifort*) _lt_dar_can_shared=yes ;;
14385 *) _lt_dar_can_shared=$GCC ;;
14386 esac
14387 if test "$_lt_dar_can_shared" = "yes"; then
14388 output_verbose_link_cmd=func_echo_all
14389 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}"
14390 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14391 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}"
14392 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}"
14394 else
14395 ld_shlibs_FC=no
14400 dgux*)
14401 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14402 hardcode_libdir_flag_spec_FC='-L$libdir'
14403 hardcode_shlibpath_var_FC=no
14406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14407 # support. Future versions do this automatically, but an explicit c++rt0.o
14408 # does not break anything, and helps significantly (at the cost of a little
14409 # extra space).
14410 freebsd2.2*)
14411 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14412 hardcode_libdir_flag_spec_FC='-R$libdir'
14413 hardcode_direct_FC=yes
14414 hardcode_shlibpath_var_FC=no
14417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14418 freebsd2.*)
14419 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14420 hardcode_direct_FC=yes
14421 hardcode_minus_L_FC=yes
14422 hardcode_shlibpath_var_FC=no
14425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14426 freebsd* | dragonfly*)
14427 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14428 hardcode_libdir_flag_spec_FC='-R$libdir'
14429 hardcode_direct_FC=yes
14430 hardcode_shlibpath_var_FC=no
14433 hpux9*)
14434 if test "$GCC" = yes; then
14435 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'
14436 else
14437 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'
14439 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14440 hardcode_libdir_separator_FC=:
14441 hardcode_direct_FC=yes
14443 # hardcode_minus_L: Not really in the search PATH,
14444 # but as the default location of the library.
14445 hardcode_minus_L_FC=yes
14446 export_dynamic_flag_spec_FC='${wl}-E'
14449 hpux10*)
14450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14451 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14452 else
14453 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14455 if test "$with_gnu_ld" = no; then
14456 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14457 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14458 hardcode_libdir_separator_FC=:
14459 hardcode_direct_FC=yes
14460 hardcode_direct_absolute_FC=yes
14461 export_dynamic_flag_spec_FC='${wl}-E'
14462 # hardcode_minus_L: Not really in the search PATH,
14463 # but as the default location of the library.
14464 hardcode_minus_L_FC=yes
14468 hpux11*)
14469 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14470 case $host_cpu in
14471 hppa*64*)
14472 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14474 ia64*)
14475 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14478 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14480 esac
14481 else
14482 case $host_cpu in
14483 hppa*64*)
14484 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 ia64*)
14487 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14490 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14492 esac
14494 if test "$with_gnu_ld" = no; then
14495 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14496 hardcode_libdir_separator_FC=:
14498 case $host_cpu in
14499 hppa*64*|ia64*)
14500 hardcode_direct_FC=no
14501 hardcode_shlibpath_var_FC=no
14504 hardcode_direct_FC=yes
14505 hardcode_direct_absolute_FC=yes
14506 export_dynamic_flag_spec_FC='${wl}-E'
14508 # hardcode_minus_L: Not really in the search PATH,
14509 # but as the default location of the library.
14510 hardcode_minus_L_FC=yes
14512 esac
14516 irix5* | irix6* | nonstopux*)
14517 if test "$GCC" = yes; then
14518 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'
14519 # Try to use the -exported_symbol ld option, if it does not
14520 # work, assume that -exports_file does not work either and
14521 # implicitly export all symbols.
14522 save_LDFLAGS="$LDFLAGS"
14523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14524 if test x$gcc_no_link = xyes; then
14525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14527 cat > conftest.$ac_ext <<_ACEOF
14528 int foo(void) {}
14529 _ACEOF
14530 if ac_fn_fc_try_link "$LINENO"; then :
14531 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'
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LDFLAGS="$save_LDFLAGS"
14537 else
14538 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'
14539 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'
14541 archive_cmds_need_lc_FC='no'
14542 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14543 hardcode_libdir_separator_FC=:
14544 inherit_rpath_FC=yes
14545 link_all_deplibs_FC=yes
14548 netbsd*)
14549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14550 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14551 else
14552 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14554 hardcode_libdir_flag_spec_FC='-R$libdir'
14555 hardcode_direct_FC=yes
14556 hardcode_shlibpath_var_FC=no
14559 newsos6)
14560 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14561 hardcode_direct_FC=yes
14562 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator_FC=:
14564 hardcode_shlibpath_var_FC=no
14567 *nto* | *qnx*)
14570 openbsd*)
14571 if test -f /usr/libexec/ld.so; then
14572 hardcode_direct_FC=yes
14573 hardcode_shlibpath_var_FC=no
14574 hardcode_direct_absolute_FC=yes
14575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14576 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14577 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14578 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14579 export_dynamic_flag_spec_FC='${wl}-E'
14580 else
14581 case $host_os in
14582 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14583 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14584 hardcode_libdir_flag_spec_FC='-R$libdir'
14587 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14588 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14590 esac
14592 else
14593 ld_shlibs_FC=no
14597 os2*)
14598 hardcode_libdir_flag_spec_FC='-L$libdir'
14599 hardcode_minus_L_FC=yes
14600 allow_undefined_flag_FC=unsupported
14601 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'
14602 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14605 osf3*)
14606 if test "$GCC" = yes; then
14607 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14608 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'
14609 else
14610 allow_undefined_flag_FC=' -expect_unresolved \*'
14611 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'
14613 archive_cmds_need_lc_FC='no'
14614 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14615 hardcode_libdir_separator_FC=:
14618 osf4* | osf5*) # as osf3* with the addition of -msym flag
14619 if test "$GCC" = yes; then
14620 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14621 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'
14622 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14623 else
14624 allow_undefined_flag_FC=' -expect_unresolved \*'
14625 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'
14626 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~
14627 $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'
14629 # Both c and cxx compiler support -rpath directly
14630 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14632 archive_cmds_need_lc_FC='no'
14633 hardcode_libdir_separator_FC=:
14636 solaris*)
14637 no_undefined_flag_FC=' -z defs'
14638 if test "$GCC" = yes; then
14639 wlarc='${wl}'
14640 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14641 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14642 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14643 else
14644 case `$CC -V 2>&1` in
14645 *"Compilers 5.0"*)
14646 wlarc=''
14647 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14649 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14652 wlarc='${wl}'
14653 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14655 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14657 esac
14659 hardcode_libdir_flag_spec_FC='-R$libdir'
14660 hardcode_shlibpath_var_FC=no
14661 case $host_os in
14662 solaris2.[0-5] | solaris2.[0-5].*) ;;
14664 # The compiler driver will combine and reorder linker options,
14665 # but understands `-z linker_flag'. GCC discards it without `$wl',
14666 # but is careful enough not to reorder.
14667 # Supported since Solaris 2.6 (maybe 2.5.1?)
14668 if test "$GCC" = yes; then
14669 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14670 else
14671 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14674 esac
14675 link_all_deplibs_FC=yes
14678 sunos4*)
14679 if test "x$host_vendor" = xsequent; then
14680 # Use $CC to link under sequent, because it throws in some extra .o
14681 # files that make .init and .fini sections work.
14682 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14683 else
14684 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_libdir_flag_spec_FC='-L$libdir'
14687 hardcode_direct_FC=yes
14688 hardcode_minus_L_FC=yes
14689 hardcode_shlibpath_var_FC=no
14692 sysv4)
14693 case $host_vendor in
14694 sni)
14695 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14696 hardcode_direct_FC=yes # is this really true???
14698 siemens)
14699 ## LD is ld it makes a PLAMLIB
14700 ## CC just makes a GrossModule.
14701 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14702 reload_cmds_FC='$CC -r -o $output$reload_objs'
14703 hardcode_direct_FC=no
14705 motorola)
14706 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14709 esac
14710 runpath_var='LD_RUN_PATH'
14711 hardcode_shlibpath_var_FC=no
14714 sysv4.3*)
14715 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14716 hardcode_shlibpath_var_FC=no
14717 export_dynamic_flag_spec_FC='-Bexport'
14720 sysv4*MP*)
14721 if test -d /usr/nec; then
14722 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14723 hardcode_shlibpath_var_FC=no
14724 runpath_var=LD_RUN_PATH
14725 hardcode_runpath_var=yes
14726 ld_shlibs_FC=yes
14730 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14731 no_undefined_flag_FC='${wl}-z,text'
14732 archive_cmds_need_lc_FC=no
14733 hardcode_shlibpath_var_FC=no
14734 runpath_var='LD_RUN_PATH'
14736 if test "$GCC" = yes; then
14737 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14739 else
14740 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745 sysv5* | sco3.2v5* | sco5v6*)
14746 # Note: We can NOT use -z defs as we might desire, because we do not
14747 # link with -lc, and that would cause any symbols used from libc to
14748 # always be unresolved, which means just about no library would
14749 # ever link correctly. If we're not using GNU ld we use -z text
14750 # though, which does catch some bad symbols but isn't as heavy-handed
14751 # as -z defs.
14752 no_undefined_flag_FC='${wl}-z,text'
14753 allow_undefined_flag_FC='${wl}-z,nodefs'
14754 archive_cmds_need_lc_FC=no
14755 hardcode_shlibpath_var_FC=no
14756 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14757 hardcode_libdir_separator_FC=':'
14758 link_all_deplibs_FC=yes
14759 export_dynamic_flag_spec_FC='${wl}-Bexport'
14760 runpath_var='LD_RUN_PATH'
14762 if test "$GCC" = yes; then
14763 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14765 else
14766 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14767 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14771 uts4*)
14772 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_libdir_flag_spec_FC='-L$libdir'
14774 hardcode_shlibpath_var_FC=no
14778 ld_shlibs_FC=no
14780 esac
14782 if test x$host_vendor = xsni; then
14783 case $host in
14784 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14785 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14787 esac
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14792 $as_echo "$ld_shlibs_FC" >&6; }
14793 test "$ld_shlibs_FC" = no && can_build_shared=no
14795 with_gnu_ld_FC=$with_gnu_ld
14803 # Do we need to explicitly link libc?
14805 case "x$archive_cmds_need_lc_FC" in
14806 x|xyes)
14807 # Assume -lc should be added
14808 archive_cmds_need_lc_FC=yes
14810 if test "$enable_shared" = yes && test "$GCC" = yes; then
14811 case $archive_cmds_FC in
14812 *'~'*)
14813 # FIXME: we may have to deal with multi-command sequences.
14815 '$CC '*)
14816 # Test whether the compiler implicitly links with -lc since on some
14817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14818 # to ld, don't add -lc before -lgcc.
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14820 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14821 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14824 $RM conftest*
14825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14828 (eval $ac_compile) 2>&5
14829 ac_status=$?
14830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14831 test $ac_status = 0; } 2>conftest.err; then
14832 soname=conftest
14833 lib=conftest
14834 libobjs=conftest.$ac_objext
14835 deplibs=
14836 wl=$lt_prog_compiler_wl_FC
14837 pic_flag=$lt_prog_compiler_pic_FC
14838 compiler_flags=-v
14839 linker_flags=-v
14840 verstring=
14841 output_objdir=.
14842 libname=conftest
14843 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14844 allow_undefined_flag_FC=
14845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14846 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14847 ac_status=$?
14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }
14850 then
14851 lt_cv_archive_cmds_need_lc_FC=no
14852 else
14853 lt_cv_archive_cmds_need_lc_FC=yes
14855 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14856 else
14857 cat conftest.err 1>&5
14859 $RM conftest*
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14863 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14864 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14866 esac
14869 esac
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14935 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14937 library_names_spec=
14938 libname_spec='lib$name'
14939 soname_spec=
14940 shrext_cmds=".so"
14941 postinstall_cmds=
14942 postuninstall_cmds=
14943 finish_cmds=
14944 finish_eval=
14945 shlibpath_var=
14946 shlibpath_overrides_runpath=unknown
14947 version_type=none
14948 dynamic_linker="$host_os ld.so"
14949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14950 need_lib_prefix=unknown
14951 hardcode_into_libs=no
14953 # when you set need_version to no, make sure it does not cause -set_version
14954 # flags to be left without arguments
14955 need_version=unknown
14957 case $host_os in
14958 aix3*)
14959 version_type=linux
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14961 shlibpath_var=LIBPATH
14963 # AIX 3 has no versioning support, so we append a major version to the name.
14964 soname_spec='${libname}${release}${shared_ext}$major'
14967 aix[4-9]*)
14968 version_type=linux
14969 need_lib_prefix=no
14970 need_version=no
14971 hardcode_into_libs=yes
14972 if test "$host_cpu" = ia64; then
14973 # AIX 5 supports IA64
14974 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 else
14977 # With GCC up to 2.95.x, collect2 would create an import file
14978 # for dependence libraries. The import file would start with
14979 # the line `#! .'. This would cause the generated library to
14980 # depend on `.', always an invalid library. This was fixed in
14981 # development snapshots of GCC prior to 3.0.
14982 case $host_os in
14983 aix4 | aix4.[01] | aix4.[01].*)
14984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14985 echo ' yes '
14986 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14988 else
14989 can_build_shared=no
14992 esac
14993 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14994 # soname into executable. Probably we can add versioning support to
14995 # collect2, so additional links can be useful in future.
14996 if test "$aix_use_runtimelinking" = yes; then
14997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14998 # instead of lib<name>.a to let people know that these are not
14999 # typical AIX shared libraries.
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 else
15002 # We preserve .a as extension for shared libraries through AIX4.2
15003 # and later when we are not doing run time linking.
15004 library_names_spec='${libname}${release}.a $libname.a'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LIBPATH
15011 amigaos*)
15012 case $host_cpu in
15013 powerpc)
15014 # Since July 2007 AmigaOS4 officially supports .so libraries.
15015 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018 m68k)
15019 library_names_spec='$libname.ixlibrary $libname.a'
15020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15021 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'
15023 esac
15026 beos*)
15027 library_names_spec='${libname}${shared_ext}'
15028 dynamic_linker="$host_os ld.so"
15029 shlibpath_var=LIBRARY_PATH
15032 bsdi[45]*)
15033 version_type=linux
15034 need_version=no
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15040 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15041 # the default ld.so.conf also contains /usr/contrib/lib and
15042 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15043 # libtool to hard-code these into programs
15046 cygwin* | mingw* | pw32* | cegcc*)
15047 version_type=windows
15048 shrext_cmds=".dll"
15049 need_version=no
15050 need_lib_prefix=no
15052 case $GCC,$host_os in
15053 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15054 library_names_spec='$libname.dll.a'
15055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15056 postinstall_cmds='base_file=`basename \${file}`~
15057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15058 dldir=$destdir/`dirname \$dlpath`~
15059 test -d \$dldir || mkdir -p \$dldir~
15060 $install_prog $dir/$dlname \$dldir/$dlname~
15061 chmod a+x \$dldir/$dlname~
15062 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15063 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15066 dlpath=$dir/\$dldll~
15067 $RM \$dlpath'
15068 shlibpath_overrides_runpath=yes
15070 case $host_os in
15071 cygwin*)
15072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15073 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15076 mingw* | cegcc*)
15077 # MinGW DLLs use traditional 'lib' prefix
15078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15080 pw32*)
15081 # pw32 DLLs use 'pw' prefix rather than 'lib'
15082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15084 esac
15088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15090 esac
15091 dynamic_linker='Win32 ld.exe'
15092 # FIXME: first we should search . and the directory the executable is in
15093 shlibpath_var=PATH
15096 darwin* | rhapsody*)
15097 dynamic_linker="$host_os dyld"
15098 version_type=darwin
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15102 soname_spec='${libname}${release}${major}$shared_ext'
15103 shlibpath_overrides_runpath=yes
15104 shlibpath_var=DYLD_LIBRARY_PATH
15105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15110 dgux*)
15111 version_type=linux
15112 need_lib_prefix=no
15113 need_version=no
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 shlibpath_var=LD_LIBRARY_PATH
15119 freebsd* | dragonfly*)
15120 # DragonFly does not have aout. When/if they implement a new
15121 # versioning mechanism, adjust this.
15122 if test -x /usr/bin/objformat; then
15123 objformat=`/usr/bin/objformat`
15124 else
15125 case $host_os in
15126 freebsd[23].*) objformat=aout ;;
15127 *) objformat=elf ;;
15128 esac
15130 version_type=freebsd-$objformat
15131 case $version_type in
15132 freebsd-elf*)
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15134 need_version=no
15135 need_lib_prefix=no
15137 freebsd-*)
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15139 need_version=yes
15141 esac
15142 shlibpath_var=LD_LIBRARY_PATH
15143 case $host_os in
15144 freebsd2.*)
15145 shlibpath_overrides_runpath=yes
15147 freebsd3.[01]* | freebsdelf3.[01]*)
15148 shlibpath_overrides_runpath=yes
15149 hardcode_into_libs=yes
15151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15153 shlibpath_overrides_runpath=no
15154 hardcode_into_libs=yes
15156 *) # from 4.6 on, and DragonFly
15157 shlibpath_overrides_runpath=yes
15158 hardcode_into_libs=yes
15160 esac
15163 gnu*)
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
15170 hardcode_into_libs=yes
15173 haiku*)
15174 version_type=linux
15175 need_lib_prefix=no
15176 need_version=no
15177 dynamic_linker="$host_os runtime_loader"
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 shlibpath_var=LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes
15182 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15183 hardcode_into_libs=yes
15186 hpux9* | hpux10* | hpux11*)
15187 # Give a soname corresponding to the major version so that dld.sl refuses to
15188 # link against other versions.
15189 version_type=sunos
15190 need_lib_prefix=no
15191 need_version=no
15192 case $host_cpu in
15193 ia64*)
15194 shrext_cmds='.so'
15195 hardcode_into_libs=yes
15196 dynamic_linker="$host_os dld.so"
15197 shlibpath_var=LD_LIBRARY_PATH
15198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 if test "X$HPUX_IA64_MODE" = X32; then
15202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15203 else
15204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15208 hppa*64*)
15209 shrext_cmds='.sl'
15210 hardcode_into_libs=yes
15211 dynamic_linker="$host_os dld.sl"
15212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220 shrext_cmds='.sl'
15221 dynamic_linker="$host_os dld.sl"
15222 shlibpath_var=SHLIB_PATH
15223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15227 esac
15228 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15229 postinstall_cmds='chmod 555 $lib'
15230 # or fails outright, so override atomically:
15231 install_override_mode=555
15234 interix[3-9]*)
15235 version_type=linux
15236 need_lib_prefix=no
15237 need_version=no
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=no
15243 hardcode_into_libs=yes
15246 irix5* | irix6* | nonstopux*)
15247 case $host_os in
15248 nonstopux*) version_type=nonstopux ;;
15250 if test "$lt_cv_prog_gnu_ld" = yes; then
15251 version_type=linux
15252 else
15253 version_type=irix
15254 fi ;;
15255 esac
15256 need_lib_prefix=no
15257 need_version=no
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15260 case $host_os in
15261 irix5* | nonstopux*)
15262 libsuff= shlibsuff=
15265 case $LD in # libtool.m4 will add one of these switches to LD
15266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15267 libsuff= shlibsuff= libmagic=32-bit;;
15268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15269 libsuff=32 shlibsuff=N32 libmagic=N32;;
15270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15272 *) libsuff= shlibsuff= libmagic=never-match;;
15273 esac
15275 esac
15276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15277 shlibpath_overrides_runpath=no
15278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15280 hardcode_into_libs=yes
15283 # No shared lib support for Linux oldld, aout, or coff.
15284 linux*oldld* | linux*aout* | linux*coff*)
15285 dynamic_linker=no
15288 # This must be Linux ELF.
15289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15290 version_type=linux
15291 need_lib_prefix=no
15292 need_version=no
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=no
15299 # Some binutils ld are patched to set DT_RUNPATH
15300 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15301 $as_echo_n "(cached) " >&6
15302 else
15303 lt_cv_shlibpath_overrides_runpath=no
15304 save_LDFLAGS=$LDFLAGS
15305 save_libdir=$libdir
15306 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15307 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15308 if test x$gcc_no_link = xyes; then
15309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15311 cat > conftest.$ac_ext <<_ACEOF
15312 program main
15315 _ACEOF
15316 if ac_fn_fc_try_link "$LINENO"; then :
15317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15318 lt_cv_shlibpath_overrides_runpath=yes
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LDFLAGS=$save_LDFLAGS
15324 libdir=$save_libdir
15328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15330 # This implies no fast_install, which is unacceptable.
15331 # Some rework will be needed to allow for fast_install
15332 # before this can be enabled.
15333 hardcode_into_libs=yes
15335 # Append ld.so.conf contents to the search path
15336 if test -f /etc/ld.so.conf; then
15337 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' ' '`
15338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15341 # We used to test for /lib/ld.so.1 and disable shared libraries on
15342 # powerpc, because MkLinux only supported shared libraries with the
15343 # GNU dynamic linker. Since this was broken with cross compilers,
15344 # most powerpc-linux boxes support dynamic linking these days and
15345 # people can always --disable-shared, the test was removed, and we
15346 # assume the GNU/Linux dynamic linker is in use.
15347 dynamic_linker='GNU/Linux ld.so'
15350 netbsd*)
15351 version_type=sunos
15352 need_lib_prefix=no
15353 need_version=no
15354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15357 dynamic_linker='NetBSD (a.out) ld.so'
15358 else
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 dynamic_linker='NetBSD ld.elf_so'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15368 newsos6)
15369 version_type=linux
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=yes
15375 *nto* | *qnx*)
15376 version_type=qnx
15377 need_lib_prefix=no
15378 need_version=no
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=no
15383 hardcode_into_libs=yes
15384 dynamic_linker='ldqnx.so'
15387 openbsd*)
15388 version_type=sunos
15389 sys_lib_dlsearch_path_spec="/usr/lib"
15390 need_lib_prefix=no
15391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15392 case $host_os in
15393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15394 *) need_version=no ;;
15395 esac
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15400 case $host_os in
15401 openbsd2.[89] | openbsd2.[89].*)
15402 shlibpath_overrides_runpath=no
15405 shlibpath_overrides_runpath=yes
15407 esac
15408 else
15409 shlibpath_overrides_runpath=yes
15413 os2*)
15414 libname_spec='$name'
15415 shrext_cmds=".dll"
15416 need_lib_prefix=no
15417 library_names_spec='$libname${shared_ext} $libname.a'
15418 dynamic_linker='OS/2 ld.exe'
15419 shlibpath_var=LIBPATH
15422 osf3* | osf4* | osf5*)
15423 version_type=osf
15424 need_lib_prefix=no
15425 need_version=no
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15433 rdos*)
15434 dynamic_linker=no
15437 solaris*)
15438 version_type=linux
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15445 hardcode_into_libs=yes
15446 # ldd complains unless libraries are executable
15447 postinstall_cmds='chmod +x $lib'
15450 sunos4*)
15451 version_type=sunos
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=yes
15456 if test "$with_gnu_ld" = yes; then
15457 need_lib_prefix=no
15459 need_version=yes
15462 sysv4 | sysv4.3*)
15463 version_type=linux
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 shlibpath_var=LD_LIBRARY_PATH
15467 case $host_vendor in
15468 sni)
15469 shlibpath_overrides_runpath=no
15470 need_lib_prefix=no
15471 runpath_var=LD_RUN_PATH
15473 siemens)
15474 need_lib_prefix=no
15476 motorola)
15477 need_lib_prefix=no
15478 need_version=no
15479 shlibpath_overrides_runpath=no
15480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15482 esac
15485 sysv4*MP*)
15486 if test -d /usr/nec ;then
15487 version_type=linux
15488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15489 soname_spec='$libname${shared_ext}.$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15495 version_type=freebsd-elf
15496 need_lib_prefix=no
15497 need_version=no
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes
15502 hardcode_into_libs=yes
15503 if test "$with_gnu_ld" = yes; then
15504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15505 else
15506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15507 case $host_os in
15508 sco3.2v5*)
15509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15511 esac
15513 sys_lib_dlsearch_path_spec='/usr/lib'
15516 tpf*)
15517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15518 version_type=linux
15519 need_lib_prefix=no
15520 need_version=no
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=no
15524 hardcode_into_libs=yes
15527 uts4*)
15528 version_type=linux
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15535 dynamic_linker=no
15537 esac
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15539 $as_echo "$dynamic_linker" >&6; }
15540 test "$dynamic_linker" = no && can_build_shared=no
15542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15543 if test "$GCC" = yes; then
15544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15592 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15593 hardcode_action_FC=
15594 if test -n "$hardcode_libdir_flag_spec_FC" ||
15595 test -n "$runpath_var_FC" ||
15596 test "X$hardcode_automatic_FC" = "Xyes" ; then
15598 # We can hardcode non-existent directories.
15599 if test "$hardcode_direct_FC" != no &&
15600 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15601 # have to relink, otherwise we might link with an installed library
15602 # when we should be linking with a yet-to-be-installed one
15603 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15604 test "$hardcode_minus_L_FC" != no; then
15605 # Linking always hardcodes the temporary library directory.
15606 hardcode_action_FC=relink
15607 else
15608 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15609 hardcode_action_FC=immediate
15611 else
15612 # We cannot hardcode anything, or else we can only hardcode existing
15613 # directories.
15614 hardcode_action_FC=unsupported
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15617 $as_echo "$hardcode_action_FC" >&6; }
15619 if test "$hardcode_action_FC" = relink ||
15620 test "$inherit_rpath_FC" = yes; then
15621 # Fast installation is not supported
15622 enable_fast_install=no
15623 elif test "$shlibpath_overrides_runpath" = yes ||
15624 test "$enable_shared" = no; then
15625 # Fast installation is not necessary
15626 enable_fast_install=needless
15635 fi # test -n "$compiler"
15637 GCC=$lt_save_GCC
15638 CC="$lt_save_CC"
15639 fi # test "$_lt_disable_FC" != yes
15641 ac_ext=c
15642 ac_cpp='$CPP $CPPFLAGS'
15643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649 # extra LD Flags which are required for targets
15650 case "${host}" in
15651 *-darwin*)
15652 # Darwin needs -single_module when linking libgfortran
15653 extra_ldflags_libgfortran=-Wl,-single_module
15655 esac
15658 # We need a working compiler at that point, otherwise give a clear
15659 # error message and bail out.
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15662 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15663 ac_ext=${ac_fc_srcext-f}
15664 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15665 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15666 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15668 cat > conftest.$ac_ext <<_ACEOF
15670 program foo
15671 real, parameter :: bar = sin (12.34 / 2.5)
15672 end program foo
15673 _ACEOF
15674 if ac_fn_fc_try_compile "$LINENO"; then :
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15676 $as_echo "yes" >&6; }
15677 else
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15680 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 ac_ext=c
15685 ac_cpp='$CPP $CPPFLAGS'
15686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692 # Check whether --enable-largefile was given.
15693 if test "${enable_largefile+set}" = set; then :
15694 enableval=$enable_largefile;
15697 if test "$enable_largefile" != no; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15700 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15701 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 ac_cv_sys_largefile_CC=no
15705 if test "$GCC" != yes; then
15706 ac_save_CC=$CC
15707 while :; do
15708 # IRIX 6.2 and later do not support large files by default,
15709 # so use the C compiler's -n32 option if that helps.
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 #include <sys/types.h>
15713 /* Check that off_t can represent 2**63 - 1 correctly.
15714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15715 since some C++ compilers masquerading as C compilers
15716 incorrectly reject 9223372036854775807. */
15717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15719 && LARGE_OFF_T % 2147483647 == 1)
15720 ? 1 : -1];
15722 main ()
15726 return 0;
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 break
15732 rm -f core conftest.err conftest.$ac_objext
15733 CC="$CC -n32"
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 ac_cv_sys_largefile_CC=' -n32'; break
15737 rm -f core conftest.err conftest.$ac_objext
15738 break
15739 done
15740 CC=$ac_save_CC
15741 rm -f conftest.$ac_ext
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15745 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15746 if test "$ac_cv_sys_largefile_CC" != no; then
15747 CC=$CC$ac_cv_sys_largefile_CC
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15751 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15752 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 while :; do
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758 #include <sys/types.h>
15759 /* Check that off_t can represent 2**63 - 1 correctly.
15760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15761 since some C++ compilers masquerading as C compilers
15762 incorrectly reject 9223372036854775807. */
15763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15765 && LARGE_OFF_T % 2147483647 == 1)
15766 ? 1 : -1];
15768 main ()
15772 return 0;
15774 _ACEOF
15775 if ac_fn_c_try_compile "$LINENO"; then :
15776 ac_cv_sys_file_offset_bits=no; break
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #define _FILE_OFFSET_BITS 64
15782 #include <sys/types.h>
15783 /* Check that off_t can represent 2**63 - 1 correctly.
15784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15785 since some C++ compilers masquerading as C compilers
15786 incorrectly reject 9223372036854775807. */
15787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15789 && LARGE_OFF_T % 2147483647 == 1)
15790 ? 1 : -1];
15792 main ()
15796 return 0;
15798 _ACEOF
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800 ac_cv_sys_file_offset_bits=64; break
15802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803 ac_cv_sys_file_offset_bits=unknown
15804 break
15805 done
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15808 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15809 case $ac_cv_sys_file_offset_bits in #(
15810 no | unknown) ;;
15812 cat >>confdefs.h <<_ACEOF
15813 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15814 _ACEOF
15816 esac
15817 rm -rf conftest*
15818 if test $ac_cv_sys_file_offset_bits = unknown; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15820 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15821 if test "${ac_cv_sys_large_files+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 while :; do
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827 #include <sys/types.h>
15828 /* Check that off_t can represent 2**63 - 1 correctly.
15829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15830 since some C++ compilers masquerading as C compilers
15831 incorrectly reject 9223372036854775807. */
15832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15834 && LARGE_OFF_T % 2147483647 == 1)
15835 ? 1 : -1];
15837 main ()
15841 return 0;
15843 _ACEOF
15844 if ac_fn_c_try_compile "$LINENO"; then :
15845 ac_cv_sys_large_files=no; break
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #define _LARGE_FILES 1
15851 #include <sys/types.h>
15852 /* Check that off_t can represent 2**63 - 1 correctly.
15853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15854 since some C++ compilers masquerading as C compilers
15855 incorrectly reject 9223372036854775807. */
15856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15858 && LARGE_OFF_T % 2147483647 == 1)
15859 ? 1 : -1];
15861 main ()
15865 return 0;
15867 _ACEOF
15868 if ac_fn_c_try_compile "$LINENO"; then :
15869 ac_cv_sys_large_files=1; break
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 ac_cv_sys_large_files=unknown
15873 break
15874 done
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15877 $as_echo "$ac_cv_sys_large_files" >&6; }
15878 case $ac_cv_sys_large_files in #(
15879 no | unknown) ;;
15881 cat >>confdefs.h <<_ACEOF
15882 #define _LARGE_FILES $ac_cv_sys_large_files
15883 _ACEOF
15885 esac
15886 rm -rf conftest*
15891 # Types
15892 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15893 if test "x$ac_cv_type_off_t" = x""yes; then :
15895 else
15897 cat >>confdefs.h <<_ACEOF
15898 #define off_t long int
15899 _ACEOF
15904 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15905 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15907 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15909 else
15910 for ac_type in 'int' 'long int' 'long long int'; do
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 $ac_includes_default
15915 main ()
15917 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15918 test_array [0] = 0
15921 return 0;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"; then :
15926 cat >>confdefs.h <<_ACEOF
15927 #define intptr_t $ac_type
15928 _ACEOF
15930 ac_type=
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 test -z "$ac_type" && break
15934 done
15939 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15940 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15942 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15944 else
15945 for ac_type in 'unsigned int' 'unsigned long int' \
15946 'unsigned long long int'; do
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 $ac_includes_default
15951 main ()
15953 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15954 test_array [0] = 0
15957 return 0;
15959 _ACEOF
15960 if ac_fn_c_try_compile "$LINENO"; then :
15962 cat >>confdefs.h <<_ACEOF
15963 #define uintptr_t $ac_type
15964 _ACEOF
15966 ac_type=
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 test -z "$ac_type" && break
15970 done
15974 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15975 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_PTRDIFF_T 1
15979 _ACEOF
15985 # check header files (we assume C89 is available, so don't check for that)
15989 for ac_header in $ac_header_list
15990 do :
15991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15992 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15994 eval as_val=\$$as_ac_Header
15995 if test "x$as_val" = x""yes; then :
15996 cat >>confdefs.h <<_ACEOF
15997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15998 _ACEOF
16002 done
16036 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16038 acx_cv_header_stdint=stddef.h
16039 acx_cv_header_stdint_kind="(already complete)"
16040 for i in stdint.h $inttype_headers; do
16041 unset ac_cv_type_uintptr_t
16042 unset ac_cv_type_uintmax_t
16043 unset ac_cv_type_int_least32_t
16044 unset ac_cv_type_int_fast32_t
16045 unset ac_cv_type_uint64_t
16046 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16047 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16048 #include <$i>
16050 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16051 acx_cv_header_stdint=$i
16052 else
16053 continue
16056 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16057 #include <$i>
16059 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16061 else
16062 acx_cv_header_stdint_kind="(mostly complete)"
16065 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16066 #include <$i>
16068 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16070 else
16071 acx_cv_header_stdint_kind="(mostly complete)"
16074 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16075 #include <$i>
16077 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16079 else
16080 acx_cv_header_stdint_kind="(mostly complete)"
16083 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16084 #include <$i>
16086 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16088 else
16089 acx_cv_header_stdint_kind="(lacks uint64_t)"
16092 break
16093 done
16094 if test "$acx_cv_header_stdint" = stddef.h; then
16095 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16096 for i in stdint.h $inttype_headers; do
16097 unset ac_cv_type_uintptr_t
16098 unset ac_cv_type_uint32_t
16099 unset ac_cv_type_uint64_t
16100 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16101 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16102 #include <$i>
16104 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16105 acx_cv_header_stdint=$i
16106 else
16107 continue
16110 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16111 #include <$i>
16113 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16117 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16118 #include <$i>
16120 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16124 break
16125 done
16127 if test "$acx_cv_header_stdint" = stddef.h; then
16128 acx_cv_header_stdint_kind="(u_intXX_t style)"
16129 for i in sys/types.h $inttype_headers; do
16130 unset ac_cv_type_u_int32_t
16131 unset ac_cv_type_u_int64_t
16132 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16133 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16134 #include <$i>
16136 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16137 acx_cv_header_stdint=$i
16138 else
16139 continue
16142 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16143 #include <$i>
16145 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16149 break
16150 done
16152 if test "$acx_cv_header_stdint" = stddef.h; then
16153 acx_cv_header_stdint_kind="(using manual detection)"
16156 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16157 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16158 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16159 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16160 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16162 # ----------------- Summarize what we found so far
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16165 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16167 case `$as_basename -- gstdint.h ||
16168 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16169 Xgstdint.h : 'X\(//\)$' \| \
16170 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16171 $as_echo X/gstdint.h |
16172 sed '/^.*\/\([^/][^/]*\)\/*$/{
16173 s//\1/
16176 /^X\/\(\/\/\)$/{
16177 s//\1/
16180 /^X\/\(\/\).*/{
16181 s//\1/
16184 s/.*/./; q'` in
16185 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16186 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16187 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16188 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16189 *) ;;
16190 esac
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16193 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16195 # ----------------- done included file, check C basic types --------
16197 # Lacking an uintptr_t? Test size of void *
16198 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16199 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16202 # This bug is HP SR number 8606223364.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16204 $as_echo_n "checking size of void *... " >&6; }
16205 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16210 else
16211 if test "$ac_cv_type_void_p" = yes; then
16212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16214 { as_fn_set_status 77
16215 as_fn_error "cannot compute sizeof (void *)
16216 See \`config.log' for more details." "$LINENO" 5; }; }
16217 else
16218 ac_cv_sizeof_void_p=0
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16224 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16228 cat >>confdefs.h <<_ACEOF
16229 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16230 _ACEOF
16233 esac
16235 # Lacking an uint64_t? Test size of long
16236 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16237 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16242 $as_echo_n "checking size of long... " >&6; }
16243 if test "${ac_cv_sizeof_long+set}" = set; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16248 else
16249 if test "$ac_cv_type_long" = yes; then
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 { as_fn_set_status 77
16253 as_fn_error "cannot compute sizeof (long)
16254 See \`config.log' for more details." "$LINENO" 5; }; }
16255 else
16256 ac_cv_sizeof_long=0
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16262 $as_echo "$ac_cv_sizeof_long" >&6; }
16266 cat >>confdefs.h <<_ACEOF
16267 #define SIZEOF_LONG $ac_cv_sizeof_long
16268 _ACEOF
16271 esac
16273 if test $acx_cv_header_stdint = stddef.h; then
16274 # Lacking a good header? Test size of everything and deduce all types.
16275 # The cast to long int works around a bug in the HP C Compiler
16276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16278 # This bug is HP SR number 8606223364.
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16280 $as_echo_n "checking size of int... " >&6; }
16281 if test "${ac_cv_sizeof_int+set}" = set; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16286 else
16287 if test "$ac_cv_type_int" = yes; then
16288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16290 { as_fn_set_status 77
16291 as_fn_error "cannot compute sizeof (int)
16292 See \`config.log' for more details." "$LINENO" 5; }; }
16293 else
16294 ac_cv_sizeof_int=0
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16300 $as_echo "$ac_cv_sizeof_int" >&6; }
16304 cat >>confdefs.h <<_ACEOF
16305 #define SIZEOF_INT $ac_cv_sizeof_int
16306 _ACEOF
16309 # The cast to long int works around a bug in the HP C Compiler
16310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16312 # This bug is HP SR number 8606223364.
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16314 $as_echo_n "checking size of short... " >&6; }
16315 if test "${ac_cv_sizeof_short+set}" = set; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16320 else
16321 if test "$ac_cv_type_short" = yes; then
16322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16324 { as_fn_set_status 77
16325 as_fn_error "cannot compute sizeof (short)
16326 See \`config.log' for more details." "$LINENO" 5; }; }
16327 else
16328 ac_cv_sizeof_short=0
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16334 $as_echo "$ac_cv_sizeof_short" >&6; }
16338 cat >>confdefs.h <<_ACEOF
16339 #define SIZEOF_SHORT $ac_cv_sizeof_short
16340 _ACEOF
16343 # The cast to long int works around a bug in the HP C Compiler
16344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16346 # This bug is HP SR number 8606223364.
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16348 $as_echo_n "checking size of char... " >&6; }
16349 if test "${ac_cv_sizeof_char+set}" = set; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16354 else
16355 if test "$ac_cv_type_char" = yes; then
16356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16358 { as_fn_set_status 77
16359 as_fn_error "cannot compute sizeof (char)
16360 See \`config.log' for more details." "$LINENO" 5; }; }
16361 else
16362 ac_cv_sizeof_char=0
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16368 $as_echo "$ac_cv_sizeof_char" >&6; }
16372 cat >>confdefs.h <<_ACEOF
16373 #define SIZEOF_CHAR $ac_cv_sizeof_char
16374 _ACEOF
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16379 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16380 case "$ac_cv_sizeof_char" in
16381 1) acx_cv_type_int8_t=char ;;
16382 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16383 esac
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16385 $as_echo "$acx_cv_type_int8_t" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16388 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16389 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16390 2:*) acx_cv_type_int16_t=int ;;
16391 *:2) acx_cv_type_int16_t=short ;;
16392 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16393 esac
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16395 $as_echo "$acx_cv_type_int16_t" >&6; }
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16398 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16399 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16400 4:*) acx_cv_type_int32_t=int ;;
16401 *:4) acx_cv_type_int32_t=long ;;
16402 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16403 esac
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16405 $as_echo "$acx_cv_type_int32_t" >&6; }
16408 # These tests are here to make the output prettier
16410 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16411 case "$ac_cv_sizeof_long" in
16412 8) acx_cv_type_int64_t=long ;;
16413 esac
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16415 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16417 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16420 # Now we can use the above types
16422 if test "$ac_cv_type_uintptr_t" != yes; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16424 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16425 case $ac_cv_sizeof_void_p in
16426 2) acx_cv_type_intptr_t=int16_t ;;
16427 4) acx_cv_type_intptr_t=int32_t ;;
16428 8) acx_cv_type_intptr_t=int64_t ;;
16429 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16430 esac
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16432 $as_echo "$acx_cv_type_intptr_t" >&6; }
16435 # ----------------- done all checks, emit header -------------
16436 ac_config_commands="$ac_config_commands gstdint.h"
16441 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16442 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16446 _ACEOF
16450 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16451 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16453 cat >>confdefs.h <<_ACEOF
16454 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16455 _ACEOF
16459 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16460 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16462 cat >>confdefs.h <<_ACEOF
16463 #define HAVE_STRUCT_STAT_ST_RDEV 1
16464 _ACEOF
16470 # Check for library functions.
16471 if test "x${with_newlib}" = "xyes"; then
16472 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16473 # may not work correctly, because the compiler may not be able to
16474 # link executables.
16476 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16479 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16482 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16485 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16488 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16491 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16494 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16497 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16500 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16503 # At some point, we should differentiate between architectures
16504 # like x86, which have long double versions, and alpha/powerpc/etc.,
16505 # which don't. For the time being, punt.
16506 if test x"long_double_math_on_this_cpu" = x"yes"; then
16508 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16511 else
16515 for ac_func in $ac_func_list
16516 do :
16517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16519 eval as_val=\$$as_ac_var
16520 if test "x$as_val" = x""yes; then :
16521 cat >>confdefs.h <<_ACEOF
16522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16526 done
16641 # Check strerror_r, cannot be above as versions with two and three arguments exist
16643 ac_save_CFLAGS="$CFLAGS"
16644 CFLAGS="-Wimplicit-function-declaration -Werror"
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #define _GNU_SOURCE 1
16648 #include <string.h>
16649 #include <locale.h>
16651 main ()
16653 char s[128]; strerror_r(5, s, 128);
16655 return 0;
16657 _ACEOF
16658 if ac_fn_c_try_compile "$LINENO"; then :
16660 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 CFLAGS="$ac_save_CFLAGS"
16666 ac_save_CFLAGS="$CFLAGS"
16667 CFLAGS="-Wimplicit-function-declaration -Werror"
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 #define _GNU_SOURCE 1
16671 #include <string.h>
16672 #include <locale.h>
16674 main ()
16676 char s[128]; strerror_r(5, s);
16678 return 0;
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"; then :
16683 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 CFLAGS="$ac_save_CFLAGS"
16690 # Check for C99 (and other IEEE) math functions
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16692 $as_echo_n "checking for sin in -lm... " >&6; }
16693 if test "${ac_cv_lib_m_sin+set}" = set; then :
16694 $as_echo_n "(cached) " >&6
16695 else
16696 ac_check_lib_save_LIBS=$LIBS
16697 LIBS="-lm $LIBS"
16698 if test x$gcc_no_link = xyes; then
16699 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16704 /* Override any GCC internal prototype to avoid an error.
16705 Use char because int might match the return type of a GCC
16706 builtin and then its argument prototype would still apply. */
16707 #ifdef __cplusplus
16708 extern "C"
16709 #endif
16710 char sin ();
16712 main ()
16714 return sin ();
16716 return 0;
16718 _ACEOF
16719 if ac_fn_c_try_link "$LINENO"; then :
16720 ac_cv_lib_m_sin=yes
16721 else
16722 ac_cv_lib_m_sin=no
16724 rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16726 LIBS=$ac_check_lib_save_LIBS
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16729 $as_echo "$ac_cv_lib_m_sin" >&6; }
16730 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16731 cat >>confdefs.h <<_ACEOF
16732 #define HAVE_LIBM 1
16733 _ACEOF
16735 LIBS="-lm $LIBS"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16746 $as_echo_n "checking for acosf... " >&6; }
16747 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 if test x$gcc_no_link = xyes; then
16751 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16756 #ifdef HAVE_COMPLEX_H
16757 #include <complex.h>
16758 #endif
16759 #ifdef HAVE_MATH_H
16760 #include <math.h>
16761 #endif
16763 int (*ptr)() = (int (*)())acosf;
16766 main ()
16768 return 0;
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 gcc_cv_math_func_acosf=yes
16774 else
16775 gcc_cv_math_func_acosf=no
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16781 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16782 if test $gcc_cv_math_func_acosf = yes; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define HAVE_ACOSF 1
16786 _ACEOF
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16794 $as_echo_n "checking for acos... " >&6; }
16795 if test "${gcc_cv_math_func_acos+set}" = set; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 if test x$gcc_no_link = xyes; then
16799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16804 #ifdef HAVE_COMPLEX_H
16805 #include <complex.h>
16806 #endif
16807 #ifdef HAVE_MATH_H
16808 #include <math.h>
16809 #endif
16811 int (*ptr)() = (int (*)())acos;
16814 main ()
16816 return 0;
16819 _ACEOF
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 gcc_cv_math_func_acos=yes
16822 else
16823 gcc_cv_math_func_acos=no
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16829 $as_echo "$gcc_cv_math_func_acos" >&6; }
16830 if test $gcc_cv_math_func_acos = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_ACOS 1
16834 _ACEOF
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16842 $as_echo_n "checking for acosl... " >&6; }
16843 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 if test x$gcc_no_link = xyes; then
16847 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16852 #ifdef HAVE_COMPLEX_H
16853 #include <complex.h>
16854 #endif
16855 #ifdef HAVE_MATH_H
16856 #include <math.h>
16857 #endif
16859 int (*ptr)() = (int (*)())acosl;
16862 main ()
16864 return 0;
16867 _ACEOF
16868 if ac_fn_c_try_link "$LINENO"; then :
16869 gcc_cv_math_func_acosl=yes
16870 else
16871 gcc_cv_math_func_acosl=no
16873 rm -f core conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16877 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16878 if test $gcc_cv_math_func_acosl = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881 #define HAVE_ACOSL 1
16882 _ACEOF
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16890 $as_echo_n "checking for acoshf... " >&6; }
16891 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16892 $as_echo_n "(cached) " >&6
16893 else
16894 if test x$gcc_no_link = xyes; then
16895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16900 #ifdef HAVE_COMPLEX_H
16901 #include <complex.h>
16902 #endif
16903 #ifdef HAVE_MATH_H
16904 #include <math.h>
16905 #endif
16907 int (*ptr)() = (int (*)())acoshf;
16910 main ()
16912 return 0;
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 gcc_cv_math_func_acoshf=yes
16918 else
16919 gcc_cv_math_func_acoshf=no
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16925 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16926 if test $gcc_cv_math_func_acoshf = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929 #define HAVE_ACOSHF 1
16930 _ACEOF
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16938 $as_echo_n "checking for acosh... " >&6; }
16939 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16942 if test x$gcc_no_link = xyes; then
16943 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16946 /* end confdefs.h. */
16948 #ifdef HAVE_COMPLEX_H
16949 #include <complex.h>
16950 #endif
16951 #ifdef HAVE_MATH_H
16952 #include <math.h>
16953 #endif
16955 int (*ptr)() = (int (*)())acosh;
16958 main ()
16960 return 0;
16963 _ACEOF
16964 if ac_fn_c_try_link "$LINENO"; then :
16965 gcc_cv_math_func_acosh=yes
16966 else
16967 gcc_cv_math_func_acosh=no
16969 rm -f core conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16973 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16974 if test $gcc_cv_math_func_acosh = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define HAVE_ACOSH 1
16978 _ACEOF
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16986 $as_echo_n "checking for acoshl... " >&6; }
16987 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16988 $as_echo_n "(cached) " >&6
16989 else
16990 if test x$gcc_no_link = xyes; then
16991 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16996 #ifdef HAVE_COMPLEX_H
16997 #include <complex.h>
16998 #endif
16999 #ifdef HAVE_MATH_H
17000 #include <math.h>
17001 #endif
17003 int (*ptr)() = (int (*)())acoshl;
17006 main ()
17008 return 0;
17011 _ACEOF
17012 if ac_fn_c_try_link "$LINENO"; then :
17013 gcc_cv_math_func_acoshl=yes
17014 else
17015 gcc_cv_math_func_acoshl=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17021 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17022 if test $gcc_cv_math_func_acoshl = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define HAVE_ACOSHL 1
17026 _ACEOF
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17034 $as_echo_n "checking for asinf... " >&6; }
17035 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17036 $as_echo_n "(cached) " >&6
17037 else
17038 if test x$gcc_no_link = xyes; then
17039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17044 #ifdef HAVE_COMPLEX_H
17045 #include <complex.h>
17046 #endif
17047 #ifdef HAVE_MATH_H
17048 #include <math.h>
17049 #endif
17051 int (*ptr)() = (int (*)())asinf;
17054 main ()
17056 return 0;
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 gcc_cv_math_func_asinf=yes
17062 else
17063 gcc_cv_math_func_asinf=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17069 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17070 if test $gcc_cv_math_func_asinf = yes; then
17072 cat >>confdefs.h <<_ACEOF
17073 #define HAVE_ASINF 1
17074 _ACEOF
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17082 $as_echo_n "checking for asin... " >&6; }
17083 if test "${gcc_cv_math_func_asin+set}" = set; then :
17084 $as_echo_n "(cached) " >&6
17085 else
17086 if test x$gcc_no_link = xyes; then
17087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17092 #ifdef HAVE_COMPLEX_H
17093 #include <complex.h>
17094 #endif
17095 #ifdef HAVE_MATH_H
17096 #include <math.h>
17097 #endif
17099 int (*ptr)() = (int (*)())asin;
17102 main ()
17104 return 0;
17107 _ACEOF
17108 if ac_fn_c_try_link "$LINENO"; then :
17109 gcc_cv_math_func_asin=yes
17110 else
17111 gcc_cv_math_func_asin=no
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17117 $as_echo "$gcc_cv_math_func_asin" >&6; }
17118 if test $gcc_cv_math_func_asin = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define HAVE_ASIN 1
17122 _ACEOF
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17130 $as_echo_n "checking for asinl... " >&6; }
17131 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134 if test x$gcc_no_link = xyes; then
17135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17140 #ifdef HAVE_COMPLEX_H
17141 #include <complex.h>
17142 #endif
17143 #ifdef HAVE_MATH_H
17144 #include <math.h>
17145 #endif
17147 int (*ptr)() = (int (*)())asinl;
17150 main ()
17152 return 0;
17155 _ACEOF
17156 if ac_fn_c_try_link "$LINENO"; then :
17157 gcc_cv_math_func_asinl=yes
17158 else
17159 gcc_cv_math_func_asinl=no
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17165 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17166 if test $gcc_cv_math_func_asinl = yes; then
17168 cat >>confdefs.h <<_ACEOF
17169 #define HAVE_ASINL 1
17170 _ACEOF
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17178 $as_echo_n "checking for asinhf... " >&6; }
17179 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 if test x$gcc_no_link = xyes; then
17183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17188 #ifdef HAVE_COMPLEX_H
17189 #include <complex.h>
17190 #endif
17191 #ifdef HAVE_MATH_H
17192 #include <math.h>
17193 #endif
17195 int (*ptr)() = (int (*)())asinhf;
17198 main ()
17200 return 0;
17203 _ACEOF
17204 if ac_fn_c_try_link "$LINENO"; then :
17205 gcc_cv_math_func_asinhf=yes
17206 else
17207 gcc_cv_math_func_asinhf=no
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17213 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17214 if test $gcc_cv_math_func_asinhf = yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_ASINHF 1
17218 _ACEOF
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17226 $as_echo_n "checking for asinh... " >&6; }
17227 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17228 $as_echo_n "(cached) " >&6
17229 else
17230 if test x$gcc_no_link = xyes; then
17231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17236 #ifdef HAVE_COMPLEX_H
17237 #include <complex.h>
17238 #endif
17239 #ifdef HAVE_MATH_H
17240 #include <math.h>
17241 #endif
17243 int (*ptr)() = (int (*)())asinh;
17246 main ()
17248 return 0;
17251 _ACEOF
17252 if ac_fn_c_try_link "$LINENO"; then :
17253 gcc_cv_math_func_asinh=yes
17254 else
17255 gcc_cv_math_func_asinh=no
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17261 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17262 if test $gcc_cv_math_func_asinh = yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_ASINH 1
17266 _ACEOF
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17274 $as_echo_n "checking for asinhl... " >&6; }
17275 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 if test x$gcc_no_link = xyes; then
17279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17284 #ifdef HAVE_COMPLEX_H
17285 #include <complex.h>
17286 #endif
17287 #ifdef HAVE_MATH_H
17288 #include <math.h>
17289 #endif
17291 int (*ptr)() = (int (*)())asinhl;
17294 main ()
17296 return 0;
17299 _ACEOF
17300 if ac_fn_c_try_link "$LINENO"; then :
17301 gcc_cv_math_func_asinhl=yes
17302 else
17303 gcc_cv_math_func_asinhl=no
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17309 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17310 if test $gcc_cv_math_func_asinhl = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313 #define HAVE_ASINHL 1
17314 _ACEOF
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17322 $as_echo_n "checking for atan2f... " >&6; }
17323 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 if test x$gcc_no_link = xyes; then
17327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17332 #ifdef HAVE_COMPLEX_H
17333 #include <complex.h>
17334 #endif
17335 #ifdef HAVE_MATH_H
17336 #include <math.h>
17337 #endif
17339 int (*ptr)() = (int (*)())atan2f;
17342 main ()
17344 return 0;
17347 _ACEOF
17348 if ac_fn_c_try_link "$LINENO"; then :
17349 gcc_cv_math_func_atan2f=yes
17350 else
17351 gcc_cv_math_func_atan2f=no
17353 rm -f core conftest.err conftest.$ac_objext \
17354 conftest$ac_exeext conftest.$ac_ext
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17357 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17358 if test $gcc_cv_math_func_atan2f = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_ATAN2F 1
17362 _ACEOF
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17370 $as_echo_n "checking for atan2... " >&6; }
17371 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 if test x$gcc_no_link = xyes; then
17375 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17380 #ifdef HAVE_COMPLEX_H
17381 #include <complex.h>
17382 #endif
17383 #ifdef HAVE_MATH_H
17384 #include <math.h>
17385 #endif
17387 int (*ptr)() = (int (*)())atan2;
17390 main ()
17392 return 0;
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 gcc_cv_math_func_atan2=yes
17398 else
17399 gcc_cv_math_func_atan2=no
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17405 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17406 if test $gcc_cv_math_func_atan2 = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define HAVE_ATAN2 1
17410 _ACEOF
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17418 $as_echo_n "checking for atan2l... " >&6; }
17419 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 if test x$gcc_no_link = xyes; then
17423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17428 #ifdef HAVE_COMPLEX_H
17429 #include <complex.h>
17430 #endif
17431 #ifdef HAVE_MATH_H
17432 #include <math.h>
17433 #endif
17435 int (*ptr)() = (int (*)())atan2l;
17438 main ()
17440 return 0;
17443 _ACEOF
17444 if ac_fn_c_try_link "$LINENO"; then :
17445 gcc_cv_math_func_atan2l=yes
17446 else
17447 gcc_cv_math_func_atan2l=no
17449 rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17453 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17454 if test $gcc_cv_math_func_atan2l = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define HAVE_ATAN2L 1
17458 _ACEOF
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17466 $as_echo_n "checking for atanf... " >&6; }
17467 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 if test x$gcc_no_link = xyes; then
17471 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17476 #ifdef HAVE_COMPLEX_H
17477 #include <complex.h>
17478 #endif
17479 #ifdef HAVE_MATH_H
17480 #include <math.h>
17481 #endif
17483 int (*ptr)() = (int (*)())atanf;
17486 main ()
17488 return 0;
17491 _ACEOF
17492 if ac_fn_c_try_link "$LINENO"; then :
17493 gcc_cv_math_func_atanf=yes
17494 else
17495 gcc_cv_math_func_atanf=no
17497 rm -f core conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17501 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17502 if test $gcc_cv_math_func_atanf = yes; then
17504 cat >>confdefs.h <<_ACEOF
17505 #define HAVE_ATANF 1
17506 _ACEOF
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17514 $as_echo_n "checking for atan... " >&6; }
17515 if test "${gcc_cv_math_func_atan+set}" = set; then :
17516 $as_echo_n "(cached) " >&6
17517 else
17518 if test x$gcc_no_link = xyes; then
17519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17524 #ifdef HAVE_COMPLEX_H
17525 #include <complex.h>
17526 #endif
17527 #ifdef HAVE_MATH_H
17528 #include <math.h>
17529 #endif
17531 int (*ptr)() = (int (*)())atan;
17534 main ()
17536 return 0;
17539 _ACEOF
17540 if ac_fn_c_try_link "$LINENO"; then :
17541 gcc_cv_math_func_atan=yes
17542 else
17543 gcc_cv_math_func_atan=no
17545 rm -f core conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17549 $as_echo "$gcc_cv_math_func_atan" >&6; }
17550 if test $gcc_cv_math_func_atan = yes; then
17552 cat >>confdefs.h <<_ACEOF
17553 #define HAVE_ATAN 1
17554 _ACEOF
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17562 $as_echo_n "checking for atanl... " >&6; }
17563 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17564 $as_echo_n "(cached) " >&6
17565 else
17566 if test x$gcc_no_link = xyes; then
17567 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 #ifdef HAVE_COMPLEX_H
17573 #include <complex.h>
17574 #endif
17575 #ifdef HAVE_MATH_H
17576 #include <math.h>
17577 #endif
17579 int (*ptr)() = (int (*)())atanl;
17582 main ()
17584 return 0;
17587 _ACEOF
17588 if ac_fn_c_try_link "$LINENO"; then :
17589 gcc_cv_math_func_atanl=yes
17590 else
17591 gcc_cv_math_func_atanl=no
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17597 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17598 if test $gcc_cv_math_func_atanl = yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_ATANL 1
17602 _ACEOF
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17610 $as_echo_n "checking for atanhf... " >&6; }
17611 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17612 $as_echo_n "(cached) " >&6
17613 else
17614 if test x$gcc_no_link = xyes; then
17615 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17620 #ifdef HAVE_COMPLEX_H
17621 #include <complex.h>
17622 #endif
17623 #ifdef HAVE_MATH_H
17624 #include <math.h>
17625 #endif
17627 int (*ptr)() = (int (*)())atanhf;
17630 main ()
17632 return 0;
17635 _ACEOF
17636 if ac_fn_c_try_link "$LINENO"; then :
17637 gcc_cv_math_func_atanhf=yes
17638 else
17639 gcc_cv_math_func_atanhf=no
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17645 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17646 if test $gcc_cv_math_func_atanhf = yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define HAVE_ATANHF 1
17650 _ACEOF
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17658 $as_echo_n "checking for atanh... " >&6; }
17659 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17660 $as_echo_n "(cached) " >&6
17661 else
17662 if test x$gcc_no_link = xyes; then
17663 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 #ifdef HAVE_COMPLEX_H
17669 #include <complex.h>
17670 #endif
17671 #ifdef HAVE_MATH_H
17672 #include <math.h>
17673 #endif
17675 int (*ptr)() = (int (*)())atanh;
17678 main ()
17680 return 0;
17683 _ACEOF
17684 if ac_fn_c_try_link "$LINENO"; then :
17685 gcc_cv_math_func_atanh=yes
17686 else
17687 gcc_cv_math_func_atanh=no
17689 rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17693 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17694 if test $gcc_cv_math_func_atanh = yes; then
17696 cat >>confdefs.h <<_ACEOF
17697 #define HAVE_ATANH 1
17698 _ACEOF
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17706 $as_echo_n "checking for atanhl... " >&6; }
17707 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17708 $as_echo_n "(cached) " >&6
17709 else
17710 if test x$gcc_no_link = xyes; then
17711 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 #ifdef HAVE_COMPLEX_H
17717 #include <complex.h>
17718 #endif
17719 #ifdef HAVE_MATH_H
17720 #include <math.h>
17721 #endif
17723 int (*ptr)() = (int (*)())atanhl;
17726 main ()
17728 return 0;
17731 _ACEOF
17732 if ac_fn_c_try_link "$LINENO"; then :
17733 gcc_cv_math_func_atanhl=yes
17734 else
17735 gcc_cv_math_func_atanhl=no
17737 rm -f core conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17741 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17742 if test $gcc_cv_math_func_atanhl = yes; then
17744 cat >>confdefs.h <<_ACEOF
17745 #define HAVE_ATANHL 1
17746 _ACEOF
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17754 $as_echo_n "checking for cargf... " >&6; }
17755 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 if test x$gcc_no_link = xyes; then
17759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 #ifdef HAVE_COMPLEX_H
17765 #include <complex.h>
17766 #endif
17767 #ifdef HAVE_MATH_H
17768 #include <math.h>
17769 #endif
17771 int (*ptr)() = (int (*)())cargf;
17774 main ()
17776 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 gcc_cv_math_func_cargf=yes
17782 else
17783 gcc_cv_math_func_cargf=no
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17789 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17790 if test $gcc_cv_math_func_cargf = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define HAVE_CARGF 1
17794 _ACEOF
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17802 $as_echo_n "checking for carg... " >&6; }
17803 if test "${gcc_cv_math_func_carg+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 if test x$gcc_no_link = xyes; then
17807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17812 #ifdef HAVE_COMPLEX_H
17813 #include <complex.h>
17814 #endif
17815 #ifdef HAVE_MATH_H
17816 #include <math.h>
17817 #endif
17819 int (*ptr)() = (int (*)())carg;
17822 main ()
17824 return 0;
17827 _ACEOF
17828 if ac_fn_c_try_link "$LINENO"; then :
17829 gcc_cv_math_func_carg=yes
17830 else
17831 gcc_cv_math_func_carg=no
17833 rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17837 $as_echo "$gcc_cv_math_func_carg" >&6; }
17838 if test $gcc_cv_math_func_carg = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841 #define HAVE_CARG 1
17842 _ACEOF
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17850 $as_echo_n "checking for cargl... " >&6; }
17851 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 if test x$gcc_no_link = xyes; then
17855 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17860 #ifdef HAVE_COMPLEX_H
17861 #include <complex.h>
17862 #endif
17863 #ifdef HAVE_MATH_H
17864 #include <math.h>
17865 #endif
17867 int (*ptr)() = (int (*)())cargl;
17870 main ()
17872 return 0;
17875 _ACEOF
17876 if ac_fn_c_try_link "$LINENO"; then :
17877 gcc_cv_math_func_cargl=yes
17878 else
17879 gcc_cv_math_func_cargl=no
17881 rm -f core conftest.err conftest.$ac_objext \
17882 conftest$ac_exeext conftest.$ac_ext
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17885 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17886 if test $gcc_cv_math_func_cargl = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_CARGL 1
17890 _ACEOF
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17898 $as_echo_n "checking for ceilf... " >&6; }
17899 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 if test x$gcc_no_link = xyes; then
17903 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17908 #ifdef HAVE_COMPLEX_H
17909 #include <complex.h>
17910 #endif
17911 #ifdef HAVE_MATH_H
17912 #include <math.h>
17913 #endif
17915 int (*ptr)() = (int (*)())ceilf;
17918 main ()
17920 return 0;
17923 _ACEOF
17924 if ac_fn_c_try_link "$LINENO"; then :
17925 gcc_cv_math_func_ceilf=yes
17926 else
17927 gcc_cv_math_func_ceilf=no
17929 rm -f core conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17933 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17934 if test $gcc_cv_math_func_ceilf = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define HAVE_CEILF 1
17938 _ACEOF
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17946 $as_echo_n "checking for ceil... " >&6; }
17947 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17949 else
17950 if test x$gcc_no_link = xyes; then
17951 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17956 #ifdef HAVE_COMPLEX_H
17957 #include <complex.h>
17958 #endif
17959 #ifdef HAVE_MATH_H
17960 #include <math.h>
17961 #endif
17963 int (*ptr)() = (int (*)())ceil;
17966 main ()
17968 return 0;
17971 _ACEOF
17972 if ac_fn_c_try_link "$LINENO"; then :
17973 gcc_cv_math_func_ceil=yes
17974 else
17975 gcc_cv_math_func_ceil=no
17977 rm -f core conftest.err conftest.$ac_objext \
17978 conftest$ac_exeext conftest.$ac_ext
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17981 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17982 if test $gcc_cv_math_func_ceil = yes; then
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_CEIL 1
17986 _ACEOF
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17994 $as_echo_n "checking for ceill... " >&6; }
17995 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17997 else
17998 if test x$gcc_no_link = xyes; then
17999 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18004 #ifdef HAVE_COMPLEX_H
18005 #include <complex.h>
18006 #endif
18007 #ifdef HAVE_MATH_H
18008 #include <math.h>
18009 #endif
18011 int (*ptr)() = (int (*)())ceill;
18014 main ()
18016 return 0;
18019 _ACEOF
18020 if ac_fn_c_try_link "$LINENO"; then :
18021 gcc_cv_math_func_ceill=yes
18022 else
18023 gcc_cv_math_func_ceill=no
18025 rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18029 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18030 if test $gcc_cv_math_func_ceill = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define HAVE_CEILL 1
18034 _ACEOF
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18042 $as_echo_n "checking for copysignf... " >&6; }
18043 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 if test x$gcc_no_link = xyes; then
18047 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18052 #ifdef HAVE_COMPLEX_H
18053 #include <complex.h>
18054 #endif
18055 #ifdef HAVE_MATH_H
18056 #include <math.h>
18057 #endif
18059 int (*ptr)() = (int (*)())copysignf;
18062 main ()
18064 return 0;
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 gcc_cv_math_func_copysignf=yes
18070 else
18071 gcc_cv_math_func_copysignf=no
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18077 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18078 if test $gcc_cv_math_func_copysignf = yes; then
18080 cat >>confdefs.h <<_ACEOF
18081 #define HAVE_COPYSIGNF 1
18082 _ACEOF
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18090 $as_echo_n "checking for copysign... " >&6; }
18091 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18092 $as_echo_n "(cached) " >&6
18093 else
18094 if test x$gcc_no_link = xyes; then
18095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18100 #ifdef HAVE_COMPLEX_H
18101 #include <complex.h>
18102 #endif
18103 #ifdef HAVE_MATH_H
18104 #include <math.h>
18105 #endif
18107 int (*ptr)() = (int (*)())copysign;
18110 main ()
18112 return 0;
18115 _ACEOF
18116 if ac_fn_c_try_link "$LINENO"; then :
18117 gcc_cv_math_func_copysign=yes
18118 else
18119 gcc_cv_math_func_copysign=no
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18125 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18126 if test $gcc_cv_math_func_copysign = yes; then
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_COPYSIGN 1
18130 _ACEOF
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18138 $as_echo_n "checking for copysignl... " >&6; }
18139 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 if test x$gcc_no_link = xyes; then
18143 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18148 #ifdef HAVE_COMPLEX_H
18149 #include <complex.h>
18150 #endif
18151 #ifdef HAVE_MATH_H
18152 #include <math.h>
18153 #endif
18155 int (*ptr)() = (int (*)())copysignl;
18158 main ()
18160 return 0;
18163 _ACEOF
18164 if ac_fn_c_try_link "$LINENO"; then :
18165 gcc_cv_math_func_copysignl=yes
18166 else
18167 gcc_cv_math_func_copysignl=no
18169 rm -f core conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18173 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18174 if test $gcc_cv_math_func_copysignl = yes; then
18176 cat >>confdefs.h <<_ACEOF
18177 #define HAVE_COPYSIGNL 1
18178 _ACEOF
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18186 $as_echo_n "checking for cosf... " >&6; }
18187 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 if test x$gcc_no_link = xyes; then
18191 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18196 #ifdef HAVE_COMPLEX_H
18197 #include <complex.h>
18198 #endif
18199 #ifdef HAVE_MATH_H
18200 #include <math.h>
18201 #endif
18203 int (*ptr)() = (int (*)())cosf;
18206 main ()
18208 return 0;
18211 _ACEOF
18212 if ac_fn_c_try_link "$LINENO"; then :
18213 gcc_cv_math_func_cosf=yes
18214 else
18215 gcc_cv_math_func_cosf=no
18217 rm -f core conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18221 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18222 if test $gcc_cv_math_func_cosf = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_COSF 1
18226 _ACEOF
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18234 $as_echo_n "checking for cos... " >&6; }
18235 if test "${gcc_cv_math_func_cos+set}" = set; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 if test x$gcc_no_link = xyes; then
18239 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18244 #ifdef HAVE_COMPLEX_H
18245 #include <complex.h>
18246 #endif
18247 #ifdef HAVE_MATH_H
18248 #include <math.h>
18249 #endif
18251 int (*ptr)() = (int (*)())cos;
18254 main ()
18256 return 0;
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"; then :
18261 gcc_cv_math_func_cos=yes
18262 else
18263 gcc_cv_math_func_cos=no
18265 rm -f core conftest.err conftest.$ac_objext \
18266 conftest$ac_exeext conftest.$ac_ext
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18269 $as_echo "$gcc_cv_math_func_cos" >&6; }
18270 if test $gcc_cv_math_func_cos = yes; then
18272 cat >>confdefs.h <<_ACEOF
18273 #define HAVE_COS 1
18274 _ACEOF
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18282 $as_echo_n "checking for cosl... " >&6; }
18283 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 if test x$gcc_no_link = xyes; then
18287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18292 #ifdef HAVE_COMPLEX_H
18293 #include <complex.h>
18294 #endif
18295 #ifdef HAVE_MATH_H
18296 #include <math.h>
18297 #endif
18299 int (*ptr)() = (int (*)())cosl;
18302 main ()
18304 return 0;
18307 _ACEOF
18308 if ac_fn_c_try_link "$LINENO"; then :
18309 gcc_cv_math_func_cosl=yes
18310 else
18311 gcc_cv_math_func_cosl=no
18313 rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18317 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18318 if test $gcc_cv_math_func_cosl = yes; then
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_COSL 1
18322 _ACEOF
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18330 $as_echo_n "checking for ccosf... " >&6; }
18331 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18332 $as_echo_n "(cached) " >&6
18333 else
18334 if test x$gcc_no_link = xyes; then
18335 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18340 #ifdef HAVE_COMPLEX_H
18341 #include <complex.h>
18342 #endif
18343 #ifdef HAVE_MATH_H
18344 #include <math.h>
18345 #endif
18347 int (*ptr)() = (int (*)())ccosf;
18350 main ()
18352 return 0;
18355 _ACEOF
18356 if ac_fn_c_try_link "$LINENO"; then :
18357 gcc_cv_math_func_ccosf=yes
18358 else
18359 gcc_cv_math_func_ccosf=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18365 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18366 if test $gcc_cv_math_func_ccosf = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define HAVE_CCOSF 1
18370 _ACEOF
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18378 $as_echo_n "checking for ccos... " >&6; }
18379 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 if test x$gcc_no_link = xyes; then
18383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 #ifdef HAVE_COMPLEX_H
18389 #include <complex.h>
18390 #endif
18391 #ifdef HAVE_MATH_H
18392 #include <math.h>
18393 #endif
18395 int (*ptr)() = (int (*)())ccos;
18398 main ()
18400 return 0;
18403 _ACEOF
18404 if ac_fn_c_try_link "$LINENO"; then :
18405 gcc_cv_math_func_ccos=yes
18406 else
18407 gcc_cv_math_func_ccos=no
18409 rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18413 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18414 if test $gcc_cv_math_func_ccos = yes; then
18416 cat >>confdefs.h <<_ACEOF
18417 #define HAVE_CCOS 1
18418 _ACEOF
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18426 $as_echo_n "checking for ccosl... " >&6; }
18427 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430 if test x$gcc_no_link = xyes; then
18431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 #ifdef HAVE_COMPLEX_H
18437 #include <complex.h>
18438 #endif
18439 #ifdef HAVE_MATH_H
18440 #include <math.h>
18441 #endif
18443 int (*ptr)() = (int (*)())ccosl;
18446 main ()
18448 return 0;
18451 _ACEOF
18452 if ac_fn_c_try_link "$LINENO"; then :
18453 gcc_cv_math_func_ccosl=yes
18454 else
18455 gcc_cv_math_func_ccosl=no
18457 rm -f core conftest.err conftest.$ac_objext \
18458 conftest$ac_exeext conftest.$ac_ext
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18461 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18462 if test $gcc_cv_math_func_ccosl = yes; then
18464 cat >>confdefs.h <<_ACEOF
18465 #define HAVE_CCOSL 1
18466 _ACEOF
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18474 $as_echo_n "checking for coshf... " >&6; }
18475 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 if test x$gcc_no_link = xyes; then
18479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18484 #ifdef HAVE_COMPLEX_H
18485 #include <complex.h>
18486 #endif
18487 #ifdef HAVE_MATH_H
18488 #include <math.h>
18489 #endif
18491 int (*ptr)() = (int (*)())coshf;
18494 main ()
18496 return 0;
18499 _ACEOF
18500 if ac_fn_c_try_link "$LINENO"; then :
18501 gcc_cv_math_func_coshf=yes
18502 else
18503 gcc_cv_math_func_coshf=no
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18509 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18510 if test $gcc_cv_math_func_coshf = yes; then
18512 cat >>confdefs.h <<_ACEOF
18513 #define HAVE_COSHF 1
18514 _ACEOF
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18522 $as_echo_n "checking for cosh... " >&6; }
18523 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18525 else
18526 if test x$gcc_no_link = xyes; then
18527 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 #ifdef HAVE_COMPLEX_H
18533 #include <complex.h>
18534 #endif
18535 #ifdef HAVE_MATH_H
18536 #include <math.h>
18537 #endif
18539 int (*ptr)() = (int (*)())cosh;
18542 main ()
18544 return 0;
18547 _ACEOF
18548 if ac_fn_c_try_link "$LINENO"; then :
18549 gcc_cv_math_func_cosh=yes
18550 else
18551 gcc_cv_math_func_cosh=no
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18557 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18558 if test $gcc_cv_math_func_cosh = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define HAVE_COSH 1
18562 _ACEOF
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18570 $as_echo_n "checking for coshl... " >&6; }
18571 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18572 $as_echo_n "(cached) " >&6
18573 else
18574 if test x$gcc_no_link = xyes; then
18575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18580 #ifdef HAVE_COMPLEX_H
18581 #include <complex.h>
18582 #endif
18583 #ifdef HAVE_MATH_H
18584 #include <math.h>
18585 #endif
18587 int (*ptr)() = (int (*)())coshl;
18590 main ()
18592 return 0;
18595 _ACEOF
18596 if ac_fn_c_try_link "$LINENO"; then :
18597 gcc_cv_math_func_coshl=yes
18598 else
18599 gcc_cv_math_func_coshl=no
18601 rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18605 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18606 if test $gcc_cv_math_func_coshl = yes; then
18608 cat >>confdefs.h <<_ACEOF
18609 #define HAVE_COSHL 1
18610 _ACEOF
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18618 $as_echo_n "checking for ccoshf... " >&6; }
18619 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18622 if test x$gcc_no_link = xyes; then
18623 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18628 #ifdef HAVE_COMPLEX_H
18629 #include <complex.h>
18630 #endif
18631 #ifdef HAVE_MATH_H
18632 #include <math.h>
18633 #endif
18635 int (*ptr)() = (int (*)())ccoshf;
18638 main ()
18640 return 0;
18643 _ACEOF
18644 if ac_fn_c_try_link "$LINENO"; then :
18645 gcc_cv_math_func_ccoshf=yes
18646 else
18647 gcc_cv_math_func_ccoshf=no
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18653 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18654 if test $gcc_cv_math_func_ccoshf = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define HAVE_CCOSHF 1
18658 _ACEOF
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18666 $as_echo_n "checking for ccosh... " >&6; }
18667 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18668 $as_echo_n "(cached) " >&6
18669 else
18670 if test x$gcc_no_link = xyes; then
18671 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18676 #ifdef HAVE_COMPLEX_H
18677 #include <complex.h>
18678 #endif
18679 #ifdef HAVE_MATH_H
18680 #include <math.h>
18681 #endif
18683 int (*ptr)() = (int (*)())ccosh;
18686 main ()
18688 return 0;
18691 _ACEOF
18692 if ac_fn_c_try_link "$LINENO"; then :
18693 gcc_cv_math_func_ccosh=yes
18694 else
18695 gcc_cv_math_func_ccosh=no
18697 rm -f core conftest.err conftest.$ac_objext \
18698 conftest$ac_exeext conftest.$ac_ext
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18701 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18702 if test $gcc_cv_math_func_ccosh = yes; then
18704 cat >>confdefs.h <<_ACEOF
18705 #define HAVE_CCOSH 1
18706 _ACEOF
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18714 $as_echo_n "checking for ccoshl... " >&6; }
18715 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18716 $as_echo_n "(cached) " >&6
18717 else
18718 if test x$gcc_no_link = xyes; then
18719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h. */
18724 #ifdef HAVE_COMPLEX_H
18725 #include <complex.h>
18726 #endif
18727 #ifdef HAVE_MATH_H
18728 #include <math.h>
18729 #endif
18731 int (*ptr)() = (int (*)())ccoshl;
18734 main ()
18736 return 0;
18739 _ACEOF
18740 if ac_fn_c_try_link "$LINENO"; then :
18741 gcc_cv_math_func_ccoshl=yes
18742 else
18743 gcc_cv_math_func_ccoshl=no
18745 rm -f core conftest.err conftest.$ac_objext \
18746 conftest$ac_exeext conftest.$ac_ext
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18749 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18750 if test $gcc_cv_math_func_ccoshl = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_CCOSHL 1
18754 _ACEOF
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18762 $as_echo_n "checking for expf... " >&6; }
18763 if test "${gcc_cv_math_func_expf+set}" = set; then :
18764 $as_echo_n "(cached) " >&6
18765 else
18766 if test x$gcc_no_link = xyes; then
18767 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18772 #ifdef HAVE_COMPLEX_H
18773 #include <complex.h>
18774 #endif
18775 #ifdef HAVE_MATH_H
18776 #include <math.h>
18777 #endif
18779 int (*ptr)() = (int (*)())expf;
18782 main ()
18784 return 0;
18787 _ACEOF
18788 if ac_fn_c_try_link "$LINENO"; then :
18789 gcc_cv_math_func_expf=yes
18790 else
18791 gcc_cv_math_func_expf=no
18793 rm -f core conftest.err conftest.$ac_objext \
18794 conftest$ac_exeext conftest.$ac_ext
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18797 $as_echo "$gcc_cv_math_func_expf" >&6; }
18798 if test $gcc_cv_math_func_expf = yes; then
18800 cat >>confdefs.h <<_ACEOF
18801 #define HAVE_EXPF 1
18802 _ACEOF
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18810 $as_echo_n "checking for exp... " >&6; }
18811 if test "${gcc_cv_math_func_exp+set}" = set; then :
18812 $as_echo_n "(cached) " >&6
18813 else
18814 if test x$gcc_no_link = xyes; then
18815 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18820 #ifdef HAVE_COMPLEX_H
18821 #include <complex.h>
18822 #endif
18823 #ifdef HAVE_MATH_H
18824 #include <math.h>
18825 #endif
18827 int (*ptr)() = (int (*)())exp;
18830 main ()
18832 return 0;
18835 _ACEOF
18836 if ac_fn_c_try_link "$LINENO"; then :
18837 gcc_cv_math_func_exp=yes
18838 else
18839 gcc_cv_math_func_exp=no
18841 rm -f core conftest.err conftest.$ac_objext \
18842 conftest$ac_exeext conftest.$ac_ext
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18845 $as_echo "$gcc_cv_math_func_exp" >&6; }
18846 if test $gcc_cv_math_func_exp = yes; then
18848 cat >>confdefs.h <<_ACEOF
18849 #define HAVE_EXP 1
18850 _ACEOF
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18858 $as_echo_n "checking for expl... " >&6; }
18859 if test "${gcc_cv_math_func_expl+set}" = set; then :
18860 $as_echo_n "(cached) " >&6
18861 else
18862 if test x$gcc_no_link = xyes; then
18863 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18868 #ifdef HAVE_COMPLEX_H
18869 #include <complex.h>
18870 #endif
18871 #ifdef HAVE_MATH_H
18872 #include <math.h>
18873 #endif
18875 int (*ptr)() = (int (*)())expl;
18878 main ()
18880 return 0;
18883 _ACEOF
18884 if ac_fn_c_try_link "$LINENO"; then :
18885 gcc_cv_math_func_expl=yes
18886 else
18887 gcc_cv_math_func_expl=no
18889 rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18893 $as_echo "$gcc_cv_math_func_expl" >&6; }
18894 if test $gcc_cv_math_func_expl = yes; then
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_EXPL 1
18898 _ACEOF
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18906 $as_echo_n "checking for cexpf... " >&6; }
18907 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18908 $as_echo_n "(cached) " >&6
18909 else
18910 if test x$gcc_no_link = xyes; then
18911 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18916 #ifdef HAVE_COMPLEX_H
18917 #include <complex.h>
18918 #endif
18919 #ifdef HAVE_MATH_H
18920 #include <math.h>
18921 #endif
18923 int (*ptr)() = (int (*)())cexpf;
18926 main ()
18928 return 0;
18931 _ACEOF
18932 if ac_fn_c_try_link "$LINENO"; then :
18933 gcc_cv_math_func_cexpf=yes
18934 else
18935 gcc_cv_math_func_cexpf=no
18937 rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18941 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18942 if test $gcc_cv_math_func_cexpf = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945 #define HAVE_CEXPF 1
18946 _ACEOF
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18954 $as_echo_n "checking for cexp... " >&6; }
18955 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18956 $as_echo_n "(cached) " >&6
18957 else
18958 if test x$gcc_no_link = xyes; then
18959 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18964 #ifdef HAVE_COMPLEX_H
18965 #include <complex.h>
18966 #endif
18967 #ifdef HAVE_MATH_H
18968 #include <math.h>
18969 #endif
18971 int (*ptr)() = (int (*)())cexp;
18974 main ()
18976 return 0;
18979 _ACEOF
18980 if ac_fn_c_try_link "$LINENO"; then :
18981 gcc_cv_math_func_cexp=yes
18982 else
18983 gcc_cv_math_func_cexp=no
18985 rm -f core conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18989 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18990 if test $gcc_cv_math_func_cexp = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_CEXP 1
18994 _ACEOF
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19002 $as_echo_n "checking for cexpl... " >&6; }
19003 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19005 else
19006 if test x$gcc_no_link = xyes; then
19007 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19012 #ifdef HAVE_COMPLEX_H
19013 #include <complex.h>
19014 #endif
19015 #ifdef HAVE_MATH_H
19016 #include <math.h>
19017 #endif
19019 int (*ptr)() = (int (*)())cexpl;
19022 main ()
19024 return 0;
19027 _ACEOF
19028 if ac_fn_c_try_link "$LINENO"; then :
19029 gcc_cv_math_func_cexpl=yes
19030 else
19031 gcc_cv_math_func_cexpl=no
19033 rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19037 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19038 if test $gcc_cv_math_func_cexpl = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define HAVE_CEXPL 1
19042 _ACEOF
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19050 $as_echo_n "checking for fabsf... " >&6; }
19051 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19052 $as_echo_n "(cached) " >&6
19053 else
19054 if test x$gcc_no_link = xyes; then
19055 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19060 #ifdef HAVE_COMPLEX_H
19061 #include <complex.h>
19062 #endif
19063 #ifdef HAVE_MATH_H
19064 #include <math.h>
19065 #endif
19067 int (*ptr)() = (int (*)())fabsf;
19070 main ()
19072 return 0;
19075 _ACEOF
19076 if ac_fn_c_try_link "$LINENO"; then :
19077 gcc_cv_math_func_fabsf=yes
19078 else
19079 gcc_cv_math_func_fabsf=no
19081 rm -f core conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19085 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19086 if test $gcc_cv_math_func_fabsf = yes; then
19088 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_FABSF 1
19090 _ACEOF
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19098 $as_echo_n "checking for fabs... " >&6; }
19099 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19100 $as_echo_n "(cached) " >&6
19101 else
19102 if test x$gcc_no_link = xyes; then
19103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19108 #ifdef HAVE_COMPLEX_H
19109 #include <complex.h>
19110 #endif
19111 #ifdef HAVE_MATH_H
19112 #include <math.h>
19113 #endif
19115 int (*ptr)() = (int (*)())fabs;
19118 main ()
19120 return 0;
19123 _ACEOF
19124 if ac_fn_c_try_link "$LINENO"; then :
19125 gcc_cv_math_func_fabs=yes
19126 else
19127 gcc_cv_math_func_fabs=no
19129 rm -f core conftest.err conftest.$ac_objext \
19130 conftest$ac_exeext conftest.$ac_ext
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19133 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19134 if test $gcc_cv_math_func_fabs = yes; then
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_FABS 1
19138 _ACEOF
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19146 $as_echo_n "checking for fabsl... " >&6; }
19147 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19148 $as_echo_n "(cached) " >&6
19149 else
19150 if test x$gcc_no_link = xyes; then
19151 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19156 #ifdef HAVE_COMPLEX_H
19157 #include <complex.h>
19158 #endif
19159 #ifdef HAVE_MATH_H
19160 #include <math.h>
19161 #endif
19163 int (*ptr)() = (int (*)())fabsl;
19166 main ()
19168 return 0;
19171 _ACEOF
19172 if ac_fn_c_try_link "$LINENO"; then :
19173 gcc_cv_math_func_fabsl=yes
19174 else
19175 gcc_cv_math_func_fabsl=no
19177 rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19181 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19182 if test $gcc_cv_math_func_fabsl = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_FABSL 1
19186 _ACEOF
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19194 $as_echo_n "checking for cabsf... " >&6; }
19195 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19196 $as_echo_n "(cached) " >&6
19197 else
19198 if test x$gcc_no_link = xyes; then
19199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19204 #ifdef HAVE_COMPLEX_H
19205 #include <complex.h>
19206 #endif
19207 #ifdef HAVE_MATH_H
19208 #include <math.h>
19209 #endif
19211 int (*ptr)() = (int (*)())cabsf;
19214 main ()
19216 return 0;
19219 _ACEOF
19220 if ac_fn_c_try_link "$LINENO"; then :
19221 gcc_cv_math_func_cabsf=yes
19222 else
19223 gcc_cv_math_func_cabsf=no
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19229 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19230 if test $gcc_cv_math_func_cabsf = yes; then
19232 cat >>confdefs.h <<_ACEOF
19233 #define HAVE_CABSF 1
19234 _ACEOF
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19242 $as_echo_n "checking for cabs... " >&6; }
19243 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19244 $as_echo_n "(cached) " >&6
19245 else
19246 if test x$gcc_no_link = xyes; then
19247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19252 #ifdef HAVE_COMPLEX_H
19253 #include <complex.h>
19254 #endif
19255 #ifdef HAVE_MATH_H
19256 #include <math.h>
19257 #endif
19259 int (*ptr)() = (int (*)())cabs;
19262 main ()
19264 return 0;
19267 _ACEOF
19268 if ac_fn_c_try_link "$LINENO"; then :
19269 gcc_cv_math_func_cabs=yes
19270 else
19271 gcc_cv_math_func_cabs=no
19273 rm -f core conftest.err conftest.$ac_objext \
19274 conftest$ac_exeext conftest.$ac_ext
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19277 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19278 if test $gcc_cv_math_func_cabs = yes; then
19280 cat >>confdefs.h <<_ACEOF
19281 #define HAVE_CABS 1
19282 _ACEOF
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19290 $as_echo_n "checking for cabsl... " >&6; }
19291 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19292 $as_echo_n "(cached) " >&6
19293 else
19294 if test x$gcc_no_link = xyes; then
19295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19300 #ifdef HAVE_COMPLEX_H
19301 #include <complex.h>
19302 #endif
19303 #ifdef HAVE_MATH_H
19304 #include <math.h>
19305 #endif
19307 int (*ptr)() = (int (*)())cabsl;
19310 main ()
19312 return 0;
19315 _ACEOF
19316 if ac_fn_c_try_link "$LINENO"; then :
19317 gcc_cv_math_func_cabsl=yes
19318 else
19319 gcc_cv_math_func_cabsl=no
19321 rm -f core conftest.err conftest.$ac_objext \
19322 conftest$ac_exeext conftest.$ac_ext
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19325 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19326 if test $gcc_cv_math_func_cabsl = yes; then
19328 cat >>confdefs.h <<_ACEOF
19329 #define HAVE_CABSL 1
19330 _ACEOF
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19338 $as_echo_n "checking for floorf... " >&6; }
19339 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19340 $as_echo_n "(cached) " >&6
19341 else
19342 if test x$gcc_no_link = xyes; then
19343 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19348 #ifdef HAVE_COMPLEX_H
19349 #include <complex.h>
19350 #endif
19351 #ifdef HAVE_MATH_H
19352 #include <math.h>
19353 #endif
19355 int (*ptr)() = (int (*)())floorf;
19358 main ()
19360 return 0;
19363 _ACEOF
19364 if ac_fn_c_try_link "$LINENO"; then :
19365 gcc_cv_math_func_floorf=yes
19366 else
19367 gcc_cv_math_func_floorf=no
19369 rm -f core conftest.err conftest.$ac_objext \
19370 conftest$ac_exeext conftest.$ac_ext
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19373 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19374 if test $gcc_cv_math_func_floorf = yes; then
19376 cat >>confdefs.h <<_ACEOF
19377 #define HAVE_FLOORF 1
19378 _ACEOF
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19386 $as_echo_n "checking for floor... " >&6; }
19387 if test "${gcc_cv_math_func_floor+set}" = set; then :
19388 $as_echo_n "(cached) " >&6
19389 else
19390 if test x$gcc_no_link = xyes; then
19391 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19396 #ifdef HAVE_COMPLEX_H
19397 #include <complex.h>
19398 #endif
19399 #ifdef HAVE_MATH_H
19400 #include <math.h>
19401 #endif
19403 int (*ptr)() = (int (*)())floor;
19406 main ()
19408 return 0;
19411 _ACEOF
19412 if ac_fn_c_try_link "$LINENO"; then :
19413 gcc_cv_math_func_floor=yes
19414 else
19415 gcc_cv_math_func_floor=no
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19421 $as_echo "$gcc_cv_math_func_floor" >&6; }
19422 if test $gcc_cv_math_func_floor = yes; then
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_FLOOR 1
19426 _ACEOF
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19434 $as_echo_n "checking for floorl... " >&6; }
19435 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19436 $as_echo_n "(cached) " >&6
19437 else
19438 if test x$gcc_no_link = xyes; then
19439 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 #ifdef HAVE_COMPLEX_H
19445 #include <complex.h>
19446 #endif
19447 #ifdef HAVE_MATH_H
19448 #include <math.h>
19449 #endif
19451 int (*ptr)() = (int (*)())floorl;
19454 main ()
19456 return 0;
19459 _ACEOF
19460 if ac_fn_c_try_link "$LINENO"; then :
19461 gcc_cv_math_func_floorl=yes
19462 else
19463 gcc_cv_math_func_floorl=no
19465 rm -f core conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19469 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19470 if test $gcc_cv_math_func_floorl = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_FLOORL 1
19474 _ACEOF
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19482 $as_echo_n "checking for fmodf... " >&6; }
19483 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19484 $as_echo_n "(cached) " >&6
19485 else
19486 if test x$gcc_no_link = xyes; then
19487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19492 #ifdef HAVE_COMPLEX_H
19493 #include <complex.h>
19494 #endif
19495 #ifdef HAVE_MATH_H
19496 #include <math.h>
19497 #endif
19499 int (*ptr)() = (int (*)())fmodf;
19502 main ()
19504 return 0;
19507 _ACEOF
19508 if ac_fn_c_try_link "$LINENO"; then :
19509 gcc_cv_math_func_fmodf=yes
19510 else
19511 gcc_cv_math_func_fmodf=no
19513 rm -f core conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19517 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19518 if test $gcc_cv_math_func_fmodf = yes; then
19520 cat >>confdefs.h <<_ACEOF
19521 #define HAVE_FMODF 1
19522 _ACEOF
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19530 $as_echo_n "checking for fmod... " >&6; }
19531 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19532 $as_echo_n "(cached) " >&6
19533 else
19534 if test x$gcc_no_link = xyes; then
19535 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19540 #ifdef HAVE_COMPLEX_H
19541 #include <complex.h>
19542 #endif
19543 #ifdef HAVE_MATH_H
19544 #include <math.h>
19545 #endif
19547 int (*ptr)() = (int (*)())fmod;
19550 main ()
19552 return 0;
19555 _ACEOF
19556 if ac_fn_c_try_link "$LINENO"; then :
19557 gcc_cv_math_func_fmod=yes
19558 else
19559 gcc_cv_math_func_fmod=no
19561 rm -f core conftest.err conftest.$ac_objext \
19562 conftest$ac_exeext conftest.$ac_ext
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19565 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19566 if test $gcc_cv_math_func_fmod = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_FMOD 1
19570 _ACEOF
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19578 $as_echo_n "checking for fmodl... " >&6; }
19579 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19580 $as_echo_n "(cached) " >&6
19581 else
19582 if test x$gcc_no_link = xyes; then
19583 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19588 #ifdef HAVE_COMPLEX_H
19589 #include <complex.h>
19590 #endif
19591 #ifdef HAVE_MATH_H
19592 #include <math.h>
19593 #endif
19595 int (*ptr)() = (int (*)())fmodl;
19598 main ()
19600 return 0;
19603 _ACEOF
19604 if ac_fn_c_try_link "$LINENO"; then :
19605 gcc_cv_math_func_fmodl=yes
19606 else
19607 gcc_cv_math_func_fmodl=no
19609 rm -f core conftest.err conftest.$ac_objext \
19610 conftest$ac_exeext conftest.$ac_ext
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19613 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19614 if test $gcc_cv_math_func_fmodl = yes; then
19616 cat >>confdefs.h <<_ACEOF
19617 #define HAVE_FMODL 1
19618 _ACEOF
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19626 $as_echo_n "checking for frexpf... " >&6; }
19627 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19628 $as_echo_n "(cached) " >&6
19629 else
19630 if test x$gcc_no_link = xyes; then
19631 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19636 #ifdef HAVE_COMPLEX_H
19637 #include <complex.h>
19638 #endif
19639 #ifdef HAVE_MATH_H
19640 #include <math.h>
19641 #endif
19643 int (*ptr)() = (int (*)())frexpf;
19646 main ()
19648 return 0;
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19653 gcc_cv_math_func_frexpf=yes
19654 else
19655 gcc_cv_math_func_frexpf=no
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19661 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19662 if test $gcc_cv_math_func_frexpf = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define HAVE_FREXPF 1
19666 _ACEOF
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19674 $as_echo_n "checking for frexp... " >&6; }
19675 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19676 $as_echo_n "(cached) " >&6
19677 else
19678 if test x$gcc_no_link = xyes; then
19679 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19684 #ifdef HAVE_COMPLEX_H
19685 #include <complex.h>
19686 #endif
19687 #ifdef HAVE_MATH_H
19688 #include <math.h>
19689 #endif
19691 int (*ptr)() = (int (*)())frexp;
19694 main ()
19696 return 0;
19699 _ACEOF
19700 if ac_fn_c_try_link "$LINENO"; then :
19701 gcc_cv_math_func_frexp=yes
19702 else
19703 gcc_cv_math_func_frexp=no
19705 rm -f core conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19709 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19710 if test $gcc_cv_math_func_frexp = yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define HAVE_FREXP 1
19714 _ACEOF
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19722 $as_echo_n "checking for frexpl... " >&6; }
19723 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19724 $as_echo_n "(cached) " >&6
19725 else
19726 if test x$gcc_no_link = xyes; then
19727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19732 #ifdef HAVE_COMPLEX_H
19733 #include <complex.h>
19734 #endif
19735 #ifdef HAVE_MATH_H
19736 #include <math.h>
19737 #endif
19739 int (*ptr)() = (int (*)())frexpl;
19742 main ()
19744 return 0;
19747 _ACEOF
19748 if ac_fn_c_try_link "$LINENO"; then :
19749 gcc_cv_math_func_frexpl=yes
19750 else
19751 gcc_cv_math_func_frexpl=no
19753 rm -f core conftest.err conftest.$ac_objext \
19754 conftest$ac_exeext conftest.$ac_ext
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19757 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19758 if test $gcc_cv_math_func_frexpl = yes; then
19760 cat >>confdefs.h <<_ACEOF
19761 #define HAVE_FREXPL 1
19762 _ACEOF
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19770 $as_echo_n "checking for hypotf... " >&6; }
19771 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19772 $as_echo_n "(cached) " >&6
19773 else
19774 if test x$gcc_no_link = xyes; then
19775 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19780 #ifdef HAVE_COMPLEX_H
19781 #include <complex.h>
19782 #endif
19783 #ifdef HAVE_MATH_H
19784 #include <math.h>
19785 #endif
19787 int (*ptr)() = (int (*)())hypotf;
19790 main ()
19792 return 0;
19795 _ACEOF
19796 if ac_fn_c_try_link "$LINENO"; then :
19797 gcc_cv_math_func_hypotf=yes
19798 else
19799 gcc_cv_math_func_hypotf=no
19801 rm -f core conftest.err conftest.$ac_objext \
19802 conftest$ac_exeext conftest.$ac_ext
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19805 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19806 if test $gcc_cv_math_func_hypotf = yes; then
19808 cat >>confdefs.h <<_ACEOF
19809 #define HAVE_HYPOTF 1
19810 _ACEOF
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19818 $as_echo_n "checking for hypot... " >&6; }
19819 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19820 $as_echo_n "(cached) " >&6
19821 else
19822 if test x$gcc_no_link = xyes; then
19823 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19828 #ifdef HAVE_COMPLEX_H
19829 #include <complex.h>
19830 #endif
19831 #ifdef HAVE_MATH_H
19832 #include <math.h>
19833 #endif
19835 int (*ptr)() = (int (*)())hypot;
19838 main ()
19840 return 0;
19843 _ACEOF
19844 if ac_fn_c_try_link "$LINENO"; then :
19845 gcc_cv_math_func_hypot=yes
19846 else
19847 gcc_cv_math_func_hypot=no
19849 rm -f core conftest.err conftest.$ac_objext \
19850 conftest$ac_exeext conftest.$ac_ext
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19853 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19854 if test $gcc_cv_math_func_hypot = yes; then
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_HYPOT 1
19858 _ACEOF
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19866 $as_echo_n "checking for hypotl... " >&6; }
19867 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19868 $as_echo_n "(cached) " >&6
19869 else
19870 if test x$gcc_no_link = xyes; then
19871 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19876 #ifdef HAVE_COMPLEX_H
19877 #include <complex.h>
19878 #endif
19879 #ifdef HAVE_MATH_H
19880 #include <math.h>
19881 #endif
19883 int (*ptr)() = (int (*)())hypotl;
19886 main ()
19888 return 0;
19891 _ACEOF
19892 if ac_fn_c_try_link "$LINENO"; then :
19893 gcc_cv_math_func_hypotl=yes
19894 else
19895 gcc_cv_math_func_hypotl=no
19897 rm -f core conftest.err conftest.$ac_objext \
19898 conftest$ac_exeext conftest.$ac_ext
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19901 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19902 if test $gcc_cv_math_func_hypotl = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_HYPOTL 1
19906 _ACEOF
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19914 $as_echo_n "checking for ldexpf... " >&6; }
19915 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19916 $as_echo_n "(cached) " >&6
19917 else
19918 if test x$gcc_no_link = xyes; then
19919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19924 #ifdef HAVE_COMPLEX_H
19925 #include <complex.h>
19926 #endif
19927 #ifdef HAVE_MATH_H
19928 #include <math.h>
19929 #endif
19931 int (*ptr)() = (int (*)())ldexpf;
19934 main ()
19936 return 0;
19939 _ACEOF
19940 if ac_fn_c_try_link "$LINENO"; then :
19941 gcc_cv_math_func_ldexpf=yes
19942 else
19943 gcc_cv_math_func_ldexpf=no
19945 rm -f core conftest.err conftest.$ac_objext \
19946 conftest$ac_exeext conftest.$ac_ext
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19949 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19950 if test $gcc_cv_math_func_ldexpf = yes; then
19952 cat >>confdefs.h <<_ACEOF
19953 #define HAVE_LDEXPF 1
19954 _ACEOF
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19962 $as_echo_n "checking for ldexp... " >&6; }
19963 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19964 $as_echo_n "(cached) " >&6
19965 else
19966 if test x$gcc_no_link = xyes; then
19967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19970 /* end confdefs.h. */
19972 #ifdef HAVE_COMPLEX_H
19973 #include <complex.h>
19974 #endif
19975 #ifdef HAVE_MATH_H
19976 #include <math.h>
19977 #endif
19979 int (*ptr)() = (int (*)())ldexp;
19982 main ()
19984 return 0;
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989 gcc_cv_math_func_ldexp=yes
19990 else
19991 gcc_cv_math_func_ldexp=no
19993 rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19997 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19998 if test $gcc_cv_math_func_ldexp = yes; then
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_LDEXP 1
20002 _ACEOF
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20010 $as_echo_n "checking for ldexpl... " >&6; }
20011 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20012 $as_echo_n "(cached) " >&6
20013 else
20014 if test x$gcc_no_link = xyes; then
20015 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20020 #ifdef HAVE_COMPLEX_H
20021 #include <complex.h>
20022 #endif
20023 #ifdef HAVE_MATH_H
20024 #include <math.h>
20025 #endif
20027 int (*ptr)() = (int (*)())ldexpl;
20030 main ()
20032 return 0;
20035 _ACEOF
20036 if ac_fn_c_try_link "$LINENO"; then :
20037 gcc_cv_math_func_ldexpl=yes
20038 else
20039 gcc_cv_math_func_ldexpl=no
20041 rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20045 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20046 if test $gcc_cv_math_func_ldexpl = yes; then
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_LDEXPL 1
20050 _ACEOF
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20058 $as_echo_n "checking for logf... " >&6; }
20059 if test "${gcc_cv_math_func_logf+set}" = set; then :
20060 $as_echo_n "(cached) " >&6
20061 else
20062 if test x$gcc_no_link = xyes; then
20063 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h. */
20068 #ifdef HAVE_COMPLEX_H
20069 #include <complex.h>
20070 #endif
20071 #ifdef HAVE_MATH_H
20072 #include <math.h>
20073 #endif
20075 int (*ptr)() = (int (*)())logf;
20078 main ()
20080 return 0;
20083 _ACEOF
20084 if ac_fn_c_try_link "$LINENO"; then :
20085 gcc_cv_math_func_logf=yes
20086 else
20087 gcc_cv_math_func_logf=no
20089 rm -f core conftest.err conftest.$ac_objext \
20090 conftest$ac_exeext conftest.$ac_ext
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20093 $as_echo "$gcc_cv_math_func_logf" >&6; }
20094 if test $gcc_cv_math_func_logf = yes; then
20096 cat >>confdefs.h <<_ACEOF
20097 #define HAVE_LOGF 1
20098 _ACEOF
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20106 $as_echo_n "checking for log... " >&6; }
20107 if test "${gcc_cv_math_func_log+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20109 else
20110 if test x$gcc_no_link = xyes; then
20111 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114 /* end confdefs.h. */
20116 #ifdef HAVE_COMPLEX_H
20117 #include <complex.h>
20118 #endif
20119 #ifdef HAVE_MATH_H
20120 #include <math.h>
20121 #endif
20123 int (*ptr)() = (int (*)())log;
20126 main ()
20128 return 0;
20131 _ACEOF
20132 if ac_fn_c_try_link "$LINENO"; then :
20133 gcc_cv_math_func_log=yes
20134 else
20135 gcc_cv_math_func_log=no
20137 rm -f core conftest.err conftest.$ac_objext \
20138 conftest$ac_exeext conftest.$ac_ext
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20141 $as_echo "$gcc_cv_math_func_log" >&6; }
20142 if test $gcc_cv_math_func_log = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_LOG 1
20146 _ACEOF
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20154 $as_echo_n "checking for logl... " >&6; }
20155 if test "${gcc_cv_math_func_logl+set}" = set; then :
20156 $as_echo_n "(cached) " >&6
20157 else
20158 if test x$gcc_no_link = xyes; then
20159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20164 #ifdef HAVE_COMPLEX_H
20165 #include <complex.h>
20166 #endif
20167 #ifdef HAVE_MATH_H
20168 #include <math.h>
20169 #endif
20171 int (*ptr)() = (int (*)())logl;
20174 main ()
20176 return 0;
20179 _ACEOF
20180 if ac_fn_c_try_link "$LINENO"; then :
20181 gcc_cv_math_func_logl=yes
20182 else
20183 gcc_cv_math_func_logl=no
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20189 $as_echo "$gcc_cv_math_func_logl" >&6; }
20190 if test $gcc_cv_math_func_logl = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define HAVE_LOGL 1
20194 _ACEOF
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20202 $as_echo_n "checking for clogf... " >&6; }
20203 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20204 $as_echo_n "(cached) " >&6
20205 else
20206 if test x$gcc_no_link = xyes; then
20207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20212 #ifdef HAVE_COMPLEX_H
20213 #include <complex.h>
20214 #endif
20215 #ifdef HAVE_MATH_H
20216 #include <math.h>
20217 #endif
20219 int (*ptr)() = (int (*)())clogf;
20222 main ()
20224 return 0;
20227 _ACEOF
20228 if ac_fn_c_try_link "$LINENO"; then :
20229 gcc_cv_math_func_clogf=yes
20230 else
20231 gcc_cv_math_func_clogf=no
20233 rm -f core conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext conftest.$ac_ext
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20237 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20238 if test $gcc_cv_math_func_clogf = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define HAVE_CLOGF 1
20242 _ACEOF
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20250 $as_echo_n "checking for clog... " >&6; }
20251 if test "${gcc_cv_math_func_clog+set}" = set; then :
20252 $as_echo_n "(cached) " >&6
20253 else
20254 if test x$gcc_no_link = xyes; then
20255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20260 #ifdef HAVE_COMPLEX_H
20261 #include <complex.h>
20262 #endif
20263 #ifdef HAVE_MATH_H
20264 #include <math.h>
20265 #endif
20267 int (*ptr)() = (int (*)())clog;
20270 main ()
20272 return 0;
20275 _ACEOF
20276 if ac_fn_c_try_link "$LINENO"; then :
20277 gcc_cv_math_func_clog=yes
20278 else
20279 gcc_cv_math_func_clog=no
20281 rm -f core conftest.err conftest.$ac_objext \
20282 conftest$ac_exeext conftest.$ac_ext
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20285 $as_echo "$gcc_cv_math_func_clog" >&6; }
20286 if test $gcc_cv_math_func_clog = yes; then
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_CLOG 1
20290 _ACEOF
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20298 $as_echo_n "checking for clogl... " >&6; }
20299 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20300 $as_echo_n "(cached) " >&6
20301 else
20302 if test x$gcc_no_link = xyes; then
20303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h. */
20308 #ifdef HAVE_COMPLEX_H
20309 #include <complex.h>
20310 #endif
20311 #ifdef HAVE_MATH_H
20312 #include <math.h>
20313 #endif
20315 int (*ptr)() = (int (*)())clogl;
20318 main ()
20320 return 0;
20323 _ACEOF
20324 if ac_fn_c_try_link "$LINENO"; then :
20325 gcc_cv_math_func_clogl=yes
20326 else
20327 gcc_cv_math_func_clogl=no
20329 rm -f core conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20333 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20334 if test $gcc_cv_math_func_clogl = yes; then
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_CLOGL 1
20338 _ACEOF
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20346 $as_echo_n "checking for log10f... " >&6; }
20347 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20349 else
20350 if test x$gcc_no_link = xyes; then
20351 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20356 #ifdef HAVE_COMPLEX_H
20357 #include <complex.h>
20358 #endif
20359 #ifdef HAVE_MATH_H
20360 #include <math.h>
20361 #endif
20363 int (*ptr)() = (int (*)())log10f;
20366 main ()
20368 return 0;
20371 _ACEOF
20372 if ac_fn_c_try_link "$LINENO"; then :
20373 gcc_cv_math_func_log10f=yes
20374 else
20375 gcc_cv_math_func_log10f=no
20377 rm -f core conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext conftest.$ac_ext
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20381 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20382 if test $gcc_cv_math_func_log10f = yes; then
20384 cat >>confdefs.h <<_ACEOF
20385 #define HAVE_LOG10F 1
20386 _ACEOF
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20394 $as_echo_n "checking for log10... " >&6; }
20395 if test "${gcc_cv_math_func_log10+set}" = set; then :
20396 $as_echo_n "(cached) " >&6
20397 else
20398 if test x$gcc_no_link = xyes; then
20399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h. */
20404 #ifdef HAVE_COMPLEX_H
20405 #include <complex.h>
20406 #endif
20407 #ifdef HAVE_MATH_H
20408 #include <math.h>
20409 #endif
20411 int (*ptr)() = (int (*)())log10;
20414 main ()
20416 return 0;
20419 _ACEOF
20420 if ac_fn_c_try_link "$LINENO"; then :
20421 gcc_cv_math_func_log10=yes
20422 else
20423 gcc_cv_math_func_log10=no
20425 rm -f core conftest.err conftest.$ac_objext \
20426 conftest$ac_exeext conftest.$ac_ext
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20429 $as_echo "$gcc_cv_math_func_log10" >&6; }
20430 if test $gcc_cv_math_func_log10 = yes; then
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_LOG10 1
20434 _ACEOF
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20442 $as_echo_n "checking for log10l... " >&6; }
20443 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20444 $as_echo_n "(cached) " >&6
20445 else
20446 if test x$gcc_no_link = xyes; then
20447 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20452 #ifdef HAVE_COMPLEX_H
20453 #include <complex.h>
20454 #endif
20455 #ifdef HAVE_MATH_H
20456 #include <math.h>
20457 #endif
20459 int (*ptr)() = (int (*)())log10l;
20462 main ()
20464 return 0;
20467 _ACEOF
20468 if ac_fn_c_try_link "$LINENO"; then :
20469 gcc_cv_math_func_log10l=yes
20470 else
20471 gcc_cv_math_func_log10l=no
20473 rm -f core conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20477 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20478 if test $gcc_cv_math_func_log10l = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_LOG10L 1
20482 _ACEOF
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20490 $as_echo_n "checking for clog10f... " >&6; }
20491 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20493 else
20494 if test x$gcc_no_link = xyes; then
20495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20500 #ifdef HAVE_COMPLEX_H
20501 #include <complex.h>
20502 #endif
20503 #ifdef HAVE_MATH_H
20504 #include <math.h>
20505 #endif
20507 int (*ptr)() = (int (*)())clog10f;
20510 main ()
20512 return 0;
20515 _ACEOF
20516 if ac_fn_c_try_link "$LINENO"; then :
20517 gcc_cv_math_func_clog10f=yes
20518 else
20519 gcc_cv_math_func_clog10f=no
20521 rm -f core conftest.err conftest.$ac_objext \
20522 conftest$ac_exeext conftest.$ac_ext
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20525 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20526 if test $gcc_cv_math_func_clog10f = yes; then
20528 cat >>confdefs.h <<_ACEOF
20529 #define HAVE_CLOG10F 1
20530 _ACEOF
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20538 $as_echo_n "checking for clog10... " >&6; }
20539 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20540 $as_echo_n "(cached) " >&6
20541 else
20542 if test x$gcc_no_link = xyes; then
20543 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h. */
20548 #ifdef HAVE_COMPLEX_H
20549 #include <complex.h>
20550 #endif
20551 #ifdef HAVE_MATH_H
20552 #include <math.h>
20553 #endif
20555 int (*ptr)() = (int (*)())clog10;
20558 main ()
20560 return 0;
20563 _ACEOF
20564 if ac_fn_c_try_link "$LINENO"; then :
20565 gcc_cv_math_func_clog10=yes
20566 else
20567 gcc_cv_math_func_clog10=no
20569 rm -f core conftest.err conftest.$ac_objext \
20570 conftest$ac_exeext conftest.$ac_ext
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20573 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20574 if test $gcc_cv_math_func_clog10 = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_CLOG10 1
20578 _ACEOF
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20586 $as_echo_n "checking for clog10l... " >&6; }
20587 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20588 $as_echo_n "(cached) " >&6
20589 else
20590 if test x$gcc_no_link = xyes; then
20591 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594 /* end confdefs.h. */
20596 #ifdef HAVE_COMPLEX_H
20597 #include <complex.h>
20598 #endif
20599 #ifdef HAVE_MATH_H
20600 #include <math.h>
20601 #endif
20603 int (*ptr)() = (int (*)())clog10l;
20606 main ()
20608 return 0;
20611 _ACEOF
20612 if ac_fn_c_try_link "$LINENO"; then :
20613 gcc_cv_math_func_clog10l=yes
20614 else
20615 gcc_cv_math_func_clog10l=no
20617 rm -f core conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20621 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20622 if test $gcc_cv_math_func_clog10l = yes; then
20624 cat >>confdefs.h <<_ACEOF
20625 #define HAVE_CLOG10L 1
20626 _ACEOF
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20634 $as_echo_n "checking for nextafterf... " >&6; }
20635 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20636 $as_echo_n "(cached) " >&6
20637 else
20638 if test x$gcc_no_link = xyes; then
20639 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h. */
20644 #ifdef HAVE_COMPLEX_H
20645 #include <complex.h>
20646 #endif
20647 #ifdef HAVE_MATH_H
20648 #include <math.h>
20649 #endif
20651 int (*ptr)() = (int (*)())nextafterf;
20654 main ()
20656 return 0;
20659 _ACEOF
20660 if ac_fn_c_try_link "$LINENO"; then :
20661 gcc_cv_math_func_nextafterf=yes
20662 else
20663 gcc_cv_math_func_nextafterf=no
20665 rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20669 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20670 if test $gcc_cv_math_func_nextafterf = yes; then
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_NEXTAFTERF 1
20674 _ACEOF
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20682 $as_echo_n "checking for nextafter... " >&6; }
20683 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20684 $as_echo_n "(cached) " >&6
20685 else
20686 if test x$gcc_no_link = xyes; then
20687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h. */
20692 #ifdef HAVE_COMPLEX_H
20693 #include <complex.h>
20694 #endif
20695 #ifdef HAVE_MATH_H
20696 #include <math.h>
20697 #endif
20699 int (*ptr)() = (int (*)())nextafter;
20702 main ()
20704 return 0;
20707 _ACEOF
20708 if ac_fn_c_try_link "$LINENO"; then :
20709 gcc_cv_math_func_nextafter=yes
20710 else
20711 gcc_cv_math_func_nextafter=no
20713 rm -f core conftest.err conftest.$ac_objext \
20714 conftest$ac_exeext conftest.$ac_ext
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20717 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20718 if test $gcc_cv_math_func_nextafter = yes; then
20720 cat >>confdefs.h <<_ACEOF
20721 #define HAVE_NEXTAFTER 1
20722 _ACEOF
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20730 $as_echo_n "checking for nextafterl... " >&6; }
20731 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20732 $as_echo_n "(cached) " >&6
20733 else
20734 if test x$gcc_no_link = xyes; then
20735 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20740 #ifdef HAVE_COMPLEX_H
20741 #include <complex.h>
20742 #endif
20743 #ifdef HAVE_MATH_H
20744 #include <math.h>
20745 #endif
20747 int (*ptr)() = (int (*)())nextafterl;
20750 main ()
20752 return 0;
20755 _ACEOF
20756 if ac_fn_c_try_link "$LINENO"; then :
20757 gcc_cv_math_func_nextafterl=yes
20758 else
20759 gcc_cv_math_func_nextafterl=no
20761 rm -f core conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext conftest.$ac_ext
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20765 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20766 if test $gcc_cv_math_func_nextafterl = yes; then
20768 cat >>confdefs.h <<_ACEOF
20769 #define HAVE_NEXTAFTERL 1
20770 _ACEOF
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20778 $as_echo_n "checking for powf... " >&6; }
20779 if test "${gcc_cv_math_func_powf+set}" = set; then :
20780 $as_echo_n "(cached) " >&6
20781 else
20782 if test x$gcc_no_link = xyes; then
20783 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20788 #ifdef HAVE_COMPLEX_H
20789 #include <complex.h>
20790 #endif
20791 #ifdef HAVE_MATH_H
20792 #include <math.h>
20793 #endif
20795 int (*ptr)() = (int (*)())powf;
20798 main ()
20800 return 0;
20803 _ACEOF
20804 if ac_fn_c_try_link "$LINENO"; then :
20805 gcc_cv_math_func_powf=yes
20806 else
20807 gcc_cv_math_func_powf=no
20809 rm -f core conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20813 $as_echo "$gcc_cv_math_func_powf" >&6; }
20814 if test $gcc_cv_math_func_powf = yes; then
20816 cat >>confdefs.h <<_ACEOF
20817 #define HAVE_POWF 1
20818 _ACEOF
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20826 $as_echo_n "checking for pow... " >&6; }
20827 if test "${gcc_cv_math_func_pow+set}" = set; then :
20828 $as_echo_n "(cached) " >&6
20829 else
20830 if test x$gcc_no_link = xyes; then
20831 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h. */
20836 #ifdef HAVE_COMPLEX_H
20837 #include <complex.h>
20838 #endif
20839 #ifdef HAVE_MATH_H
20840 #include <math.h>
20841 #endif
20843 int (*ptr)() = (int (*)())pow;
20846 main ()
20848 return 0;
20851 _ACEOF
20852 if ac_fn_c_try_link "$LINENO"; then :
20853 gcc_cv_math_func_pow=yes
20854 else
20855 gcc_cv_math_func_pow=no
20857 rm -f core conftest.err conftest.$ac_objext \
20858 conftest$ac_exeext conftest.$ac_ext
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20861 $as_echo "$gcc_cv_math_func_pow" >&6; }
20862 if test $gcc_cv_math_func_pow = yes; then
20864 cat >>confdefs.h <<_ACEOF
20865 #define HAVE_POW 1
20866 _ACEOF
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20874 $as_echo_n "checking for powl... " >&6; }
20875 if test "${gcc_cv_math_func_powl+set}" = set; then :
20876 $as_echo_n "(cached) " >&6
20877 else
20878 if test x$gcc_no_link = xyes; then
20879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20882 /* end confdefs.h. */
20884 #ifdef HAVE_COMPLEX_H
20885 #include <complex.h>
20886 #endif
20887 #ifdef HAVE_MATH_H
20888 #include <math.h>
20889 #endif
20891 int (*ptr)() = (int (*)())powl;
20894 main ()
20896 return 0;
20899 _ACEOF
20900 if ac_fn_c_try_link "$LINENO"; then :
20901 gcc_cv_math_func_powl=yes
20902 else
20903 gcc_cv_math_func_powl=no
20905 rm -f core conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20909 $as_echo "$gcc_cv_math_func_powl" >&6; }
20910 if test $gcc_cv_math_func_powl = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 #define HAVE_POWL 1
20914 _ACEOF
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20922 $as_echo_n "checking for cpowf... " >&6; }
20923 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20924 $as_echo_n "(cached) " >&6
20925 else
20926 if test x$gcc_no_link = xyes; then
20927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20932 #ifdef HAVE_COMPLEX_H
20933 #include <complex.h>
20934 #endif
20935 #ifdef HAVE_MATH_H
20936 #include <math.h>
20937 #endif
20939 int (*ptr)() = (int (*)())cpowf;
20942 main ()
20944 return 0;
20947 _ACEOF
20948 if ac_fn_c_try_link "$LINENO"; then :
20949 gcc_cv_math_func_cpowf=yes
20950 else
20951 gcc_cv_math_func_cpowf=no
20953 rm -f core conftest.err conftest.$ac_objext \
20954 conftest$ac_exeext conftest.$ac_ext
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20957 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20958 if test $gcc_cv_math_func_cpowf = yes; then
20960 cat >>confdefs.h <<_ACEOF
20961 #define HAVE_CPOWF 1
20962 _ACEOF
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20970 $as_echo_n "checking for cpow... " >&6; }
20971 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 if test x$gcc_no_link = xyes; then
20975 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20978 /* end confdefs.h. */
20980 #ifdef HAVE_COMPLEX_H
20981 #include <complex.h>
20982 #endif
20983 #ifdef HAVE_MATH_H
20984 #include <math.h>
20985 #endif
20987 int (*ptr)() = (int (*)())cpow;
20990 main ()
20992 return 0;
20995 _ACEOF
20996 if ac_fn_c_try_link "$LINENO"; then :
20997 gcc_cv_math_func_cpow=yes
20998 else
20999 gcc_cv_math_func_cpow=no
21001 rm -f core conftest.err conftest.$ac_objext \
21002 conftest$ac_exeext conftest.$ac_ext
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21005 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21006 if test $gcc_cv_math_func_cpow = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_CPOW 1
21010 _ACEOF
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21018 $as_echo_n "checking for cpowl... " >&6; }
21019 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21020 $as_echo_n "(cached) " >&6
21021 else
21022 if test x$gcc_no_link = xyes; then
21023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 #ifdef HAVE_COMPLEX_H
21029 #include <complex.h>
21030 #endif
21031 #ifdef HAVE_MATH_H
21032 #include <math.h>
21033 #endif
21035 int (*ptr)() = (int (*)())cpowl;
21038 main ()
21040 return 0;
21043 _ACEOF
21044 if ac_fn_c_try_link "$LINENO"; then :
21045 gcc_cv_math_func_cpowl=yes
21046 else
21047 gcc_cv_math_func_cpowl=no
21049 rm -f core conftest.err conftest.$ac_objext \
21050 conftest$ac_exeext conftest.$ac_ext
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21053 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21054 if test $gcc_cv_math_func_cpowl = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_CPOWL 1
21058 _ACEOF
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21066 $as_echo_n "checking for roundf... " >&6; }
21067 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21068 $as_echo_n "(cached) " >&6
21069 else
21070 if test x$gcc_no_link = xyes; then
21071 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21076 #ifdef HAVE_COMPLEX_H
21077 #include <complex.h>
21078 #endif
21079 #ifdef HAVE_MATH_H
21080 #include <math.h>
21081 #endif
21083 int (*ptr)() = (int (*)())roundf;
21086 main ()
21088 return 0;
21091 _ACEOF
21092 if ac_fn_c_try_link "$LINENO"; then :
21093 gcc_cv_math_func_roundf=yes
21094 else
21095 gcc_cv_math_func_roundf=no
21097 rm -f core conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21101 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21102 if test $gcc_cv_math_func_roundf = yes; then
21104 cat >>confdefs.h <<_ACEOF
21105 #define HAVE_ROUNDF 1
21106 _ACEOF
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21114 $as_echo_n "checking for round... " >&6; }
21115 if test "${gcc_cv_math_func_round+set}" = set; then :
21116 $as_echo_n "(cached) " >&6
21117 else
21118 if test x$gcc_no_link = xyes; then
21119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122 /* end confdefs.h. */
21124 #ifdef HAVE_COMPLEX_H
21125 #include <complex.h>
21126 #endif
21127 #ifdef HAVE_MATH_H
21128 #include <math.h>
21129 #endif
21131 int (*ptr)() = (int (*)())round;
21134 main ()
21136 return 0;
21139 _ACEOF
21140 if ac_fn_c_try_link "$LINENO"; then :
21141 gcc_cv_math_func_round=yes
21142 else
21143 gcc_cv_math_func_round=no
21145 rm -f core conftest.err conftest.$ac_objext \
21146 conftest$ac_exeext conftest.$ac_ext
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21149 $as_echo "$gcc_cv_math_func_round" >&6; }
21150 if test $gcc_cv_math_func_round = yes; then
21152 cat >>confdefs.h <<_ACEOF
21153 #define HAVE_ROUND 1
21154 _ACEOF
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21162 $as_echo_n "checking for roundl... " >&6; }
21163 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21165 else
21166 if test x$gcc_no_link = xyes; then
21167 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21172 #ifdef HAVE_COMPLEX_H
21173 #include <complex.h>
21174 #endif
21175 #ifdef HAVE_MATH_H
21176 #include <math.h>
21177 #endif
21179 int (*ptr)() = (int (*)())roundl;
21182 main ()
21184 return 0;
21187 _ACEOF
21188 if ac_fn_c_try_link "$LINENO"; then :
21189 gcc_cv_math_func_roundl=yes
21190 else
21191 gcc_cv_math_func_roundl=no
21193 rm -f core conftest.err conftest.$ac_objext \
21194 conftest$ac_exeext conftest.$ac_ext
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21197 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21198 if test $gcc_cv_math_func_roundl = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201 #define HAVE_ROUNDL 1
21202 _ACEOF
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21210 $as_echo_n "checking for lroundf... " >&6; }
21211 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21212 $as_echo_n "(cached) " >&6
21213 else
21214 if test x$gcc_no_link = xyes; then
21215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218 /* end confdefs.h. */
21220 #ifdef HAVE_COMPLEX_H
21221 #include <complex.h>
21222 #endif
21223 #ifdef HAVE_MATH_H
21224 #include <math.h>
21225 #endif
21227 int (*ptr)() = (int (*)())lroundf;
21230 main ()
21232 return 0;
21235 _ACEOF
21236 if ac_fn_c_try_link "$LINENO"; then :
21237 gcc_cv_math_func_lroundf=yes
21238 else
21239 gcc_cv_math_func_lroundf=no
21241 rm -f core conftest.err conftest.$ac_objext \
21242 conftest$ac_exeext conftest.$ac_ext
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21245 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21246 if test $gcc_cv_math_func_lroundf = yes; then
21248 cat >>confdefs.h <<_ACEOF
21249 #define HAVE_LROUNDF 1
21250 _ACEOF
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21258 $as_echo_n "checking for lround... " >&6; }
21259 if test "${gcc_cv_math_func_lround+set}" = set; then :
21260 $as_echo_n "(cached) " >&6
21261 else
21262 if test x$gcc_no_link = xyes; then
21263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21268 #ifdef HAVE_COMPLEX_H
21269 #include <complex.h>
21270 #endif
21271 #ifdef HAVE_MATH_H
21272 #include <math.h>
21273 #endif
21275 int (*ptr)() = (int (*)())lround;
21278 main ()
21280 return 0;
21283 _ACEOF
21284 if ac_fn_c_try_link "$LINENO"; then :
21285 gcc_cv_math_func_lround=yes
21286 else
21287 gcc_cv_math_func_lround=no
21289 rm -f core conftest.err conftest.$ac_objext \
21290 conftest$ac_exeext conftest.$ac_ext
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21293 $as_echo "$gcc_cv_math_func_lround" >&6; }
21294 if test $gcc_cv_math_func_lround = yes; then
21296 cat >>confdefs.h <<_ACEOF
21297 #define HAVE_LROUND 1
21298 _ACEOF
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21306 $as_echo_n "checking for lroundl... " >&6; }
21307 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21308 $as_echo_n "(cached) " >&6
21309 else
21310 if test x$gcc_no_link = xyes; then
21311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21314 /* end confdefs.h. */
21316 #ifdef HAVE_COMPLEX_H
21317 #include <complex.h>
21318 #endif
21319 #ifdef HAVE_MATH_H
21320 #include <math.h>
21321 #endif
21323 int (*ptr)() = (int (*)())lroundl;
21326 main ()
21328 return 0;
21331 _ACEOF
21332 if ac_fn_c_try_link "$LINENO"; then :
21333 gcc_cv_math_func_lroundl=yes
21334 else
21335 gcc_cv_math_func_lroundl=no
21337 rm -f core conftest.err conftest.$ac_objext \
21338 conftest$ac_exeext conftest.$ac_ext
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21341 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21342 if test $gcc_cv_math_func_lroundl = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define HAVE_LROUNDL 1
21346 _ACEOF
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21354 $as_echo_n "checking for llroundf... " >&6; }
21355 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21356 $as_echo_n "(cached) " >&6
21357 else
21358 if test x$gcc_no_link = xyes; then
21359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h. */
21364 #ifdef HAVE_COMPLEX_H
21365 #include <complex.h>
21366 #endif
21367 #ifdef HAVE_MATH_H
21368 #include <math.h>
21369 #endif
21371 int (*ptr)() = (int (*)())llroundf;
21374 main ()
21376 return 0;
21379 _ACEOF
21380 if ac_fn_c_try_link "$LINENO"; then :
21381 gcc_cv_math_func_llroundf=yes
21382 else
21383 gcc_cv_math_func_llroundf=no
21385 rm -f core conftest.err conftest.$ac_objext \
21386 conftest$ac_exeext conftest.$ac_ext
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21389 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21390 if test $gcc_cv_math_func_llroundf = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define HAVE_LLROUNDF 1
21394 _ACEOF
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21402 $as_echo_n "checking for llround... " >&6; }
21403 if test "${gcc_cv_math_func_llround+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 if test x$gcc_no_link = xyes; then
21407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h. */
21412 #ifdef HAVE_COMPLEX_H
21413 #include <complex.h>
21414 #endif
21415 #ifdef HAVE_MATH_H
21416 #include <math.h>
21417 #endif
21419 int (*ptr)() = (int (*)())llround;
21422 main ()
21424 return 0;
21427 _ACEOF
21428 if ac_fn_c_try_link "$LINENO"; then :
21429 gcc_cv_math_func_llround=yes
21430 else
21431 gcc_cv_math_func_llround=no
21433 rm -f core conftest.err conftest.$ac_objext \
21434 conftest$ac_exeext conftest.$ac_ext
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21437 $as_echo "$gcc_cv_math_func_llround" >&6; }
21438 if test $gcc_cv_math_func_llround = yes; then
21440 cat >>confdefs.h <<_ACEOF
21441 #define HAVE_LLROUND 1
21442 _ACEOF
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21450 $as_echo_n "checking for llroundl... " >&6; }
21451 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21452 $as_echo_n "(cached) " >&6
21453 else
21454 if test x$gcc_no_link = xyes; then
21455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458 /* end confdefs.h. */
21460 #ifdef HAVE_COMPLEX_H
21461 #include <complex.h>
21462 #endif
21463 #ifdef HAVE_MATH_H
21464 #include <math.h>
21465 #endif
21467 int (*ptr)() = (int (*)())llroundl;
21470 main ()
21472 return 0;
21475 _ACEOF
21476 if ac_fn_c_try_link "$LINENO"; then :
21477 gcc_cv_math_func_llroundl=yes
21478 else
21479 gcc_cv_math_func_llroundl=no
21481 rm -f core conftest.err conftest.$ac_objext \
21482 conftest$ac_exeext conftest.$ac_ext
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21485 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21486 if test $gcc_cv_math_func_llroundl = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define HAVE_LLROUNDL 1
21490 _ACEOF
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21498 $as_echo_n "checking for scalbnf... " >&6; }
21499 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21500 $as_echo_n "(cached) " >&6
21501 else
21502 if test x$gcc_no_link = xyes; then
21503 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21508 #ifdef HAVE_COMPLEX_H
21509 #include <complex.h>
21510 #endif
21511 #ifdef HAVE_MATH_H
21512 #include <math.h>
21513 #endif
21515 int (*ptr)() = (int (*)())scalbnf;
21518 main ()
21520 return 0;
21523 _ACEOF
21524 if ac_fn_c_try_link "$LINENO"; then :
21525 gcc_cv_math_func_scalbnf=yes
21526 else
21527 gcc_cv_math_func_scalbnf=no
21529 rm -f core conftest.err conftest.$ac_objext \
21530 conftest$ac_exeext conftest.$ac_ext
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21533 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21534 if test $gcc_cv_math_func_scalbnf = yes; then
21536 cat >>confdefs.h <<_ACEOF
21537 #define HAVE_SCALBNF 1
21538 _ACEOF
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21546 $as_echo_n "checking for scalbn... " >&6; }
21547 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21549 else
21550 if test x$gcc_no_link = xyes; then
21551 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h. */
21556 #ifdef HAVE_COMPLEX_H
21557 #include <complex.h>
21558 #endif
21559 #ifdef HAVE_MATH_H
21560 #include <math.h>
21561 #endif
21563 int (*ptr)() = (int (*)())scalbn;
21566 main ()
21568 return 0;
21571 _ACEOF
21572 if ac_fn_c_try_link "$LINENO"; then :
21573 gcc_cv_math_func_scalbn=yes
21574 else
21575 gcc_cv_math_func_scalbn=no
21577 rm -f core conftest.err conftest.$ac_objext \
21578 conftest$ac_exeext conftest.$ac_ext
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21581 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21582 if test $gcc_cv_math_func_scalbn = yes; then
21584 cat >>confdefs.h <<_ACEOF
21585 #define HAVE_SCALBN 1
21586 _ACEOF
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21594 $as_echo_n "checking for scalbnl... " >&6; }
21595 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21596 $as_echo_n "(cached) " >&6
21597 else
21598 if test x$gcc_no_link = xyes; then
21599 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h. */
21604 #ifdef HAVE_COMPLEX_H
21605 #include <complex.h>
21606 #endif
21607 #ifdef HAVE_MATH_H
21608 #include <math.h>
21609 #endif
21611 int (*ptr)() = (int (*)())scalbnl;
21614 main ()
21616 return 0;
21619 _ACEOF
21620 if ac_fn_c_try_link "$LINENO"; then :
21621 gcc_cv_math_func_scalbnl=yes
21622 else
21623 gcc_cv_math_func_scalbnl=no
21625 rm -f core conftest.err conftest.$ac_objext \
21626 conftest$ac_exeext conftest.$ac_ext
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21629 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21630 if test $gcc_cv_math_func_scalbnl = yes; then
21632 cat >>confdefs.h <<_ACEOF
21633 #define HAVE_SCALBNL 1
21634 _ACEOF
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21642 $as_echo_n "checking for sinf... " >&6; }
21643 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21644 $as_echo_n "(cached) " >&6
21645 else
21646 if test x$gcc_no_link = xyes; then
21647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21652 #ifdef HAVE_COMPLEX_H
21653 #include <complex.h>
21654 #endif
21655 #ifdef HAVE_MATH_H
21656 #include <math.h>
21657 #endif
21659 int (*ptr)() = (int (*)())sinf;
21662 main ()
21664 return 0;
21667 _ACEOF
21668 if ac_fn_c_try_link "$LINENO"; then :
21669 gcc_cv_math_func_sinf=yes
21670 else
21671 gcc_cv_math_func_sinf=no
21673 rm -f core conftest.err conftest.$ac_objext \
21674 conftest$ac_exeext conftest.$ac_ext
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21677 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21678 if test $gcc_cv_math_func_sinf = yes; then
21680 cat >>confdefs.h <<_ACEOF
21681 #define HAVE_SINF 1
21682 _ACEOF
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21690 $as_echo_n "checking for sin... " >&6; }
21691 if test "${gcc_cv_math_func_sin+set}" = set; then :
21692 $as_echo_n "(cached) " >&6
21693 else
21694 if test x$gcc_no_link = xyes; then
21695 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21698 /* end confdefs.h. */
21700 #ifdef HAVE_COMPLEX_H
21701 #include <complex.h>
21702 #endif
21703 #ifdef HAVE_MATH_H
21704 #include <math.h>
21705 #endif
21707 int (*ptr)() = (int (*)())sin;
21710 main ()
21712 return 0;
21715 _ACEOF
21716 if ac_fn_c_try_link "$LINENO"; then :
21717 gcc_cv_math_func_sin=yes
21718 else
21719 gcc_cv_math_func_sin=no
21721 rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext conftest.$ac_ext
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21725 $as_echo "$gcc_cv_math_func_sin" >&6; }
21726 if test $gcc_cv_math_func_sin = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_SIN 1
21730 _ACEOF
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21738 $as_echo_n "checking for sinl... " >&6; }
21739 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 if test x$gcc_no_link = xyes; then
21743 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21748 #ifdef HAVE_COMPLEX_H
21749 #include <complex.h>
21750 #endif
21751 #ifdef HAVE_MATH_H
21752 #include <math.h>
21753 #endif
21755 int (*ptr)() = (int (*)())sinl;
21758 main ()
21760 return 0;
21763 _ACEOF
21764 if ac_fn_c_try_link "$LINENO"; then :
21765 gcc_cv_math_func_sinl=yes
21766 else
21767 gcc_cv_math_func_sinl=no
21769 rm -f core conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21773 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21774 if test $gcc_cv_math_func_sinl = yes; then
21776 cat >>confdefs.h <<_ACEOF
21777 #define HAVE_SINL 1
21778 _ACEOF
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21786 $as_echo_n "checking for csinf... " >&6; }
21787 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21788 $as_echo_n "(cached) " >&6
21789 else
21790 if test x$gcc_no_link = xyes; then
21791 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 #ifdef HAVE_COMPLEX_H
21797 #include <complex.h>
21798 #endif
21799 #ifdef HAVE_MATH_H
21800 #include <math.h>
21801 #endif
21803 int (*ptr)() = (int (*)())csinf;
21806 main ()
21808 return 0;
21811 _ACEOF
21812 if ac_fn_c_try_link "$LINENO"; then :
21813 gcc_cv_math_func_csinf=yes
21814 else
21815 gcc_cv_math_func_csinf=no
21817 rm -f core conftest.err conftest.$ac_objext \
21818 conftest$ac_exeext conftest.$ac_ext
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21821 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21822 if test $gcc_cv_math_func_csinf = yes; then
21824 cat >>confdefs.h <<_ACEOF
21825 #define HAVE_CSINF 1
21826 _ACEOF
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21834 $as_echo_n "checking for csin... " >&6; }
21835 if test "${gcc_cv_math_func_csin+set}" = set; then :
21836 $as_echo_n "(cached) " >&6
21837 else
21838 if test x$gcc_no_link = xyes; then
21839 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21844 #ifdef HAVE_COMPLEX_H
21845 #include <complex.h>
21846 #endif
21847 #ifdef HAVE_MATH_H
21848 #include <math.h>
21849 #endif
21851 int (*ptr)() = (int (*)())csin;
21854 main ()
21856 return 0;
21859 _ACEOF
21860 if ac_fn_c_try_link "$LINENO"; then :
21861 gcc_cv_math_func_csin=yes
21862 else
21863 gcc_cv_math_func_csin=no
21865 rm -f core conftest.err conftest.$ac_objext \
21866 conftest$ac_exeext conftest.$ac_ext
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21869 $as_echo "$gcc_cv_math_func_csin" >&6; }
21870 if test $gcc_cv_math_func_csin = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873 #define HAVE_CSIN 1
21874 _ACEOF
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21882 $as_echo_n "checking for csinl... " >&6; }
21883 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21885 else
21886 if test x$gcc_no_link = xyes; then
21887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21892 #ifdef HAVE_COMPLEX_H
21893 #include <complex.h>
21894 #endif
21895 #ifdef HAVE_MATH_H
21896 #include <math.h>
21897 #endif
21899 int (*ptr)() = (int (*)())csinl;
21902 main ()
21904 return 0;
21907 _ACEOF
21908 if ac_fn_c_try_link "$LINENO"; then :
21909 gcc_cv_math_func_csinl=yes
21910 else
21911 gcc_cv_math_func_csinl=no
21913 rm -f core conftest.err conftest.$ac_objext \
21914 conftest$ac_exeext conftest.$ac_ext
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21917 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21918 if test $gcc_cv_math_func_csinl = yes; then
21920 cat >>confdefs.h <<_ACEOF
21921 #define HAVE_CSINL 1
21922 _ACEOF
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21930 $as_echo_n "checking for sinhf... " >&6; }
21931 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21933 else
21934 if test x$gcc_no_link = xyes; then
21935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21940 #ifdef HAVE_COMPLEX_H
21941 #include <complex.h>
21942 #endif
21943 #ifdef HAVE_MATH_H
21944 #include <math.h>
21945 #endif
21947 int (*ptr)() = (int (*)())sinhf;
21950 main ()
21952 return 0;
21955 _ACEOF
21956 if ac_fn_c_try_link "$LINENO"; then :
21957 gcc_cv_math_func_sinhf=yes
21958 else
21959 gcc_cv_math_func_sinhf=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21965 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21966 if test $gcc_cv_math_func_sinhf = yes; then
21968 cat >>confdefs.h <<_ACEOF
21969 #define HAVE_SINHF 1
21970 _ACEOF
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21978 $as_echo_n "checking for sinh... " >&6; }
21979 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21981 else
21982 if test x$gcc_no_link = xyes; then
21983 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21986 /* end confdefs.h. */
21988 #ifdef HAVE_COMPLEX_H
21989 #include <complex.h>
21990 #endif
21991 #ifdef HAVE_MATH_H
21992 #include <math.h>
21993 #endif
21995 int (*ptr)() = (int (*)())sinh;
21998 main ()
22000 return 0;
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"; then :
22005 gcc_cv_math_func_sinh=yes
22006 else
22007 gcc_cv_math_func_sinh=no
22009 rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22013 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22014 if test $gcc_cv_math_func_sinh = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_SINH 1
22018 _ACEOF
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22026 $as_echo_n "checking for sinhl... " >&6; }
22027 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030 if test x$gcc_no_link = xyes; then
22031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22036 #ifdef HAVE_COMPLEX_H
22037 #include <complex.h>
22038 #endif
22039 #ifdef HAVE_MATH_H
22040 #include <math.h>
22041 #endif
22043 int (*ptr)() = (int (*)())sinhl;
22046 main ()
22048 return 0;
22051 _ACEOF
22052 if ac_fn_c_try_link "$LINENO"; then :
22053 gcc_cv_math_func_sinhl=yes
22054 else
22055 gcc_cv_math_func_sinhl=no
22057 rm -f core conftest.err conftest.$ac_objext \
22058 conftest$ac_exeext conftest.$ac_ext
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22061 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22062 if test $gcc_cv_math_func_sinhl = yes; then
22064 cat >>confdefs.h <<_ACEOF
22065 #define HAVE_SINHL 1
22066 _ACEOF
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22074 $as_echo_n "checking for csinhf... " >&6; }
22075 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22076 $as_echo_n "(cached) " >&6
22077 else
22078 if test x$gcc_no_link = xyes; then
22079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22084 #ifdef HAVE_COMPLEX_H
22085 #include <complex.h>
22086 #endif
22087 #ifdef HAVE_MATH_H
22088 #include <math.h>
22089 #endif
22091 int (*ptr)() = (int (*)())csinhf;
22094 main ()
22096 return 0;
22099 _ACEOF
22100 if ac_fn_c_try_link "$LINENO"; then :
22101 gcc_cv_math_func_csinhf=yes
22102 else
22103 gcc_cv_math_func_csinhf=no
22105 rm -f core conftest.err conftest.$ac_objext \
22106 conftest$ac_exeext conftest.$ac_ext
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22109 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22110 if test $gcc_cv_math_func_csinhf = yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define HAVE_CSINHF 1
22114 _ACEOF
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22122 $as_echo_n "checking for csinh... " >&6; }
22123 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22125 else
22126 if test x$gcc_no_link = xyes; then
22127 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22132 #ifdef HAVE_COMPLEX_H
22133 #include <complex.h>
22134 #endif
22135 #ifdef HAVE_MATH_H
22136 #include <math.h>
22137 #endif
22139 int (*ptr)() = (int (*)())csinh;
22142 main ()
22144 return 0;
22147 _ACEOF
22148 if ac_fn_c_try_link "$LINENO"; then :
22149 gcc_cv_math_func_csinh=yes
22150 else
22151 gcc_cv_math_func_csinh=no
22153 rm -f core conftest.err conftest.$ac_objext \
22154 conftest$ac_exeext conftest.$ac_ext
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22157 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22158 if test $gcc_cv_math_func_csinh = yes; then
22160 cat >>confdefs.h <<_ACEOF
22161 #define HAVE_CSINH 1
22162 _ACEOF
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22170 $as_echo_n "checking for csinhl... " >&6; }
22171 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22172 $as_echo_n "(cached) " >&6
22173 else
22174 if test x$gcc_no_link = xyes; then
22175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22180 #ifdef HAVE_COMPLEX_H
22181 #include <complex.h>
22182 #endif
22183 #ifdef HAVE_MATH_H
22184 #include <math.h>
22185 #endif
22187 int (*ptr)() = (int (*)())csinhl;
22190 main ()
22192 return 0;
22195 _ACEOF
22196 if ac_fn_c_try_link "$LINENO"; then :
22197 gcc_cv_math_func_csinhl=yes
22198 else
22199 gcc_cv_math_func_csinhl=no
22201 rm -f core conftest.err conftest.$ac_objext \
22202 conftest$ac_exeext conftest.$ac_ext
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22205 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22206 if test $gcc_cv_math_func_csinhl = yes; then
22208 cat >>confdefs.h <<_ACEOF
22209 #define HAVE_CSINHL 1
22210 _ACEOF
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22218 $as_echo_n "checking for sqrtf... " >&6; }
22219 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22220 $as_echo_n "(cached) " >&6
22221 else
22222 if test x$gcc_no_link = xyes; then
22223 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h. */
22228 #ifdef HAVE_COMPLEX_H
22229 #include <complex.h>
22230 #endif
22231 #ifdef HAVE_MATH_H
22232 #include <math.h>
22233 #endif
22235 int (*ptr)() = (int (*)())sqrtf;
22238 main ()
22240 return 0;
22243 _ACEOF
22244 if ac_fn_c_try_link "$LINENO"; then :
22245 gcc_cv_math_func_sqrtf=yes
22246 else
22247 gcc_cv_math_func_sqrtf=no
22249 rm -f core conftest.err conftest.$ac_objext \
22250 conftest$ac_exeext conftest.$ac_ext
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22253 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22254 if test $gcc_cv_math_func_sqrtf = yes; then
22256 cat >>confdefs.h <<_ACEOF
22257 #define HAVE_SQRTF 1
22258 _ACEOF
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22266 $as_echo_n "checking for sqrt... " >&6; }
22267 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22268 $as_echo_n "(cached) " >&6
22269 else
22270 if test x$gcc_no_link = xyes; then
22271 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22276 #ifdef HAVE_COMPLEX_H
22277 #include <complex.h>
22278 #endif
22279 #ifdef HAVE_MATH_H
22280 #include <math.h>
22281 #endif
22283 int (*ptr)() = (int (*)())sqrt;
22286 main ()
22288 return 0;
22291 _ACEOF
22292 if ac_fn_c_try_link "$LINENO"; then :
22293 gcc_cv_math_func_sqrt=yes
22294 else
22295 gcc_cv_math_func_sqrt=no
22297 rm -f core conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22301 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22302 if test $gcc_cv_math_func_sqrt = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_SQRT 1
22306 _ACEOF
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22314 $as_echo_n "checking for sqrtl... " >&6; }
22315 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22317 else
22318 if test x$gcc_no_link = xyes; then
22319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 #ifdef HAVE_COMPLEX_H
22325 #include <complex.h>
22326 #endif
22327 #ifdef HAVE_MATH_H
22328 #include <math.h>
22329 #endif
22331 int (*ptr)() = (int (*)())sqrtl;
22334 main ()
22336 return 0;
22339 _ACEOF
22340 if ac_fn_c_try_link "$LINENO"; then :
22341 gcc_cv_math_func_sqrtl=yes
22342 else
22343 gcc_cv_math_func_sqrtl=no
22345 rm -f core conftest.err conftest.$ac_objext \
22346 conftest$ac_exeext conftest.$ac_ext
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22349 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22350 if test $gcc_cv_math_func_sqrtl = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define HAVE_SQRTL 1
22354 _ACEOF
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22362 $as_echo_n "checking for csqrtf... " >&6; }
22363 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22365 else
22366 if test x$gcc_no_link = xyes; then
22367 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22370 /* end confdefs.h. */
22372 #ifdef HAVE_COMPLEX_H
22373 #include <complex.h>
22374 #endif
22375 #ifdef HAVE_MATH_H
22376 #include <math.h>
22377 #endif
22379 int (*ptr)() = (int (*)())csqrtf;
22382 main ()
22384 return 0;
22387 _ACEOF
22388 if ac_fn_c_try_link "$LINENO"; then :
22389 gcc_cv_math_func_csqrtf=yes
22390 else
22391 gcc_cv_math_func_csqrtf=no
22393 rm -f core conftest.err conftest.$ac_objext \
22394 conftest$ac_exeext conftest.$ac_ext
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22397 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22398 if test $gcc_cv_math_func_csqrtf = yes; then
22400 cat >>confdefs.h <<_ACEOF
22401 #define HAVE_CSQRTF 1
22402 _ACEOF
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22410 $as_echo_n "checking for csqrt... " >&6; }
22411 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22413 else
22414 if test x$gcc_no_link = xyes; then
22415 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h. */
22420 #ifdef HAVE_COMPLEX_H
22421 #include <complex.h>
22422 #endif
22423 #ifdef HAVE_MATH_H
22424 #include <math.h>
22425 #endif
22427 int (*ptr)() = (int (*)())csqrt;
22430 main ()
22432 return 0;
22435 _ACEOF
22436 if ac_fn_c_try_link "$LINENO"; then :
22437 gcc_cv_math_func_csqrt=yes
22438 else
22439 gcc_cv_math_func_csqrt=no
22441 rm -f core conftest.err conftest.$ac_objext \
22442 conftest$ac_exeext conftest.$ac_ext
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22445 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22446 if test $gcc_cv_math_func_csqrt = yes; then
22448 cat >>confdefs.h <<_ACEOF
22449 #define HAVE_CSQRT 1
22450 _ACEOF
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22458 $as_echo_n "checking for csqrtl... " >&6; }
22459 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22460 $as_echo_n "(cached) " >&6
22461 else
22462 if test x$gcc_no_link = xyes; then
22463 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h. */
22468 #ifdef HAVE_COMPLEX_H
22469 #include <complex.h>
22470 #endif
22471 #ifdef HAVE_MATH_H
22472 #include <math.h>
22473 #endif
22475 int (*ptr)() = (int (*)())csqrtl;
22478 main ()
22480 return 0;
22483 _ACEOF
22484 if ac_fn_c_try_link "$LINENO"; then :
22485 gcc_cv_math_func_csqrtl=yes
22486 else
22487 gcc_cv_math_func_csqrtl=no
22489 rm -f core conftest.err conftest.$ac_objext \
22490 conftest$ac_exeext conftest.$ac_ext
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22493 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22494 if test $gcc_cv_math_func_csqrtl = yes; then
22496 cat >>confdefs.h <<_ACEOF
22497 #define HAVE_CSQRTL 1
22498 _ACEOF
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22506 $as_echo_n "checking for tanf... " >&6; }
22507 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22509 else
22510 if test x$gcc_no_link = xyes; then
22511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22516 #ifdef HAVE_COMPLEX_H
22517 #include <complex.h>
22518 #endif
22519 #ifdef HAVE_MATH_H
22520 #include <math.h>
22521 #endif
22523 int (*ptr)() = (int (*)())tanf;
22526 main ()
22528 return 0;
22531 _ACEOF
22532 if ac_fn_c_try_link "$LINENO"; then :
22533 gcc_cv_math_func_tanf=yes
22534 else
22535 gcc_cv_math_func_tanf=no
22537 rm -f core conftest.err conftest.$ac_objext \
22538 conftest$ac_exeext conftest.$ac_ext
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22541 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22542 if test $gcc_cv_math_func_tanf = yes; then
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_TANF 1
22546 _ACEOF
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22554 $as_echo_n "checking for tan... " >&6; }
22555 if test "${gcc_cv_math_func_tan+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22557 else
22558 if test x$gcc_no_link = xyes; then
22559 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22562 /* end confdefs.h. */
22564 #ifdef HAVE_COMPLEX_H
22565 #include <complex.h>
22566 #endif
22567 #ifdef HAVE_MATH_H
22568 #include <math.h>
22569 #endif
22571 int (*ptr)() = (int (*)())tan;
22574 main ()
22576 return 0;
22579 _ACEOF
22580 if ac_fn_c_try_link "$LINENO"; then :
22581 gcc_cv_math_func_tan=yes
22582 else
22583 gcc_cv_math_func_tan=no
22585 rm -f core conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext conftest.$ac_ext
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22589 $as_echo "$gcc_cv_math_func_tan" >&6; }
22590 if test $gcc_cv_math_func_tan = yes; then
22592 cat >>confdefs.h <<_ACEOF
22593 #define HAVE_TAN 1
22594 _ACEOF
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22602 $as_echo_n "checking for tanl... " >&6; }
22603 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 if test x$gcc_no_link = xyes; then
22607 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22610 /* end confdefs.h. */
22612 #ifdef HAVE_COMPLEX_H
22613 #include <complex.h>
22614 #endif
22615 #ifdef HAVE_MATH_H
22616 #include <math.h>
22617 #endif
22619 int (*ptr)() = (int (*)())tanl;
22622 main ()
22624 return 0;
22627 _ACEOF
22628 if ac_fn_c_try_link "$LINENO"; then :
22629 gcc_cv_math_func_tanl=yes
22630 else
22631 gcc_cv_math_func_tanl=no
22633 rm -f core conftest.err conftest.$ac_objext \
22634 conftest$ac_exeext conftest.$ac_ext
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22637 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22638 if test $gcc_cv_math_func_tanl = yes; then
22640 cat >>confdefs.h <<_ACEOF
22641 #define HAVE_TANL 1
22642 _ACEOF
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22650 $as_echo_n "checking for ctanf... " >&6; }
22651 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
22653 else
22654 if test x$gcc_no_link = xyes; then
22655 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h. */
22660 #ifdef HAVE_COMPLEX_H
22661 #include <complex.h>
22662 #endif
22663 #ifdef HAVE_MATH_H
22664 #include <math.h>
22665 #endif
22667 int (*ptr)() = (int (*)())ctanf;
22670 main ()
22672 return 0;
22675 _ACEOF
22676 if ac_fn_c_try_link "$LINENO"; then :
22677 gcc_cv_math_func_ctanf=yes
22678 else
22679 gcc_cv_math_func_ctanf=no
22681 rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22685 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22686 if test $gcc_cv_math_func_ctanf = yes; then
22688 cat >>confdefs.h <<_ACEOF
22689 #define HAVE_CTANF 1
22690 _ACEOF
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22698 $as_echo_n "checking for ctan... " >&6; }
22699 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22700 $as_echo_n "(cached) " >&6
22701 else
22702 if test x$gcc_no_link = xyes; then
22703 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706 /* end confdefs.h. */
22708 #ifdef HAVE_COMPLEX_H
22709 #include <complex.h>
22710 #endif
22711 #ifdef HAVE_MATH_H
22712 #include <math.h>
22713 #endif
22715 int (*ptr)() = (int (*)())ctan;
22718 main ()
22720 return 0;
22723 _ACEOF
22724 if ac_fn_c_try_link "$LINENO"; then :
22725 gcc_cv_math_func_ctan=yes
22726 else
22727 gcc_cv_math_func_ctan=no
22729 rm -f core conftest.err conftest.$ac_objext \
22730 conftest$ac_exeext conftest.$ac_ext
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22733 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22734 if test $gcc_cv_math_func_ctan = yes; then
22736 cat >>confdefs.h <<_ACEOF
22737 #define HAVE_CTAN 1
22738 _ACEOF
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22746 $as_echo_n "checking for ctanl... " >&6; }
22747 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750 if test x$gcc_no_link = xyes; then
22751 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h. */
22756 #ifdef HAVE_COMPLEX_H
22757 #include <complex.h>
22758 #endif
22759 #ifdef HAVE_MATH_H
22760 #include <math.h>
22761 #endif
22763 int (*ptr)() = (int (*)())ctanl;
22766 main ()
22768 return 0;
22771 _ACEOF
22772 if ac_fn_c_try_link "$LINENO"; then :
22773 gcc_cv_math_func_ctanl=yes
22774 else
22775 gcc_cv_math_func_ctanl=no
22777 rm -f core conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22781 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22782 if test $gcc_cv_math_func_ctanl = yes; then
22784 cat >>confdefs.h <<_ACEOF
22785 #define HAVE_CTANL 1
22786 _ACEOF
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22794 $as_echo_n "checking for tanhf... " >&6; }
22795 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22797 else
22798 if test x$gcc_no_link = xyes; then
22799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22804 #ifdef HAVE_COMPLEX_H
22805 #include <complex.h>
22806 #endif
22807 #ifdef HAVE_MATH_H
22808 #include <math.h>
22809 #endif
22811 int (*ptr)() = (int (*)())tanhf;
22814 main ()
22816 return 0;
22819 _ACEOF
22820 if ac_fn_c_try_link "$LINENO"; then :
22821 gcc_cv_math_func_tanhf=yes
22822 else
22823 gcc_cv_math_func_tanhf=no
22825 rm -f core conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22829 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22830 if test $gcc_cv_math_func_tanhf = yes; then
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_TANHF 1
22834 _ACEOF
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22842 $as_echo_n "checking for tanh... " >&6; }
22843 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 if test x$gcc_no_link = xyes; then
22847 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22850 /* end confdefs.h. */
22852 #ifdef HAVE_COMPLEX_H
22853 #include <complex.h>
22854 #endif
22855 #ifdef HAVE_MATH_H
22856 #include <math.h>
22857 #endif
22859 int (*ptr)() = (int (*)())tanh;
22862 main ()
22864 return 0;
22867 _ACEOF
22868 if ac_fn_c_try_link "$LINENO"; then :
22869 gcc_cv_math_func_tanh=yes
22870 else
22871 gcc_cv_math_func_tanh=no
22873 rm -f core conftest.err conftest.$ac_objext \
22874 conftest$ac_exeext conftest.$ac_ext
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22877 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22878 if test $gcc_cv_math_func_tanh = yes; then
22880 cat >>confdefs.h <<_ACEOF
22881 #define HAVE_TANH 1
22882 _ACEOF
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22890 $as_echo_n "checking for tanhl... " >&6; }
22891 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22892 $as_echo_n "(cached) " >&6
22893 else
22894 if test x$gcc_no_link = xyes; then
22895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22900 #ifdef HAVE_COMPLEX_H
22901 #include <complex.h>
22902 #endif
22903 #ifdef HAVE_MATH_H
22904 #include <math.h>
22905 #endif
22907 int (*ptr)() = (int (*)())tanhl;
22910 main ()
22912 return 0;
22915 _ACEOF
22916 if ac_fn_c_try_link "$LINENO"; then :
22917 gcc_cv_math_func_tanhl=yes
22918 else
22919 gcc_cv_math_func_tanhl=no
22921 rm -f core conftest.err conftest.$ac_objext \
22922 conftest$ac_exeext conftest.$ac_ext
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22925 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22926 if test $gcc_cv_math_func_tanhl = yes; then
22928 cat >>confdefs.h <<_ACEOF
22929 #define HAVE_TANHL 1
22930 _ACEOF
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22938 $as_echo_n "checking for ctanhf... " >&6; }
22939 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22941 else
22942 if test x$gcc_no_link = xyes; then
22943 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22946 /* end confdefs.h. */
22948 #ifdef HAVE_COMPLEX_H
22949 #include <complex.h>
22950 #endif
22951 #ifdef HAVE_MATH_H
22952 #include <math.h>
22953 #endif
22955 int (*ptr)() = (int (*)())ctanhf;
22958 main ()
22960 return 0;
22963 _ACEOF
22964 if ac_fn_c_try_link "$LINENO"; then :
22965 gcc_cv_math_func_ctanhf=yes
22966 else
22967 gcc_cv_math_func_ctanhf=no
22969 rm -f core conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22973 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22974 if test $gcc_cv_math_func_ctanhf = yes; then
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_CTANHF 1
22978 _ACEOF
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22986 $as_echo_n "checking for ctanh... " >&6; }
22987 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22988 $as_echo_n "(cached) " >&6
22989 else
22990 if test x$gcc_no_link = xyes; then
22991 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h. */
22996 #ifdef HAVE_COMPLEX_H
22997 #include <complex.h>
22998 #endif
22999 #ifdef HAVE_MATH_H
23000 #include <math.h>
23001 #endif
23003 int (*ptr)() = (int (*)())ctanh;
23006 main ()
23008 return 0;
23011 _ACEOF
23012 if ac_fn_c_try_link "$LINENO"; then :
23013 gcc_cv_math_func_ctanh=yes
23014 else
23015 gcc_cv_math_func_ctanh=no
23017 rm -f core conftest.err conftest.$ac_objext \
23018 conftest$ac_exeext conftest.$ac_ext
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23021 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23022 if test $gcc_cv_math_func_ctanh = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define HAVE_CTANH 1
23026 _ACEOF
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23034 $as_echo_n "checking for ctanhl... " >&6; }
23035 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23036 $as_echo_n "(cached) " >&6
23037 else
23038 if test x$gcc_no_link = xyes; then
23039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23042 /* end confdefs.h. */
23044 #ifdef HAVE_COMPLEX_H
23045 #include <complex.h>
23046 #endif
23047 #ifdef HAVE_MATH_H
23048 #include <math.h>
23049 #endif
23051 int (*ptr)() = (int (*)())ctanhl;
23054 main ()
23056 return 0;
23059 _ACEOF
23060 if ac_fn_c_try_link "$LINENO"; then :
23061 gcc_cv_math_func_ctanhl=yes
23062 else
23063 gcc_cv_math_func_ctanhl=no
23065 rm -f core conftest.err conftest.$ac_objext \
23066 conftest$ac_exeext conftest.$ac_ext
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23069 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23070 if test $gcc_cv_math_func_ctanhl = yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_CTANHL 1
23074 _ACEOF
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23082 $as_echo_n "checking for truncf... " >&6; }
23083 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23086 if test x$gcc_no_link = xyes; then
23087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h. */
23092 #ifdef HAVE_COMPLEX_H
23093 #include <complex.h>
23094 #endif
23095 #ifdef HAVE_MATH_H
23096 #include <math.h>
23097 #endif
23099 int (*ptr)() = (int (*)())truncf;
23102 main ()
23104 return 0;
23107 _ACEOF
23108 if ac_fn_c_try_link "$LINENO"; then :
23109 gcc_cv_math_func_truncf=yes
23110 else
23111 gcc_cv_math_func_truncf=no
23113 rm -f core conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23117 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23118 if test $gcc_cv_math_func_truncf = yes; then
23120 cat >>confdefs.h <<_ACEOF
23121 #define HAVE_TRUNCF 1
23122 _ACEOF
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23130 $as_echo_n "checking for trunc... " >&6; }
23131 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23133 else
23134 if test x$gcc_no_link = xyes; then
23135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23138 /* end confdefs.h. */
23140 #ifdef HAVE_COMPLEX_H
23141 #include <complex.h>
23142 #endif
23143 #ifdef HAVE_MATH_H
23144 #include <math.h>
23145 #endif
23147 int (*ptr)() = (int (*)())trunc;
23150 main ()
23152 return 0;
23155 _ACEOF
23156 if ac_fn_c_try_link "$LINENO"; then :
23157 gcc_cv_math_func_trunc=yes
23158 else
23159 gcc_cv_math_func_trunc=no
23161 rm -f core conftest.err conftest.$ac_objext \
23162 conftest$ac_exeext conftest.$ac_ext
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23165 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23166 if test $gcc_cv_math_func_trunc = yes; then
23168 cat >>confdefs.h <<_ACEOF
23169 #define HAVE_TRUNC 1
23170 _ACEOF
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23178 $as_echo_n "checking for truncl... " >&6; }
23179 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23180 $as_echo_n "(cached) " >&6
23181 else
23182 if test x$gcc_no_link = xyes; then
23183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23188 #ifdef HAVE_COMPLEX_H
23189 #include <complex.h>
23190 #endif
23191 #ifdef HAVE_MATH_H
23192 #include <math.h>
23193 #endif
23195 int (*ptr)() = (int (*)())truncl;
23198 main ()
23200 return 0;
23203 _ACEOF
23204 if ac_fn_c_try_link "$LINENO"; then :
23205 gcc_cv_math_func_truncl=yes
23206 else
23207 gcc_cv_math_func_truncl=no
23209 rm -f core conftest.err conftest.$ac_objext \
23210 conftest$ac_exeext conftest.$ac_ext
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23213 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23214 if test $gcc_cv_math_func_truncl = yes; then
23216 cat >>confdefs.h <<_ACEOF
23217 #define HAVE_TRUNCL 1
23218 _ACEOF
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23226 $as_echo_n "checking for erff... " >&6; }
23227 if test "${gcc_cv_math_func_erff+set}" = set; then :
23228 $as_echo_n "(cached) " >&6
23229 else
23230 if test x$gcc_no_link = xyes; then
23231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23234 /* end confdefs.h. */
23236 #ifdef HAVE_COMPLEX_H
23237 #include <complex.h>
23238 #endif
23239 #ifdef HAVE_MATH_H
23240 #include <math.h>
23241 #endif
23243 int (*ptr)() = (int (*)())erff;
23246 main ()
23248 return 0;
23251 _ACEOF
23252 if ac_fn_c_try_link "$LINENO"; then :
23253 gcc_cv_math_func_erff=yes
23254 else
23255 gcc_cv_math_func_erff=no
23257 rm -f core conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23261 $as_echo "$gcc_cv_math_func_erff" >&6; }
23262 if test $gcc_cv_math_func_erff = yes; then
23264 cat >>confdefs.h <<_ACEOF
23265 #define HAVE_ERFF 1
23266 _ACEOF
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23274 $as_echo_n "checking for erf... " >&6; }
23275 if test "${gcc_cv_math_func_erf+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278 if test x$gcc_no_link = xyes; then
23279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282 /* end confdefs.h. */
23284 #ifdef HAVE_COMPLEX_H
23285 #include <complex.h>
23286 #endif
23287 #ifdef HAVE_MATH_H
23288 #include <math.h>
23289 #endif
23291 int (*ptr)() = (int (*)())erf;
23294 main ()
23296 return 0;
23299 _ACEOF
23300 if ac_fn_c_try_link "$LINENO"; then :
23301 gcc_cv_math_func_erf=yes
23302 else
23303 gcc_cv_math_func_erf=no
23305 rm -f core conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23309 $as_echo "$gcc_cv_math_func_erf" >&6; }
23310 if test $gcc_cv_math_func_erf = yes; then
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_ERF 1
23314 _ACEOF
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23322 $as_echo_n "checking for erfl... " >&6; }
23323 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 if test x$gcc_no_link = xyes; then
23327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23332 #ifdef HAVE_COMPLEX_H
23333 #include <complex.h>
23334 #endif
23335 #ifdef HAVE_MATH_H
23336 #include <math.h>
23337 #endif
23339 int (*ptr)() = (int (*)())erfl;
23342 main ()
23344 return 0;
23347 _ACEOF
23348 if ac_fn_c_try_link "$LINENO"; then :
23349 gcc_cv_math_func_erfl=yes
23350 else
23351 gcc_cv_math_func_erfl=no
23353 rm -f core conftest.err conftest.$ac_objext \
23354 conftest$ac_exeext conftest.$ac_ext
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23357 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23358 if test $gcc_cv_math_func_erfl = yes; then
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_ERFL 1
23362 _ACEOF
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23370 $as_echo_n "checking for erfcf... " >&6; }
23371 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23373 else
23374 if test x$gcc_no_link = xyes; then
23375 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23380 #ifdef HAVE_COMPLEX_H
23381 #include <complex.h>
23382 #endif
23383 #ifdef HAVE_MATH_H
23384 #include <math.h>
23385 #endif
23387 int (*ptr)() = (int (*)())erfcf;
23390 main ()
23392 return 0;
23395 _ACEOF
23396 if ac_fn_c_try_link "$LINENO"; then :
23397 gcc_cv_math_func_erfcf=yes
23398 else
23399 gcc_cv_math_func_erfcf=no
23401 rm -f core conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23405 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23406 if test $gcc_cv_math_func_erfcf = yes; then
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_ERFCF 1
23410 _ACEOF
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23418 $as_echo_n "checking for erfc... " >&6; }
23419 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23420 $as_echo_n "(cached) " >&6
23421 else
23422 if test x$gcc_no_link = xyes; then
23423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23426 /* end confdefs.h. */
23428 #ifdef HAVE_COMPLEX_H
23429 #include <complex.h>
23430 #endif
23431 #ifdef HAVE_MATH_H
23432 #include <math.h>
23433 #endif
23435 int (*ptr)() = (int (*)())erfc;
23438 main ()
23440 return 0;
23443 _ACEOF
23444 if ac_fn_c_try_link "$LINENO"; then :
23445 gcc_cv_math_func_erfc=yes
23446 else
23447 gcc_cv_math_func_erfc=no
23449 rm -f core conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23453 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23454 if test $gcc_cv_math_func_erfc = yes; then
23456 cat >>confdefs.h <<_ACEOF
23457 #define HAVE_ERFC 1
23458 _ACEOF
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23466 $as_echo_n "checking for erfcl... " >&6; }
23467 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 if test x$gcc_no_link = xyes; then
23471 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474 /* end confdefs.h. */
23476 #ifdef HAVE_COMPLEX_H
23477 #include <complex.h>
23478 #endif
23479 #ifdef HAVE_MATH_H
23480 #include <math.h>
23481 #endif
23483 int (*ptr)() = (int (*)())erfcl;
23486 main ()
23488 return 0;
23491 _ACEOF
23492 if ac_fn_c_try_link "$LINENO"; then :
23493 gcc_cv_math_func_erfcl=yes
23494 else
23495 gcc_cv_math_func_erfcl=no
23497 rm -f core conftest.err conftest.$ac_objext \
23498 conftest$ac_exeext conftest.$ac_ext
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23501 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23502 if test $gcc_cv_math_func_erfcl = yes; then
23504 cat >>confdefs.h <<_ACEOF
23505 #define HAVE_ERFCL 1
23506 _ACEOF
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23514 $as_echo_n "checking for j0f... " >&6; }
23515 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23516 $as_echo_n "(cached) " >&6
23517 else
23518 if test x$gcc_no_link = xyes; then
23519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522 /* end confdefs.h. */
23524 #ifdef HAVE_COMPLEX_H
23525 #include <complex.h>
23526 #endif
23527 #ifdef HAVE_MATH_H
23528 #include <math.h>
23529 #endif
23531 int (*ptr)() = (int (*)())j0f;
23534 main ()
23536 return 0;
23539 _ACEOF
23540 if ac_fn_c_try_link "$LINENO"; then :
23541 gcc_cv_math_func_j0f=yes
23542 else
23543 gcc_cv_math_func_j0f=no
23545 rm -f core conftest.err conftest.$ac_objext \
23546 conftest$ac_exeext conftest.$ac_ext
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23549 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23550 if test $gcc_cv_math_func_j0f = yes; then
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_J0F 1
23554 _ACEOF
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23562 $as_echo_n "checking for j0... " >&6; }
23563 if test "${gcc_cv_math_func_j0+set}" = set; then :
23564 $as_echo_n "(cached) " >&6
23565 else
23566 if test x$gcc_no_link = xyes; then
23567 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23572 #ifdef HAVE_COMPLEX_H
23573 #include <complex.h>
23574 #endif
23575 #ifdef HAVE_MATH_H
23576 #include <math.h>
23577 #endif
23579 int (*ptr)() = (int (*)())j0;
23582 main ()
23584 return 0;
23587 _ACEOF
23588 if ac_fn_c_try_link "$LINENO"; then :
23589 gcc_cv_math_func_j0=yes
23590 else
23591 gcc_cv_math_func_j0=no
23593 rm -f core conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23597 $as_echo "$gcc_cv_math_func_j0" >&6; }
23598 if test $gcc_cv_math_func_j0 = yes; then
23600 cat >>confdefs.h <<_ACEOF
23601 #define HAVE_J0 1
23602 _ACEOF
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23610 $as_echo_n "checking for j0l... " >&6; }
23611 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23612 $as_echo_n "(cached) " >&6
23613 else
23614 if test x$gcc_no_link = xyes; then
23615 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618 /* end confdefs.h. */
23620 #ifdef HAVE_COMPLEX_H
23621 #include <complex.h>
23622 #endif
23623 #ifdef HAVE_MATH_H
23624 #include <math.h>
23625 #endif
23627 int (*ptr)() = (int (*)())j0l;
23630 main ()
23632 return 0;
23635 _ACEOF
23636 if ac_fn_c_try_link "$LINENO"; then :
23637 gcc_cv_math_func_j0l=yes
23638 else
23639 gcc_cv_math_func_j0l=no
23641 rm -f core conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23645 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23646 if test $gcc_cv_math_func_j0l = yes; then
23648 cat >>confdefs.h <<_ACEOF
23649 #define HAVE_J0L 1
23650 _ACEOF
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23658 $as_echo_n "checking for j1f... " >&6; }
23659 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23661 else
23662 if test x$gcc_no_link = xyes; then
23663 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666 /* end confdefs.h. */
23668 #ifdef HAVE_COMPLEX_H
23669 #include <complex.h>
23670 #endif
23671 #ifdef HAVE_MATH_H
23672 #include <math.h>
23673 #endif
23675 int (*ptr)() = (int (*)())j1f;
23678 main ()
23680 return 0;
23683 _ACEOF
23684 if ac_fn_c_try_link "$LINENO"; then :
23685 gcc_cv_math_func_j1f=yes
23686 else
23687 gcc_cv_math_func_j1f=no
23689 rm -f core conftest.err conftest.$ac_objext \
23690 conftest$ac_exeext conftest.$ac_ext
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23693 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23694 if test $gcc_cv_math_func_j1f = yes; then
23696 cat >>confdefs.h <<_ACEOF
23697 #define HAVE_J1F 1
23698 _ACEOF
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23706 $as_echo_n "checking for j1... " >&6; }
23707 if test "${gcc_cv_math_func_j1+set}" = set; then :
23708 $as_echo_n "(cached) " >&6
23709 else
23710 if test x$gcc_no_link = xyes; then
23711 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23714 /* end confdefs.h. */
23716 #ifdef HAVE_COMPLEX_H
23717 #include <complex.h>
23718 #endif
23719 #ifdef HAVE_MATH_H
23720 #include <math.h>
23721 #endif
23723 int (*ptr)() = (int (*)())j1;
23726 main ()
23728 return 0;
23731 _ACEOF
23732 if ac_fn_c_try_link "$LINENO"; then :
23733 gcc_cv_math_func_j1=yes
23734 else
23735 gcc_cv_math_func_j1=no
23737 rm -f core conftest.err conftest.$ac_objext \
23738 conftest$ac_exeext conftest.$ac_ext
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23741 $as_echo "$gcc_cv_math_func_j1" >&6; }
23742 if test $gcc_cv_math_func_j1 = yes; then
23744 cat >>confdefs.h <<_ACEOF
23745 #define HAVE_J1 1
23746 _ACEOF
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23754 $as_echo_n "checking for j1l... " >&6; }
23755 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23756 $as_echo_n "(cached) " >&6
23757 else
23758 if test x$gcc_no_link = xyes; then
23759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23764 #ifdef HAVE_COMPLEX_H
23765 #include <complex.h>
23766 #endif
23767 #ifdef HAVE_MATH_H
23768 #include <math.h>
23769 #endif
23771 int (*ptr)() = (int (*)())j1l;
23774 main ()
23776 return 0;
23779 _ACEOF
23780 if ac_fn_c_try_link "$LINENO"; then :
23781 gcc_cv_math_func_j1l=yes
23782 else
23783 gcc_cv_math_func_j1l=no
23785 rm -f core conftest.err conftest.$ac_objext \
23786 conftest$ac_exeext conftest.$ac_ext
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23789 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23790 if test $gcc_cv_math_func_j1l = yes; then
23792 cat >>confdefs.h <<_ACEOF
23793 #define HAVE_J1L 1
23794 _ACEOF
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23802 $as_echo_n "checking for jnf... " >&6; }
23803 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 if test x$gcc_no_link = xyes; then
23807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23810 /* end confdefs.h. */
23812 #ifdef HAVE_COMPLEX_H
23813 #include <complex.h>
23814 #endif
23815 #ifdef HAVE_MATH_H
23816 #include <math.h>
23817 #endif
23819 int (*ptr)() = (int (*)())jnf;
23822 main ()
23824 return 0;
23827 _ACEOF
23828 if ac_fn_c_try_link "$LINENO"; then :
23829 gcc_cv_math_func_jnf=yes
23830 else
23831 gcc_cv_math_func_jnf=no
23833 rm -f core conftest.err conftest.$ac_objext \
23834 conftest$ac_exeext conftest.$ac_ext
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23837 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23838 if test $gcc_cv_math_func_jnf = yes; then
23840 cat >>confdefs.h <<_ACEOF
23841 #define HAVE_JNF 1
23842 _ACEOF
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23850 $as_echo_n "checking for jn... " >&6; }
23851 if test "${gcc_cv_math_func_jn+set}" = set; then :
23852 $as_echo_n "(cached) " >&6
23853 else
23854 if test x$gcc_no_link = xyes; then
23855 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23858 /* end confdefs.h. */
23860 #ifdef HAVE_COMPLEX_H
23861 #include <complex.h>
23862 #endif
23863 #ifdef HAVE_MATH_H
23864 #include <math.h>
23865 #endif
23867 int (*ptr)() = (int (*)())jn;
23870 main ()
23872 return 0;
23875 _ACEOF
23876 if ac_fn_c_try_link "$LINENO"; then :
23877 gcc_cv_math_func_jn=yes
23878 else
23879 gcc_cv_math_func_jn=no
23881 rm -f core conftest.err conftest.$ac_objext \
23882 conftest$ac_exeext conftest.$ac_ext
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23885 $as_echo "$gcc_cv_math_func_jn" >&6; }
23886 if test $gcc_cv_math_func_jn = yes; then
23888 cat >>confdefs.h <<_ACEOF
23889 #define HAVE_JN 1
23890 _ACEOF
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23898 $as_echo_n "checking for jnl... " >&6; }
23899 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23900 $as_echo_n "(cached) " >&6
23901 else
23902 if test x$gcc_no_link = xyes; then
23903 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23906 /* end confdefs.h. */
23908 #ifdef HAVE_COMPLEX_H
23909 #include <complex.h>
23910 #endif
23911 #ifdef HAVE_MATH_H
23912 #include <math.h>
23913 #endif
23915 int (*ptr)() = (int (*)())jnl;
23918 main ()
23920 return 0;
23923 _ACEOF
23924 if ac_fn_c_try_link "$LINENO"; then :
23925 gcc_cv_math_func_jnl=yes
23926 else
23927 gcc_cv_math_func_jnl=no
23929 rm -f core conftest.err conftest.$ac_objext \
23930 conftest$ac_exeext conftest.$ac_ext
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23933 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23934 if test $gcc_cv_math_func_jnl = yes; then
23936 cat >>confdefs.h <<_ACEOF
23937 #define HAVE_JNL 1
23938 _ACEOF
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23946 $as_echo_n "checking for y0f... " >&6; }
23947 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 if test x$gcc_no_link = xyes; then
23951 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h. */
23956 #ifdef HAVE_COMPLEX_H
23957 #include <complex.h>
23958 #endif
23959 #ifdef HAVE_MATH_H
23960 #include <math.h>
23961 #endif
23963 int (*ptr)() = (int (*)())y0f;
23966 main ()
23968 return 0;
23971 _ACEOF
23972 if ac_fn_c_try_link "$LINENO"; then :
23973 gcc_cv_math_func_y0f=yes
23974 else
23975 gcc_cv_math_func_y0f=no
23977 rm -f core conftest.err conftest.$ac_objext \
23978 conftest$ac_exeext conftest.$ac_ext
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23981 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23982 if test $gcc_cv_math_func_y0f = yes; then
23984 cat >>confdefs.h <<_ACEOF
23985 #define HAVE_Y0F 1
23986 _ACEOF
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23994 $as_echo_n "checking for y0... " >&6; }
23995 if test "${gcc_cv_math_func_y0+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23997 else
23998 if test x$gcc_no_link = xyes; then
23999 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24004 #ifdef HAVE_COMPLEX_H
24005 #include <complex.h>
24006 #endif
24007 #ifdef HAVE_MATH_H
24008 #include <math.h>
24009 #endif
24011 int (*ptr)() = (int (*)())y0;
24014 main ()
24016 return 0;
24019 _ACEOF
24020 if ac_fn_c_try_link "$LINENO"; then :
24021 gcc_cv_math_func_y0=yes
24022 else
24023 gcc_cv_math_func_y0=no
24025 rm -f core conftest.err conftest.$ac_objext \
24026 conftest$ac_exeext conftest.$ac_ext
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24029 $as_echo "$gcc_cv_math_func_y0" >&6; }
24030 if test $gcc_cv_math_func_y0 = yes; then
24032 cat >>confdefs.h <<_ACEOF
24033 #define HAVE_Y0 1
24034 _ACEOF
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24042 $as_echo_n "checking for y0l... " >&6; }
24043 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 if test x$gcc_no_link = xyes; then
24047 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24052 #ifdef HAVE_COMPLEX_H
24053 #include <complex.h>
24054 #endif
24055 #ifdef HAVE_MATH_H
24056 #include <math.h>
24057 #endif
24059 int (*ptr)() = (int (*)())y0l;
24062 main ()
24064 return 0;
24067 _ACEOF
24068 if ac_fn_c_try_link "$LINENO"; then :
24069 gcc_cv_math_func_y0l=yes
24070 else
24071 gcc_cv_math_func_y0l=no
24073 rm -f core conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24077 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24078 if test $gcc_cv_math_func_y0l = yes; then
24080 cat >>confdefs.h <<_ACEOF
24081 #define HAVE_Y0L 1
24082 _ACEOF
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24090 $as_echo_n "checking for y1f... " >&6; }
24091 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24093 else
24094 if test x$gcc_no_link = xyes; then
24095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24098 /* end confdefs.h. */
24100 #ifdef HAVE_COMPLEX_H
24101 #include <complex.h>
24102 #endif
24103 #ifdef HAVE_MATH_H
24104 #include <math.h>
24105 #endif
24107 int (*ptr)() = (int (*)())y1f;
24110 main ()
24112 return 0;
24115 _ACEOF
24116 if ac_fn_c_try_link "$LINENO"; then :
24117 gcc_cv_math_func_y1f=yes
24118 else
24119 gcc_cv_math_func_y1f=no
24121 rm -f core conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext conftest.$ac_ext
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24125 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24126 if test $gcc_cv_math_func_y1f = yes; then
24128 cat >>confdefs.h <<_ACEOF
24129 #define HAVE_Y1F 1
24130 _ACEOF
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24138 $as_echo_n "checking for y1... " >&6; }
24139 if test "${gcc_cv_math_func_y1+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 if test x$gcc_no_link = xyes; then
24143 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h. */
24148 #ifdef HAVE_COMPLEX_H
24149 #include <complex.h>
24150 #endif
24151 #ifdef HAVE_MATH_H
24152 #include <math.h>
24153 #endif
24155 int (*ptr)() = (int (*)())y1;
24158 main ()
24160 return 0;
24163 _ACEOF
24164 if ac_fn_c_try_link "$LINENO"; then :
24165 gcc_cv_math_func_y1=yes
24166 else
24167 gcc_cv_math_func_y1=no
24169 rm -f core conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24173 $as_echo "$gcc_cv_math_func_y1" >&6; }
24174 if test $gcc_cv_math_func_y1 = yes; then
24176 cat >>confdefs.h <<_ACEOF
24177 #define HAVE_Y1 1
24178 _ACEOF
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24186 $as_echo_n "checking for y1l... " >&6; }
24187 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24188 $as_echo_n "(cached) " >&6
24189 else
24190 if test x$gcc_no_link = xyes; then
24191 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24194 /* end confdefs.h. */
24196 #ifdef HAVE_COMPLEX_H
24197 #include <complex.h>
24198 #endif
24199 #ifdef HAVE_MATH_H
24200 #include <math.h>
24201 #endif
24203 int (*ptr)() = (int (*)())y1l;
24206 main ()
24208 return 0;
24211 _ACEOF
24212 if ac_fn_c_try_link "$LINENO"; then :
24213 gcc_cv_math_func_y1l=yes
24214 else
24215 gcc_cv_math_func_y1l=no
24217 rm -f core conftest.err conftest.$ac_objext \
24218 conftest$ac_exeext conftest.$ac_ext
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24221 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24222 if test $gcc_cv_math_func_y1l = yes; then
24224 cat >>confdefs.h <<_ACEOF
24225 #define HAVE_Y1L 1
24226 _ACEOF
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24234 $as_echo_n "checking for ynf... " >&6; }
24235 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24238 if test x$gcc_no_link = xyes; then
24239 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242 /* end confdefs.h. */
24244 #ifdef HAVE_COMPLEX_H
24245 #include <complex.h>
24246 #endif
24247 #ifdef HAVE_MATH_H
24248 #include <math.h>
24249 #endif
24251 int (*ptr)() = (int (*)())ynf;
24254 main ()
24256 return 0;
24259 _ACEOF
24260 if ac_fn_c_try_link "$LINENO"; then :
24261 gcc_cv_math_func_ynf=yes
24262 else
24263 gcc_cv_math_func_ynf=no
24265 rm -f core conftest.err conftest.$ac_objext \
24266 conftest$ac_exeext conftest.$ac_ext
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24269 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24270 if test $gcc_cv_math_func_ynf = yes; then
24272 cat >>confdefs.h <<_ACEOF
24273 #define HAVE_YNF 1
24274 _ACEOF
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24282 $as_echo_n "checking for yn... " >&6; }
24283 if test "${gcc_cv_math_func_yn+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 if test x$gcc_no_link = xyes; then
24287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h. */
24292 #ifdef HAVE_COMPLEX_H
24293 #include <complex.h>
24294 #endif
24295 #ifdef HAVE_MATH_H
24296 #include <math.h>
24297 #endif
24299 int (*ptr)() = (int (*)())yn;
24302 main ()
24304 return 0;
24307 _ACEOF
24308 if ac_fn_c_try_link "$LINENO"; then :
24309 gcc_cv_math_func_yn=yes
24310 else
24311 gcc_cv_math_func_yn=no
24313 rm -f core conftest.err conftest.$ac_objext \
24314 conftest$ac_exeext conftest.$ac_ext
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24317 $as_echo "$gcc_cv_math_func_yn" >&6; }
24318 if test $gcc_cv_math_func_yn = yes; then
24320 cat >>confdefs.h <<_ACEOF
24321 #define HAVE_YN 1
24322 _ACEOF
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24330 $as_echo_n "checking for ynl... " >&6; }
24331 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24333 else
24334 if test x$gcc_no_link = xyes; then
24335 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h. */
24340 #ifdef HAVE_COMPLEX_H
24341 #include <complex.h>
24342 #endif
24343 #ifdef HAVE_MATH_H
24344 #include <math.h>
24345 #endif
24347 int (*ptr)() = (int (*)())ynl;
24350 main ()
24352 return 0;
24355 _ACEOF
24356 if ac_fn_c_try_link "$LINENO"; then :
24357 gcc_cv_math_func_ynl=yes
24358 else
24359 gcc_cv_math_func_ynl=no
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24365 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24366 if test $gcc_cv_math_func_ynl = yes; then
24368 cat >>confdefs.h <<_ACEOF
24369 #define HAVE_YNL 1
24370 _ACEOF
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24378 $as_echo_n "checking for tgamma... " >&6; }
24379 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24380 $as_echo_n "(cached) " >&6
24381 else
24382 if test x$gcc_no_link = xyes; then
24383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386 /* end confdefs.h. */
24388 #ifdef HAVE_COMPLEX_H
24389 #include <complex.h>
24390 #endif
24391 #ifdef HAVE_MATH_H
24392 #include <math.h>
24393 #endif
24395 int (*ptr)() = (int (*)())tgamma;
24398 main ()
24400 return 0;
24403 _ACEOF
24404 if ac_fn_c_try_link "$LINENO"; then :
24405 gcc_cv_math_func_tgamma=yes
24406 else
24407 gcc_cv_math_func_tgamma=no
24409 rm -f core conftest.err conftest.$ac_objext \
24410 conftest$ac_exeext conftest.$ac_ext
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24413 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24414 if test $gcc_cv_math_func_tgamma = yes; then
24416 cat >>confdefs.h <<_ACEOF
24417 #define HAVE_TGAMMA 1
24418 _ACEOF
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24426 $as_echo_n "checking for tgammaf... " >&6; }
24427 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24428 $as_echo_n "(cached) " >&6
24429 else
24430 if test x$gcc_no_link = xyes; then
24431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h. */
24436 #ifdef HAVE_COMPLEX_H
24437 #include <complex.h>
24438 #endif
24439 #ifdef HAVE_MATH_H
24440 #include <math.h>
24441 #endif
24443 int (*ptr)() = (int (*)())tgammaf;
24446 main ()
24448 return 0;
24451 _ACEOF
24452 if ac_fn_c_try_link "$LINENO"; then :
24453 gcc_cv_math_func_tgammaf=yes
24454 else
24455 gcc_cv_math_func_tgammaf=no
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24461 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24462 if test $gcc_cv_math_func_tgammaf = yes; then
24464 cat >>confdefs.h <<_ACEOF
24465 #define HAVE_TGAMMAF 1
24466 _ACEOF
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24474 $as_echo_n "checking for tgammal... " >&6; }
24475 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 if test x$gcc_no_link = xyes; then
24479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24482 /* end confdefs.h. */
24484 #ifdef HAVE_COMPLEX_H
24485 #include <complex.h>
24486 #endif
24487 #ifdef HAVE_MATH_H
24488 #include <math.h>
24489 #endif
24491 int (*ptr)() = (int (*)())tgammal;
24494 main ()
24496 return 0;
24499 _ACEOF
24500 if ac_fn_c_try_link "$LINENO"; then :
24501 gcc_cv_math_func_tgammal=yes
24502 else
24503 gcc_cv_math_func_tgammal=no
24505 rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24509 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24510 if test $gcc_cv_math_func_tgammal = yes; then
24512 cat >>confdefs.h <<_ACEOF
24513 #define HAVE_TGAMMAL 1
24514 _ACEOF
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24522 $as_echo_n "checking for lgamma... " >&6; }
24523 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 if test x$gcc_no_link = xyes; then
24527 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24530 /* end confdefs.h. */
24532 #ifdef HAVE_COMPLEX_H
24533 #include <complex.h>
24534 #endif
24535 #ifdef HAVE_MATH_H
24536 #include <math.h>
24537 #endif
24539 int (*ptr)() = (int (*)())lgamma;
24542 main ()
24544 return 0;
24547 _ACEOF
24548 if ac_fn_c_try_link "$LINENO"; then :
24549 gcc_cv_math_func_lgamma=yes
24550 else
24551 gcc_cv_math_func_lgamma=no
24553 rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24557 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24558 if test $gcc_cv_math_func_lgamma = yes; then
24560 cat >>confdefs.h <<_ACEOF
24561 #define HAVE_LGAMMA 1
24562 _ACEOF
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24570 $as_echo_n "checking for lgammaf... " >&6; }
24571 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 if test x$gcc_no_link = xyes; then
24575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24578 /* end confdefs.h. */
24580 #ifdef HAVE_COMPLEX_H
24581 #include <complex.h>
24582 #endif
24583 #ifdef HAVE_MATH_H
24584 #include <math.h>
24585 #endif
24587 int (*ptr)() = (int (*)())lgammaf;
24590 main ()
24592 return 0;
24595 _ACEOF
24596 if ac_fn_c_try_link "$LINENO"; then :
24597 gcc_cv_math_func_lgammaf=yes
24598 else
24599 gcc_cv_math_func_lgammaf=no
24601 rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24605 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24606 if test $gcc_cv_math_func_lgammaf = yes; then
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_LGAMMAF 1
24610 _ACEOF
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24618 $as_echo_n "checking for lgammal... " >&6; }
24619 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24620 $as_echo_n "(cached) " >&6
24621 else
24622 if test x$gcc_no_link = xyes; then
24623 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h. */
24628 #ifdef HAVE_COMPLEX_H
24629 #include <complex.h>
24630 #endif
24631 #ifdef HAVE_MATH_H
24632 #include <math.h>
24633 #endif
24635 int (*ptr)() = (int (*)())lgammal;
24638 main ()
24640 return 0;
24643 _ACEOF
24644 if ac_fn_c_try_link "$LINENO"; then :
24645 gcc_cv_math_func_lgammal=yes
24646 else
24647 gcc_cv_math_func_lgammal=no
24649 rm -f core conftest.err conftest.$ac_objext \
24650 conftest$ac_exeext conftest.$ac_ext
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24653 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24654 if test $gcc_cv_math_func_lgammal = yes; then
24656 cat >>confdefs.h <<_ACEOF
24657 #define HAVE_LGAMMAL 1
24658 _ACEOF
24663 # Check for GFORTRAN_C99_1.1 funcs
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24668 $as_echo_n "checking for cacos... " >&6; }
24669 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24670 $as_echo_n "(cached) " >&6
24671 else
24672 if test x$gcc_no_link = xyes; then
24673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676 /* end confdefs.h. */
24678 #ifdef HAVE_COMPLEX_H
24679 #include <complex.h>
24680 #endif
24681 #ifdef HAVE_MATH_H
24682 #include <math.h>
24683 #endif
24685 int (*ptr)() = (int (*)())cacos;
24688 main ()
24690 return 0;
24693 _ACEOF
24694 if ac_fn_c_try_link "$LINENO"; then :
24695 gcc_cv_math_func_cacos=yes
24696 else
24697 gcc_cv_math_func_cacos=no
24699 rm -f core conftest.err conftest.$ac_objext \
24700 conftest$ac_exeext conftest.$ac_ext
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24703 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24704 if test $gcc_cv_math_func_cacos = yes; then
24706 cat >>confdefs.h <<_ACEOF
24707 #define HAVE_CACOS 1
24708 _ACEOF
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24716 $as_echo_n "checking for cacosf... " >&6; }
24717 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24719 else
24720 if test x$gcc_no_link = xyes; then
24721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724 /* end confdefs.h. */
24726 #ifdef HAVE_COMPLEX_H
24727 #include <complex.h>
24728 #endif
24729 #ifdef HAVE_MATH_H
24730 #include <math.h>
24731 #endif
24733 int (*ptr)() = (int (*)())cacosf;
24736 main ()
24738 return 0;
24741 _ACEOF
24742 if ac_fn_c_try_link "$LINENO"; then :
24743 gcc_cv_math_func_cacosf=yes
24744 else
24745 gcc_cv_math_func_cacosf=no
24747 rm -f core conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24751 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24752 if test $gcc_cv_math_func_cacosf = yes; then
24754 cat >>confdefs.h <<_ACEOF
24755 #define HAVE_CACOSF 1
24756 _ACEOF
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24764 $as_echo_n "checking for cacosh... " >&6; }
24765 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24767 else
24768 if test x$gcc_no_link = xyes; then
24769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772 /* end confdefs.h. */
24774 #ifdef HAVE_COMPLEX_H
24775 #include <complex.h>
24776 #endif
24777 #ifdef HAVE_MATH_H
24778 #include <math.h>
24779 #endif
24781 int (*ptr)() = (int (*)())cacosh;
24784 main ()
24786 return 0;
24789 _ACEOF
24790 if ac_fn_c_try_link "$LINENO"; then :
24791 gcc_cv_math_func_cacosh=yes
24792 else
24793 gcc_cv_math_func_cacosh=no
24795 rm -f core conftest.err conftest.$ac_objext \
24796 conftest$ac_exeext conftest.$ac_ext
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24799 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24800 if test $gcc_cv_math_func_cacosh = yes; then
24802 cat >>confdefs.h <<_ACEOF
24803 #define HAVE_CACOSH 1
24804 _ACEOF
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24812 $as_echo_n "checking for cacoshf... " >&6; }
24813 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 if test x$gcc_no_link = xyes; then
24817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24820 /* end confdefs.h. */
24822 #ifdef HAVE_COMPLEX_H
24823 #include <complex.h>
24824 #endif
24825 #ifdef HAVE_MATH_H
24826 #include <math.h>
24827 #endif
24829 int (*ptr)() = (int (*)())cacoshf;
24832 main ()
24834 return 0;
24837 _ACEOF
24838 if ac_fn_c_try_link "$LINENO"; then :
24839 gcc_cv_math_func_cacoshf=yes
24840 else
24841 gcc_cv_math_func_cacoshf=no
24843 rm -f core conftest.err conftest.$ac_objext \
24844 conftest$ac_exeext conftest.$ac_ext
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24847 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24848 if test $gcc_cv_math_func_cacoshf = yes; then
24850 cat >>confdefs.h <<_ACEOF
24851 #define HAVE_CACOSHF 1
24852 _ACEOF
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24860 $as_echo_n "checking for cacoshl... " >&6; }
24861 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24862 $as_echo_n "(cached) " >&6
24863 else
24864 if test x$gcc_no_link = xyes; then
24865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868 /* end confdefs.h. */
24870 #ifdef HAVE_COMPLEX_H
24871 #include <complex.h>
24872 #endif
24873 #ifdef HAVE_MATH_H
24874 #include <math.h>
24875 #endif
24877 int (*ptr)() = (int (*)())cacoshl;
24880 main ()
24882 return 0;
24885 _ACEOF
24886 if ac_fn_c_try_link "$LINENO"; then :
24887 gcc_cv_math_func_cacoshl=yes
24888 else
24889 gcc_cv_math_func_cacoshl=no
24891 rm -f core conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24895 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24896 if test $gcc_cv_math_func_cacoshl = yes; then
24898 cat >>confdefs.h <<_ACEOF
24899 #define HAVE_CACOSHL 1
24900 _ACEOF
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24908 $as_echo_n "checking for cacosl... " >&6; }
24909 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 if test x$gcc_no_link = xyes; then
24913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24916 /* end confdefs.h. */
24918 #ifdef HAVE_COMPLEX_H
24919 #include <complex.h>
24920 #endif
24921 #ifdef HAVE_MATH_H
24922 #include <math.h>
24923 #endif
24925 int (*ptr)() = (int (*)())cacosl;
24928 main ()
24930 return 0;
24933 _ACEOF
24934 if ac_fn_c_try_link "$LINENO"; then :
24935 gcc_cv_math_func_cacosl=yes
24936 else
24937 gcc_cv_math_func_cacosl=no
24939 rm -f core conftest.err conftest.$ac_objext \
24940 conftest$ac_exeext conftest.$ac_ext
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24943 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24944 if test $gcc_cv_math_func_cacosl = yes; then
24946 cat >>confdefs.h <<_ACEOF
24947 #define HAVE_CACOSL 1
24948 _ACEOF
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24956 $as_echo_n "checking for casin... " >&6; }
24957 if test "${gcc_cv_math_func_casin+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959 else
24960 if test x$gcc_no_link = xyes; then
24961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964 /* end confdefs.h. */
24966 #ifdef HAVE_COMPLEX_H
24967 #include <complex.h>
24968 #endif
24969 #ifdef HAVE_MATH_H
24970 #include <math.h>
24971 #endif
24973 int (*ptr)() = (int (*)())casin;
24976 main ()
24978 return 0;
24981 _ACEOF
24982 if ac_fn_c_try_link "$LINENO"; then :
24983 gcc_cv_math_func_casin=yes
24984 else
24985 gcc_cv_math_func_casin=no
24987 rm -f core conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24991 $as_echo "$gcc_cv_math_func_casin" >&6; }
24992 if test $gcc_cv_math_func_casin = yes; then
24994 cat >>confdefs.h <<_ACEOF
24995 #define HAVE_CASIN 1
24996 _ACEOF
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25004 $as_echo_n "checking for casinf... " >&6; }
25005 if test "${gcc_cv_math_func_casinf+set}" = set; then :
25006 $as_echo_n "(cached) " >&6
25007 else
25008 if test x$gcc_no_link = xyes; then
25009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25012 /* end confdefs.h. */
25014 #ifdef HAVE_COMPLEX_H
25015 #include <complex.h>
25016 #endif
25017 #ifdef HAVE_MATH_H
25018 #include <math.h>
25019 #endif
25021 int (*ptr)() = (int (*)())casinf;
25024 main ()
25026 return 0;
25029 _ACEOF
25030 if ac_fn_c_try_link "$LINENO"; then :
25031 gcc_cv_math_func_casinf=yes
25032 else
25033 gcc_cv_math_func_casinf=no
25035 rm -f core conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25039 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25040 if test $gcc_cv_math_func_casinf = yes; then
25042 cat >>confdefs.h <<_ACEOF
25043 #define HAVE_CASINF 1
25044 _ACEOF
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25052 $as_echo_n "checking for casinh... " >&6; }
25053 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 if test x$gcc_no_link = xyes; then
25057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25060 /* end confdefs.h. */
25062 #ifdef HAVE_COMPLEX_H
25063 #include <complex.h>
25064 #endif
25065 #ifdef HAVE_MATH_H
25066 #include <math.h>
25067 #endif
25069 int (*ptr)() = (int (*)())casinh;
25072 main ()
25074 return 0;
25077 _ACEOF
25078 if ac_fn_c_try_link "$LINENO"; then :
25079 gcc_cv_math_func_casinh=yes
25080 else
25081 gcc_cv_math_func_casinh=no
25083 rm -f core conftest.err conftest.$ac_objext \
25084 conftest$ac_exeext conftest.$ac_ext
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25087 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25088 if test $gcc_cv_math_func_casinh = yes; then
25090 cat >>confdefs.h <<_ACEOF
25091 #define HAVE_CASINH 1
25092 _ACEOF
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25100 $as_echo_n "checking for casinhf... " >&6; }
25101 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25103 else
25104 if test x$gcc_no_link = xyes; then
25105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h. */
25110 #ifdef HAVE_COMPLEX_H
25111 #include <complex.h>
25112 #endif
25113 #ifdef HAVE_MATH_H
25114 #include <math.h>
25115 #endif
25117 int (*ptr)() = (int (*)())casinhf;
25120 main ()
25122 return 0;
25125 _ACEOF
25126 if ac_fn_c_try_link "$LINENO"; then :
25127 gcc_cv_math_func_casinhf=yes
25128 else
25129 gcc_cv_math_func_casinhf=no
25131 rm -f core conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25135 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25136 if test $gcc_cv_math_func_casinhf = yes; then
25138 cat >>confdefs.h <<_ACEOF
25139 #define HAVE_CASINHF 1
25140 _ACEOF
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25148 $as_echo_n "checking for casinhl... " >&6; }
25149 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25150 $as_echo_n "(cached) " >&6
25151 else
25152 if test x$gcc_no_link = xyes; then
25153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25156 /* end confdefs.h. */
25158 #ifdef HAVE_COMPLEX_H
25159 #include <complex.h>
25160 #endif
25161 #ifdef HAVE_MATH_H
25162 #include <math.h>
25163 #endif
25165 int (*ptr)() = (int (*)())casinhl;
25168 main ()
25170 return 0;
25173 _ACEOF
25174 if ac_fn_c_try_link "$LINENO"; then :
25175 gcc_cv_math_func_casinhl=yes
25176 else
25177 gcc_cv_math_func_casinhl=no
25179 rm -f core conftest.err conftest.$ac_objext \
25180 conftest$ac_exeext conftest.$ac_ext
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25183 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25184 if test $gcc_cv_math_func_casinhl = yes; then
25186 cat >>confdefs.h <<_ACEOF
25187 #define HAVE_CASINHL 1
25188 _ACEOF
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25196 $as_echo_n "checking for casinl... " >&6; }
25197 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
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 #ifdef HAVE_COMPLEX_H
25207 #include <complex.h>
25208 #endif
25209 #ifdef HAVE_MATH_H
25210 #include <math.h>
25211 #endif
25213 int (*ptr)() = (int (*)())casinl;
25216 main ()
25218 return 0;
25221 _ACEOF
25222 if ac_fn_c_try_link "$LINENO"; then :
25223 gcc_cv_math_func_casinl=yes
25224 else
25225 gcc_cv_math_func_casinl=no
25227 rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25231 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25232 if test $gcc_cv_math_func_casinl = yes; then
25234 cat >>confdefs.h <<_ACEOF
25235 #define HAVE_CASINL 1
25236 _ACEOF
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25244 $as_echo_n "checking for catan... " >&6; }
25245 if test "${gcc_cv_math_func_catan+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25247 else
25248 if test x$gcc_no_link = xyes; then
25249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25252 /* end confdefs.h. */
25254 #ifdef HAVE_COMPLEX_H
25255 #include <complex.h>
25256 #endif
25257 #ifdef HAVE_MATH_H
25258 #include <math.h>
25259 #endif
25261 int (*ptr)() = (int (*)())catan;
25264 main ()
25266 return 0;
25269 _ACEOF
25270 if ac_fn_c_try_link "$LINENO"; then :
25271 gcc_cv_math_func_catan=yes
25272 else
25273 gcc_cv_math_func_catan=no
25275 rm -f core conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25279 $as_echo "$gcc_cv_math_func_catan" >&6; }
25280 if test $gcc_cv_math_func_catan = yes; then
25282 cat >>confdefs.h <<_ACEOF
25283 #define HAVE_CATAN 1
25284 _ACEOF
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25292 $as_echo_n "checking for catanf... " >&6; }
25293 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25294 $as_echo_n "(cached) " >&6
25295 else
25296 if test x$gcc_no_link = xyes; then
25297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25302 #ifdef HAVE_COMPLEX_H
25303 #include <complex.h>
25304 #endif
25305 #ifdef HAVE_MATH_H
25306 #include <math.h>
25307 #endif
25309 int (*ptr)() = (int (*)())catanf;
25312 main ()
25314 return 0;
25317 _ACEOF
25318 if ac_fn_c_try_link "$LINENO"; then :
25319 gcc_cv_math_func_catanf=yes
25320 else
25321 gcc_cv_math_func_catanf=no
25323 rm -f core conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25327 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25328 if test $gcc_cv_math_func_catanf = yes; then
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_CATANF 1
25332 _ACEOF
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25340 $as_echo_n "checking for catanh... " >&6; }
25341 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25342 $as_echo_n "(cached) " >&6
25343 else
25344 if test x$gcc_no_link = xyes; then
25345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25348 /* end confdefs.h. */
25350 #ifdef HAVE_COMPLEX_H
25351 #include <complex.h>
25352 #endif
25353 #ifdef HAVE_MATH_H
25354 #include <math.h>
25355 #endif
25357 int (*ptr)() = (int (*)())catanh;
25360 main ()
25362 return 0;
25365 _ACEOF
25366 if ac_fn_c_try_link "$LINENO"; then :
25367 gcc_cv_math_func_catanh=yes
25368 else
25369 gcc_cv_math_func_catanh=no
25371 rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25375 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25376 if test $gcc_cv_math_func_catanh = yes; then
25378 cat >>confdefs.h <<_ACEOF
25379 #define HAVE_CATANH 1
25380 _ACEOF
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25388 $as_echo_n "checking for catanhf... " >&6; }
25389 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25390 $as_echo_n "(cached) " >&6
25391 else
25392 if test x$gcc_no_link = xyes; then
25393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h. */
25398 #ifdef HAVE_COMPLEX_H
25399 #include <complex.h>
25400 #endif
25401 #ifdef HAVE_MATH_H
25402 #include <math.h>
25403 #endif
25405 int (*ptr)() = (int (*)())catanhf;
25408 main ()
25410 return 0;
25413 _ACEOF
25414 if ac_fn_c_try_link "$LINENO"; then :
25415 gcc_cv_math_func_catanhf=yes
25416 else
25417 gcc_cv_math_func_catanhf=no
25419 rm -f core conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25423 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25424 if test $gcc_cv_math_func_catanhf = yes; then
25426 cat >>confdefs.h <<_ACEOF
25427 #define HAVE_CATANHF 1
25428 _ACEOF
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25436 $as_echo_n "checking for catanhl... " >&6; }
25437 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 if test x$gcc_no_link = xyes; then
25441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25444 /* end confdefs.h. */
25446 #ifdef HAVE_COMPLEX_H
25447 #include <complex.h>
25448 #endif
25449 #ifdef HAVE_MATH_H
25450 #include <math.h>
25451 #endif
25453 int (*ptr)() = (int (*)())catanhl;
25456 main ()
25458 return 0;
25461 _ACEOF
25462 if ac_fn_c_try_link "$LINENO"; then :
25463 gcc_cv_math_func_catanhl=yes
25464 else
25465 gcc_cv_math_func_catanhl=no
25467 rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25471 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25472 if test $gcc_cv_math_func_catanhl = yes; then
25474 cat >>confdefs.h <<_ACEOF
25475 #define HAVE_CATANHL 1
25476 _ACEOF
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25484 $as_echo_n "checking for catanl... " >&6; }
25485 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25487 else
25488 if test x$gcc_no_link = xyes; then
25489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492 /* end confdefs.h. */
25494 #ifdef HAVE_COMPLEX_H
25495 #include <complex.h>
25496 #endif
25497 #ifdef HAVE_MATH_H
25498 #include <math.h>
25499 #endif
25501 int (*ptr)() = (int (*)())catanl;
25504 main ()
25506 return 0;
25509 _ACEOF
25510 if ac_fn_c_try_link "$LINENO"; then :
25511 gcc_cv_math_func_catanl=yes
25512 else
25513 gcc_cv_math_func_catanl=no
25515 rm -f core conftest.err conftest.$ac_objext \
25516 conftest$ac_exeext conftest.$ac_ext
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25519 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25520 if test $gcc_cv_math_func_catanl = yes; then
25522 cat >>confdefs.h <<_ACEOF
25523 #define HAVE_CATANL 1
25524 _ACEOF
25529 # On AIX, clog is present in libm as __clog
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25531 $as_echo_n "checking for __clog in -lm... " >&6; }
25532 if test "${ac_cv_lib_m___clog+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 ac_check_lib_save_LIBS=$LIBS
25536 LIBS="-lm $LIBS"
25537 if test x$gcc_no_link = xyes; then
25538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h. */
25543 /* Override any GCC internal prototype to avoid an error.
25544 Use char because int might match the return type of a GCC
25545 builtin and then its argument prototype would still apply. */
25546 #ifdef __cplusplus
25547 extern "C"
25548 #endif
25549 char __clog ();
25551 main ()
25553 return __clog ();
25555 return 0;
25557 _ACEOF
25558 if ac_fn_c_try_link "$LINENO"; then :
25559 ac_cv_lib_m___clog=yes
25560 else
25561 ac_cv_lib_m___clog=no
25563 rm -f core conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 LIBS=$ac_check_lib_save_LIBS
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25568 $as_echo "$ac_cv_lib_m___clog" >&6; }
25569 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25571 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25576 # Check whether the system has a working stat()
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25579 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25580 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25584 if test "$cross_compiling" = yes; then :
25586 case "${target}" in
25587 *mingw*) libgfor_cv_have_working_stat=no ;;
25588 *) libgfor_cv_have_working_stat=yes;;
25589 esac
25590 else
25591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592 /* end confdefs.h. */
25594 #include <stdio.h>
25595 #include <sys/types.h>
25596 #include <sys/stat.h>
25597 #include <unistd.h>
25599 int main ()
25601 FILE *f, *g;
25602 struct stat st1, st2;
25604 f = fopen ("foo", "w");
25605 g = fopen ("bar", "w");
25606 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25607 return 1;
25608 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25609 return 1;
25610 fclose(f);
25611 fclose(g);
25612 return 0;
25614 _ACEOF
25615 if ac_fn_c_try_run "$LINENO"; then :
25616 libgfor_cv_have_working_stat=yes
25617 else
25618 libgfor_cv_have_working_stat=no
25620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25621 conftest.$ac_objext conftest.beam conftest.$ac_ext
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25626 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25627 if test x"$libgfor_cv_have_working_stat" = xyes; then
25629 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25633 # Check whether __mingw_snprintf() is present
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25636 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25637 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25641 if test x$gcc_no_link = xyes; then
25642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25645 /* end confdefs.h. */
25647 #include <stdio.h>
25648 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25651 main ()
25654 __mingw_snprintf (NULL, 0, "%d\n", 1);
25657 return 0;
25659 _ACEOF
25660 if ac_fn_c_try_link "$LINENO"; then :
25661 eval "libgfor_cv_have_mingw_snprintf=yes"
25662 else
25663 eval "libgfor_cv_have_mingw_snprintf=no"
25665 rm -f core conftest.err conftest.$ac_objext \
25666 conftest$ac_exeext conftest.$ac_ext
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25670 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25671 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25673 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25678 # Check whether libquadmath should be used
25679 # Check whether --enable-libquadmath-support was given.
25680 if test "${enable_libquadmath_support+set}" = set; then :
25681 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25682 else
25683 ENABLE_LIBQUADMATH_SUPPORT=yes
25686 enable_libquadmath_support=
25687 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25688 enable_libquadmath_support=no
25691 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25693 LIBQUADSPEC=
25695 if test "x$enable_libquadmath_support" != xno; then
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25698 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25699 if test "${libgfor_cv_have_float128+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25701 else
25703 if test x$gcc_no_link = xyes; then
25704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705 /* end confdefs.h. */
25707 typedef _Complex float __attribute__((mode(TC))) __complex128;
25709 __float128 foo (__float128 x)
25712 __complex128 z1, z2;
25714 z1 = x;
25715 z2 = x / 7.Q;
25716 z2 /= z1;
25718 return (__float128) z2;
25721 __float128 bar (__float128 x)
25723 return x * __builtin_huge_valq ();
25727 main ()
25730 foo (1.2Q);
25731 bar (1.2Q);
25734 return 0;
25736 _ACEOF
25737 if ac_fn_c_try_compile "$LINENO"; then :
25739 libgfor_cv_have_float128=yes
25741 else
25743 libgfor_cv_have_float128=no
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 else
25748 if test x$gcc_no_link = xyes; then
25749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25752 /* end confdefs.h. */
25754 typedef _Complex float __attribute__((mode(TC))) __complex128;
25756 __float128 foo (__float128 x)
25759 __complex128 z1, z2;
25761 z1 = x;
25762 z2 = x / 7.Q;
25763 z2 /= z1;
25765 return (__float128) z2;
25768 __float128 bar (__float128 x)
25770 return x * __builtin_huge_valq ();
25774 main ()
25777 foo (1.2Q);
25778 bar (1.2Q);
25781 return 0;
25783 _ACEOF
25784 if ac_fn_c_try_link "$LINENO"; then :
25786 libgfor_cv_have_float128=yes
25788 else
25790 libgfor_cv_have_float128=no
25793 rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25798 $as_echo "$libgfor_cv_have_float128" >&6; }
25800 if test "x$libgfor_cv_have_float128" = xyes; then
25802 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25805 ac_xsave_c_werror_flag=$ac_c_werror_flag
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25807 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25808 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25812 # Test for native Solaris options first.
25813 # No whitespace after -z to pass it through -Wl.
25814 libgfor_cv_as_needed_option="-zignore"
25815 libgfor_cv_no_as_needed_option="-zrecord"
25816 save_LDFLAGS="$LDFLAGS"
25817 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25818 libgfor_cv_have_as_needed=no
25820 ac_c_werror_flag=yes
25821 if test x$gcc_no_link = xyes; then
25822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h. */
25828 main ()
25832 return 0;
25834 _ACEOF
25835 if ac_fn_c_try_link "$LINENO"; then :
25836 libgfor_cv_have_as_needed=yes
25837 else
25838 libgfor_cv_have_as_needed=no
25840 rm -f core conftest.err conftest.$ac_objext \
25841 conftest$ac_exeext conftest.$ac_ext
25842 LDFLAGS="$save_LDFLAGS"
25843 if test "x$libgfor_cv_have_as_needed" = xno; then
25844 libgfor_cv_as_needed_option="--as-needed"
25845 libgfor_cv_no_as_needed_option="--no-as-needed"
25846 save_LDFLAGS="$LDFLAGS"
25847 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25848 libgfor_cv_have_as_needed=no
25850 ac_c_werror_flag=yes
25851 if test x$gcc_no_link = xyes; then
25852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25855 /* end confdefs.h. */
25858 main ()
25862 return 0;
25864 _ACEOF
25865 if ac_fn_c_try_link "$LINENO"; then :
25866 libgfor_cv_have_as_needed=yes
25867 else
25868 libgfor_cv_have_as_needed=no
25870 rm -f core conftest.err conftest.$ac_objext \
25871 conftest$ac_exeext conftest.$ac_ext
25872 LDFLAGS="$save_LDFLAGS"
25874 ac_c_werror_flag=$ac_xsave_c_werror_flag
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25878 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25880 if test "x$libgfor_cv_have_as_needed" = xyes; then
25881 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25882 else
25883 LIBQUADSPEC="-lquadmath"
25885 if test -f ../libquadmath/libquadmath.la; then
25886 LIBQUADLIB=../libquadmath/libquadmath.la
25887 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25888 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25889 else
25890 LIBQUADLIB="-lquadmath"
25891 LIBQUADLIB_DEP=
25892 LIBQUADINCLUDE=
25895 else
25896 # for --disable-quadmath
25897 LIBQUADLIB=
25898 LIBQUADLIB_DEP=
25899 LIBQUADINCLUDE=
25907 if test "x$libgfor_cv_have_float128" = xyes; then
25908 LIBGFOR_BUILD_QUAD_TRUE=
25909 LIBGFOR_BUILD_QUAD_FALSE='#'
25910 else
25911 LIBGFOR_BUILD_QUAD_TRUE='#'
25912 LIBGFOR_BUILD_QUAD_FALSE=
25917 # Check for GNU libc feenableexcept
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25919 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25920 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25921 $as_echo_n "(cached) " >&6
25922 else
25923 ac_check_lib_save_LIBS=$LIBS
25924 LIBS="-lm $LIBS"
25925 if test x$gcc_no_link = xyes; then
25926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25929 /* end confdefs.h. */
25931 /* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25934 #ifdef __cplusplus
25935 extern "C"
25936 #endif
25937 char feenableexcept ();
25939 main ()
25941 return feenableexcept ();
25943 return 0;
25945 _ACEOF
25946 if ac_fn_c_try_link "$LINENO"; then :
25947 ac_cv_lib_m_feenableexcept=yes
25948 else
25949 ac_cv_lib_m_feenableexcept=no
25951 rm -f core conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
25953 LIBS=$ac_check_lib_save_LIBS
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25956 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25957 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25958 have_feenableexcept=yes
25959 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25964 # At least for glibc, clock_gettime is in librt. But don't
25965 # pull that in if it still doesn't give us the function we want. This
25966 # test is copied from libgomp, and modified to not link in -lrt as
25967 # libgfortran calls clock_gettime via a weak reference if it's found
25968 # in librt.
25969 if test "$ac_cv_func_clock_gettime" = no; then
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25971 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25972 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 ac_check_lib_save_LIBS=$LIBS
25976 LIBS="-lrt $LIBS"
25977 if test x$gcc_no_link = xyes; then
25978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25983 /* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25986 #ifdef __cplusplus
25987 extern "C"
25988 #endif
25989 char clock_gettime ();
25991 main ()
25993 return clock_gettime ();
25995 return 0;
25997 _ACEOF
25998 if ac_fn_c_try_link "$LINENO"; then :
25999 ac_cv_lib_rt_clock_gettime=yes
26000 else
26001 ac_cv_lib_rt_clock_gettime=no
26003 rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
26005 LIBS=$ac_check_lib_save_LIBS
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26008 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26009 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
26011 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26017 # Check for SysV fpsetmask
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26020 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26021 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
26022 $as_echo_n "(cached) " >&6
26023 else
26025 if test x$gcc_no_link = xyes; then
26026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26029 /* end confdefs.h. */
26031 #if HAVE_FLOATINGPOINT_H
26032 # include <floatingpoint.h>
26033 #endif /* HAVE_FLOATINGPOINT_H */
26034 #if HAVE_IEEEFP_H
26035 # include <ieeefp.h>
26036 #endif /* HAVE_IEEEFP_H */
26038 main ()
26040 fpsetmask(0);
26042 return 0;
26044 _ACEOF
26045 if ac_fn_c_try_link "$LINENO"; then :
26046 eval "libgfor_cv_have_fpsetmask=yes"
26047 else
26048 eval "libgfor_cv_have_fpsetmask=no"
26050 rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26055 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26056 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26057 have_fpsetmask=yes
26059 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26063 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26064 #include <ieeefp.h>
26065 #include <math.h>
26068 if test "x$ac_cv_type_fp_except" = x""yes; then :
26070 cat >>confdefs.h <<_ACEOF
26071 #define HAVE_FP_EXCEPT 1
26072 _ACEOF
26076 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26077 #include <ieeefp.h>
26078 #include <math.h>
26081 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26083 cat >>confdefs.h <<_ACEOF
26084 #define HAVE_FP_EXCEPT_T 1
26085 _ACEOF
26090 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26091 #include <ieeefp.h>
26092 #include <math.h>
26095 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26097 cat >>confdefs.h <<_ACEOF
26098 #define HAVE_FP_RND 1
26099 _ACEOF
26103 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26104 #include <ieeefp.h>
26105 #include <math.h>
26108 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26110 cat >>confdefs.h <<_ACEOF
26111 #define HAVE_FP_RND_T 1
26112 _ACEOF
26118 # Check whether we have fpsetsticky or fpresetsticky
26119 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26120 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
26121 have_fpsetsticky=yes
26122 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26126 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26127 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
26128 have_fpresetsticky=yes
26129 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26134 # Check for AIX fp_trap and fp_enable
26135 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26136 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26137 have_fp_trap=yes
26138 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26142 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26143 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26144 have_fp_enable=yes
26145 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26150 # Runs configure.host to set up necessary host-dependent shell variables.
26151 # We then display a message about it, and propagate them through the
26152 # build chain.
26153 . ${srcdir}/configure.host
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26155 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26157 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26158 FPU_HOST_HEADER=config/${fpu_host}.h
26161 # Whether we will build the IEEE modules
26162 if test x${ieee_support} = xyes; then
26163 IEEE_SUPPORT_TRUE=
26164 IEEE_SUPPORT_FALSE='#'
26165 else
26166 IEEE_SUPPORT_TRUE='#'
26167 IEEE_SUPPORT_FALSE=
26172 # Some targets require additional compiler options for IEEE compatibility.
26173 IEEE_FLAGS="${ieee_flags}"
26177 # Check for POSIX getpwuid_r
26179 # There are two versions of getpwuid_r, the POSIX one with 5
26180 # arguments, and another one with 4 arguments used by at least HP-UX
26181 # 10.2.
26182 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26184 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26185 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
26187 else
26189 if test x$gcc_no_link = xyes; then
26190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26195 #include <stdio.h>
26196 #include <sys/types.h>
26197 #include <pwd.h>
26199 main ()
26202 getpwuid_r(0, NULL, NULL, 0, NULL);
26205 return 0;
26207 _ACEOF
26208 if ac_fn_c_try_link "$LINENO"; then :
26209 libgfor_cv_posix_getpwuid_r="yes"
26210 else
26211 libgfor_cv_posix_getpwuid_r="no"
26213 rm -f core conftest.err conftest.$ac_objext \
26214 conftest$ac_exeext conftest.$ac_ext
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26217 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26219 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26221 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26226 # Check out attribute support.
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26229 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26230 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26232 else
26234 save_CFLAGS="$CFLAGS"
26235 CFLAGS="$CFLAGS -Werror"
26236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26237 /* end confdefs.h. */
26238 void __attribute__((visibility("hidden"))) foo(void) { }
26240 main ()
26244 return 0;
26246 _ACEOF
26247 if ac_fn_c_try_compile "$LINENO"; then :
26248 libgfor_cv_have_attribute_visibility=yes
26249 else
26250 libgfor_cv_have_attribute_visibility=no
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253 CFLAGS="$save_CFLAGS"
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26256 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26257 if test $libgfor_cv_have_attribute_visibility = yes; then
26259 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26264 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26265 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26266 $as_echo_n "(cached) " >&6
26267 else
26269 save_CFLAGS="$CFLAGS"
26270 CFLAGS="$CFLAGS -Werror"
26271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h. */
26273 void __attribute__((dllexport)) foo(void) { }
26275 main ()
26279 return 0;
26281 _ACEOF
26282 if ac_fn_c_try_compile "$LINENO"; then :
26283 libgfor_cv_have_attribute_dllexport=yes
26284 else
26285 libgfor_cv_have_attribute_dllexport=no
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288 CFLAGS="$save_CFLAGS"
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26291 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26292 if test $libgfor_cv_have_attribute_dllexport = yes; then
26294 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26299 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26300 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26301 $as_echo_n "(cached) " >&6
26302 else
26304 if test x$gcc_no_link = xyes; then
26305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26308 /* end confdefs.h. */
26310 void foo(void) { }
26311 extern void bar(void) __attribute__((alias("foo")));
26313 main ()
26315 bar();
26317 return 0;
26319 _ACEOF
26320 if ac_fn_c_try_link "$LINENO"; then :
26321 libgfor_cv_have_attribute_alias=yes
26322 else
26323 libgfor_cv_have_attribute_alias=no
26325 rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26329 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26330 if test $libgfor_cv_have_attribute_alias = yes; then
26332 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26336 # Check out sync builtins support.
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26339 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26340 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26341 $as_echo_n "(cached) " >&6
26342 else
26344 if test x$gcc_no_link = xyes; then
26345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h. */
26349 int foovar = 0;
26351 main ()
26354 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26355 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26357 return 0;
26359 _ACEOF
26360 if ac_fn_c_try_link "$LINENO"; then :
26361 libgfor_cv_have_sync_fetch_and_add=yes
26362 else
26363 libgfor_cv_have_sync_fetch_and_add=no
26365 rm -f core conftest.err conftest.$ac_objext \
26366 conftest$ac_exeext conftest.$ac_ext
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26369 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26370 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26372 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26376 # Check out #pragma weak.
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26379 $as_echo_n "checking whether pragma weak works... " >&6; }
26380 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26381 $as_echo_n "(cached) " >&6
26382 else
26384 gfor_save_CFLAGS="$CFLAGS"
26385 CFLAGS="$CFLAGS -Wunknown-pragmas"
26386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387 /* end confdefs.h. */
26389 void foo (void);
26390 #pragma weak foo
26393 main ()
26395 if (foo) foo ();
26397 return 0;
26399 _ACEOF
26400 if ac_fn_c_try_compile "$LINENO"; then :
26401 libgfor_cv_have_pragma_weak=yes
26402 else
26403 libgfor_cv_have_pragma_weak=no
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26408 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26409 if test $libgfor_cv_have_pragma_weak = yes; then
26411 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26414 case "$host" in
26415 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26417 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26420 esac
26422 # Various other checks on target
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26425 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26426 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26430 if test "$cross_compiling" = yes; then :
26432 case "${target}" in
26433 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26434 *) libgfor_cv_have_unlink_open_file=yes;;
26435 esac
26436 else
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26440 #include <errno.h>
26441 #include <fcntl.h>
26442 #include <unistd.h>
26443 #include <sys/stat.h>
26445 int main ()
26447 int fd;
26449 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26450 if (fd <= 0)
26451 return 0;
26452 if (unlink ("testfile") == -1)
26453 return 1;
26454 write (fd, "This is a test\n", 15);
26455 close (fd);
26457 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26458 return 0;
26459 else
26460 return 1;
26462 _ACEOF
26463 if ac_fn_c_try_run "$LINENO"; then :
26464 libgfor_cv_have_unlink_open_file=yes
26465 else
26466 libgfor_cv_have_unlink_open_file=no
26468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26469 conftest.$ac_objext conftest.beam conftest.$ac_ext
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26474 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26475 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26477 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26481 # Check whether line terminator is LF or CRLF
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26484 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26485 if test "${libgfor_cv_have_crlf+set}" = set; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26489 if test "$cross_compiling" = yes; then :
26491 case "${target}" in
26492 *mingw*) libgfor_cv_have_crlf=yes ;;
26493 *) libgfor_cv_have_crlf=no;;
26494 esac
26495 else
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h. */
26499 /* This test program should exit with status 0 if system uses a CRLF as
26500 line terminator, and status 1 otherwise.
26501 Since it is used to check for mingw systems, and should return 0 in any
26502 other case, in case of a failure we will not use CRLF. */
26503 #include <sys/stat.h>
26504 #include <stdlib.h>
26505 #include <fcntl.h>
26506 #include <stdio.h>
26508 int main ()
26510 #ifndef O_BINARY
26511 exit(1);
26512 #else
26513 int fd, bytes;
26514 char buff[5];
26516 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26517 if (fd < 0)
26518 exit(1);
26519 if (write (fd, "\n", 1) < 0)
26520 perror ("write");
26522 close (fd);
26524 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26525 exit(1);
26526 bytes = read (fd, buff, 5);
26527 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26528 exit(0);
26529 else
26530 exit(1);
26531 #endif
26533 _ACEOF
26534 if ac_fn_c_try_run "$LINENO"; then :
26535 libgfor_cv_have_crlf=yes
26536 else
26537 libgfor_cv_have_crlf=no
26539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26540 conftest.$ac_objext conftest.beam conftest.$ac_ext
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26545 $as_echo "$libgfor_cv_have_crlf" >&6; }
26546 if test x"$libgfor_cv_have_crlf" = xyes; then
26548 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26552 # Check whether we have _Unwind_GetIPInfo for backtrace
26555 # Check whether --with-system-libunwind was given.
26556 if test "${with_system_libunwind+set}" = set; then :
26557 withval=$with_system_libunwind;
26560 # If system-libunwind was not specifically set, pick a default setting.
26561 if test x$with_system_libunwind = x; then
26562 case ${target} in
26563 ia64-*-hpux*) with_system_libunwind=yes ;;
26564 *) with_system_libunwind=no ;;
26565 esac
26567 # Based on system-libunwind and target, do we have ipinfo?
26568 if test x$with_system_libunwind = xyes; then
26569 case ${target} in
26570 ia64-*-*) have_unwind_getipinfo=no ;;
26571 *) have_unwind_getipinfo=yes ;;
26572 esac
26573 else
26574 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26576 case ${target} in
26577 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26578 *) have_unwind_getipinfo=yes ;;
26579 esac
26583 if test x$have_unwind_getipinfo = xyes; then
26585 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26590 cat >confcache <<\_ACEOF
26591 # This file is a shell script that caches the results of configure
26592 # tests run on this system so they can be shared between configure
26593 # scripts and configure runs, see configure's option --config-cache.
26594 # It is not useful on other systems. If it contains results you don't
26595 # want to keep, you may remove or edit it.
26597 # config.status only pays attention to the cache file if you give it
26598 # the --recheck option to rerun configure.
26600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26602 # following values.
26604 _ACEOF
26606 # The following way of writing the cache mishandles newlines in values,
26607 # but we know of no workaround that is simple, portable, and efficient.
26608 # So, we kill variables containing newlines.
26609 # Ultrix sh set writes to stderr and can't be redirected directly,
26610 # and sets the high bit in the cache file unless we assign to the vars.
26612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26613 eval ac_val=\$$ac_var
26614 case $ac_val in #(
26615 *${as_nl}*)
26616 case $ac_var in #(
26617 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26619 esac
26620 case $ac_var in #(
26621 _ | IFS | as_nl) ;; #(
26622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26623 *) { eval $ac_var=; unset $ac_var;} ;;
26624 esac ;;
26625 esac
26626 done
26628 (set) 2>&1 |
26629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26630 *${as_nl}ac_space=\ *)
26631 # `set' does not quote correctly, so add quotes: double-quote
26632 # substitution turns \\\\ into \\, and sed turns \\ into \.
26633 sed -n \
26634 "s/'/'\\\\''/g;
26635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26636 ;; #(
26638 # `set' quotes correctly as required by POSIX, so do not add quotes.
26639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26641 esac |
26642 sort
26644 sed '
26645 /^ac_cv_env_/b end
26646 t clear
26647 :clear
26648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26649 t end
26650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26651 :end' >>confcache
26652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26653 if test -w "$cache_file"; then
26654 test "x$cache_file" != "x/dev/null" &&
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26656 $as_echo "$as_me: updating cache $cache_file" >&6;}
26657 cat confcache >$cache_file
26658 else
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26663 rm -f confcache
26665 if test ${multilib} = yes; then
26666 multilib_arg="--enable-multilib"
26667 else
26668 multilib_arg=
26671 # Write our Makefile and spec file.
26672 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26674 cat >confcache <<\_ACEOF
26675 # This file is a shell script that caches the results of configure
26676 # tests run on this system so they can be shared between configure
26677 # scripts and configure runs, see configure's option --config-cache.
26678 # It is not useful on other systems. If it contains results you don't
26679 # want to keep, you may remove or edit it.
26681 # config.status only pays attention to the cache file if you give it
26682 # the --recheck option to rerun configure.
26684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26686 # following values.
26688 _ACEOF
26690 # The following way of writing the cache mishandles newlines in values,
26691 # but we know of no workaround that is simple, portable, and efficient.
26692 # So, we kill variables containing newlines.
26693 # Ultrix sh set writes to stderr and can't be redirected directly,
26694 # and sets the high bit in the cache file unless we assign to the vars.
26696 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26697 eval ac_val=\$$ac_var
26698 case $ac_val in #(
26699 *${as_nl}*)
26700 case $ac_var in #(
26701 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26702 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26703 esac
26704 case $ac_var in #(
26705 _ | IFS | as_nl) ;; #(
26706 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26707 *) { eval $ac_var=; unset $ac_var;} ;;
26708 esac ;;
26709 esac
26710 done
26712 (set) 2>&1 |
26713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26714 *${as_nl}ac_space=\ *)
26715 # `set' does not quote correctly, so add quotes: double-quote
26716 # substitution turns \\\\ into \\, and sed turns \\ into \.
26717 sed -n \
26718 "s/'/'\\\\''/g;
26719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26720 ;; #(
26722 # `set' quotes correctly as required by POSIX, so do not add quotes.
26723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26725 esac |
26726 sort
26728 sed '
26729 /^ac_cv_env_/b end
26730 t clear
26731 :clear
26732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26733 t end
26734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26735 :end' >>confcache
26736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26737 if test -w "$cache_file"; then
26738 test "x$cache_file" != "x/dev/null" &&
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26740 $as_echo "$as_me: updating cache $cache_file" >&6;}
26741 cat confcache >$cache_file
26742 else
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26744 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26747 rm -f confcache
26749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26750 # Let make expand exec_prefix.
26751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26753 DEFS=-DHAVE_CONFIG_H
26755 ac_libobjs=
26756 ac_ltlibobjs=
26757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26758 # 1. Remove the extension, and $U if already installed.
26759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26762 # will be set to the directory where LIBOBJS objects are built.
26763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26765 done
26766 LIBOBJS=$ac_libobjs
26768 LTLIBOBJS=$ac_ltlibobjs
26771 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26772 as_fn_error "conditional \"onestep\" was never defined.
26773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26775 if test -n "$EXEEXT"; then
26776 am__EXEEXT_TRUE=
26777 am__EXEEXT_FALSE='#'
26778 else
26779 am__EXEEXT_TRUE='#'
26780 am__EXEEXT_FALSE=
26783 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26784 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26787 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26788 as_fn_error "conditional \"AMDEP\" was never defined.
26789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26791 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26792 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26795 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26796 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26799 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26800 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26803 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26804 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26807 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26808 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26811 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26812 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26815 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26816 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820 : ${CONFIG_STATUS=./config.status}
26821 ac_write_fail=0
26822 ac_clean_files_save=$ac_clean_files
26823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26826 as_write_fail=0
26827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26828 #! $SHELL
26829 # Generated by $as_me.
26830 # Run this file to recreate the current configuration.
26831 # Compiler output produced by configure, useful for debugging
26832 # configure, is in config.log if it exists.
26834 debug=false
26835 ac_cs_recheck=false
26836 ac_cs_silent=false
26838 SHELL=\${CONFIG_SHELL-$SHELL}
26839 export SHELL
26840 _ASEOF
26841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26842 ## -------------------- ##
26843 ## M4sh Initialization. ##
26844 ## -------------------- ##
26846 # Be more Bourne compatible
26847 DUALCASE=1; export DUALCASE # for MKS sh
26848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26849 emulate sh
26850 NULLCMD=:
26851 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26852 # is contrary to our usage. Disable this feature.
26853 alias -g '${1+"$@"}'='"$@"'
26854 setopt NO_GLOB_SUBST
26855 else
26856 case `(set -o) 2>/dev/null` in #(
26857 *posix*) :
26858 set -o posix ;; #(
26859 *) :
26861 esac
26865 as_nl='
26867 export as_nl
26868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26872 # Prefer a ksh shell builtin over an external printf program on Solaris,
26873 # but without wasting forks for bash or zsh.
26874 if test -z "$BASH_VERSION$ZSH_VERSION" \
26875 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26876 as_echo='print -r --'
26877 as_echo_n='print -rn --'
26878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26879 as_echo='printf %s\n'
26880 as_echo_n='printf %s'
26881 else
26882 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26883 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26884 as_echo_n='/usr/ucb/echo -n'
26885 else
26886 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26887 as_echo_n_body='eval
26888 arg=$1;
26889 case $arg in #(
26890 *"$as_nl"*)
26891 expr "X$arg" : "X\\(.*\\)$as_nl";
26892 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26893 esac;
26894 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26896 export as_echo_n_body
26897 as_echo_n='sh -c $as_echo_n_body as_echo'
26899 export as_echo_body
26900 as_echo='sh -c $as_echo_body as_echo'
26903 # The user is always right.
26904 if test "${PATH_SEPARATOR+set}" != set; then
26905 PATH_SEPARATOR=:
26906 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26907 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26908 PATH_SEPARATOR=';'
26913 # IFS
26914 # We need space, tab and new line, in precisely that order. Quoting is
26915 # there to prevent editors from complaining about space-tab.
26916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26917 # splitting by setting IFS to empty value.)
26918 IFS=" "" $as_nl"
26920 # Find who we are. Look in the path if we contain no directory separator.
26921 case $0 in #((
26922 *[\\/]* ) as_myself=$0 ;;
26923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26924 for as_dir in $PATH
26926 IFS=$as_save_IFS
26927 test -z "$as_dir" && as_dir=.
26928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26929 done
26930 IFS=$as_save_IFS
26933 esac
26934 # We did not find ourselves, most probably we were run as `sh COMMAND'
26935 # in which case we are not to be found in the path.
26936 if test "x$as_myself" = x; then
26937 as_myself=$0
26939 if test ! -f "$as_myself"; then
26940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26941 exit 1
26944 # Unset variables that we do not need and which cause bugs (e.g. in
26945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26946 # suppresses any "Segmentation fault" message there. '((' could
26947 # trigger a bug in pdksh 5.2.14.
26948 for as_var in BASH_ENV ENV MAIL MAILPATH
26949 do eval test x\${$as_var+set} = xset \
26950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26951 done
26952 PS1='$ '
26953 PS2='> '
26954 PS4='+ '
26956 # NLS nuisances.
26957 LC_ALL=C
26958 export LC_ALL
26959 LANGUAGE=C
26960 export LANGUAGE
26962 # CDPATH.
26963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26966 # as_fn_error ERROR [LINENO LOG_FD]
26967 # ---------------------------------
26968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26970 # script with status $?, using 1 if that was 0.
26971 as_fn_error ()
26973 as_status=$?; test $as_status -eq 0 && as_status=1
26974 if test "$3"; then
26975 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26978 $as_echo "$as_me: error: $1" >&2
26979 as_fn_exit $as_status
26980 } # as_fn_error
26983 # as_fn_set_status STATUS
26984 # -----------------------
26985 # Set $? to STATUS, without forking.
26986 as_fn_set_status ()
26988 return $1
26989 } # as_fn_set_status
26991 # as_fn_exit STATUS
26992 # -----------------
26993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26994 as_fn_exit ()
26996 set +e
26997 as_fn_set_status $1
26998 exit $1
26999 } # as_fn_exit
27001 # as_fn_unset VAR
27002 # ---------------
27003 # Portably unset VAR.
27004 as_fn_unset ()
27006 { eval $1=; unset $1;}
27008 as_unset=as_fn_unset
27009 # as_fn_append VAR VALUE
27010 # ----------------------
27011 # Append the text in VALUE to the end of the definition contained in VAR. Take
27012 # advantage of any shell optimizations that allow amortized linear growth over
27013 # repeated appends, instead of the typical quadratic growth present in naive
27014 # implementations.
27015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27016 eval 'as_fn_append ()
27018 eval $1+=\$2
27020 else
27021 as_fn_append ()
27023 eval $1=\$$1\$2
27025 fi # as_fn_append
27027 # as_fn_arith ARG...
27028 # ------------------
27029 # Perform arithmetic evaluation on the ARGs, and store the result in the
27030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27031 # must be portable across $(()) and expr.
27032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27033 eval 'as_fn_arith ()
27035 as_val=$(( $* ))
27037 else
27038 as_fn_arith ()
27040 as_val=`expr "$@" || test $? -eq 1`
27042 fi # as_fn_arith
27045 if expr a : '\(a\)' >/dev/null 2>&1 &&
27046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27047 as_expr=expr
27048 else
27049 as_expr=false
27052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27053 as_basename=basename
27054 else
27055 as_basename=false
27058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27059 as_dirname=dirname
27060 else
27061 as_dirname=false
27064 as_me=`$as_basename -- "$0" ||
27065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27066 X"$0" : 'X\(//\)$' \| \
27067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27068 $as_echo X/"$0" |
27069 sed '/^.*\/\([^/][^/]*\)\/*$/{
27070 s//\1/
27073 /^X\/\(\/\/\)$/{
27074 s//\1/
27077 /^X\/\(\/\).*/{
27078 s//\1/
27081 s/.*/./; q'`
27083 # Avoid depending upon Character Ranges.
27084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27087 as_cr_digits='0123456789'
27088 as_cr_alnum=$as_cr_Letters$as_cr_digits
27090 ECHO_C= ECHO_N= ECHO_T=
27091 case `echo -n x` in #(((((
27092 -n*)
27093 case `echo 'xy\c'` in
27094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27095 xy) ECHO_C='\c';;
27096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27097 ECHO_T=' ';;
27098 esac;;
27100 ECHO_N='-n';;
27101 esac
27103 rm -f conf$$ conf$$.exe conf$$.file
27104 if test -d conf$$.dir; then
27105 rm -f conf$$.dir/conf$$.file
27106 else
27107 rm -f conf$$.dir
27108 mkdir conf$$.dir 2>/dev/null
27110 if (echo >conf$$.file) 2>/dev/null; then
27111 if ln -s conf$$.file conf$$ 2>/dev/null; then
27112 as_ln_s='ln -s'
27113 # ... but there are two gotchas:
27114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27116 # In both cases, we have to default to `cp -p'.
27117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27118 as_ln_s='cp -p'
27119 elif ln conf$$.file conf$$ 2>/dev/null; then
27120 as_ln_s=ln
27121 else
27122 as_ln_s='cp -p'
27124 else
27125 as_ln_s='cp -p'
27127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27128 rmdir conf$$.dir 2>/dev/null
27131 # as_fn_mkdir_p
27132 # -------------
27133 # Create "$as_dir" as a directory, including parents if necessary.
27134 as_fn_mkdir_p ()
27137 case $as_dir in #(
27138 -*) as_dir=./$as_dir;;
27139 esac
27140 test -d "$as_dir" || eval $as_mkdir_p || {
27141 as_dirs=
27142 while :; do
27143 case $as_dir in #(
27144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27145 *) as_qdir=$as_dir;;
27146 esac
27147 as_dirs="'$as_qdir' $as_dirs"
27148 as_dir=`$as_dirname -- "$as_dir" ||
27149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27150 X"$as_dir" : 'X\(//\)[^/]' \| \
27151 X"$as_dir" : 'X\(//\)$' \| \
27152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27153 $as_echo X"$as_dir" |
27154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27155 s//\1/
27158 /^X\(\/\/\)[^/].*/{
27159 s//\1/
27162 /^X\(\/\/\)$/{
27163 s//\1/
27166 /^X\(\/\).*/{
27167 s//\1/
27170 s/.*/./; q'`
27171 test -d "$as_dir" && break
27172 done
27173 test -z "$as_dirs" || eval "mkdir $as_dirs"
27174 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27177 } # as_fn_mkdir_p
27178 if mkdir -p . 2>/dev/null; then
27179 as_mkdir_p='mkdir -p "$as_dir"'
27180 else
27181 test -d ./-p && rmdir ./-p
27182 as_mkdir_p=false
27185 if test -x / >/dev/null 2>&1; then
27186 as_test_x='test -x'
27187 else
27188 if ls -dL / >/dev/null 2>&1; then
27189 as_ls_L_option=L
27190 else
27191 as_ls_L_option=
27193 as_test_x='
27194 eval sh -c '\''
27195 if test -d "$1"; then
27196 test -d "$1/.";
27197 else
27198 case $1 in #(
27199 -*)set "./$1";;
27200 esac;
27201 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27202 ???[sx]*):;;*)false;;esac;fi
27203 '\'' sh
27206 as_executable_p=$as_test_x
27208 # Sed expression to map a string onto a valid CPP name.
27209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27211 # Sed expression to map a string onto a valid variable name.
27212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27215 exec 6>&1
27216 ## ----------------------------------- ##
27217 ## Main body of $CONFIG_STATUS script. ##
27218 ## ----------------------------------- ##
27219 _ASEOF
27220 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27223 # Save the log message, to keep $0 and so on meaningful, and to
27224 # report actual input values of CONFIG_FILES etc. instead of their
27225 # values after options handling.
27226 ac_log="
27227 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27228 generated by GNU Autoconf 2.64. Invocation command line was
27230 CONFIG_FILES = $CONFIG_FILES
27231 CONFIG_HEADERS = $CONFIG_HEADERS
27232 CONFIG_LINKS = $CONFIG_LINKS
27233 CONFIG_COMMANDS = $CONFIG_COMMANDS
27234 $ $0 $@
27236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27239 _ACEOF
27241 case $ac_config_files in *"
27242 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27243 esac
27245 case $ac_config_headers in *"
27246 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27247 esac
27250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27251 # Files that config.status was made for.
27252 config_files="$ac_config_files"
27253 config_headers="$ac_config_headers"
27254 config_commands="$ac_config_commands"
27256 _ACEOF
27258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27259 ac_cs_usage="\
27260 \`$as_me' instantiates files and other configuration actions
27261 from templates according to the current configuration. Unless the files
27262 and actions are specified as TAGs, all are instantiated by default.
27264 Usage: $0 [OPTION]... [TAG]...
27266 -h, --help print this help, then exit
27267 -V, --version print version number and configuration settings, then exit
27268 -q, --quiet, --silent
27269 do not print progress messages
27270 -d, --debug don't remove temporary files
27271 --recheck update $as_me by reconfiguring in the same conditions
27272 --file=FILE[:TEMPLATE]
27273 instantiate the configuration file FILE
27274 --header=FILE[:TEMPLATE]
27275 instantiate the configuration header FILE
27277 Configuration files:
27278 $config_files
27280 Configuration headers:
27281 $config_headers
27283 Configuration commands:
27284 $config_commands
27286 Report bugs to the package provider.
27287 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27288 General help using GNU software: <http://www.gnu.org/gethelp/>."
27290 _ACEOF
27291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27292 ac_cs_version="\\
27293 GNU Fortran Runtime Library config.status 0.3
27294 configured by $0, generated by GNU Autoconf 2.64,
27295 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27297 Copyright (C) 2009 Free Software Foundation, Inc.
27298 This config.status script is free software; the Free Software Foundation
27299 gives unlimited permission to copy, distribute and modify it."
27301 ac_pwd='$ac_pwd'
27302 srcdir='$srcdir'
27303 INSTALL='$INSTALL'
27304 MKDIR_P='$MKDIR_P'
27305 AWK='$AWK'
27306 test -n "\$AWK" || AWK=awk
27307 _ACEOF
27309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27310 # The default lists apply if the user does not specify any file.
27311 ac_need_defaults=:
27312 while test $# != 0
27314 case $1 in
27315 --*=*)
27316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27318 ac_shift=:
27321 ac_option=$1
27322 ac_optarg=$2
27323 ac_shift=shift
27325 esac
27327 case $ac_option in
27328 # Handling of the options.
27329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27330 ac_cs_recheck=: ;;
27331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27332 $as_echo "$ac_cs_version"; exit ;;
27333 --debug | --debu | --deb | --de | --d | -d )
27334 debug=: ;;
27335 --file | --fil | --fi | --f )
27336 $ac_shift
27337 case $ac_optarg in
27338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27339 esac
27340 as_fn_append CONFIG_FILES " '$ac_optarg'"
27341 ac_need_defaults=false;;
27342 --header | --heade | --head | --hea )
27343 $ac_shift
27344 case $ac_optarg in
27345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27346 esac
27347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27348 ac_need_defaults=false;;
27349 --he | --h)
27350 # Conflict between --help and --header
27351 as_fn_error "ambiguous option: \`$1'
27352 Try \`$0 --help' for more information.";;
27353 --help | --hel | -h )
27354 $as_echo "$ac_cs_usage"; exit ;;
27355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27357 ac_cs_silent=: ;;
27359 # This is an error.
27360 -*) as_fn_error "unrecognized option: \`$1'
27361 Try \`$0 --help' for more information." ;;
27363 *) as_fn_append ac_config_targets " $1"
27364 ac_need_defaults=false ;;
27366 esac
27367 shift
27368 done
27370 ac_configure_extra_args=
27372 if $ac_cs_silent; then
27373 exec 6>/dev/null
27374 ac_configure_extra_args="$ac_configure_extra_args --silent"
27377 _ACEOF
27378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27379 if \$ac_cs_recheck; then
27380 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27381 shift
27382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27383 CONFIG_SHELL='$SHELL'
27384 export CONFIG_SHELL
27385 exec "\$@"
27388 _ACEOF
27389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27390 exec 5>>config.log
27392 echo
27393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27394 ## Running $as_me. ##
27395 _ASBOX
27396 $as_echo "$ac_log"
27397 } >&5
27399 _ACEOF
27400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27402 # INIT-COMMANDS
27405 srcdir="$srcdir"
27406 host="$host"
27407 target="$target"
27408 with_multisubdir="$with_multisubdir"
27409 with_multisrctop="$with_multisrctop"
27410 with_target_subdir="$with_target_subdir"
27411 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27412 multi_basedir="$multi_basedir"
27413 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27414 CC="$CC"
27415 CXX="$CXX"
27416 GFORTRAN="$GFORTRAN"
27417 GCJ="$GCJ"
27418 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27421 # The HP-UX ksh and POSIX shell print the target directory to stdout
27422 # if CDPATH is set.
27423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27425 sed_quote_subst='$sed_quote_subst'
27426 double_quote_subst='$double_quote_subst'
27427 delay_variable_subst='$delay_variable_subst'
27428 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27429 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27430 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27431 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27456 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27457 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27458 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27459 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27460 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27463 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27464 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27465 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27466 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27467 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27468 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27469 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27470 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27471 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27472 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27473 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27474 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27475 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27476 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"`'
27477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27480 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27481 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27485 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27486 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27487 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27488 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27489 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27490 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27491 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27492 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27493 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27494 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27495 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27496 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27497 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27498 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27499 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27500 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27501 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27502 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27503 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27504 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27505 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27506 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27507 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27508 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27517 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27518 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27519 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27520 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27521 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27522 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27541 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27542 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27543 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27544 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27545 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27546 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27547 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27548 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27549 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27550 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27551 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27552 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27553 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27554 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27555 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27556 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27557 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27558 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27559 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27560 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27561 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27562 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27563 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27564 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27565 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27566 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27567 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27568 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27569 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27570 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27571 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27572 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27573 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27574 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27575 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27576 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27577 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27578 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27579 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27580 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27581 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27582 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27583 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27584 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27585 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27586 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27587 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27588 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27589 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27590 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27591 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27592 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27593 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27594 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27595 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27596 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27597 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27598 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27599 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27600 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27601 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27602 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27604 LTCC='$LTCC'
27605 LTCFLAGS='$LTCFLAGS'
27606 compiler='$compiler_DEFAULT'
27608 # A function that is used when there is no print builtin or printf.
27609 func_fallback_echo ()
27611 eval 'cat <<_LTECHO_EOF
27613 _LTECHO_EOF'
27616 # Quote evaled strings.
27617 for var in SHELL \
27618 ECHO \
27619 SED \
27620 GREP \
27621 EGREP \
27622 FGREP \
27623 LD \
27624 NM \
27625 LN_S \
27626 lt_SP2NL \
27627 lt_NL2SP \
27628 reload_flag \
27629 OBJDUMP \
27630 deplibs_check_method \
27631 file_magic_cmd \
27632 AR \
27633 AR_FLAGS \
27634 STRIP \
27635 RANLIB \
27636 CC \
27637 CFLAGS \
27638 compiler \
27639 lt_cv_sys_global_symbol_pipe \
27640 lt_cv_sys_global_symbol_to_cdecl \
27641 lt_cv_sys_global_symbol_to_c_name_address \
27642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27643 lt_prog_compiler_no_builtin_flag \
27644 lt_prog_compiler_wl \
27645 lt_prog_compiler_pic \
27646 lt_prog_compiler_static \
27647 lt_cv_prog_compiler_c_o \
27648 need_locks \
27649 DSYMUTIL \
27650 NMEDIT \
27651 LIPO \
27652 OTOOL \
27653 OTOOL64 \
27654 shrext_cmds \
27655 export_dynamic_flag_spec \
27656 whole_archive_flag_spec \
27657 compiler_needs_object \
27658 with_gnu_ld \
27659 allow_undefined_flag \
27660 no_undefined_flag \
27661 hardcode_libdir_flag_spec \
27662 hardcode_libdir_flag_spec_ld \
27663 hardcode_libdir_separator \
27664 fix_srcfile_path \
27665 exclude_expsyms \
27666 include_expsyms \
27667 file_list_spec \
27668 variables_saved_for_relink \
27669 libname_spec \
27670 library_names_spec \
27671 soname_spec \
27672 install_override_mode \
27673 finish_eval \
27674 old_striplib \
27675 striplib \
27676 compiler_lib_search_dirs \
27677 predep_objects \
27678 postdep_objects \
27679 predeps \
27680 postdeps \
27681 compiler_lib_search_path \
27682 LD_FC \
27683 reload_flag_FC \
27684 compiler_FC \
27685 lt_prog_compiler_no_builtin_flag_FC \
27686 lt_prog_compiler_wl_FC \
27687 lt_prog_compiler_pic_FC \
27688 lt_prog_compiler_static_FC \
27689 lt_cv_prog_compiler_c_o_FC \
27690 export_dynamic_flag_spec_FC \
27691 whole_archive_flag_spec_FC \
27692 compiler_needs_object_FC \
27693 with_gnu_ld_FC \
27694 allow_undefined_flag_FC \
27695 no_undefined_flag_FC \
27696 hardcode_libdir_flag_spec_FC \
27697 hardcode_libdir_flag_spec_ld_FC \
27698 hardcode_libdir_separator_FC \
27699 fix_srcfile_path_FC \
27700 exclude_expsyms_FC \
27701 include_expsyms_FC \
27702 file_list_spec_FC \
27703 compiler_lib_search_dirs_FC \
27704 predep_objects_FC \
27705 postdep_objects_FC \
27706 predeps_FC \
27707 postdeps_FC \
27708 compiler_lib_search_path_FC; do
27709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27710 *[\\\\\\\`\\"\\\$]*)
27711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27716 esac
27717 done
27719 # Double-quote double-evaled strings.
27720 for var in reload_cmds \
27721 old_postinstall_cmds \
27722 old_postuninstall_cmds \
27723 old_archive_cmds \
27724 extract_expsyms_cmds \
27725 old_archive_from_new_cmds \
27726 old_archive_from_expsyms_cmds \
27727 archive_cmds \
27728 archive_expsym_cmds \
27729 module_cmds \
27730 module_expsym_cmds \
27731 export_symbols_cmds \
27732 prelink_cmds \
27733 postinstall_cmds \
27734 postuninstall_cmds \
27735 finish_cmds \
27736 sys_lib_search_path_spec \
27737 sys_lib_dlsearch_path_spec \
27738 reload_cmds_FC \
27739 old_archive_cmds_FC \
27740 old_archive_from_new_cmds_FC \
27741 old_archive_from_expsyms_cmds_FC \
27742 archive_cmds_FC \
27743 archive_expsym_cmds_FC \
27744 module_cmds_FC \
27745 module_expsym_cmds_FC \
27746 export_symbols_cmds_FC \
27747 prelink_cmds_FC; do
27748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27749 *[\\\\\\\`\\"\\\$]*)
27750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27755 esac
27756 done
27758 ac_aux_dir='$ac_aux_dir'
27759 xsi_shell='$xsi_shell'
27760 lt_shell_append='$lt_shell_append'
27762 # See if we are running on zsh, and set the options which allow our
27763 # commands through without removal of \ escapes INIT.
27764 if test -n "\${ZSH_VERSION+set}" ; then
27765 setopt NO_GLOB_SUBST
27769 PACKAGE='$PACKAGE'
27770 VERSION='$VERSION'
27771 TIMESTAMP='$TIMESTAMP'
27772 RM='$RM'
27773 ofile='$ofile'
27780 GCC="$GCC"
27781 CC="$CC"
27782 acx_cv_header_stdint="$acx_cv_header_stdint"
27783 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27784 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27785 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27786 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27787 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27788 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27789 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27790 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27791 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27792 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27793 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27794 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27795 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27798 _ACEOF
27800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27802 # Handling of arguments.
27803 for ac_config_target in $ac_config_targets
27805 case $ac_config_target in
27806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27807 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27808 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27809 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27810 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27812 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27814 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27815 esac
27816 done
27819 # If the user did not use the arguments to specify the items to instantiate,
27820 # then the envvar interface is used. Set only those that are not.
27821 # We use the long form for the default assignment because of an extremely
27822 # bizarre bug on SunOS 4.1.3.
27823 if $ac_need_defaults; then
27824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27829 # Have a temporary directory for convenience. Make it in the build tree
27830 # simply because there is no reason against having it here, and in addition,
27831 # creating and moving files from /tmp can sometimes cause problems.
27832 # Hook for its removal unless debugging.
27833 # Note that there is a small window in which the directory will not be cleaned:
27834 # after its creation but before its name has been assigned to `$tmp'.
27835 $debug ||
27837 tmp=
27838 trap 'exit_status=$?
27839 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27841 trap 'as_fn_exit 1' 1 2 13 15
27843 # Create a (secure) tmp directory for tmp files.
27846 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27847 test -n "$tmp" && test -d "$tmp"
27848 } ||
27850 tmp=./conf$$-$RANDOM
27851 (umask 077 && mkdir "$tmp")
27852 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27854 # Set up the scripts for CONFIG_FILES section.
27855 # No need to generate them if there are no CONFIG_FILES.
27856 # This happens for instance with `./config.status config.h'.
27857 if test -n "$CONFIG_FILES"; then
27860 ac_cr=`echo X | tr X '\015'`
27861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27862 # But we know of no other shell where ac_cr would be empty at this
27863 # point, so we can use a bashism as a fallback.
27864 if test "x$ac_cr" = x; then
27865 eval ac_cr=\$\'\\r\'
27867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27869 ac_cs_awk_cr='\r'
27870 else
27871 ac_cs_awk_cr=$ac_cr
27874 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27875 _ACEOF
27879 echo "cat >conf$$subs.awk <<_ACEOF" &&
27880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27881 echo "_ACEOF"
27882 } >conf$$subs.sh ||
27883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27884 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27885 ac_delim='%!_!# '
27886 for ac_last_try in false false false false false :; do
27887 . ./conf$$subs.sh ||
27888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27890 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27891 if test $ac_delim_n = $ac_delim_num; then
27892 break
27893 elif $ac_last_try; then
27894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27895 else
27896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27898 done
27899 rm -f conf$$subs.sh
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27903 _ACEOF
27904 sed -n '
27906 s/^/S["/; s/!.*/"]=/
27909 s/^[^!]*!//
27910 :repl
27911 t repl
27912 s/'"$ac_delim"'$//
27913 t delim
27916 s/\(.\{148\}\).*/\1/
27917 t more1
27918 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27921 b repl
27922 :more1
27923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27926 s/.\{148\}//
27927 t nl
27928 :delim
27930 s/\(.\{148\}\).*/\1/
27931 t more2
27932 s/["\\]/\\&/g; s/^/"/; s/$/"/
27935 :more2
27936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27939 s/.\{148\}//
27940 t delim
27941 ' <conf$$subs.awk | sed '
27942 /^[^""]/{
27944 s/\n//
27946 ' >>$CONFIG_STATUS || ac_write_fail=1
27947 rm -f conf$$subs.awk
27948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27949 _ACAWK
27950 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27951 for (key in S) S_is_set[key] = 1
27952 FS = "\a"
27956 line = $ 0
27957 nfields = split(line, field, "@")
27958 substed = 0
27959 len = length(field[1])
27960 for (i = 2; i < nfields; i++) {
27961 key = field[i]
27962 keylen = length(key)
27963 if (S_is_set[key]) {
27964 value = S[key]
27965 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27966 len += length(value) + length(field[++i])
27967 substed = 1
27968 } else
27969 len += 1 + keylen
27972 print line
27975 _ACAWK
27976 _ACEOF
27977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27978 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27980 else
27982 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27983 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27984 _ACEOF
27986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27988 # trailing colons and then remove the whole line if VPATH becomes empty
27989 # (actually we leave an empty line to preserve line numbers).
27990 if test "x$srcdir" = x.; then
27991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27992 s/:*\$(srcdir):*/:/
27993 s/:*\${srcdir}:*/:/
27994 s/:*@srcdir@:*/:/
27995 s/^\([^=]*=[ ]*\):*/\1/
27996 s/:*$//
27997 s/^[^=]*=[ ]*$//
28001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28002 fi # test -n "$CONFIG_FILES"
28004 # Set up the scripts for CONFIG_HEADERS section.
28005 # No need to generate them if there are no CONFIG_HEADERS.
28006 # This happens for instance with `./config.status Makefile'.
28007 if test -n "$CONFIG_HEADERS"; then
28008 cat >"$tmp/defines.awk" <<\_ACAWK ||
28009 BEGIN {
28010 _ACEOF
28012 # Transform confdefs.h into an awk script `defines.awk', embedded as
28013 # here-document in config.status, that substitutes the proper values into
28014 # config.h.in to produce config.h.
28016 # Create a delimiter string that does not exist in confdefs.h, to ease
28017 # handling of long lines.
28018 ac_delim='%!_!# '
28019 for ac_last_try in false false :; do
28020 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28021 if test -z "$ac_t"; then
28022 break
28023 elif $ac_last_try; then
28024 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28025 else
28026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28028 done
28030 # For the awk script, D is an array of macro values keyed by name,
28031 # likewise P contains macro parameters if any. Preserve backslash
28032 # newline sequences.
28034 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28035 sed -n '
28036 s/.\{148\}/&'"$ac_delim"'/g
28037 t rset
28038 :rset
28039 s/^[ ]*#[ ]*define[ ][ ]*/ /
28040 t def
28042 :def
28043 s/\\$//
28044 t bsnl
28045 s/["\\]/\\&/g
28046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28047 D["\1"]=" \3"/p
28048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28050 :bsnl
28051 s/["\\]/\\&/g
28052 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28053 D["\1"]=" \3\\\\\\n"\\/p
28054 t cont
28055 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28056 t cont
28058 :cont
28060 s/.\{148\}/&'"$ac_delim"'/g
28061 t clear
28062 :clear
28063 s/\\$//
28064 t bsnlc
28065 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28067 :bsnlc
28068 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28069 b cont
28070 ' <confdefs.h | sed '
28071 s/'"$ac_delim"'/"\\\
28072 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28075 for (key in D) D_is_set[key] = 1
28076 FS = "\a"
28078 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28079 line = \$ 0
28080 split(line, arg, " ")
28081 if (arg[1] == "#") {
28082 defundef = arg[2]
28083 mac1 = arg[3]
28084 } else {
28085 defundef = substr(arg[1], 2)
28086 mac1 = arg[2]
28088 split(mac1, mac2, "(") #)
28089 macro = mac2[1]
28090 prefix = substr(line, 1, index(line, defundef) - 1)
28091 if (D_is_set[macro]) {
28092 # Preserve the white space surrounding the "#".
28093 print prefix "define", macro P[macro] D[macro]
28094 next
28095 } else {
28096 # Replace #undef with comments. This is necessary, for example,
28097 # in the case of _POSIX_SOURCE, which is predefined and required
28098 # on some systems where configure will not decide to define it.
28099 if (defundef == "undef") {
28100 print "/*", prefix defundef, macro, "*/"
28101 next
28105 { print }
28106 _ACAWK
28107 _ACEOF
28108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28109 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28110 fi # test -n "$CONFIG_HEADERS"
28113 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28114 shift
28115 for ac_tag
28117 case $ac_tag in
28118 :[FHLC]) ac_mode=$ac_tag; continue;;
28119 esac
28120 case $ac_mode$ac_tag in
28121 :[FHL]*:*);;
28122 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28123 :[FH]-) ac_tag=-:-;;
28124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28125 esac
28126 ac_save_IFS=$IFS
28127 IFS=:
28128 set x $ac_tag
28129 IFS=$ac_save_IFS
28130 shift
28131 ac_file=$1
28132 shift
28134 case $ac_mode in
28135 :L) ac_source=$1;;
28136 :[FH])
28137 ac_file_inputs=
28138 for ac_f
28140 case $ac_f in
28141 -) ac_f="$tmp/stdin";;
28142 *) # Look for the file first in the build tree, then in the source tree
28143 # (if the path is not absolute). The absolute path cannot be DOS-style,
28144 # because $ac_f cannot contain `:'.
28145 test -f "$ac_f" ||
28146 case $ac_f in
28147 [\\/$]*) false;;
28148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28149 esac ||
28150 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28151 esac
28152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28153 as_fn_append ac_file_inputs " '$ac_f'"
28154 done
28156 # Let's still pretend it is `configure' which instantiates (i.e., don't
28157 # use $as_me), people would be surprised to read:
28158 # /* config.h. Generated by config.status. */
28159 configure_input='Generated from '`
28160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28161 `' by configure.'
28162 if test x"$ac_file" != x-; then
28163 configure_input="$ac_file. $configure_input"
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28165 $as_echo "$as_me: creating $ac_file" >&6;}
28167 # Neutralize special characters interpreted by sed in replacement strings.
28168 case $configure_input in #(
28169 *\&* | *\|* | *\\* )
28170 ac_sed_conf_input=`$as_echo "$configure_input" |
28171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28172 *) ac_sed_conf_input=$configure_input;;
28173 esac
28175 case $ac_tag in
28176 *:-:* | *:-) cat >"$tmp/stdin" \
28177 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28178 esac
28180 esac
28182 ac_dir=`$as_dirname -- "$ac_file" ||
28183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184 X"$ac_file" : 'X\(//\)[^/]' \| \
28185 X"$ac_file" : 'X\(//\)$' \| \
28186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28187 $as_echo X"$ac_file" |
28188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28189 s//\1/
28192 /^X\(\/\/\)[^/].*/{
28193 s//\1/
28196 /^X\(\/\/\)$/{
28197 s//\1/
28200 /^X\(\/\).*/{
28201 s//\1/
28204 s/.*/./; q'`
28205 as_dir="$ac_dir"; as_fn_mkdir_p
28206 ac_builddir=.
28208 case "$ac_dir" in
28209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28212 # A ".." for each directory in $ac_dir_suffix.
28213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28214 case $ac_top_builddir_sub in
28215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28217 esac ;;
28218 esac
28219 ac_abs_top_builddir=$ac_pwd
28220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28221 # for backward compatibility:
28222 ac_top_builddir=$ac_top_build_prefix
28224 case $srcdir in
28225 .) # We are building in place.
28226 ac_srcdir=.
28227 ac_top_srcdir=$ac_top_builddir_sub
28228 ac_abs_top_srcdir=$ac_pwd ;;
28229 [\\/]* | ?:[\\/]* ) # Absolute name.
28230 ac_srcdir=$srcdir$ac_dir_suffix;
28231 ac_top_srcdir=$srcdir
28232 ac_abs_top_srcdir=$srcdir ;;
28233 *) # Relative name.
28234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28235 ac_top_srcdir=$ac_top_build_prefix$srcdir
28236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28237 esac
28238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28241 case $ac_mode in
28244 # CONFIG_FILE
28247 case $INSTALL in
28248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28250 esac
28251 ac_MKDIR_P=$MKDIR_P
28252 case $MKDIR_P in
28253 [\\/$]* | ?:[\\/]* ) ;;
28254 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28255 esac
28256 _ACEOF
28258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28259 # If the template does not know about datarootdir, expand it.
28260 # FIXME: This hack should be removed a few years after 2.60.
28261 ac_datarootdir_hack=; ac_datarootdir_seen=
28262 ac_sed_dataroot='
28263 /datarootdir/ {
28267 /@datadir@/p
28268 /@docdir@/p
28269 /@infodir@/p
28270 /@localedir@/p
28271 /@mandir@/p'
28272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28273 *datarootdir*) ac_datarootdir_seen=yes;;
28274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28277 _ACEOF
28278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28279 ac_datarootdir_hack='
28280 s&@datadir@&$datadir&g
28281 s&@docdir@&$docdir&g
28282 s&@infodir@&$infodir&g
28283 s&@localedir@&$localedir&g
28284 s&@mandir@&$mandir&g
28285 s&\\\${datarootdir}&$datarootdir&g' ;;
28286 esac
28287 _ACEOF
28289 # Neutralize VPATH when `$srcdir' = `.'.
28290 # Shell code in configure.ac might set extrasub.
28291 # FIXME: do we really want to maintain this feature?
28292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28293 ac_sed_extra="$ac_vpsub
28294 $extrasub
28295 _ACEOF
28296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28299 s|@configure_input@|$ac_sed_conf_input|;t t
28300 s&@top_builddir@&$ac_top_builddir_sub&;t t
28301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28302 s&@srcdir@&$ac_srcdir&;t t
28303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28304 s&@top_srcdir@&$ac_top_srcdir&;t t
28305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28306 s&@builddir@&$ac_builddir&;t t
28307 s&@abs_builddir@&$ac_abs_builddir&;t t
28308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28309 s&@INSTALL@&$ac_INSTALL&;t t
28310 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28311 $ac_datarootdir_hack
28313 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28314 || as_fn_error "could not create $ac_file" "$LINENO" 5
28316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28320 which seems to be undefined. Please make sure it is defined." >&5
28321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28322 which seems to be undefined. Please make sure it is defined." >&2;}
28324 rm -f "$tmp/stdin"
28325 case $ac_file in
28326 -) cat "$tmp/out" && rm -f "$tmp/out";;
28327 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28328 esac \
28329 || as_fn_error "could not create $ac_file" "$LINENO" 5
28333 # CONFIG_HEADER
28335 if test x"$ac_file" != x-; then
28337 $as_echo "/* $configure_input */" \
28338 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28339 } >"$tmp/config.h" \
28340 || as_fn_error "could not create $ac_file" "$LINENO" 5
28341 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28343 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28344 else
28345 rm -f "$ac_file"
28346 mv "$tmp/config.h" "$ac_file" \
28347 || as_fn_error "could not create $ac_file" "$LINENO" 5
28349 else
28350 $as_echo "/* $configure_input */" \
28351 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28352 || as_fn_error "could not create -" "$LINENO" 5
28354 # Compute "$ac_file"'s index in $config_headers.
28355 _am_arg="$ac_file"
28356 _am_stamp_count=1
28357 for _am_header in $config_headers :; do
28358 case $_am_header in
28359 $_am_arg | $_am_arg:* )
28360 break ;;
28362 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28363 esac
28364 done
28365 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28366 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28367 X"$_am_arg" : 'X\(//\)[^/]' \| \
28368 X"$_am_arg" : 'X\(//\)$' \| \
28369 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28370 $as_echo X"$_am_arg" |
28371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28372 s//\1/
28375 /^X\(\/\/\)[^/].*/{
28376 s//\1/
28379 /^X\(\/\/\)$/{
28380 s//\1/
28383 /^X\(\/\).*/{
28384 s//\1/
28387 s/.*/./; q'`/stamp-h$_am_stamp_count
28390 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28391 $as_echo "$as_me: executing $ac_file commands" >&6;}
28393 esac
28396 case $ac_file$ac_mode in
28397 "default-1":C)
28398 # Only add multilib support code if we just rebuilt the top-level
28399 # Makefile.
28400 case " $CONFIG_FILES " in
28401 *" Makefile "*)
28402 ac_file=Makefile . ${multi_basedir}/config-ml.in
28404 esac ;;
28405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28406 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28407 # are listed without --file. Let's play safe and only enable the eval
28408 # if we detect the quoting.
28409 case $CONFIG_FILES in
28410 *\'*) eval set x "$CONFIG_FILES" ;;
28411 *) set x $CONFIG_FILES ;;
28412 esac
28413 shift
28414 for mf
28416 # Strip MF so we end up with the name of the file.
28417 mf=`echo "$mf" | sed -e 's/:.*$//'`
28418 # Check whether this is an Automake generated Makefile or not.
28419 # We used to match only the files named `Makefile.in', but
28420 # some people rename them; so instead we look at the file content.
28421 # Grep'ing the first line is not enough: some people post-process
28422 # each Makefile.in and add a new line on top of each file to say so.
28423 # Grep'ing the whole file is not good either: AIX grep has a line
28424 # limit of 2048, but all sed's we know have understand at least 4000.
28425 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28426 dirpart=`$as_dirname -- "$mf" ||
28427 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28428 X"$mf" : 'X\(//\)[^/]' \| \
28429 X"$mf" : 'X\(//\)$' \| \
28430 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28431 $as_echo X"$mf" |
28432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28433 s//\1/
28436 /^X\(\/\/\)[^/].*/{
28437 s//\1/
28440 /^X\(\/\/\)$/{
28441 s//\1/
28444 /^X\(\/\).*/{
28445 s//\1/
28448 s/.*/./; q'`
28449 else
28450 continue
28452 # Extract the definition of DEPDIR, am__include, and am__quote
28453 # from the Makefile without running `make'.
28454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28455 test -z "$DEPDIR" && continue
28456 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28457 test -z "am__include" && continue
28458 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28459 # When using ansi2knr, U may be empty or an underscore; expand it
28460 U=`sed -n 's/^U = //p' < "$mf"`
28461 # Find all dependency output files, they are included files with
28462 # $(DEPDIR) in their names. We invoke sed twice because it is the
28463 # simplest approach to changing $(DEPDIR) to its actual value in the
28464 # expansion.
28465 for file in `sed -n "
28466 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28468 # Make sure the directory exists.
28469 test -f "$dirpart/$file" && continue
28470 fdir=`$as_dirname -- "$file" ||
28471 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28472 X"$file" : 'X\(//\)[^/]' \| \
28473 X"$file" : 'X\(//\)$' \| \
28474 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28475 $as_echo X"$file" |
28476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28477 s//\1/
28480 /^X\(\/\/\)[^/].*/{
28481 s//\1/
28484 /^X\(\/\/\)$/{
28485 s//\1/
28488 /^X\(\/\).*/{
28489 s//\1/
28492 s/.*/./; q'`
28493 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28494 # echo "creating $dirpart/$file"
28495 echo '# dummy' > "$dirpart/$file"
28496 done
28497 done
28500 "libtool":C)
28502 # See if we are running on zsh, and set the options which allow our
28503 # commands through without removal of \ escapes.
28504 if test -n "${ZSH_VERSION+set}" ; then
28505 setopt NO_GLOB_SUBST
28508 cfgfile="${ofile}T"
28509 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28510 $RM "$cfgfile"
28512 cat <<_LT_EOF >> "$cfgfile"
28513 #! $SHELL
28515 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28516 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28518 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28520 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28521 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28522 # Written by Gordon Matzigkeit, 1996
28524 # This file is part of GNU Libtool.
28526 # GNU Libtool is free software; you can redistribute it and/or
28527 # modify it under the terms of the GNU General Public License as
28528 # published by the Free Software Foundation; either version 2 of
28529 # the License, or (at your option) any later version.
28531 # As a special exception to the GNU General Public License,
28532 # if you distribute this file as part of a program or library that
28533 # is built using GNU Libtool, you may include this file under the
28534 # same distribution terms that you use for the rest of that program.
28536 # GNU Libtool is distributed in the hope that it will be useful,
28537 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28538 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28539 # GNU General Public License for more details.
28541 # You should have received a copy of the GNU General Public License
28542 # along with GNU Libtool; see the file COPYING. If not, a copy
28543 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28544 # obtained by writing to the Free Software Foundation, Inc.,
28545 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28548 # The names of the tagged configurations supported by this script.
28549 available_tags="FC "
28551 # ### BEGIN LIBTOOL CONFIG
28553 # Which release of libtool.m4 was used?
28554 macro_version=$macro_version
28555 macro_revision=$macro_revision
28557 # Whether or not to build shared libraries.
28558 build_libtool_libs=$enable_shared
28560 # Whether or not to build static libraries.
28561 build_old_libs=$enable_static
28563 # What type of objects to build.
28564 pic_mode=$pic_mode
28566 # Whether or not to optimize for fast installation.
28567 fast_install=$enable_fast_install
28569 # Shell to use when invoking shell scripts.
28570 SHELL=$lt_SHELL
28572 # An echo program that protects backslashes.
28573 ECHO=$lt_ECHO
28575 # The host system.
28576 host_alias=$host_alias
28577 host=$host
28578 host_os=$host_os
28580 # The build system.
28581 build_alias=$build_alias
28582 build=$build
28583 build_os=$build_os
28585 # A sed program that does not truncate output.
28586 SED=$lt_SED
28588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28589 Xsed="\$SED -e 1s/^X//"
28591 # A grep program that handles long lines.
28592 GREP=$lt_GREP
28594 # An ERE matcher.
28595 EGREP=$lt_EGREP
28597 # A literal string matcher.
28598 FGREP=$lt_FGREP
28600 # A BSD- or MS-compatible name lister.
28601 NM=$lt_NM
28603 # Whether we need soft or hard links.
28604 LN_S=$lt_LN_S
28606 # What is the maximum length of a command?
28607 max_cmd_len=$max_cmd_len
28609 # Object file suffix (normally "o").
28610 objext=$ac_objext
28612 # Executable file suffix (normally "").
28613 exeext=$exeext
28615 # whether the shell understands "unset".
28616 lt_unset=$lt_unset
28618 # turn spaces into newlines.
28619 SP2NL=$lt_lt_SP2NL
28621 # turn newlines into spaces.
28622 NL2SP=$lt_lt_NL2SP
28624 # An object symbol dumper.
28625 OBJDUMP=$lt_OBJDUMP
28627 # Method to check whether dependent libraries are shared objects.
28628 deplibs_check_method=$lt_deplibs_check_method
28630 # Command to use when deplibs_check_method == "file_magic".
28631 file_magic_cmd=$lt_file_magic_cmd
28633 # The archiver.
28634 AR=$lt_AR
28635 AR_FLAGS=$lt_AR_FLAGS
28637 # A symbol stripping program.
28638 STRIP=$lt_STRIP
28640 # Commands used to install an old-style archive.
28641 RANLIB=$lt_RANLIB
28642 old_postinstall_cmds=$lt_old_postinstall_cmds
28643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28645 # Whether to use a lock for old archive extraction.
28646 lock_old_archive_extraction=$lock_old_archive_extraction
28648 # A C compiler.
28649 LTCC=$lt_CC
28651 # LTCC compiler flags.
28652 LTCFLAGS=$lt_CFLAGS
28654 # Take the output of nm and produce a listing of raw symbols and C names.
28655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28657 # Transform the output of nm in a proper C declaration.
28658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28660 # Transform the output of nm in a C name address pair.
28661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28663 # Transform the output of nm in a C name address pair when lib prefix is needed.
28664 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28666 # The name of the directory that contains temporary libtool files.
28667 objdir=$objdir
28669 # Used to examine libraries when file_magic_cmd begins with "file".
28670 MAGIC_CMD=$MAGIC_CMD
28672 # Must we lock files when doing compilation?
28673 need_locks=$lt_need_locks
28675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28676 DSYMUTIL=$lt_DSYMUTIL
28678 # Tool to change global to local symbols on Mac OS X.
28679 NMEDIT=$lt_NMEDIT
28681 # Tool to manipulate fat objects and archives on Mac OS X.
28682 LIPO=$lt_LIPO
28684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28685 OTOOL=$lt_OTOOL
28687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28688 OTOOL64=$lt_OTOOL64
28690 # Old archive suffix (normally "a").
28691 libext=$libext
28693 # Shared library suffix (normally ".so").
28694 shrext_cmds=$lt_shrext_cmds
28696 # The commands to extract the exported symbol list from a shared archive.
28697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28699 # Variables whose values should be saved in libtool wrapper scripts and
28700 # restored at link time.
28701 variables_saved_for_relink=$lt_variables_saved_for_relink
28703 # Do we need the "lib" prefix for modules?
28704 need_lib_prefix=$need_lib_prefix
28706 # Do we need a version for libraries?
28707 need_version=$need_version
28709 # Library versioning type.
28710 version_type=$version_type
28712 # Shared library runtime path variable.
28713 runpath_var=$runpath_var
28715 # Shared library path variable.
28716 shlibpath_var=$shlibpath_var
28718 # Is shlibpath searched before the hard-coded library search path?
28719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28721 # Format of library name prefix.
28722 libname_spec=$lt_libname_spec
28724 # List of archive names. First name is the real one, the rest are links.
28725 # The last name is the one that the linker finds with -lNAME
28726 library_names_spec=$lt_library_names_spec
28728 # The coded name of the library, if different from the real name.
28729 soname_spec=$lt_soname_spec
28731 # Permission mode override for installation of shared libraries.
28732 install_override_mode=$lt_install_override_mode
28734 # Command to use after installation of a shared archive.
28735 postinstall_cmds=$lt_postinstall_cmds
28737 # Command to use after uninstallation of a shared archive.
28738 postuninstall_cmds=$lt_postuninstall_cmds
28740 # Commands used to finish a libtool library installation in a directory.
28741 finish_cmds=$lt_finish_cmds
28743 # As "finish_cmds", except a single script fragment to be evaled but
28744 # not shown.
28745 finish_eval=$lt_finish_eval
28747 # Whether we should hardcode library paths into libraries.
28748 hardcode_into_libs=$hardcode_into_libs
28750 # Compile-time system search path for libraries.
28751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28753 # Run-time system search path for libraries.
28754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28756 # Whether dlopen is supported.
28757 dlopen_support=$enable_dlopen
28759 # Whether dlopen of programs is supported.
28760 dlopen_self=$enable_dlopen_self
28762 # Whether dlopen of statically linked programs is supported.
28763 dlopen_self_static=$enable_dlopen_self_static
28765 # Commands to strip libraries.
28766 old_striplib=$lt_old_striplib
28767 striplib=$lt_striplib
28770 # The linker used to build libraries.
28771 LD=$lt_LD
28773 # How to create reloadable object files.
28774 reload_flag=$lt_reload_flag
28775 reload_cmds=$lt_reload_cmds
28777 # Commands used to build an old-style archive.
28778 old_archive_cmds=$lt_old_archive_cmds
28780 # A language specific compiler.
28781 CC=$lt_compiler
28783 # Is the compiler the GNU compiler?
28784 with_gcc=$GCC
28786 # Compiler flag to turn off builtin functions.
28787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28789 # How to pass a linker flag through the compiler.
28790 wl=$lt_lt_prog_compiler_wl
28792 # Additional compiler flags for building library objects.
28793 pic_flag=$lt_lt_prog_compiler_pic
28795 # Compiler flag to prevent dynamic linking.
28796 link_static_flag=$lt_lt_prog_compiler_static
28798 # Does compiler simultaneously support -c and -o options?
28799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28801 # Whether or not to add -lc for building shared libraries.
28802 build_libtool_need_lc=$archive_cmds_need_lc
28804 # Whether or not to disallow shared libs when runtime libs are static.
28805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28807 # Compiler flag to allow reflexive dlopens.
28808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28810 # Compiler flag to generate shared objects directly from archives.
28811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28813 # Whether the compiler copes with passing no objects directly.
28814 compiler_needs_object=$lt_compiler_needs_object
28816 # Create an old-style archive from a shared archive.
28817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28819 # Create a temporary old-style archive to link instead of a shared archive.
28820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28822 # Commands used to build a shared archive.
28823 archive_cmds=$lt_archive_cmds
28824 archive_expsym_cmds=$lt_archive_expsym_cmds
28826 # Commands used to build a loadable module if different from building
28827 # a shared archive.
28828 module_cmds=$lt_module_cmds
28829 module_expsym_cmds=$lt_module_expsym_cmds
28831 # Whether we are building with GNU ld or not.
28832 with_gnu_ld=$lt_with_gnu_ld
28834 # Flag that allows shared libraries with undefined symbols to be built.
28835 allow_undefined_flag=$lt_allow_undefined_flag
28837 # Flag that enforces no undefined symbols.
28838 no_undefined_flag=$lt_no_undefined_flag
28840 # Flag to hardcode \$libdir into a binary during linking.
28841 # This must work even if \$libdir does not exist
28842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28844 # If ld is used when linking, flag to hardcode \$libdir into a binary
28845 # during linking. This must work even if \$libdir does not exist.
28846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28848 # Whether we need a single "-rpath" flag with a separated argument.
28849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28852 # DIR into the resulting binary.
28853 hardcode_direct=$hardcode_direct
28855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28856 # DIR into the resulting binary and the resulting library dependency is
28857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28858 # library is relocated.
28859 hardcode_direct_absolute=$hardcode_direct_absolute
28861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28862 # into the resulting binary.
28863 hardcode_minus_L=$hardcode_minus_L
28865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28866 # into the resulting binary.
28867 hardcode_shlibpath_var=$hardcode_shlibpath_var
28869 # Set to "yes" if building a shared library automatically hardcodes DIR
28870 # into the library and all subsequent libraries and executables linked
28871 # against it.
28872 hardcode_automatic=$hardcode_automatic
28874 # Set to yes if linker adds runtime paths of dependent libraries
28875 # to runtime path list.
28876 inherit_rpath=$inherit_rpath
28878 # Whether libtool must link a program against all its dependency libraries.
28879 link_all_deplibs=$link_all_deplibs
28881 # Fix the shell variable \$srcfile for the compiler.
28882 fix_srcfile_path=$lt_fix_srcfile_path
28884 # Set to "yes" if exported symbols are required.
28885 always_export_symbols=$always_export_symbols
28887 # The commands to list exported symbols.
28888 export_symbols_cmds=$lt_export_symbols_cmds
28890 # Symbols that should not be listed in the preloaded symbols.
28891 exclude_expsyms=$lt_exclude_expsyms
28893 # Symbols that must always be exported.
28894 include_expsyms=$lt_include_expsyms
28896 # Commands necessary for linking programs (against libraries) with templates.
28897 prelink_cmds=$lt_prelink_cmds
28899 # Specify filename containing input files.
28900 file_list_spec=$lt_file_list_spec
28902 # How to hardcode a shared library path into an executable.
28903 hardcode_action=$hardcode_action
28905 # The directories searched by this compiler when creating a shared library.
28906 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28908 # Dependencies to place before and after the objects being linked to
28909 # create a shared library.
28910 predep_objects=$lt_predep_objects
28911 postdep_objects=$lt_postdep_objects
28912 predeps=$lt_predeps
28913 postdeps=$lt_postdeps
28915 # The library search path used internally by the compiler when linking
28916 # a shared library.
28917 compiler_lib_search_path=$lt_compiler_lib_search_path
28919 # ### END LIBTOOL CONFIG
28921 _LT_EOF
28923 case $host_os in
28924 aix3*)
28925 cat <<\_LT_EOF >> "$cfgfile"
28926 # AIX sometimes has problems with the GCC collect2 program. For some
28927 # reason, if we set the COLLECT_NAMES environment variable, the problems
28928 # vanish in a puff of smoke.
28929 if test "X${COLLECT_NAMES+set}" != Xset; then
28930 COLLECT_NAMES=
28931 export COLLECT_NAMES
28933 _LT_EOF
28935 esac
28938 ltmain="$ac_aux_dir/ltmain.sh"
28941 # We use sed instead of cat because bash on DJGPP gets confused if
28942 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28943 # text mode, it properly converts lines to CR/LF. This bash problem
28944 # is reportedly fixed, but why not run on old versions too?
28945 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28946 || (rm -f "$cfgfile"; exit 1)
28948 case $xsi_shell in
28949 yes)
28950 cat << \_LT_EOF >> "$cfgfile"
28952 # func_dirname file append nondir_replacement
28953 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28954 # otherwise set result to NONDIR_REPLACEMENT.
28955 func_dirname ()
28957 case ${1} in
28958 */*) func_dirname_result="${1%/*}${2}" ;;
28959 * ) func_dirname_result="${3}" ;;
28960 esac
28963 # func_basename file
28964 func_basename ()
28966 func_basename_result="${1##*/}"
28969 # func_dirname_and_basename file append nondir_replacement
28970 # perform func_basename and func_dirname in a single function
28971 # call:
28972 # dirname: Compute the dirname of FILE. If nonempty,
28973 # add APPEND to the result, otherwise set result
28974 # to NONDIR_REPLACEMENT.
28975 # value returned in "$func_dirname_result"
28976 # basename: Compute filename of FILE.
28977 # value retuned in "$func_basename_result"
28978 # Implementation must be kept synchronized with func_dirname
28979 # and func_basename. For efficiency, we do not delegate to
28980 # those functions but instead duplicate the functionality here.
28981 func_dirname_and_basename ()
28983 case ${1} in
28984 */*) func_dirname_result="${1%/*}${2}" ;;
28985 * ) func_dirname_result="${3}" ;;
28986 esac
28987 func_basename_result="${1##*/}"
28990 # func_stripname prefix suffix name
28991 # strip PREFIX and SUFFIX off of NAME.
28992 # PREFIX and SUFFIX must not contain globbing or regex special
28993 # characters, hashes, percent signs, but SUFFIX may contain a leading
28994 # dot (in which case that matches only a dot).
28995 func_stripname ()
28997 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28998 # positional parameters, so assign one to ordinary parameter first.
28999 func_stripname_result=${3}
29000 func_stripname_result=${func_stripname_result#"${1}"}
29001 func_stripname_result=${func_stripname_result%"${2}"}
29004 # func_opt_split
29005 func_opt_split ()
29007 func_opt_split_opt=${1%%=*}
29008 func_opt_split_arg=${1#*=}
29011 # func_lo2o object
29012 func_lo2o ()
29014 case ${1} in
29015 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29016 *) func_lo2o_result=${1} ;;
29017 esac
29020 # func_xform libobj-or-source
29021 func_xform ()
29023 func_xform_result=${1%.*}.lo
29026 # func_arith arithmetic-term...
29027 func_arith ()
29029 func_arith_result=$(( $* ))
29032 # func_len string
29033 # STRING may not start with a hyphen.
29034 func_len ()
29036 func_len_result=${#1}
29039 _LT_EOF
29041 *) # Bourne compatible functions.
29042 cat << \_LT_EOF >> "$cfgfile"
29044 # func_dirname file append nondir_replacement
29045 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29046 # otherwise set result to NONDIR_REPLACEMENT.
29047 func_dirname ()
29049 # Extract subdirectory from the argument.
29050 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29051 if test "X$func_dirname_result" = "X${1}"; then
29052 func_dirname_result="${3}"
29053 else
29054 func_dirname_result="$func_dirname_result${2}"
29058 # func_basename file
29059 func_basename ()
29061 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29065 # func_stripname prefix suffix name
29066 # strip PREFIX and SUFFIX off of NAME.
29067 # PREFIX and SUFFIX must not contain globbing or regex special
29068 # characters, hashes, percent signs, but SUFFIX may contain a leading
29069 # dot (in which case that matches only a dot).
29070 # func_strip_suffix prefix name
29071 func_stripname ()
29073 case ${2} in
29074 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29075 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29076 esac
29079 # sed scripts:
29080 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29081 my_sed_long_arg='1s/^-[^=]*=//'
29083 # func_opt_split
29084 func_opt_split ()
29086 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29087 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29090 # func_lo2o object
29091 func_lo2o ()
29093 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29096 # func_xform libobj-or-source
29097 func_xform ()
29099 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29102 # func_arith arithmetic-term...
29103 func_arith ()
29105 func_arith_result=`expr "$@"`
29108 # func_len string
29109 # STRING may not start with a hyphen.
29110 func_len ()
29112 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29115 _LT_EOF
29116 esac
29118 case $lt_shell_append in
29119 yes)
29120 cat << \_LT_EOF >> "$cfgfile"
29122 # func_append var value
29123 # Append VALUE to the end of shell variable VAR.
29124 func_append ()
29126 eval "$1+=\$2"
29128 _LT_EOF
29131 cat << \_LT_EOF >> "$cfgfile"
29133 # func_append var value
29134 # Append VALUE to the end of shell variable VAR.
29135 func_append ()
29137 eval "$1=\$$1\$2"
29140 _LT_EOF
29142 esac
29145 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29146 || (rm -f "$cfgfile"; exit 1)
29148 mv -f "$cfgfile" "$ofile" ||
29149 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29150 chmod +x "$ofile"
29153 cat <<_LT_EOF >> "$ofile"
29155 # ### BEGIN LIBTOOL TAG CONFIG: FC
29157 # The linker used to build libraries.
29158 LD=$lt_LD_FC
29160 # How to create reloadable object files.
29161 reload_flag=$lt_reload_flag_FC
29162 reload_cmds=$lt_reload_cmds_FC
29164 # Commands used to build an old-style archive.
29165 old_archive_cmds=$lt_old_archive_cmds_FC
29167 # A language specific compiler.
29168 CC=$lt_compiler_FC
29170 # Is the compiler the GNU compiler?
29171 with_gcc=$GCC_FC
29173 # Compiler flag to turn off builtin functions.
29174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29176 # How to pass a linker flag through the compiler.
29177 wl=$lt_lt_prog_compiler_wl_FC
29179 # Additional compiler flags for building library objects.
29180 pic_flag=$lt_lt_prog_compiler_pic_FC
29182 # Compiler flag to prevent dynamic linking.
29183 link_static_flag=$lt_lt_prog_compiler_static_FC
29185 # Does compiler simultaneously support -c and -o options?
29186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29188 # Whether or not to add -lc for building shared libraries.
29189 build_libtool_need_lc=$archive_cmds_need_lc_FC
29191 # Whether or not to disallow shared libs when runtime libs are static.
29192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29194 # Compiler flag to allow reflexive dlopens.
29195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29197 # Compiler flag to generate shared objects directly from archives.
29198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29200 # Whether the compiler copes with passing no objects directly.
29201 compiler_needs_object=$lt_compiler_needs_object_FC
29203 # Create an old-style archive from a shared archive.
29204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29206 # Create a temporary old-style archive to link instead of a shared archive.
29207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29209 # Commands used to build a shared archive.
29210 archive_cmds=$lt_archive_cmds_FC
29211 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29213 # Commands used to build a loadable module if different from building
29214 # a shared archive.
29215 module_cmds=$lt_module_cmds_FC
29216 module_expsym_cmds=$lt_module_expsym_cmds_FC
29218 # Whether we are building with GNU ld or not.
29219 with_gnu_ld=$lt_with_gnu_ld_FC
29221 # Flag that allows shared libraries with undefined symbols to be built.
29222 allow_undefined_flag=$lt_allow_undefined_flag_FC
29224 # Flag that enforces no undefined symbols.
29225 no_undefined_flag=$lt_no_undefined_flag_FC
29227 # Flag to hardcode \$libdir into a binary during linking.
29228 # This must work even if \$libdir does not exist
29229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29231 # If ld is used when linking, flag to hardcode \$libdir into a binary
29232 # during linking. This must work even if \$libdir does not exist.
29233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29235 # Whether we need a single "-rpath" flag with a separated argument.
29236 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29239 # DIR into the resulting binary.
29240 hardcode_direct=$hardcode_direct_FC
29242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29243 # DIR into the resulting binary and the resulting library dependency is
29244 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29245 # library is relocated.
29246 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29249 # into the resulting binary.
29250 hardcode_minus_L=$hardcode_minus_L_FC
29252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29253 # into the resulting binary.
29254 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29256 # Set to "yes" if building a shared library automatically hardcodes DIR
29257 # into the library and all subsequent libraries and executables linked
29258 # against it.
29259 hardcode_automatic=$hardcode_automatic_FC
29261 # Set to yes if linker adds runtime paths of dependent libraries
29262 # to runtime path list.
29263 inherit_rpath=$inherit_rpath_FC
29265 # Whether libtool must link a program against all its dependency libraries.
29266 link_all_deplibs=$link_all_deplibs_FC
29268 # Fix the shell variable \$srcfile for the compiler.
29269 fix_srcfile_path=$lt_fix_srcfile_path_FC
29271 # Set to "yes" if exported symbols are required.
29272 always_export_symbols=$always_export_symbols_FC
29274 # The commands to list exported symbols.
29275 export_symbols_cmds=$lt_export_symbols_cmds_FC
29277 # Symbols that should not be listed in the preloaded symbols.
29278 exclude_expsyms=$lt_exclude_expsyms_FC
29280 # Symbols that must always be exported.
29281 include_expsyms=$lt_include_expsyms_FC
29283 # Commands necessary for linking programs (against libraries) with templates.
29284 prelink_cmds=$lt_prelink_cmds_FC
29286 # Specify filename containing input files.
29287 file_list_spec=$lt_file_list_spec_FC
29289 # How to hardcode a shared library path into an executable.
29290 hardcode_action=$hardcode_action_FC
29292 # The directories searched by this compiler when creating a shared library.
29293 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29295 # Dependencies to place before and after the objects being linked to
29296 # create a shared library.
29297 predep_objects=$lt_predep_objects_FC
29298 postdep_objects=$lt_postdep_objects_FC
29299 predeps=$lt_predeps_FC
29300 postdeps=$lt_postdeps_FC
29302 # The library search path used internally by the compiler when linking
29303 # a shared library.
29304 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29306 # ### END LIBTOOL TAG CONFIG: FC
29307 _LT_EOF
29310 "gstdint.h":C)
29311 if test "$GCC" = yes; then
29312 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29313 else
29314 echo "/* generated for $CC */" > tmp-stdint.h
29317 sed 's/^ *//' >> tmp-stdint.h <<EOF
29319 #ifndef GCC_GENERATED_STDINT_H
29320 #define GCC_GENERATED_STDINT_H 1
29322 #include <sys/types.h>
29325 if test "$acx_cv_header_stdint" != stdint.h; then
29326 echo "#include <stddef.h>" >> tmp-stdint.h
29328 if test "$acx_cv_header_stdint" != stddef.h; then
29329 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29332 sed 's/^ *//' >> tmp-stdint.h <<EOF
29333 /* glibc uses these symbols as guards to prevent redefinitions. */
29334 #ifdef __int8_t_defined
29335 #define _INT8_T
29336 #define _INT16_T
29337 #define _INT32_T
29338 #endif
29339 #ifdef __uint32_t_defined
29340 #define _UINT32_T
29341 #endif
29345 # ----------------- done header, emit basic int types -------------
29346 if test "$acx_cv_header_stdint" = stddef.h; then
29347 sed 's/^ *//' >> tmp-stdint.h <<EOF
29349 #ifndef _UINT8_T
29350 #define _UINT8_T
29351 #ifndef __uint8_t_defined
29352 #define __uint8_t_defined
29353 #ifndef uint8_t
29354 typedef unsigned $acx_cv_type_int8_t uint8_t;
29355 #endif
29356 #endif
29357 #endif
29359 #ifndef _UINT16_T
29360 #define _UINT16_T
29361 #ifndef __uint16_t_defined
29362 #define __uint16_t_defined
29363 #ifndef uint16_t
29364 typedef unsigned $acx_cv_type_int16_t uint16_t;
29365 #endif
29366 #endif
29367 #endif
29369 #ifndef _UINT32_T
29370 #define _UINT32_T
29371 #ifndef __uint32_t_defined
29372 #define __uint32_t_defined
29373 #ifndef uint32_t
29374 typedef unsigned $acx_cv_type_int32_t uint32_t;
29375 #endif
29376 #endif
29377 #endif
29379 #ifndef _INT8_T
29380 #define _INT8_T
29381 #ifndef __int8_t_defined
29382 #define __int8_t_defined
29383 #ifndef int8_t
29384 typedef $acx_cv_type_int8_t int8_t;
29385 #endif
29386 #endif
29387 #endif
29389 #ifndef _INT16_T
29390 #define _INT16_T
29391 #ifndef __int16_t_defined
29392 #define __int16_t_defined
29393 #ifndef int16_t
29394 typedef $acx_cv_type_int16_t int16_t;
29395 #endif
29396 #endif
29397 #endif
29399 #ifndef _INT32_T
29400 #define _INT32_T
29401 #ifndef __int32_t_defined
29402 #define __int32_t_defined
29403 #ifndef int32_t
29404 typedef $acx_cv_type_int32_t int32_t;
29405 #endif
29406 #endif
29407 #endif
29409 elif test "$ac_cv_type_u_int32_t" = yes; then
29410 sed 's/^ *//' >> tmp-stdint.h <<EOF
29412 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29413 #ifndef _INT8_T
29414 #define _INT8_T
29415 #endif
29416 #ifndef _INT16_T
29417 #define _INT16_T
29418 #endif
29419 #ifndef _INT32_T
29420 #define _INT32_T
29421 #endif
29423 #ifndef _UINT8_T
29424 #define _UINT8_T
29425 #ifndef __uint8_t_defined
29426 #define __uint8_t_defined
29427 #ifndef uint8_t
29428 typedef u_int8_t uint8_t;
29429 #endif
29430 #endif
29431 #endif
29433 #ifndef _UINT16_T
29434 #define _UINT16_T
29435 #ifndef __uint16_t_defined
29436 #define __uint16_t_defined
29437 #ifndef uint16_t
29438 typedef u_int16_t uint16_t;
29439 #endif
29440 #endif
29441 #endif
29443 #ifndef _UINT32_T
29444 #define _UINT32_T
29445 #ifndef __uint32_t_defined
29446 #define __uint32_t_defined
29447 #ifndef uint32_t
29448 typedef u_int32_t uint32_t;
29449 #endif
29450 #endif
29451 #endif
29453 else
29454 sed 's/^ *//' >> tmp-stdint.h <<EOF
29456 /* Some systems have guard macros to prevent redefinitions, define them. */
29457 #ifndef _INT8_T
29458 #define _INT8_T
29459 #endif
29460 #ifndef _INT16_T
29461 #define _INT16_T
29462 #endif
29463 #ifndef _INT32_T
29464 #define _INT32_T
29465 #endif
29466 #ifndef _UINT8_T
29467 #define _UINT8_T
29468 #endif
29469 #ifndef _UINT16_T
29470 #define _UINT16_T
29471 #endif
29472 #ifndef _UINT32_T
29473 #define _UINT32_T
29474 #endif
29478 # ------------- done basic int types, emit int64_t types ------------
29479 if test "$ac_cv_type_uint64_t" = yes; then
29480 sed 's/^ *//' >> tmp-stdint.h <<EOF
29482 /* system headers have good uint64_t and int64_t */
29483 #ifndef _INT64_T
29484 #define _INT64_T
29485 #endif
29486 #ifndef _UINT64_T
29487 #define _UINT64_T
29488 #endif
29490 elif test "$ac_cv_type_u_int64_t" = yes; then
29491 sed 's/^ *//' >> tmp-stdint.h <<EOF
29493 /* system headers have an u_int64_t (and int64_t) */
29494 #ifndef _INT64_T
29495 #define _INT64_T
29496 #endif
29497 #ifndef _UINT64_T
29498 #define _UINT64_T
29499 #ifndef __uint64_t_defined
29500 #define __uint64_t_defined
29501 #ifndef uint64_t
29502 typedef u_int64_t uint64_t;
29503 #endif
29504 #endif
29505 #endif
29507 elif test -n "$acx_cv_type_int64_t"; then
29508 sed 's/^ *//' >> tmp-stdint.h <<EOF
29510 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29511 #ifndef _INT64_T
29512 #define _INT64_T
29513 #ifndef int64_t
29514 typedef $acx_cv_type_int64_t int64_t;
29515 #endif
29516 #endif
29517 #ifndef _UINT64_T
29518 #define _UINT64_T
29519 #ifndef __uint64_t_defined
29520 #define __uint64_t_defined
29521 #ifndef uint64_t
29522 typedef unsigned $acx_cv_type_int64_t uint64_t;
29523 #endif
29524 #endif
29525 #endif
29527 else
29528 sed 's/^ *//' >> tmp-stdint.h <<EOF
29530 /* some common heuristics for int64_t, using compiler-specific tests */
29531 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29532 #ifndef _INT64_T
29533 #define _INT64_T
29534 #ifndef __int64_t_defined
29535 #ifndef int64_t
29536 typedef long long int64_t;
29537 #endif
29538 #endif
29539 #endif
29540 #ifndef _UINT64_T
29541 #define _UINT64_T
29542 #ifndef uint64_t
29543 typedef unsigned long long uint64_t;
29544 #endif
29545 #endif
29547 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29548 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29549 does not implement __extension__. But that compiler doesn't define
29550 __GNUC_MINOR__. */
29551 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29552 # define __extension__
29553 # endif
29555 # ifndef _INT64_T
29556 # define _INT64_T
29557 # ifndef int64_t
29558 __extension__ typedef long long int64_t;
29559 # endif
29560 # endif
29561 # ifndef _UINT64_T
29562 # define _UINT64_T
29563 # ifndef uint64_t
29564 __extension__ typedef unsigned long long uint64_t;
29565 # endif
29566 # endif
29568 #elif !defined __STRICT_ANSI__
29569 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29571 # ifndef _INT64_T
29572 # define _INT64_T
29573 # ifndef int64_t
29574 typedef __int64 int64_t;
29575 # endif
29576 # endif
29577 # ifndef _UINT64_T
29578 # define _UINT64_T
29579 # ifndef uint64_t
29580 typedef unsigned __int64 uint64_t;
29581 # endif
29582 # endif
29583 # endif /* compiler */
29585 #endif /* ANSI version */
29589 # ------------- done int64_t types, emit intptr types ------------
29590 if test "$ac_cv_type_uintptr_t" != yes; then
29591 sed 's/^ *//' >> tmp-stdint.h <<EOF
29593 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29594 #ifndef __uintptr_t_defined
29595 #ifndef uintptr_t
29596 typedef u$acx_cv_type_intptr_t uintptr_t;
29597 #endif
29598 #endif
29599 #ifndef __intptr_t_defined
29600 #ifndef intptr_t
29601 typedef $acx_cv_type_intptr_t intptr_t;
29602 #endif
29603 #endif
29607 # ------------- done intptr types, emit int_least types ------------
29608 if test "$ac_cv_type_int_least32_t" != yes; then
29609 sed 's/^ *//' >> tmp-stdint.h <<EOF
29611 /* Define int_least types */
29612 typedef int8_t int_least8_t;
29613 typedef int16_t int_least16_t;
29614 typedef int32_t int_least32_t;
29615 #ifdef _INT64_T
29616 typedef int64_t int_least64_t;
29617 #endif
29619 typedef uint8_t uint_least8_t;
29620 typedef uint16_t uint_least16_t;
29621 typedef uint32_t uint_least32_t;
29622 #ifdef _UINT64_T
29623 typedef uint64_t uint_least64_t;
29624 #endif
29628 # ------------- done intptr types, emit int_fast types ------------
29629 if test "$ac_cv_type_int_fast32_t" != yes; then
29630 sed 's/^ *//' >> tmp-stdint.h <<EOF
29632 /* Define int_fast types. short is often slow */
29633 typedef int8_t int_fast8_t;
29634 typedef int int_fast16_t;
29635 typedef int32_t int_fast32_t;
29636 #ifdef _INT64_T
29637 typedef int64_t int_fast64_t;
29638 #endif
29640 typedef uint8_t uint_fast8_t;
29641 typedef unsigned int uint_fast16_t;
29642 typedef uint32_t uint_fast32_t;
29643 #ifdef _UINT64_T
29644 typedef uint64_t uint_fast64_t;
29645 #endif
29649 if test "$ac_cv_type_uintmax_t" != yes; then
29650 sed 's/^ *//' >> tmp-stdint.h <<EOF
29652 /* Define intmax based on what we found */
29653 #ifndef intmax_t
29654 #ifdef _INT64_T
29655 typedef int64_t intmax_t;
29656 #else
29657 typedef long intmax_t;
29658 #endif
29659 #endif
29660 #ifndef uintmax_t
29661 #ifdef _UINT64_T
29662 typedef uint64_t uintmax_t;
29663 #else
29664 typedef unsigned long uintmax_t;
29665 #endif
29666 #endif
29670 sed 's/^ *//' >> tmp-stdint.h <<EOF
29672 #endif /* GCC_GENERATED_STDINT_H */
29675 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29676 rm -f tmp-stdint.h
29677 else
29678 mv -f tmp-stdint.h gstdint.h
29683 esac
29684 done # for ac_tag
29687 as_fn_exit 0
29688 _ACEOF
29689 ac_clean_files=$ac_clean_files_save
29691 test $ac_write_fail = 0 ||
29692 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29695 # configure is writing to config.log, and then calls config.status.
29696 # config.status does its own redirection, appending to config.log.
29697 # Unfortunately, on DOS this fails, as config.log is still kept open
29698 # by configure, so config.status won't be able to write to it; its
29699 # output is simply discarded. So we exec the FD to /dev/null,
29700 # effectively closing config.log, so it can be properly (re)opened and
29701 # appended to by config.status. When coming back to configure, we
29702 # need to make the FD available again.
29703 if test "$no_create" != yes; then
29704 ac_cs_success=:
29705 ac_config_status_args=
29706 test "$silent" = yes &&
29707 ac_config_status_args="$ac_config_status_args --quiet"
29708 exec 5>/dev/null
29709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29710 exec 5>>config.log
29711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29712 # would make configure fail if this is the last instruction.
29713 $ac_cs_success || as_fn_exit $?
29715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}