]> gcc.gnu.org Git - gcc.git/blob - libgfortran/configure
PR 63589 Fix splitting of PATH in find_addr2line.
[gcc.git] / libgfortran / configure
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.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
173
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
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
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
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206 fi
207 fi
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
217
218
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+"$@"}
228 fi
229
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."
241 fi
242 exit 1
243 fi
244 fi
245 fi
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
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
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 ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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 ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
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 ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
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 ()
371 {
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
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
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
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
398 fi
399
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/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
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
425
426
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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
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; }
449
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
456 }
457
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;;
467 *)
468 ECHO_N='-n';;
469 esac
470
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
477 fi
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'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
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
503 fi
504
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=
512 fi
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
524 '
525 fi
526 as_executable_p=$as_test_x
527
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'"
530
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'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
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`
543
544 #
545 # Initializations.
546 #
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=
555
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/'
563
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"
599
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
622 FC
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
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 SED
639 LIBTOOL
640 RANLIB
641 AR
642 AS
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
656 CPP
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
673 CC
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
683 AWK
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
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 FC
789 FCFLAGS'
790
791
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
813
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'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
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
849 fi
850
851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
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 ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
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 ;;
893
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
902 *"
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 ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
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
928 *"
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 ;;
935
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 ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
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 ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
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 ;;
966
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 ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
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 ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
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 ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
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 ;;
1019
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 ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
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 ;;
1040
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 ;;
1047
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 ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
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 ;;
1084
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 ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
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 ;;
1112
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 ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
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
1132 *"
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 ;;
1139
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
1148 *"
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 ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
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 ;;
1166
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 ;;
1173
1174 -*) as_fn_error "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information."
1176 ;;
1177
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 ;;
1187
1188 *)
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}
1194 ;;
1195
1196 esac
1197 done
1198
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"
1202 fi
1203
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
1210 fi
1211
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
1217 do
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
1232
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
1239
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
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
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"
1263
1264
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/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
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"
1302 fi
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=.
1310 fi
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
1323
1324 #
1325 # Report the --help message.
1326 #
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.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
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.
1337
1338 Defaults for the options are specified in brackets.
1339
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 \`..']
1350
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]
1356
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'.
1361
1362 For better control, use the options below.
1363
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
1385
1386 cat <<\_ACEOF
1387
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
1392
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
1398 fi
1399
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
1405
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
1428
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
1437
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
1449
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.
1452
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=$?
1458 fi
1459
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=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
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
1483
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
1499
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
1513 fi
1514
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
1520
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
1526 fi
1527
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1531
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 ()
1536 {
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
1552 fi
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
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1567
1568 } # ac_fn_c_try_compile
1569
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 ()
1574 {
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
1589 fi
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
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1604
1605 } # ac_fn_c_try_cpp
1606
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 ()
1613 {
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
1620 fi
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. */
1630 $4
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
1637 fi
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; }
1641
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
1653 fi
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; }
1657
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;}
1665 ;;
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;}
1677 ;;
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"
1685 fi
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691
1692 } # ac_fn_c_check_header_mongrel
1693
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 ()
1699 {
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
1727
1728 ac_retval=$ac_status
1729 fi
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
1733
1734 } # ac_fn_c_try_run
1735
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 ()
1741 {
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. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
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;}
1764
1765 } # ac_fn_c_check_header_compile
1766
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 ()
1771 {
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
1787 fi
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
1800
1801 ac_retval=1
1802 fi
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
1810
1811 } # ac_fn_c_try_link
1812
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 ()
1817 {
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
1826 fi
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
1832
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. */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
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
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875 fi
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;}
1880
1881 } # ac_fn_c_check_func
1882
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 ()
1887 {
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
1903 fi
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
1913
1914 ac_retval=1
1915 fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919 } # ac_fn_fc_try_compile
1920
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 ()
1925 {
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
1941 fi
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
1954
1955 ac_retval=1
1956 fi
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
1964
1965 } # ac_fn_fc_try_link
1966
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 ()
1972 {
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. */
1982 $4
1983 int
1984 main ()
1985 {
1986 if (sizeof ($2))
1987 return 0;
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 if (sizeof (($2)))
2000 return 0;
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006
2007 else
2008 eval "$3=yes"
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
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;}
2018
2019 } # ac_fn_c_check_type
2020
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 ()
2027 {
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. */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2039
2040 ;
2041 return 0;
2042 }
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. */
2049 $4
2050 int
2051 main ()
2052 {
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2055
2056 ;
2057 return 0;
2058 }
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
2067 fi
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2069 fi
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. */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2081
2082 ;
2083 return 0;
2084 }
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. */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2097
2098 ;
2099 return 0;
2100 }
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
2109 fi
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 ac_lo= ac_hi=
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
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. */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2131
2132 ;
2133 return 0;
2134 }
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
2140 fi
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. */
2150 $4
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2155 int
2156 main ()
2157 {
2158
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2163 {
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2168 }
2169 else
2170 {
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2175 }
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2179
2180 ;
2181 return 0;
2182 }
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
2188 fi
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
2192
2193 fi
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 return $ac_retval
2196
2197 } # ac_fn_c_compute_int
2198
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 ()
2204 {
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. */
2213 $5
2214 int
2215 main ()
2216 {
2217 static $2 ac_aggr;
2218 if (ac_aggr.$3)
2219 return 0;
2220 ;
2221 return 0;
2222 }
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. */
2229 $5
2230 int
2231 main ()
2232 {
2233 static $2 ac_aggr;
2234 if (sizeof ac_aggr.$3)
2235 return 0;
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242 else
2243 eval "$4=no"
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
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;}
2253
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.
2258
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
2261
2262 $ $0 $@
2263
2264 _ACEOF
2265 exec 5>>config.log
2266 {
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2271
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`
2277
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`
2280
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`
2288
2289 _ASUNAME
2290
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
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
2299
2300 } >&5
2301
2302 cat >&5 <<_ACEOF
2303
2304
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2308
2309 _ACEOF
2310
2311
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
2322 do
2323 for ac_arg
2324 do
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'" ;;
2335 2)
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
2348 ;;
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2351 fi
2352 as_fn_append ac_configure_args " '$ac_arg'"
2353 ;;
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2359
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.
2367 {
2368 echo
2369
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
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 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2415 do
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
2423
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
2432 do
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
2440 fi
2441
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
2451 fi
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
2459 ' 0
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
2464
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2467
2468 $as_echo "/* confdefs.h */" > confdefs.h
2469
2470 # Predefined preprocessor variables.
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2495
2496
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
2509 fi
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 do
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"
2518 fi
2519 done
2520
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
2531 fi
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
2536 fi
2537
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_func_list " strtok_r"
2608 as_fn_append ac_header_list " math.h"
2609 # Check that the precious variables saved in the cache have kept the same
2610 # value.
2611 ac_cache_corrupted=false
2612 for ac_var in $ac_precious_vars; do
2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2614 eval ac_new_set=\$ac_env_${ac_var}_set
2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2616 eval ac_new_val=\$ac_env_${ac_var}_value
2617 case $ac_old_set,$ac_new_set in
2618 set,)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2620 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,set)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,);;
2627 *)
2628 if test "x$ac_old_val" != "x$ac_new_val"; then
2629 # differences in whitespace do not lead to failure.
2630 ac_old_val_w=`echo x $ac_old_val`
2631 ac_new_val_w=`echo x $ac_new_val`
2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2634 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2635 ac_cache_corrupted=:
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2638 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2639 eval $ac_var=\$ac_old_val
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2642 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2644 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 fi;;
2646 esac
2647 # Pass precious variables to config.status.
2648 if test "$ac_new_set" = set; then
2649 case $ac_new_val in
2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2651 *) ac_arg=$ac_var=$ac_new_val ;;
2652 esac
2653 case " $ac_configure_args " in
2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2656 esac
2657 fi
2658 done
2659 if $ac_cache_corrupted; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2663 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2664 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2665 fi
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2669
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676
2677
2678
2679
2680 ac_config_headers="$ac_config_headers config.h"
2681
2682 ac_aux_dir=
2683 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2684 for ac_t in install-sh install.sh shtool; do
2685 if test -f "$ac_dir/$ac_t"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/$ac_t -c"
2688 break 2
2689 fi
2690 done
2691 done
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2694 fi
2695
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2703
2704
2705 # Make sure we can run config.sub.
2706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2707 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2708
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2710 $as_echo_n "checking build system type... " >&6; }
2711 if test "${ac_cv_build+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 ac_build_alias=$build_alias
2715 test "x$ac_build_alias" = x &&
2716 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2717 test "x$ac_build_alias" = x &&
2718 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2720 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2724 $as_echo "$ac_cv_build" >&6; }
2725 case $ac_cv_build in
2726 *-*-*) ;;
2727 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2728 esac
2729 build=$ac_cv_build
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_build
2732 shift
2733 build_cpu=$1
2734 build_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 build_os=$*
2739 IFS=$ac_save_IFS
2740 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2741
2742
2743 case ${build_alias} in
2744 "") build_noncanonical=${build} ;;
2745 *) build_noncanonical=${build_alias} ;;
2746 esac
2747
2748 case ${host_alias} in
2749 "") host_noncanonical=${build_noncanonical} ;;
2750 *) host_noncanonical=${host_alias} ;;
2751 esac
2752
2753 case ${target_alias} in
2754 "") target_noncanonical=${host_noncanonical} ;;
2755 *) target_noncanonical=${target_alias} ;;
2756 esac
2757
2758
2759 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2760 # have matching libraries, they should use host libraries: Makefile.tpl
2761 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2762 # However, they still use the build modules, because the corresponding
2763 # host modules (e.g. bison) are only built for the host when bootstrap
2764 # finishes. So:
2765 # - build_subdir is where we find build modules, and never changes.
2766 # - build_libsubdir is where we find build libraries, and can be overridden.
2767
2768 # Prefix 'build-' so this never conflicts with target_subdir.
2769 build_subdir="build-${build_noncanonical}"
2770
2771 # Check whether --with-build-libsubdir was given.
2772 if test "${with_build_libsubdir+set}" = set; then :
2773 withval=$with_build_libsubdir; build_libsubdir="$withval"
2774 else
2775 build_libsubdir="$build_subdir"
2776 fi
2777
2778 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2779 if ( test $srcdir = . && test -d gcc ) \
2780 || test -d $srcdir/../host-${host_noncanonical}; then
2781 host_subdir="host-${host_noncanonical}"
2782 else
2783 host_subdir=.
2784 fi
2785 # No prefix.
2786 target_subdir=${target_noncanonical}
2787
2788
2789 # -------
2790 # Options
2791 # -------
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2794 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2795 # Check whether --enable-version-specific-runtime-libs was given.
2796 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2797 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2798 yes) version_specific_libs=yes ;;
2799 no) version_specific_libs=no ;;
2800 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2801 esac
2802 else
2803 version_specific_libs=no
2804 fi
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2807 $as_echo "$version_specific_libs" >&6; }
2808
2809 # Build with intermodule optimisations
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2811 $as_echo_n "checking for --enable-intermodule... " >&6; }
2812 # Check whether --enable-intermodule was given.
2813 if test "${enable_intermodule+set}" = set; then :
2814 enableval=$enable_intermodule; case "$enable_intermodule" in
2815 yes) onestep="-onestep";;
2816 *) onestep="";;
2817 esac
2818 else
2819 onestep=""
2820 fi
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2823 $as_echo "$enable_intermodule" >&6; }
2824 if test x$onestep = x-onestep; then
2825 onestep_TRUE=
2826 onestep_FALSE='#'
2827 else
2828 onestep_TRUE='#'
2829 onestep_FALSE=
2830 fi
2831
2832
2833
2834 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2835 #
2836 # You will slowly go insane if you do not grok the following fact: when
2837 # building this library, the top-level /target/ becomes the library's /host/.
2838 #
2839 # configure then causes --target to default to --host, exactly like any
2840 # other package using autoconf. Therefore, 'target' and 'host' will
2841 # always be the same. This makes sense both for native and cross compilers
2842 # just think about it for a little while. :-)
2843 #
2844 # Also, if this library is being configured as part of a cross compiler, the
2845 # top-level configure script will pass the "real" host as $with_cross_host.
2846 #
2847 # Do not delete or change the following two lines. For why, see
2848 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2850 $as_echo_n "checking host system type... " >&6; }
2851 if test "${ac_cv_host+set}" = set; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test "x$host_alias" = x; then
2855 ac_cv_host=$ac_cv_build
2856 else
2857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2858 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2859 fi
2860
2861 fi
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2863 $as_echo "$ac_cv_host" >&6; }
2864 case $ac_cv_host in
2865 *-*-*) ;;
2866 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2867 esac
2868 host=$ac_cv_host
2869 ac_save_IFS=$IFS; IFS='-'
2870 set x $ac_cv_host
2871 shift
2872 host_cpu=$1
2873 host_vendor=$2
2874 shift; shift
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2877 host_os=$*
2878 IFS=$ac_save_IFS
2879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2880
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2883 $as_echo_n "checking target system type... " >&6; }
2884 if test "${ac_cv_target+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test "x$target_alias" = x; then
2888 ac_cv_target=$ac_cv_host
2889 else
2890 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2891 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2892 fi
2893
2894 fi
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2896 $as_echo "$ac_cv_target" >&6; }
2897 case $ac_cv_target in
2898 *-*-*) ;;
2899 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2900 esac
2901 target=$ac_cv_target
2902 ac_save_IFS=$IFS; IFS='-'
2903 set x $ac_cv_target
2904 shift
2905 target_cpu=$1
2906 target_vendor=$2
2907 shift; shift
2908 # Remember, the first character of IFS is used to create $*,
2909 # except with old shells:
2910 target_os=$*
2911 IFS=$ac_save_IFS
2912 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2913
2914
2915 # The aliases save the names the user supplied, while $host etc.
2916 # will get canonicalized.
2917 test -n "$target_alias" &&
2918 test "$program_prefix$program_suffix$program_transform_name" = \
2919 NONENONEs,x,x, &&
2920 program_prefix=${target_alias}-
2921
2922
2923
2924
2925 target_alias=${target_alias-$host_alias}
2926
2927
2928 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2929 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2930 # 1.9.6: minimum required version
2931 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2932 # of other PACKAGE_* variables will, however, and there's nothing
2933 # we can do about that; they come from AC_INIT).
2934 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2935 # file in the top srcdir, etc, etc), so stop complaining.
2936 # no-dist: we don't want 'dist' and related rules.
2937 # -Wall: turns on all automake warnings...
2938 # -Wno-portability: ...except this one, since GNU make is required.
2939 am__api_version='1.11'
2940
2941 # Find a good install program. We prefer a C program (faster),
2942 # so one script is as good as another. But avoid the broken or
2943 # incompatible versions:
2944 # SysV /etc/install, /usr/sbin/install
2945 # SunOS /usr/etc/install
2946 # IRIX /sbin/install
2947 # AIX /bin/install
2948 # AmigaOS /C/install, which installs bootblocks on floppy discs
2949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952 # OS/2's system install, which has a completely different semantic
2953 # ./install, which can be erroneously created by make from ./install.sh.
2954 # Reject install programs that cannot install multiple files.
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2957 if test -z "$INSTALL"; then
2958 if test "${ac_cv_path_install+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 # Account for people who put trailing slashes in PATH elements.
2967 case $as_dir/ in #((
2968 ./ | .// | /[cC]/* | \
2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2971 /usr/ucb/* ) ;;
2972 *)
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2975 # by default.
2976 for ac_prog in ginstall scoinst install; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2979 if test $ac_prog = install &&
2980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # AIX install. It has an incompatible calling convention.
2982 :
2983 elif test $ac_prog = install &&
2984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # program-specific install script used by HP pwplus--don't use.
2986 :
2987 else
2988 rm -rf conftest.one conftest.two conftest.dir
2989 echo one > conftest.one
2990 echo two > conftest.two
2991 mkdir conftest.dir
2992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993 test -s conftest.one && test -s conftest.two &&
2994 test -s conftest.dir/conftest.one &&
2995 test -s conftest.dir/conftest.two
2996 then
2997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2998 break 3
2999 fi
3000 fi
3001 fi
3002 done
3003 done
3004 ;;
3005 esac
3006
3007 done
3008 IFS=$as_save_IFS
3009
3010 rm -rf conftest.one conftest.two conftest.dir
3011
3012 fi
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name.
3020 INSTALL=$ac_install_sh
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3024 $as_echo "$INSTALL" >&6; }
3025
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3035 $as_echo_n "checking whether build environment is sane... " >&6; }
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Reject unsafe characters in $srcdir or the absolute working directory
3040 # name. Accept space and tab only in the latter.
3041 am_lf='
3042 '
3043 case `pwd` in
3044 *[\\\"\#\$\&\'\`$am_lf]*)
3045 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3046 esac
3047 case $srcdir in
3048 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3049 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3050 esac
3051
3052 # Do `set' in a subshell so we don't clobber the current shell's
3053 # arguments. Must try -L first in case configure is actually a
3054 # symlink; some systems play weird games with the mod time of symlinks
3055 # (eg FreeBSD returns the mod time of the symlink's containing
3056 # directory).
3057 if (
3058 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3059 if test "$*" = "X"; then
3060 # -L didn't work.
3061 set X `ls -t "$srcdir/configure" conftest.file`
3062 fi
3063 rm -f conftest.file
3064 if test "$*" != "X $srcdir/configure conftest.file" \
3065 && test "$*" != "X conftest.file $srcdir/configure"; then
3066
3067 # If neither matched, then we have a broken ls. This can happen
3068 # if, for instance, CONFIG_SHELL is bash and it inherits a
3069 # broken ls alias from the environment. This has actually
3070 # happened. Such a system could not be considered "sane".
3071 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3072 alias in your environment" "$LINENO" 5
3073 fi
3074
3075 test "$2" = conftest.file
3076 )
3077 then
3078 # Ok.
3079 :
3080 else
3081 as_fn_error "newly created file is older than distributed files!
3082 Check your system clock" "$LINENO" 5
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086 test "$program_prefix" != NONE &&
3087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3088 # Use a double $ so make ignores it.
3089 test "$program_suffix" != NONE &&
3090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3091 # Double any \ or $.
3092 # By default was `s,x,x', remove it if useless.
3093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3094 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095
3096 # expand $ac_aux_dir to an absolute path
3097 am_aux_dir=`cd $ac_aux_dir && pwd`
3098
3099 if test x"${MISSING+set}" != xset; then
3100 case $am_aux_dir in
3101 *\ * | *\ *)
3102 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 *)
3104 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3105 esac
3106 fi
3107 # Use eval to expand $SHELL
3108 if eval "$MISSING --run true"; then
3109 am_missing_run="$MISSING --run "
3110 else
3111 am_missing_run=
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3113 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3114 fi
3115
3116 if test x"${install_sh}" != xset; then
3117 case $am_aux_dir in
3118 *\ * | *\ *)
3119 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 *)
3121 install_sh="\${SHELL} $am_aux_dir/install-sh"
3122 esac
3123 fi
3124
3125 # Installed binaries are usually stripped using `strip' when the user
3126 # run `make install-strip'. However `strip' might not be the right
3127 # tool to use in cross-compilation environments, therefore Automake
3128 # will honor the `STRIP' environment variable to overrule this program.
3129 if test "$cross_compiling" != no; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_STRIP+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 STRIP=$ac_cv_prog_STRIP
3159 if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161 $as_echo "$STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172 set dummy strip; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199 if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201 $as_echo "$ac_ct_STRIP" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 STRIP=$ac_ct_STRIP
3217 fi
3218 else
3219 STRIP="$ac_cv_prog_STRIP"
3220 fi
3221
3222 fi
3223 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3227 if test -z "$MKDIR_P"; then
3228 if test "${ac_cv_path_mkdir+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in mkdir gmkdir; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3240 'mkdir (GNU coreutils) '* | \
3241 'mkdir (coreutils) '* | \
3242 'mkdir (fileutils) '4.1*)
3243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3244 break 3;;
3245 esac
3246 done
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi
3252
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3255 else
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 test -d ./--version && rmdir ./--version
3261 MKDIR_P="$ac_install_sh -d"
3262 fi
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3265 $as_echo "$MKDIR_P" >&6; }
3266
3267 mkdir_p="$MKDIR_P"
3268 case $mkdir_p in
3269 [\\/$]* | ?:[\\/]*) ;;
3270 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3271 esac
3272
3273 for ac_prog in gawk mawk nawk awk
3274 do
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_AWK+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$AWK"; then
3283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_AWK="$ac_prog"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 AWK=$ac_cv_prog_AWK
3303 if test -n "$AWK"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3305 $as_echo "$AWK" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312 test -n "$AWK" && break
3313 done
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3317 set x ${MAKE-make}
3318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3319 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat >conftest.make <<\_ACEOF
3323 SHELL = /bin/sh
3324 all:
3325 @echo '@@@%%%=$(MAKE)=@@@%%%'
3326 _ACEOF
3327 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3329 *@@@%%%=?*=@@@%%%*)
3330 eval ac_cv_prog_make_${ac_make}_set=yes;;
3331 *)
3332 eval ac_cv_prog_make_${ac_make}_set=no;;
3333 esac
3334 rm -f conftest.make
3335 fi
3336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339 SET_MAKE=
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 SET_MAKE="MAKE=${MAKE-make}"
3344 fi
3345
3346 rm -rf .tst 2>/dev/null
3347 mkdir .tst 2>/dev/null
3348 if test -d .tst; then
3349 am__leading_dot=.
3350 else
3351 am__leading_dot=_
3352 fi
3353 rmdir .tst 2>/dev/null
3354
3355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357 # is not polluted with repeated "-I."
3358 am__isrc=' -I$(srcdir)'
3359 # test to see if srcdir already configured
3360 if test -f $srcdir/config.status; then
3361 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 fi
3363 fi
3364
3365 # test whether we have cygpath
3366 if test -z "$CYGPATH_W"; then
3367 if (cygpath --version) >/dev/null 2>/dev/null; then
3368 CYGPATH_W='cygpath -w'
3369 else
3370 CYGPATH_W=echo
3371 fi
3372 fi
3373
3374
3375 # Define the identity of the package.
3376 PACKAGE='libgfortran'
3377 VERSION='0.3'
3378
3379
3380 # Some tools Automake needs.
3381
3382 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3383
3384
3385 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3386
3387
3388 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3389
3390
3391 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3392
3393
3394 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395
3396 # We need awk for the "check" target. The system "awk" is bad on
3397 # some platforms.
3398 # Always define AMTAR for backward compatibility. Yes, it's still used
3399 # in the wild :-( We should find a proper way to deprecate it ...
3400 AMTAR='$${TAR-tar}'
3401
3402 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3403
3404
3405
3406
3407
3408
3409
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3411 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3415 else
3416 USE_MAINTAINER_MODE=no
3417 fi
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3420 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3421 if test $USE_MAINTAINER_MODE = yes; then
3422 MAINTAINER_MODE_TRUE=
3423 MAINTAINER_MODE_FALSE='#'
3424 else
3425 MAINTAINER_MODE_TRUE='#'
3426 MAINTAINER_MODE_FALSE=
3427 fi
3428
3429 MAINT=$MAINTAINER_MODE_TRUE
3430
3431
3432 # Default to --enable-multilib
3433 # Check whether --enable-multilib was given.
3434 if test "${enable_multilib+set}" = set; then :
3435 enableval=$enable_multilib; case "$enableval" in
3436 yes) multilib=yes ;;
3437 no) multilib=no ;;
3438 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3439 esac
3440 else
3441 multilib=yes
3442 fi
3443
3444
3445 # We may get other options which we leave undocumented:
3446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3447 # See config-ml.in if you want the gory details.
3448
3449 if test "$srcdir" = "."; then
3450 if test "$with_target_subdir" != "."; then
3451 multi_basedir="$srcdir/$with_multisrctop../.."
3452 else
3453 multi_basedir="$srcdir/$with_multisrctop.."
3454 fi
3455 else
3456 multi_basedir="$srcdir/.."
3457 fi
3458
3459
3460 # Even if the default multilib is not a cross compilation,
3461 # it may be that some of the other multilibs are.
3462 if test $cross_compiling = no && test $multilib = yes \
3463 && test "x${with_multisubdir}" != x ; then
3464 cross_compiling=maybe
3465 fi
3466
3467 ac_config_commands="$ac_config_commands default-1"
3468
3469
3470 # Handy for debugging:
3471 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3472
3473 # Are we being configured with some form of cross compiler?
3474 # NB: We don't actually need to know this just now, but when, say, a test
3475 # suite is included, we'll have to know.
3476 if test "$build" != "$host"; then
3477 LIBGFOR_IS_NATIVE=false
3478
3479 else
3480 LIBGFOR_IS_NATIVE=true
3481 fi
3482
3483 DEPDIR="${am__leading_dot}deps"
3484
3485 ac_config_commands="$ac_config_commands depfiles"
3486
3487
3488 am_make=${MAKE-make}
3489 cat > confinc << 'END'
3490 am__doit:
3491 @echo this is the am__doit target
3492 .PHONY: am__doit
3493 END
3494 # If we don't find an include directive, just comment out the code.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3496 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3497 am__include="#"
3498 am__quote=
3499 _am_result=none
3500 # First try GNU make style include.
3501 echo "include confinc" > confmf
3502 # Ignore all kinds of additional output from `make'.
3503 case `$am_make -s -f confmf 2> /dev/null` in #(
3504 *the\ am__doit\ target*)
3505 am__include=include
3506 am__quote=
3507 _am_result=GNU
3508 ;;
3509 esac
3510 # Now try BSD make style include.
3511 if test "$am__include" = "#"; then
3512 echo '.include "confinc"' > confmf
3513 case `$am_make -s -f confmf 2> /dev/null` in #(
3514 *the\ am__doit\ target*)
3515 am__include=.include
3516 am__quote="\""
3517 _am_result=BSD
3518 ;;
3519 esac
3520 fi
3521
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3524 $as_echo "$_am_result" >&6; }
3525 rm -f confinc confmf
3526
3527 # Check whether --enable-dependency-tracking was given.
3528 if test "${enable_dependency_tracking+set}" = set; then :
3529 enableval=$enable_dependency_tracking;
3530 fi
3531
3532 if test "x$enable_dependency_tracking" != xno; then
3533 am_depcomp="$ac_aux_dir/depcomp"
3534 AMDEPBACKSLASH='\'
3535 am__nodep='_no'
3536 fi
3537 if test "x$enable_dependency_tracking" != xno; then
3538 AMDEP_TRUE=
3539 AMDEP_FALSE='#'
3540 else
3541 AMDEP_TRUE='#'
3542 AMDEP_FALSE=
3543 fi
3544
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589 fi
3590 if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "gcc", so it can be a program name with args.
3593 set dummy gcc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_ac_ct_CC="gcc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 $as_echo "$ac_ct_CC" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 CC=$ac_ct_CC
3638 fi
3639 else
3640 CC="$ac_cv_prog_CC"
3641 fi
3642
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC="${ac_tool_prefix}cc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 fi
3684 if test -z "$CC"; then
3685 # Extract the first word of "cc", so it can be a program name with args.
3686 set dummy cc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 ac_prog_rejected=no
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3704 ac_prog_rejected=yes
3705 continue
3706 fi
3707 ac_cv_prog_CC="cc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 if test $ac_prog_rejected = yes; then
3716 # We found a bogon in the path, so make sure we never use it.
3717 set dummy $ac_cv_prog_CC
3718 shift
3719 if test $# != 0; then
3720 # We chose a different compiler from the bogus one.
3721 # However, it has the same basename, so the bogon will be chosen
3722 # first if we set CC to just the basename; use the full file name.
3723 shift
3724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3725 fi
3726 fi
3727 fi
3728 fi
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3736 fi
3737
3738
3739 fi
3740 if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 for ac_prog in cl.exe
3743 do
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 $as_echo "$CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781 test -n "$CC" && break
3782 done
3783 fi
3784 if test -z "$CC"; then
3785 ac_ct_CC=$CC
3786 for ac_prog in cl.exe
3787 do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$ac_ct_CC"; then
3796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_ac_ct_CC="$ac_prog"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816 if test -n "$ac_ct_CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818 $as_echo "$ac_ct_CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825 test -n "$ac_ct_CC" && break
3826 done
3827
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 CC=$ac_ct_CC
3838 fi
3839 fi
3840
3841 fi
3842
3843
3844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error "no acceptable C compiler found in \$PATH
3847 See \`config.log' for more details." "$LINENO" 5; }
3848
3849 # Provide some information about the compiler.
3850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3851 set X $ac_compile
3852 ac_compiler=$2
3853 for ac_option in --version -v -V -qversion; do
3854 { { ac_try="$ac_compiler $ac_option >&5"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862 ac_status=$?
3863 if test -s conftest.err; then
3864 sed '10a\
3865 ... rest of stderr output deleted ...
3866 10q' conftest.err >conftest.er1
3867 cat conftest.er1 >&5
3868 rm -f conftest.er1 conftest.err
3869 fi
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }
3872 done
3873
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 # FIXME: Cleanup?
3886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3887 (eval $ac_link) 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 gcc_no_link=no
3892 else
3893 gcc_no_link=yes
3894 fi
3895 if test x$gcc_no_link = xyes; then
3896 # Setting cross_compile will disable run tests; it will
3897 # also disable AC_CHECK_FILE but that's generally
3898 # correct if we can't link.
3899 cross_compiling=yes
3900 EXEEXT=
3901 else
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 ac_clean_files_save=$ac_clean_files
3914 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3915 # Try to create an executable without -o first, disregard a.out.
3916 # It will help us diagnose broken compilers, and finding out an intuition
3917 # of exeext.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3919 $as_echo_n "checking for C compiler default output file name... " >&6; }
3920 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3921
3922 # The possible output files:
3923 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3924
3925 ac_rmfiles=
3926 for ac_file in $ac_files
3927 do
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3931 esac
3932 done
3933 rm -f $ac_rmfiles
3934
3935 if { { ac_try="$ac_link_default"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_link_default") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3947 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3948 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3949 # so that the user can short-circuit this test for compilers unknown to
3950 # Autoconf.
3951 for ac_file in $ac_files ''
3952 do
3953 test -f "$ac_file" || continue
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3956 ;;
3957 [ab].out )
3958 # We found the default executable, but exeext='' is most
3959 # certainly right.
3960 break;;
3961 *.* )
3962 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3963 then :; else
3964 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 fi
3966 # We set ac_cv_exeext here because the later test for it is not
3967 # safe: cross compilers may not add the suffix if given an `-o'
3968 # argument, so we may need to know it at that point already.
3969 # Even if this section looks crufty: it has the advantage of
3970 # actually working.
3971 break;;
3972 * )
3973 break;;
3974 esac
3975 done
3976 test "$ac_cv_exeext" = no && ac_cv_exeext=
3977
3978 else
3979 ac_file=''
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3982 $as_echo "$ac_file" >&6; }
3983 if test -z "$ac_file"; then :
3984 $as_echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 { as_fn_set_status 77
3990 as_fn_error "C compiler cannot create executables
3991 See \`config.log' for more details." "$LINENO" 5; }; }
3992 fi
3993 ac_exeext=$ac_cv_exeext
3994
3995 # Check that the compiler produces executables we can run. If not, either
3996 # the compiler is broken, or we cross compile.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3998 $as_echo_n "checking whether the C compiler works... " >&6; }
3999 # If not cross compiling, check that we can run a simple program.
4000 if test "$cross_compiling" != yes; then
4001 if { ac_try='./$ac_file'
4002 { { case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_try") 2>&5
4009 ac_status=$?
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; }; then
4012 cross_compiling=no
4013 else
4014 if test "$cross_compiling" = maybe; then
4015 cross_compiling=yes
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot run C compiled programs.
4020 If you meant to cross compile, use \`--host'.
4021 See \`config.log' for more details." "$LINENO" 5; }
4022 fi
4023 fi
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4029 ac_clean_files=$ac_clean_files_save
4030 # Check that the compiler produces executables we can run. If not, either
4031 # the compiler is broken, or we cross compile.
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033 $as_echo_n "checking whether we are cross compiling... " >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035 $as_echo "$cross_compiling" >&6; }
4036
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4038 $as_echo_n "checking for suffix of executables... " >&6; }
4039 if { { ac_try="$ac_link"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_link") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; then :
4050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4052 # work properly (i.e., refer to `conftest.exe'), while it won't with
4053 # `rm'.
4054 for ac_file in conftest.exe conftest conftest.*; do
4055 test -f "$ac_file" || continue
4056 case $ac_file in
4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4059 break;;
4060 * ) break;;
4061 esac
4062 done
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error "cannot compute suffix of executables: cannot compile and link
4067 See \`config.log' for more details." "$LINENO" 5; }
4068 fi
4069 rm -f conftest$ac_cv_exeext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4071 $as_echo "$ac_cv_exeext" >&6; }
4072
4073 rm -f conftest.$ac_ext
4074 EXEEXT=$ac_cv_exeext
4075 ac_exeext=$EXEEXT
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if test "${ac_cv_objext+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details." "$LINENO" 5; }
4121 fi
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135
4136 int
4137 main ()
4138 {
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4142
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4154
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4162 fi
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if test "${ac_cv_prog_cc_g+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191
4192 int
4193 main ()
4194 {
4195
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207
4208 int
4209 main ()
4210 {
4211
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4235 fi
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4241 fi
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 #include <sys/types.h>
4255 #include <sys/stat.h>
4256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4257 struct buf { int x; };
4258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4259 static char *e (p, i)
4260 char **p;
4261 int i;
4262 {
4263 return p[i];
4264 }
4265 static char *f (char * (*g) (char **, int), char **p, ...)
4266 {
4267 char *s;
4268 va_list v;
4269 va_start (v,p);
4270 s = g (p, va_arg (v,int));
4271 va_end (v);
4272 return s;
4273 }
4274
4275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4276 function prototypes and stuff, but not '\xHH' hex character constants.
4277 These don't provoke an error unfortunately, instead are silently treated
4278 as 'x'. The following induces an error, until -std is added to get
4279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4280 array size at least. It's necessary to write '\x00'==0 to get something
4281 that's true only with -std. */
4282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283
4284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4285 inside strings and character constants. */
4286 #define FOO(x) 'x'
4287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288
4289 int test (int i, double x);
4290 struct s1 {int (*f) (int a);};
4291 struct s2 {int (*f) (double a);};
4292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4293 int argc;
4294 char **argv;
4295 int
4296 main ()
4297 {
4298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 do
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_prog_cc_c89=$ac_arg
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext
4311 test "x$ac_cv_prog_cc_c89" != "xno" && break
4312 done
4313 rm -f conftest.$ac_ext
4314 CC=$ac_save_CC
4315
4316 fi
4317 # AC_CACHE_VAL
4318 case "x$ac_cv_prog_cc_c89" in
4319 x)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 $as_echo "none needed" >&6; } ;;
4322 xno)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4324 $as_echo "unsupported" >&6; } ;;
4325 *)
4326 CC="$CC $ac_cv_prog_cc_c89"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4328 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4329 esac
4330 if test "x$ac_cv_prog_cc_c89" != xno; then :
4331
4332 fi
4333
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340 depcc="$CC" am_compiler_list=
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named `D' -- because `-MD' means `put the output
4352 # in D'.
4353 rm -rf conftest.dir
4354 mkdir conftest.dir
4355 # Copy depcomp to subdir because otherwise we won't find it if we're
4356 # using a relative directory.
4357 cp "$am_depcomp" conftest.dir
4358 cd conftest.dir
4359 # We will build objects and dependencies in a subdirectory because
4360 # it helps to detect inapplicable dependency modes. For instance
4361 # both Tru64's cc and ICC support -MD to output dependencies as a
4362 # side effect of compilation, but ICC will put the dependencies in
4363 # the current directory while Tru64 will put them in the object
4364 # directory.
4365 mkdir sub
4366
4367 am_cv_CC_dependencies_compiler_type=none
4368 if test "$am_compiler_list" = ""; then
4369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 fi
4371 am__universal=false
4372 case " $depcc " in #(
4373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4374 esac
4375
4376 for depmode in $am_compiler_list; do
4377 # Setup a source with many dependencies, because some compilers
4378 # like to wrap large dependency lists on column 80 (with \), and
4379 # we should not choose a depcomp mode which is confused by this.
4380 #
4381 # We need to recreate these files for each test, as the compiler may
4382 # overwrite some of them when testing with obscure command lines.
4383 # This happens at least with the AIX C compiler.
4384 : > sub/conftest.c
4385 for i in 1 2 3 4 5 6; do
4386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4388 # Solaris 8's {/usr,}/bin/sh.
4389 touch sub/conftst$i.h
4390 done
4391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392
4393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4394 # mode. It turns out that the SunPro C++ compiler does not properly
4395 # handle `-M -o', and we need to detect this. Also, some Intel
4396 # versions had trouble with output in subdirs
4397 am__obj=sub/conftest.${OBJEXT-o}
4398 am__minus_obj="-o $am__obj"
4399 case $depmode in
4400 gcc)
4401 # This depmode causes a compiler race in universal mode.
4402 test "$am__universal" = false || continue
4403 ;;
4404 nosideeffect)
4405 # after this tag, mechanisms are not by side-effect, so they'll
4406 # only be used when explicitly requested
4407 if test "x$enable_dependency_tracking" = xyes; then
4408 continue
4409 else
4410 break
4411 fi
4412 ;;
4413 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4414 # This compiler won't grok `-c -o', but also, the minuso test has
4415 # not run yet. These depmodes are late enough in the game, and
4416 # so weak that their functioning should not be impacted.
4417 am__obj=conftest.${OBJEXT-o}
4418 am__minus_obj=
4419 ;;
4420 none) break ;;
4421 esac
4422 if depmode=$depmode \
4423 source=sub/conftest.c object=$am__obj \
4424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4426 >/dev/null 2>conftest.err &&
4427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4431 # icc doesn't choke on unknown options, it will just issue warnings
4432 # or remarks (even with -Werror). So we grep stderr for any message
4433 # that says an option was ignored or not supported.
4434 # When given -MP, icc 7.0 and 7.1 complain thusly:
4435 # icc: Command line warning: ignoring option '-M'; no argument required
4436 # The diagnosis changed in icc 8.0:
4437 # icc: Command line remark: option '-MP' not supported
4438 if (grep 'ignoring option' conftest.err ||
4439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4440 am_cv_CC_dependencies_compiler_type=$depmode
4441 break
4442 fi
4443 fi
4444 done
4445
4446 cd ..
4447 rm -rf conftest.dir
4448 else
4449 am_cv_CC_dependencies_compiler_type=none
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4454 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4455 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4456
4457 if
4458 test "x$enable_dependency_tracking" != xno \
4459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4460 am__fastdepCC_TRUE=
4461 am__fastdepCC_FALSE='#'
4462 else
4463 am__fastdepCC_TRUE='#'
4464 am__fastdepCC_FALSE=
4465 fi
4466
4467
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4476 # On Suns, sometimes $CPP names a directory.
4477 if test -n "$CPP" && test -d "$CPP"; then
4478 CPP=
4479 fi
4480 if test -z "$CPP"; then
4481 if test "${ac_cv_prog_CPP+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 # Double quotes because CPP needs to be expanded
4485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4486 do
4487 ac_preproc_ok=false
4488 for ac_c_preproc_warn_flag in '' yes
4489 do
4490 # Use a header file that comes with gcc, so configuring glibc
4491 # with a fresh cross-compiler works.
4492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 # <limits.h> exists even on freestanding compilers.
4494 # On the NeXT, cc -E runs the code through the compiler's parser,
4495 # not just through cpp. "Syntax error" is here to catch this case.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #ifdef __STDC__
4499 # include <limits.h>
4500 #else
4501 # include <assert.h>
4502 #endif
4503 Syntax error
4504 _ACEOF
4505 if ac_fn_c_try_cpp "$LINENO"; then :
4506
4507 else
4508 # Broken: fails on valid input.
4509 continue
4510 fi
4511 rm -f conftest.err conftest.$ac_ext
4512
4513 # OK, works on sane cases. Now check whether nonexistent headers
4514 # can be detected and how.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520 # Broken: success on invalid input.
4521 continue
4522 else
4523 # Passes both tests.
4524 ac_preproc_ok=:
4525 break
4526 fi
4527 rm -f conftest.err conftest.$ac_ext
4528
4529 done
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then :
4533 break
4534 fi
4535
4536 done
4537 ac_cv_prog_CPP=$CPP
4538
4539 fi
4540 CPP=$ac_cv_prog_CPP
4541 else
4542 ac_cv_prog_CPP=$CPP
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4545 $as_echo "$CPP" >&6; }
4546 ac_preproc_ok=false
4547 for ac_c_preproc_warn_flag in '' yes
4548 do
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #ifdef __STDC__
4558 # include <limits.h>
4559 #else
4560 # include <assert.h>
4561 #endif
4562 Syntax error
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4565
4566 else
4567 # Broken: fails on valid input.
4568 continue
4569 fi
4570 rm -f conftest.err conftest.$ac_ext
4571
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4577 _ACEOF
4578 if ac_fn_c_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4580 continue
4581 else
4582 # Passes both tests.
4583 ac_preproc_ok=:
4584 break
4585 fi
4586 rm -f conftest.err conftest.$ac_ext
4587
4588 done
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.err conftest.$ac_ext
4591 if $ac_preproc_ok; then :
4592
4593 else
4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4597 See \`config.log' for more details." "$LINENO" 5; }
4598 fi
4599
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4609 if test "${ac_cv_path_GREP+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -z "$GREP"; then
4613 ac_path_GREP_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in grep ggrep; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4624 # Check for GNU ac_path_GREP and select it if it is found.
4625 # Check for GNU $ac_path_GREP
4626 case `"$ac_path_GREP" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629 *)
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4633 do
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo 'GREP' >> "conftest.nl"
4638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_GREP="$ac_path_GREP"
4644 ac_path_GREP_max=$ac_count
4645 fi
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652 $ac_path_GREP_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_GREP"; then
4658 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659 fi
4660 else
4661 ac_cv_path_GREP=$GREP
4662 fi
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4666 $as_echo "$ac_cv_path_GREP" >&6; }
4667 GREP="$ac_cv_path_GREP"
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4671 $as_echo_n "checking for egrep... " >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676 then ac_cv_path_EGREP="$GREP -E"
4677 else
4678 if test -z "$EGREP"; then
4679 ac_path_EGREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in egrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4690 # Check for GNU ac_path_EGREP and select it if it is found.
4691 # Check for GNU $ac_path_EGREP
4692 case `"$ac_path_EGREP" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695 *)
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'EGREP' >> "conftest.nl"
4704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_EGREP="$ac_path_EGREP"
4710 ac_path_EGREP_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718 $ac_path_EGREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_EGREP"; then
4724 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 fi
4726 else
4727 ac_cv_path_EGREP=$EGREP
4728 fi
4729
4730 fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4733 $as_echo "$ac_cv_path_EGREP" >&6; }
4734 EGREP="$ac_cv_path_EGREP"
4735
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4738 $as_echo_n "checking for ANSI C header files... " >&6; }
4739 if test "${ac_cv_header_stdc+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <stdlib.h>
4745 #include <stdarg.h>
4746 #include <string.h>
4747 #include <float.h>
4748
4749 int
4750 main ()
4751 {
4752
4753 ;
4754 return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_header_stdc=yes
4759 else
4760 ac_cv_header_stdc=no
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763
4764 if test $ac_cv_header_stdc = yes; then
4765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <string.h>
4769
4770 _ACEOF
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "memchr" >/dev/null 2>&1; then :
4773
4774 else
4775 ac_cv_header_stdc=no
4776 fi
4777 rm -f conftest*
4778
4779 fi
4780
4781 if test $ac_cv_header_stdc = yes; then
4782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <stdlib.h>
4786
4787 _ACEOF
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 $EGREP "free" >/dev/null 2>&1; then :
4790
4791 else
4792 ac_cv_header_stdc=no
4793 fi
4794 rm -f conftest*
4795
4796 fi
4797
4798 if test $ac_cv_header_stdc = yes; then
4799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4800 if test "$cross_compiling" = yes; then :
4801 :
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #include <ctype.h>
4806 #include <stdlib.h>
4807 #if ((' ' & 0x0FF) == 0x020)
4808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4810 #else
4811 # define ISLOWER(c) \
4812 (('a' <= (c) && (c) <= 'i') \
4813 || ('j' <= (c) && (c) <= 'r') \
4814 || ('s' <= (c) && (c) <= 'z'))
4815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4816 #endif
4817
4818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4819 int
4820 main ()
4821 {
4822 int i;
4823 for (i = 0; i < 256; i++)
4824 if (XOR (islower (i), ISLOWER (i))
4825 || toupper (i) != TOUPPER (i))
4826 return 2;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_run "$LINENO"; then :
4831
4832 else
4833 ac_cv_header_stdc=no
4834 fi
4835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4836 conftest.$ac_objext conftest.beam conftest.$ac_ext
4837 fi
4838
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4842 $as_echo "$ac_cv_header_stdc" >&6; }
4843 if test $ac_cv_header_stdc = yes; then
4844
4845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4846
4847 fi
4848
4849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4851 inttypes.h stdint.h unistd.h
4852 do :
4853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4855 "
4856 eval as_val=\$$as_ac_Header
4857 if test "x$as_val" = x""yes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4861
4862 fi
4863
4864 done
4865
4866
4867
4868 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4869 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4870 MINIX=yes
4871 else
4872 MINIX=
4873 fi
4874
4875
4876 if test "$MINIX" = yes; then
4877
4878 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4879
4880
4881 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4882
4883
4884 $as_echo "#define _MINIX 1" >>confdefs.h
4885
4886 fi
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4890 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4891 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896
4897 # define __EXTENSIONS__ 1
4898 $ac_includes_default
4899 int
4900 main ()
4901 {
4902
4903 ;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_safe_to_define___extensions__=yes
4909 else
4910 ac_cv_safe_to_define___extensions__=no
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4916 test $ac_cv_safe_to_define___extensions__ = yes &&
4917 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4918
4919 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4920
4921 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4922
4923 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4924
4925 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4926
4927
4928
4929 # Calculate toolexeclibdir
4930 # Also toolexecdir, though it's only used in toolexeclibdir
4931 case ${version_specific_libs} in
4932 yes)
4933 # Need the gcc compiler version to know where to install libraries
4934 # and header files if --enable-version-specific-runtime-libs option
4935 # is selected.
4936 toolexecdir='$(libdir)/gcc/$(target_alias)'
4937 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4938 ;;
4939 no)
4940 if test -n "$with_cross_host" &&
4941 test x"$with_cross_host" != x"no"; then
4942 # Install a library built with a cross compiler in tooldir, not libdir.
4943 toolexecdir='$(exec_prefix)/$(target_alias)'
4944 toolexeclibdir='$(toolexecdir)/lib'
4945 else
4946 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4947 toolexeclibdir='$(libdir)'
4948 fi
4949 multi_os_directory=`$CC -print-multi-os-directory`
4950 case $multi_os_directory in
4951 .) ;; # Avoid trailing /.
4952 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4953 esac
4954 ;;
4955 esac
4956
4957
4958
4959 # Create a spec file, so that compile/link tests don't fail
4960 test -f libgfortran.spec || touch libgfortran.spec
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967
4968 # Check the compiler.
4969 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4970 # We must force CC to /not/ be precious variables; otherwise
4971 # the wrong, non-multilib-adjusted value will be used in multilibs.
4972 # As a side effect, we have to subst CFLAGS ourselves.
4973
4974
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 CC=$ac_cv_prog_CC
5010 if test -n "$CC"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5012 $as_echo "$CC" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019 fi
5020 if test -z "$ac_cv_prog_CC"; then
5021 ac_ct_CC=$CC
5022 # Extract the first word of "gcc", so it can be a program name with args.
5023 set dummy gcc; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_CC"; then
5030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_ac_ct_CC="gcc"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5050 if test -n "$ac_ct_CC"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5052 $as_echo "$ac_ct_CC" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058 if test "x$ac_ct_CC" = x; then
5059 CC=""
5060 else
5061 case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067 CC=$ac_ct_CC
5068 fi
5069 else
5070 CC="$ac_cv_prog_CC"
5071 fi
5072
5073 if test -z "$CC"; then
5074 if test -n "$ac_tool_prefix"; then
5075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5076 set dummy ${ac_tool_prefix}cc; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_CC+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$CC"; then
5083 ac_cv_prog_CC="$CC" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_CC="${ac_tool_prefix}cc"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5095 fi
5096 done
5097 done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 CC=$ac_cv_prog_CC
5103 if test -n "$CC"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5105 $as_echo "$CC" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112 fi
5113 fi
5114 if test -z "$CC"; then
5115 # Extract the first word of "cc", so it can be a program name with args.
5116 set dummy cc; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_CC+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -n "$CC"; then
5123 ac_cv_prog_CC="$CC" # Let the user override the test.
5124 else
5125 ac_prog_rejected=no
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5134 ac_prog_rejected=yes
5135 continue
5136 fi
5137 ac_cv_prog_CC="cc"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 if test $ac_prog_rejected = yes; then
5146 # We found a bogon in the path, so make sure we never use it.
5147 set dummy $ac_cv_prog_CC
5148 shift
5149 if test $# != 0; then
5150 # We chose a different compiler from the bogus one.
5151 # However, it has the same basename, so the bogon will be chosen
5152 # first if we set CC to just the basename; use the full file name.
5153 shift
5154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5155 fi
5156 fi
5157 fi
5158 fi
5159 CC=$ac_cv_prog_CC
5160 if test -n "$CC"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5162 $as_echo "$CC" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$CC"; then
5171 if test -n "$ac_tool_prefix"; then
5172 for ac_prog in cl.exe
5173 do
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_CC+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 test -n "$CC" && break
5212 done
5213 fi
5214 if test -z "$CC"; then
5215 ac_ct_CC=$CC
5216 for ac_prog in cl.exe
5217 do
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5248 $as_echo "$ac_ct_CC" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 test -n "$ac_ct_CC" && break
5256 done
5257
5258 if test "x$ac_ct_CC" = x; then
5259 CC=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267 CC=$ac_ct_CC
5268 fi
5269 fi
5270
5271 fi
5272
5273
5274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5276 as_fn_error "no acceptable C compiler found in \$PATH
5277 See \`config.log' for more details." "$LINENO" 5; }
5278
5279 # Provide some information about the compiler.
5280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5281 set X $ac_compile
5282 ac_compiler=$2
5283 for ac_option in --version -v -V -qversion; do
5284 { { ac_try="$ac_compiler $ac_option >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5292 ac_status=$?
5293 if test -s conftest.err; then
5294 sed '10a\
5295 ... rest of stderr output deleted ...
5296 10q' conftest.err >conftest.er1
5297 cat conftest.er1 >&5
5298 rm -f conftest.er1 conftest.err
5299 fi
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; }
5302 done
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5306 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311
5312 int
5313 main ()
5314 {
5315 #ifndef __GNUC__
5316 choke me
5317 #endif
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_compiler_gnu=yes
5325 else
5326 ac_compiler_gnu=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5334 if test $ac_compiler_gnu = yes; then
5335 GCC=yes
5336 else
5337 GCC=
5338 fi
5339 ac_test_CFLAGS=${CFLAGS+set}
5340 ac_save_CFLAGS=$CFLAGS
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5343 if test "${ac_cv_prog_cc_g+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 ac_save_c_werror_flag=$ac_c_werror_flag
5347 ac_c_werror_flag=yes
5348 ac_cv_prog_cc_g=no
5349 CFLAGS="-g"
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352
5353 int
5354 main ()
5355 {
5356
5357 ;
5358 return 0;
5359 }
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 ac_cv_prog_cc_g=yes
5363 else
5364 CFLAGS=""
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367
5368 int
5369 main ()
5370 {
5371
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377
5378 else
5379 ac_c_werror_flag=$ac_save_c_werror_flag
5380 CFLAGS="-g"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 int
5385 main ()
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_prog_cc_g=yes
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_c_werror_flag=$ac_save_c_werror_flag
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5403 $as_echo "$ac_cv_prog_cc_g" >&6; }
5404 if test "$ac_test_CFLAGS" = set; then
5405 CFLAGS=$ac_save_CFLAGS
5406 elif test $ac_cv_prog_cc_g = yes; then
5407 if test "$GCC" = yes; then
5408 CFLAGS="-g -O2"
5409 else
5410 CFLAGS="-g"
5411 fi
5412 else
5413 if test "$GCC" = yes; then
5414 CFLAGS="-O2"
5415 else
5416 CFLAGS=
5417 fi
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5421 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 ac_cv_prog_cc_c89=no
5425 ac_save_CC=$CC
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <stdarg.h>
5429 #include <stdio.h>
5430 #include <sys/types.h>
5431 #include <sys/stat.h>
5432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5433 struct buf { int x; };
5434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5435 static char *e (p, i)
5436 char **p;
5437 int i;
5438 {
5439 return p[i];
5440 }
5441 static char *f (char * (*g) (char **, int), char **p, ...)
5442 {
5443 char *s;
5444 va_list v;
5445 va_start (v,p);
5446 s = g (p, va_arg (v,int));
5447 va_end (v);
5448 return s;
5449 }
5450
5451 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5452 function prototypes and stuff, but not '\xHH' hex character constants.
5453 These don't provoke an error unfortunately, instead are silently treated
5454 as 'x'. The following induces an error, until -std is added to get
5455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5456 array size at least. It's necessary to write '\x00'==0 to get something
5457 that's true only with -std. */
5458 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5459
5460 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5461 inside strings and character constants. */
5462 #define FOO(x) 'x'
5463 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5464
5465 int test (int i, double x);
5466 struct s1 {int (*f) (int a);};
5467 struct s2 {int (*f) (double a);};
5468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5469 int argc;
5470 char **argv;
5471 int
5472 main ()
5473 {
5474 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5481 do
5482 CC="$ac_save_CC $ac_arg"
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 ac_cv_prog_cc_c89=$ac_arg
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext
5487 test "x$ac_cv_prog_cc_c89" != "xno" && break
5488 done
5489 rm -f conftest.$ac_ext
5490 CC=$ac_save_CC
5491
5492 fi
5493 # AC_CACHE_VAL
5494 case "x$ac_cv_prog_cc_c89" in
5495 x)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5497 $as_echo "none needed" >&6; } ;;
5498 xno)
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5500 $as_echo "unsupported" >&6; } ;;
5501 *)
5502 CC="$CC $ac_cv_prog_cc_c89"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5504 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5505 esac
5506 if test "x$ac_cv_prog_cc_c89" != xno; then :
5507
5508 fi
5509
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515
5516 depcc="$CC" am_compiler_list=
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5519 $as_echo_n "checking dependency style of $depcc... " >&6; }
5520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5524 # We make a subdir and do the tests there. Otherwise we can end up
5525 # making bogus files that we don't know about and never remove. For
5526 # instance it was reported that on HP-UX the gcc test will end up
5527 # making a dummy file named `D' -- because `-MD' means `put the output
5528 # in D'.
5529 rm -rf conftest.dir
5530 mkdir conftest.dir
5531 # Copy depcomp to subdir because otherwise we won't find it if we're
5532 # using a relative directory.
5533 cp "$am_depcomp" conftest.dir
5534 cd conftest.dir
5535 # We will build objects and dependencies in a subdirectory because
5536 # it helps to detect inapplicable dependency modes. For instance
5537 # both Tru64's cc and ICC support -MD to output dependencies as a
5538 # side effect of compilation, but ICC will put the dependencies in
5539 # the current directory while Tru64 will put them in the object
5540 # directory.
5541 mkdir sub
5542
5543 am_cv_CC_dependencies_compiler_type=none
5544 if test "$am_compiler_list" = ""; then
5545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546 fi
5547 am__universal=false
5548 case " $depcc " in #(
5549 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5550 esac
5551
5552 for depmode in $am_compiler_list; do
5553 # Setup a source with many dependencies, because some compilers
5554 # like to wrap large dependency lists on column 80 (with \), and
5555 # we should not choose a depcomp mode which is confused by this.
5556 #
5557 # We need to recreate these files for each test, as the compiler may
5558 # overwrite some of them when testing with obscure command lines.
5559 # This happens at least with the AIX C compiler.
5560 : > sub/conftest.c
5561 for i in 1 2 3 4 5 6; do
5562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564 # Solaris 8's {/usr,}/bin/sh.
5565 touch sub/conftst$i.h
5566 done
5567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568
5569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5570 # mode. It turns out that the SunPro C++ compiler does not properly
5571 # handle `-M -o', and we need to detect this. Also, some Intel
5572 # versions had trouble with output in subdirs
5573 am__obj=sub/conftest.${OBJEXT-o}
5574 am__minus_obj="-o $am__obj"
5575 case $depmode in
5576 gcc)
5577 # This depmode causes a compiler race in universal mode.
5578 test "$am__universal" = false || continue
5579 ;;
5580 nosideeffect)
5581 # after this tag, mechanisms are not by side-effect, so they'll
5582 # only be used when explicitly requested
5583 if test "x$enable_dependency_tracking" = xyes; then
5584 continue
5585 else
5586 break
5587 fi
5588 ;;
5589 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5590 # This compiler won't grok `-c -o', but also, the minuso test has
5591 # not run yet. These depmodes are late enough in the game, and
5592 # so weak that their functioning should not be impacted.
5593 am__obj=conftest.${OBJEXT-o}
5594 am__minus_obj=
5595 ;;
5596 none) break ;;
5597 esac
5598 if depmode=$depmode \
5599 source=sub/conftest.c object=$am__obj \
5600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5602 >/dev/null 2>conftest.err &&
5603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5607 # icc doesn't choke on unknown options, it will just issue warnings
5608 # or remarks (even with -Werror). So we grep stderr for any message
5609 # that says an option was ignored or not supported.
5610 # When given -MP, icc 7.0 and 7.1 complain thusly:
5611 # icc: Command line warning: ignoring option '-M'; no argument required
5612 # The diagnosis changed in icc 8.0:
5613 # icc: Command line remark: option '-MP' not supported
5614 if (grep 'ignoring option' conftest.err ||
5615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5616 am_cv_CC_dependencies_compiler_type=$depmode
5617 break
5618 fi
5619 fi
5620 done
5621
5622 cd ..
5623 rm -rf conftest.dir
5624 else
5625 am_cv_CC_dependencies_compiler_type=none
5626 fi
5627
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5630 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5632
5633 if
5634 test "x$enable_dependency_tracking" != xno \
5635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5636 am__fastdepCC_TRUE=
5637 am__fastdepCC_FALSE='#'
5638 else
5639 am__fastdepCC_TRUE='#'
5640 am__fastdepCC_FALSE=
5641 fi
5642
5643
5644
5645
5646
5647
5648 if test "x$CC" != xcc; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5650 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5653 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5654 fi
5655 set dummy $CC; ac_cc=`$as_echo "$2" |
5656 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5657 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 # Make sure it works both with $CC and with simple cc.
5672 # We do the test twice because some compilers refuse to overwrite an
5673 # existing .o file with -o, though they will create one.
5674 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5675 rm -f conftest2.*
5676 if { { case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; } &&
5686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5691 $as_echo "$ac_try_echo"; } >&5
5692 (eval "$ac_try") 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; };
5696 then
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5698 if test "x$CC" != xcc; then
5699 # Test first that cc exists at all.
5700 if { ac_try='cc -c conftest.$ac_ext >&5'
5701 { { case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }; }; then
5711 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5712 rm -f conftest2.*
5713 if { { case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5718 $as_echo "$ac_try_echo"; } >&5
5719 (eval "$ac_try") 2>&5
5720 ac_status=$?
5721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5722 test $ac_status = 0; } &&
5723 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5728 $as_echo "$ac_try_echo"; } >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; };
5733 then
5734 # cc works too.
5735 :
5736 else
5737 # cc exists but doesn't like -o.
5738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5739 fi
5740 fi
5741 fi
5742 else
5743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 fi
5745 rm -f core conftest*
5746
5747 fi
5748 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754
5755 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5756
5757 fi
5758
5759 # FIXME: we rely on the cache variable name because
5760 # there is no other way.
5761 set dummy $CC
5762 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5763 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5764 if test "$am_t" != yes; then
5765 # Losing compiler, so override with the script.
5766 # FIXME: It is wrong to rewrite CC.
5767 # But if we don't then we get into trouble of one sort or another.
5768 # A longer-term fix would be to have automake use am__CC in this case,
5769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5770 CC="$am_aux_dir/compile $CC"
5771 fi
5772
5773
5774
5775 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5776 if test "x$GCC" = "xyes"; then
5777 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5778 ## We like to use C11 and C99 routines when available. This makes
5779 ## sure that
5780 ## __STDC_VERSION__ is set such that libc includes make them available.
5781 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration"
5782 ## Compile the following tests with the same system header contents
5783 ## that we'll encounter when compiling our own source files.
5784 CFLAGS="-std=gnu11 $CFLAGS"
5785 fi
5786
5787
5788
5789
5790 # Check for symbol versioning (copied from libssp).
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5792 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5793 # Check whether --enable-symvers was given.
5794 if test "${enable_symvers+set}" = set; then :
5795 enableval=$enable_symvers; gfortran_use_symver=$enableval
5796 else
5797 gfortran_use_symver=yes
5798 fi
5799
5800 if test "x$gfortran_use_symver" != xno; then
5801 save_LDFLAGS="$LDFLAGS"
5802 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5803 cat > conftest.map <<EOF
5804 FOO_1.0 {
5805 global: *foo*; bar; local: *;
5806 };
5807 EOF
5808 if test x$gcc_no_link = xyes; then
5809 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5810 fi
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int foo;
5814 int
5815 main ()
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 gfortran_use_symver=gnu
5824 else
5825 gfortran_use_symver=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 if test x$gfortran_use_symver = xno; then
5830 case "$target_os" in
5831 solaris2*)
5832 LDFLAGS="$save_LDFLAGS"
5833 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5834 # Sun ld cannot handle wildcards and treats all entries as undefined.
5835 cat > conftest.map <<EOF
5836 FOO_1.0 {
5837 global: foo; local: *;
5838 };
5839 EOF
5840 if test x$gcc_no_link = xyes; then
5841 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5842 fi
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 int foo;
5846 int
5847 main ()
5848 {
5849
5850 ;
5851 return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_link "$LINENO"; then :
5855 gfortran_use_symver=sun
5856 else
5857 gfortran_use_symver=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext \
5860 conftest$ac_exeext conftest.$ac_ext
5861 ;;
5862 esac
5863 fi
5864 LDFLAGS="$save_LDFLAGS"
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5867 $as_echo "$gfortran_use_symver" >&6; }
5868 if test "x$gfortran_use_symver" != xno; then
5869 LIBGFOR_USE_SYMVER_TRUE=
5870 LIBGFOR_USE_SYMVER_FALSE='#'
5871 else
5872 LIBGFOR_USE_SYMVER_TRUE='#'
5873 LIBGFOR_USE_SYMVER_FALSE=
5874 fi
5875
5876 if test "x$gfortran_use_symver" = xgnu; then
5877 LIBGFOR_USE_SYMVER_GNU_TRUE=
5878 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5879 else
5880 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5881 LIBGFOR_USE_SYMVER_GNU_FALSE=
5882 fi
5883
5884 if test "x$gfortran_use_symver" = xsun; then
5885 LIBGFOR_USE_SYMVER_SUN_TRUE=
5886 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5887 else
5888 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5889 LIBGFOR_USE_SYMVER_SUN_FALSE=
5890 fi
5891
5892
5893 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5894 # similarly to how libstdc++ does it
5895 ac_test_CFLAGS="${CFLAGS+set}"
5896 ac_save_CFLAGS="$CFLAGS"
5897
5898 # Check for -ffunction-sections -fdata-sections
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5900 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5901 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904
5905 int
5906 main ()
5907 {
5908 int foo;
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914 ac_fdsections=yes
5915 else
5916 ac_fdsections=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 if test "$ac_test_CFLAGS" = set; then
5920 CFLAGS="$ac_save_CFLAGS"
5921 else
5922 # this is the suspicious part
5923 CFLAGS=""
5924 fi
5925 if test x"$ac_fdsections" = x"yes"; then
5926 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5929 $as_echo "$ac_fdsections" >&6; }
5930
5931
5932 # Find other programs we need.
5933 if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}as; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_AS+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$AS"; then
5942 ac_cv_prog_AS="$AS" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_AS="${ac_tool_prefix}as"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 AS=$ac_cv_prog_AS
5962 if test -n "$AS"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5964 $as_echo "$AS" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971 fi
5972 if test -z "$ac_cv_prog_AS"; then
5973 ac_ct_AS=$AS
5974 # Extract the first word of "as", so it can be a program name with args.
5975 set dummy as; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$ac_ct_AS"; then
5982 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_ac_ct_AS="as"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6002 if test -n "$ac_ct_AS"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6004 $as_echo "$ac_ct_AS" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010 if test "x$ac_ct_AS" = x; then
6011 AS=""
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014 yes:)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017 ac_tool_warned=yes ;;
6018 esac
6019 AS=$ac_ct_AS
6020 fi
6021 else
6022 AS="$ac_cv_prog_AS"
6023 fi
6024
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ar; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_AR+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$AR"; then
6034 ac_cv_prog_AR="$AR" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_AR="${ac_tool_prefix}ar"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051 fi
6052 fi
6053 AR=$ac_cv_prog_AR
6054 if test -n "$AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6056 $as_echo "$AR" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061
6062
6063 fi
6064 if test -z "$ac_cv_prog_AR"; then
6065 ac_ct_AR=$AR
6066 # Extract the first word of "ar", so it can be a program name with args.
6067 set dummy ar; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_AR"; then
6074 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_ac_ct_AR="ar"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6094 if test -n "$ac_ct_AR"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6096 $as_echo "$ac_ct_AR" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101
6102 if test "x$ac_ct_AR" = x; then
6103 AR=""
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 AR=$ac_ct_AR
6112 fi
6113 else
6114 AR="$ac_cv_prog_AR"
6115 fi
6116
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$RANLIB"; then
6126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 RANLIB=$ac_cv_prog_RANLIB
6146 if test -n "$RANLIB"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6148 $as_echo "$RANLIB" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_RANLIB"; then
6157 ac_ct_RANLIB=$RANLIB
6158 # Extract the first word of "ranlib", so it can be a program name with args.
6159 set dummy ranlib; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_RANLIB"; then
6166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_ac_ct_RANLIB="ranlib"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6186 if test -n "$ac_ct_RANLIB"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6188 $as_echo "$ac_ct_RANLIB" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194 if test "x$ac_ct_RANLIB" = x; then
6195 RANLIB="ranlib-not-found-in-path-error"
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 RANLIB=$ac_ct_RANLIB
6204 fi
6205 else
6206 RANLIB="$ac_cv_prog_RANLIB"
6207 fi
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6211 set x ${MAKE-make}
6212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 cat >conftest.make <<\_ACEOF
6217 SHELL = /bin/sh
6218 all:
6219 @echo '@@@%%%=$(MAKE)=@@@%%%'
6220 _ACEOF
6221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6223 *@@@%%%=?*=@@@%%%*)
6224 eval ac_cv_prog_make_${ac_make}_set=yes;;
6225 *)
6226 eval ac_cv_prog_make_${ac_make}_set=no;;
6227 esac
6228 rm -f conftest.make
6229 fi
6230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6232 $as_echo "yes" >&6; }
6233 SET_MAKE=
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 SET_MAKE="MAKE=${MAKE-make}"
6238 fi
6239
6240
6241
6242 # Configure libtool
6243 #AC_MSG_NOTICE([====== Starting libtool configuration])
6244 enable_dlopen=yes
6245
6246
6247
6248 case `pwd` in
6249 *\ * | *\ *)
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6251 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6252 esac
6253
6254
6255
6256 macro_version='2.2.7a'
6257 macro_revision='1.3134'
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 ltmain="$ac_aux_dir/ltmain.sh"
6272
6273 # Backslashify metacharacters that are still active within
6274 # double-quoted strings.
6275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6276
6277 # Same as above, but do not quote variable references.
6278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6279
6280 # Sed substitution to delay expansion of an escaped shell variable in a
6281 # double_quote_subst'ed string.
6282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6283
6284 # Sed substitution to delay expansion of an escaped single quote.
6285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6286
6287 # Sed substitution to avoid accidental globbing in evaled expressions
6288 no_glob_subst='s/\*/\\\*/g'
6289
6290 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6291 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6292 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6295 $as_echo_n "checking how to print strings... " >&6; }
6296 # Test print first, because it will be a builtin if present.
6297 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6298 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6299 ECHO='print -r --'
6300 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6301 ECHO='printf %s\n'
6302 else
6303 # Use this function as a fallback that always works.
6304 func_fallback_echo ()
6305 {
6306 eval 'cat <<_LTECHO_EOF
6307 $1
6308 _LTECHO_EOF'
6309 }
6310 ECHO='func_fallback_echo'
6311 fi
6312
6313 # func_echo_all arg...
6314 # Invoke $ECHO with all args, space-separated.
6315 func_echo_all ()
6316 {
6317 $ECHO ""
6318 }
6319
6320 case "$ECHO" in
6321 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6322 $as_echo "printf" >&6; } ;;
6323 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6324 $as_echo "print -r" >&6; } ;;
6325 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6326 $as_echo "cat" >&6; } ;;
6327 esac
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6343 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6344 if test "${ac_cv_path_SED+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6348 for ac_i in 1 2 3 4 5 6 7; do
6349 ac_script="$ac_script$as_nl$ac_script"
6350 done
6351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6352 { ac_script=; unset ac_script;}
6353 if test -z "$SED"; then
6354 ac_path_SED_found=false
6355 # Loop through the user's path and test for each of PROGNAME-LIST
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_prog in sed gsed; do
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6364 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6365 # Check for GNU ac_path_SED and select it if it is found.
6366 # Check for GNU $ac_path_SED
6367 case `"$ac_path_SED" --version 2>&1` in
6368 *GNU*)
6369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6370 *)
6371 ac_count=0
6372 $as_echo_n 0123456789 >"conftest.in"
6373 while :
6374 do
6375 cat "conftest.in" "conftest.in" >"conftest.tmp"
6376 mv "conftest.tmp" "conftest.in"
6377 cp "conftest.in" "conftest.nl"
6378 $as_echo '' >> "conftest.nl"
6379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6381 as_fn_arith $ac_count + 1 && ac_count=$as_val
6382 if test $ac_count -gt ${ac_path_SED_max-0}; then
6383 # Best one so far, save it but keep looking for a better one
6384 ac_cv_path_SED="$ac_path_SED"
6385 ac_path_SED_max=$ac_count
6386 fi
6387 # 10*(2^10) chars as input seems more than enough
6388 test $ac_count -gt 10 && break
6389 done
6390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391 esac
6392
6393 $ac_path_SED_found && break 3
6394 done
6395 done
6396 done
6397 IFS=$as_save_IFS
6398 if test -z "$ac_cv_path_SED"; then
6399 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6400 fi
6401 else
6402 ac_cv_path_SED=$SED
6403 fi
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6407 $as_echo "$ac_cv_path_SED" >&6; }
6408 SED="$ac_cv_path_SED"
6409 rm -f conftest.sed
6410
6411 test -z "$SED" && SED=sed
6412 Xsed="$SED -e 1s/^X//"
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6425 $as_echo_n "checking for fgrep... " >&6; }
6426 if test "${ac_cv_path_FGREP+set}" = set; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6430 then ac_cv_path_FGREP="$GREP -F"
6431 else
6432 if test -z "$FGREP"; then
6433 ac_path_FGREP_found=false
6434 # Loop through the user's path and test for each of PROGNAME-LIST
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6437 do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_prog in fgrep; do
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6443 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6444 # Check for GNU ac_path_FGREP and select it if it is found.
6445 # Check for GNU $ac_path_FGREP
6446 case `"$ac_path_FGREP" --version 2>&1` in
6447 *GNU*)
6448 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6449 *)
6450 ac_count=0
6451 $as_echo_n 0123456789 >"conftest.in"
6452 while :
6453 do
6454 cat "conftest.in" "conftest.in" >"conftest.tmp"
6455 mv "conftest.tmp" "conftest.in"
6456 cp "conftest.in" "conftest.nl"
6457 $as_echo 'FGREP' >> "conftest.nl"
6458 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6460 as_fn_arith $ac_count + 1 && ac_count=$as_val
6461 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6462 # Best one so far, save it but keep looking for a better one
6463 ac_cv_path_FGREP="$ac_path_FGREP"
6464 ac_path_FGREP_max=$ac_count
6465 fi
6466 # 10*(2^10) chars as input seems more than enough
6467 test $ac_count -gt 10 && break
6468 done
6469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6470 esac
6471
6472 $ac_path_FGREP_found && break 3
6473 done
6474 done
6475 done
6476 IFS=$as_save_IFS
6477 if test -z "$ac_cv_path_FGREP"; then
6478 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6479 fi
6480 else
6481 ac_cv_path_FGREP=$FGREP
6482 fi
6483
6484 fi
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6487 $as_echo "$ac_cv_path_FGREP" >&6; }
6488 FGREP="$ac_cv_path_FGREP"
6489
6490
6491 test -z "$GREP" && GREP=grep
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 # Check whether --with-gnu-ld was given.
6512 if test "${with_gnu_ld+set}" = set; then :
6513 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6514 else
6515 with_gnu_ld=no
6516 fi
6517
6518 ac_prog=ld
6519 if test "$GCC" = yes; then
6520 # Check if gcc -print-prog-name=ld gives a path.
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6522 $as_echo_n "checking for ld used by $CC... " >&6; }
6523 case $host in
6524 *-*-mingw*)
6525 # gcc leaves a trailing carriage return which upsets mingw
6526 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6527 *)
6528 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6529 esac
6530 case $ac_prog in
6531 # Accept absolute paths.
6532 [\\/]* | ?:[\\/]*)
6533 re_direlt='/[^/][^/]*/\.\./'
6534 # Canonicalize the pathname of ld
6535 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6536 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6537 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6538 done
6539 test -z "$LD" && LD="$ac_prog"
6540 ;;
6541 "")
6542 # If it fails, then pretend we aren't using GCC.
6543 ac_prog=ld
6544 ;;
6545 *)
6546 # If it is relative, then search for the first ld in PATH.
6547 with_gnu_ld=unknown
6548 ;;
6549 esac
6550 elif test "$with_gnu_ld" = yes; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6552 $as_echo_n "checking for GNU ld... " >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6555 $as_echo_n "checking for non-GNU ld... " >&6; }
6556 fi
6557 if test "${lt_cv_path_LD+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -z "$LD"; then
6561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6562 for ac_dir in $PATH; do
6563 IFS="$lt_save_ifs"
6564 test -z "$ac_dir" && ac_dir=.
6565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6566 lt_cv_path_LD="$ac_dir/$ac_prog"
6567 # Check to see if the program is GNU ld. I'd rather use --version,
6568 # but apparently some variants of GNU ld only accept -v.
6569 # Break only if it was the GNU/non-GNU ld that we prefer.
6570 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6571 *GNU* | *'with BFD'*)
6572 test "$with_gnu_ld" != no && break
6573 ;;
6574 *)
6575 test "$with_gnu_ld" != yes && break
6576 ;;
6577 esac
6578 fi
6579 done
6580 IFS="$lt_save_ifs"
6581 else
6582 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6583 fi
6584 fi
6585
6586 LD="$lt_cv_path_LD"
6587 if test -n "$LD"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6589 $as_echo "$LD" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6596 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6597 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6601 case `$LD -v 2>&1 </dev/null` in
6602 *GNU* | *'with BFD'*)
6603 lt_cv_prog_gnu_ld=yes
6604 ;;
6605 *)
6606 lt_cv_prog_gnu_ld=no
6607 ;;
6608 esac
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6611 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6612 with_gnu_ld=$lt_cv_prog_gnu_ld
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6623 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6624 if test "${lt_cv_path_NM+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$NM"; then
6628 # Let the user override the test.
6629 lt_cv_path_NM="$NM"
6630 else
6631 lt_nm_to_check="${ac_tool_prefix}nm"
6632 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6633 lt_nm_to_check="$lt_nm_to_check nm"
6634 fi
6635 for lt_tmp_nm in $lt_nm_to_check; do
6636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6637 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6638 IFS="$lt_save_ifs"
6639 test -z "$ac_dir" && ac_dir=.
6640 tmp_nm="$ac_dir/$lt_tmp_nm"
6641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6642 # Check to see if the nm accepts a BSD-compat flag.
6643 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6644 # nm: unknown option "B" ignored
6645 # Tru64's nm complains that /dev/null is an invalid object file
6646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6647 */dev/null* | *'Invalid file or object type'*)
6648 lt_cv_path_NM="$tmp_nm -B"
6649 break
6650 ;;
6651 *)
6652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6653 */dev/null*)
6654 lt_cv_path_NM="$tmp_nm -p"
6655 break
6656 ;;
6657 *)
6658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6659 continue # so that we can try to find one that supports BSD flags
6660 ;;
6661 esac
6662 ;;
6663 esac
6664 fi
6665 done
6666 IFS="$lt_save_ifs"
6667 done
6668 : ${lt_cv_path_NM=no}
6669 fi
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6672 $as_echo "$lt_cv_path_NM" >&6; }
6673 if test "$lt_cv_path_NM" != "no"; then
6674 NM="$lt_cv_path_NM"
6675 else
6676 # Didn't find any BSD compatible name lister, look for dumpbin.
6677 if test -n "$DUMPBIN"; then :
6678 # Let the user override the test.
6679 else
6680 if test -n "$ac_tool_prefix"; then
6681 for ac_prog in dumpbin "link -dump"
6682 do
6683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if test -n "$DUMPBIN"; then
6691 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 DUMPBIN=$ac_cv_prog_DUMPBIN
6711 if test -n "$DUMPBIN"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6713 $as_echo "$DUMPBIN" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719
6720 test -n "$DUMPBIN" && break
6721 done
6722 fi
6723 if test -z "$DUMPBIN"; then
6724 ac_ct_DUMPBIN=$DUMPBIN
6725 for ac_prog in dumpbin "link -dump"
6726 do
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$ac_ct_DUMPBIN"; then
6735 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6755 if test -n "$ac_ct_DUMPBIN"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6757 $as_echo "$ac_ct_DUMPBIN" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763
6764 test -n "$ac_ct_DUMPBIN" && break
6765 done
6766
6767 if test "x$ac_ct_DUMPBIN" = x; then
6768 DUMPBIN=":"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 DUMPBIN=$ac_ct_DUMPBIN
6777 fi
6778 fi
6779
6780 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6781 *COFF*)
6782 DUMPBIN="$DUMPBIN -symbols"
6783 ;;
6784 *)
6785 DUMPBIN=:
6786 ;;
6787 esac
6788 fi
6789
6790 if test "$DUMPBIN" != ":"; then
6791 NM="$DUMPBIN"
6792 fi
6793 fi
6794 test -z "$NM" && NM=nm
6795
6796
6797
6798
6799
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6802 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6803 if test "${lt_cv_nm_interface+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 lt_cv_nm_interface="BSD nm"
6807 echo "int some_variable = 0;" > conftest.$ac_ext
6808 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6809 (eval "$ac_compile" 2>conftest.err)
6810 cat conftest.err >&5
6811 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6812 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6813 cat conftest.err >&5
6814 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6815 cat conftest.out >&5
6816 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6817 lt_cv_nm_interface="MS dumpbin"
6818 fi
6819 rm -f conftest*
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6822 $as_echo "$lt_cv_nm_interface" >&6; }
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6825 $as_echo_n "checking whether ln -s works... " >&6; }
6826 LN_S=$as_ln_s
6827 if test "$LN_S" = "ln -s"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829 $as_echo "yes" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6832 $as_echo "no, using $LN_S" >&6; }
6833 fi
6834
6835 # find the maximum length of command line arguments
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6837 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6838 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 i=0
6842 teststring="ABCD"
6843
6844 case $build_os in
6845 msdosdjgpp*)
6846 # On DJGPP, this test can blow up pretty badly due to problems in libc
6847 # (any single argument exceeding 2000 bytes causes a buffer overrun
6848 # during glob expansion). Even if it were fixed, the result of this
6849 # check would be larger than it should be.
6850 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6851 ;;
6852
6853 gnu*)
6854 # Under GNU Hurd, this test is not required because there is
6855 # no limit to the length of command line arguments.
6856 # Libtool will interpret -1 as no limit whatsoever
6857 lt_cv_sys_max_cmd_len=-1;
6858 ;;
6859
6860 cygwin* | mingw* | cegcc*)
6861 # On Win9x/ME, this test blows up -- it succeeds, but takes
6862 # about 5 minutes as the teststring grows exponentially.
6863 # Worse, since 9x/ME are not pre-emptively multitasking,
6864 # you end up with a "frozen" computer, even though with patience
6865 # the test eventually succeeds (with a max line length of 256k).
6866 # Instead, let's just punt: use the minimum linelength reported by
6867 # all of the supported platforms: 8192 (on NT/2K/XP).
6868 lt_cv_sys_max_cmd_len=8192;
6869 ;;
6870
6871 mint*)
6872 # On MiNT this can take a long time and run out of memory.
6873 lt_cv_sys_max_cmd_len=8192;
6874 ;;
6875
6876 amigaos*)
6877 # On AmigaOS with pdksh, this test takes hours, literally.
6878 # So we just punt and use a minimum line length of 8192.
6879 lt_cv_sys_max_cmd_len=8192;
6880 ;;
6881
6882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6883 # This has been around since 386BSD, at least. Likely further.
6884 if test -x /sbin/sysctl; then
6885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6886 elif test -x /usr/sbin/sysctl; then
6887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6888 else
6889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6890 fi
6891 # And add a safety zone
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6894 ;;
6895
6896 interix*)
6897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6898 lt_cv_sys_max_cmd_len=196608
6899 ;;
6900
6901 osf*)
6902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6904 # nice to cause kernel panics so lets avoid the loop below.
6905 # First set a reasonable default.
6906 lt_cv_sys_max_cmd_len=16384
6907 #
6908 if test -x /sbin/sysconfig; then
6909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6911 esac
6912 fi
6913 ;;
6914 sco3.2v5*)
6915 lt_cv_sys_max_cmd_len=102400
6916 ;;
6917 sysv5* | sco5v6* | sysv4.2uw2*)
6918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6919 if test -n "$kargmax"; then
6920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6921 else
6922 lt_cv_sys_max_cmd_len=32768
6923 fi
6924 ;;
6925 *)
6926 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6927 if test -n "$lt_cv_sys_max_cmd_len"; then
6928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6930 else
6931 # Make teststring a little bigger before we do anything with it.
6932 # a 1K string should be a reasonable start.
6933 for i in 1 2 3 4 5 6 7 8 ; do
6934 teststring=$teststring$teststring
6935 done
6936 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6937 # If test is not a shell built-in, we'll probably end up computing a
6938 # maximum length that is only half of the actual maximum length, but
6939 # we can't tell.
6940 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6941 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6942 test $i != 17 # 1/2 MB should be enough
6943 do
6944 i=`expr $i + 1`
6945 teststring=$teststring$teststring
6946 done
6947 # Only check the string length outside the loop.
6948 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6949 teststring=
6950 # Add a significant safety factor because C++ compilers can tack on
6951 # massive amounts of additional arguments before passing them to the
6952 # linker. It appears as though 1/2 is a usable value.
6953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6954 fi
6955 ;;
6956 esac
6957
6958 fi
6959
6960 if test -n $lt_cv_sys_max_cmd_len ; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6962 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6965 $as_echo "none" >&6; }
6966 fi
6967 max_cmd_len=$lt_cv_sys_max_cmd_len
6968
6969
6970
6971
6972
6973
6974 : ${CP="cp -f"}
6975 : ${MV="mv -f"}
6976 : ${RM="rm -f"}
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6979 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6980 # Try some XSI features
6981 xsi_shell=no
6982 ( _lt_dummy="a/b/c"
6983 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6984 = c,a/b,, \
6985 && eval 'test $(( 1 + 1 )) -eq 2 \
6986 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6987 && xsi_shell=yes
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6989 $as_echo "$xsi_shell" >&6; }
6990
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6993 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6994 lt_shell_append=no
6995 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6996 >/dev/null 2>&1 \
6997 && lt_shell_append=yes
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6999 $as_echo "$lt_shell_append" >&6; }
7000
7001
7002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7003 lt_unset=unset
7004 else
7005 lt_unset=false
7006 fi
7007
7008
7009
7010
7011
7012 # test EBCDIC or ASCII
7013 case `echo X|tr X '\101'` in
7014 A) # ASCII based system
7015 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7016 lt_SP2NL='tr \040 \012'
7017 lt_NL2SP='tr \015\012 \040\040'
7018 ;;
7019 *) # EBCDIC based system
7020 lt_SP2NL='tr \100 \n'
7021 lt_NL2SP='tr \r\n \100\100'
7022 ;;
7023 esac
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7034 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7035 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 lt_cv_ld_reload_flag='-r'
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7041 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7042 reload_flag=$lt_cv_ld_reload_flag
7043 case $reload_flag in
7044 "" | " "*) ;;
7045 *) reload_flag=" $reload_flag" ;;
7046 esac
7047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7048 case $host_os in
7049 darwin*)
7050 if test "$GCC" = yes; then
7051 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7052 else
7053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7054 fi
7055 ;;
7056 esac
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$OBJDUMP"; then
7075 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 OBJDUMP=$ac_cv_prog_OBJDUMP
7095 if test -n "$OBJDUMP"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7097 $as_echo "$OBJDUMP" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_OBJDUMP"; then
7106 ac_ct_OBJDUMP=$OBJDUMP
7107 # Extract the first word of "objdump", so it can be a program name with args.
7108 set dummy objdump; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_OBJDUMP"; then
7115 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7135 if test -n "$ac_ct_OBJDUMP"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7137 $as_echo "$ac_ct_OBJDUMP" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143 if test "x$ac_ct_OBJDUMP" = x; then
7144 OBJDUMP="false"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 OBJDUMP=$ac_ct_OBJDUMP
7153 fi
7154 else
7155 OBJDUMP="$ac_cv_prog_OBJDUMP"
7156 fi
7157
7158 test -z "$OBJDUMP" && OBJDUMP=objdump
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7170 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 lt_cv_file_magic_cmd='$MAGIC_CMD'
7174 lt_cv_file_magic_test_file=
7175 lt_cv_deplibs_check_method='unknown'
7176 # Need to set the preceding variable on all platforms that support
7177 # interlibrary dependencies.
7178 # 'none' -- dependencies not supported.
7179 # `unknown' -- same as none, but documents that we really don't know.
7180 # 'pass_all' -- all dependencies passed with no checks.
7181 # 'test_compile' -- check by making test program.
7182 # 'file_magic [[regex]]' -- check by looking for files in library path
7183 # which responds to the $file_magic_cmd with a given extended regex.
7184 # If you have `file' or equivalent on your system and you're not sure
7185 # whether `pass_all' will *always* work, you probably want this one.
7186
7187 case $host_os in
7188 aix[4-9]*)
7189 lt_cv_deplibs_check_method=pass_all
7190 ;;
7191
7192 beos*)
7193 lt_cv_deplibs_check_method=pass_all
7194 ;;
7195
7196 bsdi[45]*)
7197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7198 lt_cv_file_magic_cmd='/usr/bin/file -L'
7199 lt_cv_file_magic_test_file=/shlib/libc.so
7200 ;;
7201
7202 cygwin*)
7203 # func_win32_libid is a shell function defined in ltmain.sh
7204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7205 lt_cv_file_magic_cmd='func_win32_libid'
7206 ;;
7207
7208 mingw* | pw32*)
7209 # Base MSYS/MinGW do not provide the 'file' command needed by
7210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7211 # unless we find 'file', for example because we are cross-compiling.
7212 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7213 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7215 lt_cv_file_magic_cmd='func_win32_libid'
7216 else
7217 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7218 lt_cv_file_magic_cmd='$OBJDUMP -f'
7219 fi
7220 ;;
7221
7222 cegcc*)
7223 # use the weaker test based on 'objdump'. See mingw*.
7224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7225 lt_cv_file_magic_cmd='$OBJDUMP -f'
7226 ;;
7227
7228 darwin* | rhapsody*)
7229 lt_cv_deplibs_check_method=pass_all
7230 ;;
7231
7232 freebsd* | dragonfly*)
7233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7234 case $host_cpu in
7235 i*86 )
7236 # Not sure whether the presence of OpenBSD here was a mistake.
7237 # Let's accept both of them until this is cleared up.
7238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7239 lt_cv_file_magic_cmd=/usr/bin/file
7240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7241 ;;
7242 esac
7243 else
7244 lt_cv_deplibs_check_method=pass_all
7245 fi
7246 ;;
7247
7248 gnu*)
7249 lt_cv_deplibs_check_method=pass_all
7250 ;;
7251
7252 haiku*)
7253 lt_cv_deplibs_check_method=pass_all
7254 ;;
7255
7256 hpux10.20* | hpux11*)
7257 lt_cv_file_magic_cmd=/usr/bin/file
7258 case $host_cpu in
7259 ia64*)
7260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7262 ;;
7263 hppa*64*)
7264 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]'
7265 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7266 ;;
7267 *)
7268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7269 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7270 ;;
7271 esac
7272 ;;
7273
7274 interix[3-9]*)
7275 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7277 ;;
7278
7279 irix5* | irix6* | nonstopux*)
7280 case $LD in
7281 *-32|*"-32 ") libmagic=32-bit;;
7282 *-n32|*"-n32 ") libmagic=N32;;
7283 *-64|*"-64 ") libmagic=64-bit;;
7284 *) libmagic=never-match;;
7285 esac
7286 lt_cv_deplibs_check_method=pass_all
7287 ;;
7288
7289 # This must be Linux ELF.
7290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7291 lt_cv_deplibs_check_method=pass_all
7292 ;;
7293
7294 netbsd*)
7295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7297 else
7298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7299 fi
7300 ;;
7301
7302 newos6*)
7303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7304 lt_cv_file_magic_cmd=/usr/bin/file
7305 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7306 ;;
7307
7308 *nto* | *qnx*)
7309 lt_cv_deplibs_check_method=pass_all
7310 ;;
7311
7312 openbsd*)
7313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7315 else
7316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7317 fi
7318 ;;
7319
7320 osf3* | osf4* | osf5*)
7321 lt_cv_deplibs_check_method=pass_all
7322 ;;
7323
7324 rdos*)
7325 lt_cv_deplibs_check_method=pass_all
7326 ;;
7327
7328 solaris*)
7329 lt_cv_deplibs_check_method=pass_all
7330 ;;
7331
7332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7333 lt_cv_deplibs_check_method=pass_all
7334 ;;
7335
7336 sysv4 | sysv4.3*)
7337 case $host_vendor in
7338 motorola)
7339 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]'
7340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7341 ;;
7342 ncr)
7343 lt_cv_deplibs_check_method=pass_all
7344 ;;
7345 sequent)
7346 lt_cv_file_magic_cmd='/bin/file'
7347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7348 ;;
7349 sni)
7350 lt_cv_file_magic_cmd='/bin/file'
7351 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7352 lt_cv_file_magic_test_file=/lib/libc.so
7353 ;;
7354 siemens)
7355 lt_cv_deplibs_check_method=pass_all
7356 ;;
7357 pc)
7358 lt_cv_deplibs_check_method=pass_all
7359 ;;
7360 esac
7361 ;;
7362
7363 tpf*)
7364 lt_cv_deplibs_check_method=pass_all
7365 ;;
7366 esac
7367
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7370 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7371 file_magic_cmd=$lt_cv_file_magic_cmd
7372 deplibs_check_method=$lt_cv_deplibs_check_method
7373 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}ar; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_AR+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$AR"; then
7395 ac_cv_prog_AR="$AR" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_AR="${ac_tool_prefix}ar"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 AR=$ac_cv_prog_AR
7415 if test -n "$AR"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7417 $as_echo "$AR" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425 if test -z "$ac_cv_prog_AR"; then
7426 ac_ct_AR=$AR
7427 # Extract the first word of "ar", so it can be a program name with args.
7428 set dummy ar; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test -n "$ac_ct_AR"; then
7435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_prog_ac_ct_AR="ar"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7455 if test -n "$ac_ct_AR"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7457 $as_echo "$ac_ct_AR" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463 if test "x$ac_ct_AR" = x; then
7464 AR="false"
7465 else
7466 case $cross_compiling:$ac_tool_warned in
7467 yes:)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7471 esac
7472 AR=$ac_ct_AR
7473 fi
7474 else
7475 AR="$ac_cv_prog_AR"
7476 fi
7477
7478 test -z "$AR" && AR=ar
7479 test -z "$AR_FLAGS" && AR_FLAGS=cru
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 if test -n "$ac_tool_prefix"; then
7492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}strip; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if test "${ac_cv_prog_STRIP+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 if test -n "$STRIP"; then
7500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 STRIP=$ac_cv_prog_STRIP
7520 if test -n "$STRIP"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7522 $as_echo "$STRIP" >&6; }
7523 else
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527
7528
7529 fi
7530 if test -z "$ac_cv_prog_STRIP"; then
7531 ac_ct_STRIP=$STRIP
7532 # Extract the first word of "strip", so it can be a program name with args.
7533 set dummy strip; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 if test -n "$ac_ct_STRIP"; then
7540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_prog_ac_ct_STRIP="strip"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7560 if test -n "$ac_ct_STRIP"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7562 $as_echo "$ac_ct_STRIP" >&6; }
7563 else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568 if test "x$ac_ct_STRIP" = x; then
7569 STRIP=":"
7570 else
7571 case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7576 esac
7577 STRIP=$ac_ct_STRIP
7578 fi
7579 else
7580 STRIP="$ac_cv_prog_STRIP"
7581 fi
7582
7583 test -z "$STRIP" && STRIP=:
7584
7585
7586
7587
7588
7589
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$RANLIB"; then
7599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 RANLIB=$ac_cv_prog_RANLIB
7619 if test -n "$RANLIB"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7621 $as_echo "$RANLIB" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_RANLIB"; then
7630 ac_ct_RANLIB=$RANLIB
7631 # Extract the first word of "ranlib", so it can be a program name with args.
7632 set dummy ranlib; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 if test -n "$ac_ct_RANLIB"; then
7639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_prog_ac_ct_RANLIB="ranlib"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7659 if test -n "$ac_ct_RANLIB"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7661 $as_echo "$ac_ct_RANLIB" >&6; }
7662 else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667 if test "x$ac_ct_RANLIB" = x; then
7668 RANLIB=":"
7669 else
7670 case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676 RANLIB=$ac_ct_RANLIB
7677 fi
7678 else
7679 RANLIB="$ac_cv_prog_RANLIB"
7680 fi
7681
7682 test -z "$RANLIB" && RANLIB=:
7683
7684
7685
7686
7687
7688
7689 # Determine commands to create old-style static archives.
7690 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7691 old_postinstall_cmds='chmod 644 $oldlib'
7692 old_postuninstall_cmds=
7693
7694 if test -n "$RANLIB"; then
7695 case $host_os in
7696 openbsd*)
7697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7698 ;;
7699 *)
7700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7701 ;;
7702 esac
7703 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7704 fi
7705
7706 case $host_os in
7707 darwin*)
7708 lock_old_archive_extraction=yes ;;
7709 *)
7710 lock_old_archive_extraction=no ;;
7711 esac
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 # If no C compiler was specified, use CC.
7752 LTCC=${LTCC-"$CC"}
7753
7754 # If no C compiler flags were specified, use CFLAGS.
7755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756
7757 # Allow CC to be a program name with arguments.
7758 compiler=$CC
7759
7760
7761 # Check for command to grab the raw symbol name followed by C symbol from nm.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7763 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7764 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767
7768 # These are sane defaults that work on at least a few old systems.
7769 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7770
7771 # Character class describing NM global symbol codes.
7772 symcode='[BCDEGRST]'
7773
7774 # Regexp to match symbols that can be accessed directly from C.
7775 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7776
7777 # Define system-specific variables.
7778 case $host_os in
7779 aix*)
7780 symcode='[BCDT]'
7781 ;;
7782 cygwin* | mingw* | pw32* | cegcc*)
7783 symcode='[ABCDGISTW]'
7784 ;;
7785 hpux*)
7786 if test "$host_cpu" = ia64; then
7787 symcode='[ABCDEGRST]'
7788 fi
7789 ;;
7790 irix* | nonstopux*)
7791 symcode='[BCDEGRST]'
7792 ;;
7793 osf*)
7794 symcode='[BCDEGQRST]'
7795 ;;
7796 solaris*)
7797 symcode='[BDRT]'
7798 ;;
7799 sco3.2v5*)
7800 symcode='[DT]'
7801 ;;
7802 sysv4.2uw2*)
7803 symcode='[DT]'
7804 ;;
7805 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7806 symcode='[ABDT]'
7807 ;;
7808 sysv4)
7809 symcode='[DFNSTU]'
7810 ;;
7811 esac
7812
7813 # If we're using GNU nm, then use its standard symbol codes.
7814 case `$NM -V 2>&1` in
7815 *GNU* | *'with BFD'*)
7816 symcode='[ABCDGIRSTW]' ;;
7817 esac
7818
7819 # Transform an extracted symbol line into a proper C declaration.
7820 # Some systems (esp. on ia64) link data and code symbols differently,
7821 # so use this general approach.
7822 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823
7824 # Transform an extracted symbol line into symbol name and symbol address
7825 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7826 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
7828 # Handle CRLF in mingw tool chain
7829 opt_cr=
7830 case $build_os in
7831 mingw*)
7832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7833 ;;
7834 esac
7835
7836 # Try without a prefix underscore, then with it.
7837 for ac_symprfx in "" "_"; do
7838
7839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7840 symxfrm="\\1 $ac_symprfx\\2 \\2"
7841
7842 # Write the raw and C identifiers.
7843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7844 # Fake it for dumpbin and say T for any non-static function
7845 # and D for any global variable.
7846 # Also find C++ and __fastcall symbols from MSVC++,
7847 # which start with @ or ?.
7848 lt_cv_sys_global_symbol_pipe="$AWK '"\
7849 " {last_section=section; section=\$ 3};"\
7850 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7851 " \$ 0!~/External *\|/{next};"\
7852 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7853 " {if(hide[section]) next};"\
7854 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7855 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7856 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7857 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7858 " ' prfx=^$ac_symprfx"
7859 else
7860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7861 fi
7862
7863 # Check to see that the pipe works correctly.
7864 pipe_works=no
7865
7866 rm -f conftest*
7867 cat > conftest.$ac_ext <<_LT_EOF
7868 #ifdef __cplusplus
7869 extern "C" {
7870 #endif
7871 char nm_test_var;
7872 void nm_test_func(void);
7873 void nm_test_func(void){}
7874 #ifdef __cplusplus
7875 }
7876 #endif
7877 int main(){nm_test_var='a';nm_test_func();return(0);}
7878 _LT_EOF
7879
7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881 (eval $ac_compile) 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; }; then
7885 # Now try to grab the symbols.
7886 nlist=conftest.nm
7887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7888 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; } && test -s "$nlist"; then
7892 # Try sorting and uniquifying the output.
7893 if sort "$nlist" | uniq > "$nlist"T; then
7894 mv -f "$nlist"T "$nlist"
7895 else
7896 rm -f "$nlist"T
7897 fi
7898
7899 # Make sure that we snagged all the symbols we need.
7900 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7901 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7902 cat <<_LT_EOF > conftest.$ac_ext
7903 #ifdef __cplusplus
7904 extern "C" {
7905 #endif
7906
7907 _LT_EOF
7908 # Now generate the symbol file.
7909 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7910
7911 cat <<_LT_EOF >> conftest.$ac_ext
7912
7913 /* The mapping between symbol names and symbols. */
7914 const struct {
7915 const char *name;
7916 void *address;
7917 }
7918 lt__PROGRAM__LTX_preloaded_symbols[] =
7919 {
7920 { "@PROGRAM@", (void *) 0 },
7921 _LT_EOF
7922 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7923 cat <<\_LT_EOF >> conftest.$ac_ext
7924 {0, (void *) 0}
7925 };
7926
7927 /* This works around a problem in FreeBSD linker */
7928 #ifdef FREEBSD_WORKAROUND
7929 static const void *lt_preloaded_setup() {
7930 return lt__PROGRAM__LTX_preloaded_symbols;
7931 }
7932 #endif
7933
7934 #ifdef __cplusplus
7935 }
7936 #endif
7937 _LT_EOF
7938 # Now try linking the two files.
7939 mv conftest.$ac_objext conftstm.$ac_objext
7940 lt_save_LIBS="$LIBS"
7941 lt_save_CFLAGS="$CFLAGS"
7942 LIBS="conftstm.$ac_objext"
7943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7945 (eval $ac_link) 2>&5
7946 ac_status=$?
7947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7948 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7949 pipe_works=yes
7950 fi
7951 LIBS="$lt_save_LIBS"
7952 CFLAGS="$lt_save_CFLAGS"
7953 else
7954 echo "cannot find nm_test_func in $nlist" >&5
7955 fi
7956 else
7957 echo "cannot find nm_test_var in $nlist" >&5
7958 fi
7959 else
7960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961 fi
7962 else
7963 echo "$progname: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7965 fi
7966 rm -rf conftest* conftst*
7967
7968 # Do not use the global_symbol_pipe unless it works.
7969 if test "$pipe_works" = yes; then
7970 break
7971 else
7972 lt_cv_sys_global_symbol_pipe=
7973 fi
7974 done
7975
7976 fi
7977
7978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7979 lt_cv_sys_global_symbol_to_cdecl=
7980 fi
7981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7983 $as_echo "failed" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7986 $as_echo "ok" >&6; }
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 # Check whether --enable-libtool-lock was given.
8011 if test "${enable_libtool_lock+set}" = set; then :
8012 enableval=$enable_libtool_lock;
8013 fi
8014
8015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8016
8017 # Some flags need to be propagated to the compiler or linker for good
8018 # libtool support.
8019 case $host in
8020 ia64-*-hpux*)
8021 # Find out which ABI we are using.
8022 echo 'int i;' > conftest.$ac_ext
8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024 (eval $ac_compile) 2>&5
8025 ac_status=$?
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 case `/usr/bin/file conftest.$ac_objext` in
8029 *ELF-32*)
8030 HPUX_IA64_MODE="32"
8031 ;;
8032 *ELF-64*)
8033 HPUX_IA64_MODE="64"
8034 ;;
8035 esac
8036 fi
8037 rm -rf conftest*
8038 ;;
8039 *-*-irix6*)
8040 # Find out which ABI we are using.
8041 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8043 (eval $ac_compile) 2>&5
8044 ac_status=$?
8045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; }; then
8047 if test "$lt_cv_prog_gnu_ld" = yes; then
8048 case `/usr/bin/file conftest.$ac_objext` in
8049 *32-bit*)
8050 LD="${LD-ld} -melf32bsmip"
8051 ;;
8052 *N32*)
8053 LD="${LD-ld} -melf32bmipn32"
8054 ;;
8055 *64-bit*)
8056 LD="${LD-ld} -melf64bmip"
8057 ;;
8058 esac
8059 else
8060 case `/usr/bin/file conftest.$ac_objext` in
8061 *32-bit*)
8062 LD="${LD-ld} -32"
8063 ;;
8064 *N32*)
8065 LD="${LD-ld} -n32"
8066 ;;
8067 *64-bit*)
8068 LD="${LD-ld} -64"
8069 ;;
8070 esac
8071 fi
8072 fi
8073 rm -rf conftest*
8074 ;;
8075
8076 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8077 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8078 # Find out which ABI we are using.
8079 echo 'int i;' > conftest.$ac_ext
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }; then
8085 case `/usr/bin/file conftest.o` in
8086 *32-bit*)
8087 case $host in
8088 x86_64-*kfreebsd*-gnu)
8089 LD="${LD-ld} -m elf_i386_fbsd"
8090 ;;
8091 x86_64-*linux*)
8092 case `/usr/bin/file conftest.o` in
8093 *x86-64*)
8094 LD="${LD-ld} -m elf32_x86_64"
8095 ;;
8096 *)
8097 LD="${LD-ld} -m elf_i386"
8098 ;;
8099 esac
8100 ;;
8101 powerpc64le-*linux*)
8102 LD="${LD-ld} -m elf32lppclinux"
8103 ;;
8104 powerpc64-*linux*)
8105 LD="${LD-ld} -m elf32ppclinux"
8106 ;;
8107 s390x-*linux*)
8108 LD="${LD-ld} -m elf_s390"
8109 ;;
8110 sparc64-*linux*)
8111 LD="${LD-ld} -m elf32_sparc"
8112 ;;
8113 esac
8114 ;;
8115 *64-bit*)
8116 case $host in
8117 x86_64-*kfreebsd*-gnu)
8118 LD="${LD-ld} -m elf_x86_64_fbsd"
8119 ;;
8120 x86_64-*linux*)
8121 LD="${LD-ld} -m elf_x86_64"
8122 ;;
8123 powerpcle-*linux*)
8124 LD="${LD-ld} -m elf64lppc"
8125 ;;
8126 powerpc-*linux*)
8127 LD="${LD-ld} -m elf64ppc"
8128 ;;
8129 s390*-*linux*|s390*-*tpf*)
8130 LD="${LD-ld} -m elf64_s390"
8131 ;;
8132 sparc*-*linux*)
8133 LD="${LD-ld} -m elf64_sparc"
8134 ;;
8135 esac
8136 ;;
8137 esac
8138 fi
8139 rm -rf conftest*
8140 ;;
8141
8142 *-*-sco3.2v5*)
8143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8144 SAVE_CFLAGS="$CFLAGS"
8145 CFLAGS="$CFLAGS -belf"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8148 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 ac_ext=c
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157 if test x$gcc_no_link = xyes; then
8158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8159 fi
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162
8163 int
8164 main ()
8165 {
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"; then :
8172 lt_cv_cc_needs_belf=yes
8173 else
8174 lt_cv_cc_needs_belf=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 ac_ext=c
8179 ac_cpp='$CPP $CPPFLAGS'
8180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8186 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8187 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8188 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8189 CFLAGS="$SAVE_CFLAGS"
8190 fi
8191 ;;
8192 sparc*-*solaris*)
8193 # Find out which ABI we are using.
8194 echo 'int i;' > conftest.$ac_ext
8195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8196 (eval $ac_compile) 2>&5
8197 ac_status=$?
8198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199 test $ac_status = 0; }; then
8200 case `/usr/bin/file conftest.o` in
8201 *64-bit*)
8202 case $lt_cv_prog_gnu_ld in
8203 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8204 *)
8205 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8206 LD="${LD-ld} -64"
8207 fi
8208 ;;
8209 esac
8210 ;;
8211 esac
8212 fi
8213 rm -rf conftest*
8214 ;;
8215 esac
8216
8217 need_locks="$enable_libtool_lock"
8218
8219
8220 case $host_os in
8221 rhapsody* | darwin*)
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$DSYMUTIL"; then
8231 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8251 if test -n "$DSYMUTIL"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8253 $as_echo "$DSYMUTIL" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 if test -z "$ac_cv_prog_DSYMUTIL"; then
8262 ac_ct_DSYMUTIL=$DSYMUTIL
8263 # Extract the first word of "dsymutil", so it can be a program name with args.
8264 set dummy dsymutil; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$ac_ct_DSYMUTIL"; then
8271 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8291 if test -n "$ac_ct_DSYMUTIL"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8293 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_DSYMUTIL" = x; then
8300 DSYMUTIL=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 DSYMUTIL=$ac_ct_DSYMUTIL
8309 fi
8310 else
8311 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8312 fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$NMEDIT"; then
8323 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 NMEDIT=$ac_cv_prog_NMEDIT
8343 if test -n "$NMEDIT"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8345 $as_echo "$NMEDIT" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 fi
8353 if test -z "$ac_cv_prog_NMEDIT"; then
8354 ac_ct_NMEDIT=$NMEDIT
8355 # Extract the first word of "nmedit", so it can be a program name with args.
8356 set dummy nmedit; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_NMEDIT"; then
8363 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8383 if test -n "$ac_ct_NMEDIT"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8385 $as_echo "$ac_ct_NMEDIT" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391 if test "x$ac_ct_NMEDIT" = x; then
8392 NMEDIT=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 NMEDIT=$ac_ct_NMEDIT
8401 fi
8402 else
8403 NMEDIT="$ac_cv_prog_NMEDIT"
8404 fi
8405
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_LIPO+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$LIPO"; then
8415 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428 done
8429 done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 LIPO=$ac_cv_prog_LIPO
8435 if test -n "$LIPO"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8437 $as_echo "$LIPO" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444 fi
8445 if test -z "$ac_cv_prog_LIPO"; then
8446 ac_ct_LIPO=$LIPO
8447 # Extract the first word of "lipo", so it can be a program name with args.
8448 set dummy lipo; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$ac_ct_LIPO"; then
8455 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_prog_ac_ct_LIPO="lipo"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8475 if test -n "$ac_ct_LIPO"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8477 $as_echo "$ac_ct_LIPO" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483 if test "x$ac_ct_LIPO" = x; then
8484 LIPO=":"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 LIPO=$ac_ct_LIPO
8493 fi
8494 else
8495 LIPO="$ac_cv_prog_LIPO"
8496 fi
8497
8498 if test -n "$ac_tool_prefix"; then
8499 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8500 set dummy ${ac_tool_prefix}otool; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 if test -n "$OTOOL"; then
8507 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524 fi
8525 fi
8526 OTOOL=$ac_cv_prog_OTOOL
8527 if test -n "$OTOOL"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8529 $as_echo "$OTOOL" >&6; }
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535
8536 fi
8537 if test -z "$ac_cv_prog_OTOOL"; then
8538 ac_ct_OTOOL=$OTOOL
8539 # Extract the first word of "otool", so it can be a program name with args.
8540 set dummy otool; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 if test -n "$ac_ct_OTOOL"; then
8547 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_prog_ac_ct_OTOOL="otool"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8567 if test -n "$ac_ct_OTOOL"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8569 $as_echo "$ac_ct_OTOOL" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575 if test "x$ac_ct_OTOOL" = x; then
8576 OTOOL=":"
8577 else
8578 case $cross_compiling:$ac_tool_warned in
8579 yes:)
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8583 esac
8584 OTOOL=$ac_ct_OTOOL
8585 fi
8586 else
8587 OTOOL="$ac_cv_prog_OTOOL"
8588 fi
8589
8590 if test -n "$ac_tool_prefix"; then
8591 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8592 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$OTOOL64"; then
8599 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616 fi
8617 fi
8618 OTOOL64=$ac_cv_prog_OTOOL64
8619 if test -n "$OTOOL64"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8621 $as_echo "$OTOOL64" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628 fi
8629 if test -z "$ac_cv_prog_OTOOL64"; then
8630 ac_ct_OTOOL64=$OTOOL64
8631 # Extract the first word of "otool64", so it can be a program name with args.
8632 set dummy otool64; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$ac_ct_OTOOL64"; then
8639 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_prog_ac_ct_OTOOL64="otool64"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi
8657 fi
8658 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8659 if test -n "$ac_ct_OTOOL64"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8661 $as_echo "$ac_ct_OTOOL64" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8665 fi
8666
8667 if test "x$ac_ct_OTOOL64" = x; then
8668 OTOOL64=":"
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671 yes:)
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 OTOOL64=$ac_ct_OTOOL64
8677 fi
8678 else
8679 OTOOL64="$ac_cv_prog_OTOOL64"
8680 fi
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8709 $as_echo_n "checking for -single_module linker flag... " >&6; }
8710 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 lt_cv_apple_cc_single_mod=no
8714 if test -z "${LT_MULTI_MODULE}"; then
8715 # By default we will add the -single_module flag. You can override
8716 # by either setting the environment variable LT_MULTI_MODULE
8717 # non-empty at configure time, or by adding -multi_module to the
8718 # link flags.
8719 rm -rf libconftest.dylib*
8720 echo "int foo(void){return 1;}" > conftest.c
8721 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8722 -dynamiclib -Wl,-single_module conftest.c" >&5
8723 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8724 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8725 _lt_result=$?
8726 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8727 lt_cv_apple_cc_single_mod=yes
8728 else
8729 cat conftest.err >&5
8730 fi
8731 rm -rf libconftest.dylib*
8732 rm -f conftest.*
8733 fi
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8736 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8738 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8739 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 lt_cv_ld_exported_symbols_list=no
8743 save_LDFLAGS=$LDFLAGS
8744 echo "_main" > conftest.sym
8745 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8746 if test x$gcc_no_link = xyes; then
8747 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8748 fi
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751
8752 int
8753 main ()
8754 {
8755
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 lt_cv_ld_exported_symbols_list=yes
8762 else
8763 lt_cv_ld_exported_symbols_list=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LDFLAGS="$save_LDFLAGS"
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8771 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8773 $as_echo_n "checking for -force_load linker flag... " >&6; }
8774 if test "${lt_cv_ld_force_load+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 lt_cv_ld_force_load=no
8778 cat > conftest.c << _LT_EOF
8779 int forced_loaded() { return 2;}
8780 _LT_EOF
8781 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8782 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8783 echo "$AR cru libconftest.a conftest.o" >&5
8784 $AR cru libconftest.a conftest.o 2>&5
8785 cat > conftest.c << _LT_EOF
8786 int main() { return 0;}
8787 _LT_EOF
8788 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8789 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8790 _lt_result=$?
8791 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8792 lt_cv_ld_force_load=yes
8793 else
8794 cat conftest.err >&5
8795 fi
8796 rm -f conftest.err libconftest.a conftest conftest.c
8797 rm -rf conftest.dSYM
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8801 $as_echo "$lt_cv_ld_force_load" >&6; }
8802 case $host_os in
8803 rhapsody* | darwin1.[012])
8804 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8805 darwin1.*)
8806 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8807 darwin*) # darwin 5.x on
8808 # if running on 10.5 or later, the deployment target defaults
8809 # to the OS version, if on x86, and 10.4, the deployment
8810 # target defaults to 10.4. Don't you love it?
8811 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8812 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8813 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8814 10.[012]*)
8815 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8816 10.*)
8817 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8818 esac
8819 ;;
8820 esac
8821 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8822 _lt_dar_single_mod='$single_module'
8823 fi
8824 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8825 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8826 else
8827 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8828 fi
8829 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8830 _lt_dsymutil='~$DSYMUTIL $lib || :'
8831 else
8832 _lt_dsymutil=
8833 fi
8834 ;;
8835 esac
8836
8837 for ac_header in dlfcn.h
8838 do :
8839 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8840 "
8841 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8842 cat >>confdefs.h <<_ACEOF
8843 #define HAVE_DLFCN_H 1
8844 _ACEOF
8845
8846 fi
8847
8848 done
8849
8850
8851
8852
8853
8854 # Set options
8855
8856
8857
8858
8859 enable_win32_dll=no
8860
8861
8862 # Check whether --enable-shared was given.
8863 if test "${enable_shared+set}" = set; then :
8864 enableval=$enable_shared; p=${PACKAGE-default}
8865 case $enableval in
8866 yes) enable_shared=yes ;;
8867 no) enable_shared=no ;;
8868 *)
8869 enable_shared=no
8870 # Look at the argument we got. We use all the common list separators.
8871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8872 for pkg in $enableval; do
8873 IFS="$lt_save_ifs"
8874 if test "X$pkg" = "X$p"; then
8875 enable_shared=yes
8876 fi
8877 done
8878 IFS="$lt_save_ifs"
8879 ;;
8880 esac
8881 else
8882 enable_shared=yes
8883 fi
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893 # Check whether --enable-static was given.
8894 if test "${enable_static+set}" = set; then :
8895 enableval=$enable_static; p=${PACKAGE-default}
8896 case $enableval in
8897 yes) enable_static=yes ;;
8898 no) enable_static=no ;;
8899 *)
8900 enable_static=no
8901 # Look at the argument we got. We use all the common list separators.
8902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8903 for pkg in $enableval; do
8904 IFS="$lt_save_ifs"
8905 if test "X$pkg" = "X$p"; then
8906 enable_static=yes
8907 fi
8908 done
8909 IFS="$lt_save_ifs"
8910 ;;
8911 esac
8912 else
8913 enable_static=yes
8914 fi
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925 # Check whether --with-pic was given.
8926 if test "${with_pic+set}" = set; then :
8927 withval=$with_pic; pic_mode="$withval"
8928 else
8929 pic_mode=default
8930 fi
8931
8932
8933 test -z "$pic_mode" && pic_mode=default
8934
8935
8936
8937
8938
8939
8940
8941 # Check whether --enable-fast-install was given.
8942 if test "${enable_fast_install+set}" = set; then :
8943 enableval=$enable_fast_install; p=${PACKAGE-default}
8944 case $enableval in
8945 yes) enable_fast_install=yes ;;
8946 no) enable_fast_install=no ;;
8947 *)
8948 enable_fast_install=no
8949 # Look at the argument we got. We use all the common list separators.
8950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8951 for pkg in $enableval; do
8952 IFS="$lt_save_ifs"
8953 if test "X$pkg" = "X$p"; then
8954 enable_fast_install=yes
8955 fi
8956 done
8957 IFS="$lt_save_ifs"
8958 ;;
8959 esac
8960 else
8961 enable_fast_install=yes
8962 fi
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974 # This can be used to rebuild libtool when needed
8975 LIBTOOL_DEPS="$ltmain"
8976
8977 # Always use our own libtool.
8978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005 test -z "$LN_S" && LN_S="ln -s"
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020 if test -n "${ZSH_VERSION+set}" ; then
9021 setopt NO_GLOB_SUBST
9022 fi
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9025 $as_echo_n "checking for objdir... " >&6; }
9026 if test "${lt_cv_objdir+set}" = set; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 rm -f .libs 2>/dev/null
9030 mkdir .libs 2>/dev/null
9031 if test -d .libs; then
9032 lt_cv_objdir=.libs
9033 else
9034 # MS-DOS does not allow filenames that begin with a dot.
9035 lt_cv_objdir=_libs
9036 fi
9037 rmdir .libs 2>/dev/null
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9040 $as_echo "$lt_cv_objdir" >&6; }
9041 objdir=$lt_cv_objdir
9042
9043
9044
9045
9046
9047 cat >>confdefs.h <<_ACEOF
9048 #define LT_OBJDIR "$lt_cv_objdir/"
9049 _ACEOF
9050
9051
9052
9053
9054 case $host_os in
9055 aix3*)
9056 # AIX sometimes has problems with the GCC collect2 program. For some
9057 # reason, if we set the COLLECT_NAMES environment variable, the problems
9058 # vanish in a puff of smoke.
9059 if test "X${COLLECT_NAMES+set}" != Xset; then
9060 COLLECT_NAMES=
9061 export COLLECT_NAMES
9062 fi
9063 ;;
9064 esac
9065
9066 # Global variables:
9067 ofile=libtool
9068 can_build_shared=yes
9069
9070 # All known linkers require a `.a' archive for static linking (except MSVC,
9071 # which needs '.lib').
9072 libext=a
9073
9074 with_gnu_ld="$lt_cv_prog_gnu_ld"
9075
9076 old_CC="$CC"
9077 old_CFLAGS="$CFLAGS"
9078
9079 # Set sane defaults for various variables
9080 test -z "$CC" && CC=cc
9081 test -z "$LTCC" && LTCC=$CC
9082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9083 test -z "$LD" && LD=ld
9084 test -z "$ac_objext" && ac_objext=o
9085
9086 for cc_temp in $compiler""; do
9087 case $cc_temp in
9088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9090 \-*) ;;
9091 *) break;;
9092 esac
9093 done
9094 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9095
9096
9097 # Only perform the check for file, if the check method requires it
9098 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9099 case $deplibs_check_method in
9100 file_magic*)
9101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9103 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9104 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 case $MAGIC_CMD in
9108 [\\/*] | ?:[\\/]*)
9109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9110 ;;
9111 *)
9112 lt_save_MAGIC_CMD="$MAGIC_CMD"
9113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9115 for ac_dir in $ac_dummy; do
9116 IFS="$lt_save_ifs"
9117 test -z "$ac_dir" && ac_dir=.
9118 if test -f $ac_dir/${ac_tool_prefix}file; then
9119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9120 if test -n "$file_magic_test_file"; then
9121 case $deplibs_check_method in
9122 "file_magic "*)
9123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9126 $EGREP "$file_magic_regex" > /dev/null; then
9127 :
9128 else
9129 cat <<_LT_EOF 1>&2
9130
9131 *** Warning: the command libtool uses to detect shared libraries,
9132 *** $file_magic_cmd, produces output that libtool cannot recognize.
9133 *** The result is that libtool may fail to recognize shared libraries
9134 *** as such. This will affect the creation of libtool libraries that
9135 *** depend on shared libraries, but programs linked with such libtool
9136 *** libraries will work regardless of this problem. Nevertheless, you
9137 *** may want to report the problem to your system manager and/or to
9138 *** bug-libtool@gnu.org
9139
9140 _LT_EOF
9141 fi ;;
9142 esac
9143 fi
9144 break
9145 fi
9146 done
9147 IFS="$lt_save_ifs"
9148 MAGIC_CMD="$lt_save_MAGIC_CMD"
9149 ;;
9150 esac
9151 fi
9152
9153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9154 if test -n "$MAGIC_CMD"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9156 $as_echo "$MAGIC_CMD" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163
9164
9165
9166 if test -z "$lt_cv_path_MAGIC_CMD"; then
9167 if test -n "$ac_tool_prefix"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9169 $as_echo_n "checking for file... " >&6; }
9170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 case $MAGIC_CMD in
9174 [\\/*] | ?:[\\/]*)
9175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9176 ;;
9177 *)
9178 lt_save_MAGIC_CMD="$MAGIC_CMD"
9179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9181 for ac_dir in $ac_dummy; do
9182 IFS="$lt_save_ifs"
9183 test -z "$ac_dir" && ac_dir=.
9184 if test -f $ac_dir/file; then
9185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9186 if test -n "$file_magic_test_file"; then
9187 case $deplibs_check_method in
9188 "file_magic "*)
9189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9192 $EGREP "$file_magic_regex" > /dev/null; then
9193 :
9194 else
9195 cat <<_LT_EOF 1>&2
9196
9197 *** Warning: the command libtool uses to detect shared libraries,
9198 *** $file_magic_cmd, produces output that libtool cannot recognize.
9199 *** The result is that libtool may fail to recognize shared libraries
9200 *** as such. This will affect the creation of libtool libraries that
9201 *** depend on shared libraries, but programs linked with such libtool
9202 *** libraries will work regardless of this problem. Nevertheless, you
9203 *** may want to report the problem to your system manager and/or to
9204 *** bug-libtool@gnu.org
9205
9206 _LT_EOF
9207 fi ;;
9208 esac
9209 fi
9210 break
9211 fi
9212 done
9213 IFS="$lt_save_ifs"
9214 MAGIC_CMD="$lt_save_MAGIC_CMD"
9215 ;;
9216 esac
9217 fi
9218
9219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9220 if test -n "$MAGIC_CMD"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9222 $as_echo "$MAGIC_CMD" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9226 fi
9227
9228
9229 else
9230 MAGIC_CMD=:
9231 fi
9232 fi
9233
9234 fi
9235 ;;
9236 esac
9237
9238 # Use C for the default configuration in the libtool script
9239
9240 lt_save_CC="$CC"
9241 ac_ext=c
9242 ac_cpp='$CPP $CPPFLAGS'
9243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9246
9247
9248 # Source file extension for C test sources.
9249 ac_ext=c
9250
9251 # Object file extension for compiled C test sources.
9252 objext=o
9253 objext=$objext
9254
9255 # Code to be used in simple compile tests
9256 lt_simple_compile_test_code="int some_variable = 0;"
9257
9258 # Code to be used in simple link tests
9259 lt_simple_link_test_code='int main(){return(0);}'
9260
9261
9262
9263
9264
9265
9266
9267 # If no C compiler was specified, use CC.
9268 LTCC=${LTCC-"$CC"}
9269
9270 # If no C compiler flags were specified, use CFLAGS.
9271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9272
9273 # Allow CC to be a program name with arguments.
9274 compiler=$CC
9275
9276 # Save the default compiler, since it gets overwritten when the other
9277 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9278 compiler_DEFAULT=$CC
9279
9280 # save warnings/boilerplate of simple test code
9281 ac_outfile=conftest.$ac_objext
9282 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9284 _lt_compiler_boilerplate=`cat conftest.err`
9285 $RM conftest*
9286
9287 ac_outfile=conftest.$ac_objext
9288 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9290 _lt_linker_boilerplate=`cat conftest.err`
9291 $RM -r conftest*
9292
9293
9294 ## CAVEAT EMPTOR:
9295 ## There is no encapsulation within the following macros, do not change
9296 ## the running order or otherwise move them around unless you know exactly
9297 ## what you are doing...
9298 if test -n "$compiler"; then
9299
9300 lt_prog_compiler_no_builtin_flag=
9301
9302 if test "$GCC" = yes; then
9303 case $cc_basename in
9304 nvcc*)
9305 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9306 *)
9307 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9308 esac
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 lt_cv_prog_compiler_rtti_exceptions=no
9316 ac_outfile=conftest.$ac_objext
9317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9318 lt_compiler_flag="-fno-rtti -fno-exceptions"
9319 # Insert the option either (1) after the last *FLAGS variable, or
9320 # (2) before a word containing "conftest.", or (3) at the end.
9321 # Note that $ac_compile itself does not contain backslashes and begins
9322 # with a dollar sign (not a hyphen), so the echo should work correctly.
9323 # The option is referenced via a variable to avoid confusing sed.
9324 lt_compile=`echo "$ac_compile" | $SED \
9325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9327 -e 's:$: $lt_compiler_flag:'`
9328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9329 (eval "$lt_compile" 2>conftest.err)
9330 ac_status=$?
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 if (exit $ac_status) && test -s "$ac_outfile"; then
9334 # The compiler can only warn and ignore the option if not recognized
9335 # So say no if there are warnings other than the usual output.
9336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9339 lt_cv_prog_compiler_rtti_exceptions=yes
9340 fi
9341 fi
9342 $RM conftest*
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9347
9348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9350 else
9351 :
9352 fi
9353
9354 fi
9355
9356
9357
9358
9359
9360
9361 lt_prog_compiler_wl=
9362 lt_prog_compiler_pic=
9363 lt_prog_compiler_static=
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9367
9368 if test "$GCC" = yes; then
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_static='-static'
9371
9372 case $host_os in
9373 aix*)
9374 # All AIX code is PIC.
9375 if test "$host_cpu" = ia64; then
9376 # AIX 5 now supports IA64 processor
9377 lt_prog_compiler_static='-Bstatic'
9378 fi
9379 lt_prog_compiler_pic='-fPIC'
9380 ;;
9381
9382 amigaos*)
9383 case $host_cpu in
9384 powerpc)
9385 # see comment about AmigaOS4 .so support
9386 lt_prog_compiler_pic='-fPIC'
9387 ;;
9388 m68k)
9389 # FIXME: we need at least 68020 code to build shared libraries, but
9390 # adding the `-m68020' flag to GCC prevents building anything better,
9391 # like `-m68040'.
9392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9393 ;;
9394 esac
9395 ;;
9396
9397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9398 # PIC is the default for these OSes.
9399 ;;
9400
9401 mingw* | cygwin* | pw32* | os2* | cegcc*)
9402 # This hack is so that the source file can tell whether it is being
9403 # built for inclusion in a dll (and should export symbols for example).
9404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9405 # (--disable-auto-import) libraries
9406 lt_prog_compiler_pic='-DDLL_EXPORT'
9407 ;;
9408
9409 darwin* | rhapsody*)
9410 # PIC is the default on this platform
9411 # Common symbols not allowed in MH_DYLIB files
9412 lt_prog_compiler_pic='-fno-common'
9413 ;;
9414
9415 haiku*)
9416 # PIC is the default for Haiku.
9417 # The "-static" flag exists, but is broken.
9418 lt_prog_compiler_static=
9419 ;;
9420
9421 hpux*)
9422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9424 # sets the default TLS model and affects inlining.
9425 case $host_cpu in
9426 hppa*64*)
9427 # +Z the default
9428 ;;
9429 *)
9430 lt_prog_compiler_pic='-fPIC'
9431 ;;
9432 esac
9433 ;;
9434
9435 interix[3-9]*)
9436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9437 # Instead, we relocate shared libraries at runtime.
9438 ;;
9439
9440 msdosdjgpp*)
9441 # Just because we use GCC doesn't mean we suddenly get shared libraries
9442 # on systems that don't support them.
9443 lt_prog_compiler_can_build_shared=no
9444 enable_shared=no
9445 ;;
9446
9447 *nto* | *qnx*)
9448 # QNX uses GNU C++, but need to define -shared option too, otherwise
9449 # it will coredump.
9450 lt_prog_compiler_pic='-fPIC -shared'
9451 ;;
9452
9453 sysv4*MP*)
9454 if test -d /usr/nec; then
9455 lt_prog_compiler_pic=-Kconform_pic
9456 fi
9457 ;;
9458
9459 *)
9460 lt_prog_compiler_pic='-fPIC'
9461 ;;
9462 esac
9463
9464 case $cc_basename in
9465 nvcc*) # Cuda Compiler Driver 2.2
9466 lt_prog_compiler_wl='-Xlinker '
9467 lt_prog_compiler_pic='-Xcompiler -fPIC'
9468 ;;
9469 esac
9470 else
9471 # PORTME Check for flag to pass linker flags through the system compiler.
9472 case $host_os in
9473 aix*)
9474 lt_prog_compiler_wl='-Wl,'
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 now supports IA64 processor
9477 lt_prog_compiler_static='-Bstatic'
9478 else
9479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9480 fi
9481 ;;
9482
9483 mingw* | cygwin* | pw32* | os2* | cegcc*)
9484 # This hack is so that the source file can tell whether it is being
9485 # built for inclusion in a dll (and should export symbols for example).
9486 lt_prog_compiler_pic='-DDLL_EXPORT'
9487 ;;
9488
9489 hpux9* | hpux10* | hpux11*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9492 # not for PA HP-UX.
9493 case $host_cpu in
9494 hppa*64*|ia64*)
9495 # +Z the default
9496 ;;
9497 *)
9498 lt_prog_compiler_pic='+Z'
9499 ;;
9500 esac
9501 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9502 lt_prog_compiler_static='${wl}-a ${wl}archive'
9503 ;;
9504
9505 irix5* | irix6* | nonstopux*)
9506 lt_prog_compiler_wl='-Wl,'
9507 # PIC (with -KPIC) is the default.
9508 lt_prog_compiler_static='-non_shared'
9509 ;;
9510
9511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9512 case $cc_basename in
9513 # old Intel for x86_64 which still supported -KPIC.
9514 ecc*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-KPIC'
9517 lt_prog_compiler_static='-static'
9518 ;;
9519 # icc used to be incompatible with GCC.
9520 # ICC 10 doesn't accept -KPIC any more.
9521 icc* | ifort*)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-fPIC'
9524 lt_prog_compiler_static='-static'
9525 ;;
9526 # Lahey Fortran 8.1.
9527 lf95*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='--shared'
9530 lt_prog_compiler_static='--static'
9531 ;;
9532 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9533 # Portland Group compilers (*not* the Pentium gcc compiler,
9534 # which looks to be a dead project)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-fpic'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9539 ccc*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # All Alpha code is PIC.
9542 lt_prog_compiler_static='-non_shared'
9543 ;;
9544 xl* | bgxl* | bgf* | mpixl*)
9545 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_pic='-qpic'
9548 lt_prog_compiler_static='-qstaticlink'
9549 ;;
9550 *)
9551 case `$CC -V 2>&1 | sed 5q` in
9552 *Sun\ F* | *Sun*Fortran*)
9553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 lt_prog_compiler_wl=''
9557 ;;
9558 *Sun\ C*)
9559 # Sun C 5.9
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-Bstatic'
9562 lt_prog_compiler_wl='-Wl,'
9563 ;;
9564 esac
9565 ;;
9566 esac
9567 ;;
9568
9569 newsos6)
9570 lt_prog_compiler_pic='-KPIC'
9571 lt_prog_compiler_static='-Bstatic'
9572 ;;
9573
9574 *nto* | *qnx*)
9575 # QNX uses GNU C++, but need to define -shared option too, otherwise
9576 # it will coredump.
9577 lt_prog_compiler_pic='-fPIC -shared'
9578 ;;
9579
9580 osf3* | osf4* | osf5*)
9581 lt_prog_compiler_wl='-Wl,'
9582 # All OSF/1 code is PIC.
9583 lt_prog_compiler_static='-non_shared'
9584 ;;
9585
9586 rdos*)
9587 lt_prog_compiler_static='-non_shared'
9588 ;;
9589
9590 solaris*)
9591 lt_prog_compiler_pic='-KPIC'
9592 lt_prog_compiler_static='-Bstatic'
9593 case $cc_basename in
9594 f77* | f90* | f95*)
9595 lt_prog_compiler_wl='-Qoption ld ';;
9596 *)
9597 lt_prog_compiler_wl='-Wl,';;
9598 esac
9599 ;;
9600
9601 sunos4*)
9602 lt_prog_compiler_wl='-Qoption ld '
9603 lt_prog_compiler_pic='-PIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
9606
9607 sysv4 | sysv4.2uw2* | sysv4.3*)
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 ;;
9612
9613 sysv4*MP*)
9614 if test -d /usr/nec ;then
9615 lt_prog_compiler_pic='-Kconform_pic'
9616 lt_prog_compiler_static='-Bstatic'
9617 fi
9618 ;;
9619
9620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_pic='-KPIC'
9623 lt_prog_compiler_static='-Bstatic'
9624 ;;
9625
9626 unicos*)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_can_build_shared=no
9629 ;;
9630
9631 uts4*)
9632 lt_prog_compiler_pic='-pic'
9633 lt_prog_compiler_static='-Bstatic'
9634 ;;
9635
9636 *)
9637 lt_prog_compiler_can_build_shared=no
9638 ;;
9639 esac
9640 fi
9641
9642 case $host_os in
9643 # For platforms which do not support PIC, -DPIC is meaningless:
9644 *djgpp*)
9645 lt_prog_compiler_pic=
9646 ;;
9647 *)
9648 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9649 ;;
9650 esac
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9652 $as_echo "$lt_prog_compiler_pic" >&6; }
9653
9654
9655
9656
9657
9658
9659 #
9660 # Check to make sure the PIC flag actually works.
9661 #
9662 if test -n "$lt_prog_compiler_pic"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9664 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9665 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 lt_cv_prog_compiler_pic_works=no
9669 ac_outfile=conftest.$ac_objext
9670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9672 # Insert the option either (1) after the last *FLAGS variable, or
9673 # (2) before a word containing "conftest.", or (3) at the end.
9674 # Note that $ac_compile itself does not contain backslashes and begins
9675 # with a dollar sign (not a hyphen), so the echo should work correctly.
9676 # The option is referenced via a variable to avoid confusing sed.
9677 lt_compile=`echo "$ac_compile" | $SED \
9678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680 -e 's:$: $lt_compiler_flag:'`
9681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9682 (eval "$lt_compile" 2>conftest.err)
9683 ac_status=$?
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 if (exit $ac_status) && test -s "$ac_outfile"; then
9687 # The compiler can only warn and ignore the option if not recognized
9688 # So say no if there are warnings other than the usual output.
9689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9692 lt_cv_prog_compiler_pic_works=yes
9693 fi
9694 fi
9695 $RM conftest*
9696
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9699 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9700
9701 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9702 case $lt_prog_compiler_pic in
9703 "" | " "*) ;;
9704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9705 esac
9706 else
9707 lt_prog_compiler_pic=
9708 lt_prog_compiler_can_build_shared=no
9709 fi
9710
9711 fi
9712
9713
9714
9715
9716
9717
9718 #
9719 # Check to make sure the static flag actually works.
9720 #
9721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9723 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9724 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 lt_cv_prog_compiler_static_works=no
9728 save_LDFLAGS="$LDFLAGS"
9729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9732 # The linker can only warn and ignore the option if not recognized
9733 # So say no if there are warnings
9734 if test -s conftest.err; then
9735 # Append any errors to the config.log.
9736 cat conftest.err 1>&5
9737 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9739 if diff conftest.exp conftest.er2 >/dev/null; then
9740 lt_cv_prog_compiler_static_works=yes
9741 fi
9742 else
9743 lt_cv_prog_compiler_static_works=yes
9744 fi
9745 fi
9746 $RM -r conftest*
9747 LDFLAGS="$save_LDFLAGS"
9748
9749 fi
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9751 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9752
9753 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9754 :
9755 else
9756 lt_prog_compiler_static=
9757 fi
9758
9759
9760
9761
9762
9763
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9767 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 lt_cv_prog_compiler_c_o=no
9771 $RM -r conftest 2>/dev/null
9772 mkdir conftest
9773 cd conftest
9774 mkdir out
9775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9776
9777 lt_compiler_flag="-o out/conftest2.$ac_objext"
9778 # Insert the option either (1) after the last *FLAGS variable, or
9779 # (2) before a word containing "conftest.", or (3) at the end.
9780 # Note that $ac_compile itself does not contain backslashes and begins
9781 # with a dollar sign (not a hyphen), so the echo should work correctly.
9782 lt_compile=`echo "$ac_compile" | $SED \
9783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9785 -e 's:$: $lt_compiler_flag:'`
9786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9787 (eval "$lt_compile" 2>out/conftest.err)
9788 ac_status=$?
9789 cat out/conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9792 then
9793 # The compiler can only warn and ignore the option if not recognized
9794 # So say no if there are warnings
9795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9798 lt_cv_prog_compiler_c_o=yes
9799 fi
9800 fi
9801 chmod u+w . 2>&5
9802 $RM conftest*
9803 # SGI C++ compiler will create directory out/ii_files/ for
9804 # template instantiation
9805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9806 $RM out/* && rmdir out
9807 cd ..
9808 $RM -r conftest
9809 $RM conftest*
9810
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9813 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9814
9815
9816
9817
9818
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9822 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 lt_cv_prog_compiler_c_o=no
9826 $RM -r conftest 2>/dev/null
9827 mkdir conftest
9828 cd conftest
9829 mkdir out
9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9831
9832 lt_compiler_flag="-o out/conftest2.$ac_objext"
9833 # Insert the option either (1) after the last *FLAGS variable, or
9834 # (2) before a word containing "conftest.", or (3) at the end.
9835 # Note that $ac_compile itself does not contain backslashes and begins
9836 # with a dollar sign (not a hyphen), so the echo should work correctly.
9837 lt_compile=`echo "$ac_compile" | $SED \
9838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9840 -e 's:$: $lt_compiler_flag:'`
9841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9842 (eval "$lt_compile" 2>out/conftest.err)
9843 ac_status=$?
9844 cat out/conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9847 then
9848 # The compiler can only warn and ignore the option if not recognized
9849 # So say no if there are warnings
9850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9853 lt_cv_prog_compiler_c_o=yes
9854 fi
9855 fi
9856 chmod u+w . 2>&5
9857 $RM conftest*
9858 # SGI C++ compiler will create directory out/ii_files/ for
9859 # template instantiation
9860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9861 $RM out/* && rmdir out
9862 cd ..
9863 $RM -r conftest
9864 $RM conftest*
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9869
9870
9871
9872
9873 hard_links="nottested"
9874 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9875 # do not overwrite the value of need_locks provided by the user
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9877 $as_echo_n "checking if we can lock with hard links... " >&6; }
9878 hard_links=yes
9879 $RM conftest*
9880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9881 touch conftest.a
9882 ln conftest.a conftest.b 2>&5 || hard_links=no
9883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9885 $as_echo "$hard_links" >&6; }
9886 if test "$hard_links" = no; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9888 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9889 need_locks=warn
9890 fi
9891 else
9892 need_locks=no
9893 fi
9894
9895
9896
9897
9898
9899
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9901 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9902
9903 runpath_var=
9904 allow_undefined_flag=
9905 always_export_symbols=no
9906 archive_cmds=
9907 archive_expsym_cmds=
9908 compiler_needs_object=no
9909 enable_shared_with_static_runtimes=no
9910 export_dynamic_flag_spec=
9911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9912 hardcode_automatic=no
9913 hardcode_direct=no
9914 hardcode_direct_absolute=no
9915 hardcode_libdir_flag_spec=
9916 hardcode_libdir_flag_spec_ld=
9917 hardcode_libdir_separator=
9918 hardcode_minus_L=no
9919 hardcode_shlibpath_var=unsupported
9920 inherit_rpath=no
9921 link_all_deplibs=unknown
9922 module_cmds=
9923 module_expsym_cmds=
9924 old_archive_from_new_cmds=
9925 old_archive_from_expsyms_cmds=
9926 thread_safe_flag_spec=
9927 whole_archive_flag_spec=
9928 # include_expsyms should be a list of space-separated symbols to be *always*
9929 # included in the symbol list
9930 include_expsyms=
9931 # exclude_expsyms can be an extended regexp of symbols to exclude
9932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9934 # as well as any symbol that contains `d'.
9935 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9937 # platforms (ab)use it in PIC code, but their linkers get confused if
9938 # the symbol is explicitly referenced. Since portable code cannot
9939 # rely on this symbol name, it's probably fine to never include it in
9940 # preloaded symbol tables.
9941 # Exclude shared library initialization/finalization symbols.
9942 extract_expsyms_cmds=
9943
9944 case $host_os in
9945 cygwin* | mingw* | pw32* | cegcc*)
9946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9947 # When not using gcc, we currently assume that we are using
9948 # Microsoft Visual C++.
9949 if test "$GCC" != yes; then
9950 with_gnu_ld=no
9951 fi
9952 ;;
9953 interix*)
9954 # we just hope/assume this is gcc and not c89 (= MSVC++)
9955 with_gnu_ld=yes
9956 ;;
9957 openbsd*)
9958 with_gnu_ld=no
9959 ;;
9960 esac
9961
9962 ld_shlibs=yes
9963
9964 # On some targets, GNU ld is compatible enough with the native linker
9965 # that we're better off using the native interface for both.
9966 lt_use_gnu_ld_interface=no
9967 if test "$with_gnu_ld" = yes; then
9968 case $host_os in
9969 aix*)
9970 # The AIX port of GNU ld has always aspired to compatibility
9971 # with the native linker. However, as the warning in the GNU ld
9972 # block says, versions before 2.19.5* couldn't really create working
9973 # shared libraries, regardless of the interface used.
9974 case `$LD -v 2>&1` in
9975 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9976 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9977 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9978 *)
9979 lt_use_gnu_ld_interface=yes
9980 ;;
9981 esac
9982 ;;
9983 *)
9984 lt_use_gnu_ld_interface=yes
9985 ;;
9986 esac
9987 fi
9988
9989 if test "$lt_use_gnu_ld_interface" = yes; then
9990 # If archive_cmds runs LD, not CC, wlarc should be empty
9991 wlarc='${wl}'
9992
9993 # Set some defaults for GNU ld with shared library support. These
9994 # are reset later if shared libraries are not supported. Putting them
9995 # here allows them to be overridden if necessary.
9996 runpath_var=LD_RUN_PATH
9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998 export_dynamic_flag_spec='${wl}--export-dynamic'
9999 # ancient GNU ld didn't support --whole-archive et. al.
10000 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10001 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10002 else
10003 whole_archive_flag_spec=
10004 fi
10005 supports_anon_versioning=no
10006 case `$LD -v 2>&1` in
10007 *GNU\ gold*) supports_anon_versioning=yes ;;
10008 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10011 *\ 2.11.*) ;; # other 2.11 versions
10012 *) supports_anon_versioning=yes ;;
10013 esac
10014
10015 # See if GNU ld supports shared libraries.
10016 case $host_os in
10017 aix[3-9]*)
10018 # On AIX/PPC, the GNU linker is very broken
10019 if test "$host_cpu" != ia64; then
10020 ld_shlibs=no
10021 cat <<_LT_EOF 1>&2
10022
10023 *** Warning: the GNU linker, at least up to release 2.19, is reported
10024 *** to be unable to reliably create shared libraries on AIX.
10025 *** Therefore, libtool is disabling shared libraries support. If you
10026 *** really care for shared libraries, you may want to install binutils
10027 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10028 *** You will then need to restart the configuration process.
10029
10030 _LT_EOF
10031 fi
10032 ;;
10033
10034 amigaos*)
10035 case $host_cpu in
10036 powerpc)
10037 # see comment about AmigaOS4 .so support
10038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 archive_expsym_cmds=''
10040 ;;
10041 m68k)
10042 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)'
10043 hardcode_libdir_flag_spec='-L$libdir'
10044 hardcode_minus_L=yes
10045 ;;
10046 esac
10047 ;;
10048
10049 beos*)
10050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10051 allow_undefined_flag=unsupported
10052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10053 # support --undefined. This deserves some investigation. FIXME
10054 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10055 else
10056 ld_shlibs=no
10057 fi
10058 ;;
10059
10060 cygwin* | mingw* | pw32* | cegcc*)
10061 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10062 # as there is no search path for DLLs.
10063 hardcode_libdir_flag_spec='-L$libdir'
10064 export_dynamic_flag_spec='${wl}--export-all-symbols'
10065 allow_undefined_flag=unsupported
10066 always_export_symbols=no
10067 enable_shared_with_static_runtimes=yes
10068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10069
10070 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10072 # If the export-symbols file already is a .def file (1st line
10073 # is EXPORTS), use it as is; otherwise, prepend...
10074 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10075 cp $export_symbols $output_objdir/$soname.def;
10076 else
10077 echo EXPORTS > $output_objdir/$soname.def;
10078 cat $export_symbols >> $output_objdir/$soname.def;
10079 fi~
10080 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10081 else
10082 ld_shlibs=no
10083 fi
10084 ;;
10085
10086 haiku*)
10087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088 link_all_deplibs=yes
10089 ;;
10090
10091 interix[3-9]*)
10092 hardcode_direct=no
10093 hardcode_shlibpath_var=no
10094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 export_dynamic_flag_spec='${wl}-E'
10096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097 # Instead, shared libraries are loaded at an image base (0x10000000 by
10098 # default) and relocated if they conflict, which is a slow very memory
10099 # consuming and fragmenting process. To avoid this, we pick a random,
10100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103 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'
10104 ;;
10105
10106 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10107 tmp_diet=no
10108 if test "$host_os" = linux-dietlibc; then
10109 case $cc_basename in
10110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10111 esac
10112 fi
10113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114 && test "$tmp_diet" = no
10115 then
10116 tmp_addflag=
10117 tmp_sharedflag='-shared'
10118 case $cc_basename,$host_cpu in
10119 pgcc*) # Portland Group C compiler
10120 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'
10121 tmp_addflag=' $pic_flag'
10122 ;;
10123 pgf77* | pgf90* | pgf95* | pgfortran*)
10124 # Portland Group f77 and f90 compilers
10125 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'
10126 tmp_addflag=' $pic_flag -Mnomain' ;;
10127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10128 tmp_addflag=' -i_dynamic' ;;
10129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10130 tmp_addflag=' -i_dynamic -nofor_main' ;;
10131 ifc* | ifort*) # Intel Fortran compiler
10132 tmp_addflag=' -nofor_main' ;;
10133 lf95*) # Lahey Fortran 8.1
10134 whole_archive_flag_spec=
10135 tmp_sharedflag='--shared' ;;
10136 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10137 tmp_sharedflag='-qmkshrobj'
10138 tmp_addflag= ;;
10139 nvcc*) # Cuda Compiler Driver 2.2
10140 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'
10141 compiler_needs_object=yes
10142 ;;
10143 esac
10144 case `$CC -V 2>&1 | sed 5q` in
10145 *Sun\ C*) # Sun C 5.9
10146 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'
10147 compiler_needs_object=yes
10148 tmp_sharedflag='-G' ;;
10149 *Sun\ F*) # Sun Fortran 8.3
10150 tmp_sharedflag='-G' ;;
10151 esac
10152 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153
10154 if test "x$supports_anon_versioning" = xyes; then
10155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10157 echo "local: *; };" >> $output_objdir/$libname.ver~
10158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10159 fi
10160
10161 case $cc_basename in
10162 xlf* | bgf* | bgxlf* | mpixlf*)
10163 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10164 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10165 hardcode_libdir_flag_spec=
10166 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10167 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10173 fi
10174 ;;
10175 esac
10176 else
10177 ld_shlibs=no
10178 fi
10179 ;;
10180
10181 netbsd*)
10182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10184 wlarc=
10185 else
10186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188 fi
10189 ;;
10190
10191 solaris*)
10192 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10193 ld_shlibs=no
10194 cat <<_LT_EOF 1>&2
10195
10196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10197 *** create shared libraries on Solaris systems. Therefore, libtool
10198 *** is disabling shared libraries support. We urge you to upgrade GNU
10199 *** binutils to release 2.9.1 or newer. Another option is to modify
10200 *** your PATH or compiler configuration so that the native linker is
10201 *** used, and then restart.
10202
10203 _LT_EOF
10204 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 else
10208 ld_shlibs=no
10209 fi
10210 ;;
10211
10212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10213 case `$LD -v 2>&1` in
10214 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10215 ld_shlibs=no
10216 cat <<_LT_EOF 1>&2
10217
10218 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10219 *** reliably create shared libraries on SCO systems. Therefore, libtool
10220 *** is disabling shared libraries support. We urge you to upgrade GNU
10221 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10222 *** your PATH or compiler configuration so that the native linker is
10223 *** used, and then restart.
10224
10225 _LT_EOF
10226 ;;
10227 *)
10228 # For security reasons, it is highly recommended that you always
10229 # use absolute paths for naming shared libraries, and exclude the
10230 # DT_RUNPATH tag from executables and libraries. But doing so
10231 # requires that you compile everything twice, which is a pain.
10232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236 else
10237 ld_shlibs=no
10238 fi
10239 ;;
10240 esac
10241 ;;
10242
10243 sunos4*)
10244 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10245 wlarc=
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 *)
10251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254 else
10255 ld_shlibs=no
10256 fi
10257 ;;
10258 esac
10259
10260 if test "$ld_shlibs" = no; then
10261 runpath_var=
10262 hardcode_libdir_flag_spec=
10263 export_dynamic_flag_spec=
10264 whole_archive_flag_spec=
10265 fi
10266 else
10267 # PORTME fill in a description of your system's linker (not GNU ld)
10268 case $host_os in
10269 aix3*)
10270 allow_undefined_flag=unsupported
10271 always_export_symbols=yes
10272 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'
10273 # Note: this linker hardcodes the directories in LIBPATH if there
10274 # are no directories specified by -L.
10275 hardcode_minus_L=yes
10276 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10277 # Neither direct hardcoding nor static linking is supported with a
10278 # broken collect2.
10279 hardcode_direct=unsupported
10280 fi
10281 ;;
10282
10283 aix[4-9]*)
10284 if test "$host_cpu" = ia64; then
10285 # On IA64, the linker does run time linking by default, so we don't
10286 # have to do anything special.
10287 aix_use_runtimelinking=no
10288 exp_sym_flag='-Bexport'
10289 no_entry_flag=""
10290 else
10291 # If we're using GNU nm, then we don't want the "-C" option.
10292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10293 # Also, AIX nm treats weak defined symbols like other global
10294 # defined symbols, whereas GNU nm marks them as "W".
10295 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10296 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'
10297 else
10298 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'
10299 fi
10300 aix_use_runtimelinking=no
10301
10302 # Test if we are trying to use run time linking or normal
10303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10304 # need to do runtime linking.
10305 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10306 for ld_flag in $LDFLAGS; do
10307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10308 aix_use_runtimelinking=yes
10309 break
10310 fi
10311 done
10312 ;;
10313 esac
10314
10315 exp_sym_flag='-bexport'
10316 no_entry_flag='-bnoentry'
10317 fi
10318
10319 # When large executables or shared objects are built, AIX ld can
10320 # have problems creating the table of contents. If linking a library
10321 # or program results in "error TOC overflow" add -mminimal-toc to
10322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10324
10325 archive_cmds=''
10326 hardcode_direct=yes
10327 hardcode_direct_absolute=yes
10328 hardcode_libdir_separator=':'
10329 link_all_deplibs=yes
10330 file_list_spec='${wl}-f,'
10331
10332 if test "$GCC" = yes; then
10333 case $host_os in aix4.[012]|aix4.[012].*)
10334 # We only want to do this on AIX 4.2 and lower, the check
10335 # below for broken collect2 doesn't work under 4.3+
10336 collect2name=`${CC} -print-prog-name=collect2`
10337 if test -f "$collect2name" &&
10338 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10339 then
10340 # We have reworked collect2
10341 :
10342 else
10343 # We have old collect2
10344 hardcode_direct=unsupported
10345 # It fails to find uninstalled libraries when the uninstalled
10346 # path is not listed in the libpath. Setting hardcode_minus_L
10347 # to unsupported forces relinking
10348 hardcode_minus_L=yes
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_libdir_separator=
10351 fi
10352 ;;
10353 esac
10354 shared_flag='-shared'
10355 if test "$aix_use_runtimelinking" = yes; then
10356 shared_flag="$shared_flag "'${wl}-G'
10357 fi
10358 else
10359 # not using gcc
10360 if test "$host_cpu" = ia64; then
10361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10362 # chokes on -Wl,-G. The following line is correct:
10363 shared_flag='-G'
10364 else
10365 if test "$aix_use_runtimelinking" = yes; then
10366 shared_flag='${wl}-G'
10367 else
10368 shared_flag='${wl}-bM:SRE'
10369 fi
10370 fi
10371 fi
10372
10373 export_dynamic_flag_spec='${wl}-bexpall'
10374 # It seems that -bexpall does not export symbols beginning with
10375 # underscore (_), so it is better to generate a list of symbols to export.
10376 always_export_symbols=yes
10377 if test "$aix_use_runtimelinking" = yes; then
10378 # Warning - without using the other runtime loading flags (-brtl),
10379 # -berok will link without error, but may produce a broken library.
10380 allow_undefined_flag='-berok'
10381 # Determine the default libpath from the value encoded in an
10382 # empty executable.
10383 if test x$gcc_no_link = xyes; then
10384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10385 fi
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388
10389 int
10390 main ()
10391 {
10392
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398
10399 lt_aix_libpath_sed='
10400 /Import File Strings/,/^$/ {
10401 /^0/ {
10402 s/^0 *\(.*\)$/\1/
10403 p
10404 }
10405 }'
10406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407 # Check for a 64-bit object if we didn't find anything.
10408 if test -z "$aix_libpath"; then
10409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 fi
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10415
10416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10417 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"
10418 else
10419 if test "$host_cpu" = ia64; then
10420 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10421 allow_undefined_flag="-z nodefs"
10422 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"
10423 else
10424 # Determine the default libpath from the value encoded in an
10425 # empty executable.
10426 if test x$gcc_no_link = xyes; then
10427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10428 fi
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 int
10433 main ()
10434 {
10435
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441
10442 lt_aix_libpath_sed='
10443 /Import File Strings/,/^$/ {
10444 /^0/ {
10445 s/^0 *\(.*\)$/\1/
10446 p
10447 }
10448 }'
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450 # Check for a 64-bit object if we didn't find anything.
10451 if test -z "$aix_libpath"; then
10452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10453 fi
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10458
10459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 # Warning - without using the other run time loading flags,
10461 # -berok will link without error, but may produce a broken library.
10462 no_undefined_flag=' ${wl}-bernotok'
10463 allow_undefined_flag=' ${wl}-berok'
10464 if test "$with_gnu_ld" = yes; then
10465 # We only use this code for GNU lds that support --whole-archive.
10466 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10467 else
10468 # Exported symbols can be pulled into shared objects from archives
10469 whole_archive_flag_spec='$convenience'
10470 fi
10471 archive_cmds_need_lc=yes
10472 # This is similar to how AIX traditionally builds its shared libraries.
10473 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'
10474 fi
10475 fi
10476 ;;
10477
10478 amigaos*)
10479 case $host_cpu in
10480 powerpc)
10481 # see comment about AmigaOS4 .so support
10482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10483 archive_expsym_cmds=''
10484 ;;
10485 m68k)
10486 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)'
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_minus_L=yes
10489 ;;
10490 esac
10491 ;;
10492
10493 bsdi[45]*)
10494 export_dynamic_flag_spec=-rdynamic
10495 ;;
10496
10497 cygwin* | mingw* | pw32* | cegcc*)
10498 # When not using gcc, we currently assume that we are using
10499 # Microsoft Visual C++.
10500 # hardcode_libdir_flag_spec is actually meaningless, as there is
10501 # no search path for DLLs.
10502 hardcode_libdir_flag_spec=' '
10503 allow_undefined_flag=unsupported
10504 # Tell ltmain to make .lib files, not .a files.
10505 libext=lib
10506 # Tell ltmain to make .dll files, not .so files.
10507 shrext_cmds=".dll"
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510 # The linker will automatically build a .lib file if we build a DLL.
10511 old_archive_from_new_cmds='true'
10512 # FIXME: Should let the user specify the lib program.
10513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514 fix_srcfile_path='`cygpath -w "$srcfile"`'
10515 enable_shared_with_static_runtimes=yes
10516 ;;
10517
10518 darwin* | rhapsody*)
10519
10520
10521 archive_cmds_need_lc=no
10522 hardcode_direct=no
10523 hardcode_automatic=yes
10524 hardcode_shlibpath_var=unsupported
10525 if test "$lt_cv_ld_force_load" = "yes"; then
10526 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\"`'
10527 else
10528 whole_archive_flag_spec=''
10529 fi
10530 link_all_deplibs=yes
10531 allow_undefined_flag="$_lt_dar_allow_undefined"
10532 case $cc_basename in
10533 ifort*) _lt_dar_can_shared=yes ;;
10534 *) _lt_dar_can_shared=$GCC ;;
10535 esac
10536 if test "$_lt_dar_can_shared" = "yes"; then
10537 output_verbose_link_cmd=func_echo_all
10538 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10539 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10540 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}"
10541 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}"
10542
10543 else
10544 ld_shlibs=no
10545 fi
10546
10547 ;;
10548
10549 dgux*)
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_shlibpath_var=no
10553 ;;
10554
10555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10556 # support. Future versions do this automatically, but an explicit c++rt0.o
10557 # does not break anything, and helps significantly (at the cost of a little
10558 # extra space).
10559 freebsd2.2*)
10560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10567 freebsd2.*)
10568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_direct=yes
10570 hardcode_minus_L=yes
10571 hardcode_shlibpath_var=no
10572 ;;
10573
10574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10575 freebsd* | dragonfly*)
10576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_direct=yes
10579 hardcode_shlibpath_var=no
10580 ;;
10581
10582 hpux9*)
10583 if test "$GCC" = yes; then
10584 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'
10585 else
10586 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'
10587 fi
10588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 hardcode_direct=yes
10591
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596 ;;
10597
10598 hpux10*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604 if test "$with_gnu_ld" = no; then
10605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_flag_spec_ld='+b $libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_direct=yes
10609 hardcode_direct_absolute=yes
10610 export_dynamic_flag_spec='${wl}-E'
10611 # hardcode_minus_L: Not really in the search PATH,
10612 # but as the default location of the library.
10613 hardcode_minus_L=yes
10614 fi
10615 ;;
10616
10617 hpux11*)
10618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10619 case $host_cpu in
10620 hppa*64*)
10621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 ia64*)
10624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10625 ;;
10626 *)
10627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628 ;;
10629 esac
10630 else
10631 case $host_cpu in
10632 hppa*64*)
10633 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 ;;
10635 ia64*)
10636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10637 ;;
10638 *)
10639
10640 # Older versions of the 11.00 compiler do not understand -b yet
10641 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10643 $as_echo_n "checking if $CC understands -b... " >&6; }
10644 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 lt_cv_prog_compiler__b=no
10648 save_LDFLAGS="$LDFLAGS"
10649 LDFLAGS="$LDFLAGS -b"
10650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10652 # The linker can only warn and ignore the option if not recognized
10653 # So say no if there are warnings
10654 if test -s conftest.err; then
10655 # Append any errors to the config.log.
10656 cat conftest.err 1>&5
10657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10659 if diff conftest.exp conftest.er2 >/dev/null; then
10660 lt_cv_prog_compiler__b=yes
10661 fi
10662 else
10663 lt_cv_prog_compiler__b=yes
10664 fi
10665 fi
10666 $RM -r conftest*
10667 LDFLAGS="$save_LDFLAGS"
10668
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10671 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10672
10673 if test x"$lt_cv_prog_compiler__b" = xyes; then
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675 else
10676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677 fi
10678
10679 ;;
10680 esac
10681 fi
10682 if test "$with_gnu_ld" = no; then
10683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684 hardcode_libdir_separator=:
10685
10686 case $host_cpu in
10687 hppa*64*|ia64*)
10688 hardcode_direct=no
10689 hardcode_shlibpath_var=no
10690 ;;
10691 *)
10692 hardcode_direct=yes
10693 hardcode_direct_absolute=yes
10694 export_dynamic_flag_spec='${wl}-E'
10695
10696 # hardcode_minus_L: Not really in the search PATH,
10697 # but as the default location of the library.
10698 hardcode_minus_L=yes
10699 ;;
10700 esac
10701 fi
10702 ;;
10703
10704 irix5* | irix6* | nonstopux*)
10705 if test "$GCC" = yes; then
10706 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'
10707 # Try to use the -exported_symbol ld option, if it does not
10708 # work, assume that -exports_file does not work either and
10709 # implicitly export all symbols.
10710 save_LDFLAGS="$LDFLAGS"
10711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10712 if test x$gcc_no_link = xyes; then
10713 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10714 fi
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 int foo(void) {}
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 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'
10721
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 LDFLAGS="$save_LDFLAGS"
10726 else
10727 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'
10728 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'
10729 fi
10730 archive_cmds_need_lc='no'
10731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10732 hardcode_libdir_separator=:
10733 inherit_rpath=yes
10734 link_all_deplibs=yes
10735 ;;
10736
10737 netbsd*)
10738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10740 else
10741 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10742 fi
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_direct=yes
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 newsos6)
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_direct=yes
10751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10752 hardcode_libdir_separator=:
10753 hardcode_shlibpath_var=no
10754 ;;
10755
10756 *nto* | *qnx*)
10757 ;;
10758
10759 openbsd*)
10760 if test -f /usr/libexec/ld.so; then
10761 hardcode_direct=yes
10762 hardcode_shlibpath_var=no
10763 hardcode_direct_absolute=yes
10764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10768 export_dynamic_flag_spec='${wl}-E'
10769 else
10770 case $host_os in
10771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_libdir_flag_spec='-R$libdir'
10774 ;;
10775 *)
10776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10778 ;;
10779 esac
10780 fi
10781 else
10782 ld_shlibs=no
10783 fi
10784 ;;
10785
10786 os2*)
10787 hardcode_libdir_flag_spec='-L$libdir'
10788 hardcode_minus_L=yes
10789 allow_undefined_flag=unsupported
10790 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'
10791 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10792 ;;
10793
10794 osf3*)
10795 if test "$GCC" = yes; then
10796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10797 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'
10798 else
10799 allow_undefined_flag=' -expect_unresolved \*'
10800 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'
10801 fi
10802 archive_cmds_need_lc='no'
10803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10804 hardcode_libdir_separator=:
10805 ;;
10806
10807 osf4* | osf5*) # as osf3* with the addition of -msym flag
10808 if test "$GCC" = yes; then
10809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10810 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'
10811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812 else
10813 allow_undefined_flag=' -expect_unresolved \*'
10814 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'
10815 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~
10816 $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'
10817
10818 # Both c and cxx compiler support -rpath directly
10819 hardcode_libdir_flag_spec='-rpath $libdir'
10820 fi
10821 archive_cmds_need_lc='no'
10822 hardcode_libdir_separator=:
10823 ;;
10824
10825 solaris*)
10826 no_undefined_flag=' -z defs'
10827 if test "$GCC" = yes; then
10828 wlarc='${wl}'
10829 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10832 else
10833 case `$CC -V 2>&1` in
10834 *"Compilers 5.0"*)
10835 wlarc=''
10836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10839 ;;
10840 *)
10841 wlarc='${wl}'
10842 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10844 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10845 ;;
10846 esac
10847 fi
10848 hardcode_libdir_flag_spec='-R$libdir'
10849 hardcode_shlibpath_var=no
10850 case $host_os in
10851 solaris2.[0-5] | solaris2.[0-5].*) ;;
10852 *)
10853 # The compiler driver will combine and reorder linker options,
10854 # but understands `-z linker_flag'. GCC discards it without `$wl',
10855 # but is careful enough not to reorder.
10856 # Supported since Solaris 2.6 (maybe 2.5.1?)
10857 if test "$GCC" = yes; then
10858 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10859 else
10860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10861 fi
10862 ;;
10863 esac
10864 link_all_deplibs=yes
10865 ;;
10866
10867 sunos4*)
10868 if test "x$host_vendor" = xsequent; then
10869 # Use $CC to link under sequent, because it throws in some extra .o
10870 # files that make .init and .fini sections work.
10871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10872 else
10873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10874 fi
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_direct=yes
10877 hardcode_minus_L=yes
10878 hardcode_shlibpath_var=no
10879 ;;
10880
10881 sysv4)
10882 case $host_vendor in
10883 sni)
10884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885 hardcode_direct=yes # is this really true???
10886 ;;
10887 siemens)
10888 ## LD is ld it makes a PLAMLIB
10889 ## CC just makes a GrossModule.
10890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10891 reload_cmds='$CC -r -o $output$reload_objs'
10892 hardcode_direct=no
10893 ;;
10894 motorola)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10897 ;;
10898 esac
10899 runpath_var='LD_RUN_PATH'
10900 hardcode_shlibpath_var=no
10901 ;;
10902
10903 sysv4.3*)
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_shlibpath_var=no
10906 export_dynamic_flag_spec='-Bexport'
10907 ;;
10908
10909 sysv4*MP*)
10910 if test -d /usr/nec; then
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_shlibpath_var=no
10913 runpath_var=LD_RUN_PATH
10914 hardcode_runpath_var=yes
10915 ld_shlibs=yes
10916 fi
10917 ;;
10918
10919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10920 no_undefined_flag='${wl}-z,text'
10921 archive_cmds_need_lc=no
10922 hardcode_shlibpath_var=no
10923 runpath_var='LD_RUN_PATH'
10924
10925 if test "$GCC" = yes; then
10926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 else
10929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931 fi
10932 ;;
10933
10934 sysv5* | sco3.2v5* | sco5v6*)
10935 # Note: We can NOT use -z defs as we might desire, because we do not
10936 # link with -lc, and that would cause any symbols used from libc to
10937 # always be unresolved, which means just about no library would
10938 # ever link correctly. If we're not using GNU ld we use -z text
10939 # though, which does catch some bad symbols but isn't as heavy-handed
10940 # as -z defs.
10941 no_undefined_flag='${wl}-z,text'
10942 allow_undefined_flag='${wl}-z,nodefs'
10943 archive_cmds_need_lc=no
10944 hardcode_shlibpath_var=no
10945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10946 hardcode_libdir_separator=':'
10947 link_all_deplibs=yes
10948 export_dynamic_flag_spec='${wl}-Bexport'
10949 runpath_var='LD_RUN_PATH'
10950
10951 if test "$GCC" = yes; then
10952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 else
10955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 fi
10958 ;;
10959
10960 uts4*)
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 hardcode_shlibpath_var=no
10964 ;;
10965
10966 *)
10967 ld_shlibs=no
10968 ;;
10969 esac
10970
10971 if test x$host_vendor = xsni; then
10972 case $host in
10973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10974 export_dynamic_flag_spec='${wl}-Blargedynsym'
10975 ;;
10976 esac
10977 fi
10978 fi
10979
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10981 $as_echo "$ld_shlibs" >&6; }
10982 test "$ld_shlibs" = no && can_build_shared=no
10983
10984 with_gnu_ld=$with_gnu_ld
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000 #
11001 # Do we need to explicitly link libc?
11002 #
11003 case "x$archive_cmds_need_lc" in
11004 x|xyes)
11005 # Assume -lc should be added
11006 archive_cmds_need_lc=yes
11007
11008 if test "$enable_shared" = yes && test "$GCC" = yes; then
11009 case $archive_cmds in
11010 *'~'*)
11011 # FIXME: we may have to deal with multi-command sequences.
11012 ;;
11013 '$CC '*)
11014 # Test whether the compiler implicitly links with -lc since on some
11015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11016 # to ld, don't add -lc before -lgcc.
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11019 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 $RM conftest*
11023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11024
11025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11026 (eval $ac_compile) 2>&5
11027 ac_status=$?
11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; } 2>conftest.err; then
11030 soname=conftest
11031 lib=conftest
11032 libobjs=conftest.$ac_objext
11033 deplibs=
11034 wl=$lt_prog_compiler_wl
11035 pic_flag=$lt_prog_compiler_pic
11036 compiler_flags=-v
11037 linker_flags=-v
11038 verstring=
11039 output_objdir=.
11040 libname=conftest
11041 lt_save_allow_undefined_flag=$allow_undefined_flag
11042 allow_undefined_flag=
11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11044 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; }
11048 then
11049 lt_cv_archive_cmds_need_lc=no
11050 else
11051 lt_cv_archive_cmds_need_lc=yes
11052 fi
11053 allow_undefined_flag=$lt_save_allow_undefined_flag
11054 else
11055 cat conftest.err 1>&5
11056 fi
11057 $RM conftest*
11058
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11061 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11062 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11063 ;;
11064 esac
11065 fi
11066 ;;
11067 esac
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11226 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11227
11228 if test "$GCC" = yes; then
11229 case $host_os in
11230 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11231 *) lt_awk_arg="/^libraries:/" ;;
11232 esac
11233 case $host_os in
11234 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11235 *) lt_sed_strip_eq="s,=/,/,g" ;;
11236 esac
11237 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11238 case $lt_search_path_spec in
11239 *\;*)
11240 # if the path contains ";" then we assume it to be the separator
11241 # otherwise default to the standard path separator (i.e. ":") - it is
11242 # assumed that no part of a normal pathname contains ";" but that should
11243 # okay in the real world where ";" in dirpaths is itself problematic.
11244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11245 ;;
11246 *)
11247 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11248 ;;
11249 esac
11250 # Ok, now we have the path, separated by spaces, we can step through it
11251 # and add multilib dir if necessary.
11252 lt_tmp_lt_search_path_spec=
11253 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11254 for lt_sys_path in $lt_search_path_spec; do
11255 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11257 else
11258 test -d "$lt_sys_path" && \
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11260 fi
11261 done
11262 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11263 BEGIN {RS=" "; FS="/|\n";} {
11264 lt_foo="";
11265 lt_count=0;
11266 for (lt_i = NF; lt_i > 0; lt_i--) {
11267 if ($lt_i != "" && $lt_i != ".") {
11268 if ($lt_i == "..") {
11269 lt_count++;
11270 } else {
11271 if (lt_count == 0) {
11272 lt_foo="/" $lt_i lt_foo;
11273 } else {
11274 lt_count--;
11275 }
11276 }
11277 }
11278 }
11279 if (lt_foo != "") { lt_freq[lt_foo]++; }
11280 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11281 }'`
11282 # AWK program above erroneously prepends '/' to C:/dos/paths
11283 # for these hosts.
11284 case $host_os in
11285 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11286 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11287 esac
11288 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11289 else
11290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11291 fi
11292 library_names_spec=
11293 libname_spec='lib$name'
11294 soname_spec=
11295 shrext_cmds=".so"
11296 postinstall_cmds=
11297 postuninstall_cmds=
11298 finish_cmds=
11299 finish_eval=
11300 shlibpath_var=
11301 shlibpath_overrides_runpath=unknown
11302 version_type=none
11303 dynamic_linker="$host_os ld.so"
11304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11305 need_lib_prefix=unknown
11306 hardcode_into_libs=no
11307
11308 # when you set need_version to no, make sure it does not cause -set_version
11309 # flags to be left without arguments
11310 need_version=unknown
11311
11312 case $host_os in
11313 aix3*)
11314 version_type=linux
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11316 shlibpath_var=LIBPATH
11317
11318 # AIX 3 has no versioning support, so we append a major version to the name.
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 ;;
11321
11322 aix[4-9]*)
11323 version_type=linux
11324 need_lib_prefix=no
11325 need_version=no
11326 hardcode_into_libs=yes
11327 if test "$host_cpu" = ia64; then
11328 # AIX 5 supports IA64
11329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 else
11332 # With GCC up to 2.95.x, collect2 would create an import file
11333 # for dependence libraries. The import file would start with
11334 # the line `#! .'. This would cause the generated library to
11335 # depend on `.', always an invalid library. This was fixed in
11336 # development snapshots of GCC prior to 3.0.
11337 case $host_os in
11338 aix4 | aix4.[01] | aix4.[01].*)
11339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11340 echo ' yes '
11341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11342 :
11343 else
11344 can_build_shared=no
11345 fi
11346 ;;
11347 esac
11348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11349 # soname into executable. Probably we can add versioning support to
11350 # collect2, so additional links can be useful in future.
11351 if test "$aix_use_runtimelinking" = yes; then
11352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11353 # instead of lib<name>.a to let people know that these are not
11354 # typical AIX shared libraries.
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 else
11357 # We preserve .a as extension for shared libraries through AIX4.2
11358 # and later when we are not doing run time linking.
11359 library_names_spec='${libname}${release}.a $libname.a'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 fi
11362 shlibpath_var=LIBPATH
11363 fi
11364 ;;
11365
11366 amigaos*)
11367 case $host_cpu in
11368 powerpc)
11369 # Since July 2007 AmigaOS4 officially supports .so libraries.
11370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 ;;
11373 m68k)
11374 library_names_spec='$libname.ixlibrary $libname.a'
11375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11376 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'
11377 ;;
11378 esac
11379 ;;
11380
11381 beos*)
11382 library_names_spec='${libname}${shared_ext}'
11383 dynamic_linker="$host_os ld.so"
11384 shlibpath_var=LIBRARY_PATH
11385 ;;
11386
11387 bsdi[45]*)
11388 version_type=linux
11389 need_version=no
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11396 # the default ld.so.conf also contains /usr/contrib/lib and
11397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11398 # libtool to hard-code these into programs
11399 ;;
11400
11401 cygwin* | mingw* | pw32* | cegcc*)
11402 version_type=windows
11403 shrext_cmds=".dll"
11404 need_version=no
11405 need_lib_prefix=no
11406
11407 case $GCC,$host_os in
11408 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11409 library_names_spec='$libname.dll.a'
11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11411 postinstall_cmds='base_file=`basename \${file}`~
11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11413 dldir=$destdir/`dirname \$dlpath`~
11414 test -d \$dldir || mkdir -p \$dldir~
11415 $install_prog $dir/$dlname \$dldir/$dlname~
11416 chmod a+x \$dldir/$dlname~
11417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 fi'
11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11421 dlpath=$dir/\$dldll~
11422 $RM \$dlpath'
11423 shlibpath_overrides_runpath=yes
11424
11425 case $host_os in
11426 cygwin*)
11427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429
11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11431 ;;
11432 mingw* | cegcc*)
11433 # MinGW DLLs use traditional 'lib' prefix
11434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 ;;
11436 pw32*)
11437 # pw32 DLLs use 'pw' prefix rather than 'lib'
11438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 ;;
11440 esac
11441 ;;
11442
11443 *)
11444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11445 ;;
11446 esac
11447 dynamic_linker='Win32 ld.exe'
11448 # FIXME: first we should search . and the directory the executable is in
11449 shlibpath_var=PATH
11450 ;;
11451
11452 darwin* | rhapsody*)
11453 dynamic_linker="$host_os dyld"
11454 version_type=darwin
11455 need_lib_prefix=no
11456 need_version=no
11457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11458 soname_spec='${libname}${release}${major}$shared_ext'
11459 shlibpath_overrides_runpath=yes
11460 shlibpath_var=DYLD_LIBRARY_PATH
11461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11462
11463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11465 ;;
11466
11467 dgux*)
11468 version_type=linux
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 ;;
11475
11476 freebsd* | dragonfly*)
11477 # DragonFly does not have aout. When/if they implement a new
11478 # versioning mechanism, adjust this.
11479 if test -x /usr/bin/objformat; then
11480 objformat=`/usr/bin/objformat`
11481 else
11482 case $host_os in
11483 freebsd[23].*) objformat=aout ;;
11484 *) objformat=elf ;;
11485 esac
11486 fi
11487 version_type=freebsd-$objformat
11488 case $version_type in
11489 freebsd-elf*)
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11491 need_version=no
11492 need_lib_prefix=no
11493 ;;
11494 freebsd-*)
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11496 need_version=yes
11497 ;;
11498 esac
11499 shlibpath_var=LD_LIBRARY_PATH
11500 case $host_os in
11501 freebsd2.*)
11502 shlibpath_overrides_runpath=yes
11503 ;;
11504 freebsd3.[01]* | freebsdelf3.[01]*)
11505 shlibpath_overrides_runpath=yes
11506 hardcode_into_libs=yes
11507 ;;
11508 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11509 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11510 shlibpath_overrides_runpath=no
11511 hardcode_into_libs=yes
11512 ;;
11513 *) # from 4.6 on, and DragonFly
11514 shlibpath_overrides_runpath=yes
11515 hardcode_into_libs=yes
11516 ;;
11517 esac
11518 ;;
11519
11520 gnu*)
11521 version_type=linux
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 hardcode_into_libs=yes
11528 ;;
11529
11530 haiku*)
11531 version_type=linux
11532 need_lib_prefix=no
11533 need_version=no
11534 dynamic_linker="$host_os runtime_loader"
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11540 hardcode_into_libs=yes
11541 ;;
11542
11543 hpux9* | hpux10* | hpux11*)
11544 # Give a soname corresponding to the major version so that dld.sl refuses to
11545 # link against other versions.
11546 version_type=sunos
11547 need_lib_prefix=no
11548 need_version=no
11549 case $host_cpu in
11550 ia64*)
11551 shrext_cmds='.so'
11552 hardcode_into_libs=yes
11553 dynamic_linker="$host_os dld.so"
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 if test "X$HPUX_IA64_MODE" = X32; then
11559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11560 else
11561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 fi
11563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11564 ;;
11565 hppa*64*)
11566 shrext_cmds='.sl'
11567 hardcode_into_libs=yes
11568 dynamic_linker="$host_os dld.sl"
11569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11575 ;;
11576 *)
11577 shrext_cmds='.sl'
11578 dynamic_linker="$host_os dld.sl"
11579 shlibpath_var=SHLIB_PATH
11580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 ;;
11584 esac
11585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11586 postinstall_cmds='chmod 555 $lib'
11587 # or fails outright, so override atomically:
11588 install_override_mode=555
11589 ;;
11590
11591 interix[3-9]*)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 hardcode_into_libs=yes
11601 ;;
11602
11603 irix5* | irix6* | nonstopux*)
11604 case $host_os in
11605 nonstopux*) version_type=nonstopux ;;
11606 *)
11607 if test "$lt_cv_prog_gnu_ld" = yes; then
11608 version_type=linux
11609 else
11610 version_type=irix
11611 fi ;;
11612 esac
11613 need_lib_prefix=no
11614 need_version=no
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11617 case $host_os in
11618 irix5* | nonstopux*)
11619 libsuff= shlibsuff=
11620 ;;
11621 *)
11622 case $LD in # libtool.m4 will add one of these switches to LD
11623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11624 libsuff= shlibsuff= libmagic=32-bit;;
11625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11626 libsuff=32 shlibsuff=N32 libmagic=N32;;
11627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11629 *) libsuff= shlibsuff= libmagic=never-match;;
11630 esac
11631 ;;
11632 esac
11633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11634 shlibpath_overrides_runpath=no
11635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11637 hardcode_into_libs=yes
11638 ;;
11639
11640 # No shared lib support for Linux oldld, aout, or coff.
11641 linux*oldld* | linux*aout* | linux*coff*)
11642 dynamic_linker=no
11643 ;;
11644
11645 # This must be Linux ELF.
11646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11647 version_type=linux
11648 need_lib_prefix=no
11649 need_version=no
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=no
11655
11656 # Some binutils ld are patched to set DT_RUNPATH
11657 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 lt_cv_shlibpath_overrides_runpath=no
11661 save_LDFLAGS=$LDFLAGS
11662 save_libdir=$libdir
11663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11665 if test x$gcc_no_link = xyes; then
11666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11667 fi
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670
11671 int
11672 main ()
11673 {
11674
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11681 lt_cv_shlibpath_overrides_runpath=yes
11682 fi
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LDFLAGS=$save_LDFLAGS
11687 libdir=$save_libdir
11688
11689 fi
11690
11691 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11692
11693 # This implies no fast_install, which is unacceptable.
11694 # Some rework will be needed to allow for fast_install
11695 # before this can be enabled.
11696 hardcode_into_libs=yes
11697
11698 # Append ld.so.conf contents to the search path
11699 if test -f /etc/ld.so.conf; then
11700 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' ' '`
11701 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11702 fi
11703
11704 # We used to test for /lib/ld.so.1 and disable shared libraries on
11705 # powerpc, because MkLinux only supported shared libraries with the
11706 # GNU dynamic linker. Since this was broken with cross compilers,
11707 # most powerpc-linux boxes support dynamic linking these days and
11708 # people can always --disable-shared, the test was removed, and we
11709 # assume the GNU/Linux dynamic linker is in use.
11710 dynamic_linker='GNU/Linux ld.so'
11711 ;;
11712
11713 netbsd*)
11714 version_type=sunos
11715 need_lib_prefix=no
11716 need_version=no
11717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 dynamic_linker='NetBSD (a.out) ld.so'
11721 else
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 dynamic_linker='NetBSD ld.elf_so'
11725 fi
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11729 ;;
11730
11731 newsos6)
11732 version_type=linux
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=yes
11736 ;;
11737
11738 *nto* | *qnx*)
11739 version_type=qnx
11740 need_lib_prefix=no
11741 need_version=no
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=no
11746 hardcode_into_libs=yes
11747 dynamic_linker='ldqnx.so'
11748 ;;
11749
11750 openbsd*)
11751 version_type=sunos
11752 sys_lib_dlsearch_path_spec="/usr/lib"
11753 need_lib_prefix=no
11754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11755 case $host_os in
11756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11757 *) need_version=no ;;
11758 esac
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11763 case $host_os in
11764 openbsd2.[89] | openbsd2.[89].*)
11765 shlibpath_overrides_runpath=no
11766 ;;
11767 *)
11768 shlibpath_overrides_runpath=yes
11769 ;;
11770 esac
11771 else
11772 shlibpath_overrides_runpath=yes
11773 fi
11774 ;;
11775
11776 os2*)
11777 libname_spec='$name'
11778 shrext_cmds=".dll"
11779 need_lib_prefix=no
11780 library_names_spec='$libname${shared_ext} $libname.a'
11781 dynamic_linker='OS/2 ld.exe'
11782 shlibpath_var=LIBPATH
11783 ;;
11784
11785 osf3* | osf4* | osf5*)
11786 version_type=osf
11787 need_lib_prefix=no
11788 need_version=no
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11794 ;;
11795
11796 rdos*)
11797 dynamic_linker=no
11798 ;;
11799
11800 solaris*)
11801 version_type=linux
11802 need_lib_prefix=no
11803 need_version=no
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 soname_spec='${libname}${release}${shared_ext}$major'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=yes
11808 hardcode_into_libs=yes
11809 # ldd complains unless libraries are executable
11810 postinstall_cmds='chmod +x $lib'
11811 ;;
11812
11813 sunos4*)
11814 version_type=sunos
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819 if test "$with_gnu_ld" = yes; then
11820 need_lib_prefix=no
11821 fi
11822 need_version=yes
11823 ;;
11824
11825 sysv4 | sysv4.3*)
11826 version_type=linux
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 soname_spec='${libname}${release}${shared_ext}$major'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 case $host_vendor in
11831 sni)
11832 shlibpath_overrides_runpath=no
11833 need_lib_prefix=no
11834 runpath_var=LD_RUN_PATH
11835 ;;
11836 siemens)
11837 need_lib_prefix=no
11838 ;;
11839 motorola)
11840 need_lib_prefix=no
11841 need_version=no
11842 shlibpath_overrides_runpath=no
11843 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11844 ;;
11845 esac
11846 ;;
11847
11848 sysv4*MP*)
11849 if test -d /usr/nec ;then
11850 version_type=linux
11851 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11852 soname_spec='$libname${shared_ext}.$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 fi
11855 ;;
11856
11857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11858 version_type=freebsd-elf
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 hardcode_into_libs=yes
11866 if test "$with_gnu_ld" = yes; then
11867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11868 else
11869 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11870 case $host_os in
11871 sco3.2v5*)
11872 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11873 ;;
11874 esac
11875 fi
11876 sys_lib_dlsearch_path_spec='/usr/lib'
11877 ;;
11878
11879 tpf*)
11880 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11881 version_type=linux
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=no
11887 hardcode_into_libs=yes
11888 ;;
11889
11890 uts4*)
11891 version_type=linux
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 shlibpath_var=LD_LIBRARY_PATH
11895 ;;
11896
11897 *)
11898 dynamic_linker=no
11899 ;;
11900 esac
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11902 $as_echo "$dynamic_linker" >&6; }
11903 test "$dynamic_linker" = no && can_build_shared=no
11904
11905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11906 if test "$GCC" = yes; then
11907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11908 fi
11909
11910 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11911 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11912 fi
11913 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11914 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11915 fi
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12009 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12010 hardcode_action=
12011 if test -n "$hardcode_libdir_flag_spec" ||
12012 test -n "$runpath_var" ||
12013 test "X$hardcode_automatic" = "Xyes" ; then
12014
12015 # We can hardcode non-existent directories.
12016 if test "$hardcode_direct" != no &&
12017 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12018 # have to relink, otherwise we might link with an installed library
12019 # when we should be linking with a yet-to-be-installed one
12020 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12021 test "$hardcode_minus_L" != no; then
12022 # Linking always hardcodes the temporary library directory.
12023 hardcode_action=relink
12024 else
12025 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12026 hardcode_action=immediate
12027 fi
12028 else
12029 # We cannot hardcode anything, or else we can only hardcode existing
12030 # directories.
12031 hardcode_action=unsupported
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12034 $as_echo "$hardcode_action" >&6; }
12035
12036 if test "$hardcode_action" = relink ||
12037 test "$inherit_rpath" = yes; then
12038 # Fast installation is not supported
12039 enable_fast_install=no
12040 elif test "$shlibpath_overrides_runpath" = yes ||
12041 test "$enable_shared" = no; then
12042 # Fast installation is not necessary
12043 enable_fast_install=needless
12044 fi
12045
12046
12047
12048
12049
12050
12051 if test "x$enable_dlopen" != xyes; then
12052 enable_dlopen=unknown
12053 enable_dlopen_self=unknown
12054 enable_dlopen_self_static=unknown
12055 else
12056 lt_cv_dlopen=no
12057 lt_cv_dlopen_libs=
12058
12059 case $host_os in
12060 beos*)
12061 lt_cv_dlopen="load_add_on"
12062 lt_cv_dlopen_libs=
12063 lt_cv_dlopen_self=yes
12064 ;;
12065
12066 mingw* | pw32* | cegcc*)
12067 lt_cv_dlopen="LoadLibrary"
12068 lt_cv_dlopen_libs=
12069 ;;
12070
12071 cygwin*)
12072 lt_cv_dlopen="dlopen"
12073 lt_cv_dlopen_libs=
12074 ;;
12075
12076 darwin*)
12077 # if libdl is installed we need to link against it
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12080 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-ldl $LIBS"
12085 if test x$gcc_no_link = xyes; then
12086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12087 fi
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 char dlopen ();
12098 int
12099 main ()
12100 {
12101 return dlopen ();
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_lib_dl_dlopen=yes
12108 else
12109 ac_cv_lib_dl_dlopen=no
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LIBS=$ac_check_lib_save_LIBS
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12116 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12117 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12119 else
12120
12121 lt_cv_dlopen="dyld"
12122 lt_cv_dlopen_libs=
12123 lt_cv_dlopen_self=yes
12124
12125 fi
12126
12127 ;;
12128
12129 *)
12130 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12131 if test "x$ac_cv_func_shl_load" = x""yes; then :
12132 lt_cv_dlopen="shl_load"
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12135 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12136 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-ldld $LIBS"
12141 if test x$gcc_no_link = xyes; then
12142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12143 fi
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char shl_load ();
12154 int
12155 main ()
12156 {
12157 return shl_load ();
12158 ;
12159 return 0;
12160 }
12161 _ACEOF
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 ac_cv_lib_dld_shl_load=yes
12164 else
12165 ac_cv_lib_dld_shl_load=no
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12172 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12173 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12175 else
12176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12177 if test "x$ac_cv_func_dlopen" = x""yes; then :
12178 lt_cv_dlopen="dlopen"
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 ac_check_lib_save_LIBS=$LIBS
12186 LIBS="-ldl $LIBS"
12187 if test x$gcc_no_link = xyes; then
12188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12189 fi
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192
12193 /* Override any GCC internal prototype to avoid an error.
12194 Use char because int might match the return type of a GCC
12195 builtin and then its argument prototype would still apply. */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 char dlopen ();
12200 int
12201 main ()
12202 {
12203 return dlopen ();
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 if ac_fn_c_try_link "$LINENO"; then :
12209 ac_cv_lib_dl_dlopen=yes
12210 else
12211 ac_cv_lib_dl_dlopen=no
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12223 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12224 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lsvld $LIBS"
12229 if test x$gcc_no_link = xyes; then
12230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12231 fi
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char dlopen ();
12242 int
12243 main ()
12244 {
12245 return dlopen ();
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 ac_cv_lib_svld_dlopen=yes
12252 else
12253 ac_cv_lib_svld_dlopen=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12260 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12261 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12265 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12266 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-ldld $LIBS"
12271 if test x$gcc_no_link = xyes; then
12272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12273 fi
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12276
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char dld_link ();
12284 int
12285 main ()
12286 {
12287 return dld_link ();
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_dld_dld_link=yes
12294 else
12295 ac_cv_lib_dld_dld_link=no
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12303 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12304 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12305 fi
12306
12307
12308 fi
12309
12310
12311 fi
12312
12313
12314 fi
12315
12316
12317 fi
12318
12319
12320 fi
12321
12322 ;;
12323 esac
12324
12325 if test "x$lt_cv_dlopen" != xno; then
12326 enable_dlopen=yes
12327 else
12328 enable_dlopen=no
12329 fi
12330
12331 case $lt_cv_dlopen in
12332 dlopen)
12333 save_CPPFLAGS="$CPPFLAGS"
12334 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12335
12336 save_LDFLAGS="$LDFLAGS"
12337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12338
12339 save_LIBS="$LIBS"
12340 LIBS="$lt_cv_dlopen_libs $LIBS"
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12344 if test "${lt_cv_dlopen_self+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test "$cross_compiling" = yes; then :
12348 lt_cv_dlopen_self=cross
12349 else
12350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12351 lt_status=$lt_dlunknown
12352 cat > conftest.$ac_ext <<_LT_EOF
12353 #line 12353 "configure"
12354 #include "confdefs.h"
12355
12356 #if HAVE_DLFCN_H
12357 #include <dlfcn.h>
12358 #endif
12359
12360 #include <stdio.h>
12361
12362 #ifdef RTLD_GLOBAL
12363 # define LT_DLGLOBAL RTLD_GLOBAL
12364 #else
12365 # ifdef DL_GLOBAL
12366 # define LT_DLGLOBAL DL_GLOBAL
12367 # else
12368 # define LT_DLGLOBAL 0
12369 # endif
12370 #endif
12371
12372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12373 find out it does not work in some platform. */
12374 #ifndef LT_DLLAZY_OR_NOW
12375 # ifdef RTLD_LAZY
12376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12377 # else
12378 # ifdef DL_LAZY
12379 # define LT_DLLAZY_OR_NOW DL_LAZY
12380 # else
12381 # ifdef RTLD_NOW
12382 # define LT_DLLAZY_OR_NOW RTLD_NOW
12383 # else
12384 # ifdef DL_NOW
12385 # define LT_DLLAZY_OR_NOW DL_NOW
12386 # else
12387 # define LT_DLLAZY_OR_NOW 0
12388 # endif
12389 # endif
12390 # endif
12391 # endif
12392 #endif
12393
12394 /* When -fvisbility=hidden is used, assume the code has been annotated
12395 correspondingly for the symbols needed. */
12396 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12397 void fnord () __attribute__((visibility("default")));
12398 #endif
12399
12400 void fnord () { int i=42; }
12401 int main ()
12402 {
12403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12404 int status = $lt_dlunknown;
12405
12406 if (self)
12407 {
12408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12409 else
12410 {
12411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12412 else puts (dlerror ());
12413 }
12414 /* dlclose (self); */
12415 }
12416 else
12417 puts (dlerror ());
12418
12419 return status;
12420 }
12421 _LT_EOF
12422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12423 (eval $ac_link) 2>&5
12424 ac_status=$?
12425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12427 (./conftest; exit; ) >&5 2>/dev/null
12428 lt_status=$?
12429 case x$lt_status in
12430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12433 esac
12434 else :
12435 # compilation failed
12436 lt_cv_dlopen_self=no
12437 fi
12438 fi
12439 rm -fr conftest*
12440
12441
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12444 $as_echo "$lt_cv_dlopen_self" >&6; }
12445
12446 if test "x$lt_cv_dlopen_self" = xyes; then
12447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12450 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 if test "$cross_compiling" = yes; then :
12454 lt_cv_dlopen_self_static=cross
12455 else
12456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457 lt_status=$lt_dlunknown
12458 cat > conftest.$ac_ext <<_LT_EOF
12459 #line 12459 "configure"
12460 #include "confdefs.h"
12461
12462 #if HAVE_DLFCN_H
12463 #include <dlfcn.h>
12464 #endif
12465
12466 #include <stdio.h>
12467
12468 #ifdef RTLD_GLOBAL
12469 # define LT_DLGLOBAL RTLD_GLOBAL
12470 #else
12471 # ifdef DL_GLOBAL
12472 # define LT_DLGLOBAL DL_GLOBAL
12473 # else
12474 # define LT_DLGLOBAL 0
12475 # endif
12476 #endif
12477
12478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479 find out it does not work in some platform. */
12480 #ifndef LT_DLLAZY_OR_NOW
12481 # ifdef RTLD_LAZY
12482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12483 # else
12484 # ifdef DL_LAZY
12485 # define LT_DLLAZY_OR_NOW DL_LAZY
12486 # else
12487 # ifdef RTLD_NOW
12488 # define LT_DLLAZY_OR_NOW RTLD_NOW
12489 # else
12490 # ifdef DL_NOW
12491 # define LT_DLLAZY_OR_NOW DL_NOW
12492 # else
12493 # define LT_DLLAZY_OR_NOW 0
12494 # endif
12495 # endif
12496 # endif
12497 # endif
12498 #endif
12499
12500 /* When -fvisbility=hidden is used, assume the code has been annotated
12501 correspondingly for the symbols needed. */
12502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12503 void fnord () __attribute__((visibility("default")));
12504 #endif
12505
12506 void fnord () { int i=42; }
12507 int main ()
12508 {
12509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12510 int status = $lt_dlunknown;
12511
12512 if (self)
12513 {
12514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12515 else
12516 {
12517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12518 else puts (dlerror ());
12519 }
12520 /* dlclose (self); */
12521 }
12522 else
12523 puts (dlerror ());
12524
12525 return status;
12526 }
12527 _LT_EOF
12528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12529 (eval $ac_link) 2>&5
12530 ac_status=$?
12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12533 (./conftest; exit; ) >&5 2>/dev/null
12534 lt_status=$?
12535 case x$lt_status in
12536 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12537 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12538 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12539 esac
12540 else :
12541 # compilation failed
12542 lt_cv_dlopen_self_static=no
12543 fi
12544 fi
12545 rm -fr conftest*
12546
12547
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12551 fi
12552
12553 CPPFLAGS="$save_CPPFLAGS"
12554 LDFLAGS="$save_LDFLAGS"
12555 LIBS="$save_LIBS"
12556 ;;
12557 esac
12558
12559 case $lt_cv_dlopen_self in
12560 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12561 *) enable_dlopen_self=unknown ;;
12562 esac
12563
12564 case $lt_cv_dlopen_self_static in
12565 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12566 *) enable_dlopen_self_static=unknown ;;
12567 esac
12568 fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 striplib=
12587 old_striplib=
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12591 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12592 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12595 else
12596 # FIXME - insert some real tests, host_os isn't really good enough
12597 case $host_os in
12598 darwin*)
12599 if test -n "$STRIP" ; then
12600 striplib="$STRIP -x"
12601 old_striplib="$STRIP -S"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608 ;;
12609 *)
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612 ;;
12613 esac
12614 fi
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627 # Report which library types will actually be built
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12631 $as_echo "$can_build_shared" >&6; }
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12634 $as_echo_n "checking whether to build shared libraries... " >&6; }
12635 test "$can_build_shared" = "no" && enable_shared=no
12636
12637 # On AIX, shared libraries and static libraries use the same namespace, and
12638 # are all built from PIC.
12639 case $host_os in
12640 aix3*)
12641 test "$enable_shared" = yes && enable_static=no
12642 if test -n "$RANLIB"; then
12643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12644 postinstall_cmds='$RANLIB $lib'
12645 fi
12646 ;;
12647
12648 aix[4-9]*)
12649 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12650 test "$enable_shared" = yes && enable_static=no
12651 fi
12652 ;;
12653 esac
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12655 $as_echo "$enable_shared" >&6; }
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12658 $as_echo_n "checking whether to build static libraries... " >&6; }
12659 # Make sure either enable_shared or enable_static is yes.
12660 test "$enable_shared" = yes || enable_static=yes
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12662 $as_echo "$enable_static" >&6; }
12663
12664
12665
12666
12667 fi
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674 CC="$lt_save_CC"
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688 ac_config_commands="$ac_config_commands libtool"
12689
12690
12691
12692
12693 # Only expand once:
12694
12695
12696
12697
12698
12699 case $host in
12700 *-cygwin* | *-mingw*)
12701 # 'host' will be top-level target in the case of a target lib,
12702 # we must compare to with_cross_host to decide if this is a native
12703 # or cross-compiler and select where to install dlls appropriately.
12704 if test -n "$with_cross_host" &&
12705 test x"$with_cross_host" != x"no"; then
12706 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12707 else
12708 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12709 fi
12710 ;;
12711 *)
12712 lt_host_flags=
12713 ;;
12714 esac
12715
12716
12717
12718
12719
12720 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12721
12722 # We need gfortran to compile parts of the library
12723 #AC_PROG_FC(gfortran)
12724 FC="$GFORTRAN"
12725 ac_ext=${ac_fc_srcext-f}
12726 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12727 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12728 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12729 if test -n "$ac_tool_prefix"; then
12730 for ac_prog in gfortran
12731 do
12732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if test "${ac_cv_prog_FC+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -n "$FC"; then
12740 ac_cv_prog_FC="$FC" # Let the user override the test.
12741 else
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12744 do
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for ac_exec_ext in '' $ac_executable_extensions; do
12748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12749 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 break 2
12752 fi
12753 done
12754 done
12755 IFS=$as_save_IFS
12756
12757 fi
12758 fi
12759 FC=$ac_cv_prog_FC
12760 if test -n "$FC"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12762 $as_echo "$FC" >&6; }
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767
12768
12769 test -n "$FC" && break
12770 done
12771 fi
12772 if test -z "$FC"; then
12773 ac_ct_FC=$FC
12774 for ac_prog in gfortran
12775 do
12776 # Extract the first word of "$ac_prog", so it can be a program name with args.
12777 set dummy $ac_prog; ac_word=$2
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779 $as_echo_n "checking for $ac_word... " >&6; }
12780 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 if test -n "$ac_ct_FC"; then
12784 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12785 else
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12788 do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12793 ac_cv_prog_ac_ct_FC="$ac_prog"
12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795 break 2
12796 fi
12797 done
12798 done
12799 IFS=$as_save_IFS
12800
12801 fi
12802 fi
12803 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12804 if test -n "$ac_ct_FC"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12806 $as_echo "$ac_ct_FC" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813 test -n "$ac_ct_FC" && break
12814 done
12815
12816 if test "x$ac_ct_FC" = x; then
12817 FC=""
12818 else
12819 case $cross_compiling:$ac_tool_warned in
12820 yes:)
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12823 ac_tool_warned=yes ;;
12824 esac
12825 FC=$ac_ct_FC
12826 fi
12827 fi
12828
12829
12830 # Provide some information about the compiler.
12831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12832 set X $ac_compile
12833 ac_compiler=$2
12834 for ac_option in --version -v -V -qversion; do
12835 { { ac_try="$ac_compiler $ac_option >&5"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839 esac
12840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12841 $as_echo "$ac_try_echo"; } >&5
12842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12843 ac_status=$?
12844 if test -s conftest.err; then
12845 sed '10a\
12846 ... rest of stderr output deleted ...
12847 10q' conftest.err >conftest.er1
12848 cat conftest.er1 >&5
12849 rm -f conftest.er1 conftest.err
12850 fi
12851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852 test $ac_status = 0; }
12853 done
12854 rm -f a.out
12855
12856 # If we don't use `.F' as extension, the preprocessor is not run on the
12857 # input file. (Note that this only needs to work for GNU compilers.)
12858 ac_save_ext=$ac_ext
12859 ac_ext=F
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12861 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12862 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 cat > conftest.$ac_ext <<_ACEOF
12866 program main
12867 #ifndef __GNUC__
12868 choke me
12869 #endif
12870
12871 end
12872 _ACEOF
12873 if ac_fn_fc_try_compile "$LINENO"; then :
12874 ac_compiler_gnu=yes
12875 else
12876 ac_compiler_gnu=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12880
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12883 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12884 ac_ext=$ac_save_ext
12885 ac_test_FCFLAGS=${FCFLAGS+set}
12886 ac_save_FCFLAGS=$FCFLAGS
12887 FCFLAGS=
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12889 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12890 if test "${ac_cv_prog_fc_g+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 FCFLAGS=-g
12894 cat > conftest.$ac_ext <<_ACEOF
12895 program main
12896
12897 end
12898 _ACEOF
12899 if ac_fn_fc_try_compile "$LINENO"; then :
12900 ac_cv_prog_fc_g=yes
12901 else
12902 ac_cv_prog_fc_g=no
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12908 $as_echo "$ac_cv_prog_fc_g" >&6; }
12909 if test "$ac_test_FCFLAGS" = set; then
12910 FCFLAGS=$ac_save_FCFLAGS
12911 elif test $ac_cv_prog_fc_g = yes; then
12912 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12913 FCFLAGS="-g -O2"
12914 else
12915 FCFLAGS="-g"
12916 fi
12917 else
12918 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12919 FCFLAGS="-O2"
12920 else
12921 FCFLAGS=
12922 fi
12923 fi
12924
12925 ac_ext=c
12926 ac_cpp='$CPP $CPPFLAGS'
12927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930
12931 ac_ext=${ac_fc_srcext-f}
12932 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12933 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12935
12936
12937 if test -z "$FC" || test "X$FC" = "Xno"; then
12938 _lt_disable_FC=yes
12939 fi
12940
12941 archive_cmds_need_lc_FC=no
12942 allow_undefined_flag_FC=
12943 always_export_symbols_FC=no
12944 archive_expsym_cmds_FC=
12945 export_dynamic_flag_spec_FC=
12946 hardcode_direct_FC=no
12947 hardcode_direct_absolute_FC=no
12948 hardcode_libdir_flag_spec_FC=
12949 hardcode_libdir_flag_spec_ld_FC=
12950 hardcode_libdir_separator_FC=
12951 hardcode_minus_L_FC=no
12952 hardcode_automatic_FC=no
12953 inherit_rpath_FC=no
12954 module_cmds_FC=
12955 module_expsym_cmds_FC=
12956 link_all_deplibs_FC=unknown
12957 old_archive_cmds_FC=$old_archive_cmds
12958 reload_flag_FC=$reload_flag
12959 reload_cmds_FC=$reload_cmds
12960 no_undefined_flag_FC=
12961 whole_archive_flag_spec_FC=
12962 enable_shared_with_static_runtimes_FC=no
12963
12964 # Source file extension for fc test sources.
12965 ac_ext=${ac_fc_srcext-f}
12966
12967 # Object file extension for compiled fc test sources.
12968 objext=o
12969 objext_FC=$objext
12970
12971 # No sense in running all these tests if we already determined that
12972 # the FC compiler isn't working. Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_disable_FC" != yes; then
12976 # Code to be used in simple compile tests
12977 lt_simple_compile_test_code="\
12978 subroutine t
12979 return
12980 end
12981 "
12982
12983 # Code to be used in simple link tests
12984 lt_simple_link_test_code="\
12985 program t
12986 end
12987 "
12988
12989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12990
12991
12992
12993
12994
12995
12996 # If no C compiler was specified, use CC.
12997 LTCC=${LTCC-"$CC"}
12998
12999 # If no C compiler flags were specified, use CFLAGS.
13000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13001
13002 # Allow CC to be a program name with arguments.
13003 compiler=$CC
13004
13005
13006 # save warnings/boilerplate of simple test code
13007 ac_outfile=conftest.$ac_objext
13008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13010 _lt_compiler_boilerplate=`cat conftest.err`
13011 $RM conftest*
13012
13013 ac_outfile=conftest.$ac_objext
13014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13016 _lt_linker_boilerplate=`cat conftest.err`
13017 $RM -r conftest*
13018
13019
13020 # Allow CC to be a program name with arguments.
13021 lt_save_CC="$CC"
13022 lt_save_GCC=$GCC
13023 CC=${FC-"f95"}
13024 compiler=$CC
13025 GCC=$ac_cv_fc_compiler_gnu
13026
13027 compiler_FC=$CC
13028 for cc_temp in $compiler""; do
13029 case $cc_temp in
13030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13032 \-*) ;;
13033 *) break;;
13034 esac
13035 done
13036 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13037
13038
13039 if test -n "$compiler"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13041 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13043 $as_echo "$can_build_shared" >&6; }
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13046 $as_echo_n "checking whether to build shared libraries... " >&6; }
13047 test "$can_build_shared" = "no" && enable_shared=no
13048
13049 # On AIX, shared libraries and static libraries use the same namespace, and
13050 # are all built from PIC.
13051 case $host_os in
13052 aix3*)
13053 test "$enable_shared" = yes && enable_static=no
13054 if test -n "$RANLIB"; then
13055 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13056 postinstall_cmds='$RANLIB $lib'
13057 fi
13058 ;;
13059 aix[4-9]*)
13060 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13061 test "$enable_shared" = yes && enable_static=no
13062 fi
13063 ;;
13064 esac
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13066 $as_echo "$enable_shared" >&6; }
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13069 $as_echo_n "checking whether to build static libraries... " >&6; }
13070 # Make sure either enable_shared or enable_static is yes.
13071 test "$enable_shared" = yes || enable_static=yes
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13073 $as_echo "$enable_static" >&6; }
13074
13075 GCC_FC="$ac_cv_fc_compiler_gnu"
13076 LD_FC="$LD"
13077
13078 ## CAVEAT EMPTOR:
13079 ## There is no encapsulation within the following macros, do not change
13080 ## the running order or otherwise move them around unless you know exactly
13081 ## what you are doing...
13082 # Dependencies to place before and after the object being linked:
13083 predep_objects_FC=
13084 postdep_objects_FC=
13085 predeps_FC=
13086 postdeps_FC=
13087 compiler_lib_search_path_FC=
13088
13089 cat > conftest.$ac_ext <<_LT_EOF
13090 subroutine foo
13091 implicit none
13092 integer a
13093 a=0
13094 return
13095 end
13096 _LT_EOF
13097
13098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13099 (eval $ac_compile) 2>&5
13100 ac_status=$?
13101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102 test $ac_status = 0; }; then
13103 # Parse the compiler output and extract the necessary
13104 # objects, libraries and library flags.
13105
13106 # Sentinel used to keep track of whether or not we are before
13107 # the conftest object file.
13108 pre_test_object_deps_done=no
13109
13110 for p in `eval "$output_verbose_link_cmd"`; do
13111 case $p in
13112
13113 -L* | -R* | -l*)
13114 # Some compilers place space between "-{L,R}" and the path.
13115 # Remove the space.
13116 if test $p = "-L" ||
13117 test $p = "-R"; then
13118 prev=$p
13119 continue
13120 else
13121 prev=
13122 fi
13123
13124 if test "$pre_test_object_deps_done" = no; then
13125 case $p in
13126 -L* | -R*)
13127 # Internal compiler library paths should come after those
13128 # provided the user. The postdeps already come after the
13129 # user supplied libs so there is no need to process them.
13130 if test -z "$compiler_lib_search_path_FC"; then
13131 compiler_lib_search_path_FC="${prev}${p}"
13132 else
13133 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13134 fi
13135 ;;
13136 # The "-l" case would never come before the object being
13137 # linked, so don't bother handling this case.
13138 esac
13139 else
13140 if test -z "$postdeps_FC"; then
13141 postdeps_FC="${prev}${p}"
13142 else
13143 postdeps_FC="${postdeps_FC} ${prev}${p}"
13144 fi
13145 fi
13146 ;;
13147
13148 *.$objext)
13149 # This assumes that the test object file only shows up
13150 # once in the compiler output.
13151 if test "$p" = "conftest.$objext"; then
13152 pre_test_object_deps_done=yes
13153 continue
13154 fi
13155
13156 if test "$pre_test_object_deps_done" = no; then
13157 if test -z "$predep_objects_FC"; then
13158 predep_objects_FC="$p"
13159 else
13160 predep_objects_FC="$predep_objects_FC $p"
13161 fi
13162 else
13163 if test -z "$postdep_objects_FC"; then
13164 postdep_objects_FC="$p"
13165 else
13166 postdep_objects_FC="$postdep_objects_FC $p"
13167 fi
13168 fi
13169 ;;
13170
13171 *) ;; # Ignore the rest.
13172
13173 esac
13174 done
13175
13176 # Clean up.
13177 rm -f a.out a.exe
13178 else
13179 echo "libtool.m4: error: problem compiling FC test program"
13180 fi
13181
13182 $RM -f confest.$objext
13183
13184 # PORTME: override above test on systems where it is broken
13185
13186
13187 case " $postdeps_FC " in
13188 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13189 esac
13190 compiler_lib_search_dirs_FC=
13191 if test -n "${compiler_lib_search_path_FC}"; then
13192 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13193 fi
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225 lt_prog_compiler_wl_FC=
13226 lt_prog_compiler_pic_FC=
13227 lt_prog_compiler_static_FC=
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13230 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13231
13232 if test "$GCC" = yes; then
13233 lt_prog_compiler_wl_FC='-Wl,'
13234 lt_prog_compiler_static_FC='-static'
13235
13236 case $host_os in
13237 aix*)
13238 # All AIX code is PIC.
13239 if test "$host_cpu" = ia64; then
13240 # AIX 5 now supports IA64 processor
13241 lt_prog_compiler_static_FC='-Bstatic'
13242 fi
13243 lt_prog_compiler_pic_FC='-fPIC'
13244 ;;
13245
13246 amigaos*)
13247 case $host_cpu in
13248 powerpc)
13249 # see comment about AmigaOS4 .so support
13250 lt_prog_compiler_pic_FC='-fPIC'
13251 ;;
13252 m68k)
13253 # FIXME: we need at least 68020 code to build shared libraries, but
13254 # adding the `-m68020' flag to GCC prevents building anything better,
13255 # like `-m68040'.
13256 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13257 ;;
13258 esac
13259 ;;
13260
13261 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13262 # PIC is the default for these OSes.
13263 ;;
13264
13265 mingw* | cygwin* | pw32* | os2* | cegcc*)
13266 # This hack is so that the source file can tell whether it is being
13267 # built for inclusion in a dll (and should export symbols for example).
13268 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13269 # (--disable-auto-import) libraries
13270 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13271 ;;
13272
13273 darwin* | rhapsody*)
13274 # PIC is the default on this platform
13275 # Common symbols not allowed in MH_DYLIB files
13276 lt_prog_compiler_pic_FC='-fno-common'
13277 ;;
13278
13279 haiku*)
13280 # PIC is the default for Haiku.
13281 # The "-static" flag exists, but is broken.
13282 lt_prog_compiler_static_FC=
13283 ;;
13284
13285 hpux*)
13286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13288 # sets the default TLS model and affects inlining.
13289 case $host_cpu in
13290 hppa*64*)
13291 # +Z the default
13292 ;;
13293 *)
13294 lt_prog_compiler_pic_FC='-fPIC'
13295 ;;
13296 esac
13297 ;;
13298
13299 interix[3-9]*)
13300 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13301 # Instead, we relocate shared libraries at runtime.
13302 ;;
13303
13304 msdosdjgpp*)
13305 # Just because we use GCC doesn't mean we suddenly get shared libraries
13306 # on systems that don't support them.
13307 lt_prog_compiler_can_build_shared_FC=no
13308 enable_shared=no
13309 ;;
13310
13311 *nto* | *qnx*)
13312 # QNX uses GNU C++, but need to define -shared option too, otherwise
13313 # it will coredump.
13314 lt_prog_compiler_pic_FC='-fPIC -shared'
13315 ;;
13316
13317 sysv4*MP*)
13318 if test -d /usr/nec; then
13319 lt_prog_compiler_pic_FC=-Kconform_pic
13320 fi
13321 ;;
13322
13323 *)
13324 lt_prog_compiler_pic_FC='-fPIC'
13325 ;;
13326 esac
13327
13328 case $cc_basename in
13329 nvcc*) # Cuda Compiler Driver 2.2
13330 lt_prog_compiler_wl_FC='-Xlinker '
13331 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13332 ;;
13333 esac
13334 else
13335 # PORTME Check for flag to pass linker flags through the system compiler.
13336 case $host_os in
13337 aix*)
13338 lt_prog_compiler_wl_FC='-Wl,'
13339 if test "$host_cpu" = ia64; then
13340 # AIX 5 now supports IA64 processor
13341 lt_prog_compiler_static_FC='-Bstatic'
13342 else
13343 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13344 fi
13345 ;;
13346
13347 mingw* | cygwin* | pw32* | os2* | cegcc*)
13348 # This hack is so that the source file can tell whether it is being
13349 # built for inclusion in a dll (and should export symbols for example).
13350 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13351 ;;
13352
13353 hpux9* | hpux10* | hpux11*)
13354 lt_prog_compiler_wl_FC='-Wl,'
13355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13356 # not for PA HP-UX.
13357 case $host_cpu in
13358 hppa*64*|ia64*)
13359 # +Z the default
13360 ;;
13361 *)
13362 lt_prog_compiler_pic_FC='+Z'
13363 ;;
13364 esac
13365 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13366 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13367 ;;
13368
13369 irix5* | irix6* | nonstopux*)
13370 lt_prog_compiler_wl_FC='-Wl,'
13371 # PIC (with -KPIC) is the default.
13372 lt_prog_compiler_static_FC='-non_shared'
13373 ;;
13374
13375 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13376 case $cc_basename in
13377 # old Intel for x86_64 which still supported -KPIC.
13378 ecc*)
13379 lt_prog_compiler_wl_FC='-Wl,'
13380 lt_prog_compiler_pic_FC='-KPIC'
13381 lt_prog_compiler_static_FC='-static'
13382 ;;
13383 # icc used to be incompatible with GCC.
13384 # ICC 10 doesn't accept -KPIC any more.
13385 icc* | ifort*)
13386 lt_prog_compiler_wl_FC='-Wl,'
13387 lt_prog_compiler_pic_FC='-fPIC'
13388 lt_prog_compiler_static_FC='-static'
13389 ;;
13390 # Lahey Fortran 8.1.
13391 lf95*)
13392 lt_prog_compiler_wl_FC='-Wl,'
13393 lt_prog_compiler_pic_FC='--shared'
13394 lt_prog_compiler_static_FC='--static'
13395 ;;
13396 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13397 # Portland Group compilers (*not* the Pentium gcc compiler,
13398 # which looks to be a dead project)
13399 lt_prog_compiler_wl_FC='-Wl,'
13400 lt_prog_compiler_pic_FC='-fpic'
13401 lt_prog_compiler_static_FC='-Bstatic'
13402 ;;
13403 ccc*)
13404 lt_prog_compiler_wl_FC='-Wl,'
13405 # All Alpha code is PIC.
13406 lt_prog_compiler_static_FC='-non_shared'
13407 ;;
13408 xl* | bgxl* | bgf* | mpixl*)
13409 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13410 lt_prog_compiler_wl_FC='-Wl,'
13411 lt_prog_compiler_pic_FC='-qpic'
13412 lt_prog_compiler_static_FC='-qstaticlink'
13413 ;;
13414 *)
13415 case `$CC -V 2>&1 | sed 5q` in
13416 *Sun\ F* | *Sun*Fortran*)
13417 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13418 lt_prog_compiler_pic_FC='-KPIC'
13419 lt_prog_compiler_static_FC='-Bstatic'
13420 lt_prog_compiler_wl_FC=''
13421 ;;
13422 *Sun\ C*)
13423 # Sun C 5.9
13424 lt_prog_compiler_pic_FC='-KPIC'
13425 lt_prog_compiler_static_FC='-Bstatic'
13426 lt_prog_compiler_wl_FC='-Wl,'
13427 ;;
13428 esac
13429 ;;
13430 esac
13431 ;;
13432
13433 newsos6)
13434 lt_prog_compiler_pic_FC='-KPIC'
13435 lt_prog_compiler_static_FC='-Bstatic'
13436 ;;
13437
13438 *nto* | *qnx*)
13439 # QNX uses GNU C++, but need to define -shared option too, otherwise
13440 # it will coredump.
13441 lt_prog_compiler_pic_FC='-fPIC -shared'
13442 ;;
13443
13444 osf3* | osf4* | osf5*)
13445 lt_prog_compiler_wl_FC='-Wl,'
13446 # All OSF/1 code is PIC.
13447 lt_prog_compiler_static_FC='-non_shared'
13448 ;;
13449
13450 rdos*)
13451 lt_prog_compiler_static_FC='-non_shared'
13452 ;;
13453
13454 solaris*)
13455 lt_prog_compiler_pic_FC='-KPIC'
13456 lt_prog_compiler_static_FC='-Bstatic'
13457 case $cc_basename in
13458 f77* | f90* | f95*)
13459 lt_prog_compiler_wl_FC='-Qoption ld ';;
13460 *)
13461 lt_prog_compiler_wl_FC='-Wl,';;
13462 esac
13463 ;;
13464
13465 sunos4*)
13466 lt_prog_compiler_wl_FC='-Qoption ld '
13467 lt_prog_compiler_pic_FC='-PIC'
13468 lt_prog_compiler_static_FC='-Bstatic'
13469 ;;
13470
13471 sysv4 | sysv4.2uw2* | sysv4.3*)
13472 lt_prog_compiler_wl_FC='-Wl,'
13473 lt_prog_compiler_pic_FC='-KPIC'
13474 lt_prog_compiler_static_FC='-Bstatic'
13475 ;;
13476
13477 sysv4*MP*)
13478 if test -d /usr/nec ;then
13479 lt_prog_compiler_pic_FC='-Kconform_pic'
13480 lt_prog_compiler_static_FC='-Bstatic'
13481 fi
13482 ;;
13483
13484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485 lt_prog_compiler_wl_FC='-Wl,'
13486 lt_prog_compiler_pic_FC='-KPIC'
13487 lt_prog_compiler_static_FC='-Bstatic'
13488 ;;
13489
13490 unicos*)
13491 lt_prog_compiler_wl_FC='-Wl,'
13492 lt_prog_compiler_can_build_shared_FC=no
13493 ;;
13494
13495 uts4*)
13496 lt_prog_compiler_pic_FC='-pic'
13497 lt_prog_compiler_static_FC='-Bstatic'
13498 ;;
13499
13500 *)
13501 lt_prog_compiler_can_build_shared_FC=no
13502 ;;
13503 esac
13504 fi
13505
13506 case $host_os in
13507 # For platforms which do not support PIC, -DPIC is meaningless:
13508 *djgpp*)
13509 lt_prog_compiler_pic_FC=
13510 ;;
13511 *)
13512 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13513 ;;
13514 esac
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13516 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13517
13518
13519
13520 #
13521 # Check to make sure the PIC flag actually works.
13522 #
13523 if test -n "$lt_prog_compiler_pic_FC"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13526 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 lt_cv_prog_compiler_pic_works_FC=no
13530 ac_outfile=conftest.$ac_objext
13531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13532 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13533 # Insert the option either (1) after the last *FLAGS variable, or
13534 # (2) before a word containing "conftest.", or (3) at the end.
13535 # Note that $ac_compile itself does not contain backslashes and begins
13536 # with a dollar sign (not a hyphen), so the echo should work correctly.
13537 # The option is referenced via a variable to avoid confusing sed.
13538 lt_compile=`echo "$ac_compile" | $SED \
13539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13541 -e 's:$: $lt_compiler_flag:'`
13542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13543 (eval "$lt_compile" 2>conftest.err)
13544 ac_status=$?
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 if (exit $ac_status) && test -s "$ac_outfile"; then
13548 # The compiler can only warn and ignore the option if not recognized
13549 # So say no if there are warnings other than the usual output.
13550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13553 lt_cv_prog_compiler_pic_works_FC=yes
13554 fi
13555 fi
13556 $RM conftest*
13557
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13560 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13561
13562 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13563 case $lt_prog_compiler_pic_FC in
13564 "" | " "*) ;;
13565 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13566 esac
13567 else
13568 lt_prog_compiler_pic_FC=
13569 lt_prog_compiler_can_build_shared_FC=no
13570 fi
13571
13572 fi
13573
13574
13575
13576 #
13577 # Check to make sure the static flag actually works.
13578 #
13579 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13581 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13582 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 lt_cv_prog_compiler_static_works_FC=no
13586 save_LDFLAGS="$LDFLAGS"
13587 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13588 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13589 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13590 # The linker can only warn and ignore the option if not recognized
13591 # So say no if there are warnings
13592 if test -s conftest.err; then
13593 # Append any errors to the config.log.
13594 cat conftest.err 1>&5
13595 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13597 if diff conftest.exp conftest.er2 >/dev/null; then
13598 lt_cv_prog_compiler_static_works_FC=yes
13599 fi
13600 else
13601 lt_cv_prog_compiler_static_works_FC=yes
13602 fi
13603 fi
13604 $RM -r conftest*
13605 LDFLAGS="$save_LDFLAGS"
13606
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13609 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13610
13611 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13612 :
13613 else
13614 lt_prog_compiler_static_FC=
13615 fi
13616
13617
13618
13619
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13621 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13622 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 lt_cv_prog_compiler_c_o_FC=no
13626 $RM -r conftest 2>/dev/null
13627 mkdir conftest
13628 cd conftest
13629 mkdir out
13630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13631
13632 lt_compiler_flag="-o out/conftest2.$ac_objext"
13633 # Insert the option either (1) after the last *FLAGS variable, or
13634 # (2) before a word containing "conftest.", or (3) at the end.
13635 # Note that $ac_compile itself does not contain backslashes and begins
13636 # with a dollar sign (not a hyphen), so the echo should work correctly.
13637 lt_compile=`echo "$ac_compile" | $SED \
13638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13640 -e 's:$: $lt_compiler_flag:'`
13641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13642 (eval "$lt_compile" 2>out/conftest.err)
13643 ac_status=$?
13644 cat out/conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13647 then
13648 # The compiler can only warn and ignore the option if not recognized
13649 # So say no if there are warnings
13650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13653 lt_cv_prog_compiler_c_o_FC=yes
13654 fi
13655 fi
13656 chmod u+w . 2>&5
13657 $RM conftest*
13658 # SGI C++ compiler will create directory out/ii_files/ for
13659 # template instantiation
13660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13661 $RM out/* && rmdir out
13662 cd ..
13663 $RM -r conftest
13664 $RM conftest*
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13668 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13669
13670
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13674 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 lt_cv_prog_compiler_c_o_FC=no
13678 $RM -r conftest 2>/dev/null
13679 mkdir conftest
13680 cd conftest
13681 mkdir out
13682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13683
13684 lt_compiler_flag="-o out/conftest2.$ac_objext"
13685 # Insert the option either (1) after the last *FLAGS variable, or
13686 # (2) before a word containing "conftest.", or (3) at the end.
13687 # Note that $ac_compile itself does not contain backslashes and begins
13688 # with a dollar sign (not a hyphen), so the echo should work correctly.
13689 lt_compile=`echo "$ac_compile" | $SED \
13690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13692 -e 's:$: $lt_compiler_flag:'`
13693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13694 (eval "$lt_compile" 2>out/conftest.err)
13695 ac_status=$?
13696 cat out/conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13699 then
13700 # The compiler can only warn and ignore the option if not recognized
13701 # So say no if there are warnings
13702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13705 lt_cv_prog_compiler_c_o_FC=yes
13706 fi
13707 fi
13708 chmod u+w . 2>&5
13709 $RM conftest*
13710 # SGI C++ compiler will create directory out/ii_files/ for
13711 # template instantiation
13712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13713 $RM out/* && rmdir out
13714 cd ..
13715 $RM -r conftest
13716 $RM conftest*
13717
13718 fi
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13720 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13721
13722
13723
13724
13725 hard_links="nottested"
13726 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13727 # do not overwrite the value of need_locks provided by the user
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13729 $as_echo_n "checking if we can lock with hard links... " >&6; }
13730 hard_links=yes
13731 $RM conftest*
13732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13733 touch conftest.a
13734 ln conftest.a conftest.b 2>&5 || hard_links=no
13735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13737 $as_echo "$hard_links" >&6; }
13738 if test "$hard_links" = no; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13740 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13741 need_locks=warn
13742 fi
13743 else
13744 need_locks=no
13745 fi
13746
13747
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13750 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13751
13752 runpath_var=
13753 allow_undefined_flag_FC=
13754 always_export_symbols_FC=no
13755 archive_cmds_FC=
13756 archive_expsym_cmds_FC=
13757 compiler_needs_object_FC=no
13758 enable_shared_with_static_runtimes_FC=no
13759 export_dynamic_flag_spec_FC=
13760 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13761 hardcode_automatic_FC=no
13762 hardcode_direct_FC=no
13763 hardcode_direct_absolute_FC=no
13764 hardcode_libdir_flag_spec_FC=
13765 hardcode_libdir_flag_spec_ld_FC=
13766 hardcode_libdir_separator_FC=
13767 hardcode_minus_L_FC=no
13768 hardcode_shlibpath_var_FC=unsupported
13769 inherit_rpath_FC=no
13770 link_all_deplibs_FC=unknown
13771 module_cmds_FC=
13772 module_expsym_cmds_FC=
13773 old_archive_from_new_cmds_FC=
13774 old_archive_from_expsyms_cmds_FC=
13775 thread_safe_flag_spec_FC=
13776 whole_archive_flag_spec_FC=
13777 # include_expsyms should be a list of space-separated symbols to be *always*
13778 # included in the symbol list
13779 include_expsyms_FC=
13780 # exclude_expsyms can be an extended regexp of symbols to exclude
13781 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13782 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13783 # as well as any symbol that contains `d'.
13784 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13785 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13786 # platforms (ab)use it in PIC code, but their linkers get confused if
13787 # the symbol is explicitly referenced. Since portable code cannot
13788 # rely on this symbol name, it's probably fine to never include it in
13789 # preloaded symbol tables.
13790 # Exclude shared library initialization/finalization symbols.
13791 extract_expsyms_cmds=
13792
13793 case $host_os in
13794 cygwin* | mingw* | pw32* | cegcc*)
13795 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13796 # When not using gcc, we currently assume that we are using
13797 # Microsoft Visual C++.
13798 if test "$GCC" != yes; then
13799 with_gnu_ld=no
13800 fi
13801 ;;
13802 interix*)
13803 # we just hope/assume this is gcc and not c89 (= MSVC++)
13804 with_gnu_ld=yes
13805 ;;
13806 openbsd*)
13807 with_gnu_ld=no
13808 ;;
13809 esac
13810
13811 ld_shlibs_FC=yes
13812
13813 # On some targets, GNU ld is compatible enough with the native linker
13814 # that we're better off using the native interface for both.
13815 lt_use_gnu_ld_interface=no
13816 if test "$with_gnu_ld" = yes; then
13817 case $host_os in
13818 aix*)
13819 # The AIX port of GNU ld has always aspired to compatibility
13820 # with the native linker. However, as the warning in the GNU ld
13821 # block says, versions before 2.19.5* couldn't really create working
13822 # shared libraries, regardless of the interface used.
13823 case `$LD -v 2>&1` in
13824 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13825 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13826 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13827 *)
13828 lt_use_gnu_ld_interface=yes
13829 ;;
13830 esac
13831 ;;
13832 *)
13833 lt_use_gnu_ld_interface=yes
13834 ;;
13835 esac
13836 fi
13837
13838 if test "$lt_use_gnu_ld_interface" = yes; then
13839 # If archive_cmds runs LD, not CC, wlarc should be empty
13840 wlarc='${wl}'
13841
13842 # Set some defaults for GNU ld with shared library support. These
13843 # are reset later if shared libraries are not supported. Putting them
13844 # here allows them to be overridden if necessary.
13845 runpath_var=LD_RUN_PATH
13846 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13847 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13848 # ancient GNU ld didn't support --whole-archive et. al.
13849 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13850 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13851 else
13852 whole_archive_flag_spec_FC=
13853 fi
13854 supports_anon_versioning=no
13855 case `$LD -v 2>&1` in
13856 *GNU\ gold*) supports_anon_versioning=yes ;;
13857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13860 *\ 2.11.*) ;; # other 2.11 versions
13861 *) supports_anon_versioning=yes ;;
13862 esac
13863
13864 # See if GNU ld supports shared libraries.
13865 case $host_os in
13866 aix[3-9]*)
13867 # On AIX/PPC, the GNU linker is very broken
13868 if test "$host_cpu" != ia64; then
13869 ld_shlibs_FC=no
13870 cat <<_LT_EOF 1>&2
13871
13872 *** Warning: the GNU linker, at least up to release 2.19, is reported
13873 *** to be unable to reliably create shared libraries on AIX.
13874 *** Therefore, libtool is disabling shared libraries support. If you
13875 *** really care for shared libraries, you may want to install binutils
13876 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13877 *** You will then need to restart the configuration process.
13878
13879 _LT_EOF
13880 fi
13881 ;;
13882
13883 amigaos*)
13884 case $host_cpu in
13885 powerpc)
13886 # see comment about AmigaOS4 .so support
13887 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 archive_expsym_cmds_FC=''
13889 ;;
13890 m68k)
13891 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)'
13892 hardcode_libdir_flag_spec_FC='-L$libdir'
13893 hardcode_minus_L_FC=yes
13894 ;;
13895 esac
13896 ;;
13897
13898 beos*)
13899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13900 allow_undefined_flag_FC=unsupported
13901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13902 # support --undefined. This deserves some investigation. FIXME
13903 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13904 else
13905 ld_shlibs_FC=no
13906 fi
13907 ;;
13908
13909 cygwin* | mingw* | pw32* | cegcc*)
13910 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13911 # as there is no search path for DLLs.
13912 hardcode_libdir_flag_spec_FC='-L$libdir'
13913 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13914 allow_undefined_flag_FC=unsupported
13915 always_export_symbols_FC=no
13916 enable_shared_with_static_runtimes_FC=yes
13917 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13918
13919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13920 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13921 # If the export-symbols file already is a .def file (1st line
13922 # is EXPORTS), use it as is; otherwise, prepend...
13923 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13924 cp $export_symbols $output_objdir/$soname.def;
13925 else
13926 echo EXPORTS > $output_objdir/$soname.def;
13927 cat $export_symbols >> $output_objdir/$soname.def;
13928 fi~
13929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13930 else
13931 ld_shlibs_FC=no
13932 fi
13933 ;;
13934
13935 haiku*)
13936 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937 link_all_deplibs_FC=yes
13938 ;;
13939
13940 interix[3-9]*)
13941 hardcode_direct_FC=no
13942 hardcode_shlibpath_var_FC=no
13943 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13944 export_dynamic_flag_spec_FC='${wl}-E'
13945 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13946 # Instead, shared libraries are loaded at an image base (0x10000000 by
13947 # default) and relocated if they conflict, which is a slow very memory
13948 # consuming and fragmenting process. To avoid this, we pick a random,
13949 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13950 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13951 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'
13952 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'
13953 ;;
13954
13955 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13956 tmp_diet=no
13957 if test "$host_os" = linux-dietlibc; then
13958 case $cc_basename in
13959 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13960 esac
13961 fi
13962 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13963 && test "$tmp_diet" = no
13964 then
13965 tmp_addflag=
13966 tmp_sharedflag='-shared'
13967 case $cc_basename,$host_cpu in
13968 pgcc*) # Portland Group C compiler
13969 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'
13970 tmp_addflag=' $pic_flag'
13971 ;;
13972 pgf77* | pgf90* | pgf95* | pgfortran*)
13973 # Portland Group f77 and f90 compilers
13974 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'
13975 tmp_addflag=' $pic_flag -Mnomain' ;;
13976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13977 tmp_addflag=' -i_dynamic' ;;
13978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13979 tmp_addflag=' -i_dynamic -nofor_main' ;;
13980 ifc* | ifort*) # Intel Fortran compiler
13981 tmp_addflag=' -nofor_main' ;;
13982 lf95*) # Lahey Fortran 8.1
13983 whole_archive_flag_spec_FC=
13984 tmp_sharedflag='--shared' ;;
13985 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13986 tmp_sharedflag='-qmkshrobj'
13987 tmp_addflag= ;;
13988 nvcc*) # Cuda Compiler Driver 2.2
13989 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'
13990 compiler_needs_object_FC=yes
13991 ;;
13992 esac
13993 case `$CC -V 2>&1 | sed 5q` in
13994 *Sun\ C*) # Sun C 5.9
13995 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'
13996 compiler_needs_object_FC=yes
13997 tmp_sharedflag='-G' ;;
13998 *Sun\ F*) # Sun Fortran 8.3
13999 tmp_sharedflag='-G' ;;
14000 esac
14001 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002
14003 if test "x$supports_anon_versioning" = xyes; then
14004 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14006 echo "local: *; };" >> $output_objdir/$libname.ver~
14007 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14008 fi
14009
14010 case $cc_basename in
14011 xlf* | bgf* | bgxlf* | mpixlf*)
14012 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14013 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14014 hardcode_libdir_flag_spec_FC=
14015 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14016 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14022 fi
14023 ;;
14024 esac
14025 else
14026 ld_shlibs_FC=no
14027 fi
14028 ;;
14029
14030 netbsd*)
14031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14032 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14033 wlarc=
14034 else
14035 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14036 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14037 fi
14038 ;;
14039
14040 solaris*)
14041 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14042 ld_shlibs_FC=no
14043 cat <<_LT_EOF 1>&2
14044
14045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14046 *** create shared libraries on Solaris systems. Therefore, libtool
14047 *** is disabling shared libraries support. We urge you to upgrade GNU
14048 *** binutils to release 2.9.1 or newer. Another option is to modify
14049 *** your PATH or compiler configuration so that the native linker is
14050 *** used, and then restart.
14051
14052 _LT_EOF
14053 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14054 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14056 else
14057 ld_shlibs_FC=no
14058 fi
14059 ;;
14060
14061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14062 case `$LD -v 2>&1` in
14063 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14064 ld_shlibs_FC=no
14065 cat <<_LT_EOF 1>&2
14066
14067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14068 *** reliably create shared libraries on SCO systems. Therefore, libtool
14069 *** is disabling shared libraries support. We urge you to upgrade GNU
14070 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14071 *** your PATH or compiler configuration so that the native linker is
14072 *** used, and then restart.
14073
14074 _LT_EOF
14075 ;;
14076 *)
14077 # For security reasons, it is highly recommended that you always
14078 # use absolute paths for naming shared libraries, and exclude the
14079 # DT_RUNPATH tag from executables and libraries. But doing so
14080 # requires that you compile everything twice, which is a pain.
14081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14082 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14083 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14084 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14085 else
14086 ld_shlibs_FC=no
14087 fi
14088 ;;
14089 esac
14090 ;;
14091
14092 sunos4*)
14093 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14094 wlarc=
14095 hardcode_direct_FC=yes
14096 hardcode_shlibpath_var_FC=no
14097 ;;
14098
14099 *)
14100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14101 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14103 else
14104 ld_shlibs_FC=no
14105 fi
14106 ;;
14107 esac
14108
14109 if test "$ld_shlibs_FC" = no; then
14110 runpath_var=
14111 hardcode_libdir_flag_spec_FC=
14112 export_dynamic_flag_spec_FC=
14113 whole_archive_flag_spec_FC=
14114 fi
14115 else
14116 # PORTME fill in a description of your system's linker (not GNU ld)
14117 case $host_os in
14118 aix3*)
14119 allow_undefined_flag_FC=unsupported
14120 always_export_symbols_FC=yes
14121 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'
14122 # Note: this linker hardcodes the directories in LIBPATH if there
14123 # are no directories specified by -L.
14124 hardcode_minus_L_FC=yes
14125 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14126 # Neither direct hardcoding nor static linking is supported with a
14127 # broken collect2.
14128 hardcode_direct_FC=unsupported
14129 fi
14130 ;;
14131
14132 aix[4-9]*)
14133 if test "$host_cpu" = ia64; then
14134 # On IA64, the linker does run time linking by default, so we don't
14135 # have to do anything special.
14136 aix_use_runtimelinking=no
14137 exp_sym_flag='-Bexport'
14138 no_entry_flag=""
14139 else
14140 # If we're using GNU nm, then we don't want the "-C" option.
14141 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14142 # Also, AIX nm treats weak defined symbols like other global
14143 # defined symbols, whereas GNU nm marks them as "W".
14144 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14145 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'
14146 else
14147 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'
14148 fi
14149 aix_use_runtimelinking=no
14150
14151 # Test if we are trying to use run time linking or normal
14152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14153 # need to do runtime linking.
14154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14155 for ld_flag in $LDFLAGS; do
14156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14157 aix_use_runtimelinking=yes
14158 break
14159 fi
14160 done
14161 ;;
14162 esac
14163
14164 exp_sym_flag='-bexport'
14165 no_entry_flag='-bnoentry'
14166 fi
14167
14168 # When large executables or shared objects are built, AIX ld can
14169 # have problems creating the table of contents. If linking a library
14170 # or program results in "error TOC overflow" add -mminimal-toc to
14171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14173
14174 archive_cmds_FC=''
14175 hardcode_direct_FC=yes
14176 hardcode_direct_absolute_FC=yes
14177 hardcode_libdir_separator_FC=':'
14178 link_all_deplibs_FC=yes
14179 file_list_spec_FC='${wl}-f,'
14180
14181 if test "$GCC" = yes; then
14182 case $host_os in aix4.[012]|aix4.[012].*)
14183 # We only want to do this on AIX 4.2 and lower, the check
14184 # below for broken collect2 doesn't work under 4.3+
14185 collect2name=`${CC} -print-prog-name=collect2`
14186 if test -f "$collect2name" &&
14187 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14188 then
14189 # We have reworked collect2
14190 :
14191 else
14192 # We have old collect2
14193 hardcode_direct_FC=unsupported
14194 # It fails to find uninstalled libraries when the uninstalled
14195 # path is not listed in the libpath. Setting hardcode_minus_L
14196 # to unsupported forces relinking
14197 hardcode_minus_L_FC=yes
14198 hardcode_libdir_flag_spec_FC='-L$libdir'
14199 hardcode_libdir_separator_FC=
14200 fi
14201 ;;
14202 esac
14203 shared_flag='-shared'
14204 if test "$aix_use_runtimelinking" = yes; then
14205 shared_flag="$shared_flag "'${wl}-G'
14206 fi
14207 else
14208 # not using gcc
14209 if test "$host_cpu" = ia64; then
14210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14211 # chokes on -Wl,-G. The following line is correct:
14212 shared_flag='-G'
14213 else
14214 if test "$aix_use_runtimelinking" = yes; then
14215 shared_flag='${wl}-G'
14216 else
14217 shared_flag='${wl}-bM:SRE'
14218 fi
14219 fi
14220 fi
14221
14222 export_dynamic_flag_spec_FC='${wl}-bexpall'
14223 # It seems that -bexpall does not export symbols beginning with
14224 # underscore (_), so it is better to generate a list of symbols to export.
14225 always_export_symbols_FC=yes
14226 if test "$aix_use_runtimelinking" = yes; then
14227 # Warning - without using the other runtime loading flags (-brtl),
14228 # -berok will link without error, but may produce a broken library.
14229 allow_undefined_flag_FC='-berok'
14230 # Determine the default libpath from the value encoded in an
14231 # empty executable.
14232 if test x$gcc_no_link = xyes; then
14233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14234 fi
14235 cat > conftest.$ac_ext <<_ACEOF
14236 program main
14237
14238 end
14239 _ACEOF
14240 if ac_fn_fc_try_link "$LINENO"; then :
14241
14242 lt_aix_libpath_sed='
14243 /Import File Strings/,/^$/ {
14244 /^0/ {
14245 s/^0 *\(.*\)$/\1/
14246 p
14247 }
14248 }'
14249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14250 # Check for a 64-bit object if we didn't find anything.
14251 if test -z "$aix_libpath"; then
14252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14253 fi
14254 fi
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14258
14259 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14260 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"
14261 else
14262 if test "$host_cpu" = ia64; then
14263 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14264 allow_undefined_flag_FC="-z nodefs"
14265 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"
14266 else
14267 # Determine the default libpath from the value encoded in an
14268 # empty executable.
14269 if test x$gcc_no_link = xyes; then
14270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14271 fi
14272 cat > conftest.$ac_ext <<_ACEOF
14273 program main
14274
14275 end
14276 _ACEOF
14277 if ac_fn_fc_try_link "$LINENO"; then :
14278
14279 lt_aix_libpath_sed='
14280 /Import File Strings/,/^$/ {
14281 /^0/ {
14282 s/^0 *\(.*\)$/\1/
14283 p
14284 }
14285 }'
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14287 # Check for a 64-bit object if we didn't find anything.
14288 if test -z "$aix_libpath"; then
14289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14290 fi
14291 fi
14292 rm -f core conftest.err conftest.$ac_objext \
14293 conftest$ac_exeext conftest.$ac_ext
14294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14295
14296 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14297 # Warning - without using the other run time loading flags,
14298 # -berok will link without error, but may produce a broken library.
14299 no_undefined_flag_FC=' ${wl}-bernotok'
14300 allow_undefined_flag_FC=' ${wl}-berok'
14301 if test "$with_gnu_ld" = yes; then
14302 # We only use this code for GNU lds that support --whole-archive.
14303 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14304 else
14305 # Exported symbols can be pulled into shared objects from archives
14306 whole_archive_flag_spec_FC='$convenience'
14307 fi
14308 archive_cmds_need_lc_FC=yes
14309 # This is similar to how AIX traditionally builds its shared libraries.
14310 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'
14311 fi
14312 fi
14313 ;;
14314
14315 amigaos*)
14316 case $host_cpu in
14317 powerpc)
14318 # see comment about AmigaOS4 .so support
14319 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 archive_expsym_cmds_FC=''
14321 ;;
14322 m68k)
14323 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)'
14324 hardcode_libdir_flag_spec_FC='-L$libdir'
14325 hardcode_minus_L_FC=yes
14326 ;;
14327 esac
14328 ;;
14329
14330 bsdi[45]*)
14331 export_dynamic_flag_spec_FC=-rdynamic
14332 ;;
14333
14334 cygwin* | mingw* | pw32* | cegcc*)
14335 # When not using gcc, we currently assume that we are using
14336 # Microsoft Visual C++.
14337 # hardcode_libdir_flag_spec is actually meaningless, as there is
14338 # no search path for DLLs.
14339 hardcode_libdir_flag_spec_FC=' '
14340 allow_undefined_flag_FC=unsupported
14341 # Tell ltmain to make .lib files, not .a files.
14342 libext=lib
14343 # Tell ltmain to make .dll files, not .so files.
14344 shrext_cmds=".dll"
14345 # FIXME: Setting linknames here is a bad hack.
14346 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14347 # The linker will automatically build a .lib file if we build a DLL.
14348 old_archive_from_new_cmds_FC='true'
14349 # FIXME: Should let the user specify the lib program.
14350 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14351 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14352 enable_shared_with_static_runtimes_FC=yes
14353 ;;
14354
14355 darwin* | rhapsody*)
14356
14357
14358 archive_cmds_need_lc_FC=no
14359 hardcode_direct_FC=no
14360 hardcode_automatic_FC=yes
14361 hardcode_shlibpath_var_FC=unsupported
14362 if test "$lt_cv_ld_force_load" = "yes"; then
14363 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\"`'
14364 else
14365 whole_archive_flag_spec_FC=''
14366 fi
14367 link_all_deplibs_FC=yes
14368 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14369 case $cc_basename in
14370 ifort*) _lt_dar_can_shared=yes ;;
14371 *) _lt_dar_can_shared=$GCC ;;
14372 esac
14373 if test "$_lt_dar_can_shared" = "yes"; then
14374 output_verbose_link_cmd=func_echo_all
14375 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}"
14376 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14377 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}"
14378 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}"
14379
14380 else
14381 ld_shlibs_FC=no
14382 fi
14383
14384 ;;
14385
14386 dgux*)
14387 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14388 hardcode_libdir_flag_spec_FC='-L$libdir'
14389 hardcode_shlibpath_var_FC=no
14390 ;;
14391
14392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14393 # support. Future versions do this automatically, but an explicit c++rt0.o
14394 # does not break anything, and helps significantly (at the cost of a little
14395 # extra space).
14396 freebsd2.2*)
14397 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14398 hardcode_libdir_flag_spec_FC='-R$libdir'
14399 hardcode_direct_FC=yes
14400 hardcode_shlibpath_var_FC=no
14401 ;;
14402
14403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14404 freebsd2.*)
14405 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14406 hardcode_direct_FC=yes
14407 hardcode_minus_L_FC=yes
14408 hardcode_shlibpath_var_FC=no
14409 ;;
14410
14411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14412 freebsd* | dragonfly*)
14413 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14414 hardcode_libdir_flag_spec_FC='-R$libdir'
14415 hardcode_direct_FC=yes
14416 hardcode_shlibpath_var_FC=no
14417 ;;
14418
14419 hpux9*)
14420 if test "$GCC" = yes; then
14421 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'
14422 else
14423 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'
14424 fi
14425 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14426 hardcode_libdir_separator_FC=:
14427 hardcode_direct_FC=yes
14428
14429 # hardcode_minus_L: Not really in the search PATH,
14430 # but as the default location of the library.
14431 hardcode_minus_L_FC=yes
14432 export_dynamic_flag_spec_FC='${wl}-E'
14433 ;;
14434
14435 hpux10*)
14436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14437 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14438 else
14439 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14440 fi
14441 if test "$with_gnu_ld" = no; then
14442 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14443 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14444 hardcode_libdir_separator_FC=:
14445 hardcode_direct_FC=yes
14446 hardcode_direct_absolute_FC=yes
14447 export_dynamic_flag_spec_FC='${wl}-E'
14448 # hardcode_minus_L: Not really in the search PATH,
14449 # but as the default location of the library.
14450 hardcode_minus_L_FC=yes
14451 fi
14452 ;;
14453
14454 hpux11*)
14455 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14456 case $host_cpu in
14457 hppa*64*)
14458 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 ;;
14460 ia64*)
14461 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14462 ;;
14463 *)
14464 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14465 ;;
14466 esac
14467 else
14468 case $host_cpu in
14469 hppa*64*)
14470 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14471 ;;
14472 ia64*)
14473 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14474 ;;
14475 *)
14476 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14477 ;;
14478 esac
14479 fi
14480 if test "$with_gnu_ld" = no; then
14481 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14482 hardcode_libdir_separator_FC=:
14483
14484 case $host_cpu in
14485 hppa*64*|ia64*)
14486 hardcode_direct_FC=no
14487 hardcode_shlibpath_var_FC=no
14488 ;;
14489 *)
14490 hardcode_direct_FC=yes
14491 hardcode_direct_absolute_FC=yes
14492 export_dynamic_flag_spec_FC='${wl}-E'
14493
14494 # hardcode_minus_L: Not really in the search PATH,
14495 # but as the default location of the library.
14496 hardcode_minus_L_FC=yes
14497 ;;
14498 esac
14499 fi
14500 ;;
14501
14502 irix5* | irix6* | nonstopux*)
14503 if test "$GCC" = yes; then
14504 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'
14505 # Try to use the -exported_symbol ld option, if it does not
14506 # work, assume that -exports_file does not work either and
14507 # implicitly export all symbols.
14508 save_LDFLAGS="$LDFLAGS"
14509 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14510 if test x$gcc_no_link = xyes; then
14511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14512 fi
14513 cat > conftest.$ac_ext <<_ACEOF
14514 int foo(void) {}
14515 _ACEOF
14516 if ac_fn_fc_try_link "$LINENO"; then :
14517 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'
14518
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext \
14521 conftest$ac_exeext conftest.$ac_ext
14522 LDFLAGS="$save_LDFLAGS"
14523 else
14524 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'
14525 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'
14526 fi
14527 archive_cmds_need_lc_FC='no'
14528 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14529 hardcode_libdir_separator_FC=:
14530 inherit_rpath_FC=yes
14531 link_all_deplibs_FC=yes
14532 ;;
14533
14534 netbsd*)
14535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14536 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14537 else
14538 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14539 fi
14540 hardcode_libdir_flag_spec_FC='-R$libdir'
14541 hardcode_direct_FC=yes
14542 hardcode_shlibpath_var_FC=no
14543 ;;
14544
14545 newsos6)
14546 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14547 hardcode_direct_FC=yes
14548 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14549 hardcode_libdir_separator_FC=:
14550 hardcode_shlibpath_var_FC=no
14551 ;;
14552
14553 *nto* | *qnx*)
14554 ;;
14555
14556 openbsd*)
14557 if test -f /usr/libexec/ld.so; then
14558 hardcode_direct_FC=yes
14559 hardcode_shlibpath_var_FC=no
14560 hardcode_direct_absolute_FC=yes
14561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14562 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14564 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14565 export_dynamic_flag_spec_FC='${wl}-E'
14566 else
14567 case $host_os in
14568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14569 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14570 hardcode_libdir_flag_spec_FC='-R$libdir'
14571 ;;
14572 *)
14573 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14574 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14575 ;;
14576 esac
14577 fi
14578 else
14579 ld_shlibs_FC=no
14580 fi
14581 ;;
14582
14583 os2*)
14584 hardcode_libdir_flag_spec_FC='-L$libdir'
14585 hardcode_minus_L_FC=yes
14586 allow_undefined_flag_FC=unsupported
14587 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'
14588 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14589 ;;
14590
14591 osf3*)
14592 if test "$GCC" = yes; then
14593 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14594 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'
14595 else
14596 allow_undefined_flag_FC=' -expect_unresolved \*'
14597 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'
14598 fi
14599 archive_cmds_need_lc_FC='no'
14600 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14601 hardcode_libdir_separator_FC=:
14602 ;;
14603
14604 osf4* | osf5*) # as osf3* with the addition of -msym flag
14605 if test "$GCC" = yes; then
14606 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14607 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'
14608 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14609 else
14610 allow_undefined_flag_FC=' -expect_unresolved \*'
14611 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'
14612 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~
14613 $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'
14614
14615 # Both c and cxx compiler support -rpath directly
14616 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14617 fi
14618 archive_cmds_need_lc_FC='no'
14619 hardcode_libdir_separator_FC=:
14620 ;;
14621
14622 solaris*)
14623 no_undefined_flag_FC=' -z defs'
14624 if test "$GCC" = yes; then
14625 wlarc='${wl}'
14626 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14628 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14629 else
14630 case `$CC -V 2>&1` in
14631 *"Compilers 5.0"*)
14632 wlarc=''
14633 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14636 ;;
14637 *)
14638 wlarc='${wl}'
14639 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14640 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14641 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14642 ;;
14643 esac
14644 fi
14645 hardcode_libdir_flag_spec_FC='-R$libdir'
14646 hardcode_shlibpath_var_FC=no
14647 case $host_os in
14648 solaris2.[0-5] | solaris2.[0-5].*) ;;
14649 *)
14650 # The compiler driver will combine and reorder linker options,
14651 # but understands `-z linker_flag'. GCC discards it without `$wl',
14652 # but is careful enough not to reorder.
14653 # Supported since Solaris 2.6 (maybe 2.5.1?)
14654 if test "$GCC" = yes; then
14655 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14656 else
14657 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14658 fi
14659 ;;
14660 esac
14661 link_all_deplibs_FC=yes
14662 ;;
14663
14664 sunos4*)
14665 if test "x$host_vendor" = xsequent; then
14666 # Use $CC to link under sequent, because it throws in some extra .o
14667 # files that make .init and .fini sections work.
14668 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14669 else
14670 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14671 fi
14672 hardcode_libdir_flag_spec_FC='-L$libdir'
14673 hardcode_direct_FC=yes
14674 hardcode_minus_L_FC=yes
14675 hardcode_shlibpath_var_FC=no
14676 ;;
14677
14678 sysv4)
14679 case $host_vendor in
14680 sni)
14681 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14682 hardcode_direct_FC=yes # is this really true???
14683 ;;
14684 siemens)
14685 ## LD is ld it makes a PLAMLIB
14686 ## CC just makes a GrossModule.
14687 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14688 reload_cmds_FC='$CC -r -o $output$reload_objs'
14689 hardcode_direct_FC=no
14690 ;;
14691 motorola)
14692 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14694 ;;
14695 esac
14696 runpath_var='LD_RUN_PATH'
14697 hardcode_shlibpath_var_FC=no
14698 ;;
14699
14700 sysv4.3*)
14701 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_shlibpath_var_FC=no
14703 export_dynamic_flag_spec_FC='-Bexport'
14704 ;;
14705
14706 sysv4*MP*)
14707 if test -d /usr/nec; then
14708 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_shlibpath_var_FC=no
14710 runpath_var=LD_RUN_PATH
14711 hardcode_runpath_var=yes
14712 ld_shlibs_FC=yes
14713 fi
14714 ;;
14715
14716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14717 no_undefined_flag_FC='${wl}-z,text'
14718 archive_cmds_need_lc_FC=no
14719 hardcode_shlibpath_var_FC=no
14720 runpath_var='LD_RUN_PATH'
14721
14722 if test "$GCC" = yes; then
14723 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14725 else
14726 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14727 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14728 fi
14729 ;;
14730
14731 sysv5* | sco3.2v5* | sco5v6*)
14732 # Note: We can NOT use -z defs as we might desire, because we do not
14733 # link with -lc, and that would cause any symbols used from libc to
14734 # always be unresolved, which means just about no library would
14735 # ever link correctly. If we're not using GNU ld we use -z text
14736 # though, which does catch some bad symbols but isn't as heavy-handed
14737 # as -z defs.
14738 no_undefined_flag_FC='${wl}-z,text'
14739 allow_undefined_flag_FC='${wl}-z,nodefs'
14740 archive_cmds_need_lc_FC=no
14741 hardcode_shlibpath_var_FC=no
14742 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14743 hardcode_libdir_separator_FC=':'
14744 link_all_deplibs_FC=yes
14745 export_dynamic_flag_spec_FC='${wl}-Bexport'
14746 runpath_var='LD_RUN_PATH'
14747
14748 if test "$GCC" = yes; then
14749 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14751 else
14752 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14753 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14754 fi
14755 ;;
14756
14757 uts4*)
14758 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14759 hardcode_libdir_flag_spec_FC='-L$libdir'
14760 hardcode_shlibpath_var_FC=no
14761 ;;
14762
14763 *)
14764 ld_shlibs_FC=no
14765 ;;
14766 esac
14767
14768 if test x$host_vendor = xsni; then
14769 case $host in
14770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14771 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14772 ;;
14773 esac
14774 fi
14775 fi
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14778 $as_echo "$ld_shlibs_FC" >&6; }
14779 test "$ld_shlibs_FC" = no && can_build_shared=no
14780
14781 with_gnu_ld_FC=$with_gnu_ld
14782
14783
14784
14785
14786
14787
14788 #
14789 # Do we need to explicitly link libc?
14790 #
14791 case "x$archive_cmds_need_lc_FC" in
14792 x|xyes)
14793 # Assume -lc should be added
14794 archive_cmds_need_lc_FC=yes
14795
14796 if test "$enable_shared" = yes && test "$GCC" = yes; then
14797 case $archive_cmds_FC in
14798 *'~'*)
14799 # FIXME: we may have to deal with multi-command sequences.
14800 ;;
14801 '$CC '*)
14802 # Test whether the compiler implicitly links with -lc since on some
14803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14804 # to ld, don't add -lc before -lgcc.
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14807 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14808 $as_echo_n "(cached) " >&6
14809 else
14810 $RM conftest*
14811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14812
14813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14814 (eval $ac_compile) 2>&5
14815 ac_status=$?
14816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; } 2>conftest.err; then
14818 soname=conftest
14819 lib=conftest
14820 libobjs=conftest.$ac_objext
14821 deplibs=
14822 wl=$lt_prog_compiler_wl_FC
14823 pic_flag=$lt_prog_compiler_pic_FC
14824 compiler_flags=-v
14825 linker_flags=-v
14826 verstring=
14827 output_objdir=.
14828 libname=conftest
14829 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14830 allow_undefined_flag_FC=
14831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14832 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14833 ac_status=$?
14834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14835 test $ac_status = 0; }
14836 then
14837 lt_cv_archive_cmds_need_lc_FC=no
14838 else
14839 lt_cv_archive_cmds_need_lc_FC=yes
14840 fi
14841 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14842 else
14843 cat conftest.err 1>&5
14844 fi
14845 $RM conftest*
14846
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14849 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14850 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14851 ;;
14852 esac
14853 fi
14854 ;;
14855 esac
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14921 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14922
14923 library_names_spec=
14924 libname_spec='lib$name'
14925 soname_spec=
14926 shrext_cmds=".so"
14927 postinstall_cmds=
14928 postuninstall_cmds=
14929 finish_cmds=
14930 finish_eval=
14931 shlibpath_var=
14932 shlibpath_overrides_runpath=unknown
14933 version_type=none
14934 dynamic_linker="$host_os ld.so"
14935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14936 need_lib_prefix=unknown
14937 hardcode_into_libs=no
14938
14939 # when you set need_version to no, make sure it does not cause -set_version
14940 # flags to be left without arguments
14941 need_version=unknown
14942
14943 case $host_os in
14944 aix3*)
14945 version_type=linux
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14947 shlibpath_var=LIBPATH
14948
14949 # AIX 3 has no versioning support, so we append a major version to the name.
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 ;;
14952
14953 aix[4-9]*)
14954 version_type=linux
14955 need_lib_prefix=no
14956 need_version=no
14957 hardcode_into_libs=yes
14958 if test "$host_cpu" = ia64; then
14959 # AIX 5 supports IA64
14960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 else
14963 # With GCC up to 2.95.x, collect2 would create an import file
14964 # for dependence libraries. The import file would start with
14965 # the line `#! .'. This would cause the generated library to
14966 # depend on `.', always an invalid library. This was fixed in
14967 # development snapshots of GCC prior to 3.0.
14968 case $host_os in
14969 aix4 | aix4.[01] | aix4.[01].*)
14970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14971 echo ' yes '
14972 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14973 :
14974 else
14975 can_build_shared=no
14976 fi
14977 ;;
14978 esac
14979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14980 # soname into executable. Probably we can add versioning support to
14981 # collect2, so additional links can be useful in future.
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14984 # instead of lib<name>.a to let people know that these are not
14985 # typical AIX shared libraries.
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 else
14988 # We preserve .a as extension for shared libraries through AIX4.2
14989 # and later when we are not doing run time linking.
14990 library_names_spec='${libname}${release}.a $libname.a'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 fi
14993 shlibpath_var=LIBPATH
14994 fi
14995 ;;
14996
14997 amigaos*)
14998 case $host_cpu in
14999 powerpc)
15000 # Since July 2007 AmigaOS4 officially supports .so libraries.
15001 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 ;;
15004 m68k)
15005 library_names_spec='$libname.ixlibrary $libname.a'
15006 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15007 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'
15008 ;;
15009 esac
15010 ;;
15011
15012 beos*)
15013 library_names_spec='${libname}${shared_ext}'
15014 dynamic_linker="$host_os ld.so"
15015 shlibpath_var=LIBRARY_PATH
15016 ;;
15017
15018 bsdi[45]*)
15019 version_type=linux
15020 need_version=no
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15027 # the default ld.so.conf also contains /usr/contrib/lib and
15028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15029 # libtool to hard-code these into programs
15030 ;;
15031
15032 cygwin* | mingw* | pw32* | cegcc*)
15033 version_type=windows
15034 shrext_cmds=".dll"
15035 need_version=no
15036 need_lib_prefix=no
15037
15038 case $GCC,$host_os in
15039 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15040 library_names_spec='$libname.dll.a'
15041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15042 postinstall_cmds='base_file=`basename \${file}`~
15043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15044 dldir=$destdir/`dirname \$dlpath`~
15045 test -d \$dldir || mkdir -p \$dldir~
15046 $install_prog $dir/$dlname \$dldir/$dlname~
15047 chmod a+x \$dldir/$dlname~
15048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15050 fi'
15051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15052 dlpath=$dir/\$dldll~
15053 $RM \$dlpath'
15054 shlibpath_overrides_runpath=yes
15055
15056 case $host_os in
15057 cygwin*)
15058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15060
15061 ;;
15062 mingw* | cegcc*)
15063 # MinGW DLLs use traditional 'lib' prefix
15064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065 ;;
15066 pw32*)
15067 # pw32 DLLs use 'pw' prefix rather than 'lib'
15068 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15069 ;;
15070 esac
15071 ;;
15072
15073 *)
15074 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15075 ;;
15076 esac
15077 dynamic_linker='Win32 ld.exe'
15078 # FIXME: first we should search . and the directory the executable is in
15079 shlibpath_var=PATH
15080 ;;
15081
15082 darwin* | rhapsody*)
15083 dynamic_linker="$host_os dyld"
15084 version_type=darwin
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15088 soname_spec='${libname}${release}${major}$shared_ext'
15089 shlibpath_overrides_runpath=yes
15090 shlibpath_var=DYLD_LIBRARY_PATH
15091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15092
15093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15094 ;;
15095
15096 dgux*)
15097 version_type=linux
15098 need_lib_prefix=no
15099 need_version=no
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 ;;
15104
15105 freebsd* | dragonfly*)
15106 # DragonFly does not have aout. When/if they implement a new
15107 # versioning mechanism, adjust this.
15108 if test -x /usr/bin/objformat; then
15109 objformat=`/usr/bin/objformat`
15110 else
15111 case $host_os in
15112 freebsd[23].*) objformat=aout ;;
15113 *) objformat=elf ;;
15114 esac
15115 fi
15116 version_type=freebsd-$objformat
15117 case $version_type in
15118 freebsd-elf*)
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15120 need_version=no
15121 need_lib_prefix=no
15122 ;;
15123 freebsd-*)
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15125 need_version=yes
15126 ;;
15127 esac
15128 shlibpath_var=LD_LIBRARY_PATH
15129 case $host_os in
15130 freebsd2.*)
15131 shlibpath_overrides_runpath=yes
15132 ;;
15133 freebsd3.[01]* | freebsdelf3.[01]*)
15134 shlibpath_overrides_runpath=yes
15135 hardcode_into_libs=yes
15136 ;;
15137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15139 shlibpath_overrides_runpath=no
15140 hardcode_into_libs=yes
15141 ;;
15142 *) # from 4.6 on, and DragonFly
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15145 ;;
15146 esac
15147 ;;
15148
15149 gnu*)
15150 version_type=linux
15151 need_lib_prefix=no
15152 need_version=no
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 hardcode_into_libs=yes
15157 ;;
15158
15159 haiku*)
15160 version_type=linux
15161 need_lib_prefix=no
15162 need_version=no
15163 dynamic_linker="$host_os runtime_loader"
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15169 hardcode_into_libs=yes
15170 ;;
15171
15172 hpux9* | hpux10* | hpux11*)
15173 # Give a soname corresponding to the major version so that dld.sl refuses to
15174 # link against other versions.
15175 version_type=sunos
15176 need_lib_prefix=no
15177 need_version=no
15178 case $host_cpu in
15179 ia64*)
15180 shrext_cmds='.so'
15181 hardcode_into_libs=yes
15182 dynamic_linker="$host_os dld.so"
15183 shlibpath_var=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 if test "X$HPUX_IA64_MODE" = X32; then
15188 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15189 else
15190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15191 fi
15192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15193 ;;
15194 hppa*64*)
15195 shrext_cmds='.sl'
15196 hardcode_into_libs=yes
15197 dynamic_linker="$host_os dld.sl"
15198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15204 ;;
15205 *)
15206 shrext_cmds='.sl'
15207 dynamic_linker="$host_os dld.sl"
15208 shlibpath_var=SHLIB_PATH
15209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 ;;
15213 esac
15214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15215 postinstall_cmds='chmod 555 $lib'
15216 # or fails outright, so override atomically:
15217 install_override_mode=555
15218 ;;
15219
15220 interix[3-9]*)
15221 version_type=linux
15222 need_lib_prefix=no
15223 need_version=no
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=no
15229 hardcode_into_libs=yes
15230 ;;
15231
15232 irix5* | irix6* | nonstopux*)
15233 case $host_os in
15234 nonstopux*) version_type=nonstopux ;;
15235 *)
15236 if test "$lt_cv_prog_gnu_ld" = yes; then
15237 version_type=linux
15238 else
15239 version_type=irix
15240 fi ;;
15241 esac
15242 need_lib_prefix=no
15243 need_version=no
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15246 case $host_os in
15247 irix5* | nonstopux*)
15248 libsuff= shlibsuff=
15249 ;;
15250 *)
15251 case $LD in # libtool.m4 will add one of these switches to LD
15252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15253 libsuff= shlibsuff= libmagic=32-bit;;
15254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15255 libsuff=32 shlibsuff=N32 libmagic=N32;;
15256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15257 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15258 *) libsuff= shlibsuff= libmagic=never-match;;
15259 esac
15260 ;;
15261 esac
15262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15263 shlibpath_overrides_runpath=no
15264 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15265 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15266 hardcode_into_libs=yes
15267 ;;
15268
15269 # No shared lib support for Linux oldld, aout, or coff.
15270 linux*oldld* | linux*aout* | linux*coff*)
15271 dynamic_linker=no
15272 ;;
15273
15274 # This must be Linux ELF.
15275 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15276 version_type=linux
15277 need_lib_prefix=no
15278 need_version=no
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=no
15284
15285 # Some binutils ld are patched to set DT_RUNPATH
15286 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15289 lt_cv_shlibpath_overrides_runpath=no
15290 save_LDFLAGS=$LDFLAGS
15291 save_libdir=$libdir
15292 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15293 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15294 if test x$gcc_no_link = xyes; then
15295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15296 fi
15297 cat > conftest.$ac_ext <<_ACEOF
15298 program main
15299
15300 end
15301 _ACEOF
15302 if ac_fn_fc_try_link "$LINENO"; then :
15303 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15304 lt_cv_shlibpath_overrides_runpath=yes
15305 fi
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15309 LDFLAGS=$save_LDFLAGS
15310 libdir=$save_libdir
15311
15312 fi
15313
15314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15315
15316 # This implies no fast_install, which is unacceptable.
15317 # Some rework will be needed to allow for fast_install
15318 # before this can be enabled.
15319 hardcode_into_libs=yes
15320
15321 # Append ld.so.conf contents to the search path
15322 if test -f /etc/ld.so.conf; then
15323 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' ' '`
15324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15325 fi
15326
15327 # We used to test for /lib/ld.so.1 and disable shared libraries on
15328 # powerpc, because MkLinux only supported shared libraries with the
15329 # GNU dynamic linker. Since this was broken with cross compilers,
15330 # most powerpc-linux boxes support dynamic linking these days and
15331 # people can always --disable-shared, the test was removed, and we
15332 # assume the GNU/Linux dynamic linker is in use.
15333 dynamic_linker='GNU/Linux ld.so'
15334 ;;
15335
15336 netbsd*)
15337 version_type=sunos
15338 need_lib_prefix=no
15339 need_version=no
15340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15343 dynamic_linker='NetBSD (a.out) ld.so'
15344 else
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 dynamic_linker='NetBSD ld.elf_so'
15348 fi
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15351 hardcode_into_libs=yes
15352 ;;
15353
15354 newsos6)
15355 version_type=linux
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 shlibpath_var=LD_LIBRARY_PATH
15358 shlibpath_overrides_runpath=yes
15359 ;;
15360
15361 *nto* | *qnx*)
15362 version_type=qnx
15363 need_lib_prefix=no
15364 need_version=no
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 shlibpath_overrides_runpath=no
15369 hardcode_into_libs=yes
15370 dynamic_linker='ldqnx.so'
15371 ;;
15372
15373 openbsd*)
15374 version_type=sunos
15375 sys_lib_dlsearch_path_spec="/usr/lib"
15376 need_lib_prefix=no
15377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15378 case $host_os in
15379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15380 *) need_version=no ;;
15381 esac
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15386 case $host_os in
15387 openbsd2.[89] | openbsd2.[89].*)
15388 shlibpath_overrides_runpath=no
15389 ;;
15390 *)
15391 shlibpath_overrides_runpath=yes
15392 ;;
15393 esac
15394 else
15395 shlibpath_overrides_runpath=yes
15396 fi
15397 ;;
15398
15399 os2*)
15400 libname_spec='$name'
15401 shrext_cmds=".dll"
15402 need_lib_prefix=no
15403 library_names_spec='$libname${shared_ext} $libname.a'
15404 dynamic_linker='OS/2 ld.exe'
15405 shlibpath_var=LIBPATH
15406 ;;
15407
15408 osf3* | osf4* | osf5*)
15409 version_type=osf
15410 need_lib_prefix=no
15411 need_version=no
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15417 ;;
15418
15419 rdos*)
15420 dynamic_linker=no
15421 ;;
15422
15423 solaris*)
15424 version_type=linux
15425 need_lib_prefix=no
15426 need_version=no
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15432 # ldd complains unless libraries are executable
15433 postinstall_cmds='chmod +x $lib'
15434 ;;
15435
15436 sunos4*)
15437 version_type=sunos
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes
15442 if test "$with_gnu_ld" = yes; then
15443 need_lib_prefix=no
15444 fi
15445 need_version=yes
15446 ;;
15447
15448 sysv4 | sysv4.3*)
15449 version_type=linux
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 case $host_vendor in
15454 sni)
15455 shlibpath_overrides_runpath=no
15456 need_lib_prefix=no
15457 runpath_var=LD_RUN_PATH
15458 ;;
15459 siemens)
15460 need_lib_prefix=no
15461 ;;
15462 motorola)
15463 need_lib_prefix=no
15464 need_version=no
15465 shlibpath_overrides_runpath=no
15466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15467 ;;
15468 esac
15469 ;;
15470
15471 sysv4*MP*)
15472 if test -d /usr/nec ;then
15473 version_type=linux
15474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15475 soname_spec='$libname${shared_ext}.$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 fi
15478 ;;
15479
15480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15481 version_type=freebsd-elf
15482 need_lib_prefix=no
15483 need_version=no
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=yes
15488 hardcode_into_libs=yes
15489 if test "$with_gnu_ld" = yes; then
15490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15491 else
15492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15493 case $host_os in
15494 sco3.2v5*)
15495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15496 ;;
15497 esac
15498 fi
15499 sys_lib_dlsearch_path_spec='/usr/lib'
15500 ;;
15501
15502 tpf*)
15503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15504 version_type=linux
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=no
15510 hardcode_into_libs=yes
15511 ;;
15512
15513 uts4*)
15514 version_type=linux
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 ;;
15519
15520 *)
15521 dynamic_linker=no
15522 ;;
15523 esac
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15525 $as_echo "$dynamic_linker" >&6; }
15526 test "$dynamic_linker" = no && can_build_shared=no
15527
15528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15529 if test "$GCC" = yes; then
15530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15531 fi
15532
15533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15535 fi
15536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15538 fi
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15579 hardcode_action_FC=
15580 if test -n "$hardcode_libdir_flag_spec_FC" ||
15581 test -n "$runpath_var_FC" ||
15582 test "X$hardcode_automatic_FC" = "Xyes" ; then
15583
15584 # We can hardcode non-existent directories.
15585 if test "$hardcode_direct_FC" != no &&
15586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15587 # have to relink, otherwise we might link with an installed library
15588 # when we should be linking with a yet-to-be-installed one
15589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15590 test "$hardcode_minus_L_FC" != no; then
15591 # Linking always hardcodes the temporary library directory.
15592 hardcode_action_FC=relink
15593 else
15594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15595 hardcode_action_FC=immediate
15596 fi
15597 else
15598 # We cannot hardcode anything, or else we can only hardcode existing
15599 # directories.
15600 hardcode_action_FC=unsupported
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15603 $as_echo "$hardcode_action_FC" >&6; }
15604
15605 if test "$hardcode_action_FC" = relink ||
15606 test "$inherit_rpath_FC" = yes; then
15607 # Fast installation is not supported
15608 enable_fast_install=no
15609 elif test "$shlibpath_overrides_runpath" = yes ||
15610 test "$enable_shared" = no; then
15611 # Fast installation is not necessary
15612 enable_fast_install=needless
15613 fi
15614
15615
15616
15617
15618
15619
15620
15621 fi # test -n "$compiler"
15622
15623 GCC=$lt_save_GCC
15624 CC="$lt_save_CC"
15625 fi # test "$_lt_disable_FC" != yes
15626
15627 ac_ext=c
15628 ac_cpp='$CPP $CPPFLAGS'
15629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15632
15633
15634
15635 # extra LD Flags which are required for targets
15636 case "${host}" in
15637 *-darwin*)
15638 # Darwin needs -single_module when linking libgfortran
15639 extra_ldflags_libgfortran=-Wl,-single_module
15640 ;;
15641 esac
15642
15643
15644 # We need a working compiler at that point, otherwise give a clear
15645 # error message and bail out.
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15648 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15649 ac_ext=${ac_fc_srcext-f}
15650 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15651 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15653
15654 cat > conftest.$ac_ext <<_ACEOF
15655
15656 program foo
15657 real, parameter :: bar = sin (12.34 / 2.5)
15658 end program foo
15659 _ACEOF
15660 if ac_fn_fc_try_compile "$LINENO"; then :
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15662 $as_echo "yes" >&6; }
15663 else
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15666 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15667
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 ac_ext=c
15671 ac_cpp='$CPP $CPPFLAGS'
15672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15675
15676
15677
15678 # Check whether --enable-largefile was given.
15679 if test "${enable_largefile+set}" = set; then :
15680 enableval=$enable_largefile;
15681 fi
15682
15683 if test "$enable_largefile" != no; then
15684
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15686 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15687 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 ac_cv_sys_largefile_CC=no
15691 if test "$GCC" != yes; then
15692 ac_save_CC=$CC
15693 while :; do
15694 # IRIX 6.2 and later do not support large files by default,
15695 # so use the C compiler's -n32 option if that helps.
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <sys/types.h>
15699 /* Check that off_t can represent 2**63 - 1 correctly.
15700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15701 since some C++ compilers masquerading as C compilers
15702 incorrectly reject 9223372036854775807. */
15703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15705 && LARGE_OFF_T % 2147483647 == 1)
15706 ? 1 : -1];
15707 int
15708 main ()
15709 {
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_c_try_compile "$LINENO"; then :
15716 break
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext
15719 CC="$CC -n32"
15720 if ac_fn_c_try_compile "$LINENO"; then :
15721 ac_cv_sys_largefile_CC=' -n32'; break
15722 fi
15723 rm -f core conftest.err conftest.$ac_objext
15724 break
15725 done
15726 CC=$ac_save_CC
15727 rm -f conftest.$ac_ext
15728 fi
15729 fi
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15731 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15732 if test "$ac_cv_sys_largefile_CC" != no; then
15733 CC=$CC$ac_cv_sys_largefile_CC
15734 fi
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15737 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15738 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 while :; do
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 #include <sys/types.h>
15745 /* Check that off_t can represent 2**63 - 1 correctly.
15746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15747 since some C++ compilers masquerading as C compilers
15748 incorrectly reject 9223372036854775807. */
15749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15751 && LARGE_OFF_T % 2147483647 == 1)
15752 ? 1 : -1];
15753 int
15754 main ()
15755 {
15756
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762 ac_cv_sys_file_offset_bits=no; break
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 #define _FILE_OFFSET_BITS 64
15768 #include <sys/types.h>
15769 /* Check that off_t can represent 2**63 - 1 correctly.
15770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15771 since some C++ compilers masquerading as C compilers
15772 incorrectly reject 9223372036854775807. */
15773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15775 && LARGE_OFF_T % 2147483647 == 1)
15776 ? 1 : -1];
15777 int
15778 main ()
15779 {
15780
15781 ;
15782 return 0;
15783 }
15784 _ACEOF
15785 if ac_fn_c_try_compile "$LINENO"; then :
15786 ac_cv_sys_file_offset_bits=64; break
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 ac_cv_sys_file_offset_bits=unknown
15790 break
15791 done
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15794 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15795 case $ac_cv_sys_file_offset_bits in #(
15796 no | unknown) ;;
15797 *)
15798 cat >>confdefs.h <<_ACEOF
15799 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15800 _ACEOF
15801 ;;
15802 esac
15803 rm -rf conftest*
15804 if test $ac_cv_sys_file_offset_bits = unknown; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15806 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15807 if test "${ac_cv_sys_large_files+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 while :; do
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 #include <sys/types.h>
15814 /* Check that off_t can represent 2**63 - 1 correctly.
15815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15816 since some C++ compilers masquerading as C compilers
15817 incorrectly reject 9223372036854775807. */
15818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15820 && LARGE_OFF_T % 2147483647 == 1)
15821 ? 1 : -1];
15822 int
15823 main ()
15824 {
15825
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 ac_cv_sys_large_files=no; break
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 #define _LARGE_FILES 1
15837 #include <sys/types.h>
15838 /* Check that off_t can represent 2**63 - 1 correctly.
15839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15840 since some C++ compilers masquerading as C compilers
15841 incorrectly reject 9223372036854775807. */
15842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15844 && LARGE_OFF_T % 2147483647 == 1)
15845 ? 1 : -1];
15846 int
15847 main ()
15848 {
15849
15850 ;
15851 return 0;
15852 }
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 ac_cv_sys_large_files=1; break
15856 fi
15857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 ac_cv_sys_large_files=unknown
15859 break
15860 done
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15863 $as_echo "$ac_cv_sys_large_files" >&6; }
15864 case $ac_cv_sys_large_files in #(
15865 no | unknown) ;;
15866 *)
15867 cat >>confdefs.h <<_ACEOF
15868 #define _LARGE_FILES $ac_cv_sys_large_files
15869 _ACEOF
15870 ;;
15871 esac
15872 rm -rf conftest*
15873 fi
15874 fi
15875
15876
15877 # Types
15878 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15879 if test "x$ac_cv_type_off_t" = x""yes; then :
15880
15881 else
15882
15883 cat >>confdefs.h <<_ACEOF
15884 #define off_t long int
15885 _ACEOF
15886
15887 fi
15888
15889
15890 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15891 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15892
15893 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15894
15895 else
15896 for ac_type in 'int' 'long int' 'long long int'; do
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 $ac_includes_default
15900 int
15901 main ()
15902 {
15903 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15904 test_array [0] = 0
15905
15906 ;
15907 return 0;
15908 }
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911
15912 cat >>confdefs.h <<_ACEOF
15913 #define intptr_t $ac_type
15914 _ACEOF
15915
15916 ac_type=
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 test -z "$ac_type" && break
15920 done
15921 fi
15922
15923
15924
15925 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15926 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15927
15928 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15929
15930 else
15931 for ac_type in 'unsigned int' 'unsigned long int' \
15932 'unsigned long long int'; do
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15935 $ac_includes_default
15936 int
15937 main ()
15938 {
15939 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15940 test_array [0] = 0
15941
15942 ;
15943 return 0;
15944 }
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"; then :
15947
15948 cat >>confdefs.h <<_ACEOF
15949 #define uintptr_t $ac_type
15950 _ACEOF
15951
15952 ac_type=
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 test -z "$ac_type" && break
15956 done
15957 fi
15958
15959
15960 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15961 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15962
15963 cat >>confdefs.h <<_ACEOF
15964 #define HAVE_PTRDIFF_T 1
15965 _ACEOF
15966
15967
15968 fi
15969
15970
15971 # check header files (we assume C89 is available, so don't check for that)
15972
15973
15974
15975 for ac_header in $ac_header_list
15976 do :
15977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15978 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15979 "
15980 eval as_val=\$$as_ac_Header
15981 if test "x$as_val" = x""yes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15984 _ACEOF
15985
15986 fi
15987
15988 done
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16023
16024 acx_cv_header_stdint=stddef.h
16025 acx_cv_header_stdint_kind="(already complete)"
16026 for i in stdint.h $inttype_headers; do
16027 unset ac_cv_type_uintptr_t
16028 unset ac_cv_type_uintmax_t
16029 unset ac_cv_type_int_least32_t
16030 unset ac_cv_type_int_fast32_t
16031 unset ac_cv_type_uint64_t
16032 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16033 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16034 #include <$i>
16035 "
16036 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16037 acx_cv_header_stdint=$i
16038 else
16039 continue
16040 fi
16041
16042 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16043 #include <$i>
16044 "
16045 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16046
16047 else
16048 acx_cv_header_stdint_kind="(mostly complete)"
16049 fi
16050
16051 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16052 #include <$i>
16053 "
16054 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16055
16056 else
16057 acx_cv_header_stdint_kind="(mostly complete)"
16058 fi
16059
16060 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16061 #include <$i>
16062 "
16063 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16064
16065 else
16066 acx_cv_header_stdint_kind="(mostly complete)"
16067 fi
16068
16069 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16070 #include <$i>
16071 "
16072 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16073
16074 else
16075 acx_cv_header_stdint_kind="(lacks uint64_t)"
16076 fi
16077
16078 break
16079 done
16080 if test "$acx_cv_header_stdint" = stddef.h; then
16081 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16082 for i in stdint.h $inttype_headers; do
16083 unset ac_cv_type_uintptr_t
16084 unset ac_cv_type_uint32_t
16085 unset ac_cv_type_uint64_t
16086 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16087 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16088 #include <$i>
16089 "
16090 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16091 acx_cv_header_stdint=$i
16092 else
16093 continue
16094 fi
16095
16096 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16097 #include <$i>
16098 "
16099 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16100
16101 fi
16102
16103 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16104 #include <$i>
16105 "
16106 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16107
16108 fi
16109
16110 break
16111 done
16112 fi
16113 if test "$acx_cv_header_stdint" = stddef.h; then
16114 acx_cv_header_stdint_kind="(u_intXX_t style)"
16115 for i in sys/types.h $inttype_headers; do
16116 unset ac_cv_type_u_int32_t
16117 unset ac_cv_type_u_int64_t
16118 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16119 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16120 #include <$i>
16121 "
16122 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16123 acx_cv_header_stdint=$i
16124 else
16125 continue
16126 fi
16127
16128 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16129 #include <$i>
16130 "
16131 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16132
16133 fi
16134
16135 break
16136 done
16137 fi
16138 if test "$acx_cv_header_stdint" = stddef.h; then
16139 acx_cv_header_stdint_kind="(using manual detection)"
16140 fi
16141
16142 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16143 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16144 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16145 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16146 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16147
16148 # ----------------- Summarize what we found so far
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16151 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16152
16153 case `$as_basename -- gstdint.h ||
16154 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16155 Xgstdint.h : 'X\(//\)$' \| \
16156 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16157 $as_echo X/gstdint.h |
16158 sed '/^.*\/\([^/][^/]*\)\/*$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\/\(\/\/\)$/{
16163 s//\1/
16164 q
16165 }
16166 /^X\/\(\/\).*/{
16167 s//\1/
16168 q
16169 }
16170 s/.*/./; q'` in
16171 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16172 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16173 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16174 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16175 *) ;;
16176 esac
16177
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16179 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16180
16181 # ----------------- done included file, check C basic types --------
16182
16183 # Lacking an uintptr_t? Test size of void *
16184 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16185 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16188 # This bug is HP SR number 8606223364.
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16190 $as_echo_n "checking size of void *... " >&6; }
16191 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16195
16196 else
16197 if test "$ac_cv_type_void_p" = yes; then
16198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16200 { as_fn_set_status 77
16201 as_fn_error "cannot compute sizeof (void *)
16202 See \`config.log' for more details." "$LINENO" 5; }; }
16203 else
16204 ac_cv_sizeof_void_p=0
16205 fi
16206 fi
16207
16208 fi
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16210 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16211
16212
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16216 _ACEOF
16217
16218 ;;
16219 esac
16220
16221 # Lacking an uint64_t? Test size of long
16222 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16223 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16226 # This bug is HP SR number 8606223364.
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16228 $as_echo_n "checking size of long... " >&6; }
16229 if test "${ac_cv_sizeof_long+set}" = set; then :
16230 $as_echo_n "(cached) " >&6
16231 else
16232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16233
16234 else
16235 if test "$ac_cv_type_long" = yes; then
16236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16238 { as_fn_set_status 77
16239 as_fn_error "cannot compute sizeof (long)
16240 See \`config.log' for more details." "$LINENO" 5; }; }
16241 else
16242 ac_cv_sizeof_long=0
16243 fi
16244 fi
16245
16246 fi
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16248 $as_echo "$ac_cv_sizeof_long" >&6; }
16249
16250
16251
16252 cat >>confdefs.h <<_ACEOF
16253 #define SIZEOF_LONG $ac_cv_sizeof_long
16254 _ACEOF
16255
16256 ;;
16257 esac
16258
16259 if test $acx_cv_header_stdint = stddef.h; then
16260 # Lacking a good header? Test size of everything and deduce all types.
16261 # The cast to long int works around a bug in the HP C Compiler
16262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16264 # This bug is HP SR number 8606223364.
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16266 $as_echo_n "checking size of int... " >&6; }
16267 if test "${ac_cv_sizeof_int+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16271
16272 else
16273 if test "$ac_cv_type_int" = yes; then
16274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16276 { as_fn_set_status 77
16277 as_fn_error "cannot compute sizeof (int)
16278 See \`config.log' for more details." "$LINENO" 5; }; }
16279 else
16280 ac_cv_sizeof_int=0
16281 fi
16282 fi
16283
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16286 $as_echo "$ac_cv_sizeof_int" >&6; }
16287
16288
16289
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_INT $ac_cv_sizeof_int
16292 _ACEOF
16293
16294
16295 # The cast to long int works around a bug in the HP C Compiler
16296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16298 # This bug is HP SR number 8606223364.
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16300 $as_echo_n "checking size of short... " >&6; }
16301 if test "${ac_cv_sizeof_short+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16305
16306 else
16307 if test "$ac_cv_type_short" = yes; then
16308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16310 { as_fn_set_status 77
16311 as_fn_error "cannot compute sizeof (short)
16312 See \`config.log' for more details." "$LINENO" 5; }; }
16313 else
16314 ac_cv_sizeof_short=0
16315 fi
16316 fi
16317
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16320 $as_echo "$ac_cv_sizeof_short" >&6; }
16321
16322
16323
16324 cat >>confdefs.h <<_ACEOF
16325 #define SIZEOF_SHORT $ac_cv_sizeof_short
16326 _ACEOF
16327
16328
16329 # The cast to long int works around a bug in the HP C Compiler
16330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16332 # This bug is HP SR number 8606223364.
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16334 $as_echo_n "checking size of char... " >&6; }
16335 if test "${ac_cv_sizeof_char+set}" = set; then :
16336 $as_echo_n "(cached) " >&6
16337 else
16338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16339
16340 else
16341 if test "$ac_cv_type_char" = yes; then
16342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16344 { as_fn_set_status 77
16345 as_fn_error "cannot compute sizeof (char)
16346 See \`config.log' for more details." "$LINENO" 5; }; }
16347 else
16348 ac_cv_sizeof_char=0
16349 fi
16350 fi
16351
16352 fi
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16354 $as_echo "$ac_cv_sizeof_char" >&6; }
16355
16356
16357
16358 cat >>confdefs.h <<_ACEOF
16359 #define SIZEOF_CHAR $ac_cv_sizeof_char
16360 _ACEOF
16361
16362
16363
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16365 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16366 case "$ac_cv_sizeof_char" in
16367 1) acx_cv_type_int8_t=char ;;
16368 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16369 esac
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16371 $as_echo "$acx_cv_type_int8_t" >&6; }
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16374 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16375 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16376 2:*) acx_cv_type_int16_t=int ;;
16377 *:2) acx_cv_type_int16_t=short ;;
16378 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16379 esac
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16381 $as_echo "$acx_cv_type_int16_t" >&6; }
16382
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16384 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16385 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16386 4:*) acx_cv_type_int32_t=int ;;
16387 *:4) acx_cv_type_int32_t=long ;;
16388 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16389 esac
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16391 $as_echo "$acx_cv_type_int32_t" >&6; }
16392 fi
16393
16394 # These tests are here to make the output prettier
16395
16396 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16397 case "$ac_cv_sizeof_long" in
16398 8) acx_cv_type_int64_t=long ;;
16399 esac
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16401 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16403 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16404 fi
16405
16406 # Now we can use the above types
16407
16408 if test "$ac_cv_type_uintptr_t" != yes; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16410 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16411 case $ac_cv_sizeof_void_p in
16412 2) acx_cv_type_intptr_t=int16_t ;;
16413 4) acx_cv_type_intptr_t=int32_t ;;
16414 8) acx_cv_type_intptr_t=int64_t ;;
16415 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16416 esac
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16418 $as_echo "$acx_cv_type_intptr_t" >&6; }
16419 fi
16420
16421 # ----------------- done all checks, emit header -------------
16422 ac_config_commands="$ac_config_commands gstdint.h"
16423
16424
16425
16426
16427 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16428 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16432 _ACEOF
16433
16434
16435 fi
16436 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16437 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16438
16439 cat >>confdefs.h <<_ACEOF
16440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16441 _ACEOF
16442
16443
16444 fi
16445 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16446 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16447
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_STRUCT_STAT_ST_RDEV 1
16450 _ACEOF
16451
16452
16453 fi
16454
16455
16456 # Check for library functions.
16457 if test "x${with_newlib}" = "xyes"; then
16458 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16459 # may not work correctly, because the compiler may not be able to
16460 # link executables.
16461
16462 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16463
16464
16465 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16466
16467
16468 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16469
16470
16471 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16472
16473
16474 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16475
16476
16477 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16478
16479
16480 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16481
16482
16483 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16484
16485
16486 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16487
16488
16489 $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h
16490
16491
16492 # At some point, we should differentiate between architectures
16493 # like x86, which have long double versions, and alpha/powerpc/etc.,
16494 # which don't. For the time being, punt.
16495 if test x"long_double_math_on_this_cpu" = x"yes"; then
16496
16497 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16498
16499 fi
16500 else
16501
16502
16503
16504 for ac_func in $ac_func_list
16505 do :
16506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16508 eval as_val=\$$as_ac_var
16509 if test "x$as_val" = x""yes; then :
16510 cat >>confdefs.h <<_ACEOF
16511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515 done
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630 fi
16631
16632 # Check strerror_r, cannot be above as versions with two and three arguments exist
16633
16634 ac_save_CFLAGS="$CFLAGS"
16635 CFLAGS="-Wimplicit-function-declaration -Werror"
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 #define _GNU_SOURCE 1
16639 #include <string.h>
16640 #include <locale.h>
16641 int
16642 main ()
16643 {
16644 char s[128]; strerror_r(5, s, 128);
16645 ;
16646 return 0;
16647 }
16648 _ACEOF
16649 if ac_fn_c_try_compile "$LINENO"; then :
16650
16651 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16652
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655 CFLAGS="$ac_save_CFLAGS"
16656
16657 ac_save_CFLAGS="$CFLAGS"
16658 CFLAGS="-Wimplicit-function-declaration -Werror"
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 #define _GNU_SOURCE 1
16662 #include <string.h>
16663 #include <locale.h>
16664 int
16665 main ()
16666 {
16667 char s[128]; strerror_r(5, s);
16668 ;
16669 return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_compile "$LINENO"; then :
16673
16674 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16675
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 CFLAGS="$ac_save_CFLAGS"
16679
16680
16681 # Check for C99 (and other IEEE) math functions
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16683 $as_echo_n "checking for sin in -lm... " >&6; }
16684 if test "${ac_cv_lib_m_sin+set}" = set; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687 ac_check_lib_save_LIBS=$LIBS
16688 LIBS="-lm $LIBS"
16689 if test x$gcc_no_link = xyes; then
16690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16691 fi
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char sin ();
16702 int
16703 main ()
16704 {
16705 return sin ();
16706 ;
16707 return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_link "$LINENO"; then :
16711 ac_cv_lib_m_sin=yes
16712 else
16713 ac_cv_lib_m_sin=no
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 LIBS=$ac_check_lib_save_LIBS
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16720 $as_echo "$ac_cv_lib_m_sin" >&6; }
16721 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_LIBM 1
16724 _ACEOF
16725
16726 LIBS="-lm $LIBS"
16727
16728 fi
16729
16730
16731
16732
16733
16734
16735
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16737 $as_echo_n "checking for acosf... " >&6; }
16738 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 if test x$gcc_no_link = xyes; then
16742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16743 fi
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746
16747 #ifdef HAVE_COMPLEX_H
16748 #include <complex.h>
16749 #endif
16750 #ifdef HAVE_MATH_H
16751 #include <math.h>
16752 #endif
16753
16754 int (*ptr)() = (int (*)())acosf;
16755
16756 int
16757 main ()
16758 {
16759 return 0;
16760 }
16761
16762 _ACEOF
16763 if ac_fn_c_try_link "$LINENO"; then :
16764 gcc_cv_math_func_acosf=yes
16765 else
16766 gcc_cv_math_func_acosf=no
16767 fi
16768 rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16770 fi
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16772 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16773 if test $gcc_cv_math_func_acosf = yes; then
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_ACOSF 1
16777 _ACEOF
16778
16779 fi
16780
16781
16782
16783
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16785 $as_echo_n "checking for acos... " >&6; }
16786 if test "${gcc_cv_math_func_acos+set}" = set; then :
16787 $as_echo_n "(cached) " >&6
16788 else
16789 if test x$gcc_no_link = xyes; then
16790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16791 fi
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794
16795 #ifdef HAVE_COMPLEX_H
16796 #include <complex.h>
16797 #endif
16798 #ifdef HAVE_MATH_H
16799 #include <math.h>
16800 #endif
16801
16802 int (*ptr)() = (int (*)())acos;
16803
16804 int
16805 main ()
16806 {
16807 return 0;
16808 }
16809
16810 _ACEOF
16811 if ac_fn_c_try_link "$LINENO"; then :
16812 gcc_cv_math_func_acos=yes
16813 else
16814 gcc_cv_math_func_acos=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16818 fi
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16820 $as_echo "$gcc_cv_math_func_acos" >&6; }
16821 if test $gcc_cv_math_func_acos = yes; then
16822
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_ACOS 1
16825 _ACEOF
16826
16827 fi
16828
16829
16830
16831
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16833 $as_echo_n "checking for acosl... " >&6; }
16834 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 if test x$gcc_no_link = xyes; then
16838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16839 fi
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842
16843 #ifdef HAVE_COMPLEX_H
16844 #include <complex.h>
16845 #endif
16846 #ifdef HAVE_MATH_H
16847 #include <math.h>
16848 #endif
16849
16850 int (*ptr)() = (int (*)())acosl;
16851
16852 int
16853 main ()
16854 {
16855 return 0;
16856 }
16857
16858 _ACEOF
16859 if ac_fn_c_try_link "$LINENO"; then :
16860 gcc_cv_math_func_acosl=yes
16861 else
16862 gcc_cv_math_func_acosl=no
16863 fi
16864 rm -f core conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16868 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16869 if test $gcc_cv_math_func_acosl = yes; then
16870
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_ACOSL 1
16873 _ACEOF
16874
16875 fi
16876
16877
16878
16879
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16881 $as_echo_n "checking for acoshf... " >&6; }
16882 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16883 $as_echo_n "(cached) " >&6
16884 else
16885 if test x$gcc_no_link = xyes; then
16886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16887 fi
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890
16891 #ifdef HAVE_COMPLEX_H
16892 #include <complex.h>
16893 #endif
16894 #ifdef HAVE_MATH_H
16895 #include <math.h>
16896 #endif
16897
16898 int (*ptr)() = (int (*)())acoshf;
16899
16900 int
16901 main ()
16902 {
16903 return 0;
16904 }
16905
16906 _ACEOF
16907 if ac_fn_c_try_link "$LINENO"; then :
16908 gcc_cv_math_func_acoshf=yes
16909 else
16910 gcc_cv_math_func_acoshf=no
16911 fi
16912 rm -f core conftest.err conftest.$ac_objext \
16913 conftest$ac_exeext conftest.$ac_ext
16914 fi
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16916 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16917 if test $gcc_cv_math_func_acoshf = yes; then
16918
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_ACOSHF 1
16921 _ACEOF
16922
16923 fi
16924
16925
16926
16927
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16929 $as_echo_n "checking for acosh... " >&6; }
16930 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 if test x$gcc_no_link = xyes; then
16934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16935 fi
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16938
16939 #ifdef HAVE_COMPLEX_H
16940 #include <complex.h>
16941 #endif
16942 #ifdef HAVE_MATH_H
16943 #include <math.h>
16944 #endif
16945
16946 int (*ptr)() = (int (*)())acosh;
16947
16948 int
16949 main ()
16950 {
16951 return 0;
16952 }
16953
16954 _ACEOF
16955 if ac_fn_c_try_link "$LINENO"; then :
16956 gcc_cv_math_func_acosh=yes
16957 else
16958 gcc_cv_math_func_acosh=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962 fi
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16964 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16965 if test $gcc_cv_math_func_acosh = yes; then
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_ACOSH 1
16969 _ACEOF
16970
16971 fi
16972
16973
16974
16975
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16977 $as_echo_n "checking for acoshl... " >&6; }
16978 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 if test x$gcc_no_link = xyes; then
16982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16983 fi
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986
16987 #ifdef HAVE_COMPLEX_H
16988 #include <complex.h>
16989 #endif
16990 #ifdef HAVE_MATH_H
16991 #include <math.h>
16992 #endif
16993
16994 int (*ptr)() = (int (*)())acoshl;
16995
16996 int
16997 main ()
16998 {
16999 return 0;
17000 }
17001
17002 _ACEOF
17003 if ac_fn_c_try_link "$LINENO"; then :
17004 gcc_cv_math_func_acoshl=yes
17005 else
17006 gcc_cv_math_func_acoshl=no
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17010 fi
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17012 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17013 if test $gcc_cv_math_func_acoshl = yes; then
17014
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_ACOSHL 1
17017 _ACEOF
17018
17019 fi
17020
17021
17022
17023
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17025 $as_echo_n "checking for asinf... " >&6; }
17026 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 if test x$gcc_no_link = xyes; then
17030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17031 fi
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034
17035 #ifdef HAVE_COMPLEX_H
17036 #include <complex.h>
17037 #endif
17038 #ifdef HAVE_MATH_H
17039 #include <math.h>
17040 #endif
17041
17042 int (*ptr)() = (int (*)())asinf;
17043
17044 int
17045 main ()
17046 {
17047 return 0;
17048 }
17049
17050 _ACEOF
17051 if ac_fn_c_try_link "$LINENO"; then :
17052 gcc_cv_math_func_asinf=yes
17053 else
17054 gcc_cv_math_func_asinf=no
17055 fi
17056 rm -f core conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058 fi
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17060 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17061 if test $gcc_cv_math_func_asinf = yes; then
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_ASINF 1
17065 _ACEOF
17066
17067 fi
17068
17069
17070
17071
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17073 $as_echo_n "checking for asin... " >&6; }
17074 if test "${gcc_cv_math_func_asin+set}" = set; then :
17075 $as_echo_n "(cached) " >&6
17076 else
17077 if test x$gcc_no_link = xyes; then
17078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17079 fi
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17082
17083 #ifdef HAVE_COMPLEX_H
17084 #include <complex.h>
17085 #endif
17086 #ifdef HAVE_MATH_H
17087 #include <math.h>
17088 #endif
17089
17090 int (*ptr)() = (int (*)())asin;
17091
17092 int
17093 main ()
17094 {
17095 return 0;
17096 }
17097
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 gcc_cv_math_func_asin=yes
17101 else
17102 gcc_cv_math_func_asin=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 fi
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17108 $as_echo "$gcc_cv_math_func_asin" >&6; }
17109 if test $gcc_cv_math_func_asin = yes; then
17110
17111 cat >>confdefs.h <<_ACEOF
17112 #define HAVE_ASIN 1
17113 _ACEOF
17114
17115 fi
17116
17117
17118
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17121 $as_echo_n "checking for asinl... " >&6; }
17122 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 if test x$gcc_no_link = xyes; then
17126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17127 fi
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130
17131 #ifdef HAVE_COMPLEX_H
17132 #include <complex.h>
17133 #endif
17134 #ifdef HAVE_MATH_H
17135 #include <math.h>
17136 #endif
17137
17138 int (*ptr)() = (int (*)())asinl;
17139
17140 int
17141 main ()
17142 {
17143 return 0;
17144 }
17145
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 gcc_cv_math_func_asinl=yes
17149 else
17150 gcc_cv_math_func_asinl=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 fi
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17156 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17157 if test $gcc_cv_math_func_asinl = yes; then
17158
17159 cat >>confdefs.h <<_ACEOF
17160 #define HAVE_ASINL 1
17161 _ACEOF
17162
17163 fi
17164
17165
17166
17167
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17169 $as_echo_n "checking for asinhf... " >&6; }
17170 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17171 $as_echo_n "(cached) " >&6
17172 else
17173 if test x$gcc_no_link = xyes; then
17174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17175 fi
17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h. */
17178
17179 #ifdef HAVE_COMPLEX_H
17180 #include <complex.h>
17181 #endif
17182 #ifdef HAVE_MATH_H
17183 #include <math.h>
17184 #endif
17185
17186 int (*ptr)() = (int (*)())asinhf;
17187
17188 int
17189 main ()
17190 {
17191 return 0;
17192 }
17193
17194 _ACEOF
17195 if ac_fn_c_try_link "$LINENO"; then :
17196 gcc_cv_math_func_asinhf=yes
17197 else
17198 gcc_cv_math_func_asinhf=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17204 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17205 if test $gcc_cv_math_func_asinhf = yes; then
17206
17207 cat >>confdefs.h <<_ACEOF
17208 #define HAVE_ASINHF 1
17209 _ACEOF
17210
17211 fi
17212
17213
17214
17215
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17217 $as_echo_n "checking for asinh... " >&6; }
17218 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17219 $as_echo_n "(cached) " >&6
17220 else
17221 if test x$gcc_no_link = xyes; then
17222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17223 fi
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226
17227 #ifdef HAVE_COMPLEX_H
17228 #include <complex.h>
17229 #endif
17230 #ifdef HAVE_MATH_H
17231 #include <math.h>
17232 #endif
17233
17234 int (*ptr)() = (int (*)())asinh;
17235
17236 int
17237 main ()
17238 {
17239 return 0;
17240 }
17241
17242 _ACEOF
17243 if ac_fn_c_try_link "$LINENO"; then :
17244 gcc_cv_math_func_asinh=yes
17245 else
17246 gcc_cv_math_func_asinh=no
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17250 fi
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17252 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17253 if test $gcc_cv_math_func_asinh = yes; then
17254
17255 cat >>confdefs.h <<_ACEOF
17256 #define HAVE_ASINH 1
17257 _ACEOF
17258
17259 fi
17260
17261
17262
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17265 $as_echo_n "checking for asinhl... " >&6; }
17266 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 if test x$gcc_no_link = xyes; then
17270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17271 fi
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274
17275 #ifdef HAVE_COMPLEX_H
17276 #include <complex.h>
17277 #endif
17278 #ifdef HAVE_MATH_H
17279 #include <math.h>
17280 #endif
17281
17282 int (*ptr)() = (int (*)())asinhl;
17283
17284 int
17285 main ()
17286 {
17287 return 0;
17288 }
17289
17290 _ACEOF
17291 if ac_fn_c_try_link "$LINENO"; then :
17292 gcc_cv_math_func_asinhl=yes
17293 else
17294 gcc_cv_math_func_asinhl=no
17295 fi
17296 rm -f core conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17300 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17301 if test $gcc_cv_math_func_asinhl = yes; then
17302
17303 cat >>confdefs.h <<_ACEOF
17304 #define HAVE_ASINHL 1
17305 _ACEOF
17306
17307 fi
17308
17309
17310
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17313 $as_echo_n "checking for atan2f... " >&6; }
17314 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317 if test x$gcc_no_link = xyes; then
17318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17319 fi
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322
17323 #ifdef HAVE_COMPLEX_H
17324 #include <complex.h>
17325 #endif
17326 #ifdef HAVE_MATH_H
17327 #include <math.h>
17328 #endif
17329
17330 int (*ptr)() = (int (*)())atan2f;
17331
17332 int
17333 main ()
17334 {
17335 return 0;
17336 }
17337
17338 _ACEOF
17339 if ac_fn_c_try_link "$LINENO"; then :
17340 gcc_cv_math_func_atan2f=yes
17341 else
17342 gcc_cv_math_func_atan2f=no
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17348 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17349 if test $gcc_cv_math_func_atan2f = yes; then
17350
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_ATAN2F 1
17353 _ACEOF
17354
17355 fi
17356
17357
17358
17359
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17361 $as_echo_n "checking for atan2... " >&6; }
17362 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17363 $as_echo_n "(cached) " >&6
17364 else
17365 if test x$gcc_no_link = xyes; then
17366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17367 fi
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h. */
17370
17371 #ifdef HAVE_COMPLEX_H
17372 #include <complex.h>
17373 #endif
17374 #ifdef HAVE_MATH_H
17375 #include <math.h>
17376 #endif
17377
17378 int (*ptr)() = (int (*)())atan2;
17379
17380 int
17381 main ()
17382 {
17383 return 0;
17384 }
17385
17386 _ACEOF
17387 if ac_fn_c_try_link "$LINENO"; then :
17388 gcc_cv_math_func_atan2=yes
17389 else
17390 gcc_cv_math_func_atan2=no
17391 fi
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17396 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17397 if test $gcc_cv_math_func_atan2 = yes; then
17398
17399 cat >>confdefs.h <<_ACEOF
17400 #define HAVE_ATAN2 1
17401 _ACEOF
17402
17403 fi
17404
17405
17406
17407
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17409 $as_echo_n "checking for atan2l... " >&6; }
17410 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17411 $as_echo_n "(cached) " >&6
17412 else
17413 if test x$gcc_no_link = xyes; then
17414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17415 fi
17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17418
17419 #ifdef HAVE_COMPLEX_H
17420 #include <complex.h>
17421 #endif
17422 #ifdef HAVE_MATH_H
17423 #include <math.h>
17424 #endif
17425
17426 int (*ptr)() = (int (*)())atan2l;
17427
17428 int
17429 main ()
17430 {
17431 return 0;
17432 }
17433
17434 _ACEOF
17435 if ac_fn_c_try_link "$LINENO"; then :
17436 gcc_cv_math_func_atan2l=yes
17437 else
17438 gcc_cv_math_func_atan2l=no
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext \
17441 conftest$ac_exeext conftest.$ac_ext
17442 fi
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17444 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17445 if test $gcc_cv_math_func_atan2l = yes; then
17446
17447 cat >>confdefs.h <<_ACEOF
17448 #define HAVE_ATAN2L 1
17449 _ACEOF
17450
17451 fi
17452
17453
17454
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17457 $as_echo_n "checking for atanf... " >&6; }
17458 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 if test x$gcc_no_link = xyes; then
17462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17463 fi
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466
17467 #ifdef HAVE_COMPLEX_H
17468 #include <complex.h>
17469 #endif
17470 #ifdef HAVE_MATH_H
17471 #include <math.h>
17472 #endif
17473
17474 int (*ptr)() = (int (*)())atanf;
17475
17476 int
17477 main ()
17478 {
17479 return 0;
17480 }
17481
17482 _ACEOF
17483 if ac_fn_c_try_link "$LINENO"; then :
17484 gcc_cv_math_func_atanf=yes
17485 else
17486 gcc_cv_math_func_atanf=no
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17492 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17493 if test $gcc_cv_math_func_atanf = yes; then
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_ATANF 1
17497 _ACEOF
17498
17499 fi
17500
17501
17502
17503
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17505 $as_echo_n "checking for atan... " >&6; }
17506 if test "${gcc_cv_math_func_atan+set}" = set; then :
17507 $as_echo_n "(cached) " >&6
17508 else
17509 if test x$gcc_no_link = xyes; then
17510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17511 fi
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514
17515 #ifdef HAVE_COMPLEX_H
17516 #include <complex.h>
17517 #endif
17518 #ifdef HAVE_MATH_H
17519 #include <math.h>
17520 #endif
17521
17522 int (*ptr)() = (int (*)())atan;
17523
17524 int
17525 main ()
17526 {
17527 return 0;
17528 }
17529
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532 gcc_cv_math_func_atan=yes
17533 else
17534 gcc_cv_math_func_atan=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 fi
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17540 $as_echo "$gcc_cv_math_func_atan" >&6; }
17541 if test $gcc_cv_math_func_atan = yes; then
17542
17543 cat >>confdefs.h <<_ACEOF
17544 #define HAVE_ATAN 1
17545 _ACEOF
17546
17547 fi
17548
17549
17550
17551
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17553 $as_echo_n "checking for atanl... " >&6; }
17554 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17555 $as_echo_n "(cached) " >&6
17556 else
17557 if test x$gcc_no_link = xyes; then
17558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17559 fi
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562
17563 #ifdef HAVE_COMPLEX_H
17564 #include <complex.h>
17565 #endif
17566 #ifdef HAVE_MATH_H
17567 #include <math.h>
17568 #endif
17569
17570 int (*ptr)() = (int (*)())atanl;
17571
17572 int
17573 main ()
17574 {
17575 return 0;
17576 }
17577
17578 _ACEOF
17579 if ac_fn_c_try_link "$LINENO"; then :
17580 gcc_cv_math_func_atanl=yes
17581 else
17582 gcc_cv_math_func_atanl=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 fi
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17588 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17589 if test $gcc_cv_math_func_atanl = yes; then
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_ATANL 1
17593 _ACEOF
17594
17595 fi
17596
17597
17598
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17601 $as_echo_n "checking for atanhf... " >&6; }
17602 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17603 $as_echo_n "(cached) " >&6
17604 else
17605 if test x$gcc_no_link = xyes; then
17606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17607 fi
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610
17611 #ifdef HAVE_COMPLEX_H
17612 #include <complex.h>
17613 #endif
17614 #ifdef HAVE_MATH_H
17615 #include <math.h>
17616 #endif
17617
17618 int (*ptr)() = (int (*)())atanhf;
17619
17620 int
17621 main ()
17622 {
17623 return 0;
17624 }
17625
17626 _ACEOF
17627 if ac_fn_c_try_link "$LINENO"; then :
17628 gcc_cv_math_func_atanhf=yes
17629 else
17630 gcc_cv_math_func_atanhf=no
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext \
17633 conftest$ac_exeext conftest.$ac_ext
17634 fi
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17636 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17637 if test $gcc_cv_math_func_atanhf = yes; then
17638
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_ATANHF 1
17641 _ACEOF
17642
17643 fi
17644
17645
17646
17647
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17649 $as_echo_n "checking for atanh... " >&6; }
17650 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17651 $as_echo_n "(cached) " >&6
17652 else
17653 if test x$gcc_no_link = xyes; then
17654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17655 fi
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658
17659 #ifdef HAVE_COMPLEX_H
17660 #include <complex.h>
17661 #endif
17662 #ifdef HAVE_MATH_H
17663 #include <math.h>
17664 #endif
17665
17666 int (*ptr)() = (int (*)())atanh;
17667
17668 int
17669 main ()
17670 {
17671 return 0;
17672 }
17673
17674 _ACEOF
17675 if ac_fn_c_try_link "$LINENO"; then :
17676 gcc_cv_math_func_atanh=yes
17677 else
17678 gcc_cv_math_func_atanh=no
17679 fi
17680 rm -f core conftest.err conftest.$ac_objext \
17681 conftest$ac_exeext conftest.$ac_ext
17682 fi
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17684 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17685 if test $gcc_cv_math_func_atanh = yes; then
17686
17687 cat >>confdefs.h <<_ACEOF
17688 #define HAVE_ATANH 1
17689 _ACEOF
17690
17691 fi
17692
17693
17694
17695
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17697 $as_echo_n "checking for atanhl... " >&6; }
17698 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 if test x$gcc_no_link = xyes; then
17702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17703 fi
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706
17707 #ifdef HAVE_COMPLEX_H
17708 #include <complex.h>
17709 #endif
17710 #ifdef HAVE_MATH_H
17711 #include <math.h>
17712 #endif
17713
17714 int (*ptr)() = (int (*)())atanhl;
17715
17716 int
17717 main ()
17718 {
17719 return 0;
17720 }
17721
17722 _ACEOF
17723 if ac_fn_c_try_link "$LINENO"; then :
17724 gcc_cv_math_func_atanhl=yes
17725 else
17726 gcc_cv_math_func_atanhl=no
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17730 fi
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17732 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17733 if test $gcc_cv_math_func_atanhl = yes; then
17734
17735 cat >>confdefs.h <<_ACEOF
17736 #define HAVE_ATANHL 1
17737 _ACEOF
17738
17739 fi
17740
17741
17742
17743
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17745 $as_echo_n "checking for cargf... " >&6; }
17746 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17749 if test x$gcc_no_link = xyes; then
17750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17751 fi
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754
17755 #ifdef HAVE_COMPLEX_H
17756 #include <complex.h>
17757 #endif
17758 #ifdef HAVE_MATH_H
17759 #include <math.h>
17760 #endif
17761
17762 int (*ptr)() = (int (*)())cargf;
17763
17764 int
17765 main ()
17766 {
17767 return 0;
17768 }
17769
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 gcc_cv_math_func_cargf=yes
17773 else
17774 gcc_cv_math_func_cargf=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17780 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17781 if test $gcc_cv_math_func_cargf = yes; then
17782
17783 cat >>confdefs.h <<_ACEOF
17784 #define HAVE_CARGF 1
17785 _ACEOF
17786
17787 fi
17788
17789
17790
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17793 $as_echo_n "checking for carg... " >&6; }
17794 if test "${gcc_cv_math_func_carg+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 if test x$gcc_no_link = xyes; then
17798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17799 fi
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17802
17803 #ifdef HAVE_COMPLEX_H
17804 #include <complex.h>
17805 #endif
17806 #ifdef HAVE_MATH_H
17807 #include <math.h>
17808 #endif
17809
17810 int (*ptr)() = (int (*)())carg;
17811
17812 int
17813 main ()
17814 {
17815 return 0;
17816 }
17817
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"; then :
17820 gcc_cv_math_func_carg=yes
17821 else
17822 gcc_cv_math_func_carg=no
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 fi
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17828 $as_echo "$gcc_cv_math_func_carg" >&6; }
17829 if test $gcc_cv_math_func_carg = yes; then
17830
17831 cat >>confdefs.h <<_ACEOF
17832 #define HAVE_CARG 1
17833 _ACEOF
17834
17835 fi
17836
17837
17838
17839
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17841 $as_echo_n "checking for cargl... " >&6; }
17842 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 if test x$gcc_no_link = xyes; then
17846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17847 fi
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17850
17851 #ifdef HAVE_COMPLEX_H
17852 #include <complex.h>
17853 #endif
17854 #ifdef HAVE_MATH_H
17855 #include <math.h>
17856 #endif
17857
17858 int (*ptr)() = (int (*)())cargl;
17859
17860 int
17861 main ()
17862 {
17863 return 0;
17864 }
17865
17866 _ACEOF
17867 if ac_fn_c_try_link "$LINENO"; then :
17868 gcc_cv_math_func_cargl=yes
17869 else
17870 gcc_cv_math_func_cargl=no
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17876 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17877 if test $gcc_cv_math_func_cargl = yes; then
17878
17879 cat >>confdefs.h <<_ACEOF
17880 #define HAVE_CARGL 1
17881 _ACEOF
17882
17883 fi
17884
17885
17886
17887
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17889 $as_echo_n "checking for ceilf... " >&6; }
17890 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 if test x$gcc_no_link = xyes; then
17894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17895 fi
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17898
17899 #ifdef HAVE_COMPLEX_H
17900 #include <complex.h>
17901 #endif
17902 #ifdef HAVE_MATH_H
17903 #include <math.h>
17904 #endif
17905
17906 int (*ptr)() = (int (*)())ceilf;
17907
17908 int
17909 main ()
17910 {
17911 return 0;
17912 }
17913
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 gcc_cv_math_func_ceilf=yes
17917 else
17918 gcc_cv_math_func_ceilf=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 fi
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17924 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17925 if test $gcc_cv_math_func_ceilf = yes; then
17926
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_CEILF 1
17929 _ACEOF
17930
17931 fi
17932
17933
17934
17935
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17937 $as_echo_n "checking for ceil... " >&6; }
17938 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 if test x$gcc_no_link = xyes; then
17942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17943 fi
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17946
17947 #ifdef HAVE_COMPLEX_H
17948 #include <complex.h>
17949 #endif
17950 #ifdef HAVE_MATH_H
17951 #include <math.h>
17952 #endif
17953
17954 int (*ptr)() = (int (*)())ceil;
17955
17956 int
17957 main ()
17958 {
17959 return 0;
17960 }
17961
17962 _ACEOF
17963 if ac_fn_c_try_link "$LINENO"; then :
17964 gcc_cv_math_func_ceil=yes
17965 else
17966 gcc_cv_math_func_ceil=no
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970 fi
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17972 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17973 if test $gcc_cv_math_func_ceil = yes; then
17974
17975 cat >>confdefs.h <<_ACEOF
17976 #define HAVE_CEIL 1
17977 _ACEOF
17978
17979 fi
17980
17981
17982
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17985 $as_echo_n "checking for ceill... " >&6; }
17986 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 if test x$gcc_no_link = xyes; then
17990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17991 fi
17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17994
17995 #ifdef HAVE_COMPLEX_H
17996 #include <complex.h>
17997 #endif
17998 #ifdef HAVE_MATH_H
17999 #include <math.h>
18000 #endif
18001
18002 int (*ptr)() = (int (*)())ceill;
18003
18004 int
18005 main ()
18006 {
18007 return 0;
18008 }
18009
18010 _ACEOF
18011 if ac_fn_c_try_link "$LINENO"; then :
18012 gcc_cv_math_func_ceill=yes
18013 else
18014 gcc_cv_math_func_ceill=no
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 fi
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18020 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18021 if test $gcc_cv_math_func_ceill = yes; then
18022
18023 cat >>confdefs.h <<_ACEOF
18024 #define HAVE_CEILL 1
18025 _ACEOF
18026
18027 fi
18028
18029
18030
18031
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18033 $as_echo_n "checking for copysignf... " >&6; }
18034 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18035 $as_echo_n "(cached) " >&6
18036 else
18037 if test x$gcc_no_link = xyes; then
18038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18039 fi
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042
18043 #ifdef HAVE_COMPLEX_H
18044 #include <complex.h>
18045 #endif
18046 #ifdef HAVE_MATH_H
18047 #include <math.h>
18048 #endif
18049
18050 int (*ptr)() = (int (*)())copysignf;
18051
18052 int
18053 main ()
18054 {
18055 return 0;
18056 }
18057
18058 _ACEOF
18059 if ac_fn_c_try_link "$LINENO"; then :
18060 gcc_cv_math_func_copysignf=yes
18061 else
18062 gcc_cv_math_func_copysignf=no
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 fi
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18068 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18069 if test $gcc_cv_math_func_copysignf = yes; then
18070
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_COPYSIGNF 1
18073 _ACEOF
18074
18075 fi
18076
18077
18078
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18081 $as_echo_n "checking for copysign... " >&6; }
18082 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18084 else
18085 if test x$gcc_no_link = xyes; then
18086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18087 fi
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18090
18091 #ifdef HAVE_COMPLEX_H
18092 #include <complex.h>
18093 #endif
18094 #ifdef HAVE_MATH_H
18095 #include <math.h>
18096 #endif
18097
18098 int (*ptr)() = (int (*)())copysign;
18099
18100 int
18101 main ()
18102 {
18103 return 0;
18104 }
18105
18106 _ACEOF
18107 if ac_fn_c_try_link "$LINENO"; then :
18108 gcc_cv_math_func_copysign=yes
18109 else
18110 gcc_cv_math_func_copysign=no
18111 fi
18112 rm -f core conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18116 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18117 if test $gcc_cv_math_func_copysign = yes; then
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_COPYSIGN 1
18121 _ACEOF
18122
18123 fi
18124
18125
18126
18127
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18129 $as_echo_n "checking for copysignl... " >&6; }
18130 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18131 $as_echo_n "(cached) " >&6
18132 else
18133 if test x$gcc_no_link = xyes; then
18134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18135 fi
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138
18139 #ifdef HAVE_COMPLEX_H
18140 #include <complex.h>
18141 #endif
18142 #ifdef HAVE_MATH_H
18143 #include <math.h>
18144 #endif
18145
18146 int (*ptr)() = (int (*)())copysignl;
18147
18148 int
18149 main ()
18150 {
18151 return 0;
18152 }
18153
18154 _ACEOF
18155 if ac_fn_c_try_link "$LINENO"; then :
18156 gcc_cv_math_func_copysignl=yes
18157 else
18158 gcc_cv_math_func_copysignl=no
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18162 fi
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18164 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18165 if test $gcc_cv_math_func_copysignl = yes; then
18166
18167 cat >>confdefs.h <<_ACEOF
18168 #define HAVE_COPYSIGNL 1
18169 _ACEOF
18170
18171 fi
18172
18173
18174
18175
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18177 $as_echo_n "checking for cosf... " >&6; }
18178 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18180 else
18181 if test x$gcc_no_link = xyes; then
18182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18183 fi
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186
18187 #ifdef HAVE_COMPLEX_H
18188 #include <complex.h>
18189 #endif
18190 #ifdef HAVE_MATH_H
18191 #include <math.h>
18192 #endif
18193
18194 int (*ptr)() = (int (*)())cosf;
18195
18196 int
18197 main ()
18198 {
18199 return 0;
18200 }
18201
18202 _ACEOF
18203 if ac_fn_c_try_link "$LINENO"; then :
18204 gcc_cv_math_func_cosf=yes
18205 else
18206 gcc_cv_math_func_cosf=no
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18212 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18213 if test $gcc_cv_math_func_cosf = yes; then
18214
18215 cat >>confdefs.h <<_ACEOF
18216 #define HAVE_COSF 1
18217 _ACEOF
18218
18219 fi
18220
18221
18222
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18225 $as_echo_n "checking for cos... " >&6; }
18226 if test "${gcc_cv_math_func_cos+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 if test x$gcc_no_link = xyes; then
18230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18231 fi
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234
18235 #ifdef HAVE_COMPLEX_H
18236 #include <complex.h>
18237 #endif
18238 #ifdef HAVE_MATH_H
18239 #include <math.h>
18240 #endif
18241
18242 int (*ptr)() = (int (*)())cos;
18243
18244 int
18245 main ()
18246 {
18247 return 0;
18248 }
18249
18250 _ACEOF
18251 if ac_fn_c_try_link "$LINENO"; then :
18252 gcc_cv_math_func_cos=yes
18253 else
18254 gcc_cv_math_func_cos=no
18255 fi
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 fi
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18260 $as_echo "$gcc_cv_math_func_cos" >&6; }
18261 if test $gcc_cv_math_func_cos = yes; then
18262
18263 cat >>confdefs.h <<_ACEOF
18264 #define HAVE_COS 1
18265 _ACEOF
18266
18267 fi
18268
18269
18270
18271
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18273 $as_echo_n "checking for cosl... " >&6; }
18274 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 if test x$gcc_no_link = xyes; then
18278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18279 fi
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282
18283 #ifdef HAVE_COMPLEX_H
18284 #include <complex.h>
18285 #endif
18286 #ifdef HAVE_MATH_H
18287 #include <math.h>
18288 #endif
18289
18290 int (*ptr)() = (int (*)())cosl;
18291
18292 int
18293 main ()
18294 {
18295 return 0;
18296 }
18297
18298 _ACEOF
18299 if ac_fn_c_try_link "$LINENO"; then :
18300 gcc_cv_math_func_cosl=yes
18301 else
18302 gcc_cv_math_func_cosl=no
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 fi
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18308 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18309 if test $gcc_cv_math_func_cosl = yes; then
18310
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_COSL 1
18313 _ACEOF
18314
18315 fi
18316
18317
18318
18319
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18321 $as_echo_n "checking for ccosf... " >&6; }
18322 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 if test x$gcc_no_link = xyes; then
18326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18327 fi
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18330
18331 #ifdef HAVE_COMPLEX_H
18332 #include <complex.h>
18333 #endif
18334 #ifdef HAVE_MATH_H
18335 #include <math.h>
18336 #endif
18337
18338 int (*ptr)() = (int (*)())ccosf;
18339
18340 int
18341 main ()
18342 {
18343 return 0;
18344 }
18345
18346 _ACEOF
18347 if ac_fn_c_try_link "$LINENO"; then :
18348 gcc_cv_math_func_ccosf=yes
18349 else
18350 gcc_cv_math_func_ccosf=no
18351 fi
18352 rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18356 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18357 if test $gcc_cv_math_func_ccosf = yes; then
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_CCOSF 1
18361 _ACEOF
18362
18363 fi
18364
18365
18366
18367
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18369 $as_echo_n "checking for ccos... " >&6; }
18370 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 if test x$gcc_no_link = xyes; then
18374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18375 fi
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18378
18379 #ifdef HAVE_COMPLEX_H
18380 #include <complex.h>
18381 #endif
18382 #ifdef HAVE_MATH_H
18383 #include <math.h>
18384 #endif
18385
18386 int (*ptr)() = (int (*)())ccos;
18387
18388 int
18389 main ()
18390 {
18391 return 0;
18392 }
18393
18394 _ACEOF
18395 if ac_fn_c_try_link "$LINENO"; then :
18396 gcc_cv_math_func_ccos=yes
18397 else
18398 gcc_cv_math_func_ccos=no
18399 fi
18400 rm -f core conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402 fi
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18404 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18405 if test $gcc_cv_math_func_ccos = yes; then
18406
18407 cat >>confdefs.h <<_ACEOF
18408 #define HAVE_CCOS 1
18409 _ACEOF
18410
18411 fi
18412
18413
18414
18415
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18417 $as_echo_n "checking for ccosl... " >&6; }
18418 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18419 $as_echo_n "(cached) " >&6
18420 else
18421 if test x$gcc_no_link = xyes; then
18422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18423 fi
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426
18427 #ifdef HAVE_COMPLEX_H
18428 #include <complex.h>
18429 #endif
18430 #ifdef HAVE_MATH_H
18431 #include <math.h>
18432 #endif
18433
18434 int (*ptr)() = (int (*)())ccosl;
18435
18436 int
18437 main ()
18438 {
18439 return 0;
18440 }
18441
18442 _ACEOF
18443 if ac_fn_c_try_link "$LINENO"; then :
18444 gcc_cv_math_func_ccosl=yes
18445 else
18446 gcc_cv_math_func_ccosl=no
18447 fi
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 fi
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18452 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18453 if test $gcc_cv_math_func_ccosl = yes; then
18454
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_CCOSL 1
18457 _ACEOF
18458
18459 fi
18460
18461
18462
18463
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18465 $as_echo_n "checking for coshf... " >&6; }
18466 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18467 $as_echo_n "(cached) " >&6
18468 else
18469 if test x$gcc_no_link = xyes; then
18470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18471 fi
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474
18475 #ifdef HAVE_COMPLEX_H
18476 #include <complex.h>
18477 #endif
18478 #ifdef HAVE_MATH_H
18479 #include <math.h>
18480 #endif
18481
18482 int (*ptr)() = (int (*)())coshf;
18483
18484 int
18485 main ()
18486 {
18487 return 0;
18488 }
18489
18490 _ACEOF
18491 if ac_fn_c_try_link "$LINENO"; then :
18492 gcc_cv_math_func_coshf=yes
18493 else
18494 gcc_cv_math_func_coshf=no
18495 fi
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18500 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18501 if test $gcc_cv_math_func_coshf = yes; then
18502
18503 cat >>confdefs.h <<_ACEOF
18504 #define HAVE_COSHF 1
18505 _ACEOF
18506
18507 fi
18508
18509
18510
18511
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18513 $as_echo_n "checking for cosh... " >&6; }
18514 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18515 $as_echo_n "(cached) " >&6
18516 else
18517 if test x$gcc_no_link = xyes; then
18518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18519 fi
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522
18523 #ifdef HAVE_COMPLEX_H
18524 #include <complex.h>
18525 #endif
18526 #ifdef HAVE_MATH_H
18527 #include <math.h>
18528 #endif
18529
18530 int (*ptr)() = (int (*)())cosh;
18531
18532 int
18533 main ()
18534 {
18535 return 0;
18536 }
18537
18538 _ACEOF
18539 if ac_fn_c_try_link "$LINENO"; then :
18540 gcc_cv_math_func_cosh=yes
18541 else
18542 gcc_cv_math_func_cosh=no
18543 fi
18544 rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext conftest.$ac_ext
18546 fi
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18548 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18549 if test $gcc_cv_math_func_cosh = yes; then
18550
18551 cat >>confdefs.h <<_ACEOF
18552 #define HAVE_COSH 1
18553 _ACEOF
18554
18555 fi
18556
18557
18558
18559
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18561 $as_echo_n "checking for coshl... " >&6; }
18562 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18563 $as_echo_n "(cached) " >&6
18564 else
18565 if test x$gcc_no_link = xyes; then
18566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18567 fi
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h. */
18570
18571 #ifdef HAVE_COMPLEX_H
18572 #include <complex.h>
18573 #endif
18574 #ifdef HAVE_MATH_H
18575 #include <math.h>
18576 #endif
18577
18578 int (*ptr)() = (int (*)())coshl;
18579
18580 int
18581 main ()
18582 {
18583 return 0;
18584 }
18585
18586 _ACEOF
18587 if ac_fn_c_try_link "$LINENO"; then :
18588 gcc_cv_math_func_coshl=yes
18589 else
18590 gcc_cv_math_func_coshl=no
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext \
18593 conftest$ac_exeext conftest.$ac_ext
18594 fi
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18596 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18597 if test $gcc_cv_math_func_coshl = yes; then
18598
18599 cat >>confdefs.h <<_ACEOF
18600 #define HAVE_COSHL 1
18601 _ACEOF
18602
18603 fi
18604
18605
18606
18607
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18609 $as_echo_n "checking for ccoshf... " >&6; }
18610 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18611 $as_echo_n "(cached) " >&6
18612 else
18613 if test x$gcc_no_link = xyes; then
18614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18615 fi
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18618
18619 #ifdef HAVE_COMPLEX_H
18620 #include <complex.h>
18621 #endif
18622 #ifdef HAVE_MATH_H
18623 #include <math.h>
18624 #endif
18625
18626 int (*ptr)() = (int (*)())ccoshf;
18627
18628 int
18629 main ()
18630 {
18631 return 0;
18632 }
18633
18634 _ACEOF
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 gcc_cv_math_func_ccoshf=yes
18637 else
18638 gcc_cv_math_func_ccoshf=no
18639 fi
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 fi
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18644 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18645 if test $gcc_cv_math_func_ccoshf = yes; then
18646
18647 cat >>confdefs.h <<_ACEOF
18648 #define HAVE_CCOSHF 1
18649 _ACEOF
18650
18651 fi
18652
18653
18654
18655
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18657 $as_echo_n "checking for ccosh... " >&6; }
18658 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18659 $as_echo_n "(cached) " >&6
18660 else
18661 if test x$gcc_no_link = xyes; then
18662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18663 fi
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666
18667 #ifdef HAVE_COMPLEX_H
18668 #include <complex.h>
18669 #endif
18670 #ifdef HAVE_MATH_H
18671 #include <math.h>
18672 #endif
18673
18674 int (*ptr)() = (int (*)())ccosh;
18675
18676 int
18677 main ()
18678 {
18679 return 0;
18680 }
18681
18682 _ACEOF
18683 if ac_fn_c_try_link "$LINENO"; then :
18684 gcc_cv_math_func_ccosh=yes
18685 else
18686 gcc_cv_math_func_ccosh=no
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext \
18689 conftest$ac_exeext conftest.$ac_ext
18690 fi
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18692 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18693 if test $gcc_cv_math_func_ccosh = yes; then
18694
18695 cat >>confdefs.h <<_ACEOF
18696 #define HAVE_CCOSH 1
18697 _ACEOF
18698
18699 fi
18700
18701
18702
18703
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18705 $as_echo_n "checking for ccoshl... " >&6; }
18706 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709 if test x$gcc_no_link = xyes; then
18710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18711 fi
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714
18715 #ifdef HAVE_COMPLEX_H
18716 #include <complex.h>
18717 #endif
18718 #ifdef HAVE_MATH_H
18719 #include <math.h>
18720 #endif
18721
18722 int (*ptr)() = (int (*)())ccoshl;
18723
18724 int
18725 main ()
18726 {
18727 return 0;
18728 }
18729
18730 _ACEOF
18731 if ac_fn_c_try_link "$LINENO"; then :
18732 gcc_cv_math_func_ccoshl=yes
18733 else
18734 gcc_cv_math_func_ccoshl=no
18735 fi
18736 rm -f core conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18740 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18741 if test $gcc_cv_math_func_ccoshl = yes; then
18742
18743 cat >>confdefs.h <<_ACEOF
18744 #define HAVE_CCOSHL 1
18745 _ACEOF
18746
18747 fi
18748
18749
18750
18751
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18753 $as_echo_n "checking for expf... " >&6; }
18754 if test "${gcc_cv_math_func_expf+set}" = set; then :
18755 $as_echo_n "(cached) " >&6
18756 else
18757 if test x$gcc_no_link = xyes; then
18758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18759 fi
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18762
18763 #ifdef HAVE_COMPLEX_H
18764 #include <complex.h>
18765 #endif
18766 #ifdef HAVE_MATH_H
18767 #include <math.h>
18768 #endif
18769
18770 int (*ptr)() = (int (*)())expf;
18771
18772 int
18773 main ()
18774 {
18775 return 0;
18776 }
18777
18778 _ACEOF
18779 if ac_fn_c_try_link "$LINENO"; then :
18780 gcc_cv_math_func_expf=yes
18781 else
18782 gcc_cv_math_func_expf=no
18783 fi
18784 rm -f core conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18786 fi
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18788 $as_echo "$gcc_cv_math_func_expf" >&6; }
18789 if test $gcc_cv_math_func_expf = yes; then
18790
18791 cat >>confdefs.h <<_ACEOF
18792 #define HAVE_EXPF 1
18793 _ACEOF
18794
18795 fi
18796
18797
18798
18799
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18801 $as_echo_n "checking for exp... " >&6; }
18802 if test "${gcc_cv_math_func_exp+set}" = set; then :
18803 $as_echo_n "(cached) " >&6
18804 else
18805 if test x$gcc_no_link = xyes; then
18806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18807 fi
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18810
18811 #ifdef HAVE_COMPLEX_H
18812 #include <complex.h>
18813 #endif
18814 #ifdef HAVE_MATH_H
18815 #include <math.h>
18816 #endif
18817
18818 int (*ptr)() = (int (*)())exp;
18819
18820 int
18821 main ()
18822 {
18823 return 0;
18824 }
18825
18826 _ACEOF
18827 if ac_fn_c_try_link "$LINENO"; then :
18828 gcc_cv_math_func_exp=yes
18829 else
18830 gcc_cv_math_func_exp=no
18831 fi
18832 rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18834 fi
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18836 $as_echo "$gcc_cv_math_func_exp" >&6; }
18837 if test $gcc_cv_math_func_exp = yes; then
18838
18839 cat >>confdefs.h <<_ACEOF
18840 #define HAVE_EXP 1
18841 _ACEOF
18842
18843 fi
18844
18845
18846
18847
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18849 $as_echo_n "checking for expl... " >&6; }
18850 if test "${gcc_cv_math_func_expl+set}" = set; then :
18851 $as_echo_n "(cached) " >&6
18852 else
18853 if test x$gcc_no_link = xyes; then
18854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18855 fi
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858
18859 #ifdef HAVE_COMPLEX_H
18860 #include <complex.h>
18861 #endif
18862 #ifdef HAVE_MATH_H
18863 #include <math.h>
18864 #endif
18865
18866 int (*ptr)() = (int (*)())expl;
18867
18868 int
18869 main ()
18870 {
18871 return 0;
18872 }
18873
18874 _ACEOF
18875 if ac_fn_c_try_link "$LINENO"; then :
18876 gcc_cv_math_func_expl=yes
18877 else
18878 gcc_cv_math_func_expl=no
18879 fi
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 fi
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18884 $as_echo "$gcc_cv_math_func_expl" >&6; }
18885 if test $gcc_cv_math_func_expl = yes; then
18886
18887 cat >>confdefs.h <<_ACEOF
18888 #define HAVE_EXPL 1
18889 _ACEOF
18890
18891 fi
18892
18893
18894
18895
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18897 $as_echo_n "checking for cexpf... " >&6; }
18898 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18899 $as_echo_n "(cached) " >&6
18900 else
18901 if test x$gcc_no_link = xyes; then
18902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18903 fi
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18906
18907 #ifdef HAVE_COMPLEX_H
18908 #include <complex.h>
18909 #endif
18910 #ifdef HAVE_MATH_H
18911 #include <math.h>
18912 #endif
18913
18914 int (*ptr)() = (int (*)())cexpf;
18915
18916 int
18917 main ()
18918 {
18919 return 0;
18920 }
18921
18922 _ACEOF
18923 if ac_fn_c_try_link "$LINENO"; then :
18924 gcc_cv_math_func_cexpf=yes
18925 else
18926 gcc_cv_math_func_cexpf=no
18927 fi
18928 rm -f core conftest.err conftest.$ac_objext \
18929 conftest$ac_exeext conftest.$ac_ext
18930 fi
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18932 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18933 if test $gcc_cv_math_func_cexpf = yes; then
18934
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_CEXPF 1
18937 _ACEOF
18938
18939 fi
18940
18941
18942
18943
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18945 $as_echo_n "checking for cexp... " >&6; }
18946 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18948 else
18949 if test x$gcc_no_link = xyes; then
18950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18951 fi
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18954
18955 #ifdef HAVE_COMPLEX_H
18956 #include <complex.h>
18957 #endif
18958 #ifdef HAVE_MATH_H
18959 #include <math.h>
18960 #endif
18961
18962 int (*ptr)() = (int (*)())cexp;
18963
18964 int
18965 main ()
18966 {
18967 return 0;
18968 }
18969
18970 _ACEOF
18971 if ac_fn_c_try_link "$LINENO"; then :
18972 gcc_cv_math_func_cexp=yes
18973 else
18974 gcc_cv_math_func_cexp=no
18975 fi
18976 rm -f core conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
18978 fi
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18980 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18981 if test $gcc_cv_math_func_cexp = yes; then
18982
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_CEXP 1
18985 _ACEOF
18986
18987 fi
18988
18989
18990
18991
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18993 $as_echo_n "checking for cexpl... " >&6; }
18994 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18995 $as_echo_n "(cached) " >&6
18996 else
18997 if test x$gcc_no_link = xyes; then
18998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18999 fi
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002
19003 #ifdef HAVE_COMPLEX_H
19004 #include <complex.h>
19005 #endif
19006 #ifdef HAVE_MATH_H
19007 #include <math.h>
19008 #endif
19009
19010 int (*ptr)() = (int (*)())cexpl;
19011
19012 int
19013 main ()
19014 {
19015 return 0;
19016 }
19017
19018 _ACEOF
19019 if ac_fn_c_try_link "$LINENO"; then :
19020 gcc_cv_math_func_cexpl=yes
19021 else
19022 gcc_cv_math_func_cexpl=no
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 fi
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19028 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19029 if test $gcc_cv_math_func_cexpl = yes; then
19030
19031 cat >>confdefs.h <<_ACEOF
19032 #define HAVE_CEXPL 1
19033 _ACEOF
19034
19035 fi
19036
19037
19038
19039
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19041 $as_echo_n "checking for fabsf... " >&6; }
19042 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19043 $as_echo_n "(cached) " >&6
19044 else
19045 if test x$gcc_no_link = xyes; then
19046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19047 fi
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19050
19051 #ifdef HAVE_COMPLEX_H
19052 #include <complex.h>
19053 #endif
19054 #ifdef HAVE_MATH_H
19055 #include <math.h>
19056 #endif
19057
19058 int (*ptr)() = (int (*)())fabsf;
19059
19060 int
19061 main ()
19062 {
19063 return 0;
19064 }
19065
19066 _ACEOF
19067 if ac_fn_c_try_link "$LINENO"; then :
19068 gcc_cv_math_func_fabsf=yes
19069 else
19070 gcc_cv_math_func_fabsf=no
19071 fi
19072 rm -f core conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19076 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19077 if test $gcc_cv_math_func_fabsf = yes; then
19078
19079 cat >>confdefs.h <<_ACEOF
19080 #define HAVE_FABSF 1
19081 _ACEOF
19082
19083 fi
19084
19085
19086
19087
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19089 $as_echo_n "checking for fabs... " >&6; }
19090 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19091 $as_echo_n "(cached) " >&6
19092 else
19093 if test x$gcc_no_link = xyes; then
19094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19095 fi
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098
19099 #ifdef HAVE_COMPLEX_H
19100 #include <complex.h>
19101 #endif
19102 #ifdef HAVE_MATH_H
19103 #include <math.h>
19104 #endif
19105
19106 int (*ptr)() = (int (*)())fabs;
19107
19108 int
19109 main ()
19110 {
19111 return 0;
19112 }
19113
19114 _ACEOF
19115 if ac_fn_c_try_link "$LINENO"; then :
19116 gcc_cv_math_func_fabs=yes
19117 else
19118 gcc_cv_math_func_fabs=no
19119 fi
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 fi
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19124 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19125 if test $gcc_cv_math_func_fabs = yes; then
19126
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_FABS 1
19129 _ACEOF
19130
19131 fi
19132
19133
19134
19135
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19137 $as_echo_n "checking for fabsl... " >&6; }
19138 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19139 $as_echo_n "(cached) " >&6
19140 else
19141 if test x$gcc_no_link = xyes; then
19142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19143 fi
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h. */
19146
19147 #ifdef HAVE_COMPLEX_H
19148 #include <complex.h>
19149 #endif
19150 #ifdef HAVE_MATH_H
19151 #include <math.h>
19152 #endif
19153
19154 int (*ptr)() = (int (*)())fabsl;
19155
19156 int
19157 main ()
19158 {
19159 return 0;
19160 }
19161
19162 _ACEOF
19163 if ac_fn_c_try_link "$LINENO"; then :
19164 gcc_cv_math_func_fabsl=yes
19165 else
19166 gcc_cv_math_func_fabsl=no
19167 fi
19168 rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 fi
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19172 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19173 if test $gcc_cv_math_func_fabsl = yes; then
19174
19175 cat >>confdefs.h <<_ACEOF
19176 #define HAVE_FABSL 1
19177 _ACEOF
19178
19179 fi
19180
19181
19182
19183
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19185 $as_echo_n "checking for cabsf... " >&6; }
19186 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19187 $as_echo_n "(cached) " >&6
19188 else
19189 if test x$gcc_no_link = xyes; then
19190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19191 fi
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19194
19195 #ifdef HAVE_COMPLEX_H
19196 #include <complex.h>
19197 #endif
19198 #ifdef HAVE_MATH_H
19199 #include <math.h>
19200 #endif
19201
19202 int (*ptr)() = (int (*)())cabsf;
19203
19204 int
19205 main ()
19206 {
19207 return 0;
19208 }
19209
19210 _ACEOF
19211 if ac_fn_c_try_link "$LINENO"; then :
19212 gcc_cv_math_func_cabsf=yes
19213 else
19214 gcc_cv_math_func_cabsf=no
19215 fi
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 fi
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19220 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19221 if test $gcc_cv_math_func_cabsf = yes; then
19222
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_CABSF 1
19225 _ACEOF
19226
19227 fi
19228
19229
19230
19231
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19233 $as_echo_n "checking for cabs... " >&6; }
19234 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19235 $as_echo_n "(cached) " >&6
19236 else
19237 if test x$gcc_no_link = xyes; then
19238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19239 fi
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242
19243 #ifdef HAVE_COMPLEX_H
19244 #include <complex.h>
19245 #endif
19246 #ifdef HAVE_MATH_H
19247 #include <math.h>
19248 #endif
19249
19250 int (*ptr)() = (int (*)())cabs;
19251
19252 int
19253 main ()
19254 {
19255 return 0;
19256 }
19257
19258 _ACEOF
19259 if ac_fn_c_try_link "$LINENO"; then :
19260 gcc_cv_math_func_cabs=yes
19261 else
19262 gcc_cv_math_func_cabs=no
19263 fi
19264 rm -f core conftest.err conftest.$ac_objext \
19265 conftest$ac_exeext conftest.$ac_ext
19266 fi
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19268 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19269 if test $gcc_cv_math_func_cabs = yes; then
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_CABS 1
19273 _ACEOF
19274
19275 fi
19276
19277
19278
19279
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19281 $as_echo_n "checking for cabsl... " >&6; }
19282 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19283 $as_echo_n "(cached) " >&6
19284 else
19285 if test x$gcc_no_link = xyes; then
19286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19287 fi
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290
19291 #ifdef HAVE_COMPLEX_H
19292 #include <complex.h>
19293 #endif
19294 #ifdef HAVE_MATH_H
19295 #include <math.h>
19296 #endif
19297
19298 int (*ptr)() = (int (*)())cabsl;
19299
19300 int
19301 main ()
19302 {
19303 return 0;
19304 }
19305
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19308 gcc_cv_math_func_cabsl=yes
19309 else
19310 gcc_cv_math_func_cabsl=no
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19316 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19317 if test $gcc_cv_math_func_cabsl = yes; then
19318
19319 cat >>confdefs.h <<_ACEOF
19320 #define HAVE_CABSL 1
19321 _ACEOF
19322
19323 fi
19324
19325
19326
19327
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19329 $as_echo_n "checking for floorf... " >&6; }
19330 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19331 $as_echo_n "(cached) " >&6
19332 else
19333 if test x$gcc_no_link = xyes; then
19334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19335 fi
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338
19339 #ifdef HAVE_COMPLEX_H
19340 #include <complex.h>
19341 #endif
19342 #ifdef HAVE_MATH_H
19343 #include <math.h>
19344 #endif
19345
19346 int (*ptr)() = (int (*)())floorf;
19347
19348 int
19349 main ()
19350 {
19351 return 0;
19352 }
19353
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"; then :
19356 gcc_cv_math_func_floorf=yes
19357 else
19358 gcc_cv_math_func_floorf=no
19359 fi
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 fi
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19364 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19365 if test $gcc_cv_math_func_floorf = yes; then
19366
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_FLOORF 1
19369 _ACEOF
19370
19371 fi
19372
19373
19374
19375
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19377 $as_echo_n "checking for floor... " >&6; }
19378 if test "${gcc_cv_math_func_floor+set}" = set; then :
19379 $as_echo_n "(cached) " >&6
19380 else
19381 if test x$gcc_no_link = xyes; then
19382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19383 fi
19384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19386
19387 #ifdef HAVE_COMPLEX_H
19388 #include <complex.h>
19389 #endif
19390 #ifdef HAVE_MATH_H
19391 #include <math.h>
19392 #endif
19393
19394 int (*ptr)() = (int (*)())floor;
19395
19396 int
19397 main ()
19398 {
19399 return 0;
19400 }
19401
19402 _ACEOF
19403 if ac_fn_c_try_link "$LINENO"; then :
19404 gcc_cv_math_func_floor=yes
19405 else
19406 gcc_cv_math_func_floor=no
19407 fi
19408 rm -f core conftest.err conftest.$ac_objext \
19409 conftest$ac_exeext conftest.$ac_ext
19410 fi
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19412 $as_echo "$gcc_cv_math_func_floor" >&6; }
19413 if test $gcc_cv_math_func_floor = yes; then
19414
19415 cat >>confdefs.h <<_ACEOF
19416 #define HAVE_FLOOR 1
19417 _ACEOF
19418
19419 fi
19420
19421
19422
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19425 $as_echo_n "checking for floorl... " >&6; }
19426 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19427 $as_echo_n "(cached) " >&6
19428 else
19429 if test x$gcc_no_link = xyes; then
19430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19431 fi
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434
19435 #ifdef HAVE_COMPLEX_H
19436 #include <complex.h>
19437 #endif
19438 #ifdef HAVE_MATH_H
19439 #include <math.h>
19440 #endif
19441
19442 int (*ptr)() = (int (*)())floorl;
19443
19444 int
19445 main ()
19446 {
19447 return 0;
19448 }
19449
19450 _ACEOF
19451 if ac_fn_c_try_link "$LINENO"; then :
19452 gcc_cv_math_func_floorl=yes
19453 else
19454 gcc_cv_math_func_floorl=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext \
19457 conftest$ac_exeext conftest.$ac_ext
19458 fi
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19460 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19461 if test $gcc_cv_math_func_floorl = yes; then
19462
19463 cat >>confdefs.h <<_ACEOF
19464 #define HAVE_FLOORL 1
19465 _ACEOF
19466
19467 fi
19468
19469
19470
19471
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19473 $as_echo_n "checking for fmodf... " >&6; }
19474 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19475 $as_echo_n "(cached) " >&6
19476 else
19477 if test x$gcc_no_link = xyes; then
19478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19479 fi
19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19482
19483 #ifdef HAVE_COMPLEX_H
19484 #include <complex.h>
19485 #endif
19486 #ifdef HAVE_MATH_H
19487 #include <math.h>
19488 #endif
19489
19490 int (*ptr)() = (int (*)())fmodf;
19491
19492 int
19493 main ()
19494 {
19495 return 0;
19496 }
19497
19498 _ACEOF
19499 if ac_fn_c_try_link "$LINENO"; then :
19500 gcc_cv_math_func_fmodf=yes
19501 else
19502 gcc_cv_math_func_fmodf=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext \
19505 conftest$ac_exeext conftest.$ac_ext
19506 fi
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19508 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19509 if test $gcc_cv_math_func_fmodf = yes; then
19510
19511 cat >>confdefs.h <<_ACEOF
19512 #define HAVE_FMODF 1
19513 _ACEOF
19514
19515 fi
19516
19517
19518
19519
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19521 $as_echo_n "checking for fmod... " >&6; }
19522 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19523 $as_echo_n "(cached) " >&6
19524 else
19525 if test x$gcc_no_link = xyes; then
19526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19527 fi
19528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h. */
19530
19531 #ifdef HAVE_COMPLEX_H
19532 #include <complex.h>
19533 #endif
19534 #ifdef HAVE_MATH_H
19535 #include <math.h>
19536 #endif
19537
19538 int (*ptr)() = (int (*)())fmod;
19539
19540 int
19541 main ()
19542 {
19543 return 0;
19544 }
19545
19546 _ACEOF
19547 if ac_fn_c_try_link "$LINENO"; then :
19548 gcc_cv_math_func_fmod=yes
19549 else
19550 gcc_cv_math_func_fmod=no
19551 fi
19552 rm -f core conftest.err conftest.$ac_objext \
19553 conftest$ac_exeext conftest.$ac_ext
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19556 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19557 if test $gcc_cv_math_func_fmod = yes; then
19558
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_FMOD 1
19561 _ACEOF
19562
19563 fi
19564
19565
19566
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19569 $as_echo_n "checking for fmodl... " >&6; }
19570 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 if test x$gcc_no_link = xyes; then
19574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19575 fi
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19578
19579 #ifdef HAVE_COMPLEX_H
19580 #include <complex.h>
19581 #endif
19582 #ifdef HAVE_MATH_H
19583 #include <math.h>
19584 #endif
19585
19586 int (*ptr)() = (int (*)())fmodl;
19587
19588 int
19589 main ()
19590 {
19591 return 0;
19592 }
19593
19594 _ACEOF
19595 if ac_fn_c_try_link "$LINENO"; then :
19596 gcc_cv_math_func_fmodl=yes
19597 else
19598 gcc_cv_math_func_fmodl=no
19599 fi
19600 rm -f core conftest.err conftest.$ac_objext \
19601 conftest$ac_exeext conftest.$ac_ext
19602 fi
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19604 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19605 if test $gcc_cv_math_func_fmodl = yes; then
19606
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_FMODL 1
19609 _ACEOF
19610
19611 fi
19612
19613
19614
19615
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19617 $as_echo_n "checking for frexpf... " >&6; }
19618 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19619 $as_echo_n "(cached) " >&6
19620 else
19621 if test x$gcc_no_link = xyes; then
19622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19623 fi
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19626
19627 #ifdef HAVE_COMPLEX_H
19628 #include <complex.h>
19629 #endif
19630 #ifdef HAVE_MATH_H
19631 #include <math.h>
19632 #endif
19633
19634 int (*ptr)() = (int (*)())frexpf;
19635
19636 int
19637 main ()
19638 {
19639 return 0;
19640 }
19641
19642 _ACEOF
19643 if ac_fn_c_try_link "$LINENO"; then :
19644 gcc_cv_math_func_frexpf=yes
19645 else
19646 gcc_cv_math_func_frexpf=no
19647 fi
19648 rm -f core conftest.err conftest.$ac_objext \
19649 conftest$ac_exeext conftest.$ac_ext
19650 fi
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19652 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19653 if test $gcc_cv_math_func_frexpf = yes; then
19654
19655 cat >>confdefs.h <<_ACEOF
19656 #define HAVE_FREXPF 1
19657 _ACEOF
19658
19659 fi
19660
19661
19662
19663
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19665 $as_echo_n "checking for frexp... " >&6; }
19666 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19667 $as_echo_n "(cached) " >&6
19668 else
19669 if test x$gcc_no_link = xyes; then
19670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19671 fi
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19674
19675 #ifdef HAVE_COMPLEX_H
19676 #include <complex.h>
19677 #endif
19678 #ifdef HAVE_MATH_H
19679 #include <math.h>
19680 #endif
19681
19682 int (*ptr)() = (int (*)())frexp;
19683
19684 int
19685 main ()
19686 {
19687 return 0;
19688 }
19689
19690 _ACEOF
19691 if ac_fn_c_try_link "$LINENO"; then :
19692 gcc_cv_math_func_frexp=yes
19693 else
19694 gcc_cv_math_func_frexp=no
19695 fi
19696 rm -f core conftest.err conftest.$ac_objext \
19697 conftest$ac_exeext conftest.$ac_ext
19698 fi
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19700 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19701 if test $gcc_cv_math_func_frexp = yes; then
19702
19703 cat >>confdefs.h <<_ACEOF
19704 #define HAVE_FREXP 1
19705 _ACEOF
19706
19707 fi
19708
19709
19710
19711
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19713 $as_echo_n "checking for frexpl... " >&6; }
19714 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19715 $as_echo_n "(cached) " >&6
19716 else
19717 if test x$gcc_no_link = xyes; then
19718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19719 fi
19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19722
19723 #ifdef HAVE_COMPLEX_H
19724 #include <complex.h>
19725 #endif
19726 #ifdef HAVE_MATH_H
19727 #include <math.h>
19728 #endif
19729
19730 int (*ptr)() = (int (*)())frexpl;
19731
19732 int
19733 main ()
19734 {
19735 return 0;
19736 }
19737
19738 _ACEOF
19739 if ac_fn_c_try_link "$LINENO"; then :
19740 gcc_cv_math_func_frexpl=yes
19741 else
19742 gcc_cv_math_func_frexpl=no
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19746 fi
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19748 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19749 if test $gcc_cv_math_func_frexpl = yes; then
19750
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_FREXPL 1
19753 _ACEOF
19754
19755 fi
19756
19757
19758
19759
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19761 $as_echo_n "checking for hypotf... " >&6; }
19762 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19763 $as_echo_n "(cached) " >&6
19764 else
19765 if test x$gcc_no_link = xyes; then
19766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19767 fi
19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19770
19771 #ifdef HAVE_COMPLEX_H
19772 #include <complex.h>
19773 #endif
19774 #ifdef HAVE_MATH_H
19775 #include <math.h>
19776 #endif
19777
19778 int (*ptr)() = (int (*)())hypotf;
19779
19780 int
19781 main ()
19782 {
19783 return 0;
19784 }
19785
19786 _ACEOF
19787 if ac_fn_c_try_link "$LINENO"; then :
19788 gcc_cv_math_func_hypotf=yes
19789 else
19790 gcc_cv_math_func_hypotf=no
19791 fi
19792 rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 fi
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19796 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19797 if test $gcc_cv_math_func_hypotf = yes; then
19798
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_HYPOTF 1
19801 _ACEOF
19802
19803 fi
19804
19805
19806
19807
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19809 $as_echo_n "checking for hypot... " >&6; }
19810 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19811 $as_echo_n "(cached) " >&6
19812 else
19813 if test x$gcc_no_link = xyes; then
19814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19815 fi
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818
19819 #ifdef HAVE_COMPLEX_H
19820 #include <complex.h>
19821 #endif
19822 #ifdef HAVE_MATH_H
19823 #include <math.h>
19824 #endif
19825
19826 int (*ptr)() = (int (*)())hypot;
19827
19828 int
19829 main ()
19830 {
19831 return 0;
19832 }
19833
19834 _ACEOF
19835 if ac_fn_c_try_link "$LINENO"; then :
19836 gcc_cv_math_func_hypot=yes
19837 else
19838 gcc_cv_math_func_hypot=no
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19844 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19845 if test $gcc_cv_math_func_hypot = yes; then
19846
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_HYPOT 1
19849 _ACEOF
19850
19851 fi
19852
19853
19854
19855
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19857 $as_echo_n "checking for hypotl... " >&6; }
19858 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19860 else
19861 if test x$gcc_no_link = xyes; then
19862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19863 fi
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866
19867 #ifdef HAVE_COMPLEX_H
19868 #include <complex.h>
19869 #endif
19870 #ifdef HAVE_MATH_H
19871 #include <math.h>
19872 #endif
19873
19874 int (*ptr)() = (int (*)())hypotl;
19875
19876 int
19877 main ()
19878 {
19879 return 0;
19880 }
19881
19882 _ACEOF
19883 if ac_fn_c_try_link "$LINENO"; then :
19884 gcc_cv_math_func_hypotl=yes
19885 else
19886 gcc_cv_math_func_hypotl=no
19887 fi
19888 rm -f core conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 fi
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19892 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19893 if test $gcc_cv_math_func_hypotl = yes; then
19894
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_HYPOTL 1
19897 _ACEOF
19898
19899 fi
19900
19901
19902
19903
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19905 $as_echo_n "checking for ldexpf... " >&6; }
19906 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19907 $as_echo_n "(cached) " >&6
19908 else
19909 if test x$gcc_no_link = xyes; then
19910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19911 fi
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914
19915 #ifdef HAVE_COMPLEX_H
19916 #include <complex.h>
19917 #endif
19918 #ifdef HAVE_MATH_H
19919 #include <math.h>
19920 #endif
19921
19922 int (*ptr)() = (int (*)())ldexpf;
19923
19924 int
19925 main ()
19926 {
19927 return 0;
19928 }
19929
19930 _ACEOF
19931 if ac_fn_c_try_link "$LINENO"; then :
19932 gcc_cv_math_func_ldexpf=yes
19933 else
19934 gcc_cv_math_func_ldexpf=no
19935 fi
19936 rm -f core conftest.err conftest.$ac_objext \
19937 conftest$ac_exeext conftest.$ac_ext
19938 fi
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19940 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19941 if test $gcc_cv_math_func_ldexpf = yes; then
19942
19943 cat >>confdefs.h <<_ACEOF
19944 #define HAVE_LDEXPF 1
19945 _ACEOF
19946
19947 fi
19948
19949
19950
19951
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19953 $as_echo_n "checking for ldexp... " >&6; }
19954 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19955 $as_echo_n "(cached) " >&6
19956 else
19957 if test x$gcc_no_link = xyes; then
19958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19959 fi
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 #ifdef HAVE_COMPLEX_H
19964 #include <complex.h>
19965 #endif
19966 #ifdef HAVE_MATH_H
19967 #include <math.h>
19968 #endif
19969
19970 int (*ptr)() = (int (*)())ldexp;
19971
19972 int
19973 main ()
19974 {
19975 return 0;
19976 }
19977
19978 _ACEOF
19979 if ac_fn_c_try_link "$LINENO"; then :
19980 gcc_cv_math_func_ldexp=yes
19981 else
19982 gcc_cv_math_func_ldexp=no
19983 fi
19984 rm -f core conftest.err conftest.$ac_objext \
19985 conftest$ac_exeext conftest.$ac_ext
19986 fi
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19988 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19989 if test $gcc_cv_math_func_ldexp = yes; then
19990
19991 cat >>confdefs.h <<_ACEOF
19992 #define HAVE_LDEXP 1
19993 _ACEOF
19994
19995 fi
19996
19997
19998
19999
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20001 $as_echo_n "checking for ldexpl... " >&6; }
20002 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20003 $as_echo_n "(cached) " >&6
20004 else
20005 if test x$gcc_no_link = xyes; then
20006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20007 fi
20008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009 /* end confdefs.h. */
20010
20011 #ifdef HAVE_COMPLEX_H
20012 #include <complex.h>
20013 #endif
20014 #ifdef HAVE_MATH_H
20015 #include <math.h>
20016 #endif
20017
20018 int (*ptr)() = (int (*)())ldexpl;
20019
20020 int
20021 main ()
20022 {
20023 return 0;
20024 }
20025
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028 gcc_cv_math_func_ldexpl=yes
20029 else
20030 gcc_cv_math_func_ldexpl=no
20031 fi
20032 rm -f core conftest.err conftest.$ac_objext \
20033 conftest$ac_exeext conftest.$ac_ext
20034 fi
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20036 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20037 if test $gcc_cv_math_func_ldexpl = yes; then
20038
20039 cat >>confdefs.h <<_ACEOF
20040 #define HAVE_LDEXPL 1
20041 _ACEOF
20042
20043 fi
20044
20045
20046
20047
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20049 $as_echo_n "checking for logf... " >&6; }
20050 if test "${gcc_cv_math_func_logf+set}" = set; then :
20051 $as_echo_n "(cached) " >&6
20052 else
20053 if test x$gcc_no_link = xyes; then
20054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20055 fi
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20058
20059 #ifdef HAVE_COMPLEX_H
20060 #include <complex.h>
20061 #endif
20062 #ifdef HAVE_MATH_H
20063 #include <math.h>
20064 #endif
20065
20066 int (*ptr)() = (int (*)())logf;
20067
20068 int
20069 main ()
20070 {
20071 return 0;
20072 }
20073
20074 _ACEOF
20075 if ac_fn_c_try_link "$LINENO"; then :
20076 gcc_cv_math_func_logf=yes
20077 else
20078 gcc_cv_math_func_logf=no
20079 fi
20080 rm -f core conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20082 fi
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20084 $as_echo "$gcc_cv_math_func_logf" >&6; }
20085 if test $gcc_cv_math_func_logf = yes; then
20086
20087 cat >>confdefs.h <<_ACEOF
20088 #define HAVE_LOGF 1
20089 _ACEOF
20090
20091 fi
20092
20093
20094
20095
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20097 $as_echo_n "checking for log... " >&6; }
20098 if test "${gcc_cv_math_func_log+set}" = set; then :
20099 $as_echo_n "(cached) " >&6
20100 else
20101 if test x$gcc_no_link = xyes; then
20102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20103 fi
20104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h. */
20106
20107 #ifdef HAVE_COMPLEX_H
20108 #include <complex.h>
20109 #endif
20110 #ifdef HAVE_MATH_H
20111 #include <math.h>
20112 #endif
20113
20114 int (*ptr)() = (int (*)())log;
20115
20116 int
20117 main ()
20118 {
20119 return 0;
20120 }
20121
20122 _ACEOF
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 gcc_cv_math_func_log=yes
20125 else
20126 gcc_cv_math_func_log=no
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20130 fi
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20132 $as_echo "$gcc_cv_math_func_log" >&6; }
20133 if test $gcc_cv_math_func_log = yes; then
20134
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LOG 1
20137 _ACEOF
20138
20139 fi
20140
20141
20142
20143
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20145 $as_echo_n "checking for logl... " >&6; }
20146 if test "${gcc_cv_math_func_logl+set}" = set; then :
20147 $as_echo_n "(cached) " >&6
20148 else
20149 if test x$gcc_no_link = xyes; then
20150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20151 fi
20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h. */
20154
20155 #ifdef HAVE_COMPLEX_H
20156 #include <complex.h>
20157 #endif
20158 #ifdef HAVE_MATH_H
20159 #include <math.h>
20160 #endif
20161
20162 int (*ptr)() = (int (*)())logl;
20163
20164 int
20165 main ()
20166 {
20167 return 0;
20168 }
20169
20170 _ACEOF
20171 if ac_fn_c_try_link "$LINENO"; then :
20172 gcc_cv_math_func_logl=yes
20173 else
20174 gcc_cv_math_func_logl=no
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20178 fi
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20180 $as_echo "$gcc_cv_math_func_logl" >&6; }
20181 if test $gcc_cv_math_func_logl = yes; then
20182
20183 cat >>confdefs.h <<_ACEOF
20184 #define HAVE_LOGL 1
20185 _ACEOF
20186
20187 fi
20188
20189
20190
20191
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20193 $as_echo_n "checking for clogf... " >&6; }
20194 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20196 else
20197 if test x$gcc_no_link = xyes; then
20198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20199 fi
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202
20203 #ifdef HAVE_COMPLEX_H
20204 #include <complex.h>
20205 #endif
20206 #ifdef HAVE_MATH_H
20207 #include <math.h>
20208 #endif
20209
20210 int (*ptr)() = (int (*)())clogf;
20211
20212 int
20213 main ()
20214 {
20215 return 0;
20216 }
20217
20218 _ACEOF
20219 if ac_fn_c_try_link "$LINENO"; then :
20220 gcc_cv_math_func_clogf=yes
20221 else
20222 gcc_cv_math_func_clogf=no
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext \
20225 conftest$ac_exeext conftest.$ac_ext
20226 fi
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20228 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20229 if test $gcc_cv_math_func_clogf = yes; then
20230
20231 cat >>confdefs.h <<_ACEOF
20232 #define HAVE_CLOGF 1
20233 _ACEOF
20234
20235 fi
20236
20237
20238
20239
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20241 $as_echo_n "checking for clog... " >&6; }
20242 if test "${gcc_cv_math_func_clog+set}" = set; then :
20243 $as_echo_n "(cached) " >&6
20244 else
20245 if test x$gcc_no_link = xyes; then
20246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20247 fi
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249 /* end confdefs.h. */
20250
20251 #ifdef HAVE_COMPLEX_H
20252 #include <complex.h>
20253 #endif
20254 #ifdef HAVE_MATH_H
20255 #include <math.h>
20256 #endif
20257
20258 int (*ptr)() = (int (*)())clog;
20259
20260 int
20261 main ()
20262 {
20263 return 0;
20264 }
20265
20266 _ACEOF
20267 if ac_fn_c_try_link "$LINENO"; then :
20268 gcc_cv_math_func_clog=yes
20269 else
20270 gcc_cv_math_func_clog=no
20271 fi
20272 rm -f core conftest.err conftest.$ac_objext \
20273 conftest$ac_exeext conftest.$ac_ext
20274 fi
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20276 $as_echo "$gcc_cv_math_func_clog" >&6; }
20277 if test $gcc_cv_math_func_clog = yes; then
20278
20279 cat >>confdefs.h <<_ACEOF
20280 #define HAVE_CLOG 1
20281 _ACEOF
20282
20283 fi
20284
20285
20286
20287
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20289 $as_echo_n "checking for clogl... " >&6; }
20290 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20291 $as_echo_n "(cached) " >&6
20292 else
20293 if test x$gcc_no_link = xyes; then
20294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20295 fi
20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297 /* end confdefs.h. */
20298
20299 #ifdef HAVE_COMPLEX_H
20300 #include <complex.h>
20301 #endif
20302 #ifdef HAVE_MATH_H
20303 #include <math.h>
20304 #endif
20305
20306 int (*ptr)() = (int (*)())clogl;
20307
20308 int
20309 main ()
20310 {
20311 return 0;
20312 }
20313
20314 _ACEOF
20315 if ac_fn_c_try_link "$LINENO"; then :
20316 gcc_cv_math_func_clogl=yes
20317 else
20318 gcc_cv_math_func_clogl=no
20319 fi
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 fi
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20324 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20325 if test $gcc_cv_math_func_clogl = yes; then
20326
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_CLOGL 1
20329 _ACEOF
20330
20331 fi
20332
20333
20334
20335
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20337 $as_echo_n "checking for log10f... " >&6; }
20338 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20339 $as_echo_n "(cached) " >&6
20340 else
20341 if test x$gcc_no_link = xyes; then
20342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20343 fi
20344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h. */
20346
20347 #ifdef HAVE_COMPLEX_H
20348 #include <complex.h>
20349 #endif
20350 #ifdef HAVE_MATH_H
20351 #include <math.h>
20352 #endif
20353
20354 int (*ptr)() = (int (*)())log10f;
20355
20356 int
20357 main ()
20358 {
20359 return 0;
20360 }
20361
20362 _ACEOF
20363 if ac_fn_c_try_link "$LINENO"; then :
20364 gcc_cv_math_func_log10f=yes
20365 else
20366 gcc_cv_math_func_log10f=no
20367 fi
20368 rm -f core conftest.err conftest.$ac_objext \
20369 conftest$ac_exeext conftest.$ac_ext
20370 fi
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20372 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20373 if test $gcc_cv_math_func_log10f = yes; then
20374
20375 cat >>confdefs.h <<_ACEOF
20376 #define HAVE_LOG10F 1
20377 _ACEOF
20378
20379 fi
20380
20381
20382
20383
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20385 $as_echo_n "checking for log10... " >&6; }
20386 if test "${gcc_cv_math_func_log10+set}" = set; then :
20387 $as_echo_n "(cached) " >&6
20388 else
20389 if test x$gcc_no_link = xyes; then
20390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20391 fi
20392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20394
20395 #ifdef HAVE_COMPLEX_H
20396 #include <complex.h>
20397 #endif
20398 #ifdef HAVE_MATH_H
20399 #include <math.h>
20400 #endif
20401
20402 int (*ptr)() = (int (*)())log10;
20403
20404 int
20405 main ()
20406 {
20407 return 0;
20408 }
20409
20410 _ACEOF
20411 if ac_fn_c_try_link "$LINENO"; then :
20412 gcc_cv_math_func_log10=yes
20413 else
20414 gcc_cv_math_func_log10=no
20415 fi
20416 rm -f core conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20418 fi
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20420 $as_echo "$gcc_cv_math_func_log10" >&6; }
20421 if test $gcc_cv_math_func_log10 = yes; then
20422
20423 cat >>confdefs.h <<_ACEOF
20424 #define HAVE_LOG10 1
20425 _ACEOF
20426
20427 fi
20428
20429
20430
20431
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20433 $as_echo_n "checking for log10l... " >&6; }
20434 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20435 $as_echo_n "(cached) " >&6
20436 else
20437 if test x$gcc_no_link = xyes; then
20438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20439 fi
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20442
20443 #ifdef HAVE_COMPLEX_H
20444 #include <complex.h>
20445 #endif
20446 #ifdef HAVE_MATH_H
20447 #include <math.h>
20448 #endif
20449
20450 int (*ptr)() = (int (*)())log10l;
20451
20452 int
20453 main ()
20454 {
20455 return 0;
20456 }
20457
20458 _ACEOF
20459 if ac_fn_c_try_link "$LINENO"; then :
20460 gcc_cv_math_func_log10l=yes
20461 else
20462 gcc_cv_math_func_log10l=no
20463 fi
20464 rm -f core conftest.err conftest.$ac_objext \
20465 conftest$ac_exeext conftest.$ac_ext
20466 fi
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20468 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20469 if test $gcc_cv_math_func_log10l = yes; then
20470
20471 cat >>confdefs.h <<_ACEOF
20472 #define HAVE_LOG10L 1
20473 _ACEOF
20474
20475 fi
20476
20477
20478
20479
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20481 $as_echo_n "checking for clog10f... " >&6; }
20482 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20483 $as_echo_n "(cached) " >&6
20484 else
20485 if test x$gcc_no_link = xyes; then
20486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20487 fi
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20490
20491 #ifdef HAVE_COMPLEX_H
20492 #include <complex.h>
20493 #endif
20494 #ifdef HAVE_MATH_H
20495 #include <math.h>
20496 #endif
20497
20498 int (*ptr)() = (int (*)())clog10f;
20499
20500 int
20501 main ()
20502 {
20503 return 0;
20504 }
20505
20506 _ACEOF
20507 if ac_fn_c_try_link "$LINENO"; then :
20508 gcc_cv_math_func_clog10f=yes
20509 else
20510 gcc_cv_math_func_clog10f=no
20511 fi
20512 rm -f core conftest.err conftest.$ac_objext \
20513 conftest$ac_exeext conftest.$ac_ext
20514 fi
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20516 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20517 if test $gcc_cv_math_func_clog10f = yes; then
20518
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_CLOG10F 1
20521 _ACEOF
20522
20523 fi
20524
20525
20526
20527
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20529 $as_echo_n "checking for clog10... " >&6; }
20530 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20531 $as_echo_n "(cached) " >&6
20532 else
20533 if test x$gcc_no_link = xyes; then
20534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20535 fi
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20538
20539 #ifdef HAVE_COMPLEX_H
20540 #include <complex.h>
20541 #endif
20542 #ifdef HAVE_MATH_H
20543 #include <math.h>
20544 #endif
20545
20546 int (*ptr)() = (int (*)())clog10;
20547
20548 int
20549 main ()
20550 {
20551 return 0;
20552 }
20553
20554 _ACEOF
20555 if ac_fn_c_try_link "$LINENO"; then :
20556 gcc_cv_math_func_clog10=yes
20557 else
20558 gcc_cv_math_func_clog10=no
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext \
20561 conftest$ac_exeext conftest.$ac_ext
20562 fi
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20564 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20565 if test $gcc_cv_math_func_clog10 = yes; then
20566
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_CLOG10 1
20569 _ACEOF
20570
20571 fi
20572
20573
20574
20575
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20577 $as_echo_n "checking for clog10l... " >&6; }
20578 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20579 $as_echo_n "(cached) " >&6
20580 else
20581 if test x$gcc_no_link = xyes; then
20582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20583 fi
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586
20587 #ifdef HAVE_COMPLEX_H
20588 #include <complex.h>
20589 #endif
20590 #ifdef HAVE_MATH_H
20591 #include <math.h>
20592 #endif
20593
20594 int (*ptr)() = (int (*)())clog10l;
20595
20596 int
20597 main ()
20598 {
20599 return 0;
20600 }
20601
20602 _ACEOF
20603 if ac_fn_c_try_link "$LINENO"; then :
20604 gcc_cv_math_func_clog10l=yes
20605 else
20606 gcc_cv_math_func_clog10l=no
20607 fi
20608 rm -f core conftest.err conftest.$ac_objext \
20609 conftest$ac_exeext conftest.$ac_ext
20610 fi
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20612 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20613 if test $gcc_cv_math_func_clog10l = yes; then
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_CLOG10L 1
20617 _ACEOF
20618
20619 fi
20620
20621
20622
20623
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20625 $as_echo_n "checking for nextafterf... " >&6; }
20626 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20627 $as_echo_n "(cached) " >&6
20628 else
20629 if test x$gcc_no_link = xyes; then
20630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20631 fi
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20634
20635 #ifdef HAVE_COMPLEX_H
20636 #include <complex.h>
20637 #endif
20638 #ifdef HAVE_MATH_H
20639 #include <math.h>
20640 #endif
20641
20642 int (*ptr)() = (int (*)())nextafterf;
20643
20644 int
20645 main ()
20646 {
20647 return 0;
20648 }
20649
20650 _ACEOF
20651 if ac_fn_c_try_link "$LINENO"; then :
20652 gcc_cv_math_func_nextafterf=yes
20653 else
20654 gcc_cv_math_func_nextafterf=no
20655 fi
20656 rm -f core conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20658 fi
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20660 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20661 if test $gcc_cv_math_func_nextafterf = yes; then
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_NEXTAFTERF 1
20665 _ACEOF
20666
20667 fi
20668
20669
20670
20671
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20673 $as_echo_n "checking for nextafter... " >&6; }
20674 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20675 $as_echo_n "(cached) " >&6
20676 else
20677 if test x$gcc_no_link = xyes; then
20678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20679 fi
20680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20682
20683 #ifdef HAVE_COMPLEX_H
20684 #include <complex.h>
20685 #endif
20686 #ifdef HAVE_MATH_H
20687 #include <math.h>
20688 #endif
20689
20690 int (*ptr)() = (int (*)())nextafter;
20691
20692 int
20693 main ()
20694 {
20695 return 0;
20696 }
20697
20698 _ACEOF
20699 if ac_fn_c_try_link "$LINENO"; then :
20700 gcc_cv_math_func_nextafter=yes
20701 else
20702 gcc_cv_math_func_nextafter=no
20703 fi
20704 rm -f core conftest.err conftest.$ac_objext \
20705 conftest$ac_exeext conftest.$ac_ext
20706 fi
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20708 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20709 if test $gcc_cv_math_func_nextafter = yes; then
20710
20711 cat >>confdefs.h <<_ACEOF
20712 #define HAVE_NEXTAFTER 1
20713 _ACEOF
20714
20715 fi
20716
20717
20718
20719
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20721 $as_echo_n "checking for nextafterl... " >&6; }
20722 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20723 $as_echo_n "(cached) " >&6
20724 else
20725 if test x$gcc_no_link = xyes; then
20726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20727 fi
20728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20729 /* end confdefs.h. */
20730
20731 #ifdef HAVE_COMPLEX_H
20732 #include <complex.h>
20733 #endif
20734 #ifdef HAVE_MATH_H
20735 #include <math.h>
20736 #endif
20737
20738 int (*ptr)() = (int (*)())nextafterl;
20739
20740 int
20741 main ()
20742 {
20743 return 0;
20744 }
20745
20746 _ACEOF
20747 if ac_fn_c_try_link "$LINENO"; then :
20748 gcc_cv_math_func_nextafterl=yes
20749 else
20750 gcc_cv_math_func_nextafterl=no
20751 fi
20752 rm -f core conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754 fi
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20756 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20757 if test $gcc_cv_math_func_nextafterl = yes; then
20758
20759 cat >>confdefs.h <<_ACEOF
20760 #define HAVE_NEXTAFTERL 1
20761 _ACEOF
20762
20763 fi
20764
20765
20766
20767
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20769 $as_echo_n "checking for powf... " >&6; }
20770 if test "${gcc_cv_math_func_powf+set}" = set; then :
20771 $as_echo_n "(cached) " >&6
20772 else
20773 if test x$gcc_no_link = xyes; then
20774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20775 fi
20776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20778
20779 #ifdef HAVE_COMPLEX_H
20780 #include <complex.h>
20781 #endif
20782 #ifdef HAVE_MATH_H
20783 #include <math.h>
20784 #endif
20785
20786 int (*ptr)() = (int (*)())powf;
20787
20788 int
20789 main ()
20790 {
20791 return 0;
20792 }
20793
20794 _ACEOF
20795 if ac_fn_c_try_link "$LINENO"; then :
20796 gcc_cv_math_func_powf=yes
20797 else
20798 gcc_cv_math_func_powf=no
20799 fi
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 fi
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20804 $as_echo "$gcc_cv_math_func_powf" >&6; }
20805 if test $gcc_cv_math_func_powf = yes; then
20806
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_POWF 1
20809 _ACEOF
20810
20811 fi
20812
20813
20814
20815
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20817 $as_echo_n "checking for pow... " >&6; }
20818 if test "${gcc_cv_math_func_pow+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 if test x$gcc_no_link = xyes; then
20822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20823 fi
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826
20827 #ifdef HAVE_COMPLEX_H
20828 #include <complex.h>
20829 #endif
20830 #ifdef HAVE_MATH_H
20831 #include <math.h>
20832 #endif
20833
20834 int (*ptr)() = (int (*)())pow;
20835
20836 int
20837 main ()
20838 {
20839 return 0;
20840 }
20841
20842 _ACEOF
20843 if ac_fn_c_try_link "$LINENO"; then :
20844 gcc_cv_math_func_pow=yes
20845 else
20846 gcc_cv_math_func_pow=no
20847 fi
20848 rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20850 fi
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20852 $as_echo "$gcc_cv_math_func_pow" >&6; }
20853 if test $gcc_cv_math_func_pow = yes; then
20854
20855 cat >>confdefs.h <<_ACEOF
20856 #define HAVE_POW 1
20857 _ACEOF
20858
20859 fi
20860
20861
20862
20863
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20865 $as_echo_n "checking for powl... " >&6; }
20866 if test "${gcc_cv_math_func_powl+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20869 if test x$gcc_no_link = xyes; then
20870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20871 fi
20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20873 /* end confdefs.h. */
20874
20875 #ifdef HAVE_COMPLEX_H
20876 #include <complex.h>
20877 #endif
20878 #ifdef HAVE_MATH_H
20879 #include <math.h>
20880 #endif
20881
20882 int (*ptr)() = (int (*)())powl;
20883
20884 int
20885 main ()
20886 {
20887 return 0;
20888 }
20889
20890 _ACEOF
20891 if ac_fn_c_try_link "$LINENO"; then :
20892 gcc_cv_math_func_powl=yes
20893 else
20894 gcc_cv_math_func_powl=no
20895 fi
20896 rm -f core conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20898 fi
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20900 $as_echo "$gcc_cv_math_func_powl" >&6; }
20901 if test $gcc_cv_math_func_powl = yes; then
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define HAVE_POWL 1
20905 _ACEOF
20906
20907 fi
20908
20909
20910
20911
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20913 $as_echo_n "checking for cpowf... " >&6; }
20914 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20915 $as_echo_n "(cached) " >&6
20916 else
20917 if test x$gcc_no_link = xyes; then
20918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20919 fi
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922
20923 #ifdef HAVE_COMPLEX_H
20924 #include <complex.h>
20925 #endif
20926 #ifdef HAVE_MATH_H
20927 #include <math.h>
20928 #endif
20929
20930 int (*ptr)() = (int (*)())cpowf;
20931
20932 int
20933 main ()
20934 {
20935 return 0;
20936 }
20937
20938 _ACEOF
20939 if ac_fn_c_try_link "$LINENO"; then :
20940 gcc_cv_math_func_cpowf=yes
20941 else
20942 gcc_cv_math_func_cpowf=no
20943 fi
20944 rm -f core conftest.err conftest.$ac_objext \
20945 conftest$ac_exeext conftest.$ac_ext
20946 fi
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20948 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20949 if test $gcc_cv_math_func_cpowf = yes; then
20950
20951 cat >>confdefs.h <<_ACEOF
20952 #define HAVE_CPOWF 1
20953 _ACEOF
20954
20955 fi
20956
20957
20958
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20961 $as_echo_n "checking for cpow... " >&6; }
20962 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20964 else
20965 if test x$gcc_no_link = xyes; then
20966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20967 fi
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20970
20971 #ifdef HAVE_COMPLEX_H
20972 #include <complex.h>
20973 #endif
20974 #ifdef HAVE_MATH_H
20975 #include <math.h>
20976 #endif
20977
20978 int (*ptr)() = (int (*)())cpow;
20979
20980 int
20981 main ()
20982 {
20983 return 0;
20984 }
20985
20986 _ACEOF
20987 if ac_fn_c_try_link "$LINENO"; then :
20988 gcc_cv_math_func_cpow=yes
20989 else
20990 gcc_cv_math_func_cpow=no
20991 fi
20992 rm -f core conftest.err conftest.$ac_objext \
20993 conftest$ac_exeext conftest.$ac_ext
20994 fi
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20996 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20997 if test $gcc_cv_math_func_cpow = yes; then
20998
20999 cat >>confdefs.h <<_ACEOF
21000 #define HAVE_CPOW 1
21001 _ACEOF
21002
21003 fi
21004
21005
21006
21007
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21009 $as_echo_n "checking for cpowl... " >&6; }
21010 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21011 $as_echo_n "(cached) " >&6
21012 else
21013 if test x$gcc_no_link = xyes; then
21014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21015 fi
21016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21017 /* end confdefs.h. */
21018
21019 #ifdef HAVE_COMPLEX_H
21020 #include <complex.h>
21021 #endif
21022 #ifdef HAVE_MATH_H
21023 #include <math.h>
21024 #endif
21025
21026 int (*ptr)() = (int (*)())cpowl;
21027
21028 int
21029 main ()
21030 {
21031 return 0;
21032 }
21033
21034 _ACEOF
21035 if ac_fn_c_try_link "$LINENO"; then :
21036 gcc_cv_math_func_cpowl=yes
21037 else
21038 gcc_cv_math_func_cpowl=no
21039 fi
21040 rm -f core conftest.err conftest.$ac_objext \
21041 conftest$ac_exeext conftest.$ac_ext
21042 fi
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21044 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21045 if test $gcc_cv_math_func_cpowl = yes; then
21046
21047 cat >>confdefs.h <<_ACEOF
21048 #define HAVE_CPOWL 1
21049 _ACEOF
21050
21051 fi
21052
21053
21054
21055
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21057 $as_echo_n "checking for roundf... " >&6; }
21058 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21059 $as_echo_n "(cached) " >&6
21060 else
21061 if test x$gcc_no_link = xyes; then
21062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21063 fi
21064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065 /* end confdefs.h. */
21066
21067 #ifdef HAVE_COMPLEX_H
21068 #include <complex.h>
21069 #endif
21070 #ifdef HAVE_MATH_H
21071 #include <math.h>
21072 #endif
21073
21074 int (*ptr)() = (int (*)())roundf;
21075
21076 int
21077 main ()
21078 {
21079 return 0;
21080 }
21081
21082 _ACEOF
21083 if ac_fn_c_try_link "$LINENO"; then :
21084 gcc_cv_math_func_roundf=yes
21085 else
21086 gcc_cv_math_func_roundf=no
21087 fi
21088 rm -f core conftest.err conftest.$ac_objext \
21089 conftest$ac_exeext conftest.$ac_ext
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21092 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21093 if test $gcc_cv_math_func_roundf = yes; then
21094
21095 cat >>confdefs.h <<_ACEOF
21096 #define HAVE_ROUNDF 1
21097 _ACEOF
21098
21099 fi
21100
21101
21102
21103
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21105 $as_echo_n "checking for round... " >&6; }
21106 if test "${gcc_cv_math_func_round+set}" = set; then :
21107 $as_echo_n "(cached) " >&6
21108 else
21109 if test x$gcc_no_link = xyes; then
21110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21111 fi
21112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h. */
21114
21115 #ifdef HAVE_COMPLEX_H
21116 #include <complex.h>
21117 #endif
21118 #ifdef HAVE_MATH_H
21119 #include <math.h>
21120 #endif
21121
21122 int (*ptr)() = (int (*)())round;
21123
21124 int
21125 main ()
21126 {
21127 return 0;
21128 }
21129
21130 _ACEOF
21131 if ac_fn_c_try_link "$LINENO"; then :
21132 gcc_cv_math_func_round=yes
21133 else
21134 gcc_cv_math_func_round=no
21135 fi
21136 rm -f core conftest.err conftest.$ac_objext \
21137 conftest$ac_exeext conftest.$ac_ext
21138 fi
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21140 $as_echo "$gcc_cv_math_func_round" >&6; }
21141 if test $gcc_cv_math_func_round = yes; then
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define HAVE_ROUND 1
21145 _ACEOF
21146
21147 fi
21148
21149
21150
21151
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21153 $as_echo_n "checking for roundl... " >&6; }
21154 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21155 $as_echo_n "(cached) " >&6
21156 else
21157 if test x$gcc_no_link = xyes; then
21158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21159 fi
21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h. */
21162
21163 #ifdef HAVE_COMPLEX_H
21164 #include <complex.h>
21165 #endif
21166 #ifdef HAVE_MATH_H
21167 #include <math.h>
21168 #endif
21169
21170 int (*ptr)() = (int (*)())roundl;
21171
21172 int
21173 main ()
21174 {
21175 return 0;
21176 }
21177
21178 _ACEOF
21179 if ac_fn_c_try_link "$LINENO"; then :
21180 gcc_cv_math_func_roundl=yes
21181 else
21182 gcc_cv_math_func_roundl=no
21183 fi
21184 rm -f core conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21186 fi
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21188 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21189 if test $gcc_cv_math_func_roundl = yes; then
21190
21191 cat >>confdefs.h <<_ACEOF
21192 #define HAVE_ROUNDL 1
21193 _ACEOF
21194
21195 fi
21196
21197
21198
21199
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21201 $as_echo_n "checking for lroundf... " >&6; }
21202 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21203 $as_echo_n "(cached) " >&6
21204 else
21205 if test x$gcc_no_link = xyes; then
21206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21207 fi
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210
21211 #ifdef HAVE_COMPLEX_H
21212 #include <complex.h>
21213 #endif
21214 #ifdef HAVE_MATH_H
21215 #include <math.h>
21216 #endif
21217
21218 int (*ptr)() = (int (*)())lroundf;
21219
21220 int
21221 main ()
21222 {
21223 return 0;
21224 }
21225
21226 _ACEOF
21227 if ac_fn_c_try_link "$LINENO"; then :
21228 gcc_cv_math_func_lroundf=yes
21229 else
21230 gcc_cv_math_func_lroundf=no
21231 fi
21232 rm -f core conftest.err conftest.$ac_objext \
21233 conftest$ac_exeext conftest.$ac_ext
21234 fi
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21236 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21237 if test $gcc_cv_math_func_lroundf = yes; then
21238
21239 cat >>confdefs.h <<_ACEOF
21240 #define HAVE_LROUNDF 1
21241 _ACEOF
21242
21243 fi
21244
21245
21246
21247
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21249 $as_echo_n "checking for lround... " >&6; }
21250 if test "${gcc_cv_math_func_lround+set}" = set; then :
21251 $as_echo_n "(cached) " >&6
21252 else
21253 if test x$gcc_no_link = xyes; then
21254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21255 fi
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21258
21259 #ifdef HAVE_COMPLEX_H
21260 #include <complex.h>
21261 #endif
21262 #ifdef HAVE_MATH_H
21263 #include <math.h>
21264 #endif
21265
21266 int (*ptr)() = (int (*)())lround;
21267
21268 int
21269 main ()
21270 {
21271 return 0;
21272 }
21273
21274 _ACEOF
21275 if ac_fn_c_try_link "$LINENO"; then :
21276 gcc_cv_math_func_lround=yes
21277 else
21278 gcc_cv_math_func_lround=no
21279 fi
21280 rm -f core conftest.err conftest.$ac_objext \
21281 conftest$ac_exeext conftest.$ac_ext
21282 fi
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21284 $as_echo "$gcc_cv_math_func_lround" >&6; }
21285 if test $gcc_cv_math_func_lround = yes; then
21286
21287 cat >>confdefs.h <<_ACEOF
21288 #define HAVE_LROUND 1
21289 _ACEOF
21290
21291 fi
21292
21293
21294
21295
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21297 $as_echo_n "checking for lroundl... " >&6; }
21298 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21299 $as_echo_n "(cached) " >&6
21300 else
21301 if test x$gcc_no_link = xyes; then
21302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21303 fi
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21306
21307 #ifdef HAVE_COMPLEX_H
21308 #include <complex.h>
21309 #endif
21310 #ifdef HAVE_MATH_H
21311 #include <math.h>
21312 #endif
21313
21314 int (*ptr)() = (int (*)())lroundl;
21315
21316 int
21317 main ()
21318 {
21319 return 0;
21320 }
21321
21322 _ACEOF
21323 if ac_fn_c_try_link "$LINENO"; then :
21324 gcc_cv_math_func_lroundl=yes
21325 else
21326 gcc_cv_math_func_lroundl=no
21327 fi
21328 rm -f core conftest.err conftest.$ac_objext \
21329 conftest$ac_exeext conftest.$ac_ext
21330 fi
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21332 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21333 if test $gcc_cv_math_func_lroundl = yes; then
21334
21335 cat >>confdefs.h <<_ACEOF
21336 #define HAVE_LROUNDL 1
21337 _ACEOF
21338
21339 fi
21340
21341
21342
21343
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21345 $as_echo_n "checking for llroundf... " >&6; }
21346 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21347 $as_echo_n "(cached) " >&6
21348 else
21349 if test x$gcc_no_link = xyes; then
21350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21351 fi
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21354
21355 #ifdef HAVE_COMPLEX_H
21356 #include <complex.h>
21357 #endif
21358 #ifdef HAVE_MATH_H
21359 #include <math.h>
21360 #endif
21361
21362 int (*ptr)() = (int (*)())llroundf;
21363
21364 int
21365 main ()
21366 {
21367 return 0;
21368 }
21369
21370 _ACEOF
21371 if ac_fn_c_try_link "$LINENO"; then :
21372 gcc_cv_math_func_llroundf=yes
21373 else
21374 gcc_cv_math_func_llroundf=no
21375 fi
21376 rm -f core conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 fi
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21380 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21381 if test $gcc_cv_math_func_llroundf = yes; then
21382
21383 cat >>confdefs.h <<_ACEOF
21384 #define HAVE_LLROUNDF 1
21385 _ACEOF
21386
21387 fi
21388
21389
21390
21391
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21393 $as_echo_n "checking for llround... " >&6; }
21394 if test "${gcc_cv_math_func_llround+set}" = set; then :
21395 $as_echo_n "(cached) " >&6
21396 else
21397 if test x$gcc_no_link = xyes; then
21398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21399 fi
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21402
21403 #ifdef HAVE_COMPLEX_H
21404 #include <complex.h>
21405 #endif
21406 #ifdef HAVE_MATH_H
21407 #include <math.h>
21408 #endif
21409
21410 int (*ptr)() = (int (*)())llround;
21411
21412 int
21413 main ()
21414 {
21415 return 0;
21416 }
21417
21418 _ACEOF
21419 if ac_fn_c_try_link "$LINENO"; then :
21420 gcc_cv_math_func_llround=yes
21421 else
21422 gcc_cv_math_func_llround=no
21423 fi
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 fi
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21428 $as_echo "$gcc_cv_math_func_llround" >&6; }
21429 if test $gcc_cv_math_func_llround = yes; then
21430
21431 cat >>confdefs.h <<_ACEOF
21432 #define HAVE_LLROUND 1
21433 _ACEOF
21434
21435 fi
21436
21437
21438
21439
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21441 $as_echo_n "checking for llroundl... " >&6; }
21442 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21443 $as_echo_n "(cached) " >&6
21444 else
21445 if test x$gcc_no_link = xyes; then
21446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21447 fi
21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21449 /* end confdefs.h. */
21450
21451 #ifdef HAVE_COMPLEX_H
21452 #include <complex.h>
21453 #endif
21454 #ifdef HAVE_MATH_H
21455 #include <math.h>
21456 #endif
21457
21458 int (*ptr)() = (int (*)())llroundl;
21459
21460 int
21461 main ()
21462 {
21463 return 0;
21464 }
21465
21466 _ACEOF
21467 if ac_fn_c_try_link "$LINENO"; then :
21468 gcc_cv_math_func_llroundl=yes
21469 else
21470 gcc_cv_math_func_llroundl=no
21471 fi
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21476 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21477 if test $gcc_cv_math_func_llroundl = yes; then
21478
21479 cat >>confdefs.h <<_ACEOF
21480 #define HAVE_LLROUNDL 1
21481 _ACEOF
21482
21483 fi
21484
21485
21486
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21489 $as_echo_n "checking for scalbnf... " >&6; }
21490 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21491 $as_echo_n "(cached) " >&6
21492 else
21493 if test x$gcc_no_link = xyes; then
21494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21495 fi
21496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h. */
21498
21499 #ifdef HAVE_COMPLEX_H
21500 #include <complex.h>
21501 #endif
21502 #ifdef HAVE_MATH_H
21503 #include <math.h>
21504 #endif
21505
21506 int (*ptr)() = (int (*)())scalbnf;
21507
21508 int
21509 main ()
21510 {
21511 return 0;
21512 }
21513
21514 _ACEOF
21515 if ac_fn_c_try_link "$LINENO"; then :
21516 gcc_cv_math_func_scalbnf=yes
21517 else
21518 gcc_cv_math_func_scalbnf=no
21519 fi
21520 rm -f core conftest.err conftest.$ac_objext \
21521 conftest$ac_exeext conftest.$ac_ext
21522 fi
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21524 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21525 if test $gcc_cv_math_func_scalbnf = yes; then
21526
21527 cat >>confdefs.h <<_ACEOF
21528 #define HAVE_SCALBNF 1
21529 _ACEOF
21530
21531 fi
21532
21533
21534
21535
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21537 $as_echo_n "checking for scalbn... " >&6; }
21538 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21540 else
21541 if test x$gcc_no_link = xyes; then
21542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21543 fi
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21546
21547 #ifdef HAVE_COMPLEX_H
21548 #include <complex.h>
21549 #endif
21550 #ifdef HAVE_MATH_H
21551 #include <math.h>
21552 #endif
21553
21554 int (*ptr)() = (int (*)())scalbn;
21555
21556 int
21557 main ()
21558 {
21559 return 0;
21560 }
21561
21562 _ACEOF
21563 if ac_fn_c_try_link "$LINENO"; then :
21564 gcc_cv_math_func_scalbn=yes
21565 else
21566 gcc_cv_math_func_scalbn=no
21567 fi
21568 rm -f core conftest.err conftest.$ac_objext \
21569 conftest$ac_exeext conftest.$ac_ext
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21572 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21573 if test $gcc_cv_math_func_scalbn = yes; then
21574
21575 cat >>confdefs.h <<_ACEOF
21576 #define HAVE_SCALBN 1
21577 _ACEOF
21578
21579 fi
21580
21581
21582
21583
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21585 $as_echo_n "checking for scalbnl... " >&6; }
21586 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21588 else
21589 if test x$gcc_no_link = xyes; then
21590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21591 fi
21592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21594
21595 #ifdef HAVE_COMPLEX_H
21596 #include <complex.h>
21597 #endif
21598 #ifdef HAVE_MATH_H
21599 #include <math.h>
21600 #endif
21601
21602 int (*ptr)() = (int (*)())scalbnl;
21603
21604 int
21605 main ()
21606 {
21607 return 0;
21608 }
21609
21610 _ACEOF
21611 if ac_fn_c_try_link "$LINENO"; then :
21612 gcc_cv_math_func_scalbnl=yes
21613 else
21614 gcc_cv_math_func_scalbnl=no
21615 fi
21616 rm -f core conftest.err conftest.$ac_objext \
21617 conftest$ac_exeext conftest.$ac_ext
21618 fi
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21620 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21621 if test $gcc_cv_math_func_scalbnl = yes; then
21622
21623 cat >>confdefs.h <<_ACEOF
21624 #define HAVE_SCALBNL 1
21625 _ACEOF
21626
21627 fi
21628
21629
21630
21631
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21633 $as_echo_n "checking for sinf... " >&6; }
21634 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21636 else
21637 if test x$gcc_no_link = xyes; then
21638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21639 fi
21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642
21643 #ifdef HAVE_COMPLEX_H
21644 #include <complex.h>
21645 #endif
21646 #ifdef HAVE_MATH_H
21647 #include <math.h>
21648 #endif
21649
21650 int (*ptr)() = (int (*)())sinf;
21651
21652 int
21653 main ()
21654 {
21655 return 0;
21656 }
21657
21658 _ACEOF
21659 if ac_fn_c_try_link "$LINENO"; then :
21660 gcc_cv_math_func_sinf=yes
21661 else
21662 gcc_cv_math_func_sinf=no
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
21666 fi
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21668 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21669 if test $gcc_cv_math_func_sinf = yes; then
21670
21671 cat >>confdefs.h <<_ACEOF
21672 #define HAVE_SINF 1
21673 _ACEOF
21674
21675 fi
21676
21677
21678
21679
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21681 $as_echo_n "checking for sin... " >&6; }
21682 if test "${gcc_cv_math_func_sin+set}" = set; then :
21683 $as_echo_n "(cached) " >&6
21684 else
21685 if test x$gcc_no_link = xyes; then
21686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21687 fi
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21690
21691 #ifdef HAVE_COMPLEX_H
21692 #include <complex.h>
21693 #endif
21694 #ifdef HAVE_MATH_H
21695 #include <math.h>
21696 #endif
21697
21698 int (*ptr)() = (int (*)())sin;
21699
21700 int
21701 main ()
21702 {
21703 return 0;
21704 }
21705
21706 _ACEOF
21707 if ac_fn_c_try_link "$LINENO"; then :
21708 gcc_cv_math_func_sin=yes
21709 else
21710 gcc_cv_math_func_sin=no
21711 fi
21712 rm -f core conftest.err conftest.$ac_objext \
21713 conftest$ac_exeext conftest.$ac_ext
21714 fi
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21716 $as_echo "$gcc_cv_math_func_sin" >&6; }
21717 if test $gcc_cv_math_func_sin = yes; then
21718
21719 cat >>confdefs.h <<_ACEOF
21720 #define HAVE_SIN 1
21721 _ACEOF
21722
21723 fi
21724
21725
21726
21727
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21729 $as_echo_n "checking for sinl... " >&6; }
21730 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21731 $as_echo_n "(cached) " >&6
21732 else
21733 if test x$gcc_no_link = xyes; then
21734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21735 fi
21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21737 /* end confdefs.h. */
21738
21739 #ifdef HAVE_COMPLEX_H
21740 #include <complex.h>
21741 #endif
21742 #ifdef HAVE_MATH_H
21743 #include <math.h>
21744 #endif
21745
21746 int (*ptr)() = (int (*)())sinl;
21747
21748 int
21749 main ()
21750 {
21751 return 0;
21752 }
21753
21754 _ACEOF
21755 if ac_fn_c_try_link "$LINENO"; then :
21756 gcc_cv_math_func_sinl=yes
21757 else
21758 gcc_cv_math_func_sinl=no
21759 fi
21760 rm -f core conftest.err conftest.$ac_objext \
21761 conftest$ac_exeext conftest.$ac_ext
21762 fi
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21764 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21765 if test $gcc_cv_math_func_sinl = yes; then
21766
21767 cat >>confdefs.h <<_ACEOF
21768 #define HAVE_SINL 1
21769 _ACEOF
21770
21771 fi
21772
21773
21774
21775
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21777 $as_echo_n "checking for csinf... " >&6; }
21778 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21780 else
21781 if test x$gcc_no_link = xyes; then
21782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21783 fi
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21786
21787 #ifdef HAVE_COMPLEX_H
21788 #include <complex.h>
21789 #endif
21790 #ifdef HAVE_MATH_H
21791 #include <math.h>
21792 #endif
21793
21794 int (*ptr)() = (int (*)())csinf;
21795
21796 int
21797 main ()
21798 {
21799 return 0;
21800 }
21801
21802 _ACEOF
21803 if ac_fn_c_try_link "$LINENO"; then :
21804 gcc_cv_math_func_csinf=yes
21805 else
21806 gcc_cv_math_func_csinf=no
21807 fi
21808 rm -f core conftest.err conftest.$ac_objext \
21809 conftest$ac_exeext conftest.$ac_ext
21810 fi
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21812 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21813 if test $gcc_cv_math_func_csinf = yes; then
21814
21815 cat >>confdefs.h <<_ACEOF
21816 #define HAVE_CSINF 1
21817 _ACEOF
21818
21819 fi
21820
21821
21822
21823
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21825 $as_echo_n "checking for csin... " >&6; }
21826 if test "${gcc_cv_math_func_csin+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21829 if test x$gcc_no_link = xyes; then
21830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21831 fi
21832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h. */
21834
21835 #ifdef HAVE_COMPLEX_H
21836 #include <complex.h>
21837 #endif
21838 #ifdef HAVE_MATH_H
21839 #include <math.h>
21840 #endif
21841
21842 int (*ptr)() = (int (*)())csin;
21843
21844 int
21845 main ()
21846 {
21847 return 0;
21848 }
21849
21850 _ACEOF
21851 if ac_fn_c_try_link "$LINENO"; then :
21852 gcc_cv_math_func_csin=yes
21853 else
21854 gcc_cv_math_func_csin=no
21855 fi
21856 rm -f core conftest.err conftest.$ac_objext \
21857 conftest$ac_exeext conftest.$ac_ext
21858 fi
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21860 $as_echo "$gcc_cv_math_func_csin" >&6; }
21861 if test $gcc_cv_math_func_csin = yes; then
21862
21863 cat >>confdefs.h <<_ACEOF
21864 #define HAVE_CSIN 1
21865 _ACEOF
21866
21867 fi
21868
21869
21870
21871
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21873 $as_echo_n "checking for csinl... " >&6; }
21874 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21875 $as_echo_n "(cached) " >&6
21876 else
21877 if test x$gcc_no_link = xyes; then
21878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21879 fi
21880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21881 /* end confdefs.h. */
21882
21883 #ifdef HAVE_COMPLEX_H
21884 #include <complex.h>
21885 #endif
21886 #ifdef HAVE_MATH_H
21887 #include <math.h>
21888 #endif
21889
21890 int (*ptr)() = (int (*)())csinl;
21891
21892 int
21893 main ()
21894 {
21895 return 0;
21896 }
21897
21898 _ACEOF
21899 if ac_fn_c_try_link "$LINENO"; then :
21900 gcc_cv_math_func_csinl=yes
21901 else
21902 gcc_cv_math_func_csinl=no
21903 fi
21904 rm -f core conftest.err conftest.$ac_objext \
21905 conftest$ac_exeext conftest.$ac_ext
21906 fi
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21908 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21909 if test $gcc_cv_math_func_csinl = yes; then
21910
21911 cat >>confdefs.h <<_ACEOF
21912 #define HAVE_CSINL 1
21913 _ACEOF
21914
21915 fi
21916
21917
21918
21919
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21921 $as_echo_n "checking for sinhf... " >&6; }
21922 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 if test x$gcc_no_link = xyes; then
21926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21927 fi
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929 /* end confdefs.h. */
21930
21931 #ifdef HAVE_COMPLEX_H
21932 #include <complex.h>
21933 #endif
21934 #ifdef HAVE_MATH_H
21935 #include <math.h>
21936 #endif
21937
21938 int (*ptr)() = (int (*)())sinhf;
21939
21940 int
21941 main ()
21942 {
21943 return 0;
21944 }
21945
21946 _ACEOF
21947 if ac_fn_c_try_link "$LINENO"; then :
21948 gcc_cv_math_func_sinhf=yes
21949 else
21950 gcc_cv_math_func_sinhf=no
21951 fi
21952 rm -f core conftest.err conftest.$ac_objext \
21953 conftest$ac_exeext conftest.$ac_ext
21954 fi
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21956 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21957 if test $gcc_cv_math_func_sinhf = yes; then
21958
21959 cat >>confdefs.h <<_ACEOF
21960 #define HAVE_SINHF 1
21961 _ACEOF
21962
21963 fi
21964
21965
21966
21967
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21969 $as_echo_n "checking for sinh... " >&6; }
21970 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 if test x$gcc_no_link = xyes; then
21974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21975 fi
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21978
21979 #ifdef HAVE_COMPLEX_H
21980 #include <complex.h>
21981 #endif
21982 #ifdef HAVE_MATH_H
21983 #include <math.h>
21984 #endif
21985
21986 int (*ptr)() = (int (*)())sinh;
21987
21988 int
21989 main ()
21990 {
21991 return 0;
21992 }
21993
21994 _ACEOF
21995 if ac_fn_c_try_link "$LINENO"; then :
21996 gcc_cv_math_func_sinh=yes
21997 else
21998 gcc_cv_math_func_sinh=no
21999 fi
22000 rm -f core conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext conftest.$ac_ext
22002 fi
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22004 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22005 if test $gcc_cv_math_func_sinh = yes; then
22006
22007 cat >>confdefs.h <<_ACEOF
22008 #define HAVE_SINH 1
22009 _ACEOF
22010
22011 fi
22012
22013
22014
22015
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22017 $as_echo_n "checking for sinhl... " >&6; }
22018 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 if test x$gcc_no_link = xyes; then
22022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22023 fi
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026
22027 #ifdef HAVE_COMPLEX_H
22028 #include <complex.h>
22029 #endif
22030 #ifdef HAVE_MATH_H
22031 #include <math.h>
22032 #endif
22033
22034 int (*ptr)() = (int (*)())sinhl;
22035
22036 int
22037 main ()
22038 {
22039 return 0;
22040 }
22041
22042 _ACEOF
22043 if ac_fn_c_try_link "$LINENO"; then :
22044 gcc_cv_math_func_sinhl=yes
22045 else
22046 gcc_cv_math_func_sinhl=no
22047 fi
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22050 fi
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22052 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22053 if test $gcc_cv_math_func_sinhl = yes; then
22054
22055 cat >>confdefs.h <<_ACEOF
22056 #define HAVE_SINHL 1
22057 _ACEOF
22058
22059 fi
22060
22061
22062
22063
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22065 $as_echo_n "checking for csinhf... " >&6; }
22066 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 if test x$gcc_no_link = xyes; then
22070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22071 fi
22072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073 /* end confdefs.h. */
22074
22075 #ifdef HAVE_COMPLEX_H
22076 #include <complex.h>
22077 #endif
22078 #ifdef HAVE_MATH_H
22079 #include <math.h>
22080 #endif
22081
22082 int (*ptr)() = (int (*)())csinhf;
22083
22084 int
22085 main ()
22086 {
22087 return 0;
22088 }
22089
22090 _ACEOF
22091 if ac_fn_c_try_link "$LINENO"; then :
22092 gcc_cv_math_func_csinhf=yes
22093 else
22094 gcc_cv_math_func_csinhf=no
22095 fi
22096 rm -f core conftest.err conftest.$ac_objext \
22097 conftest$ac_exeext conftest.$ac_ext
22098 fi
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22100 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22101 if test $gcc_cv_math_func_csinhf = yes; then
22102
22103 cat >>confdefs.h <<_ACEOF
22104 #define HAVE_CSINHF 1
22105 _ACEOF
22106
22107 fi
22108
22109
22110
22111
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22113 $as_echo_n "checking for csinh... " >&6; }
22114 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22115 $as_echo_n "(cached) " >&6
22116 else
22117 if test x$gcc_no_link = xyes; then
22118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22119 fi
22120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h. */
22122
22123 #ifdef HAVE_COMPLEX_H
22124 #include <complex.h>
22125 #endif
22126 #ifdef HAVE_MATH_H
22127 #include <math.h>
22128 #endif
22129
22130 int (*ptr)() = (int (*)())csinh;
22131
22132 int
22133 main ()
22134 {
22135 return 0;
22136 }
22137
22138 _ACEOF
22139 if ac_fn_c_try_link "$LINENO"; then :
22140 gcc_cv_math_func_csinh=yes
22141 else
22142 gcc_cv_math_func_csinh=no
22143 fi
22144 rm -f core conftest.err conftest.$ac_objext \
22145 conftest$ac_exeext conftest.$ac_ext
22146 fi
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22148 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22149 if test $gcc_cv_math_func_csinh = yes; then
22150
22151 cat >>confdefs.h <<_ACEOF
22152 #define HAVE_CSINH 1
22153 _ACEOF
22154
22155 fi
22156
22157
22158
22159
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22161 $as_echo_n "checking for csinhl... " >&6; }
22162 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22164 else
22165 if test x$gcc_no_link = xyes; then
22166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22167 fi
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22170
22171 #ifdef HAVE_COMPLEX_H
22172 #include <complex.h>
22173 #endif
22174 #ifdef HAVE_MATH_H
22175 #include <math.h>
22176 #endif
22177
22178 int (*ptr)() = (int (*)())csinhl;
22179
22180 int
22181 main ()
22182 {
22183 return 0;
22184 }
22185
22186 _ACEOF
22187 if ac_fn_c_try_link "$LINENO"; then :
22188 gcc_cv_math_func_csinhl=yes
22189 else
22190 gcc_cv_math_func_csinhl=no
22191 fi
22192 rm -f core conftest.err conftest.$ac_objext \
22193 conftest$ac_exeext conftest.$ac_ext
22194 fi
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22196 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22197 if test $gcc_cv_math_func_csinhl = yes; then
22198
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_CSINHL 1
22201 _ACEOF
22202
22203 fi
22204
22205
22206
22207
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22209 $as_echo_n "checking for sqrtf... " >&6; }
22210 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22211 $as_echo_n "(cached) " >&6
22212 else
22213 if test x$gcc_no_link = xyes; then
22214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22215 fi
22216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h. */
22218
22219 #ifdef HAVE_COMPLEX_H
22220 #include <complex.h>
22221 #endif
22222 #ifdef HAVE_MATH_H
22223 #include <math.h>
22224 #endif
22225
22226 int (*ptr)() = (int (*)())sqrtf;
22227
22228 int
22229 main ()
22230 {
22231 return 0;
22232 }
22233
22234 _ACEOF
22235 if ac_fn_c_try_link "$LINENO"; then :
22236 gcc_cv_math_func_sqrtf=yes
22237 else
22238 gcc_cv_math_func_sqrtf=no
22239 fi
22240 rm -f core conftest.err conftest.$ac_objext \
22241 conftest$ac_exeext conftest.$ac_ext
22242 fi
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22244 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22245 if test $gcc_cv_math_func_sqrtf = yes; then
22246
22247 cat >>confdefs.h <<_ACEOF
22248 #define HAVE_SQRTF 1
22249 _ACEOF
22250
22251 fi
22252
22253
22254
22255
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22257 $as_echo_n "checking for sqrt... " >&6; }
22258 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22259 $as_echo_n "(cached) " >&6
22260 else
22261 if test x$gcc_no_link = xyes; then
22262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22263 fi
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h. */
22266
22267 #ifdef HAVE_COMPLEX_H
22268 #include <complex.h>
22269 #endif
22270 #ifdef HAVE_MATH_H
22271 #include <math.h>
22272 #endif
22273
22274 int (*ptr)() = (int (*)())sqrt;
22275
22276 int
22277 main ()
22278 {
22279 return 0;
22280 }
22281
22282 _ACEOF
22283 if ac_fn_c_try_link "$LINENO"; then :
22284 gcc_cv_math_func_sqrt=yes
22285 else
22286 gcc_cv_math_func_sqrt=no
22287 fi
22288 rm -f core conftest.err conftest.$ac_objext \
22289 conftest$ac_exeext conftest.$ac_ext
22290 fi
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22292 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22293 if test $gcc_cv_math_func_sqrt = yes; then
22294
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_SQRT 1
22297 _ACEOF
22298
22299 fi
22300
22301
22302
22303
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22305 $as_echo_n "checking for sqrtl... " >&6; }
22306 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22307 $as_echo_n "(cached) " >&6
22308 else
22309 if test x$gcc_no_link = xyes; then
22310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22311 fi
22312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22313 /* end confdefs.h. */
22314
22315 #ifdef HAVE_COMPLEX_H
22316 #include <complex.h>
22317 #endif
22318 #ifdef HAVE_MATH_H
22319 #include <math.h>
22320 #endif
22321
22322 int (*ptr)() = (int (*)())sqrtl;
22323
22324 int
22325 main ()
22326 {
22327 return 0;
22328 }
22329
22330 _ACEOF
22331 if ac_fn_c_try_link "$LINENO"; then :
22332 gcc_cv_math_func_sqrtl=yes
22333 else
22334 gcc_cv_math_func_sqrtl=no
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext \
22337 conftest$ac_exeext conftest.$ac_ext
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22340 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22341 if test $gcc_cv_math_func_sqrtl = yes; then
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define HAVE_SQRTL 1
22345 _ACEOF
22346
22347 fi
22348
22349
22350
22351
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22353 $as_echo_n "checking for csqrtf... " >&6; }
22354 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22355 $as_echo_n "(cached) " >&6
22356 else
22357 if test x$gcc_no_link = xyes; then
22358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22359 fi
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h. */
22362
22363 #ifdef HAVE_COMPLEX_H
22364 #include <complex.h>
22365 #endif
22366 #ifdef HAVE_MATH_H
22367 #include <math.h>
22368 #endif
22369
22370 int (*ptr)() = (int (*)())csqrtf;
22371
22372 int
22373 main ()
22374 {
22375 return 0;
22376 }
22377
22378 _ACEOF
22379 if ac_fn_c_try_link "$LINENO"; then :
22380 gcc_cv_math_func_csqrtf=yes
22381 else
22382 gcc_cv_math_func_csqrtf=no
22383 fi
22384 rm -f core conftest.err conftest.$ac_objext \
22385 conftest$ac_exeext conftest.$ac_ext
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22388 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22389 if test $gcc_cv_math_func_csqrtf = yes; then
22390
22391 cat >>confdefs.h <<_ACEOF
22392 #define HAVE_CSQRTF 1
22393 _ACEOF
22394
22395 fi
22396
22397
22398
22399
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22401 $as_echo_n "checking for csqrt... " >&6; }
22402 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22403 $as_echo_n "(cached) " >&6
22404 else
22405 if test x$gcc_no_link = xyes; then
22406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22407 fi
22408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22410
22411 #ifdef HAVE_COMPLEX_H
22412 #include <complex.h>
22413 #endif
22414 #ifdef HAVE_MATH_H
22415 #include <math.h>
22416 #endif
22417
22418 int (*ptr)() = (int (*)())csqrt;
22419
22420 int
22421 main ()
22422 {
22423 return 0;
22424 }
22425
22426 _ACEOF
22427 if ac_fn_c_try_link "$LINENO"; then :
22428 gcc_cv_math_func_csqrt=yes
22429 else
22430 gcc_cv_math_func_csqrt=no
22431 fi
22432 rm -f core conftest.err conftest.$ac_objext \
22433 conftest$ac_exeext conftest.$ac_ext
22434 fi
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22436 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22437 if test $gcc_cv_math_func_csqrt = yes; then
22438
22439 cat >>confdefs.h <<_ACEOF
22440 #define HAVE_CSQRT 1
22441 _ACEOF
22442
22443 fi
22444
22445
22446
22447
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22449 $as_echo_n "checking for csqrtl... " >&6; }
22450 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22453 if test x$gcc_no_link = xyes; then
22454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22455 fi
22456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22457 /* end confdefs.h. */
22458
22459 #ifdef HAVE_COMPLEX_H
22460 #include <complex.h>
22461 #endif
22462 #ifdef HAVE_MATH_H
22463 #include <math.h>
22464 #endif
22465
22466 int (*ptr)() = (int (*)())csqrtl;
22467
22468 int
22469 main ()
22470 {
22471 return 0;
22472 }
22473
22474 _ACEOF
22475 if ac_fn_c_try_link "$LINENO"; then :
22476 gcc_cv_math_func_csqrtl=yes
22477 else
22478 gcc_cv_math_func_csqrtl=no
22479 fi
22480 rm -f core conftest.err conftest.$ac_objext \
22481 conftest$ac_exeext conftest.$ac_ext
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22484 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22485 if test $gcc_cv_math_func_csqrtl = yes; then
22486
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_CSQRTL 1
22489 _ACEOF
22490
22491 fi
22492
22493
22494
22495
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22497 $as_echo_n "checking for tanf... " >&6; }
22498 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22499 $as_echo_n "(cached) " >&6
22500 else
22501 if test x$gcc_no_link = xyes; then
22502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22503 fi
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506
22507 #ifdef HAVE_COMPLEX_H
22508 #include <complex.h>
22509 #endif
22510 #ifdef HAVE_MATH_H
22511 #include <math.h>
22512 #endif
22513
22514 int (*ptr)() = (int (*)())tanf;
22515
22516 int
22517 main ()
22518 {
22519 return 0;
22520 }
22521
22522 _ACEOF
22523 if ac_fn_c_try_link "$LINENO"; then :
22524 gcc_cv_math_func_tanf=yes
22525 else
22526 gcc_cv_math_func_tanf=no
22527 fi
22528 rm -f core conftest.err conftest.$ac_objext \
22529 conftest$ac_exeext conftest.$ac_ext
22530 fi
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22532 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22533 if test $gcc_cv_math_func_tanf = yes; then
22534
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_TANF 1
22537 _ACEOF
22538
22539 fi
22540
22541
22542
22543
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22545 $as_echo_n "checking for tan... " >&6; }
22546 if test "${gcc_cv_math_func_tan+set}" = set; then :
22547 $as_echo_n "(cached) " >&6
22548 else
22549 if test x$gcc_no_link = xyes; then
22550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22551 fi
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22554
22555 #ifdef HAVE_COMPLEX_H
22556 #include <complex.h>
22557 #endif
22558 #ifdef HAVE_MATH_H
22559 #include <math.h>
22560 #endif
22561
22562 int (*ptr)() = (int (*)())tan;
22563
22564 int
22565 main ()
22566 {
22567 return 0;
22568 }
22569
22570 _ACEOF
22571 if ac_fn_c_try_link "$LINENO"; then :
22572 gcc_cv_math_func_tan=yes
22573 else
22574 gcc_cv_math_func_tan=no
22575 fi
22576 rm -f core conftest.err conftest.$ac_objext \
22577 conftest$ac_exeext conftest.$ac_ext
22578 fi
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22580 $as_echo "$gcc_cv_math_func_tan" >&6; }
22581 if test $gcc_cv_math_func_tan = yes; then
22582
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_TAN 1
22585 _ACEOF
22586
22587 fi
22588
22589
22590
22591
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22593 $as_echo_n "checking for tanl... " >&6; }
22594 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22596 else
22597 if test x$gcc_no_link = xyes; then
22598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22599 fi
22600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601 /* end confdefs.h. */
22602
22603 #ifdef HAVE_COMPLEX_H
22604 #include <complex.h>
22605 #endif
22606 #ifdef HAVE_MATH_H
22607 #include <math.h>
22608 #endif
22609
22610 int (*ptr)() = (int (*)())tanl;
22611
22612 int
22613 main ()
22614 {
22615 return 0;
22616 }
22617
22618 _ACEOF
22619 if ac_fn_c_try_link "$LINENO"; then :
22620 gcc_cv_math_func_tanl=yes
22621 else
22622 gcc_cv_math_func_tanl=no
22623 fi
22624 rm -f core conftest.err conftest.$ac_objext \
22625 conftest$ac_exeext conftest.$ac_ext
22626 fi
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22628 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22629 if test $gcc_cv_math_func_tanl = yes; then
22630
22631 cat >>confdefs.h <<_ACEOF
22632 #define HAVE_TANL 1
22633 _ACEOF
22634
22635 fi
22636
22637
22638
22639
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22641 $as_echo_n "checking for ctanf... " >&6; }
22642 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22644 else
22645 if test x$gcc_no_link = xyes; then
22646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22647 fi
22648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649 /* end confdefs.h. */
22650
22651 #ifdef HAVE_COMPLEX_H
22652 #include <complex.h>
22653 #endif
22654 #ifdef HAVE_MATH_H
22655 #include <math.h>
22656 #endif
22657
22658 int (*ptr)() = (int (*)())ctanf;
22659
22660 int
22661 main ()
22662 {
22663 return 0;
22664 }
22665
22666 _ACEOF
22667 if ac_fn_c_try_link "$LINENO"; then :
22668 gcc_cv_math_func_ctanf=yes
22669 else
22670 gcc_cv_math_func_ctanf=no
22671 fi
22672 rm -f core conftest.err conftest.$ac_objext \
22673 conftest$ac_exeext conftest.$ac_ext
22674 fi
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22676 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22677 if test $gcc_cv_math_func_ctanf = yes; then
22678
22679 cat >>confdefs.h <<_ACEOF
22680 #define HAVE_CTANF 1
22681 _ACEOF
22682
22683 fi
22684
22685
22686
22687
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22689 $as_echo_n "checking for ctan... " >&6; }
22690 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22692 else
22693 if test x$gcc_no_link = xyes; then
22694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22695 fi
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697 /* end confdefs.h. */
22698
22699 #ifdef HAVE_COMPLEX_H
22700 #include <complex.h>
22701 #endif
22702 #ifdef HAVE_MATH_H
22703 #include <math.h>
22704 #endif
22705
22706 int (*ptr)() = (int (*)())ctan;
22707
22708 int
22709 main ()
22710 {
22711 return 0;
22712 }
22713
22714 _ACEOF
22715 if ac_fn_c_try_link "$LINENO"; then :
22716 gcc_cv_math_func_ctan=yes
22717 else
22718 gcc_cv_math_func_ctan=no
22719 fi
22720 rm -f core conftest.err conftest.$ac_objext \
22721 conftest$ac_exeext conftest.$ac_ext
22722 fi
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22724 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22725 if test $gcc_cv_math_func_ctan = yes; then
22726
22727 cat >>confdefs.h <<_ACEOF
22728 #define HAVE_CTAN 1
22729 _ACEOF
22730
22731 fi
22732
22733
22734
22735
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22737 $as_echo_n "checking for ctanl... " >&6; }
22738 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22739 $as_echo_n "(cached) " >&6
22740 else
22741 if test x$gcc_no_link = xyes; then
22742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22743 fi
22744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745 /* end confdefs.h. */
22746
22747 #ifdef HAVE_COMPLEX_H
22748 #include <complex.h>
22749 #endif
22750 #ifdef HAVE_MATH_H
22751 #include <math.h>
22752 #endif
22753
22754 int (*ptr)() = (int (*)())ctanl;
22755
22756 int
22757 main ()
22758 {
22759 return 0;
22760 }
22761
22762 _ACEOF
22763 if ac_fn_c_try_link "$LINENO"; then :
22764 gcc_cv_math_func_ctanl=yes
22765 else
22766 gcc_cv_math_func_ctanl=no
22767 fi
22768 rm -f core conftest.err conftest.$ac_objext \
22769 conftest$ac_exeext conftest.$ac_ext
22770 fi
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22772 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22773 if test $gcc_cv_math_func_ctanl = yes; then
22774
22775 cat >>confdefs.h <<_ACEOF
22776 #define HAVE_CTANL 1
22777 _ACEOF
22778
22779 fi
22780
22781
22782
22783
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22785 $as_echo_n "checking for tanhf... " >&6; }
22786 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22787 $as_echo_n "(cached) " >&6
22788 else
22789 if test x$gcc_no_link = xyes; then
22790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22791 fi
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793 /* end confdefs.h. */
22794
22795 #ifdef HAVE_COMPLEX_H
22796 #include <complex.h>
22797 #endif
22798 #ifdef HAVE_MATH_H
22799 #include <math.h>
22800 #endif
22801
22802 int (*ptr)() = (int (*)())tanhf;
22803
22804 int
22805 main ()
22806 {
22807 return 0;
22808 }
22809
22810 _ACEOF
22811 if ac_fn_c_try_link "$LINENO"; then :
22812 gcc_cv_math_func_tanhf=yes
22813 else
22814 gcc_cv_math_func_tanhf=no
22815 fi
22816 rm -f core conftest.err conftest.$ac_objext \
22817 conftest$ac_exeext conftest.$ac_ext
22818 fi
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22820 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22821 if test $gcc_cv_math_func_tanhf = yes; then
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define HAVE_TANHF 1
22825 _ACEOF
22826
22827 fi
22828
22829
22830
22831
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22833 $as_echo_n "checking for tanh... " >&6; }
22834 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22835 $as_echo_n "(cached) " >&6
22836 else
22837 if test x$gcc_no_link = xyes; then
22838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22839 fi
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22842
22843 #ifdef HAVE_COMPLEX_H
22844 #include <complex.h>
22845 #endif
22846 #ifdef HAVE_MATH_H
22847 #include <math.h>
22848 #endif
22849
22850 int (*ptr)() = (int (*)())tanh;
22851
22852 int
22853 main ()
22854 {
22855 return 0;
22856 }
22857
22858 _ACEOF
22859 if ac_fn_c_try_link "$LINENO"; then :
22860 gcc_cv_math_func_tanh=yes
22861 else
22862 gcc_cv_math_func_tanh=no
22863 fi
22864 rm -f core conftest.err conftest.$ac_objext \
22865 conftest$ac_exeext conftest.$ac_ext
22866 fi
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22868 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22869 if test $gcc_cv_math_func_tanh = yes; then
22870
22871 cat >>confdefs.h <<_ACEOF
22872 #define HAVE_TANH 1
22873 _ACEOF
22874
22875 fi
22876
22877
22878
22879
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22881 $as_echo_n "checking for tanhl... " >&6; }
22882 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22883 $as_echo_n "(cached) " >&6
22884 else
22885 if test x$gcc_no_link = xyes; then
22886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22887 fi
22888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22890
22891 #ifdef HAVE_COMPLEX_H
22892 #include <complex.h>
22893 #endif
22894 #ifdef HAVE_MATH_H
22895 #include <math.h>
22896 #endif
22897
22898 int (*ptr)() = (int (*)())tanhl;
22899
22900 int
22901 main ()
22902 {
22903 return 0;
22904 }
22905
22906 _ACEOF
22907 if ac_fn_c_try_link "$LINENO"; then :
22908 gcc_cv_math_func_tanhl=yes
22909 else
22910 gcc_cv_math_func_tanhl=no
22911 fi
22912 rm -f core conftest.err conftest.$ac_objext \
22913 conftest$ac_exeext conftest.$ac_ext
22914 fi
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22916 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22917 if test $gcc_cv_math_func_tanhl = yes; then
22918
22919 cat >>confdefs.h <<_ACEOF
22920 #define HAVE_TANHL 1
22921 _ACEOF
22922
22923 fi
22924
22925
22926
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22929 $as_echo_n "checking for ctanhf... " >&6; }
22930 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22932 else
22933 if test x$gcc_no_link = xyes; then
22934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22935 fi
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22938
22939 #ifdef HAVE_COMPLEX_H
22940 #include <complex.h>
22941 #endif
22942 #ifdef HAVE_MATH_H
22943 #include <math.h>
22944 #endif
22945
22946 int (*ptr)() = (int (*)())ctanhf;
22947
22948 int
22949 main ()
22950 {
22951 return 0;
22952 }
22953
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956 gcc_cv_math_func_ctanhf=yes
22957 else
22958 gcc_cv_math_func_ctanhf=no
22959 fi
22960 rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22962 fi
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22964 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22965 if test $gcc_cv_math_func_ctanhf = yes; then
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_CTANHF 1
22969 _ACEOF
22970
22971 fi
22972
22973
22974
22975
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22977 $as_echo_n "checking for ctanh... " >&6; }
22978 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22979 $as_echo_n "(cached) " >&6
22980 else
22981 if test x$gcc_no_link = xyes; then
22982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22983 fi
22984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h. */
22986
22987 #ifdef HAVE_COMPLEX_H
22988 #include <complex.h>
22989 #endif
22990 #ifdef HAVE_MATH_H
22991 #include <math.h>
22992 #endif
22993
22994 int (*ptr)() = (int (*)())ctanh;
22995
22996 int
22997 main ()
22998 {
22999 return 0;
23000 }
23001
23002 _ACEOF
23003 if ac_fn_c_try_link "$LINENO"; then :
23004 gcc_cv_math_func_ctanh=yes
23005 else
23006 gcc_cv_math_func_ctanh=no
23007 fi
23008 rm -f core conftest.err conftest.$ac_objext \
23009 conftest$ac_exeext conftest.$ac_ext
23010 fi
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23012 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23013 if test $gcc_cv_math_func_ctanh = yes; then
23014
23015 cat >>confdefs.h <<_ACEOF
23016 #define HAVE_CTANH 1
23017 _ACEOF
23018
23019 fi
23020
23021
23022
23023
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23025 $as_echo_n "checking for ctanhl... " >&6; }
23026 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23027 $as_echo_n "(cached) " >&6
23028 else
23029 if test x$gcc_no_link = xyes; then
23030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23031 fi
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033 /* end confdefs.h. */
23034
23035 #ifdef HAVE_COMPLEX_H
23036 #include <complex.h>
23037 #endif
23038 #ifdef HAVE_MATH_H
23039 #include <math.h>
23040 #endif
23041
23042 int (*ptr)() = (int (*)())ctanhl;
23043
23044 int
23045 main ()
23046 {
23047 return 0;
23048 }
23049
23050 _ACEOF
23051 if ac_fn_c_try_link "$LINENO"; then :
23052 gcc_cv_math_func_ctanhl=yes
23053 else
23054 gcc_cv_math_func_ctanhl=no
23055 fi
23056 rm -f core conftest.err conftest.$ac_objext \
23057 conftest$ac_exeext conftest.$ac_ext
23058 fi
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23060 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23061 if test $gcc_cv_math_func_ctanhl = yes; then
23062
23063 cat >>confdefs.h <<_ACEOF
23064 #define HAVE_CTANHL 1
23065 _ACEOF
23066
23067 fi
23068
23069
23070
23071
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23073 $as_echo_n "checking for truncf... " >&6; }
23074 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23076 else
23077 if test x$gcc_no_link = xyes; then
23078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23079 fi
23080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23081 /* end confdefs.h. */
23082
23083 #ifdef HAVE_COMPLEX_H
23084 #include <complex.h>
23085 #endif
23086 #ifdef HAVE_MATH_H
23087 #include <math.h>
23088 #endif
23089
23090 int (*ptr)() = (int (*)())truncf;
23091
23092 int
23093 main ()
23094 {
23095 return 0;
23096 }
23097
23098 _ACEOF
23099 if ac_fn_c_try_link "$LINENO"; then :
23100 gcc_cv_math_func_truncf=yes
23101 else
23102 gcc_cv_math_func_truncf=no
23103 fi
23104 rm -f core conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23106 fi
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23108 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23109 if test $gcc_cv_math_func_truncf = yes; then
23110
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_TRUNCF 1
23113 _ACEOF
23114
23115 fi
23116
23117
23118
23119
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23121 $as_echo_n "checking for trunc... " >&6; }
23122 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23124 else
23125 if test x$gcc_no_link = xyes; then
23126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23127 fi
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23130
23131 #ifdef HAVE_COMPLEX_H
23132 #include <complex.h>
23133 #endif
23134 #ifdef HAVE_MATH_H
23135 #include <math.h>
23136 #endif
23137
23138 int (*ptr)() = (int (*)())trunc;
23139
23140 int
23141 main ()
23142 {
23143 return 0;
23144 }
23145
23146 _ACEOF
23147 if ac_fn_c_try_link "$LINENO"; then :
23148 gcc_cv_math_func_trunc=yes
23149 else
23150 gcc_cv_math_func_trunc=no
23151 fi
23152 rm -f core conftest.err conftest.$ac_objext \
23153 conftest$ac_exeext conftest.$ac_ext
23154 fi
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23156 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23157 if test $gcc_cv_math_func_trunc = yes; then
23158
23159 cat >>confdefs.h <<_ACEOF
23160 #define HAVE_TRUNC 1
23161 _ACEOF
23162
23163 fi
23164
23165
23166
23167
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23169 $as_echo_n "checking for truncl... " >&6; }
23170 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23171 $as_echo_n "(cached) " >&6
23172 else
23173 if test x$gcc_no_link = xyes; then
23174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23175 fi
23176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23177 /* end confdefs.h. */
23178
23179 #ifdef HAVE_COMPLEX_H
23180 #include <complex.h>
23181 #endif
23182 #ifdef HAVE_MATH_H
23183 #include <math.h>
23184 #endif
23185
23186 int (*ptr)() = (int (*)())truncl;
23187
23188 int
23189 main ()
23190 {
23191 return 0;
23192 }
23193
23194 _ACEOF
23195 if ac_fn_c_try_link "$LINENO"; then :
23196 gcc_cv_math_func_truncl=yes
23197 else
23198 gcc_cv_math_func_truncl=no
23199 fi
23200 rm -f core conftest.err conftest.$ac_objext \
23201 conftest$ac_exeext conftest.$ac_ext
23202 fi
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23204 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23205 if test $gcc_cv_math_func_truncl = yes; then
23206
23207 cat >>confdefs.h <<_ACEOF
23208 #define HAVE_TRUNCL 1
23209 _ACEOF
23210
23211 fi
23212
23213
23214
23215
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23217 $as_echo_n "checking for erff... " >&6; }
23218 if test "${gcc_cv_math_func_erff+set}" = set; then :
23219 $as_echo_n "(cached) " >&6
23220 else
23221 if test x$gcc_no_link = xyes; then
23222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23223 fi
23224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225 /* end confdefs.h. */
23226
23227 #ifdef HAVE_COMPLEX_H
23228 #include <complex.h>
23229 #endif
23230 #ifdef HAVE_MATH_H
23231 #include <math.h>
23232 #endif
23233
23234 int (*ptr)() = (int (*)())erff;
23235
23236 int
23237 main ()
23238 {
23239 return 0;
23240 }
23241
23242 _ACEOF
23243 if ac_fn_c_try_link "$LINENO"; then :
23244 gcc_cv_math_func_erff=yes
23245 else
23246 gcc_cv_math_func_erff=no
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23250 fi
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23252 $as_echo "$gcc_cv_math_func_erff" >&6; }
23253 if test $gcc_cv_math_func_erff = yes; then
23254
23255 cat >>confdefs.h <<_ACEOF
23256 #define HAVE_ERFF 1
23257 _ACEOF
23258
23259 fi
23260
23261
23262
23263
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23265 $as_echo_n "checking for erf... " >&6; }
23266 if test "${gcc_cv_math_func_erf+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23268 else
23269 if test x$gcc_no_link = xyes; then
23270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23271 fi
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273 /* end confdefs.h. */
23274
23275 #ifdef HAVE_COMPLEX_H
23276 #include <complex.h>
23277 #endif
23278 #ifdef HAVE_MATH_H
23279 #include <math.h>
23280 #endif
23281
23282 int (*ptr)() = (int (*)())erf;
23283
23284 int
23285 main ()
23286 {
23287 return 0;
23288 }
23289
23290 _ACEOF
23291 if ac_fn_c_try_link "$LINENO"; then :
23292 gcc_cv_math_func_erf=yes
23293 else
23294 gcc_cv_math_func_erf=no
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
23298 fi
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23300 $as_echo "$gcc_cv_math_func_erf" >&6; }
23301 if test $gcc_cv_math_func_erf = yes; then
23302
23303 cat >>confdefs.h <<_ACEOF
23304 #define HAVE_ERF 1
23305 _ACEOF
23306
23307 fi
23308
23309
23310
23311
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23313 $as_echo_n "checking for erfl... " >&6; }
23314 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23315 $as_echo_n "(cached) " >&6
23316 else
23317 if test x$gcc_no_link = xyes; then
23318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23319 fi
23320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23321 /* end confdefs.h. */
23322
23323 #ifdef HAVE_COMPLEX_H
23324 #include <complex.h>
23325 #endif
23326 #ifdef HAVE_MATH_H
23327 #include <math.h>
23328 #endif
23329
23330 int (*ptr)() = (int (*)())erfl;
23331
23332 int
23333 main ()
23334 {
23335 return 0;
23336 }
23337
23338 _ACEOF
23339 if ac_fn_c_try_link "$LINENO"; then :
23340 gcc_cv_math_func_erfl=yes
23341 else
23342 gcc_cv_math_func_erfl=no
23343 fi
23344 rm -f core conftest.err conftest.$ac_objext \
23345 conftest$ac_exeext conftest.$ac_ext
23346 fi
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23348 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23349 if test $gcc_cv_math_func_erfl = yes; then
23350
23351 cat >>confdefs.h <<_ACEOF
23352 #define HAVE_ERFL 1
23353 _ACEOF
23354
23355 fi
23356
23357
23358
23359
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23361 $as_echo_n "checking for erfcf... " >&6; }
23362 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 if test x$gcc_no_link = xyes; then
23366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23367 fi
23368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23369 /* end confdefs.h. */
23370
23371 #ifdef HAVE_COMPLEX_H
23372 #include <complex.h>
23373 #endif
23374 #ifdef HAVE_MATH_H
23375 #include <math.h>
23376 #endif
23377
23378 int (*ptr)() = (int (*)())erfcf;
23379
23380 int
23381 main ()
23382 {
23383 return 0;
23384 }
23385
23386 _ACEOF
23387 if ac_fn_c_try_link "$LINENO"; then :
23388 gcc_cv_math_func_erfcf=yes
23389 else
23390 gcc_cv_math_func_erfcf=no
23391 fi
23392 rm -f core conftest.err conftest.$ac_objext \
23393 conftest$ac_exeext conftest.$ac_ext
23394 fi
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23396 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23397 if test $gcc_cv_math_func_erfcf = yes; then
23398
23399 cat >>confdefs.h <<_ACEOF
23400 #define HAVE_ERFCF 1
23401 _ACEOF
23402
23403 fi
23404
23405
23406
23407
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23409 $as_echo_n "checking for erfc... " >&6; }
23410 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23411 $as_echo_n "(cached) " >&6
23412 else
23413 if test x$gcc_no_link = xyes; then
23414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23415 fi
23416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23417 /* end confdefs.h. */
23418
23419 #ifdef HAVE_COMPLEX_H
23420 #include <complex.h>
23421 #endif
23422 #ifdef HAVE_MATH_H
23423 #include <math.h>
23424 #endif
23425
23426 int (*ptr)() = (int (*)())erfc;
23427
23428 int
23429 main ()
23430 {
23431 return 0;
23432 }
23433
23434 _ACEOF
23435 if ac_fn_c_try_link "$LINENO"; then :
23436 gcc_cv_math_func_erfc=yes
23437 else
23438 gcc_cv_math_func_erfc=no
23439 fi
23440 rm -f core conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23442 fi
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23444 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23445 if test $gcc_cv_math_func_erfc = yes; then
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define HAVE_ERFC 1
23449 _ACEOF
23450
23451 fi
23452
23453
23454
23455
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23457 $as_echo_n "checking for erfcl... " >&6; }
23458 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23459 $as_echo_n "(cached) " >&6
23460 else
23461 if test x$gcc_no_link = xyes; then
23462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23463 fi
23464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23465 /* end confdefs.h. */
23466
23467 #ifdef HAVE_COMPLEX_H
23468 #include <complex.h>
23469 #endif
23470 #ifdef HAVE_MATH_H
23471 #include <math.h>
23472 #endif
23473
23474 int (*ptr)() = (int (*)())erfcl;
23475
23476 int
23477 main ()
23478 {
23479 return 0;
23480 }
23481
23482 _ACEOF
23483 if ac_fn_c_try_link "$LINENO"; then :
23484 gcc_cv_math_func_erfcl=yes
23485 else
23486 gcc_cv_math_func_erfcl=no
23487 fi
23488 rm -f core conftest.err conftest.$ac_objext \
23489 conftest$ac_exeext conftest.$ac_ext
23490 fi
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23492 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23493 if test $gcc_cv_math_func_erfcl = yes; then
23494
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_ERFCL 1
23497 _ACEOF
23498
23499 fi
23500
23501
23502
23503
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23505 $as_echo_n "checking for j0f... " >&6; }
23506 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23508 else
23509 if test x$gcc_no_link = xyes; then
23510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23511 fi
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23514
23515 #ifdef HAVE_COMPLEX_H
23516 #include <complex.h>
23517 #endif
23518 #ifdef HAVE_MATH_H
23519 #include <math.h>
23520 #endif
23521
23522 int (*ptr)() = (int (*)())j0f;
23523
23524 int
23525 main ()
23526 {
23527 return 0;
23528 }
23529
23530 _ACEOF
23531 if ac_fn_c_try_link "$LINENO"; then :
23532 gcc_cv_math_func_j0f=yes
23533 else
23534 gcc_cv_math_func_j0f=no
23535 fi
23536 rm -f core conftest.err conftest.$ac_objext \
23537 conftest$ac_exeext conftest.$ac_ext
23538 fi
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23540 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23541 if test $gcc_cv_math_func_j0f = yes; then
23542
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_J0F 1
23545 _ACEOF
23546
23547 fi
23548
23549
23550
23551
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23553 $as_echo_n "checking for j0... " >&6; }
23554 if test "${gcc_cv_math_func_j0+set}" = set; then :
23555 $as_echo_n "(cached) " >&6
23556 else
23557 if test x$gcc_no_link = xyes; then
23558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23559 fi
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561 /* end confdefs.h. */
23562
23563 #ifdef HAVE_COMPLEX_H
23564 #include <complex.h>
23565 #endif
23566 #ifdef HAVE_MATH_H
23567 #include <math.h>
23568 #endif
23569
23570 int (*ptr)() = (int (*)())j0;
23571
23572 int
23573 main ()
23574 {
23575 return 0;
23576 }
23577
23578 _ACEOF
23579 if ac_fn_c_try_link "$LINENO"; then :
23580 gcc_cv_math_func_j0=yes
23581 else
23582 gcc_cv_math_func_j0=no
23583 fi
23584 rm -f core conftest.err conftest.$ac_objext \
23585 conftest$ac_exeext conftest.$ac_ext
23586 fi
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23588 $as_echo "$gcc_cv_math_func_j0" >&6; }
23589 if test $gcc_cv_math_func_j0 = yes; then
23590
23591 cat >>confdefs.h <<_ACEOF
23592 #define HAVE_J0 1
23593 _ACEOF
23594
23595 fi
23596
23597
23598
23599
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23601 $as_echo_n "checking for j0l... " >&6; }
23602 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23604 else
23605 if test x$gcc_no_link = xyes; then
23606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23607 fi
23608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23609 /* end confdefs.h. */
23610
23611 #ifdef HAVE_COMPLEX_H
23612 #include <complex.h>
23613 #endif
23614 #ifdef HAVE_MATH_H
23615 #include <math.h>
23616 #endif
23617
23618 int (*ptr)() = (int (*)())j0l;
23619
23620 int
23621 main ()
23622 {
23623 return 0;
23624 }
23625
23626 _ACEOF
23627 if ac_fn_c_try_link "$LINENO"; then :
23628 gcc_cv_math_func_j0l=yes
23629 else
23630 gcc_cv_math_func_j0l=no
23631 fi
23632 rm -f core conftest.err conftest.$ac_objext \
23633 conftest$ac_exeext conftest.$ac_ext
23634 fi
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23636 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23637 if test $gcc_cv_math_func_j0l = yes; then
23638
23639 cat >>confdefs.h <<_ACEOF
23640 #define HAVE_J0L 1
23641 _ACEOF
23642
23643 fi
23644
23645
23646
23647
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23649 $as_echo_n "checking for j1f... " >&6; }
23650 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23652 else
23653 if test x$gcc_no_link = xyes; then
23654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23655 fi
23656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h. */
23658
23659 #ifdef HAVE_COMPLEX_H
23660 #include <complex.h>
23661 #endif
23662 #ifdef HAVE_MATH_H
23663 #include <math.h>
23664 #endif
23665
23666 int (*ptr)() = (int (*)())j1f;
23667
23668 int
23669 main ()
23670 {
23671 return 0;
23672 }
23673
23674 _ACEOF
23675 if ac_fn_c_try_link "$LINENO"; then :
23676 gcc_cv_math_func_j1f=yes
23677 else
23678 gcc_cv_math_func_j1f=no
23679 fi
23680 rm -f core conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext conftest.$ac_ext
23682 fi
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23684 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23685 if test $gcc_cv_math_func_j1f = yes; then
23686
23687 cat >>confdefs.h <<_ACEOF
23688 #define HAVE_J1F 1
23689 _ACEOF
23690
23691 fi
23692
23693
23694
23695
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23697 $as_echo_n "checking for j1... " >&6; }
23698 if test "${gcc_cv_math_func_j1+set}" = set; then :
23699 $as_echo_n "(cached) " >&6
23700 else
23701 if test x$gcc_no_link = xyes; then
23702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23703 fi
23704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23705 /* end confdefs.h. */
23706
23707 #ifdef HAVE_COMPLEX_H
23708 #include <complex.h>
23709 #endif
23710 #ifdef HAVE_MATH_H
23711 #include <math.h>
23712 #endif
23713
23714 int (*ptr)() = (int (*)())j1;
23715
23716 int
23717 main ()
23718 {
23719 return 0;
23720 }
23721
23722 _ACEOF
23723 if ac_fn_c_try_link "$LINENO"; then :
23724 gcc_cv_math_func_j1=yes
23725 else
23726 gcc_cv_math_func_j1=no
23727 fi
23728 rm -f core conftest.err conftest.$ac_objext \
23729 conftest$ac_exeext conftest.$ac_ext
23730 fi
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23732 $as_echo "$gcc_cv_math_func_j1" >&6; }
23733 if test $gcc_cv_math_func_j1 = yes; then
23734
23735 cat >>confdefs.h <<_ACEOF
23736 #define HAVE_J1 1
23737 _ACEOF
23738
23739 fi
23740
23741
23742
23743
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23745 $as_echo_n "checking for j1l... " >&6; }
23746 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23748 else
23749 if test x$gcc_no_link = xyes; then
23750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23751 fi
23752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753 /* end confdefs.h. */
23754
23755 #ifdef HAVE_COMPLEX_H
23756 #include <complex.h>
23757 #endif
23758 #ifdef HAVE_MATH_H
23759 #include <math.h>
23760 #endif
23761
23762 int (*ptr)() = (int (*)())j1l;
23763
23764 int
23765 main ()
23766 {
23767 return 0;
23768 }
23769
23770 _ACEOF
23771 if ac_fn_c_try_link "$LINENO"; then :
23772 gcc_cv_math_func_j1l=yes
23773 else
23774 gcc_cv_math_func_j1l=no
23775 fi
23776 rm -f core conftest.err conftest.$ac_objext \
23777 conftest$ac_exeext conftest.$ac_ext
23778 fi
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23780 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23781 if test $gcc_cv_math_func_j1l = yes; then
23782
23783 cat >>confdefs.h <<_ACEOF
23784 #define HAVE_J1L 1
23785 _ACEOF
23786
23787 fi
23788
23789
23790
23791
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23793 $as_echo_n "checking for jnf... " >&6; }
23794 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 if test x$gcc_no_link = xyes; then
23798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23799 fi
23800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23801 /* end confdefs.h. */
23802
23803 #ifdef HAVE_COMPLEX_H
23804 #include <complex.h>
23805 #endif
23806 #ifdef HAVE_MATH_H
23807 #include <math.h>
23808 #endif
23809
23810 int (*ptr)() = (int (*)())jnf;
23811
23812 int
23813 main ()
23814 {
23815 return 0;
23816 }
23817
23818 _ACEOF
23819 if ac_fn_c_try_link "$LINENO"; then :
23820 gcc_cv_math_func_jnf=yes
23821 else
23822 gcc_cv_math_func_jnf=no
23823 fi
23824 rm -f core conftest.err conftest.$ac_objext \
23825 conftest$ac_exeext conftest.$ac_ext
23826 fi
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23828 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23829 if test $gcc_cv_math_func_jnf = yes; then
23830
23831 cat >>confdefs.h <<_ACEOF
23832 #define HAVE_JNF 1
23833 _ACEOF
23834
23835 fi
23836
23837
23838
23839
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23841 $as_echo_n "checking for jn... " >&6; }
23842 if test "${gcc_cv_math_func_jn+set}" = set; then :
23843 $as_echo_n "(cached) " >&6
23844 else
23845 if test x$gcc_no_link = xyes; then
23846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23847 fi
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23850
23851 #ifdef HAVE_COMPLEX_H
23852 #include <complex.h>
23853 #endif
23854 #ifdef HAVE_MATH_H
23855 #include <math.h>
23856 #endif
23857
23858 int (*ptr)() = (int (*)())jn;
23859
23860 int
23861 main ()
23862 {
23863 return 0;
23864 }
23865
23866 _ACEOF
23867 if ac_fn_c_try_link "$LINENO"; then :
23868 gcc_cv_math_func_jn=yes
23869 else
23870 gcc_cv_math_func_jn=no
23871 fi
23872 rm -f core conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23874 fi
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23876 $as_echo "$gcc_cv_math_func_jn" >&6; }
23877 if test $gcc_cv_math_func_jn = yes; then
23878
23879 cat >>confdefs.h <<_ACEOF
23880 #define HAVE_JN 1
23881 _ACEOF
23882
23883 fi
23884
23885
23886
23887
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23889 $as_echo_n "checking for jnl... " >&6; }
23890 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23892 else
23893 if test x$gcc_no_link = xyes; then
23894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23895 fi
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23898
23899 #ifdef HAVE_COMPLEX_H
23900 #include <complex.h>
23901 #endif
23902 #ifdef HAVE_MATH_H
23903 #include <math.h>
23904 #endif
23905
23906 int (*ptr)() = (int (*)())jnl;
23907
23908 int
23909 main ()
23910 {
23911 return 0;
23912 }
23913
23914 _ACEOF
23915 if ac_fn_c_try_link "$LINENO"; then :
23916 gcc_cv_math_func_jnl=yes
23917 else
23918 gcc_cv_math_func_jnl=no
23919 fi
23920 rm -f core conftest.err conftest.$ac_objext \
23921 conftest$ac_exeext conftest.$ac_ext
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23924 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23925 if test $gcc_cv_math_func_jnl = yes; then
23926
23927 cat >>confdefs.h <<_ACEOF
23928 #define HAVE_JNL 1
23929 _ACEOF
23930
23931 fi
23932
23933
23934
23935
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23937 $as_echo_n "checking for y0f... " >&6; }
23938 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23940 else
23941 if test x$gcc_no_link = xyes; then
23942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23943 fi
23944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23945 /* end confdefs.h. */
23946
23947 #ifdef HAVE_COMPLEX_H
23948 #include <complex.h>
23949 #endif
23950 #ifdef HAVE_MATH_H
23951 #include <math.h>
23952 #endif
23953
23954 int (*ptr)() = (int (*)())y0f;
23955
23956 int
23957 main ()
23958 {
23959 return 0;
23960 }
23961
23962 _ACEOF
23963 if ac_fn_c_try_link "$LINENO"; then :
23964 gcc_cv_math_func_y0f=yes
23965 else
23966 gcc_cv_math_func_y0f=no
23967 fi
23968 rm -f core conftest.err conftest.$ac_objext \
23969 conftest$ac_exeext conftest.$ac_ext
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23972 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23973 if test $gcc_cv_math_func_y0f = yes; then
23974
23975 cat >>confdefs.h <<_ACEOF
23976 #define HAVE_Y0F 1
23977 _ACEOF
23978
23979 fi
23980
23981
23982
23983
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23985 $as_echo_n "checking for y0... " >&6; }
23986 if test "${gcc_cv_math_func_y0+set}" = set; then :
23987 $as_echo_n "(cached) " >&6
23988 else
23989 if test x$gcc_no_link = xyes; then
23990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23991 fi
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h. */
23994
23995 #ifdef HAVE_COMPLEX_H
23996 #include <complex.h>
23997 #endif
23998 #ifdef HAVE_MATH_H
23999 #include <math.h>
24000 #endif
24001
24002 int (*ptr)() = (int (*)())y0;
24003
24004 int
24005 main ()
24006 {
24007 return 0;
24008 }
24009
24010 _ACEOF
24011 if ac_fn_c_try_link "$LINENO"; then :
24012 gcc_cv_math_func_y0=yes
24013 else
24014 gcc_cv_math_func_y0=no
24015 fi
24016 rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
24018 fi
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24020 $as_echo "$gcc_cv_math_func_y0" >&6; }
24021 if test $gcc_cv_math_func_y0 = yes; then
24022
24023 cat >>confdefs.h <<_ACEOF
24024 #define HAVE_Y0 1
24025 _ACEOF
24026
24027 fi
24028
24029
24030
24031
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24033 $as_echo_n "checking for y0l... " >&6; }
24034 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 if test x$gcc_no_link = xyes; then
24038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24039 fi
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24042
24043 #ifdef HAVE_COMPLEX_H
24044 #include <complex.h>
24045 #endif
24046 #ifdef HAVE_MATH_H
24047 #include <math.h>
24048 #endif
24049
24050 int (*ptr)() = (int (*)())y0l;
24051
24052 int
24053 main ()
24054 {
24055 return 0;
24056 }
24057
24058 _ACEOF
24059 if ac_fn_c_try_link "$LINENO"; then :
24060 gcc_cv_math_func_y0l=yes
24061 else
24062 gcc_cv_math_func_y0l=no
24063 fi
24064 rm -f core conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24066 fi
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24068 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24069 if test $gcc_cv_math_func_y0l = yes; then
24070
24071 cat >>confdefs.h <<_ACEOF
24072 #define HAVE_Y0L 1
24073 _ACEOF
24074
24075 fi
24076
24077
24078
24079
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24081 $as_echo_n "checking for y1f... " >&6; }
24082 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24084 else
24085 if test x$gcc_no_link = xyes; then
24086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24087 fi
24088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24089 /* end confdefs.h. */
24090
24091 #ifdef HAVE_COMPLEX_H
24092 #include <complex.h>
24093 #endif
24094 #ifdef HAVE_MATH_H
24095 #include <math.h>
24096 #endif
24097
24098 int (*ptr)() = (int (*)())y1f;
24099
24100 int
24101 main ()
24102 {
24103 return 0;
24104 }
24105
24106 _ACEOF
24107 if ac_fn_c_try_link "$LINENO"; then :
24108 gcc_cv_math_func_y1f=yes
24109 else
24110 gcc_cv_math_func_y1f=no
24111 fi
24112 rm -f core conftest.err conftest.$ac_objext \
24113 conftest$ac_exeext conftest.$ac_ext
24114 fi
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24116 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24117 if test $gcc_cv_math_func_y1f = yes; then
24118
24119 cat >>confdefs.h <<_ACEOF
24120 #define HAVE_Y1F 1
24121 _ACEOF
24122
24123 fi
24124
24125
24126
24127
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24129 $as_echo_n "checking for y1... " >&6; }
24130 if test "${gcc_cv_math_func_y1+set}" = set; then :
24131 $as_echo_n "(cached) " >&6
24132 else
24133 if test x$gcc_no_link = xyes; then
24134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24135 fi
24136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24137 /* end confdefs.h. */
24138
24139 #ifdef HAVE_COMPLEX_H
24140 #include <complex.h>
24141 #endif
24142 #ifdef HAVE_MATH_H
24143 #include <math.h>
24144 #endif
24145
24146 int (*ptr)() = (int (*)())y1;
24147
24148 int
24149 main ()
24150 {
24151 return 0;
24152 }
24153
24154 _ACEOF
24155 if ac_fn_c_try_link "$LINENO"; then :
24156 gcc_cv_math_func_y1=yes
24157 else
24158 gcc_cv_math_func_y1=no
24159 fi
24160 rm -f core conftest.err conftest.$ac_objext \
24161 conftest$ac_exeext conftest.$ac_ext
24162 fi
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24164 $as_echo "$gcc_cv_math_func_y1" >&6; }
24165 if test $gcc_cv_math_func_y1 = yes; then
24166
24167 cat >>confdefs.h <<_ACEOF
24168 #define HAVE_Y1 1
24169 _ACEOF
24170
24171 fi
24172
24173
24174
24175
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24177 $as_echo_n "checking for y1l... " >&6; }
24178 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24180 else
24181 if test x$gcc_no_link = xyes; then
24182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24183 fi
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24186
24187 #ifdef HAVE_COMPLEX_H
24188 #include <complex.h>
24189 #endif
24190 #ifdef HAVE_MATH_H
24191 #include <math.h>
24192 #endif
24193
24194 int (*ptr)() = (int (*)())y1l;
24195
24196 int
24197 main ()
24198 {
24199 return 0;
24200 }
24201
24202 _ACEOF
24203 if ac_fn_c_try_link "$LINENO"; then :
24204 gcc_cv_math_func_y1l=yes
24205 else
24206 gcc_cv_math_func_y1l=no
24207 fi
24208 rm -f core conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
24210 fi
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24212 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24213 if test $gcc_cv_math_func_y1l = yes; then
24214
24215 cat >>confdefs.h <<_ACEOF
24216 #define HAVE_Y1L 1
24217 _ACEOF
24218
24219 fi
24220
24221
24222
24223
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24225 $as_echo_n "checking for ynf... " >&6; }
24226 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24228 else
24229 if test x$gcc_no_link = xyes; then
24230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24231 fi
24232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24233 /* end confdefs.h. */
24234
24235 #ifdef HAVE_COMPLEX_H
24236 #include <complex.h>
24237 #endif
24238 #ifdef HAVE_MATH_H
24239 #include <math.h>
24240 #endif
24241
24242 int (*ptr)() = (int (*)())ynf;
24243
24244 int
24245 main ()
24246 {
24247 return 0;
24248 }
24249
24250 _ACEOF
24251 if ac_fn_c_try_link "$LINENO"; then :
24252 gcc_cv_math_func_ynf=yes
24253 else
24254 gcc_cv_math_func_ynf=no
24255 fi
24256 rm -f core conftest.err conftest.$ac_objext \
24257 conftest$ac_exeext conftest.$ac_ext
24258 fi
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24260 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24261 if test $gcc_cv_math_func_ynf = yes; then
24262
24263 cat >>confdefs.h <<_ACEOF
24264 #define HAVE_YNF 1
24265 _ACEOF
24266
24267 fi
24268
24269
24270
24271
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24273 $as_echo_n "checking for yn... " >&6; }
24274 if test "${gcc_cv_math_func_yn+set}" = set; then :
24275 $as_echo_n "(cached) " >&6
24276 else
24277 if test x$gcc_no_link = xyes; then
24278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24279 fi
24280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24281 /* end confdefs.h. */
24282
24283 #ifdef HAVE_COMPLEX_H
24284 #include <complex.h>
24285 #endif
24286 #ifdef HAVE_MATH_H
24287 #include <math.h>
24288 #endif
24289
24290 int (*ptr)() = (int (*)())yn;
24291
24292 int
24293 main ()
24294 {
24295 return 0;
24296 }
24297
24298 _ACEOF
24299 if ac_fn_c_try_link "$LINENO"; then :
24300 gcc_cv_math_func_yn=yes
24301 else
24302 gcc_cv_math_func_yn=no
24303 fi
24304 rm -f core conftest.err conftest.$ac_objext \
24305 conftest$ac_exeext conftest.$ac_ext
24306 fi
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24308 $as_echo "$gcc_cv_math_func_yn" >&6; }
24309 if test $gcc_cv_math_func_yn = yes; then
24310
24311 cat >>confdefs.h <<_ACEOF
24312 #define HAVE_YN 1
24313 _ACEOF
24314
24315 fi
24316
24317
24318
24319
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24321 $as_echo_n "checking for ynl... " >&6; }
24322 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 if test x$gcc_no_link = xyes; then
24326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24327 fi
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24330
24331 #ifdef HAVE_COMPLEX_H
24332 #include <complex.h>
24333 #endif
24334 #ifdef HAVE_MATH_H
24335 #include <math.h>
24336 #endif
24337
24338 int (*ptr)() = (int (*)())ynl;
24339
24340 int
24341 main ()
24342 {
24343 return 0;
24344 }
24345
24346 _ACEOF
24347 if ac_fn_c_try_link "$LINENO"; then :
24348 gcc_cv_math_func_ynl=yes
24349 else
24350 gcc_cv_math_func_ynl=no
24351 fi
24352 rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24354 fi
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24356 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24357 if test $gcc_cv_math_func_ynl = yes; then
24358
24359 cat >>confdefs.h <<_ACEOF
24360 #define HAVE_YNL 1
24361 _ACEOF
24362
24363 fi
24364
24365
24366
24367
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24369 $as_echo_n "checking for tgamma... " >&6; }
24370 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24371 $as_echo_n "(cached) " >&6
24372 else
24373 if test x$gcc_no_link = xyes; then
24374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24375 fi
24376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h. */
24378
24379 #ifdef HAVE_COMPLEX_H
24380 #include <complex.h>
24381 #endif
24382 #ifdef HAVE_MATH_H
24383 #include <math.h>
24384 #endif
24385
24386 int (*ptr)() = (int (*)())tgamma;
24387
24388 int
24389 main ()
24390 {
24391 return 0;
24392 }
24393
24394 _ACEOF
24395 if ac_fn_c_try_link "$LINENO"; then :
24396 gcc_cv_math_func_tgamma=yes
24397 else
24398 gcc_cv_math_func_tgamma=no
24399 fi
24400 rm -f core conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
24402 fi
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24404 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24405 if test $gcc_cv_math_func_tgamma = yes; then
24406
24407 cat >>confdefs.h <<_ACEOF
24408 #define HAVE_TGAMMA 1
24409 _ACEOF
24410
24411 fi
24412
24413
24414
24415
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24417 $as_echo_n "checking for tgammaf... " >&6; }
24418 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24420 else
24421 if test x$gcc_no_link = xyes; then
24422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24423 fi
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24426
24427 #ifdef HAVE_COMPLEX_H
24428 #include <complex.h>
24429 #endif
24430 #ifdef HAVE_MATH_H
24431 #include <math.h>
24432 #endif
24433
24434 int (*ptr)() = (int (*)())tgammaf;
24435
24436 int
24437 main ()
24438 {
24439 return 0;
24440 }
24441
24442 _ACEOF
24443 if ac_fn_c_try_link "$LINENO"; then :
24444 gcc_cv_math_func_tgammaf=yes
24445 else
24446 gcc_cv_math_func_tgammaf=no
24447 fi
24448 rm -f core conftest.err conftest.$ac_objext \
24449 conftest$ac_exeext conftest.$ac_ext
24450 fi
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24452 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24453 if test $gcc_cv_math_func_tgammaf = yes; then
24454
24455 cat >>confdefs.h <<_ACEOF
24456 #define HAVE_TGAMMAF 1
24457 _ACEOF
24458
24459 fi
24460
24461
24462
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24465 $as_echo_n "checking for tgammal... " >&6; }
24466 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24468 else
24469 if test x$gcc_no_link = xyes; then
24470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24471 fi
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24474
24475 #ifdef HAVE_COMPLEX_H
24476 #include <complex.h>
24477 #endif
24478 #ifdef HAVE_MATH_H
24479 #include <math.h>
24480 #endif
24481
24482 int (*ptr)() = (int (*)())tgammal;
24483
24484 int
24485 main ()
24486 {
24487 return 0;
24488 }
24489
24490 _ACEOF
24491 if ac_fn_c_try_link "$LINENO"; then :
24492 gcc_cv_math_func_tgammal=yes
24493 else
24494 gcc_cv_math_func_tgammal=no
24495 fi
24496 rm -f core conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
24498 fi
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24500 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24501 if test $gcc_cv_math_func_tgammal = yes; then
24502
24503 cat >>confdefs.h <<_ACEOF
24504 #define HAVE_TGAMMAL 1
24505 _ACEOF
24506
24507 fi
24508
24509
24510
24511
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24513 $as_echo_n "checking for lgamma... " >&6; }
24514 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24515 $as_echo_n "(cached) " >&6
24516 else
24517 if test x$gcc_no_link = xyes; then
24518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24519 fi
24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521 /* end confdefs.h. */
24522
24523 #ifdef HAVE_COMPLEX_H
24524 #include <complex.h>
24525 #endif
24526 #ifdef HAVE_MATH_H
24527 #include <math.h>
24528 #endif
24529
24530 int (*ptr)() = (int (*)())lgamma;
24531
24532 int
24533 main ()
24534 {
24535 return 0;
24536 }
24537
24538 _ACEOF
24539 if ac_fn_c_try_link "$LINENO"; then :
24540 gcc_cv_math_func_lgamma=yes
24541 else
24542 gcc_cv_math_func_lgamma=no
24543 fi
24544 rm -f core conftest.err conftest.$ac_objext \
24545 conftest$ac_exeext conftest.$ac_ext
24546 fi
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24548 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24549 if test $gcc_cv_math_func_lgamma = yes; then
24550
24551 cat >>confdefs.h <<_ACEOF
24552 #define HAVE_LGAMMA 1
24553 _ACEOF
24554
24555 fi
24556
24557
24558
24559
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24561 $as_echo_n "checking for lgammaf... " >&6; }
24562 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 if test x$gcc_no_link = xyes; then
24566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24567 fi
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569 /* end confdefs.h. */
24570
24571 #ifdef HAVE_COMPLEX_H
24572 #include <complex.h>
24573 #endif
24574 #ifdef HAVE_MATH_H
24575 #include <math.h>
24576 #endif
24577
24578 int (*ptr)() = (int (*)())lgammaf;
24579
24580 int
24581 main ()
24582 {
24583 return 0;
24584 }
24585
24586 _ACEOF
24587 if ac_fn_c_try_link "$LINENO"; then :
24588 gcc_cv_math_func_lgammaf=yes
24589 else
24590 gcc_cv_math_func_lgammaf=no
24591 fi
24592 rm -f core conftest.err conftest.$ac_objext \
24593 conftest$ac_exeext conftest.$ac_ext
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24596 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24597 if test $gcc_cv_math_func_lgammaf = yes; then
24598
24599 cat >>confdefs.h <<_ACEOF
24600 #define HAVE_LGAMMAF 1
24601 _ACEOF
24602
24603 fi
24604
24605
24606
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24609 $as_echo_n "checking for lgammal... " >&6; }
24610 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24611 $as_echo_n "(cached) " >&6
24612 else
24613 if test x$gcc_no_link = xyes; then
24614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24615 fi
24616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617 /* end confdefs.h. */
24618
24619 #ifdef HAVE_COMPLEX_H
24620 #include <complex.h>
24621 #endif
24622 #ifdef HAVE_MATH_H
24623 #include <math.h>
24624 #endif
24625
24626 int (*ptr)() = (int (*)())lgammal;
24627
24628 int
24629 main ()
24630 {
24631 return 0;
24632 }
24633
24634 _ACEOF
24635 if ac_fn_c_try_link "$LINENO"; then :
24636 gcc_cv_math_func_lgammal=yes
24637 else
24638 gcc_cv_math_func_lgammal=no
24639 fi
24640 rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24642 fi
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24644 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24645 if test $gcc_cv_math_func_lgammal = yes; then
24646
24647 cat >>confdefs.h <<_ACEOF
24648 #define HAVE_LGAMMAL 1
24649 _ACEOF
24650
24651 fi
24652
24653
24654 # Check for GFORTRAN_C99_1.1 funcs
24655
24656
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24659 $as_echo_n "checking for cacos... " >&6; }
24660 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24662 else
24663 if test x$gcc_no_link = xyes; then
24664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24665 fi
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24668
24669 #ifdef HAVE_COMPLEX_H
24670 #include <complex.h>
24671 #endif
24672 #ifdef HAVE_MATH_H
24673 #include <math.h>
24674 #endif
24675
24676 int (*ptr)() = (int (*)())cacos;
24677
24678 int
24679 main ()
24680 {
24681 return 0;
24682 }
24683
24684 _ACEOF
24685 if ac_fn_c_try_link "$LINENO"; then :
24686 gcc_cv_math_func_cacos=yes
24687 else
24688 gcc_cv_math_func_cacos=no
24689 fi
24690 rm -f core conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
24692 fi
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24694 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24695 if test $gcc_cv_math_func_cacos = yes; then
24696
24697 cat >>confdefs.h <<_ACEOF
24698 #define HAVE_CACOS 1
24699 _ACEOF
24700
24701 fi
24702
24703
24704
24705
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24707 $as_echo_n "checking for cacosf... " >&6; }
24708 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 if test x$gcc_no_link = xyes; then
24712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24713 fi
24714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24715 /* end confdefs.h. */
24716
24717 #ifdef HAVE_COMPLEX_H
24718 #include <complex.h>
24719 #endif
24720 #ifdef HAVE_MATH_H
24721 #include <math.h>
24722 #endif
24723
24724 int (*ptr)() = (int (*)())cacosf;
24725
24726 int
24727 main ()
24728 {
24729 return 0;
24730 }
24731
24732 _ACEOF
24733 if ac_fn_c_try_link "$LINENO"; then :
24734 gcc_cv_math_func_cacosf=yes
24735 else
24736 gcc_cv_math_func_cacosf=no
24737 fi
24738 rm -f core conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
24740 fi
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24742 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24743 if test $gcc_cv_math_func_cacosf = yes; then
24744
24745 cat >>confdefs.h <<_ACEOF
24746 #define HAVE_CACOSF 1
24747 _ACEOF
24748
24749 fi
24750
24751
24752
24753
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24755 $as_echo_n "checking for cacosh... " >&6; }
24756 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24758 else
24759 if test x$gcc_no_link = xyes; then
24760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24761 fi
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h. */
24764
24765 #ifdef HAVE_COMPLEX_H
24766 #include <complex.h>
24767 #endif
24768 #ifdef HAVE_MATH_H
24769 #include <math.h>
24770 #endif
24771
24772 int (*ptr)() = (int (*)())cacosh;
24773
24774 int
24775 main ()
24776 {
24777 return 0;
24778 }
24779
24780 _ACEOF
24781 if ac_fn_c_try_link "$LINENO"; then :
24782 gcc_cv_math_func_cacosh=yes
24783 else
24784 gcc_cv_math_func_cacosh=no
24785 fi
24786 rm -f core conftest.err conftest.$ac_objext \
24787 conftest$ac_exeext conftest.$ac_ext
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24790 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24791 if test $gcc_cv_math_func_cacosh = yes; then
24792
24793 cat >>confdefs.h <<_ACEOF
24794 #define HAVE_CACOSH 1
24795 _ACEOF
24796
24797 fi
24798
24799
24800
24801
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24803 $as_echo_n "checking for cacoshf... " >&6; }
24804 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
24806 else
24807 if test x$gcc_no_link = xyes; then
24808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24809 fi
24810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h. */
24812
24813 #ifdef HAVE_COMPLEX_H
24814 #include <complex.h>
24815 #endif
24816 #ifdef HAVE_MATH_H
24817 #include <math.h>
24818 #endif
24819
24820 int (*ptr)() = (int (*)())cacoshf;
24821
24822 int
24823 main ()
24824 {
24825 return 0;
24826 }
24827
24828 _ACEOF
24829 if ac_fn_c_try_link "$LINENO"; then :
24830 gcc_cv_math_func_cacoshf=yes
24831 else
24832 gcc_cv_math_func_cacoshf=no
24833 fi
24834 rm -f core conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24838 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24839 if test $gcc_cv_math_func_cacoshf = yes; then
24840
24841 cat >>confdefs.h <<_ACEOF
24842 #define HAVE_CACOSHF 1
24843 _ACEOF
24844
24845 fi
24846
24847
24848
24849
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24851 $as_echo_n "checking for cacoshl... " >&6; }
24852 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 if test x$gcc_no_link = xyes; then
24856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24857 fi
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24860
24861 #ifdef HAVE_COMPLEX_H
24862 #include <complex.h>
24863 #endif
24864 #ifdef HAVE_MATH_H
24865 #include <math.h>
24866 #endif
24867
24868 int (*ptr)() = (int (*)())cacoshl;
24869
24870 int
24871 main ()
24872 {
24873 return 0;
24874 }
24875
24876 _ACEOF
24877 if ac_fn_c_try_link "$LINENO"; then :
24878 gcc_cv_math_func_cacoshl=yes
24879 else
24880 gcc_cv_math_func_cacoshl=no
24881 fi
24882 rm -f core conftest.err conftest.$ac_objext \
24883 conftest$ac_exeext conftest.$ac_ext
24884 fi
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24886 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24887 if test $gcc_cv_math_func_cacoshl = yes; then
24888
24889 cat >>confdefs.h <<_ACEOF
24890 #define HAVE_CACOSHL 1
24891 _ACEOF
24892
24893 fi
24894
24895
24896
24897
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24899 $as_echo_n "checking for cacosl... " >&6; }
24900 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 if test x$gcc_no_link = xyes; then
24904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24905 fi
24906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907 /* end confdefs.h. */
24908
24909 #ifdef HAVE_COMPLEX_H
24910 #include <complex.h>
24911 #endif
24912 #ifdef HAVE_MATH_H
24913 #include <math.h>
24914 #endif
24915
24916 int (*ptr)() = (int (*)())cacosl;
24917
24918 int
24919 main ()
24920 {
24921 return 0;
24922 }
24923
24924 _ACEOF
24925 if ac_fn_c_try_link "$LINENO"; then :
24926 gcc_cv_math_func_cacosl=yes
24927 else
24928 gcc_cv_math_func_cacosl=no
24929 fi
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932 fi
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24934 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24935 if test $gcc_cv_math_func_cacosl = yes; then
24936
24937 cat >>confdefs.h <<_ACEOF
24938 #define HAVE_CACOSL 1
24939 _ACEOF
24940
24941 fi
24942
24943
24944
24945
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24947 $as_echo_n "checking for casin... " >&6; }
24948 if test "${gcc_cv_math_func_casin+set}" = set; then :
24949 $as_echo_n "(cached) " >&6
24950 else
24951 if test x$gcc_no_link = xyes; then
24952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24953 fi
24954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24955 /* end confdefs.h. */
24956
24957 #ifdef HAVE_COMPLEX_H
24958 #include <complex.h>
24959 #endif
24960 #ifdef HAVE_MATH_H
24961 #include <math.h>
24962 #endif
24963
24964 int (*ptr)() = (int (*)())casin;
24965
24966 int
24967 main ()
24968 {
24969 return 0;
24970 }
24971
24972 _ACEOF
24973 if ac_fn_c_try_link "$LINENO"; then :
24974 gcc_cv_math_func_casin=yes
24975 else
24976 gcc_cv_math_func_casin=no
24977 fi
24978 rm -f core conftest.err conftest.$ac_objext \
24979 conftest$ac_exeext conftest.$ac_ext
24980 fi
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24982 $as_echo "$gcc_cv_math_func_casin" >&6; }
24983 if test $gcc_cv_math_func_casin = yes; then
24984
24985 cat >>confdefs.h <<_ACEOF
24986 #define HAVE_CASIN 1
24987 _ACEOF
24988
24989 fi
24990
24991
24992
24993
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24995 $as_echo_n "checking for casinf... " >&6; }
24996 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24998 else
24999 if test x$gcc_no_link = xyes; then
25000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25001 fi
25002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h. */
25004
25005 #ifdef HAVE_COMPLEX_H
25006 #include <complex.h>
25007 #endif
25008 #ifdef HAVE_MATH_H
25009 #include <math.h>
25010 #endif
25011
25012 int (*ptr)() = (int (*)())casinf;
25013
25014 int
25015 main ()
25016 {
25017 return 0;
25018 }
25019
25020 _ACEOF
25021 if ac_fn_c_try_link "$LINENO"; then :
25022 gcc_cv_math_func_casinf=yes
25023 else
25024 gcc_cv_math_func_casinf=no
25025 fi
25026 rm -f core conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
25028 fi
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25030 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25031 if test $gcc_cv_math_func_casinf = yes; then
25032
25033 cat >>confdefs.h <<_ACEOF
25034 #define HAVE_CASINF 1
25035 _ACEOF
25036
25037 fi
25038
25039
25040
25041
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25043 $as_echo_n "checking for casinh... " >&6; }
25044 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25045 $as_echo_n "(cached) " >&6
25046 else
25047 if test x$gcc_no_link = xyes; then
25048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25049 fi
25050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25051 /* end confdefs.h. */
25052
25053 #ifdef HAVE_COMPLEX_H
25054 #include <complex.h>
25055 #endif
25056 #ifdef HAVE_MATH_H
25057 #include <math.h>
25058 #endif
25059
25060 int (*ptr)() = (int (*)())casinh;
25061
25062 int
25063 main ()
25064 {
25065 return 0;
25066 }
25067
25068 _ACEOF
25069 if ac_fn_c_try_link "$LINENO"; then :
25070 gcc_cv_math_func_casinh=yes
25071 else
25072 gcc_cv_math_func_casinh=no
25073 fi
25074 rm -f core conftest.err conftest.$ac_objext \
25075 conftest$ac_exeext conftest.$ac_ext
25076 fi
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25078 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25079 if test $gcc_cv_math_func_casinh = yes; then
25080
25081 cat >>confdefs.h <<_ACEOF
25082 #define HAVE_CASINH 1
25083 _ACEOF
25084
25085 fi
25086
25087
25088
25089
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25091 $as_echo_n "checking for casinhf... " >&6; }
25092 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25094 else
25095 if test x$gcc_no_link = xyes; then
25096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25097 fi
25098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25099 /* end confdefs.h. */
25100
25101 #ifdef HAVE_COMPLEX_H
25102 #include <complex.h>
25103 #endif
25104 #ifdef HAVE_MATH_H
25105 #include <math.h>
25106 #endif
25107
25108 int (*ptr)() = (int (*)())casinhf;
25109
25110 int
25111 main ()
25112 {
25113 return 0;
25114 }
25115
25116 _ACEOF
25117 if ac_fn_c_try_link "$LINENO"; then :
25118 gcc_cv_math_func_casinhf=yes
25119 else
25120 gcc_cv_math_func_casinhf=no
25121 fi
25122 rm -f core conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
25124 fi
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25126 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25127 if test $gcc_cv_math_func_casinhf = yes; then
25128
25129 cat >>confdefs.h <<_ACEOF
25130 #define HAVE_CASINHF 1
25131 _ACEOF
25132
25133 fi
25134
25135
25136
25137
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25139 $as_echo_n "checking for casinhl... " >&6; }
25140 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25141 $as_echo_n "(cached) " >&6
25142 else
25143 if test x$gcc_no_link = xyes; then
25144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25145 fi
25146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25147 /* end confdefs.h. */
25148
25149 #ifdef HAVE_COMPLEX_H
25150 #include <complex.h>
25151 #endif
25152 #ifdef HAVE_MATH_H
25153 #include <math.h>
25154 #endif
25155
25156 int (*ptr)() = (int (*)())casinhl;
25157
25158 int
25159 main ()
25160 {
25161 return 0;
25162 }
25163
25164 _ACEOF
25165 if ac_fn_c_try_link "$LINENO"; then :
25166 gcc_cv_math_func_casinhl=yes
25167 else
25168 gcc_cv_math_func_casinhl=no
25169 fi
25170 rm -f core conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25172 fi
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25174 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25175 if test $gcc_cv_math_func_casinhl = yes; then
25176
25177 cat >>confdefs.h <<_ACEOF
25178 #define HAVE_CASINHL 1
25179 _ACEOF
25180
25181 fi
25182
25183
25184
25185
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25187 $as_echo_n "checking for casinl... " >&6; }
25188 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25190 else
25191 if test x$gcc_no_link = xyes; then
25192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25193 fi
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196
25197 #ifdef HAVE_COMPLEX_H
25198 #include <complex.h>
25199 #endif
25200 #ifdef HAVE_MATH_H
25201 #include <math.h>
25202 #endif
25203
25204 int (*ptr)() = (int (*)())casinl;
25205
25206 int
25207 main ()
25208 {
25209 return 0;
25210 }
25211
25212 _ACEOF
25213 if ac_fn_c_try_link "$LINENO"; then :
25214 gcc_cv_math_func_casinl=yes
25215 else
25216 gcc_cv_math_func_casinl=no
25217 fi
25218 rm -f core conftest.err conftest.$ac_objext \
25219 conftest$ac_exeext conftest.$ac_ext
25220 fi
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25222 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25223 if test $gcc_cv_math_func_casinl = yes; then
25224
25225 cat >>confdefs.h <<_ACEOF
25226 #define HAVE_CASINL 1
25227 _ACEOF
25228
25229 fi
25230
25231
25232
25233
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25235 $as_echo_n "checking for catan... " >&6; }
25236 if test "${gcc_cv_math_func_catan+set}" = set; then :
25237 $as_echo_n "(cached) " >&6
25238 else
25239 if test x$gcc_no_link = xyes; then
25240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25241 fi
25242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25243 /* end confdefs.h. */
25244
25245 #ifdef HAVE_COMPLEX_H
25246 #include <complex.h>
25247 #endif
25248 #ifdef HAVE_MATH_H
25249 #include <math.h>
25250 #endif
25251
25252 int (*ptr)() = (int (*)())catan;
25253
25254 int
25255 main ()
25256 {
25257 return 0;
25258 }
25259
25260 _ACEOF
25261 if ac_fn_c_try_link "$LINENO"; then :
25262 gcc_cv_math_func_catan=yes
25263 else
25264 gcc_cv_math_func_catan=no
25265 fi
25266 rm -f core conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
25268 fi
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25270 $as_echo "$gcc_cv_math_func_catan" >&6; }
25271 if test $gcc_cv_math_func_catan = yes; then
25272
25273 cat >>confdefs.h <<_ACEOF
25274 #define HAVE_CATAN 1
25275 _ACEOF
25276
25277 fi
25278
25279
25280
25281
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25283 $as_echo_n "checking for catanf... " >&6; }
25284 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25285 $as_echo_n "(cached) " >&6
25286 else
25287 if test x$gcc_no_link = xyes; then
25288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25289 fi
25290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25291 /* end confdefs.h. */
25292
25293 #ifdef HAVE_COMPLEX_H
25294 #include <complex.h>
25295 #endif
25296 #ifdef HAVE_MATH_H
25297 #include <math.h>
25298 #endif
25299
25300 int (*ptr)() = (int (*)())catanf;
25301
25302 int
25303 main ()
25304 {
25305 return 0;
25306 }
25307
25308 _ACEOF
25309 if ac_fn_c_try_link "$LINENO"; then :
25310 gcc_cv_math_func_catanf=yes
25311 else
25312 gcc_cv_math_func_catanf=no
25313 fi
25314 rm -f core conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
25316 fi
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25318 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25319 if test $gcc_cv_math_func_catanf = yes; then
25320
25321 cat >>confdefs.h <<_ACEOF
25322 #define HAVE_CATANF 1
25323 _ACEOF
25324
25325 fi
25326
25327
25328
25329
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25331 $as_echo_n "checking for catanh... " >&6; }
25332 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25334 else
25335 if test x$gcc_no_link = xyes; then
25336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25337 fi
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25340
25341 #ifdef HAVE_COMPLEX_H
25342 #include <complex.h>
25343 #endif
25344 #ifdef HAVE_MATH_H
25345 #include <math.h>
25346 #endif
25347
25348 int (*ptr)() = (int (*)())catanh;
25349
25350 int
25351 main ()
25352 {
25353 return 0;
25354 }
25355
25356 _ACEOF
25357 if ac_fn_c_try_link "$LINENO"; then :
25358 gcc_cv_math_func_catanh=yes
25359 else
25360 gcc_cv_math_func_catanh=no
25361 fi
25362 rm -f core conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25366 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25367 if test $gcc_cv_math_func_catanh = yes; then
25368
25369 cat >>confdefs.h <<_ACEOF
25370 #define HAVE_CATANH 1
25371 _ACEOF
25372
25373 fi
25374
25375
25376
25377
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25379 $as_echo_n "checking for catanhf... " >&6; }
25380 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 if test x$gcc_no_link = xyes; then
25384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25385 fi
25386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h. */
25388
25389 #ifdef HAVE_COMPLEX_H
25390 #include <complex.h>
25391 #endif
25392 #ifdef HAVE_MATH_H
25393 #include <math.h>
25394 #endif
25395
25396 int (*ptr)() = (int (*)())catanhf;
25397
25398 int
25399 main ()
25400 {
25401 return 0;
25402 }
25403
25404 _ACEOF
25405 if ac_fn_c_try_link "$LINENO"; then :
25406 gcc_cv_math_func_catanhf=yes
25407 else
25408 gcc_cv_math_func_catanhf=no
25409 fi
25410 rm -f core conftest.err conftest.$ac_objext \
25411 conftest$ac_exeext conftest.$ac_ext
25412 fi
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25414 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25415 if test $gcc_cv_math_func_catanhf = yes; then
25416
25417 cat >>confdefs.h <<_ACEOF
25418 #define HAVE_CATANHF 1
25419 _ACEOF
25420
25421 fi
25422
25423
25424
25425
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25427 $as_echo_n "checking for catanhl... " >&6; }
25428 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25429 $as_echo_n "(cached) " >&6
25430 else
25431 if test x$gcc_no_link = xyes; then
25432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25433 fi
25434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h. */
25436
25437 #ifdef HAVE_COMPLEX_H
25438 #include <complex.h>
25439 #endif
25440 #ifdef HAVE_MATH_H
25441 #include <math.h>
25442 #endif
25443
25444 int (*ptr)() = (int (*)())catanhl;
25445
25446 int
25447 main ()
25448 {
25449 return 0;
25450 }
25451
25452 _ACEOF
25453 if ac_fn_c_try_link "$LINENO"; then :
25454 gcc_cv_math_func_catanhl=yes
25455 else
25456 gcc_cv_math_func_catanhl=no
25457 fi
25458 rm -f core conftest.err conftest.$ac_objext \
25459 conftest$ac_exeext conftest.$ac_ext
25460 fi
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25462 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25463 if test $gcc_cv_math_func_catanhl = yes; then
25464
25465 cat >>confdefs.h <<_ACEOF
25466 #define HAVE_CATANHL 1
25467 _ACEOF
25468
25469 fi
25470
25471
25472
25473
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25475 $as_echo_n "checking for catanl... " >&6; }
25476 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25477 $as_echo_n "(cached) " >&6
25478 else
25479 if test x$gcc_no_link = xyes; then
25480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25481 fi
25482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25483 /* end confdefs.h. */
25484
25485 #ifdef HAVE_COMPLEX_H
25486 #include <complex.h>
25487 #endif
25488 #ifdef HAVE_MATH_H
25489 #include <math.h>
25490 #endif
25491
25492 int (*ptr)() = (int (*)())catanl;
25493
25494 int
25495 main ()
25496 {
25497 return 0;
25498 }
25499
25500 _ACEOF
25501 if ac_fn_c_try_link "$LINENO"; then :
25502 gcc_cv_math_func_catanl=yes
25503 else
25504 gcc_cv_math_func_catanl=no
25505 fi
25506 rm -f core conftest.err conftest.$ac_objext \
25507 conftest$ac_exeext conftest.$ac_ext
25508 fi
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25510 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25511 if test $gcc_cv_math_func_catanl = yes; then
25512
25513 cat >>confdefs.h <<_ACEOF
25514 #define HAVE_CATANL 1
25515 _ACEOF
25516
25517 fi
25518
25519
25520 # On AIX, clog is present in libm as __clog
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25522 $as_echo_n "checking for __clog in -lm... " >&6; }
25523 if test "${ac_cv_lib_m___clog+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 ac_check_lib_save_LIBS=$LIBS
25527 LIBS="-lm $LIBS"
25528 if test x$gcc_no_link = xyes; then
25529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25530 fi
25531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25532 /* end confdefs.h. */
25533
25534 /* Override any GCC internal prototype to avoid an error.
25535 Use char because int might match the return type of a GCC
25536 builtin and then its argument prototype would still apply. */
25537 #ifdef __cplusplus
25538 extern "C"
25539 #endif
25540 char __clog ();
25541 int
25542 main ()
25543 {
25544 return __clog ();
25545 ;
25546 return 0;
25547 }
25548 _ACEOF
25549 if ac_fn_c_try_link "$LINENO"; then :
25550 ac_cv_lib_m___clog=yes
25551 else
25552 ac_cv_lib_m___clog=no
25553 fi
25554 rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
25556 LIBS=$ac_check_lib_save_LIBS
25557 fi
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25559 $as_echo "$ac_cv_lib_m___clog" >&6; }
25560 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25561
25562 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25563
25564 fi
25565
25566
25567 # Check whether the system has a working stat()
25568
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25570 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25571 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574
25575 if test "$cross_compiling" = yes; then :
25576
25577 case "${target}" in
25578 *mingw*) libgfor_cv_have_working_stat=no ;;
25579 *) libgfor_cv_have_working_stat=yes;;
25580 esac
25581 else
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25584
25585 #include <stdio.h>
25586 #include <sys/types.h>
25587 #include <sys/stat.h>
25588 #include <unistd.h>
25589
25590 int main ()
25591 {
25592 FILE *f, *g;
25593 struct stat st1, st2;
25594
25595 f = fopen ("foo", "w");
25596 g = fopen ("bar", "w");
25597 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25598 return 1;
25599 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25600 return 1;
25601 fclose(f);
25602 fclose(g);
25603 return 0;
25604 }
25605 _ACEOF
25606 if ac_fn_c_try_run "$LINENO"; then :
25607 libgfor_cv_have_working_stat=yes
25608 else
25609 libgfor_cv_have_working_stat=no
25610 fi
25611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25612 conftest.$ac_objext conftest.beam conftest.$ac_ext
25613 fi
25614
25615 fi
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25617 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25618 if test x"$libgfor_cv_have_working_stat" = xyes; then
25619
25620 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25621
25622 fi
25623
25624 # Check whether __mingw_snprintf() is present
25625
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25627 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25628 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631
25632 if test x$gcc_no_link = xyes; then
25633 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25634 fi
25635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25636 /* end confdefs.h. */
25637
25638 #include <stdio.h>
25639 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25640
25641 int
25642 main ()
25643 {
25644
25645 __mingw_snprintf (NULL, 0, "%d\n", 1);
25646
25647 ;
25648 return 0;
25649 }
25650 _ACEOF
25651 if ac_fn_c_try_link "$LINENO"; then :
25652 eval "libgfor_cv_have_mingw_snprintf=yes"
25653 else
25654 eval "libgfor_cv_have_mingw_snprintf=no"
25655 fi
25656 rm -f core conftest.err conftest.$ac_objext \
25657 conftest$ac_exeext conftest.$ac_ext
25658
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25661 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25662 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25663
25664 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25665
25666 fi
25667
25668
25669 # Check whether libquadmath should be used
25670 # Check whether --enable-libquadmath-support was given.
25671 if test "${enable_libquadmath_support+set}" = set; then :
25672 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25673 else
25674 ENABLE_LIBQUADMATH_SUPPORT=yes
25675 fi
25676
25677 enable_libquadmath_support=
25678 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25679 enable_libquadmath_support=no
25680 fi
25681
25682 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25683
25684 LIBQUADSPEC=
25685
25686 if test "x$enable_libquadmath_support" != xno; then
25687
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25689 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25690 if test "${libgfor_cv_have_float128+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25693
25694 if test x$gcc_no_link = xyes; then
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h. */
25697
25698 typedef _Complex float __attribute__((mode(TC))) __complex128;
25699
25700 __float128 foo (__float128 x)
25701 {
25702
25703 __complex128 z1, z2;
25704
25705 z1 = x;
25706 z2 = x / 7.Q;
25707 z2 /= z1;
25708
25709 return (__float128) z2;
25710 }
25711
25712 __float128 bar (__float128 x)
25713 {
25714 return x * __builtin_huge_valq ();
25715 }
25716
25717 int
25718 main ()
25719 {
25720
25721 foo (1.2Q);
25722 bar (1.2Q);
25723
25724 ;
25725 return 0;
25726 }
25727 _ACEOF
25728 if ac_fn_c_try_compile "$LINENO"; then :
25729
25730 libgfor_cv_have_float128=yes
25731
25732 else
25733
25734 libgfor_cv_have_float128=no
25735
25736 fi
25737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 else
25739 if test x$gcc_no_link = xyes; then
25740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25741 fi
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25744
25745 typedef _Complex float __attribute__((mode(TC))) __complex128;
25746
25747 __float128 foo (__float128 x)
25748 {
25749
25750 __complex128 z1, z2;
25751
25752 z1 = x;
25753 z2 = x / 7.Q;
25754 z2 /= z1;
25755
25756 return (__float128) z2;
25757 }
25758
25759 __float128 bar (__float128 x)
25760 {
25761 return x * __builtin_huge_valq ();
25762 }
25763
25764 int
25765 main ()
25766 {
25767
25768 foo (1.2Q);
25769 bar (1.2Q);
25770
25771 ;
25772 return 0;
25773 }
25774 _ACEOF
25775 if ac_fn_c_try_link "$LINENO"; then :
25776
25777 libgfor_cv_have_float128=yes
25778
25779 else
25780
25781 libgfor_cv_have_float128=no
25782
25783 fi
25784 rm -f core conftest.err conftest.$ac_objext \
25785 conftest$ac_exeext conftest.$ac_ext
25786 fi
25787 fi
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25789 $as_echo "$libgfor_cv_have_float128" >&6; }
25790
25791 if test "x$libgfor_cv_have_float128" = xyes; then
25792
25793 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25794
25795
25796 ac_xsave_c_werror_flag=$ac_c_werror_flag
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25798 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25799 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25800 $as_echo_n "(cached) " >&6
25801 else
25802
25803 # Test for native Solaris options first.
25804 # No whitespace after -z to pass it through -Wl.
25805 libgfor_cv_as_needed_option="-zignore"
25806 libgfor_cv_no_as_needed_option="-zrecord"
25807 save_LDFLAGS="$LDFLAGS"
25808 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25809 libgfor_cv_have_as_needed=no
25810
25811 ac_c_werror_flag=yes
25812 if test x$gcc_no_link = xyes; then
25813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25814 fi
25815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25816 /* end confdefs.h. */
25817
25818 int
25819 main ()
25820 {
25821
25822 ;
25823 return 0;
25824 }
25825 _ACEOF
25826 if ac_fn_c_try_link "$LINENO"; then :
25827 libgfor_cv_have_as_needed=yes
25828 else
25829 libgfor_cv_have_as_needed=no
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
25833 LDFLAGS="$save_LDFLAGS"
25834 if test "x$libgfor_cv_have_as_needed" = xno; then
25835 libgfor_cv_as_needed_option="--as-needed"
25836 libgfor_cv_no_as_needed_option="--no-as-needed"
25837 save_LDFLAGS="$LDFLAGS"
25838 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25839 libgfor_cv_have_as_needed=no
25840
25841 ac_c_werror_flag=yes
25842 if test x$gcc_no_link = xyes; then
25843 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25844 fi
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h. */
25847
25848 int
25849 main ()
25850 {
25851
25852 ;
25853 return 0;
25854 }
25855 _ACEOF
25856 if ac_fn_c_try_link "$LINENO"; then :
25857 libgfor_cv_have_as_needed=yes
25858 else
25859 libgfor_cv_have_as_needed=no
25860 fi
25861 rm -f core conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
25863 LDFLAGS="$save_LDFLAGS"
25864 fi
25865 ac_c_werror_flag=$ac_xsave_c_werror_flag
25866
25867 fi
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25869 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25870
25871 if test "x$libgfor_cv_have_as_needed" = xyes; then
25872 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25873 else
25874 LIBQUADSPEC="-lquadmath"
25875 fi
25876 if test -f ../libquadmath/libquadmath.la; then
25877 LIBQUADLIB=../libquadmath/libquadmath.la
25878 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25879 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25880 else
25881 LIBQUADLIB="-lquadmath"
25882 LIBQUADLIB_DEP=
25883 LIBQUADINCLUDE=
25884 fi
25885 fi
25886 else
25887 # for --disable-quadmath
25888 LIBQUADLIB=
25889 LIBQUADLIB_DEP=
25890 LIBQUADINCLUDE=
25891 fi
25892
25893
25894
25895
25896
25897
25898 if test "x$libgfor_cv_have_float128" = xyes; then
25899 LIBGFOR_BUILD_QUAD_TRUE=
25900 LIBGFOR_BUILD_QUAD_FALSE='#'
25901 else
25902 LIBGFOR_BUILD_QUAD_TRUE='#'
25903 LIBGFOR_BUILD_QUAD_FALSE=
25904 fi
25905
25906
25907
25908 # Check for GNU libc feenableexcept
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25910 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25911 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25912 $as_echo_n "(cached) " >&6
25913 else
25914 ac_check_lib_save_LIBS=$LIBS
25915 LIBS="-lm $LIBS"
25916 if test x$gcc_no_link = xyes; then
25917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25918 fi
25919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h. */
25921
25922 /* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25925 #ifdef __cplusplus
25926 extern "C"
25927 #endif
25928 char feenableexcept ();
25929 int
25930 main ()
25931 {
25932 return feenableexcept ();
25933 ;
25934 return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_link "$LINENO"; then :
25938 ac_cv_lib_m_feenableexcept=yes
25939 else
25940 ac_cv_lib_m_feenableexcept=no
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
25944 LIBS=$ac_check_lib_save_LIBS
25945 fi
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25947 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25948 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25949 have_feenableexcept=yes
25950 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25951
25952 fi
25953
25954
25955 # At least for glibc, clock_gettime is in librt. But don't
25956 # pull that in if it still doesn't give us the function we want. This
25957 # test is copied from libgomp, and modified to not link in -lrt as
25958 # libgfortran calls clock_gettime via a weak reference if it's found
25959 # in librt.
25960 if test "$ac_cv_func_clock_gettime" = no; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25962 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25963 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25964 $as_echo_n "(cached) " >&6
25965 else
25966 ac_check_lib_save_LIBS=$LIBS
25967 LIBS="-lrt $LIBS"
25968 if test x$gcc_no_link = xyes; then
25969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25970 fi
25971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25972 /* end confdefs.h. */
25973
25974 /* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25977 #ifdef __cplusplus
25978 extern "C"
25979 #endif
25980 char clock_gettime ();
25981 int
25982 main ()
25983 {
25984 return clock_gettime ();
25985 ;
25986 return 0;
25987 }
25988 _ACEOF
25989 if ac_fn_c_try_link "$LINENO"; then :
25990 ac_cv_lib_rt_clock_gettime=yes
25991 else
25992 ac_cv_lib_rt_clock_gettime=no
25993 fi
25994 rm -f core conftest.err conftest.$ac_objext \
25995 conftest$ac_exeext conftest.$ac_ext
25996 LIBS=$ac_check_lib_save_LIBS
25997 fi
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25999 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26000 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
26001
26002 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26003
26004 fi
26005
26006 fi
26007
26008 # Check for SysV fpsetmask
26009
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26011 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26012 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
26013 $as_echo_n "(cached) " >&6
26014 else
26015
26016 if test x$gcc_no_link = xyes; then
26017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26018 fi
26019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020 /* end confdefs.h. */
26021
26022 #if HAVE_FLOATINGPOINT_H
26023 # include <floatingpoint.h>
26024 #endif /* HAVE_FLOATINGPOINT_H */
26025 #if HAVE_IEEEFP_H
26026 # include <ieeefp.h>
26027 #endif /* HAVE_IEEEFP_H */
26028 int
26029 main ()
26030 {
26031 fpsetmask(0);
26032 ;
26033 return 0;
26034 }
26035 _ACEOF
26036 if ac_fn_c_try_link "$LINENO"; then :
26037 eval "libgfor_cv_have_fpsetmask=yes"
26038 else
26039 eval "libgfor_cv_have_fpsetmask=no"
26040 fi
26041 rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
26043
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26046 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26047 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26048 have_fpsetmask=yes
26049
26050 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26051
26052 fi
26053
26054 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26055 #include <ieeefp.h>
26056 #include <math.h>
26057
26058 "
26059 if test "x$ac_cv_type_fp_except" = x""yes; then :
26060
26061 cat >>confdefs.h <<_ACEOF
26062 #define HAVE_FP_EXCEPT 1
26063 _ACEOF
26064
26065
26066 fi
26067 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26068 #include <ieeefp.h>
26069 #include <math.h>
26070
26071 "
26072 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26073
26074 cat >>confdefs.h <<_ACEOF
26075 #define HAVE_FP_EXCEPT_T 1
26076 _ACEOF
26077
26078
26079 fi
26080
26081 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26082 #include <ieeefp.h>
26083 #include <math.h>
26084
26085 "
26086 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26087
26088 cat >>confdefs.h <<_ACEOF
26089 #define HAVE_FP_RND 1
26090 _ACEOF
26091
26092
26093 fi
26094 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26095 #include <ieeefp.h>
26096 #include <math.h>
26097
26098 "
26099 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26100
26101 cat >>confdefs.h <<_ACEOF
26102 #define HAVE_FP_RND_T 1
26103 _ACEOF
26104
26105
26106 fi
26107
26108
26109 # Check whether we have fpsetsticky or fpresetsticky
26110 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26111 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
26112 have_fpsetsticky=yes
26113 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26114
26115 fi
26116
26117 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26118 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
26119 have_fpresetsticky=yes
26120 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26121
26122 fi
26123
26124
26125 # Check for AIX fp_trap and fp_enable
26126 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26127 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26128 have_fp_trap=yes
26129 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26130
26131 fi
26132
26133 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26134 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26135 have_fp_enable=yes
26136 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26137
26138 fi
26139
26140
26141 # Runs configure.host to set up necessary host-dependent shell variables.
26142 # We then display a message about it, and propagate them through the
26143 # build chain.
26144 . ${srcdir}/configure.host
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26146 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26148 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26149 FPU_HOST_HEADER=config/${fpu_host}.h
26150
26151
26152 # Whether we will build the IEEE modules
26153 if test x${ieee_support} = xyes; then
26154 IEEE_SUPPORT_TRUE=
26155 IEEE_SUPPORT_FALSE='#'
26156 else
26157 IEEE_SUPPORT_TRUE='#'
26158 IEEE_SUPPORT_FALSE=
26159 fi
26160
26161
26162
26163 # Some targets require additional compiler options for IEEE compatibility.
26164 IEEE_FLAGS="${ieee_flags}"
26165
26166
26167
26168 # Check for POSIX getpwuid_r
26169 #
26170 # There are two versions of getpwuid_r, the POSIX one with 5
26171 # arguments, and another one with 4 arguments used by at least HP-UX
26172 # 10.2.
26173 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26175 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26176 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179
26180 if test x$gcc_no_link = xyes; then
26181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26182 fi
26183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184 /* end confdefs.h. */
26185
26186 #include <stdio.h>
26187 #include <sys/types.h>
26188 #include <pwd.h>
26189 int
26190 main ()
26191 {
26192
26193 getpwuid_r(0, NULL, NULL, 0, NULL);
26194
26195 ;
26196 return 0;
26197 }
26198 _ACEOF
26199 if ac_fn_c_try_link "$LINENO"; then :
26200 libgfor_cv_posix_getpwuid_r="yes"
26201 else
26202 libgfor_cv_posix_getpwuid_r="no"
26203 fi
26204 rm -f core conftest.err conftest.$ac_objext \
26205 conftest$ac_exeext conftest.$ac_ext
26206 fi
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26208 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26209 fi
26210 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26211
26212 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26213
26214 fi
26215
26216
26217 # Check out attribute support.
26218
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26220 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26221 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26223 else
26224
26225 save_CFLAGS="$CFLAGS"
26226 CFLAGS="$CFLAGS -Werror"
26227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26228 /* end confdefs.h. */
26229 void __attribute__((visibility("hidden"))) foo(void) { }
26230 int
26231 main ()
26232 {
26233
26234 ;
26235 return 0;
26236 }
26237 _ACEOF
26238 if ac_fn_c_try_compile "$LINENO"; then :
26239 libgfor_cv_have_attribute_visibility=yes
26240 else
26241 libgfor_cv_have_attribute_visibility=no
26242 fi
26243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26244 CFLAGS="$save_CFLAGS"
26245 fi
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26247 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26248 if test $libgfor_cv_have_attribute_visibility = yes; then
26249
26250 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26251
26252 fi
26253
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26255 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26256 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26258 else
26259
26260 save_CFLAGS="$CFLAGS"
26261 CFLAGS="$CFLAGS -Werror"
26262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26263 /* end confdefs.h. */
26264 void __attribute__((dllexport)) foo(void) { }
26265 int
26266 main ()
26267 {
26268
26269 ;
26270 return 0;
26271 }
26272 _ACEOF
26273 if ac_fn_c_try_compile "$LINENO"; then :
26274 libgfor_cv_have_attribute_dllexport=yes
26275 else
26276 libgfor_cv_have_attribute_dllexport=no
26277 fi
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 CFLAGS="$save_CFLAGS"
26280 fi
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26282 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26283 if test $libgfor_cv_have_attribute_dllexport = yes; then
26284
26285 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26286
26287 fi
26288
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26290 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26291 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294
26295 if test x$gcc_no_link = xyes; then
26296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26297 fi
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26300
26301 void foo(void) { }
26302 extern void bar(void) __attribute__((alias("foo")));
26303 int
26304 main ()
26305 {
26306 bar();
26307 ;
26308 return 0;
26309 }
26310 _ACEOF
26311 if ac_fn_c_try_link "$LINENO"; then :
26312 libgfor_cv_have_attribute_alias=yes
26313 else
26314 libgfor_cv_have_attribute_alias=no
26315 fi
26316 rm -f core conftest.err conftest.$ac_objext \
26317 conftest$ac_exeext conftest.$ac_ext
26318 fi
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26320 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26321 if test $libgfor_cv_have_attribute_alias = yes; then
26322
26323 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26324
26325 fi
26326
26327 # Check out sync builtins support.
26328
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26330 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26331 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334
26335 if test x$gcc_no_link = xyes; then
26336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26337 fi
26338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26339 /* end confdefs.h. */
26340 int foovar = 0;
26341 int
26342 main ()
26343 {
26344
26345 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26346 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26347 ;
26348 return 0;
26349 }
26350 _ACEOF
26351 if ac_fn_c_try_link "$LINENO"; then :
26352 libgfor_cv_have_sync_fetch_and_add=yes
26353 else
26354 libgfor_cv_have_sync_fetch_and_add=no
26355 fi
26356 rm -f core conftest.err conftest.$ac_objext \
26357 conftest$ac_exeext conftest.$ac_ext
26358 fi
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26360 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26361 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26362
26363 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26364
26365 fi
26366
26367 # Check out #pragma weak.
26368
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26370 $as_echo_n "checking whether pragma weak works... " >&6; }
26371 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26373 else
26374
26375 gfor_save_CFLAGS="$CFLAGS"
26376 CFLAGS="$CFLAGS -Wunknown-pragmas"
26377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378 /* end confdefs.h. */
26379
26380 void foo (void);
26381 #pragma weak foo
26382
26383 int
26384 main ()
26385 {
26386 if (foo) foo ();
26387 ;
26388 return 0;
26389 }
26390 _ACEOF
26391 if ac_fn_c_try_compile "$LINENO"; then :
26392 libgfor_cv_have_pragma_weak=yes
26393 else
26394 libgfor_cv_have_pragma_weak=no
26395 fi
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397 fi
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26399 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26400 if test $libgfor_cv_have_pragma_weak = yes; then
26401
26402 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26403
26404 fi
26405 case "$host" in
26406 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26407
26408 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26409
26410 ;;
26411 esac
26412
26413 # Various other checks on target
26414
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26416 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26417 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26419 else
26420
26421 if test "$cross_compiling" = yes; then :
26422
26423 case "${target}" in
26424 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26425 *) libgfor_cv_have_unlink_open_file=yes;;
26426 esac
26427 else
26428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26429 /* end confdefs.h. */
26430
26431 #include <errno.h>
26432 #include <fcntl.h>
26433 #include <unistd.h>
26434 #include <sys/stat.h>
26435
26436 int main ()
26437 {
26438 int fd;
26439
26440 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26441 if (fd <= 0)
26442 return 0;
26443 if (unlink ("testfile") == -1)
26444 return 1;
26445 write (fd, "This is a test\n", 15);
26446 close (fd);
26447
26448 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26449 return 0;
26450 else
26451 return 1;
26452 }
26453 _ACEOF
26454 if ac_fn_c_try_run "$LINENO"; then :
26455 libgfor_cv_have_unlink_open_file=yes
26456 else
26457 libgfor_cv_have_unlink_open_file=no
26458 fi
26459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26460 conftest.$ac_objext conftest.beam conftest.$ac_ext
26461 fi
26462
26463 fi
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26465 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26466 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26467
26468 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26469
26470 fi
26471
26472 # Check whether line terminator is LF or CRLF
26473
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26475 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26476 if test "${libgfor_cv_have_crlf+set}" = set; then :
26477 $as_echo_n "(cached) " >&6
26478 else
26479
26480 if test "$cross_compiling" = yes; then :
26481
26482 case "${target}" in
26483 *mingw*) libgfor_cv_have_crlf=yes ;;
26484 *) libgfor_cv_have_crlf=no;;
26485 esac
26486 else
26487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488 /* end confdefs.h. */
26489
26490 /* This test program should exit with status 0 if system uses a CRLF as
26491 line terminator, and status 1 otherwise.
26492 Since it is used to check for mingw systems, and should return 0 in any
26493 other case, in case of a failure we will not use CRLF. */
26494 #include <sys/stat.h>
26495 #include <stdlib.h>
26496 #include <fcntl.h>
26497 #include <stdio.h>
26498
26499 int main ()
26500 {
26501 #ifndef O_BINARY
26502 exit(1);
26503 #else
26504 int fd, bytes;
26505 char buff[5];
26506
26507 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26508 if (fd < 0)
26509 exit(1);
26510 if (write (fd, "\n", 1) < 0)
26511 perror ("write");
26512
26513 close (fd);
26514
26515 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26516 exit(1);
26517 bytes = read (fd, buff, 5);
26518 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26519 exit(0);
26520 else
26521 exit(1);
26522 #endif
26523 }
26524 _ACEOF
26525 if ac_fn_c_try_run "$LINENO"; then :
26526 libgfor_cv_have_crlf=yes
26527 else
26528 libgfor_cv_have_crlf=no
26529 fi
26530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26531 conftest.$ac_objext conftest.beam conftest.$ac_ext
26532 fi
26533
26534 fi
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26536 $as_echo "$libgfor_cv_have_crlf" >&6; }
26537 if test x"$libgfor_cv_have_crlf" = xyes; then
26538
26539 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26540
26541 fi
26542
26543 # Check whether we have _Unwind_GetIPInfo for backtrace
26544
26545
26546 # Check whether --with-system-libunwind was given.
26547 if test "${with_system_libunwind+set}" = set; then :
26548 withval=$with_system_libunwind;
26549 fi
26550
26551 # If system-libunwind was not specifically set, pick a default setting.
26552 if test x$with_system_libunwind = x; then
26553 case ${target} in
26554 ia64-*-hpux*) with_system_libunwind=yes ;;
26555 *) with_system_libunwind=no ;;
26556 esac
26557 fi
26558 # Based on system-libunwind and target, do we have ipinfo?
26559 if test x$with_system_libunwind = xyes; then
26560 case ${target} in
26561 ia64-*-*) have_unwind_getipinfo=no ;;
26562 *) have_unwind_getipinfo=yes ;;
26563 esac
26564 else
26565 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26566
26567 case ${target} in
26568 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26569 *) have_unwind_getipinfo=yes ;;
26570 esac
26571
26572 fi
26573
26574 if test x$have_unwind_getipinfo = xyes; then
26575
26576 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26577
26578 fi
26579
26580
26581 cat >confcache <<\_ACEOF
26582 # This file is a shell script that caches the results of configure
26583 # tests run on this system so they can be shared between configure
26584 # scripts and configure runs, see configure's option --config-cache.
26585 # It is not useful on other systems. If it contains results you don't
26586 # want to keep, you may remove or edit it.
26587 #
26588 # config.status only pays attention to the cache file if you give it
26589 # the --recheck option to rerun configure.
26590 #
26591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26593 # following values.
26594
26595 _ACEOF
26596
26597 # The following way of writing the cache mishandles newlines in values,
26598 # but we know of no workaround that is simple, portable, and efficient.
26599 # So, we kill variables containing newlines.
26600 # Ultrix sh set writes to stderr and can't be redirected directly,
26601 # and sets the high bit in the cache file unless we assign to the vars.
26602 (
26603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26604 eval ac_val=\$$ac_var
26605 case $ac_val in #(
26606 *${as_nl}*)
26607 case $ac_var in #(
26608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26610 esac
26611 case $ac_var in #(
26612 _ | IFS | as_nl) ;; #(
26613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26614 *) { eval $ac_var=; unset $ac_var;} ;;
26615 esac ;;
26616 esac
26617 done
26618
26619 (set) 2>&1 |
26620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26621 *${as_nl}ac_space=\ *)
26622 # `set' does not quote correctly, so add quotes: double-quote
26623 # substitution turns \\\\ into \\, and sed turns \\ into \.
26624 sed -n \
26625 "s/'/'\\\\''/g;
26626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26627 ;; #(
26628 *)
26629 # `set' quotes correctly as required by POSIX, so do not add quotes.
26630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26631 ;;
26632 esac |
26633 sort
26634 ) |
26635 sed '
26636 /^ac_cv_env_/b end
26637 t clear
26638 :clear
26639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26640 t end
26641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26642 :end' >>confcache
26643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26644 if test -w "$cache_file"; then
26645 test "x$cache_file" != "x/dev/null" &&
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26647 $as_echo "$as_me: updating cache $cache_file" >&6;}
26648 cat confcache >$cache_file
26649 else
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26651 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26652 fi
26653 fi
26654 rm -f confcache
26655
26656 if test ${multilib} = yes; then
26657 multilib_arg="--enable-multilib"
26658 else
26659 multilib_arg=
26660 fi
26661
26662 # Write our Makefile and spec file.
26663 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26664
26665 cat >confcache <<\_ACEOF
26666 # This file is a shell script that caches the results of configure
26667 # tests run on this system so they can be shared between configure
26668 # scripts and configure runs, see configure's option --config-cache.
26669 # It is not useful on other systems. If it contains results you don't
26670 # want to keep, you may remove or edit it.
26671 #
26672 # config.status only pays attention to the cache file if you give it
26673 # the --recheck option to rerun configure.
26674 #
26675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26677 # following values.
26678
26679 _ACEOF
26680
26681 # The following way of writing the cache mishandles newlines in values,
26682 # but we know of no workaround that is simple, portable, and efficient.
26683 # So, we kill variables containing newlines.
26684 # Ultrix sh set writes to stderr and can't be redirected directly,
26685 # and sets the high bit in the cache file unless we assign to the vars.
26686 (
26687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26688 eval ac_val=\$$ac_var
26689 case $ac_val in #(
26690 *${as_nl}*)
26691 case $ac_var in #(
26692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26694 esac
26695 case $ac_var in #(
26696 _ | IFS | as_nl) ;; #(
26697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26698 *) { eval $ac_var=; unset $ac_var;} ;;
26699 esac ;;
26700 esac
26701 done
26702
26703 (set) 2>&1 |
26704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26705 *${as_nl}ac_space=\ *)
26706 # `set' does not quote correctly, so add quotes: double-quote
26707 # substitution turns \\\\ into \\, and sed turns \\ into \.
26708 sed -n \
26709 "s/'/'\\\\''/g;
26710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26711 ;; #(
26712 *)
26713 # `set' quotes correctly as required by POSIX, so do not add quotes.
26714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26715 ;;
26716 esac |
26717 sort
26718 ) |
26719 sed '
26720 /^ac_cv_env_/b end
26721 t clear
26722 :clear
26723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26724 t end
26725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26726 :end' >>confcache
26727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26728 if test -w "$cache_file"; then
26729 test "x$cache_file" != "x/dev/null" &&
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26731 $as_echo "$as_me: updating cache $cache_file" >&6;}
26732 cat confcache >$cache_file
26733 else
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26736 fi
26737 fi
26738 rm -f confcache
26739
26740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26741 # Let make expand exec_prefix.
26742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26743
26744 DEFS=-DHAVE_CONFIG_H
26745
26746 ac_libobjs=
26747 ac_ltlibobjs=
26748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26749 # 1. Remove the extension, and $U if already installed.
26750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26753 # will be set to the directory where LIBOBJS objects are built.
26754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26756 done
26757 LIBOBJS=$ac_libobjs
26758
26759 LTLIBOBJS=$ac_ltlibobjs
26760
26761
26762 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26763 as_fn_error "conditional \"onestep\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26765 fi
26766 if test -n "$EXEEXT"; then
26767 am__EXEEXT_TRUE=
26768 am__EXEEXT_FALSE='#'
26769 else
26770 am__EXEEXT_TRUE='#'
26771 am__EXEEXT_FALSE=
26772 fi
26773
26774 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26775 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26777 fi
26778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26779 as_fn_error "conditional \"AMDEP\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26781 fi
26782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26783 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26785 fi
26786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26787 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26789 fi
26790 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26791 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26793 fi
26794 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26795 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26797 fi
26798 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26799 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26801 fi
26802 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26803 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26805 fi
26806 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26807 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26809 fi
26810
26811 : ${CONFIG_STATUS=./config.status}
26812 ac_write_fail=0
26813 ac_clean_files_save=$ac_clean_files
26814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26817 as_write_fail=0
26818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26819 #! $SHELL
26820 # Generated by $as_me.
26821 # Run this file to recreate the current configuration.
26822 # Compiler output produced by configure, useful for debugging
26823 # configure, is in config.log if it exists.
26824
26825 debug=false
26826 ac_cs_recheck=false
26827 ac_cs_silent=false
26828
26829 SHELL=\${CONFIG_SHELL-$SHELL}
26830 export SHELL
26831 _ASEOF
26832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26833 ## -------------------- ##
26834 ## M4sh Initialization. ##
26835 ## -------------------- ##
26836
26837 # Be more Bourne compatible
26838 DUALCASE=1; export DUALCASE # for MKS sh
26839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26840 emulate sh
26841 NULLCMD=:
26842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26843 # is contrary to our usage. Disable this feature.
26844 alias -g '${1+"$@"}'='"$@"'
26845 setopt NO_GLOB_SUBST
26846 else
26847 case `(set -o) 2>/dev/null` in #(
26848 *posix*) :
26849 set -o posix ;; #(
26850 *) :
26851 ;;
26852 esac
26853 fi
26854
26855
26856 as_nl='
26857 '
26858 export as_nl
26859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26863 # Prefer a ksh shell builtin over an external printf program on Solaris,
26864 # but without wasting forks for bash or zsh.
26865 if test -z "$BASH_VERSION$ZSH_VERSION" \
26866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26867 as_echo='print -r --'
26868 as_echo_n='print -rn --'
26869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26870 as_echo='printf %s\n'
26871 as_echo_n='printf %s'
26872 else
26873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26875 as_echo_n='/usr/ucb/echo -n'
26876 else
26877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26878 as_echo_n_body='eval
26879 arg=$1;
26880 case $arg in #(
26881 *"$as_nl"*)
26882 expr "X$arg" : "X\\(.*\\)$as_nl";
26883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26884 esac;
26885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26886 '
26887 export as_echo_n_body
26888 as_echo_n='sh -c $as_echo_n_body as_echo'
26889 fi
26890 export as_echo_body
26891 as_echo='sh -c $as_echo_body as_echo'
26892 fi
26893
26894 # The user is always right.
26895 if test "${PATH_SEPARATOR+set}" != set; then
26896 PATH_SEPARATOR=:
26897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26899 PATH_SEPARATOR=';'
26900 }
26901 fi
26902
26903
26904 # IFS
26905 # We need space, tab and new line, in precisely that order. Quoting is
26906 # there to prevent editors from complaining about space-tab.
26907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26908 # splitting by setting IFS to empty value.)
26909 IFS=" "" $as_nl"
26910
26911 # Find who we are. Look in the path if we contain no directory separator.
26912 case $0 in #((
26913 *[\\/]* ) as_myself=$0 ;;
26914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26915 for as_dir in $PATH
26916 do
26917 IFS=$as_save_IFS
26918 test -z "$as_dir" && as_dir=.
26919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26920 done
26921 IFS=$as_save_IFS
26922
26923 ;;
26924 esac
26925 # We did not find ourselves, most probably we were run as `sh COMMAND'
26926 # in which case we are not to be found in the path.
26927 if test "x$as_myself" = x; then
26928 as_myself=$0
26929 fi
26930 if test ! -f "$as_myself"; then
26931 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26932 exit 1
26933 fi
26934
26935 # Unset variables that we do not need and which cause bugs (e.g. in
26936 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26937 # suppresses any "Segmentation fault" message there. '((' could
26938 # trigger a bug in pdksh 5.2.14.
26939 for as_var in BASH_ENV ENV MAIL MAILPATH
26940 do eval test x\${$as_var+set} = xset \
26941 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26942 done
26943 PS1='$ '
26944 PS2='> '
26945 PS4='+ '
26946
26947 # NLS nuisances.
26948 LC_ALL=C
26949 export LC_ALL
26950 LANGUAGE=C
26951 export LANGUAGE
26952
26953 # CDPATH.
26954 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26955
26956
26957 # as_fn_error ERROR [LINENO LOG_FD]
26958 # ---------------------------------
26959 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26960 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26961 # script with status $?, using 1 if that was 0.
26962 as_fn_error ()
26963 {
26964 as_status=$?; test $as_status -eq 0 && as_status=1
26965 if test "$3"; then
26966 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26967 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26968 fi
26969 $as_echo "$as_me: error: $1" >&2
26970 as_fn_exit $as_status
26971 } # as_fn_error
26972
26973
26974 # as_fn_set_status STATUS
26975 # -----------------------
26976 # Set $? to STATUS, without forking.
26977 as_fn_set_status ()
26978 {
26979 return $1
26980 } # as_fn_set_status
26981
26982 # as_fn_exit STATUS
26983 # -----------------
26984 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26985 as_fn_exit ()
26986 {
26987 set +e
26988 as_fn_set_status $1
26989 exit $1
26990 } # as_fn_exit
26991
26992 # as_fn_unset VAR
26993 # ---------------
26994 # Portably unset VAR.
26995 as_fn_unset ()
26996 {
26997 { eval $1=; unset $1;}
26998 }
26999 as_unset=as_fn_unset
27000 # as_fn_append VAR VALUE
27001 # ----------------------
27002 # Append the text in VALUE to the end of the definition contained in VAR. Take
27003 # advantage of any shell optimizations that allow amortized linear growth over
27004 # repeated appends, instead of the typical quadratic growth present in naive
27005 # implementations.
27006 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27007 eval 'as_fn_append ()
27008 {
27009 eval $1+=\$2
27010 }'
27011 else
27012 as_fn_append ()
27013 {
27014 eval $1=\$$1\$2
27015 }
27016 fi # as_fn_append
27017
27018 # as_fn_arith ARG...
27019 # ------------------
27020 # Perform arithmetic evaluation on the ARGs, and store the result in the
27021 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27022 # must be portable across $(()) and expr.
27023 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27024 eval 'as_fn_arith ()
27025 {
27026 as_val=$(( $* ))
27027 }'
27028 else
27029 as_fn_arith ()
27030 {
27031 as_val=`expr "$@" || test $? -eq 1`
27032 }
27033 fi # as_fn_arith
27034
27035
27036 if expr a : '\(a\)' >/dev/null 2>&1 &&
27037 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27038 as_expr=expr
27039 else
27040 as_expr=false
27041 fi
27042
27043 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27044 as_basename=basename
27045 else
27046 as_basename=false
27047 fi
27048
27049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27050 as_dirname=dirname
27051 else
27052 as_dirname=false
27053 fi
27054
27055 as_me=`$as_basename -- "$0" ||
27056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27057 X"$0" : 'X\(//\)$' \| \
27058 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27059 $as_echo X/"$0" |
27060 sed '/^.*\/\([^/][^/]*\)\/*$/{
27061 s//\1/
27062 q
27063 }
27064 /^X\/\(\/\/\)$/{
27065 s//\1/
27066 q
27067 }
27068 /^X\/\(\/\).*/{
27069 s//\1/
27070 q
27071 }
27072 s/.*/./; q'`
27073
27074 # Avoid depending upon Character Ranges.
27075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27078 as_cr_digits='0123456789'
27079 as_cr_alnum=$as_cr_Letters$as_cr_digits
27080
27081 ECHO_C= ECHO_N= ECHO_T=
27082 case `echo -n x` in #(((((
27083 -n*)
27084 case `echo 'xy\c'` in
27085 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27086 xy) ECHO_C='\c';;
27087 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27088 ECHO_T=' ';;
27089 esac;;
27090 *)
27091 ECHO_N='-n';;
27092 esac
27093
27094 rm -f conf$$ conf$$.exe conf$$.file
27095 if test -d conf$$.dir; then
27096 rm -f conf$$.dir/conf$$.file
27097 else
27098 rm -f conf$$.dir
27099 mkdir conf$$.dir 2>/dev/null
27100 fi
27101 if (echo >conf$$.file) 2>/dev/null; then
27102 if ln -s conf$$.file conf$$ 2>/dev/null; then
27103 as_ln_s='ln -s'
27104 # ... but there are two gotchas:
27105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27107 # In both cases, we have to default to `cp -p'.
27108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27109 as_ln_s='cp -p'
27110 elif ln conf$$.file conf$$ 2>/dev/null; then
27111 as_ln_s=ln
27112 else
27113 as_ln_s='cp -p'
27114 fi
27115 else
27116 as_ln_s='cp -p'
27117 fi
27118 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27119 rmdir conf$$.dir 2>/dev/null
27120
27121
27122 # as_fn_mkdir_p
27123 # -------------
27124 # Create "$as_dir" as a directory, including parents if necessary.
27125 as_fn_mkdir_p ()
27126 {
27127
27128 case $as_dir in #(
27129 -*) as_dir=./$as_dir;;
27130 esac
27131 test -d "$as_dir" || eval $as_mkdir_p || {
27132 as_dirs=
27133 while :; do
27134 case $as_dir in #(
27135 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27136 *) as_qdir=$as_dir;;
27137 esac
27138 as_dirs="'$as_qdir' $as_dirs"
27139 as_dir=`$as_dirname -- "$as_dir" ||
27140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27141 X"$as_dir" : 'X\(//\)[^/]' \| \
27142 X"$as_dir" : 'X\(//\)$' \| \
27143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27144 $as_echo X"$as_dir" |
27145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27146 s//\1/
27147 q
27148 }
27149 /^X\(\/\/\)[^/].*/{
27150 s//\1/
27151 q
27152 }
27153 /^X\(\/\/\)$/{
27154 s//\1/
27155 q
27156 }
27157 /^X\(\/\).*/{
27158 s//\1/
27159 q
27160 }
27161 s/.*/./; q'`
27162 test -d "$as_dir" && break
27163 done
27164 test -z "$as_dirs" || eval "mkdir $as_dirs"
27165 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27166
27167
27168 } # as_fn_mkdir_p
27169 if mkdir -p . 2>/dev/null; then
27170 as_mkdir_p='mkdir -p "$as_dir"'
27171 else
27172 test -d ./-p && rmdir ./-p
27173 as_mkdir_p=false
27174 fi
27175
27176 if test -x / >/dev/null 2>&1; then
27177 as_test_x='test -x'
27178 else
27179 if ls -dL / >/dev/null 2>&1; then
27180 as_ls_L_option=L
27181 else
27182 as_ls_L_option=
27183 fi
27184 as_test_x='
27185 eval sh -c '\''
27186 if test -d "$1"; then
27187 test -d "$1/.";
27188 else
27189 case $1 in #(
27190 -*)set "./$1";;
27191 esac;
27192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27193 ???[sx]*):;;*)false;;esac;fi
27194 '\'' sh
27195 '
27196 fi
27197 as_executable_p=$as_test_x
27198
27199 # Sed expression to map a string onto a valid CPP name.
27200 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27201
27202 # Sed expression to map a string onto a valid variable name.
27203 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27204
27205
27206 exec 6>&1
27207 ## ----------------------------------- ##
27208 ## Main body of $CONFIG_STATUS script. ##
27209 ## ----------------------------------- ##
27210 _ASEOF
27211 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27212
27213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27214 # Save the log message, to keep $0 and so on meaningful, and to
27215 # report actual input values of CONFIG_FILES etc. instead of their
27216 # values after options handling.
27217 ac_log="
27218 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27219 generated by GNU Autoconf 2.64. Invocation command line was
27220
27221 CONFIG_FILES = $CONFIG_FILES
27222 CONFIG_HEADERS = $CONFIG_HEADERS
27223 CONFIG_LINKS = $CONFIG_LINKS
27224 CONFIG_COMMANDS = $CONFIG_COMMANDS
27225 $ $0 $@
27226
27227 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27228 "
27229
27230 _ACEOF
27231
27232 case $ac_config_files in *"
27233 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27234 esac
27235
27236 case $ac_config_headers in *"
27237 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27238 esac
27239
27240
27241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27242 # Files that config.status was made for.
27243 config_files="$ac_config_files"
27244 config_headers="$ac_config_headers"
27245 config_commands="$ac_config_commands"
27246
27247 _ACEOF
27248
27249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27250 ac_cs_usage="\
27251 \`$as_me' instantiates files and other configuration actions
27252 from templates according to the current configuration. Unless the files
27253 and actions are specified as TAGs, all are instantiated by default.
27254
27255 Usage: $0 [OPTION]... [TAG]...
27256
27257 -h, --help print this help, then exit
27258 -V, --version print version number and configuration settings, then exit
27259 -q, --quiet, --silent
27260 do not print progress messages
27261 -d, --debug don't remove temporary files
27262 --recheck update $as_me by reconfiguring in the same conditions
27263 --file=FILE[:TEMPLATE]
27264 instantiate the configuration file FILE
27265 --header=FILE[:TEMPLATE]
27266 instantiate the configuration header FILE
27267
27268 Configuration files:
27269 $config_files
27270
27271 Configuration headers:
27272 $config_headers
27273
27274 Configuration commands:
27275 $config_commands
27276
27277 Report bugs to the package provider.
27278 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27279 General help using GNU software: <http://www.gnu.org/gethelp/>."
27280
27281 _ACEOF
27282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27283 ac_cs_version="\\
27284 GNU Fortran Runtime Library config.status 0.3
27285 configured by $0, generated by GNU Autoconf 2.64,
27286 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27287
27288 Copyright (C) 2009 Free Software Foundation, Inc.
27289 This config.status script is free software; the Free Software Foundation
27290 gives unlimited permission to copy, distribute and modify it."
27291
27292 ac_pwd='$ac_pwd'
27293 srcdir='$srcdir'
27294 INSTALL='$INSTALL'
27295 MKDIR_P='$MKDIR_P'
27296 AWK='$AWK'
27297 test -n "\$AWK" || AWK=awk
27298 _ACEOF
27299
27300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27301 # The default lists apply if the user does not specify any file.
27302 ac_need_defaults=:
27303 while test $# != 0
27304 do
27305 case $1 in
27306 --*=*)
27307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27309 ac_shift=:
27310 ;;
27311 *)
27312 ac_option=$1
27313 ac_optarg=$2
27314 ac_shift=shift
27315 ;;
27316 esac
27317
27318 case $ac_option in
27319 # Handling of the options.
27320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27321 ac_cs_recheck=: ;;
27322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27323 $as_echo "$ac_cs_version"; exit ;;
27324 --debug | --debu | --deb | --de | --d | -d )
27325 debug=: ;;
27326 --file | --fil | --fi | --f )
27327 $ac_shift
27328 case $ac_optarg in
27329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27330 esac
27331 as_fn_append CONFIG_FILES " '$ac_optarg'"
27332 ac_need_defaults=false;;
27333 --header | --heade | --head | --hea )
27334 $ac_shift
27335 case $ac_optarg in
27336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27337 esac
27338 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27339 ac_need_defaults=false;;
27340 --he | --h)
27341 # Conflict between --help and --header
27342 as_fn_error "ambiguous option: \`$1'
27343 Try \`$0 --help' for more information.";;
27344 --help | --hel | -h )
27345 $as_echo "$ac_cs_usage"; exit ;;
27346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27348 ac_cs_silent=: ;;
27349
27350 # This is an error.
27351 -*) as_fn_error "unrecognized option: \`$1'
27352 Try \`$0 --help' for more information." ;;
27353
27354 *) as_fn_append ac_config_targets " $1"
27355 ac_need_defaults=false ;;
27356
27357 esac
27358 shift
27359 done
27360
27361 ac_configure_extra_args=
27362
27363 if $ac_cs_silent; then
27364 exec 6>/dev/null
27365 ac_configure_extra_args="$ac_configure_extra_args --silent"
27366 fi
27367
27368 _ACEOF
27369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27370 if \$ac_cs_recheck; then
27371 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27372 shift
27373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27374 CONFIG_SHELL='$SHELL'
27375 export CONFIG_SHELL
27376 exec "\$@"
27377 fi
27378
27379 _ACEOF
27380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27381 exec 5>>config.log
27382 {
27383 echo
27384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27385 ## Running $as_me. ##
27386 _ASBOX
27387 $as_echo "$ac_log"
27388 } >&5
27389
27390 _ACEOF
27391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27392 #
27393 # INIT-COMMANDS
27394 #
27395
27396 srcdir="$srcdir"
27397 host="$host"
27398 target="$target"
27399 with_multisubdir="$with_multisubdir"
27400 with_multisrctop="$with_multisrctop"
27401 with_target_subdir="$with_target_subdir"
27402 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27403 multi_basedir="$multi_basedir"
27404 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27405 CC="$CC"
27406 CXX="$CXX"
27407 GFORTRAN="$GFORTRAN"
27408 GCJ="$GCJ"
27409 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27410
27411
27412 # The HP-UX ksh and POSIX shell print the target directory to stdout
27413 # if CDPATH is set.
27414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27415
27416 sed_quote_subst='$sed_quote_subst'
27417 double_quote_subst='$double_quote_subst'
27418 delay_variable_subst='$delay_variable_subst'
27419 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27420 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27421 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27422 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27423 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27424 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27425 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27426 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27427 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27428 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27429 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27430 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27431 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27432 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27433 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27434 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27435 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27436 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27437 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27438 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27439 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27440 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27441 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27442 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27443 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27444 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27445 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27446 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27452 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27453 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27454 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27455 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27456 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27457 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27458 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27459 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27460 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27461 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27462 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27463 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27464 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27465 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27466 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27467 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"`'
27468 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27469 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27470 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27471 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27472 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27473 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27474 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27475 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27476 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27477 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27478 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27479 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27480 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27481 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27482 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27483 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27484 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27485 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27486 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27487 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27488 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27489 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27490 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27491 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27492 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27493 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27494 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27495 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27496 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27497 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27498 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27499 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27500 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27501 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27502 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27503 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27504 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27505 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27506 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27507 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27508 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27509 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27510 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27511 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27512 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27513 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27514 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27515 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27516 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27517 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27518 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27519 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27520 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27521 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27522 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27523 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27524 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27525 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27526 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27527 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27528 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27529 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27530 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27531 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27532 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27533 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27534 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27535 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27536 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27537 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27538 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27539 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27540 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27541 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27542 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27543 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27544 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27545 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27546 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27547 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27548 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27549 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27550 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27551 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27552 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27553 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27554 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27555 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27556 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27557 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27558 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27559 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27560 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27561 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27562 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27563 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27564 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27565 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27566 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27567 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27568 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27569 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27570 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27571 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27572 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27573 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27574 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27575 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27576 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27577 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27578 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27579 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27580 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27581 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27582 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27583 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27584 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27585 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27586 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27587 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27588 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27589 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27590 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27591 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27592 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27593 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27594
27595 LTCC='$LTCC'
27596 LTCFLAGS='$LTCFLAGS'
27597 compiler='$compiler_DEFAULT'
27598
27599 # A function that is used when there is no print builtin or printf.
27600 func_fallback_echo ()
27601 {
27602 eval 'cat <<_LTECHO_EOF
27603 \$1
27604 _LTECHO_EOF'
27605 }
27606
27607 # Quote evaled strings.
27608 for var in SHELL \
27609 ECHO \
27610 SED \
27611 GREP \
27612 EGREP \
27613 FGREP \
27614 LD \
27615 NM \
27616 LN_S \
27617 lt_SP2NL \
27618 lt_NL2SP \
27619 reload_flag \
27620 OBJDUMP \
27621 deplibs_check_method \
27622 file_magic_cmd \
27623 AR \
27624 AR_FLAGS \
27625 STRIP \
27626 RANLIB \
27627 CC \
27628 CFLAGS \
27629 compiler \
27630 lt_cv_sys_global_symbol_pipe \
27631 lt_cv_sys_global_symbol_to_cdecl \
27632 lt_cv_sys_global_symbol_to_c_name_address \
27633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27634 lt_prog_compiler_no_builtin_flag \
27635 lt_prog_compiler_wl \
27636 lt_prog_compiler_pic \
27637 lt_prog_compiler_static \
27638 lt_cv_prog_compiler_c_o \
27639 need_locks \
27640 DSYMUTIL \
27641 NMEDIT \
27642 LIPO \
27643 OTOOL \
27644 OTOOL64 \
27645 shrext_cmds \
27646 export_dynamic_flag_spec \
27647 whole_archive_flag_spec \
27648 compiler_needs_object \
27649 with_gnu_ld \
27650 allow_undefined_flag \
27651 no_undefined_flag \
27652 hardcode_libdir_flag_spec \
27653 hardcode_libdir_flag_spec_ld \
27654 hardcode_libdir_separator \
27655 fix_srcfile_path \
27656 exclude_expsyms \
27657 include_expsyms \
27658 file_list_spec \
27659 variables_saved_for_relink \
27660 libname_spec \
27661 library_names_spec \
27662 soname_spec \
27663 install_override_mode \
27664 finish_eval \
27665 old_striplib \
27666 striplib \
27667 compiler_lib_search_dirs \
27668 predep_objects \
27669 postdep_objects \
27670 predeps \
27671 postdeps \
27672 compiler_lib_search_path \
27673 LD_FC \
27674 reload_flag_FC \
27675 compiler_FC \
27676 lt_prog_compiler_no_builtin_flag_FC \
27677 lt_prog_compiler_wl_FC \
27678 lt_prog_compiler_pic_FC \
27679 lt_prog_compiler_static_FC \
27680 lt_cv_prog_compiler_c_o_FC \
27681 export_dynamic_flag_spec_FC \
27682 whole_archive_flag_spec_FC \
27683 compiler_needs_object_FC \
27684 with_gnu_ld_FC \
27685 allow_undefined_flag_FC \
27686 no_undefined_flag_FC \
27687 hardcode_libdir_flag_spec_FC \
27688 hardcode_libdir_flag_spec_ld_FC \
27689 hardcode_libdir_separator_FC \
27690 fix_srcfile_path_FC \
27691 exclude_expsyms_FC \
27692 include_expsyms_FC \
27693 file_list_spec_FC \
27694 compiler_lib_search_dirs_FC \
27695 predep_objects_FC \
27696 postdep_objects_FC \
27697 predeps_FC \
27698 postdeps_FC \
27699 compiler_lib_search_path_FC; do
27700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27701 *[\\\\\\\`\\"\\\$]*)
27702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27703 ;;
27704 *)
27705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27706 ;;
27707 esac
27708 done
27709
27710 # Double-quote double-evaled strings.
27711 for var in reload_cmds \
27712 old_postinstall_cmds \
27713 old_postuninstall_cmds \
27714 old_archive_cmds \
27715 extract_expsyms_cmds \
27716 old_archive_from_new_cmds \
27717 old_archive_from_expsyms_cmds \
27718 archive_cmds \
27719 archive_expsym_cmds \
27720 module_cmds \
27721 module_expsym_cmds \
27722 export_symbols_cmds \
27723 prelink_cmds \
27724 postinstall_cmds \
27725 postuninstall_cmds \
27726 finish_cmds \
27727 sys_lib_search_path_spec \
27728 sys_lib_dlsearch_path_spec \
27729 reload_cmds_FC \
27730 old_archive_cmds_FC \
27731 old_archive_from_new_cmds_FC \
27732 old_archive_from_expsyms_cmds_FC \
27733 archive_cmds_FC \
27734 archive_expsym_cmds_FC \
27735 module_cmds_FC \
27736 module_expsym_cmds_FC \
27737 export_symbols_cmds_FC \
27738 prelink_cmds_FC; do
27739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27740 *[\\\\\\\`\\"\\\$]*)
27741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27742 ;;
27743 *)
27744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27745 ;;
27746 esac
27747 done
27748
27749 ac_aux_dir='$ac_aux_dir'
27750 xsi_shell='$xsi_shell'
27751 lt_shell_append='$lt_shell_append'
27752
27753 # See if we are running on zsh, and set the options which allow our
27754 # commands through without removal of \ escapes INIT.
27755 if test -n "\${ZSH_VERSION+set}" ; then
27756 setopt NO_GLOB_SUBST
27757 fi
27758
27759
27760 PACKAGE='$PACKAGE'
27761 VERSION='$VERSION'
27762 TIMESTAMP='$TIMESTAMP'
27763 RM='$RM'
27764 ofile='$ofile'
27765
27766
27767
27768
27769
27770
27771 GCC="$GCC"
27772 CC="$CC"
27773 acx_cv_header_stdint="$acx_cv_header_stdint"
27774 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27775 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27776 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27777 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27778 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27779 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27780 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27781 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27782 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27783 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27784 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27785 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27786 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27787
27788
27789 _ACEOF
27790
27791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27792
27793 # Handling of arguments.
27794 for ac_config_target in $ac_config_targets
27795 do
27796 case $ac_config_target in
27797 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27798 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27799 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27800 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27801 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27803 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27804
27805 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27806 esac
27807 done
27808
27809
27810 # If the user did not use the arguments to specify the items to instantiate,
27811 # then the envvar interface is used. Set only those that are not.
27812 # We use the long form for the default assignment because of an extremely
27813 # bizarre bug on SunOS 4.1.3.
27814 if $ac_need_defaults; then
27815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27818 fi
27819
27820 # Have a temporary directory for convenience. Make it in the build tree
27821 # simply because there is no reason against having it here, and in addition,
27822 # creating and moving files from /tmp can sometimes cause problems.
27823 # Hook for its removal unless debugging.
27824 # Note that there is a small window in which the directory will not be cleaned:
27825 # after its creation but before its name has been assigned to `$tmp'.
27826 $debug ||
27827 {
27828 tmp=
27829 trap 'exit_status=$?
27830 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27831 ' 0
27832 trap 'as_fn_exit 1' 1 2 13 15
27833 }
27834 # Create a (secure) tmp directory for tmp files.
27835
27836 {
27837 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27838 test -n "$tmp" && test -d "$tmp"
27839 } ||
27840 {
27841 tmp=./conf$$-$RANDOM
27842 (umask 077 && mkdir "$tmp")
27843 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27844
27845 # Set up the scripts for CONFIG_FILES section.
27846 # No need to generate them if there are no CONFIG_FILES.
27847 # This happens for instance with `./config.status config.h'.
27848 if test -n "$CONFIG_FILES"; then
27849
27850
27851 ac_cr=`echo X | tr X '\015'`
27852 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27853 # But we know of no other shell where ac_cr would be empty at this
27854 # point, so we can use a bashism as a fallback.
27855 if test "x$ac_cr" = x; then
27856 eval ac_cr=\$\'\\r\'
27857 fi
27858 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27859 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27860 ac_cs_awk_cr='\r'
27861 else
27862 ac_cs_awk_cr=$ac_cr
27863 fi
27864
27865 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27866 _ACEOF
27867
27868
27869 {
27870 echo "cat >conf$$subs.awk <<_ACEOF" &&
27871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27872 echo "_ACEOF"
27873 } >conf$$subs.sh ||
27874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27875 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27876 ac_delim='%!_!# '
27877 for ac_last_try in false false false false false :; do
27878 . ./conf$$subs.sh ||
27879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27880
27881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27882 if test $ac_delim_n = $ac_delim_num; then
27883 break
27884 elif $ac_last_try; then
27885 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27886 else
27887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27888 fi
27889 done
27890 rm -f conf$$subs.sh
27891
27892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27893 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27894 _ACEOF
27895 sed -n '
27896 h
27897 s/^/S["/; s/!.*/"]=/
27898 p
27899 g
27900 s/^[^!]*!//
27901 :repl
27902 t repl
27903 s/'"$ac_delim"'$//
27904 t delim
27905 :nl
27906 h
27907 s/\(.\{148\}\).*/\1/
27908 t more1
27909 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27910 p
27911 n
27912 b repl
27913 :more1
27914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27915 p
27916 g
27917 s/.\{148\}//
27918 t nl
27919 :delim
27920 h
27921 s/\(.\{148\}\).*/\1/
27922 t more2
27923 s/["\\]/\\&/g; s/^/"/; s/$/"/
27924 p
27925 b
27926 :more2
27927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27928 p
27929 g
27930 s/.\{148\}//
27931 t delim
27932 ' <conf$$subs.awk | sed '
27933 /^[^""]/{
27934 N
27935 s/\n//
27936 }
27937 ' >>$CONFIG_STATUS || ac_write_fail=1
27938 rm -f conf$$subs.awk
27939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27940 _ACAWK
27941 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27942 for (key in S) S_is_set[key] = 1
27943 FS = "\a"
27944
27945 }
27946 {
27947 line = $ 0
27948 nfields = split(line, field, "@")
27949 substed = 0
27950 len = length(field[1])
27951 for (i = 2; i < nfields; i++) {
27952 key = field[i]
27953 keylen = length(key)
27954 if (S_is_set[key]) {
27955 value = S[key]
27956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27957 len += length(value) + length(field[++i])
27958 substed = 1
27959 } else
27960 len += 1 + keylen
27961 }
27962
27963 print line
27964 }
27965
27966 _ACAWK
27967 _ACEOF
27968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27969 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27971 else
27972 cat
27973 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27974 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27975 _ACEOF
27976
27977 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27978 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27979 # trailing colons and then remove the whole line if VPATH becomes empty
27980 # (actually we leave an empty line to preserve line numbers).
27981 if test "x$srcdir" = x.; then
27982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27983 s/:*\$(srcdir):*/:/
27984 s/:*\${srcdir}:*/:/
27985 s/:*@srcdir@:*/:/
27986 s/^\([^=]*=[ ]*\):*/\1/
27987 s/:*$//
27988 s/^[^=]*=[ ]*$//
27989 }'
27990 fi
27991
27992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27993 fi # test -n "$CONFIG_FILES"
27994
27995 # Set up the scripts for CONFIG_HEADERS section.
27996 # No need to generate them if there are no CONFIG_HEADERS.
27997 # This happens for instance with `./config.status Makefile'.
27998 if test -n "$CONFIG_HEADERS"; then
27999 cat >"$tmp/defines.awk" <<\_ACAWK ||
28000 BEGIN {
28001 _ACEOF
28002
28003 # Transform confdefs.h into an awk script `defines.awk', embedded as
28004 # here-document in config.status, that substitutes the proper values into
28005 # config.h.in to produce config.h.
28006
28007 # Create a delimiter string that does not exist in confdefs.h, to ease
28008 # handling of long lines.
28009 ac_delim='%!_!# '
28010 for ac_last_try in false false :; do
28011 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28012 if test -z "$ac_t"; then
28013 break
28014 elif $ac_last_try; then
28015 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28016 else
28017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28018 fi
28019 done
28020
28021 # For the awk script, D is an array of macro values keyed by name,
28022 # likewise P contains macro parameters if any. Preserve backslash
28023 # newline sequences.
28024
28025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28026 sed -n '
28027 s/.\{148\}/&'"$ac_delim"'/g
28028 t rset
28029 :rset
28030 s/^[ ]*#[ ]*define[ ][ ]*/ /
28031 t def
28032 d
28033 :def
28034 s/\\$//
28035 t bsnl
28036 s/["\\]/\\&/g
28037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28038 D["\1"]=" \3"/p
28039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28040 d
28041 :bsnl
28042 s/["\\]/\\&/g
28043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28044 D["\1"]=" \3\\\\\\n"\\/p
28045 t cont
28046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28047 t cont
28048 d
28049 :cont
28050 n
28051 s/.\{148\}/&'"$ac_delim"'/g
28052 t clear
28053 :clear
28054 s/\\$//
28055 t bsnlc
28056 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28057 d
28058 :bsnlc
28059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28060 b cont
28061 ' <confdefs.h | sed '
28062 s/'"$ac_delim"'/"\\\
28063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28064
28065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28066 for (key in D) D_is_set[key] = 1
28067 FS = "\a"
28068 }
28069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28070 line = \$ 0
28071 split(line, arg, " ")
28072 if (arg[1] == "#") {
28073 defundef = arg[2]
28074 mac1 = arg[3]
28075 } else {
28076 defundef = substr(arg[1], 2)
28077 mac1 = arg[2]
28078 }
28079 split(mac1, mac2, "(") #)
28080 macro = mac2[1]
28081 prefix = substr(line, 1, index(line, defundef) - 1)
28082 if (D_is_set[macro]) {
28083 # Preserve the white space surrounding the "#".
28084 print prefix "define", macro P[macro] D[macro]
28085 next
28086 } else {
28087 # Replace #undef with comments. This is necessary, for example,
28088 # in the case of _POSIX_SOURCE, which is predefined and required
28089 # on some systems where configure will not decide to define it.
28090 if (defundef == "undef") {
28091 print "/*", prefix defundef, macro, "*/"
28092 next
28093 }
28094 }
28095 }
28096 { print }
28097 _ACAWK
28098 _ACEOF
28099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28100 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28101 fi # test -n "$CONFIG_HEADERS"
28102
28103
28104 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28105 shift
28106 for ac_tag
28107 do
28108 case $ac_tag in
28109 :[FHLC]) ac_mode=$ac_tag; continue;;
28110 esac
28111 case $ac_mode$ac_tag in
28112 :[FHL]*:*);;
28113 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28114 :[FH]-) ac_tag=-:-;;
28115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28116 esac
28117 ac_save_IFS=$IFS
28118 IFS=:
28119 set x $ac_tag
28120 IFS=$ac_save_IFS
28121 shift
28122 ac_file=$1
28123 shift
28124
28125 case $ac_mode in
28126 :L) ac_source=$1;;
28127 :[FH])
28128 ac_file_inputs=
28129 for ac_f
28130 do
28131 case $ac_f in
28132 -) ac_f="$tmp/stdin";;
28133 *) # Look for the file first in the build tree, then in the source tree
28134 # (if the path is not absolute). The absolute path cannot be DOS-style,
28135 # because $ac_f cannot contain `:'.
28136 test -f "$ac_f" ||
28137 case $ac_f in
28138 [\\/$]*) false;;
28139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28140 esac ||
28141 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28142 esac
28143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28144 as_fn_append ac_file_inputs " '$ac_f'"
28145 done
28146
28147 # Let's still pretend it is `configure' which instantiates (i.e., don't
28148 # use $as_me), people would be surprised to read:
28149 # /* config.h. Generated by config.status. */
28150 configure_input='Generated from '`
28151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28152 `' by configure.'
28153 if test x"$ac_file" != x-; then
28154 configure_input="$ac_file. $configure_input"
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28156 $as_echo "$as_me: creating $ac_file" >&6;}
28157 fi
28158 # Neutralize special characters interpreted by sed in replacement strings.
28159 case $configure_input in #(
28160 *\&* | *\|* | *\\* )
28161 ac_sed_conf_input=`$as_echo "$configure_input" |
28162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28163 *) ac_sed_conf_input=$configure_input;;
28164 esac
28165
28166 case $ac_tag in
28167 *:-:* | *:-) cat >"$tmp/stdin" \
28168 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28169 esac
28170 ;;
28171 esac
28172
28173 ac_dir=`$as_dirname -- "$ac_file" ||
28174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28175 X"$ac_file" : 'X\(//\)[^/]' \| \
28176 X"$ac_file" : 'X\(//\)$' \| \
28177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28178 $as_echo X"$ac_file" |
28179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28180 s//\1/
28181 q
28182 }
28183 /^X\(\/\/\)[^/].*/{
28184 s//\1/
28185 q
28186 }
28187 /^X\(\/\/\)$/{
28188 s//\1/
28189 q
28190 }
28191 /^X\(\/\).*/{
28192 s//\1/
28193 q
28194 }
28195 s/.*/./; q'`
28196 as_dir="$ac_dir"; as_fn_mkdir_p
28197 ac_builddir=.
28198
28199 case "$ac_dir" in
28200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28201 *)
28202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28203 # A ".." for each directory in $ac_dir_suffix.
28204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28205 case $ac_top_builddir_sub in
28206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28208 esac ;;
28209 esac
28210 ac_abs_top_builddir=$ac_pwd
28211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28212 # for backward compatibility:
28213 ac_top_builddir=$ac_top_build_prefix
28214
28215 case $srcdir in
28216 .) # We are building in place.
28217 ac_srcdir=.
28218 ac_top_srcdir=$ac_top_builddir_sub
28219 ac_abs_top_srcdir=$ac_pwd ;;
28220 [\\/]* | ?:[\\/]* ) # Absolute name.
28221 ac_srcdir=$srcdir$ac_dir_suffix;
28222 ac_top_srcdir=$srcdir
28223 ac_abs_top_srcdir=$srcdir ;;
28224 *) # Relative name.
28225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28226 ac_top_srcdir=$ac_top_build_prefix$srcdir
28227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28228 esac
28229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28230
28231
28232 case $ac_mode in
28233 :F)
28234 #
28235 # CONFIG_FILE
28236 #
28237
28238 case $INSTALL in
28239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28241 esac
28242 ac_MKDIR_P=$MKDIR_P
28243 case $MKDIR_P in
28244 [\\/$]* | ?:[\\/]* ) ;;
28245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28246 esac
28247 _ACEOF
28248
28249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28250 # If the template does not know about datarootdir, expand it.
28251 # FIXME: This hack should be removed a few years after 2.60.
28252 ac_datarootdir_hack=; ac_datarootdir_seen=
28253 ac_sed_dataroot='
28254 /datarootdir/ {
28255 p
28256 q
28257 }
28258 /@datadir@/p
28259 /@docdir@/p
28260 /@infodir@/p
28261 /@localedir@/p
28262 /@mandir@/p'
28263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28264 *datarootdir*) ac_datarootdir_seen=yes;;
28265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28268 _ACEOF
28269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28270 ac_datarootdir_hack='
28271 s&@datadir@&$datadir&g
28272 s&@docdir@&$docdir&g
28273 s&@infodir@&$infodir&g
28274 s&@localedir@&$localedir&g
28275 s&@mandir@&$mandir&g
28276 s&\\\${datarootdir}&$datarootdir&g' ;;
28277 esac
28278 _ACEOF
28279
28280 # Neutralize VPATH when `$srcdir' = `.'.
28281 # Shell code in configure.ac might set extrasub.
28282 # FIXME: do we really want to maintain this feature?
28283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28284 ac_sed_extra="$ac_vpsub
28285 $extrasub
28286 _ACEOF
28287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28288 :t
28289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28290 s|@configure_input@|$ac_sed_conf_input|;t t
28291 s&@top_builddir@&$ac_top_builddir_sub&;t t
28292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28293 s&@srcdir@&$ac_srcdir&;t t
28294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28295 s&@top_srcdir@&$ac_top_srcdir&;t t
28296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28297 s&@builddir@&$ac_builddir&;t t
28298 s&@abs_builddir@&$ac_abs_builddir&;t t
28299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28300 s&@INSTALL@&$ac_INSTALL&;t t
28301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28302 $ac_datarootdir_hack
28303 "
28304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28305 || as_fn_error "could not create $ac_file" "$LINENO" 5
28306
28307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28308 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28311 which seems to be undefined. Please make sure it is defined." >&5
28312 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28313 which seems to be undefined. Please make sure it is defined." >&2;}
28314
28315 rm -f "$tmp/stdin"
28316 case $ac_file in
28317 -) cat "$tmp/out" && rm -f "$tmp/out";;
28318 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28319 esac \
28320 || as_fn_error "could not create $ac_file" "$LINENO" 5
28321 ;;
28322 :H)
28323 #
28324 # CONFIG_HEADER
28325 #
28326 if test x"$ac_file" != x-; then
28327 {
28328 $as_echo "/* $configure_input */" \
28329 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28330 } >"$tmp/config.h" \
28331 || as_fn_error "could not create $ac_file" "$LINENO" 5
28332 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28334 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28335 else
28336 rm -f "$ac_file"
28337 mv "$tmp/config.h" "$ac_file" \
28338 || as_fn_error "could not create $ac_file" "$LINENO" 5
28339 fi
28340 else
28341 $as_echo "/* $configure_input */" \
28342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28343 || as_fn_error "could not create -" "$LINENO" 5
28344 fi
28345 # Compute "$ac_file"'s index in $config_headers.
28346 _am_arg="$ac_file"
28347 _am_stamp_count=1
28348 for _am_header in $config_headers :; do
28349 case $_am_header in
28350 $_am_arg | $_am_arg:* )
28351 break ;;
28352 * )
28353 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28354 esac
28355 done
28356 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28357 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28358 X"$_am_arg" : 'X\(//\)[^/]' \| \
28359 X"$_am_arg" : 'X\(//\)$' \| \
28360 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28361 $as_echo X"$_am_arg" |
28362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28363 s//\1/
28364 q
28365 }
28366 /^X\(\/\/\)[^/].*/{
28367 s//\1/
28368 q
28369 }
28370 /^X\(\/\/\)$/{
28371 s//\1/
28372 q
28373 }
28374 /^X\(\/\).*/{
28375 s//\1/
28376 q
28377 }
28378 s/.*/./; q'`/stamp-h$_am_stamp_count
28379 ;;
28380
28381 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28382 $as_echo "$as_me: executing $ac_file commands" >&6;}
28383 ;;
28384 esac
28385
28386
28387 case $ac_file$ac_mode in
28388 "default-1":C)
28389 # Only add multilib support code if we just rebuilt the top-level
28390 # Makefile.
28391 case " $CONFIG_FILES " in
28392 *" Makefile "*)
28393 ac_file=Makefile . ${multi_basedir}/config-ml.in
28394 ;;
28395 esac ;;
28396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28397 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28398 # are listed without --file. Let's play safe and only enable the eval
28399 # if we detect the quoting.
28400 case $CONFIG_FILES in
28401 *\'*) eval set x "$CONFIG_FILES" ;;
28402 *) set x $CONFIG_FILES ;;
28403 esac
28404 shift
28405 for mf
28406 do
28407 # Strip MF so we end up with the name of the file.
28408 mf=`echo "$mf" | sed -e 's/:.*$//'`
28409 # Check whether this is an Automake generated Makefile or not.
28410 # We used to match only the files named `Makefile.in', but
28411 # some people rename them; so instead we look at the file content.
28412 # Grep'ing the first line is not enough: some people post-process
28413 # each Makefile.in and add a new line on top of each file to say so.
28414 # Grep'ing the whole file is not good either: AIX grep has a line
28415 # limit of 2048, but all sed's we know have understand at least 4000.
28416 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28417 dirpart=`$as_dirname -- "$mf" ||
28418 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28419 X"$mf" : 'X\(//\)[^/]' \| \
28420 X"$mf" : 'X\(//\)$' \| \
28421 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28422 $as_echo X"$mf" |
28423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28424 s//\1/
28425 q
28426 }
28427 /^X\(\/\/\)[^/].*/{
28428 s//\1/
28429 q
28430 }
28431 /^X\(\/\/\)$/{
28432 s//\1/
28433 q
28434 }
28435 /^X\(\/\).*/{
28436 s//\1/
28437 q
28438 }
28439 s/.*/./; q'`
28440 else
28441 continue
28442 fi
28443 # Extract the definition of DEPDIR, am__include, and am__quote
28444 # from the Makefile without running `make'.
28445 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28446 test -z "$DEPDIR" && continue
28447 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28448 test -z "am__include" && continue
28449 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28450 # When using ansi2knr, U may be empty or an underscore; expand it
28451 U=`sed -n 's/^U = //p' < "$mf"`
28452 # Find all dependency output files, they are included files with
28453 # $(DEPDIR) in their names. We invoke sed twice because it is the
28454 # simplest approach to changing $(DEPDIR) to its actual value in the
28455 # expansion.
28456 for file in `sed -n "
28457 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28458 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28459 # Make sure the directory exists.
28460 test -f "$dirpart/$file" && continue
28461 fdir=`$as_dirname -- "$file" ||
28462 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28463 X"$file" : 'X\(//\)[^/]' \| \
28464 X"$file" : 'X\(//\)$' \| \
28465 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28466 $as_echo X"$file" |
28467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28468 s//\1/
28469 q
28470 }
28471 /^X\(\/\/\)[^/].*/{
28472 s//\1/
28473 q
28474 }
28475 /^X\(\/\/\)$/{
28476 s//\1/
28477 q
28478 }
28479 /^X\(\/\).*/{
28480 s//\1/
28481 q
28482 }
28483 s/.*/./; q'`
28484 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28485 # echo "creating $dirpart/$file"
28486 echo '# dummy' > "$dirpart/$file"
28487 done
28488 done
28489 }
28490 ;;
28491 "libtool":C)
28492
28493 # See if we are running on zsh, and set the options which allow our
28494 # commands through without removal of \ escapes.
28495 if test -n "${ZSH_VERSION+set}" ; then
28496 setopt NO_GLOB_SUBST
28497 fi
28498
28499 cfgfile="${ofile}T"
28500 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28501 $RM "$cfgfile"
28502
28503 cat <<_LT_EOF >> "$cfgfile"
28504 #! $SHELL
28505
28506 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28507 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28509 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28510 #
28511 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28512 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28513 # Written by Gordon Matzigkeit, 1996
28514 #
28515 # This file is part of GNU Libtool.
28516 #
28517 # GNU Libtool is free software; you can redistribute it and/or
28518 # modify it under the terms of the GNU General Public License as
28519 # published by the Free Software Foundation; either version 2 of
28520 # the License, or (at your option) any later version.
28521 #
28522 # As a special exception to the GNU General Public License,
28523 # if you distribute this file as part of a program or library that
28524 # is built using GNU Libtool, you may include this file under the
28525 # same distribution terms that you use for the rest of that program.
28526 #
28527 # GNU Libtool is distributed in the hope that it will be useful,
28528 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28529 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28530 # GNU General Public License for more details.
28531 #
28532 # You should have received a copy of the GNU General Public License
28533 # along with GNU Libtool; see the file COPYING. If not, a copy
28534 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28535 # obtained by writing to the Free Software Foundation, Inc.,
28536 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28537
28538
28539 # The names of the tagged configurations supported by this script.
28540 available_tags="FC "
28541
28542 # ### BEGIN LIBTOOL CONFIG
28543
28544 # Which release of libtool.m4 was used?
28545 macro_version=$macro_version
28546 macro_revision=$macro_revision
28547
28548 # Whether or not to build shared libraries.
28549 build_libtool_libs=$enable_shared
28550
28551 # Whether or not to build static libraries.
28552 build_old_libs=$enable_static
28553
28554 # What type of objects to build.
28555 pic_mode=$pic_mode
28556
28557 # Whether or not to optimize for fast installation.
28558 fast_install=$enable_fast_install
28559
28560 # Shell to use when invoking shell scripts.
28561 SHELL=$lt_SHELL
28562
28563 # An echo program that protects backslashes.
28564 ECHO=$lt_ECHO
28565
28566 # The host system.
28567 host_alias=$host_alias
28568 host=$host
28569 host_os=$host_os
28570
28571 # The build system.
28572 build_alias=$build_alias
28573 build=$build
28574 build_os=$build_os
28575
28576 # A sed program that does not truncate output.
28577 SED=$lt_SED
28578
28579 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28580 Xsed="\$SED -e 1s/^X//"
28581
28582 # A grep program that handles long lines.
28583 GREP=$lt_GREP
28584
28585 # An ERE matcher.
28586 EGREP=$lt_EGREP
28587
28588 # A literal string matcher.
28589 FGREP=$lt_FGREP
28590
28591 # A BSD- or MS-compatible name lister.
28592 NM=$lt_NM
28593
28594 # Whether we need soft or hard links.
28595 LN_S=$lt_LN_S
28596
28597 # What is the maximum length of a command?
28598 max_cmd_len=$max_cmd_len
28599
28600 # Object file suffix (normally "o").
28601 objext=$ac_objext
28602
28603 # Executable file suffix (normally "").
28604 exeext=$exeext
28605
28606 # whether the shell understands "unset".
28607 lt_unset=$lt_unset
28608
28609 # turn spaces into newlines.
28610 SP2NL=$lt_lt_SP2NL
28611
28612 # turn newlines into spaces.
28613 NL2SP=$lt_lt_NL2SP
28614
28615 # An object symbol dumper.
28616 OBJDUMP=$lt_OBJDUMP
28617
28618 # Method to check whether dependent libraries are shared objects.
28619 deplibs_check_method=$lt_deplibs_check_method
28620
28621 # Command to use when deplibs_check_method == "file_magic".
28622 file_magic_cmd=$lt_file_magic_cmd
28623
28624 # The archiver.
28625 AR=$lt_AR
28626 AR_FLAGS=$lt_AR_FLAGS
28627
28628 # A symbol stripping program.
28629 STRIP=$lt_STRIP
28630
28631 # Commands used to install an old-style archive.
28632 RANLIB=$lt_RANLIB
28633 old_postinstall_cmds=$lt_old_postinstall_cmds
28634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28635
28636 # Whether to use a lock for old archive extraction.
28637 lock_old_archive_extraction=$lock_old_archive_extraction
28638
28639 # A C compiler.
28640 LTCC=$lt_CC
28641
28642 # LTCC compiler flags.
28643 LTCFLAGS=$lt_CFLAGS
28644
28645 # Take the output of nm and produce a listing of raw symbols and C names.
28646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28647
28648 # Transform the output of nm in a proper C declaration.
28649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28650
28651 # Transform the output of nm in a C name address pair.
28652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28653
28654 # Transform the output of nm in a C name address pair when lib prefix is needed.
28655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28656
28657 # The name of the directory that contains temporary libtool files.
28658 objdir=$objdir
28659
28660 # Used to examine libraries when file_magic_cmd begins with "file".
28661 MAGIC_CMD=$MAGIC_CMD
28662
28663 # Must we lock files when doing compilation?
28664 need_locks=$lt_need_locks
28665
28666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28667 DSYMUTIL=$lt_DSYMUTIL
28668
28669 # Tool to change global to local symbols on Mac OS X.
28670 NMEDIT=$lt_NMEDIT
28671
28672 # Tool to manipulate fat objects and archives on Mac OS X.
28673 LIPO=$lt_LIPO
28674
28675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28676 OTOOL=$lt_OTOOL
28677
28678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28679 OTOOL64=$lt_OTOOL64
28680
28681 # Old archive suffix (normally "a").
28682 libext=$libext
28683
28684 # Shared library suffix (normally ".so").
28685 shrext_cmds=$lt_shrext_cmds
28686
28687 # The commands to extract the exported symbol list from a shared archive.
28688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28689
28690 # Variables whose values should be saved in libtool wrapper scripts and
28691 # restored at link time.
28692 variables_saved_for_relink=$lt_variables_saved_for_relink
28693
28694 # Do we need the "lib" prefix for modules?
28695 need_lib_prefix=$need_lib_prefix
28696
28697 # Do we need a version for libraries?
28698 need_version=$need_version
28699
28700 # Library versioning type.
28701 version_type=$version_type
28702
28703 # Shared library runtime path variable.
28704 runpath_var=$runpath_var
28705
28706 # Shared library path variable.
28707 shlibpath_var=$shlibpath_var
28708
28709 # Is shlibpath searched before the hard-coded library search path?
28710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28711
28712 # Format of library name prefix.
28713 libname_spec=$lt_libname_spec
28714
28715 # List of archive names. First name is the real one, the rest are links.
28716 # The last name is the one that the linker finds with -lNAME
28717 library_names_spec=$lt_library_names_spec
28718
28719 # The coded name of the library, if different from the real name.
28720 soname_spec=$lt_soname_spec
28721
28722 # Permission mode override for installation of shared libraries.
28723 install_override_mode=$lt_install_override_mode
28724
28725 # Command to use after installation of a shared archive.
28726 postinstall_cmds=$lt_postinstall_cmds
28727
28728 # Command to use after uninstallation of a shared archive.
28729 postuninstall_cmds=$lt_postuninstall_cmds
28730
28731 # Commands used to finish a libtool library installation in a directory.
28732 finish_cmds=$lt_finish_cmds
28733
28734 # As "finish_cmds", except a single script fragment to be evaled but
28735 # not shown.
28736 finish_eval=$lt_finish_eval
28737
28738 # Whether we should hardcode library paths into libraries.
28739 hardcode_into_libs=$hardcode_into_libs
28740
28741 # Compile-time system search path for libraries.
28742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28743
28744 # Run-time system search path for libraries.
28745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28746
28747 # Whether dlopen is supported.
28748 dlopen_support=$enable_dlopen
28749
28750 # Whether dlopen of programs is supported.
28751 dlopen_self=$enable_dlopen_self
28752
28753 # Whether dlopen of statically linked programs is supported.
28754 dlopen_self_static=$enable_dlopen_self_static
28755
28756 # Commands to strip libraries.
28757 old_striplib=$lt_old_striplib
28758 striplib=$lt_striplib
28759
28760
28761 # The linker used to build libraries.
28762 LD=$lt_LD
28763
28764 # How to create reloadable object files.
28765 reload_flag=$lt_reload_flag
28766 reload_cmds=$lt_reload_cmds
28767
28768 # Commands used to build an old-style archive.
28769 old_archive_cmds=$lt_old_archive_cmds
28770
28771 # A language specific compiler.
28772 CC=$lt_compiler
28773
28774 # Is the compiler the GNU compiler?
28775 with_gcc=$GCC
28776
28777 # Compiler flag to turn off builtin functions.
28778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28779
28780 # How to pass a linker flag through the compiler.
28781 wl=$lt_lt_prog_compiler_wl
28782
28783 # Additional compiler flags for building library objects.
28784 pic_flag=$lt_lt_prog_compiler_pic
28785
28786 # Compiler flag to prevent dynamic linking.
28787 link_static_flag=$lt_lt_prog_compiler_static
28788
28789 # Does compiler simultaneously support -c and -o options?
28790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28791
28792 # Whether or not to add -lc for building shared libraries.
28793 build_libtool_need_lc=$archive_cmds_need_lc
28794
28795 # Whether or not to disallow shared libs when runtime libs are static.
28796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28797
28798 # Compiler flag to allow reflexive dlopens.
28799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28800
28801 # Compiler flag to generate shared objects directly from archives.
28802 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28803
28804 # Whether the compiler copes with passing no objects directly.
28805 compiler_needs_object=$lt_compiler_needs_object
28806
28807 # Create an old-style archive from a shared archive.
28808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28809
28810 # Create a temporary old-style archive to link instead of a shared archive.
28811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28812
28813 # Commands used to build a shared archive.
28814 archive_cmds=$lt_archive_cmds
28815 archive_expsym_cmds=$lt_archive_expsym_cmds
28816
28817 # Commands used to build a loadable module if different from building
28818 # a shared archive.
28819 module_cmds=$lt_module_cmds
28820 module_expsym_cmds=$lt_module_expsym_cmds
28821
28822 # Whether we are building with GNU ld or not.
28823 with_gnu_ld=$lt_with_gnu_ld
28824
28825 # Flag that allows shared libraries with undefined symbols to be built.
28826 allow_undefined_flag=$lt_allow_undefined_flag
28827
28828 # Flag that enforces no undefined symbols.
28829 no_undefined_flag=$lt_no_undefined_flag
28830
28831 # Flag to hardcode \$libdir into a binary during linking.
28832 # This must work even if \$libdir does not exist
28833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28834
28835 # If ld is used when linking, flag to hardcode \$libdir into a binary
28836 # during linking. This must work even if \$libdir does not exist.
28837 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28838
28839 # Whether we need a single "-rpath" flag with a separated argument.
28840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28841
28842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28843 # DIR into the resulting binary.
28844 hardcode_direct=$hardcode_direct
28845
28846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28847 # DIR into the resulting binary and the resulting library dependency is
28848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28849 # library is relocated.
28850 hardcode_direct_absolute=$hardcode_direct_absolute
28851
28852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28853 # into the resulting binary.
28854 hardcode_minus_L=$hardcode_minus_L
28855
28856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28857 # into the resulting binary.
28858 hardcode_shlibpath_var=$hardcode_shlibpath_var
28859
28860 # Set to "yes" if building a shared library automatically hardcodes DIR
28861 # into the library and all subsequent libraries and executables linked
28862 # against it.
28863 hardcode_automatic=$hardcode_automatic
28864
28865 # Set to yes if linker adds runtime paths of dependent libraries
28866 # to runtime path list.
28867 inherit_rpath=$inherit_rpath
28868
28869 # Whether libtool must link a program against all its dependency libraries.
28870 link_all_deplibs=$link_all_deplibs
28871
28872 # Fix the shell variable \$srcfile for the compiler.
28873 fix_srcfile_path=$lt_fix_srcfile_path
28874
28875 # Set to "yes" if exported symbols are required.
28876 always_export_symbols=$always_export_symbols
28877
28878 # The commands to list exported symbols.
28879 export_symbols_cmds=$lt_export_symbols_cmds
28880
28881 # Symbols that should not be listed in the preloaded symbols.
28882 exclude_expsyms=$lt_exclude_expsyms
28883
28884 # Symbols that must always be exported.
28885 include_expsyms=$lt_include_expsyms
28886
28887 # Commands necessary for linking programs (against libraries) with templates.
28888 prelink_cmds=$lt_prelink_cmds
28889
28890 # Specify filename containing input files.
28891 file_list_spec=$lt_file_list_spec
28892
28893 # How to hardcode a shared library path into an executable.
28894 hardcode_action=$hardcode_action
28895
28896 # The directories searched by this compiler when creating a shared library.
28897 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28898
28899 # Dependencies to place before and after the objects being linked to
28900 # create a shared library.
28901 predep_objects=$lt_predep_objects
28902 postdep_objects=$lt_postdep_objects
28903 predeps=$lt_predeps
28904 postdeps=$lt_postdeps
28905
28906 # The library search path used internally by the compiler when linking
28907 # a shared library.
28908 compiler_lib_search_path=$lt_compiler_lib_search_path
28909
28910 # ### END LIBTOOL CONFIG
28911
28912 _LT_EOF
28913
28914 case $host_os in
28915 aix3*)
28916 cat <<\_LT_EOF >> "$cfgfile"
28917 # AIX sometimes has problems with the GCC collect2 program. For some
28918 # reason, if we set the COLLECT_NAMES environment variable, the problems
28919 # vanish in a puff of smoke.
28920 if test "X${COLLECT_NAMES+set}" != Xset; then
28921 COLLECT_NAMES=
28922 export COLLECT_NAMES
28923 fi
28924 _LT_EOF
28925 ;;
28926 esac
28927
28928
28929 ltmain="$ac_aux_dir/ltmain.sh"
28930
28931
28932 # We use sed instead of cat because bash on DJGPP gets confused if
28933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28934 # text mode, it properly converts lines to CR/LF. This bash problem
28935 # is reportedly fixed, but why not run on old versions too?
28936 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28937 || (rm -f "$cfgfile"; exit 1)
28938
28939 case $xsi_shell in
28940 yes)
28941 cat << \_LT_EOF >> "$cfgfile"
28942
28943 # func_dirname file append nondir_replacement
28944 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28945 # otherwise set result to NONDIR_REPLACEMENT.
28946 func_dirname ()
28947 {
28948 case ${1} in
28949 */*) func_dirname_result="${1%/*}${2}" ;;
28950 * ) func_dirname_result="${3}" ;;
28951 esac
28952 }
28953
28954 # func_basename file
28955 func_basename ()
28956 {
28957 func_basename_result="${1##*/}"
28958 }
28959
28960 # func_dirname_and_basename file append nondir_replacement
28961 # perform func_basename and func_dirname in a single function
28962 # call:
28963 # dirname: Compute the dirname of FILE. If nonempty,
28964 # add APPEND to the result, otherwise set result
28965 # to NONDIR_REPLACEMENT.
28966 # value returned in "$func_dirname_result"
28967 # basename: Compute filename of FILE.
28968 # value retuned in "$func_basename_result"
28969 # Implementation must be kept synchronized with func_dirname
28970 # and func_basename. For efficiency, we do not delegate to
28971 # those functions but instead duplicate the functionality here.
28972 func_dirname_and_basename ()
28973 {
28974 case ${1} in
28975 */*) func_dirname_result="${1%/*}${2}" ;;
28976 * ) func_dirname_result="${3}" ;;
28977 esac
28978 func_basename_result="${1##*/}"
28979 }
28980
28981 # func_stripname prefix suffix name
28982 # strip PREFIX and SUFFIX off of NAME.
28983 # PREFIX and SUFFIX must not contain globbing or regex special
28984 # characters, hashes, percent signs, but SUFFIX may contain a leading
28985 # dot (in which case that matches only a dot).
28986 func_stripname ()
28987 {
28988 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28989 # positional parameters, so assign one to ordinary parameter first.
28990 func_stripname_result=${3}
28991 func_stripname_result=${func_stripname_result#"${1}"}
28992 func_stripname_result=${func_stripname_result%"${2}"}
28993 }
28994
28995 # func_opt_split
28996 func_opt_split ()
28997 {
28998 func_opt_split_opt=${1%%=*}
28999 func_opt_split_arg=${1#*=}
29000 }
29001
29002 # func_lo2o object
29003 func_lo2o ()
29004 {
29005 case ${1} in
29006 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29007 *) func_lo2o_result=${1} ;;
29008 esac
29009 }
29010
29011 # func_xform libobj-or-source
29012 func_xform ()
29013 {
29014 func_xform_result=${1%.*}.lo
29015 }
29016
29017 # func_arith arithmetic-term...
29018 func_arith ()
29019 {
29020 func_arith_result=$(( $* ))
29021 }
29022
29023 # func_len string
29024 # STRING may not start with a hyphen.
29025 func_len ()
29026 {
29027 func_len_result=${#1}
29028 }
29029
29030 _LT_EOF
29031 ;;
29032 *) # Bourne compatible functions.
29033 cat << \_LT_EOF >> "$cfgfile"
29034
29035 # func_dirname file append nondir_replacement
29036 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29037 # otherwise set result to NONDIR_REPLACEMENT.
29038 func_dirname ()
29039 {
29040 # Extract subdirectory from the argument.
29041 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29042 if test "X$func_dirname_result" = "X${1}"; then
29043 func_dirname_result="${3}"
29044 else
29045 func_dirname_result="$func_dirname_result${2}"
29046 fi
29047 }
29048
29049 # func_basename file
29050 func_basename ()
29051 {
29052 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29053 }
29054
29055
29056 # func_stripname prefix suffix name
29057 # strip PREFIX and SUFFIX off of NAME.
29058 # PREFIX and SUFFIX must not contain globbing or regex special
29059 # characters, hashes, percent signs, but SUFFIX may contain a leading
29060 # dot (in which case that matches only a dot).
29061 # func_strip_suffix prefix name
29062 func_stripname ()
29063 {
29064 case ${2} in
29065 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29066 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29067 esac
29068 }
29069
29070 # sed scripts:
29071 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29072 my_sed_long_arg='1s/^-[^=]*=//'
29073
29074 # func_opt_split
29075 func_opt_split ()
29076 {
29077 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29078 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29079 }
29080
29081 # func_lo2o object
29082 func_lo2o ()
29083 {
29084 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29085 }
29086
29087 # func_xform libobj-or-source
29088 func_xform ()
29089 {
29090 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29091 }
29092
29093 # func_arith arithmetic-term...
29094 func_arith ()
29095 {
29096 func_arith_result=`expr "$@"`
29097 }
29098
29099 # func_len string
29100 # STRING may not start with a hyphen.
29101 func_len ()
29102 {
29103 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29104 }
29105
29106 _LT_EOF
29107 esac
29108
29109 case $lt_shell_append in
29110 yes)
29111 cat << \_LT_EOF >> "$cfgfile"
29112
29113 # func_append var value
29114 # Append VALUE to the end of shell variable VAR.
29115 func_append ()
29116 {
29117 eval "$1+=\$2"
29118 }
29119 _LT_EOF
29120 ;;
29121 *)
29122 cat << \_LT_EOF >> "$cfgfile"
29123
29124 # func_append var value
29125 # Append VALUE to the end of shell variable VAR.
29126 func_append ()
29127 {
29128 eval "$1=\$$1\$2"
29129 }
29130
29131 _LT_EOF
29132 ;;
29133 esac
29134
29135
29136 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29137 || (rm -f "$cfgfile"; exit 1)
29138
29139 mv -f "$cfgfile" "$ofile" ||
29140 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29141 chmod +x "$ofile"
29142
29143
29144 cat <<_LT_EOF >> "$ofile"
29145
29146 # ### BEGIN LIBTOOL TAG CONFIG: FC
29147
29148 # The linker used to build libraries.
29149 LD=$lt_LD_FC
29150
29151 # How to create reloadable object files.
29152 reload_flag=$lt_reload_flag_FC
29153 reload_cmds=$lt_reload_cmds_FC
29154
29155 # Commands used to build an old-style archive.
29156 old_archive_cmds=$lt_old_archive_cmds_FC
29157
29158 # A language specific compiler.
29159 CC=$lt_compiler_FC
29160
29161 # Is the compiler the GNU compiler?
29162 with_gcc=$GCC_FC
29163
29164 # Compiler flag to turn off builtin functions.
29165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29166
29167 # How to pass a linker flag through the compiler.
29168 wl=$lt_lt_prog_compiler_wl_FC
29169
29170 # Additional compiler flags for building library objects.
29171 pic_flag=$lt_lt_prog_compiler_pic_FC
29172
29173 # Compiler flag to prevent dynamic linking.
29174 link_static_flag=$lt_lt_prog_compiler_static_FC
29175
29176 # Does compiler simultaneously support -c and -o options?
29177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29178
29179 # Whether or not to add -lc for building shared libraries.
29180 build_libtool_need_lc=$archive_cmds_need_lc_FC
29181
29182 # Whether or not to disallow shared libs when runtime libs are static.
29183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29184
29185 # Compiler flag to allow reflexive dlopens.
29186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29187
29188 # Compiler flag to generate shared objects directly from archives.
29189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29190
29191 # Whether the compiler copes with passing no objects directly.
29192 compiler_needs_object=$lt_compiler_needs_object_FC
29193
29194 # Create an old-style archive from a shared archive.
29195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29196
29197 # Create a temporary old-style archive to link instead of a shared archive.
29198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29199
29200 # Commands used to build a shared archive.
29201 archive_cmds=$lt_archive_cmds_FC
29202 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29203
29204 # Commands used to build a loadable module if different from building
29205 # a shared archive.
29206 module_cmds=$lt_module_cmds_FC
29207 module_expsym_cmds=$lt_module_expsym_cmds_FC
29208
29209 # Whether we are building with GNU ld or not.
29210 with_gnu_ld=$lt_with_gnu_ld_FC
29211
29212 # Flag that allows shared libraries with undefined symbols to be built.
29213 allow_undefined_flag=$lt_allow_undefined_flag_FC
29214
29215 # Flag that enforces no undefined symbols.
29216 no_undefined_flag=$lt_no_undefined_flag_FC
29217
29218 # Flag to hardcode \$libdir into a binary during linking.
29219 # This must work even if \$libdir does not exist
29220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29221
29222 # If ld is used when linking, flag to hardcode \$libdir into a binary
29223 # during linking. This must work even if \$libdir does not exist.
29224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29225
29226 # Whether we need a single "-rpath" flag with a separated argument.
29227 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29228
29229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29230 # DIR into the resulting binary.
29231 hardcode_direct=$hardcode_direct_FC
29232
29233 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29234 # DIR into the resulting binary and the resulting library dependency is
29235 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29236 # library is relocated.
29237 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29238
29239 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29240 # into the resulting binary.
29241 hardcode_minus_L=$hardcode_minus_L_FC
29242
29243 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29244 # into the resulting binary.
29245 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29246
29247 # Set to "yes" if building a shared library automatically hardcodes DIR
29248 # into the library and all subsequent libraries and executables linked
29249 # against it.
29250 hardcode_automatic=$hardcode_automatic_FC
29251
29252 # Set to yes if linker adds runtime paths of dependent libraries
29253 # to runtime path list.
29254 inherit_rpath=$inherit_rpath_FC
29255
29256 # Whether libtool must link a program against all its dependency libraries.
29257 link_all_deplibs=$link_all_deplibs_FC
29258
29259 # Fix the shell variable \$srcfile for the compiler.
29260 fix_srcfile_path=$lt_fix_srcfile_path_FC
29261
29262 # Set to "yes" if exported symbols are required.
29263 always_export_symbols=$always_export_symbols_FC
29264
29265 # The commands to list exported symbols.
29266 export_symbols_cmds=$lt_export_symbols_cmds_FC
29267
29268 # Symbols that should not be listed in the preloaded symbols.
29269 exclude_expsyms=$lt_exclude_expsyms_FC
29270
29271 # Symbols that must always be exported.
29272 include_expsyms=$lt_include_expsyms_FC
29273
29274 # Commands necessary for linking programs (against libraries) with templates.
29275 prelink_cmds=$lt_prelink_cmds_FC
29276
29277 # Specify filename containing input files.
29278 file_list_spec=$lt_file_list_spec_FC
29279
29280 # How to hardcode a shared library path into an executable.
29281 hardcode_action=$hardcode_action_FC
29282
29283 # The directories searched by this compiler when creating a shared library.
29284 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29285
29286 # Dependencies to place before and after the objects being linked to
29287 # create a shared library.
29288 predep_objects=$lt_predep_objects_FC
29289 postdep_objects=$lt_postdep_objects_FC
29290 predeps=$lt_predeps_FC
29291 postdeps=$lt_postdeps_FC
29292
29293 # The library search path used internally by the compiler when linking
29294 # a shared library.
29295 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29296
29297 # ### END LIBTOOL TAG CONFIG: FC
29298 _LT_EOF
29299
29300 ;;
29301 "gstdint.h":C)
29302 if test "$GCC" = yes; then
29303 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29304 else
29305 echo "/* generated for $CC */" > tmp-stdint.h
29306 fi
29307
29308 sed 's/^ *//' >> tmp-stdint.h <<EOF
29309
29310 #ifndef GCC_GENERATED_STDINT_H
29311 #define GCC_GENERATED_STDINT_H 1
29312
29313 #include <sys/types.h>
29314 EOF
29315
29316 if test "$acx_cv_header_stdint" != stdint.h; then
29317 echo "#include <stddef.h>" >> tmp-stdint.h
29318 fi
29319 if test "$acx_cv_header_stdint" != stddef.h; then
29320 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29321 fi
29322
29323 sed 's/^ *//' >> tmp-stdint.h <<EOF
29324 /* glibc uses these symbols as guards to prevent redefinitions. */
29325 #ifdef __int8_t_defined
29326 #define _INT8_T
29327 #define _INT16_T
29328 #define _INT32_T
29329 #endif
29330 #ifdef __uint32_t_defined
29331 #define _UINT32_T
29332 #endif
29333
29334 EOF
29335
29336 # ----------------- done header, emit basic int types -------------
29337 if test "$acx_cv_header_stdint" = stddef.h; then
29338 sed 's/^ *//' >> tmp-stdint.h <<EOF
29339
29340 #ifndef _UINT8_T
29341 #define _UINT8_T
29342 #ifndef __uint8_t_defined
29343 #define __uint8_t_defined
29344 #ifndef uint8_t
29345 typedef unsigned $acx_cv_type_int8_t uint8_t;
29346 #endif
29347 #endif
29348 #endif
29349
29350 #ifndef _UINT16_T
29351 #define _UINT16_T
29352 #ifndef __uint16_t_defined
29353 #define __uint16_t_defined
29354 #ifndef uint16_t
29355 typedef unsigned $acx_cv_type_int16_t uint16_t;
29356 #endif
29357 #endif
29358 #endif
29359
29360 #ifndef _UINT32_T
29361 #define _UINT32_T
29362 #ifndef __uint32_t_defined
29363 #define __uint32_t_defined
29364 #ifndef uint32_t
29365 typedef unsigned $acx_cv_type_int32_t uint32_t;
29366 #endif
29367 #endif
29368 #endif
29369
29370 #ifndef _INT8_T
29371 #define _INT8_T
29372 #ifndef __int8_t_defined
29373 #define __int8_t_defined
29374 #ifndef int8_t
29375 typedef $acx_cv_type_int8_t int8_t;
29376 #endif
29377 #endif
29378 #endif
29379
29380 #ifndef _INT16_T
29381 #define _INT16_T
29382 #ifndef __int16_t_defined
29383 #define __int16_t_defined
29384 #ifndef int16_t
29385 typedef $acx_cv_type_int16_t int16_t;
29386 #endif
29387 #endif
29388 #endif
29389
29390 #ifndef _INT32_T
29391 #define _INT32_T
29392 #ifndef __int32_t_defined
29393 #define __int32_t_defined
29394 #ifndef int32_t
29395 typedef $acx_cv_type_int32_t int32_t;
29396 #endif
29397 #endif
29398 #endif
29399 EOF
29400 elif test "$ac_cv_type_u_int32_t" = yes; then
29401 sed 's/^ *//' >> tmp-stdint.h <<EOF
29402
29403 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29404 #ifndef _INT8_T
29405 #define _INT8_T
29406 #endif
29407 #ifndef _INT16_T
29408 #define _INT16_T
29409 #endif
29410 #ifndef _INT32_T
29411 #define _INT32_T
29412 #endif
29413
29414 #ifndef _UINT8_T
29415 #define _UINT8_T
29416 #ifndef __uint8_t_defined
29417 #define __uint8_t_defined
29418 #ifndef uint8_t
29419 typedef u_int8_t uint8_t;
29420 #endif
29421 #endif
29422 #endif
29423
29424 #ifndef _UINT16_T
29425 #define _UINT16_T
29426 #ifndef __uint16_t_defined
29427 #define __uint16_t_defined
29428 #ifndef uint16_t
29429 typedef u_int16_t uint16_t;
29430 #endif
29431 #endif
29432 #endif
29433
29434 #ifndef _UINT32_T
29435 #define _UINT32_T
29436 #ifndef __uint32_t_defined
29437 #define __uint32_t_defined
29438 #ifndef uint32_t
29439 typedef u_int32_t uint32_t;
29440 #endif
29441 #endif
29442 #endif
29443 EOF
29444 else
29445 sed 's/^ *//' >> tmp-stdint.h <<EOF
29446
29447 /* Some systems have guard macros to prevent redefinitions, define them. */
29448 #ifndef _INT8_T
29449 #define _INT8_T
29450 #endif
29451 #ifndef _INT16_T
29452 #define _INT16_T
29453 #endif
29454 #ifndef _INT32_T
29455 #define _INT32_T
29456 #endif
29457 #ifndef _UINT8_T
29458 #define _UINT8_T
29459 #endif
29460 #ifndef _UINT16_T
29461 #define _UINT16_T
29462 #endif
29463 #ifndef _UINT32_T
29464 #define _UINT32_T
29465 #endif
29466 EOF
29467 fi
29468
29469 # ------------- done basic int types, emit int64_t types ------------
29470 if test "$ac_cv_type_uint64_t" = yes; then
29471 sed 's/^ *//' >> tmp-stdint.h <<EOF
29472
29473 /* system headers have good uint64_t and int64_t */
29474 #ifndef _INT64_T
29475 #define _INT64_T
29476 #endif
29477 #ifndef _UINT64_T
29478 #define _UINT64_T
29479 #endif
29480 EOF
29481 elif test "$ac_cv_type_u_int64_t" = yes; then
29482 sed 's/^ *//' >> tmp-stdint.h <<EOF
29483
29484 /* system headers have an u_int64_t (and int64_t) */
29485 #ifndef _INT64_T
29486 #define _INT64_T
29487 #endif
29488 #ifndef _UINT64_T
29489 #define _UINT64_T
29490 #ifndef __uint64_t_defined
29491 #define __uint64_t_defined
29492 #ifndef uint64_t
29493 typedef u_int64_t uint64_t;
29494 #endif
29495 #endif
29496 #endif
29497 EOF
29498 elif test -n "$acx_cv_type_int64_t"; then
29499 sed 's/^ *//' >> tmp-stdint.h <<EOF
29500
29501 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29502 #ifndef _INT64_T
29503 #define _INT64_T
29504 #ifndef int64_t
29505 typedef $acx_cv_type_int64_t int64_t;
29506 #endif
29507 #endif
29508 #ifndef _UINT64_T
29509 #define _UINT64_T
29510 #ifndef __uint64_t_defined
29511 #define __uint64_t_defined
29512 #ifndef uint64_t
29513 typedef unsigned $acx_cv_type_int64_t uint64_t;
29514 #endif
29515 #endif
29516 #endif
29517 EOF
29518 else
29519 sed 's/^ *//' >> tmp-stdint.h <<EOF
29520
29521 /* some common heuristics for int64_t, using compiler-specific tests */
29522 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29523 #ifndef _INT64_T
29524 #define _INT64_T
29525 #ifndef __int64_t_defined
29526 #ifndef int64_t
29527 typedef long long int64_t;
29528 #endif
29529 #endif
29530 #endif
29531 #ifndef _UINT64_T
29532 #define _UINT64_T
29533 #ifndef uint64_t
29534 typedef unsigned long long uint64_t;
29535 #endif
29536 #endif
29537
29538 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29539 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29540 does not implement __extension__. But that compiler doesn't define
29541 __GNUC_MINOR__. */
29542 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29543 # define __extension__
29544 # endif
29545
29546 # ifndef _INT64_T
29547 # define _INT64_T
29548 # ifndef int64_t
29549 __extension__ typedef long long int64_t;
29550 # endif
29551 # endif
29552 # ifndef _UINT64_T
29553 # define _UINT64_T
29554 # ifndef uint64_t
29555 __extension__ typedef unsigned long long uint64_t;
29556 # endif
29557 # endif
29558
29559 #elif !defined __STRICT_ANSI__
29560 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29561
29562 # ifndef _INT64_T
29563 # define _INT64_T
29564 # ifndef int64_t
29565 typedef __int64 int64_t;
29566 # endif
29567 # endif
29568 # ifndef _UINT64_T
29569 # define _UINT64_T
29570 # ifndef uint64_t
29571 typedef unsigned __int64 uint64_t;
29572 # endif
29573 # endif
29574 # endif /* compiler */
29575
29576 #endif /* ANSI version */
29577 EOF
29578 fi
29579
29580 # ------------- done int64_t types, emit intptr types ------------
29581 if test "$ac_cv_type_uintptr_t" != yes; then
29582 sed 's/^ *//' >> tmp-stdint.h <<EOF
29583
29584 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29585 #ifndef __uintptr_t_defined
29586 #ifndef uintptr_t
29587 typedef u$acx_cv_type_intptr_t uintptr_t;
29588 #endif
29589 #endif
29590 #ifndef __intptr_t_defined
29591 #ifndef intptr_t
29592 typedef $acx_cv_type_intptr_t intptr_t;
29593 #endif
29594 #endif
29595 EOF
29596 fi
29597
29598 # ------------- done intptr types, emit int_least types ------------
29599 if test "$ac_cv_type_int_least32_t" != yes; then
29600 sed 's/^ *//' >> tmp-stdint.h <<EOF
29601
29602 /* Define int_least types */
29603 typedef int8_t int_least8_t;
29604 typedef int16_t int_least16_t;
29605 typedef int32_t int_least32_t;
29606 #ifdef _INT64_T
29607 typedef int64_t int_least64_t;
29608 #endif
29609
29610 typedef uint8_t uint_least8_t;
29611 typedef uint16_t uint_least16_t;
29612 typedef uint32_t uint_least32_t;
29613 #ifdef _UINT64_T
29614 typedef uint64_t uint_least64_t;
29615 #endif
29616 EOF
29617 fi
29618
29619 # ------------- done intptr types, emit int_fast types ------------
29620 if test "$ac_cv_type_int_fast32_t" != yes; then
29621 sed 's/^ *//' >> tmp-stdint.h <<EOF
29622
29623 /* Define int_fast types. short is often slow */
29624 typedef int8_t int_fast8_t;
29625 typedef int int_fast16_t;
29626 typedef int32_t int_fast32_t;
29627 #ifdef _INT64_T
29628 typedef int64_t int_fast64_t;
29629 #endif
29630
29631 typedef uint8_t uint_fast8_t;
29632 typedef unsigned int uint_fast16_t;
29633 typedef uint32_t uint_fast32_t;
29634 #ifdef _UINT64_T
29635 typedef uint64_t uint_fast64_t;
29636 #endif
29637 EOF
29638 fi
29639
29640 if test "$ac_cv_type_uintmax_t" != yes; then
29641 sed 's/^ *//' >> tmp-stdint.h <<EOF
29642
29643 /* Define intmax based on what we found */
29644 #ifndef intmax_t
29645 #ifdef _INT64_T
29646 typedef int64_t intmax_t;
29647 #else
29648 typedef long intmax_t;
29649 #endif
29650 #endif
29651 #ifndef uintmax_t
29652 #ifdef _UINT64_T
29653 typedef uint64_t uintmax_t;
29654 #else
29655 typedef unsigned long uintmax_t;
29656 #endif
29657 #endif
29658 EOF
29659 fi
29660
29661 sed 's/^ *//' >> tmp-stdint.h <<EOF
29662
29663 #endif /* GCC_GENERATED_STDINT_H */
29664 EOF
29665
29666 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29667 rm -f tmp-stdint.h
29668 else
29669 mv -f tmp-stdint.h gstdint.h
29670 fi
29671
29672 ;;
29673
29674 esac
29675 done # for ac_tag
29676
29677
29678 as_fn_exit 0
29679 _ACEOF
29680 ac_clean_files=$ac_clean_files_save
29681
29682 test $ac_write_fail = 0 ||
29683 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29684
29685
29686 # configure is writing to config.log, and then calls config.status.
29687 # config.status does its own redirection, appending to config.log.
29688 # Unfortunately, on DOS this fails, as config.log is still kept open
29689 # by configure, so config.status won't be able to write to it; its
29690 # output is simply discarded. So we exec the FD to /dev/null,
29691 # effectively closing config.log, so it can be properly (re)opened and
29692 # appended to by config.status. When coming back to configure, we
29693 # need to make the FD available again.
29694 if test "$no_create" != yes; then
29695 ac_cs_success=:
29696 ac_config_status_args=
29697 test "$silent" = yes &&
29698 ac_config_status_args="$ac_config_status_args --quiet"
29699 exec 5>/dev/null
29700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29701 exec 5>>config.log
29702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29703 # would make configure fail if this is the last instruction.
29704 $ac_cs_success || as_fn_exit $?
29705 fi
29706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29709 fi
29710
This page took 1.432642 seconds and 6 git commands to generate.